You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
test(e2e): repair or quarantine the cloud scenarios that drifted on main
The cloud e2e project never gated CI either, so ten scenarios rotted.
Refresh the four whose product behavior moved intentionally:
- connect-card-ssr-origin: install URLs are org-slug-scoped since the
org-slug console URLs change (#974); accept the slug form.
- connection-owner-isolation: /api/auth/switch-organization was deleted
with cookie-based org switching (#1000); switch orgs the way the web
client does, via the x-executor-organization selector header.
- oauth-connections: the popup-state fix (#1235) envelopes the callback
state as base64url JSON; decode it and assert the inner state + orgSlug.
- unauthenticated-skeleton: the 404 page shipped as a standalone page in
the same commit as the shell-framed assertion (#986); assert the page
it actually renders.
Quarantine the six that need product/harness work, each with a reason:
mcp-browser-approval-org-scope + the two browser-approval scenarios
(cloud-only: the mcporter browser-approval completion never lands),
cli-device-login (device-flow terminal never reaches the emulator), and
run-panel-auto-approve (autoApprove leaves the run paused; never green
since the feature landed in #1183).
"the WorkOS emulator doesn't implement RFC 8628 device-authorization (no device_code/verification_uri anywhere in its compiled dist), so `executor login`'s device flow never gets a user_code to print — suspect: @executor-js/emulate's WorkOS emulator";
// OAuth session flow), needs a live-debugged fix, tracked separately.
131
+
skip: "cloud's mcporter MCP-session OAuth login (listTools' consentStrategy handshake against the WorkOS emulator) hangs and times out after 60s, before this scenario's org-scope assertions ever run — suspect: cloud mcporter<->WorkOS-emulator OAuth session flow",
// session flow), not a stale assertion; needs a live-debugged fix, tracked
43
+
// separately.
44
+
constCLOUD_MCP_OAUTH_HANG_SKIP=
45
+
process.env.E2E_TARGET==="cloud"
46
+
? "cloud's mcporter MCP-session OAuth login (listTools' consentStrategy handshake against the WorkOS emulator) hangs and times out after 60s, before the require_approval flow under test ever runs — suspect: cloud mcporter<->WorkOS-emulator OAuth session flow"
47
+
: undefined;
48
+
31
49
// Gating a built-in read tool keeps the scenario hermetic — no external server
32
50
// to host a destructive tool. The gate, not the tool, is what's under test: any
33
51
// action the engine pauses on flows through the same approval path.
@@ -62,7 +80,7 @@ const decideInBrowser = (
62
80
63
81
scenario(
64
82
"MCP · a gated action approved in the browser runs to completion",
// `autoApprove` short-circuit into `runInlineExecution` with `acceptAllHandler`,
44
+
// `makeFullInvoker` -> `makeExecutorToolInvoker`, and the static-tool dispatch
45
+
// + `enforceApproval`/`buildElicit` in packages/core/sdk/src/executor.ts — every
46
+
// layer threads the per-call elicitation handler correctly and matches the
47
+
// already-working `policies.list` gate exercised by
48
+
// scenarios/browser-approval.test.ts. No defect found by static reading; this
49
+
// needs a live-debugged trace of the sandboxed `codeExecutor.execute` run to
50
+
// find where the accept-all handler stops taking effect. The feature and this
51
+
// test shipped together in the same commit (a150db97, "Run panel: auto-approve
52
+
// operator-invoked tools (#1183)") and this scenario has never gone green on
53
+
// main since — a real product bug, not a stale assertion; suspect: the
54
+
// autoApprove short-circuit in packages/core/execution/src/engine.ts's
55
+
// `startPausableExecution` (or its sandbox integration), needs live debugging.
56
+
constRUN_PANEL_AUTO_APPROVE_SKIP=
57
+
'autoApprove: true still returns "paused" instead of "completed" — wiring traced end to end (HTTP schema, handler, engine\'s autoApprove short-circuit, makeFullInvoker, static-tool dispatch/enforceApproval) with no defect found statically; never green since introduction in a150db97 (#1183) — suspect: packages/core/execution/src/engine.ts\'s startPausableExecution autoApprove path, needs live debugging';
58
+
39
59
scenario(
40
60
"Run panel · autoApprove runs an approval-gated tool that otherwise pauses",
0 commit comments