Repository navigation
test: repair cross-server handoff registration and isolate the app SDK smoke - #4375
Conversation
…ct snapshot and trusted inventory #4054 added evals/specs/cross-server-handoff-atomic-commit.e2e.test.ts without mapping it, so the PR lane on dev fails two governance specs for every PR: - spec-impact: "every E2E spec is mapped to an implementation contract or explicitly allowlisted" - spec-quarantine: "the enabled E2E set equals the evidence-backed inventory" (38 vs 37) Map it to desktop.onboarding-cloud-auth (which already owns den-auth-provider.tsx and forced-signin-page.tsx), add den-handoff.ts to that contract's implementation, and list the spec in expectedEnabled. Control: the same two specs fail identically on a clean origin/dev (3e425fa) checkout.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
3 Skipped Deployments
|
There was a problem hiding this comment.
Warden security clearance: clear. No blocking findings (security or desktop↔den sync) in this diff (1ab90db7297cc112bb314a86ebb32e486bf678d3). Automated clearance satisfies the required-review gate only — a human still reviews and merges. Analysis run
The same newly added e2e spec also broke the eval-runner layer ratchet by importing @openwork/behaviors and @openwork/hosts directly. Re-export its four required runtime helpers from @openwork/testkit and import all eval primitives and types through that package. This removes the two new specs-use-testkit-only violations instead of expanding the 206-entry known violation baseline. Proof: pnpm test:eval-runner passes 225/225; lint:layers reports zero new dependency violations.
Test evidence — the-app-sdk-smoke-suite-isolates-each-opencode-process-and-completes — ✅ passed✅ passed · 1 expectations passed · 0 failed · 0 pending verdict passed · 0 user observations · 0 probes · steps 0/0 ℹ️ ASSERTION — 1. Every core SDK smoke script receives isolated OpenCode stateThe exact app test:e2e command completes core health/path/session/prompt/todo/SSE, session switching, filesystem operations, and the browser-entry project command with no error report.
Test run created 2026-09-03T23:31:42.790Z · Source: |
There was a problem hiding this comment.
Warden security clearance: clear. No blocking findings (security or desktop↔den sync) in this diff (ab11874ef8b33107056917ed161186442f0bec8e). Automated clearance satisfies the required-review gate only — a human still reviews and merges. Analysis run
The app SDK smoke inherited the runner's real OpenCode database, plugins, MCPs, and project config even though it only verifies core SDK calls. On both CI runners /global/health waited five minutes on unrelated setup, then path.get hit a vanished process; rerunning reproduced it exactly. Give this one smoke process a temporary database and minimal config, disable external setup, and remove the temp directory after close. A PR-lane witness runs the real script and asserts health, path.get, session operations, and SSE all complete without an error step. Locally it completes in 4.6 seconds instead of failing after five minutes.
|
Follow-up after CI diagnosis:
|
There was a problem hiding this comment.
Warden security clearance: clear. No blocking findings (security or desktop↔den sync) in this diff (633b4a5a8a3be6ed67875635d64aee1360611bbe). Automated clearance satisfies the required-review gate only — a human still reviews and merges. Analysis run
|
Closing per request. Note: dev's openwork-tests lane remains red for every PR (spec-impact / spec-quarantine) until the cross-server-handoff spec from #4054 is registered. |
There was a problem hiding this comment.
Warden security clearance: clear. No blocking findings (security or desktop↔den sync) in this diff (633b4a5a8a3be6ed67875635d64aee1360611bbe). Automated clearance satisfies the required-review gate only — a human still reviews and merges. Analysis run
The first isolated script passed in CI, but session-switch then inherited the runner's real config and failed after the same five-minute wait. Move the hermetic defaults into spawnOpencodeServe so every core smoke process gets a temporary database and minimal config. browser-entry opts out of pure config because it deliberately tests a project command, while retaining the private database. Cleanup runs even when the child exits early. The agent-first witness now executes the exact app test:e2e package command: core SDK calls, session switching, filesystem operations, and browser-entry.
There was a problem hiding this comment.
Warden security clearance: clear. No blocking findings (security or desktop↔den sync) in this diff (287ae8a8bfb62b6e337fccc0b08e1b5e516af442). Automated clearance satisfies the required-review gate only — a human still reviews and merges. Analysis run
Why
devis red for every PR since #4054 (3e425fa). It addedevals/specs/cross-server-handoff-atomic-commit.e2e.test.tswithout registering it, so the PR lane fails two governance specs:spec-impact.test.ts› every E2E spec is mapped to an implementation contract or explicitly allowlisted →E2E specs missing a contract or unmapped reason: evals/specs/cross-server-handoff-atomic-commit.e2e.test.tsspec-quarantine.test.ts› the enabled E2E set equals the evidence-backed inventory →expected [ …(38) ] to deeply equal [ …(37) ]Control (clean
origin/dev@ 3e425fa, same command): both fail identically. Seen first on #4373'sopenwork-testson both runners.What
contracts.snapshot.json: map the spec todesktop.onboarding-cloud-auth(already ownsden-auth-provider.tsxandforced-signin-page.tsx, which fix(desktop): commit cross-server handoffs atomically #4054 changed) and addapps/app/src/app/lib/den-handoff.tsto that contract's implementation.spec-quarantine.test.ts: list the spec inexpectedEnabled(it landed ondevwith its own branch verification in fix(desktop): commit cross-server handoffs atomically #4054).Verification
Lane: local (governance specs; no runtime). Verdict: Passed.