Skip to content

test(chat): verify steering recovery and queue bypass on v1 and v2 - #4613

Merged
benjaminshafii merged 1 commit into
test/v1-v2-running-session-queuefrom
test/steering-recovery-contract
Sep 8, 2026
Merged

benjaminshafii merged 1 commit into
test/v1-v2-running-session-queuefrom
test/steering-recovery-contract

Conversation

@benjaminshafii

Copy link
Copy Markdown
Member

Scope and stack

Stacked on #4599 so its existing v2 owning-engine queue fix is reused, not duplicated. This PR adds test coverage only. Independent failed-handoff session preservation is #4611.

Coverage

Extend the existing unfinished-tool-lifecycle journey; no new spec file.

  • Real local Electron and real v1/v2 engines, signed out with an explicitly configured deterministic provider.
  • A completed shell step followed by an actual provider HTTP 400, then UI Cmd/Ctrl+Enter recovery in the same session without replaying completed work.
  • Busy-session X bypass preserves pending B/C, followed by exactly-once FIFO completion and an editable idle composer.
  • Other-session transcript isolation and existing active/waiting/unknown tool-state assertions.
  • Normalize native v2 structured tool output in the test probe instead of dropping it.

Without the parent queue fix, v2 completed X but left B/C queued indefinitely. With the parent, the final committed head passed both engine runs.

Verification

Head 64c59d2f5, isolated local placement, Node 24.15.0 / pnpm 11.4.0.

  • OPENWORK_EVAL_ENGINE=v1 pnpm evals:e2e unfinished-tool-lifecycle --local — Passed, 1/0/0.
  • OPENWORK_EVAL_ENGINE=v2 pnpm evals:e2e unfinished-tool-lifecycle --local — Passed, 1/0/0.
  • Targeted strict TypeScript check for this spec and dependencies — Passed.
  • Full evals typecheck and existing ratchets remain red in this checkout; representative failures were reproduced on a clean b322d3b control. No new diagnostics in the changed spec/helper/world were observed in the full check.

Final-head machine assertions and explanatory screenshots are published below. Screenshots are context, not visual-validation claims.

Not claimed

No live-LLM, cloud-authenticated steering, multi-hour retry/stall, instant-message, fast-Stop, bulk-workspace, favorite-restart, full transcript-ordering, or complete engine-parity certification. Those remain separate baseline efforts. The added case covers a controlled terminal provider failure and busy queue bypass.

@vercel

vercel Bot commented Sep 8, 2026 •

Copy link
Copy Markdown
Contributor

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
openwork-app Ready Ready Preview Sep 8, 2026 7:51am UTC
openwork-den Ready Ready Preview Sep 8, 2026 7:51am UTC
openwork-diagnostics Ready Ready Preview Sep 8, 2026 7:51am UTC
openwork-landing Ready Ready Preview, v0 Sep 8, 2026 7:51am UTC

@benjaminshafii

benjaminshafii commented Sep 8, 2026 •

Copy link
Copy Markdown
Member Author

Test evidence — local-signed-out-failed-task-recovery-queued-follow-ups-and-truthful-unfinished- — ✅ passed

SHA 64c59d2 · engine v2

✅ 0/4 screenshots passed · 5 assertions · 5 expectations passed · 0 failed · 0 pending

[world] mock(mcp) · den(local) · desktop(local) · workspace(/tmp/openwork-local-steering-recovery-1788853633940) · [seed:raw] evalIn() ×5 · session("Busy queue bypass proof") · session("Failure steering recovery proof")
[agent] desktopApi(GET /experimental/engine-v2-preview/status) · send(70 chars)
[probe] eventually(completed shell step followed by the sentinel provider failure)
[user] screenshot · type(composer, "Continue from completed work without repeating it RECOVERY-SEND-NOW-mtsd8kva-95268.") · press(Meta+Enter)
[probe] eventually(steered recovery reply with a settled composer)
[user] type(composer, "Next usable draft RECOVERY-SEND-NOW-mtsd8kva-95268") · screenshot
[agent] run(session.open)
[probe] eventually(busy bypass session is visible)
[agent] send(62 chars)
[probe] eventually(controlled shell wait is running and the UI is busy)
[user] type(composer, "Queued follow-up B BYPASS-QUEUED-B-mtsd8kva-95268.") · press(Enter) · see(text=1 queued) · type(composer, "Queued follow-up C BYPASS-QUEUED-C-mtsd8kva-95268.") · press(Enter)
[probe] eventually(B and C remain queued in FIFO order)
[user] type(composer, "Apply immediate direction X BYPASS-DIRECT-X-mtsd8kva-95268.") · press(Meta+Enter)
[probe] eventually(direct X is admitted while the original tool runs and B/C stay pending)
[user] screenshot
[probe] eventually(the immediate reply and both queued replies complete in order)
[user] screenshot
[seed:raw] [seed:raw] evalIn()
[user] see(Running command, reading 1 file)
[seed:raw] [seed:raw] evalIn()
[user] see(text=/Waiting for your action/) · see(text=Choose an option or approve the request to continue.) · notSee(Running command, reading 1 file)
[seed:raw] [seed:raw] evalIn()
[user] see(text=/Status unknown/) · see(text=No terminal result was observed. This step may still be running; check the session before retrying.) · notSee(text=/Waiting for your action/) · notSee(Running command, reading 1 file)
steps 1 ✅ the real engine records completed shell work and the provider's terminal HTTP 400 (6.8s) · 2 ✅ Cmd/Ctrl+Enter sends recovery now in the same engine session and does not repeat completed work (1.0s) · 3 ✅ a direct busy send bypasses B/C without consuming or reordering their queue (3.3s) · 4 ✅ idle drains B then C exactly once after X and leaves neither session falsely busy (21.6s) · 5 ✅ active unfinished tools remain visibly in progress (0.0s) · 6 ✅ a blocked unfinished step says what it needs (3.0s) · 7 ✅ idle unfinished tools expose an unknown terminal state (6.0s)
verdict passed · 13 user observations (screenshot ×4, see ×6, notSee ×3) · 7 probes · steps 7/7

ℹ️ ASSERTION — 1. Local configured-provider steering runs without cloud identity

A read-only identity check found no desktop auth token and no server Den session before the v2 workflow.

  • ✅ PASS Local configured-provider steering runs without cloud identity — A read-only identity check found no desktop auth token and no server Den session before the v2 workflow.

ℹ️ ASSERTION — 2. Local configured-provider work reaches the intended provider failure

Engine v2 kept session ses_f80039bd8ffeaXhxMq8sbmsw3i; provider sequence was tool,error; the other session stayed empty.

  • ✅ PASS Local configured-provider work reaches the intended provider failure — Engine v2 kept session ses_f80039bd8ffeaXhxMq8sbmsw3i; provider sequence was tool,error; the other session stayed empty.

ℹ️ ASSERTION — 3. Local UI steering resumes without repeating completed work

One recovery prompt and reply reached session ses_f80039bd8ffeaXhxMq8sbmsw3i; one shell call remained; idle Run task and an editable composer accepted a subsequent draft.

  • ✅ PASS Local UI steering resumes without repeating completed work — One recovery prompt and reply reached session ses_f80039bd8ffeaXhxMq8sbmsw3i; one shell call remained; idle Run task and an editable composer accepted a subsequent draft.

ℹ️ ASSERTION — 4. Local immediate UI direction preserves the pending FIFO queue

X entered session ses_f80039f17ffeEohcmiP8t32K82 during its running shell; B then C remained queued, had no provider receipt, and the recovery session did not change.

  • ✅ PASS Local immediate UI direction preserves the pending FIFO queue — X entered session ses_f80039f17ffeEohcmiP8t32K82 during its running shell; B then C remained queued, had no provider receipt, and the recovery session did not change.

ℹ️ ASSERTION — 5. The local preserved queue drains exactly once and the session settles

Provider order was long-tool,X,B,C; each user and reply marker appeared once; queue count and Stop cleared while idle Run task and the editable composer remained.

  • ✅ PASS The local preserved queue drains exactly once and the session settles — Provider order was long-tool,X,B,C; each user and reply marker appeared once; queue count and Stop cleared while idle Run task and the editable composer remained.

⚪ UNVALIDATED — 6. local-signed-out-failed-task-recovery-queued-follow-ups-and-truthful-unfinished- artifact 2

  • ⚪ UNVALIDATED — no visual expectations recorded.

local-signed-out-failed-task-recovery-queued-follow-ups-and-truthful-unfinished- artifact 2

⚪ UNVALIDATED — 7. local-signed-out-failed-task-recovery-queued-follow-ups-and-truthful-unfinished- artifact 4

  • ⚪ UNVALIDATED — no visual expectations recorded.

local-signed-out-failed-task-recovery-queued-follow-ups-and-truthful-unfinished- artifact 4

⚪ UNVALIDATED — 8. local-signed-out-failed-task-recovery-queued-follow-ups-and-truthful-unfinished- artifact 6

  • ⚪ UNVALIDATED — no visual expectations recorded.

local-signed-out-failed-task-recovery-queued-follow-ups-and-truthful-unfinished- artifact 6

⚪ UNVALIDATED — 9. local-signed-out-failed-task-recovery-queued-follow-ups-and-truthful-unfinished- artifact 8

  • ⚪ UNVALIDATED — no visual expectations recorded.

local-signed-out-failed-task-recovery-queued-follow-ups-and-truthful-unfinished- artifact 8


Test run created 2026-09-08T07:46:26.051Z · Source: evals/results/test-runs/2026-09-08T07-46-26-050Z-local-signed-out-failed-task-recovery-queued-follow-ups-and-truthful-unfinished/test-run.json · Repro: pnpm --dir evals artifacts:publish -- --pr 4613 --test-run 2026-09-08T07-46-26-050Z-local-signed-out-failed-task-recovery-queued-follow-ups-and-truthful-unfinished

Additional engine section — v1 — Passed

Same final head: 64c59d2f51e203243258ff763ef6e992891c9774. Placement: local (--local).
Command: OPENWORK_EVAL_ENGINE=v1 pnpm evals:e2e unfinished-tool-lifecycle --local.
Result: 1 passed, 0 failed, 0 skipped; 5 machine assertion groups passed. No pending judgments. Screenshots are explanatory, not visual-certification claims.

Source: evals/results/test-runs/2026-09-08T07-44-37-940Z-local-signed-out-failed-task-recovery-queued-follow-ups-and-truthful-unfinished/test-run.json.

Claim Completed v1 assertion evidence
Local-mode identity Desktop auth token absent; server Den session absent; configured local provider used.
Genuine failure after completed work Exactly one completed bash command with observed output, followed by provider HTTP 400; other session remained empty.
UI steering recovery Cmd/Ctrl+Enter admitted one new user message and one reply in the same native session; completed shell work was not repeated; composer accepted a subsequent draft.
Bypass preserves queue X was admitted while the original tool still ran; B/C remained queued in order and had no provider requests; the recovery session was unchanged.
Exactly-once FIFO completion Provider sequence was long-tool, X, B, C; every user/reply marker occurred once; queue emptied and composer returned idle/editable.

Both engine runs also retained the existing active/waiting/unknown lifecycle assertions. This is controlled provider-failure and busy-bypass proof, not multi-hour stall, timing-budget, complete transcript ordering, cloud steering, or live-LLM proof.

Targeted strict typecheck passed with:\npnpm exec tsc --noEmit --strict --target ES2024 --module preserve --moduleResolution bundler --lib ES2024,DOM,DOM.Iterable,ESNext.Disposable --jsx react-jsx --allowJs --allowImportingTsExtensions --skipLibCheck packages/cdp/src/browser-globals.d.ts specs/unfinished-tool-lifecycle.e2e.test.ts (workdir evals). Full evals typecheck remains red with representative failures reproduced on clean b322d3b.

This branch was successfully deployed

4 active deployments
Preview – openwork-landing — 64c59d2f Deployed Sep 8, 2026 by vercel[bot]
Preview – openwork-den — 64c59d2f Deployed Sep 8, 2026 by vercel[bot]
Preview – openwork-app — 64c59d2f Deployed Sep 8, 2026 by vercel[bot]
Preview – openwork-diagnostics — 64c59d2f Deployed Sep 8, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant