Skip to content

fix(chat): verify queued turns across workspaces and both engines - #4599

Open
benjaminshafii wants to merge 19 commits into
devfrom
test/v1-v2-running-session-queue
Open

benjaminshafii wants to merge 19 commits into
devfrom
test/v1-v2-running-session-queue

Conversation

@benjaminshafii

@benjaminshafii benjaminshafii commented Sep 7, 2026 •

Copy link
Copy Markdown
Member

Summary

  • Preserve same-/cross-workspace queue journeys, authoritative native next-step steering/FIFO coverage, and incoming STOP-01/ACT-01 coverage on merged dev e4e316d.
  • Latest commit adds an earlier pending-queue assertion, renderer-continuity assertion, and native/provider/development-log diagnostics. It does not change product behavior or claim a queue-engine fix.
  • Existing FIFO, identity, no-replay, isolation, and natural-return viewport assertions remain. No forced tool scrolling.

Candidate

d216706baceda801e064037138c0fd29e94850a6

Parent: 48cb8180ede5604e0e5675166df35e870728411f (clean merge of b040675 and e4e316d). Existing PR ancestry is preserved. This is an update for existing #4599, not a new PR.

Verification — Incomplete, historical red retained

  • Final-head v1 QUEUE-01 run on d216706 was explicitly user-aborted. No completed final-head receipt or numeric process exit was observed. It is not a pass.
  • On clean parent 48cb818, five of six queue/steering cases passed; v1 QUEUE-01 failed waiting for A's queued replies. Both STOP-01 cases passed.
  • Instrumented diagnostic runs subsequently passed, including original-duration and shortened exploratory runs. These used uncommitted diagnostic changes and are not clean-head certification of d216706 or a demonstrated causal fix.
  • The original loss could not be reproduced with the collected queue/input/cancellation diagnostics. No marker mismatch, cancellation-generation change, or input-driver cause was established. The historical root cause remains unresolved.
  • Temporary product instrumentation, reduced sleeps, and forced Vite re-optimization were removed before d216706. The final commit changes only two test/world files.

Inline evidence

All receipt paths below are relative to the candidate worktree's evals/results/.testkit/ and remain local, not published URLs.

Clean tested SHA Case Result / exit Receipt
48cb818 v1 STEER-01 1 pass / 0 cli-run-1789070913135.json
48cb818 v2 STEER-01 1 pass / 0 cli-run-1789070985511.json
48cb818 v1 QUEUE-01 1 fail / 1 cli-run-1789071067673.json
48cb818 v1 QUEUE-02 1 pass / 0 cli-run-1789071380682.json
48cb818 v2 QUEUE-01 1 pass / 0 cli-run-1789071605459.json
48cb818 v2 QUEUE-02 1 pass / 0 cli-run-1789071829586.json
48cb818 v1 STOP-01 1 pass / 0 cli-run-1789070756092.json
48cb818 v2 STOP-01 1 pass / 0 cli-run-1789070869485.json

Each selected case had zero selected skips. Excluded cases are not passes.

Original v1 QUEUE-01 error:

Timed out waiting for both queued A follow-ups execute as separate turns in order after 45000ms

Its screenshots show 2 queued A rows after returning, then no queue while the third native tool still runs. Later observations contain only the original prompt/reply. The passing diagnostic runs do not erase this red.

Parent supporting checks: 50 targeted unit tests / 532 assertions passed, app typecheck passed. Browser callback check failed on a raw-code-string/TS2345 error at library-mcp-servers-from-config.e2e.test.ts:21:50; exact clean e4e316d control reproduced it. These checks were not rerun on d216706.

Scope and caveats

Native steering is turn acceptance for the next model step, not a parallel provider call. Prior 2337dae stronger-claim reds remain historical disproven claims. Screenshots are reference artifacts, not independent visual certification. No engine patch was made. This publishes committed work and the merge refresh, not a claim that the remaining v1 failure is resolved.

Latest Local Review: Incomplete

Bare pnpm warden:check ran on clean HEAD d216706baceda801e064037138c0fd29e94850a6, run a213293f-2026-09-10T21-20-58-174Z. Security/confidentiality completed with no findings; provenance returned a medium, high-confidence finding: Synthetic keydown bypasses the user keyboard/focus path for queueing at live-tool-visible-after-session-switch.e2e.test.ts:276-280. Clear when queue input uses trusted keyboard actions and matching final-head proof passes. This remains open, not waived. Server entrypoint review was excluded by file-size limits. HEAD unchanged; shared origin/dev advanced from 077058748bdb02c0638bc961ca8a7072385c92d2 to 0b219dc4e5f2868c258dbe960d58c657dbe8d99b during review. No full-clearance claim.

@vercel

vercel Bot commented Sep 7, 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 10, 2026 9:52pm UTC
openwork-den Ready Ready Preview Sep 10, 2026 9:52pm UTC
openwork-diagnostics Ready Ready Preview Sep 10, 2026 9:52pm UTC
openwork-landing Ready Ready Preview, v0 Sep 10, 2026 9:52pm UTC

diff-warden[bot]
diff-warden Bot previously approved these changes Sep 7, 2026

@diff-warden diff-warden Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Warden security clearance: clear. No blocking findings (security or desktop↔den sync) in this diff (04d6866b62022c003d912d2524995517ade4ecf7). Automated clearance satisfies the required-review gate only — a human still reviews and merges. Analysis run

diff-warden[bot]
diff-warden Bot previously approved these changes Sep 7, 2026

@diff-warden diff-warden Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Warden security clearance: clear. No blocking findings (security or desktop↔den sync) in this diff (6f44209ec38d8ff32bf615afc6456f8c1c6889a6). Automated clearance satisfies the required-review gate only — a human still reviews and merges. Analysis run

@benjaminshafii

benjaminshafii commented Sep 7, 2026 •

Copy link
Copy Markdown
Member Author

Passed · 12/12 tests · 18/18 assertions · 8 images

Commit 522413f35e07408d3cc05df519f795cf1b7ca3ef · selected evidence

Open review report

@benjaminshafii benjaminshafii changed the title Test live session switching and queued follow-ups on OpenCode v1/v2 Fix v2 queued follow-ups and test live switching across both engines Sep 7, 2026
diff-warden[bot]
diff-warden Bot previously approved these changes Sep 8, 2026

@diff-warden diff-warden Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Warden security clearance: clear. No blocking findings (security or desktop↔den sync) in this diff (18490ccedc2e644a346682a078243ba463694ba5). Automated clearance satisfies the required-review gate only — a human still reviews and merges. Analysis run

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Sep 10, 2026 •

Copy link
Copy Markdown

Deploying openwork with  Cloudflare Pages  Cloudflare Pages

Latest commit: d216706
Status: ✅  Deploy successful!
Preview URL: https://e397ad3b.openwork.pages.dev
Branch Preview URL: https://test-v1-v2-running-session-q.openwork.pages.dev

View logs

@benjaminshafii

Copy link
Copy Markdown
Member Author

#4599 — final candidate queue evidence

Original queue scenario: behavioral Passed on v1 and v2; ready for scoped review, standard CI still required. Evidence is bound to 8ec2ac781a5933150d6e46af00008f529060258e in wt-pkg4-queue, pinned local origin/dev e925c7c991ee9b4748b1400b82be3178e9eb3a2a. It does not assert that the remote PR has been updated.

Base freshness note: e925c7c… is the recorded verification/Warden base. During draft preparation, the final read-only check observed local origin/dev at 2fcbae60e1018295bee1fd21e1cd4ee0331adedd, while candidate HEAD stayed unchanged and clean. No fetch/base update was performed by this task, and these runs do not validate integration against the newer dev ref.

Artifact/visual status: Incomplete. Each run has five passing assertion expectations and four unvalidated screenshots: 30 passed expectations / 0 failed across six runs, 24 unvalidated screenshots. All have outcome: "passed" and summary.ok: false. There is no hosted report URL; the inspectable extracts are inline below. Paths refer to retained local records, not hosted links. Screenshots are context only (ok: null, empty results/judgments), not visual proof.

Keep the existing reviewer/owner; #4798 owns overlapping Stop work. STOP-01, Stop-pauses-queue, fast-Stop/interrupt-and-send, parallel model execution and end-to-end uncertain-admission injection are outside this claim. Native steering acceptance while busy is followed by provider execution after tool completion, not concurrent provider admission.

Commands and final receipts

All commands below have recorded exit 0. Each selected test passed. Queue CLI JSON additionally lists two skipped/unselected tests (other queue case + SWITCH-10); steering has no skips. Never count those unselected cases as passes.

Run from the candidate checkout using the recorded clean environment: env -i HOME="$HOME" TMPDIR="${TMPDIR:-/tmp}" PATH="<checkout>/apps/desktop/resources/sidecars:<Node-24.15.0-bin>:<Bun-bin>:/usr/bin:/bin:/usr/sbin" OPENWORK_EVAL_CHROME_HEADLESS=1 <command>. Substitute the machine-local angle-bracket paths. All runs use local appWeb and mock services with real selected engines.

ID Exact command CLI JSON (evals/results/.testkit/) Passed test duration (ms)
Q1-v1 pnpm evals:e2e live-tool-visible-after-session-switch --local --engine v1 --surface web --case QUEUE-01 cli-run-1789062783237.json 219327.36833300002
Q2-v1 pnpm evals:e2e live-tool-visible-after-session-switch --local --engine v1 --surface web --case QUEUE-02 cli-run-1789063013446.json 209796.5115
Q1-v2 pnpm evals:e2e live-tool-visible-after-session-switch --local --engine v2 --surface web --case QUEUE-01 cli-run-1789062224788.json 275615.146542
Q2-v2 pnpm evals:e2e live-tool-visible-after-session-switch --local --engine v2 --surface web --case QUEUE-02 cli-run-1789062511011.json 259965.873583
S-v1 pnpm evals:e2e unfinished-tool-lifecycle --local --engine v1 --surface web cli-run-1789063248571.json 77401.632209
S-v2 pnpm evals:e2e unfinished-tool-lifecycle --local --engine v2 --surface web cli-run-1789063345813.json 109012.184417

Six run directories and runtime references

Prefix every directory below with evals/results/test-runs/ in wt-pkg4-queue. Each contains test-run.json and local index.html. Runtime references are exact trace[].surface values, not claims that the runtimes remain live.

ID Run directory Runtime surface
Q1-v1 2026-09-10T17-53-04-607Z-queue-01-two-long-running-chats-restore-live-transcripts-and-drain-isolated-queu queued-session-switch-40009-a6215419
Q2-v1 2026-09-10T17-56-54-732Z-queue-02-two-long-running-chats-restore-live-transcripts-and-drain-isolated-queu queued-session-switch-67369-53733271
Q1-v2 2026-09-10T17-43-46-227Z-queue-01-two-long-running-chats-restore-live-transcripts-and-drain-isolated-queu queued-session-switch-73203-ad42a2fd
Q2-v2 2026-09-10T17-48-32-432Z-queue-02-two-long-running-chats-restore-live-transcripts-and-drain-isolated-queu queued-session-switch-7669-2eb892b1
S-v1 2026-09-10T18-00-49-847Z-local-signed-out-recovery-and-native-next-step-steering-preserve-fifo-and-unfini local-steering-recovery-94877-602dd4af
S-v2 2026-09-10T18-02-27-112Z-local-signed-out-recovery-and-native-next-step-steering-preserve-fifo-and-unfini local-steering-recovery-6288-30fc1053

The exact queue test titles are QUEUE-01 two long-running chats restore live transcripts and drain isolated queues — same workspace, v1 / v2, and QUEUE-02 two long-running chats restore live transcripts and drain isolated queues — different workspaces, v1 / v2. Steering's exact title on both engines is local signed-out recovery and native next-step steering preserve FIFO and unfinished-tool lifecycle.

Common raw result shape

Selected fields from each of the six test-run.json records (not a synthesized all-green artifact verdict):

{
  "gitSha": "8ec2ac781a5933150d6e46af00008f529060258e",
  "summary": {
    "ok": false,
    "totalArtifacts": 9,
    "passedArtifacts": 5,
    "failedArtifacts": 0,
    "unvalidatedArtifacts": 4,
    "pendingArtifacts": 0,
    "passedExpectations": 5,
    "failedExpectations": 0,
    "pendingJudgments": 0
  },
  "outcome": "passed"
}

Q1-v1 — same workspace / Passed

Source: Q1-v1 test-run.json, artifacts[3].results[0], verbatim:

{
  "expectation": "Queued follow-ups wait for completion, drain exactly once in order, and stay in their own session",
  "evidence": "v1, same workspace: A held two follow-ups while busy, then rendered each prompt and answer once in order. B preserved its queue across navigation and delivered its follow-up while unmounted. Neither session received the other's queued content.",
  "passed": true
}

Q2-v1 — different workspaces / Passed

Source: Q2-v1 test-run.json, artifacts[3].results[0], verbatim:

{
  "expectation": "Queued follow-ups wait for completion, drain exactly once in order, and stay in their own session",
  "evidence": "v1, different workspaces: A held two follow-ups while busy, then rendered each prompt and answer once in order. B preserved its queue across navigation and delivered its follow-up while unmounted. Neither session received the other's queued content.",
  "passed": true
}

Q1-v2 — same workspace / Passed

Source: Q1-v2 test-run.json, artifacts[3].results[0], verbatim:

{
  "expectation": "Queued follow-ups wait for completion, drain exactly once in order, and stay in their own session",
  "evidence": "v2, same workspace: A held two follow-ups while busy, then rendered each prompt and answer once in order. B preserved its queue across navigation and delivered its follow-up while unmounted. Neither session received the other's queued content.",
  "passed": true
}

Q2-v2 — different workspaces / Passed

Source: Q2-v2 test-run.json, artifacts[3].results[0], verbatim:

{
  "expectation": "Queued follow-ups wait for completion, drain exactly once in order, and stay in their own session",
  "evidence": "v2, different workspaces: A held two follow-ups while busy, then rendered each prompt and answer once in order. B preserved its queue across navigation and delivered its follow-up while unmounted. Neither session received the other's queued content.",
  "passed": true
}

For each of Q1-v1, Q2-v1, Q1-v2, Q2-v2, the remaining passing records in test-run.json.artifacts are independently inspectable:

JSON pointer Assertion / observed evidence
/artifacts/0/results/0 B is created after A's first tool visibly runs; both tools and loading indicators continue.
/artifacts/1/results/0 A's second tool starts while B is visible; on return scoped CDP finds its visible running row before completion.
/artifacts/2/results/0 A restores its prompt/progress/tool, then renders new progress and a third running tool without navigation/reload; three tools complete, one final answer, no B content.
/artifacts/3/results/0 Two A follow-ups and B's background follow-up drain exactly once in order without cross-session content (verbatim above).
/artifacts/4/results/0 B restores its running tool, completes once in the background, shows one left-side attention indicator and restores one final reply without A content.

Natural completed-tool return visibility is also enforced by evals/specs/live-tool-visible-after-session-switch.e2e.test.ts:582-591 (expect(visibleAfterCompletion.visible).toBe(true)). It is an executable assertion reached by the passing selected tests, not a separate screenshot judgment or separately retained coordinate payload. Queue runs retain provider setup JSON 01-configured-native-workspace-providers.json; screenshots are the 04-, 05-, 07-, 08-queue-01…png / queue-02…png artifacts named in each record.

S-v1 — native-history steering / Passed

Source: S-v1 test-run.json, artifacts[3].results[0], verbatim:

{
  "expectation": "Native next-step steering preserves the pending FIFO queue",
  "evidence": "Native native-history accepted X as msg_08c7b6e05000e29d4f15949e45 during its running shell; no X model call had started; B then C remained queued and the recovery session did not change.",
  "passed": true
}

Selected fields from S-v1 08-native-x-acceptance-with-b-and-c-held-in-fifo-order.json:

{
  "visible": {
    "sessionId": "ses_f7384c3cbffejzYEFZpyorQrJ3",
    "queued": [
      "Queued follow-up B BYPASS-QUEUED-B-mtvu2ehj-94877.",
      "Queued follow-up C BYPASS-QUEUED-C-mtvu2ehj-94877."
    ]
  },
  "requests": [],
  "admission": {
    "source": "native-history",
    "messages": [{"id": "msg_08c7b6e05000e29d4f15949e45", "text": "Apply immediate direction X BYPASS-DIRECT-X-mtvu2ehj-94877."}],
    "streamError": null
  }
}

The same raw payload's /snapshot/data/messages/1/parts/1 records native bash, call ID call_BYPASS-LONG-mtvu2ehj-94877_1, status: "running". Final 12-accepted-x-identity-persists-and-provider-follows-native-tool-completion.json retains that X identity once and completedAt: 1789063314078. Final 11-final-native-queue-transcript-and-ordered-provider-receipts.json records X provider time 2026-09-10T18:01:54.111Z, then B 18:01:54.821Z, C 18:01:55.494Z; X follows native tool completion.

S-v2 — native-inbox-event steering / Passed

Source: S-v2 test-run.json, artifacts[3].results[0], verbatim:

{
  "expectation": "Native next-step steering preserves the pending FIFO queue",
  "evidence": "Native native-inbox-event accepted X as msg_08c7d6472001V0pRUeGYVOWgfW during its running shell; no X model call had started; B then C remained queued and the recovery session did not change.",
  "passed": true
}

Selected fields from S-v2 08-native-x-acceptance-with-b-and-c-held-in-fifo-order.json:

{
  "visible": {
    "sessionId": "ses_f7382cc55ffegd4GqrUBmQqJHT",
    "queued": [
      "Queued follow-up B BYPASS-QUEUED-B-mtvu4hjc-6288.",
      "Queued follow-up C BYPASS-QUEUED-C-mtvu4hjc-6288."
    ]
  },
  "requests": [],
  "admission": {
    "source": "native-inbox-event",
    "messages": [{"id": "msg_08c7d6472001V0pRUeGYVOWgfW", "text": "Apply immediate direction X BYPASS-DIRECT-X-mtvu4hjc-6288."}],
    "streamError": null
  }
}

The same payload's /snapshot/data/messages/0/parts/0 records native shell, call ID call_BYPASS-LONG-mtvu4hjc-6288_1, status: "running". Native event identity is the acceptance witness; empty v2 message parts or an optimistic UI row are not substituted for it. Final 12-accepted-x-identity-persists-and-provider-follows-native-tool-completion.json retains X ID msg_08c7d6472001V0pRUeGYVOWgfW once and completedAt: 1789063442722. Final 11-final-native-queue-transcript-and-ordered-provider-receipts.json records X provider time 2026-09-10T18:04:02.748Z, then B 18:04:03.439Z, C 18:04:04.100Z; X follows native tool completion.

For both S-v1 and S-v2, final test-run.json.artifacts[4].results[0] is:

{
  "expectation": "The local preserved queue drains exactly once and the session settles",
  "evidence": "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.",
  "passed": true
}

Each steering record additionally proves no cloud identity (artifacts[0]), intended provider failure after completed work with other session empty (artifacts[1]), and same-session recovery without replay with usable idle composer (artifacts[2]). Raw witnesses in each steering directory:

  • 02-native-failure-and-provider-admission-witness.json
  • 05-native-same-session-recovery-without-replay.json
  • 08-native-x-acceptance-with-b-and-c-held-in-fifo-order.json
  • 11-final-native-queue-transcript-and-ordered-provider-receipts.json
  • 12-accepted-x-identity-persists-and-provider-follows-native-tool-completion.json

Reference screenshots are the 03-, 06-, 09-, 13-local-signed-out-recovery…png artifacts listed in each run. Clearing Stop on natural idle does not prove clicking Stop pauses the queue.

Supporting checks / non-green exceptions

Final-candidate handoff pr4599-workspace-complete-evidence.md records:

  • node --test evals/packages/env/test/app-web-workspace.test.ts: exit 0, 4 passed.
  • pnpm --filter openwork-server exec bun --conditions=development test src/engine-pool.test.ts -t "explicit sibling-workspace": exit 0, 1 passed, 6 assertions, 28 filtered out.
  • pnpm --filter @openwork/app exec bun test tests/queued-drain-admission-wedge.test.ts tests/opencode-session-native.test.ts tests/safe-edit-resend.test.ts: exit 0, 44 passed, 421 assertions.
  • pnpm --filter @openwork/app typecheck: exit 0.
  • pnpm --dir evals run check:browser: exit 0, 842 callbacks.
  • git diff --check: exit 0; clean candidate and recorded remote-head ancestry check.
  • Full pnpm --filter openwork-server exec bun --conditions=development test src/engine-pool.test.ts: printed 29 passed / 0 failed / 248 assertions, then SIGTRAP, not a clean pass. Recorded same-command/environment control at c669e8210a8616646aa3848d4ba665f9cd25680d printed 28 passed / 0 failed / 242 assertions and SIGTRAP. This is a pinned control comparison, not newly matched latest-dev evidence.
  • Broad eval typecheck: exit 2, not green; retained external package4-crossworkspace-types.log. Handoff reports baseline diagnostics with no new diagnostics in changed fixture/spec paths; no claim of a newly matched latest-dev control.

Final Warden and explicit review exclusions

Final bare Warden run fe182278-2026-09-10T18-08-51-717Z exited 0 per final handoff. JSONL and .done receipt: .warden/logs/fe182278-2026-09-10T18-08-51-717Z.jsonl{,.done}. HEAD stayed 8ec2ac781a5933150d6e46af00008f529060258e; pinned origin/dev remained e925c7c991ee9b4748b1400b82be3178e9eb3a2a. Duration 372735 ms; three matched reviews completed (diff-security-review, confidentiality-review, spec-provenance-review) with no findings.

Selected summary fields:

{"type":"summary","totalFindings":0,"bySeverity":{"high":0,"medium":0,"low":0},"totalSkippedFiles":2}

The two skipped-file records are the same path in two skills, not two distinct reviewed files. Selected exact fields from JSONL lines 43 and 62:

[
  {"skill":"diff-security-review","status":"skipped","skippedFiles":[{"filename":"apps/server/src/server.ts","reason":"limit:file_lines"}]},
  {"skill":"confidentiality-review","status":"skipped","skippedFiles":[{"filename":"apps/server/src/server.ts","reason":"limit:file_lines"}]}
]

Thus the changed server route has no security/confidentiality scan coverage in this run. The reason is explicitly a file-line limit. Spec-provenance reviews only its matched spec/world chunks; unmatched skills and other unreviewed files are not certified. Zero findings applies to completed matched coverage, not a full-file/full-PR review. Existing reviewer ownership and standard required CI remain in force.

Historical red evidence — not latest-head matched failures or passes

  • Concurrent provider-X claim disproven at 2337dae56b7e4256e68864c997fd429d31a210c1: v1 evals/results/.testkit/cli-run-1789056031569.json; v2 cli-run-1789056081471.json in the same directory. Both exit 1, 0 passed / 1 failed / 0 skipped; 15000-ms timeout with native shell running, X visible, B/C queued and X/B/C requests: []. Raw 08-failed-immediate-provider-admission-diagnostic.json is in historical run directories 2026-09-10T16-00-33-080Z-local-signed-out-failed-task-recovery-queued-follow-ups-and-truthful-unfinished- and 2026-09-10T16-01-22-936Z-local-signed-out-failed-task-recovery-queued-follow-ups-and-truthful-unfinished-. These do not become green and did not reach final FIFO assertions. The final contract is native next-step acceptance.
  • Historical invalid-case / unresolved legacy web-world switch failures are separate from the four final explicit QUEUE cases. Historical SWITCH-10 control failures are not matched latest-head queue proof.
  • Prototype client-token 401 was resolved with the isolated runtime's legitimate host credential. Native model-selection reds exposed the sibling-reload defect; oversized v1 provider catalog diagnostics failed CDP before output was bounded to IDs/counts.
  • evals/results/.testkit/cli-run-1789062076120.json at cee216ed9c83e8ac6eff594794ebd844bb280a46 failed world build at the helper's 30-second provider timeout. Final setup uses the existing seed's 120-second bound; journey assertion waits were not extended.

Prepared inline sticky draft only; no publication or hosted evidence is implied.

@benjaminshafii
benjaminshafii marked this pull request as ready for review September 10, 2026 18:21
@benjaminshafii

Copy link
Copy Markdown
Member Author

Final stopped handoff

Worktree: /private/var/folders/d9/xqhkvsp94rg0n0n523snqztm0000gn/T/opencode/wt-pkg4-queue
Branch: test/v1-v2-running-session-queue-web-proof
HEAD: d216706baceda801e064037138c0fd29e94850a6
Parent: 48cb8180ede5604e0e5675166df35e870728411f
Status at handoff: clean. No candidate changes after user's stop request.
Change: two files, 41 insertions / 1 deletion:

  • evals/specs/live-tool-visible-after-session-switch.e2e.test.ts
  • evals/worlds/queued-session-switch-web.ts

Latest d216 result

Command:

env -i HOME="$HOME" TMPDIR="${TMPDIR:-/tmp}" PATH="$PWD/apps/desktop/resources/sidecars:/Users/benjaminshafii/.nvm/versions/node/v24.15.0/bin:/Users/benjaminshafii/.bun/bin:/usr/bin:/bin:/usr/sbin" OPENWORK_EVAL_CHROME_HEADLESS=1 pnpm evals:e2e live-tool-visible-after-session-switch --local --engine v1 --surface web --case QUEUE-01

Runtime reached the queuedSessionSwitchWeb test. Terminal returned [ELIFECYCLE] Command failed. and User aborted the command. Numeric exit code and final test counts were not returned. No saved test-run.json containing the d216 full SHA was found at handoff. No completed final-head proof exists; do not use older receipts as final-head proof.

Clean-parent evidence

The prepared body pr4599-publish-d216706b-body.md contains the complete eight-case 48cb818 table. All six queue/steering cases were run serially using the command above with engine/case substituted; STEER and STOP use unfinished-tool-lifecycle as the slug.

Original red receipt: candidate evals/results/.testkit/cli-run-1789071067673.json.
Original red artifacts: evals/results/test-runs/2026-09-10T20-11-09-779Z-queue-01-two-long-running-chats-restore-live-transcripts-and-drain-isolated-queu/.

Diagnostic receipts, not clean-head certification

All entries below had git HEAD 48cb818 but uncommitted diagnostic source changes. They exited 0 with 1 selected pass / 0 failures / 0 selected skips. They are observations, not recovery receipts proving a causal fix.

Under candidate evals/results/.testkit/:

  • cli-run-1789072401904.json: original durations; product inspector queue-state/cancellation logging.
  • cli-run-1789072751303.json: original durations; queued-event collector across the run.
  • cli-run-1789073088819.json: original durations; synchronous queue-event collection instead of polling.
  • cli-run-1789073476441.json: exploratory 8/8/8-second A tools and 45-second B tool, assertions preserved.
  • cli-run-1789073598736.json, cli-run-1789073670792.json, cli-run-1789073744724.json: bounded three-run short-duration diagnostic stress sequence.
  • cli-run-1789074248031.json: original durations, forced cold Vite optimization; arranged/current timeOrigin both 1789074261390.6; no mid-run reload in Vite log.
  • cli-run-1789074684830.json: original durations; product instrumentation and forced optimization removed; native/provider/log collection retained.

Queue transitions in instrumented original-duration successes show both queued A sends admitted by the global drainer at generation 0, without hold/cancel/clear. Provider receipts matched A1 then A2. This does not explain the earlier red.

The earlier driver commit 27c8d11 was inspected. Its native macOS key-code and stable-click changes were not duplicated: the existing queue helper used direct DOM Enter and the historical queued-row assertions had passed; no link from that patch to this failure was demonstrated.

Historical reds and controls retained

  • b040675 v1 STOP warmup: cli-run-1789067665811.json, cli-run-1789067826869.json, both exit 1. Prompt retained after Enter; no Stop assertions reached.
  • Exact old-base 0b7c0db control STOP v1 passed once: control worktree wt-pr4599-stop-control-0b7c0db9/evals/results/.testkit/cli-run-1789070804919.json. Control used candidate's existing OpenCode 1.18.18 sidecar read-only via PATH because its own prepare-sidecar failed twice in macOS codesign; app state remained isolated. No causal classification of the old STOP red.
  • Candidate 48cb818 and exact clean dev e4e316d control both fail pnpm --dir evals run check:browser, exit 1, at evals/specs/library-mcp-servers-from-config.e2e.test.ts:21:50: raw browser string / TS2345.
  • 2337dae v1/v2 provider-while-shell reds remain at cli-run-1789056031569.json and cli-run-1789056081471.json. Contract was corrected to native next-step steering, not an engine fix.

Final disposition

Implementation/testing stopped explicitly by user. Product instrumentation, shortened timing, and forced Vite cache settings were fully removed. No product/engine change remains in d216. The new commit strengthens early queue-preservation/renderer-continuity assertions and retains diagnostics; it does not resolve the historical cause. Orchestrator may publish completed work with failed/incomplete verification honestly; no all-green or fixed-engine claim is justified.

@github-actions

github-actions Bot commented Sep 10, 2026 •

Copy link
Copy Markdown
Contributor

Warden review summary — Clear

Native findings: 0. Blocking policy matches before consolidation: 0. Full finding text remains in Warden's native checks and review threads. This comment retains only native IDs, severity, skill attribution, and safe locations. Analysis run

Reported trigger coverage (not proof of complete repository or context coverage): diff-security-review (181241 ms), confidentiality-review (298608 ms), spec-provenance-review (260815 ms).

Blockers

  • None.

Advisories

  • None.

Needs recheck

  • None.

Observed review-thread metrics

  • Unique observed run attempts in retained window: 2
  • Distinct heads in retained window: 2
  • Current unresolved Warden threads: 0 of 1 observed
  • Observed resolved/unresolved transitions in retained snapshots: 0 / 0
  • First observed resolved/unresolved (state at first collection, not event time): 1 / 0
  • Precision: unavailable (no adjudications; no TP/FP values are inferred)
  • Observation window: 2/20 run attempts retained; truncated: false
  • Transition snapshot: 1/1 current attributed threads retained (limit 500); truncated: false

Thread states are read-only collection snapshots. These metrics are neither lifetime totals nor exact resolution times, and this summary is not clearance authority.

@diff-warden diff-warden Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Warden security clearance: clear. No blocking findings (security or desktop↔den sync) in this diff (d216706baceda801e064037138c0fd29e94850a6). Automated clearance satisfies the required-review gate only — a human still reviews and merges. Analysis run

@benjaminshafii
benjaminshafii enabled auto-merge (squash) September 10, 2026 21:43
Benjamin Shafii added 19 commits September 10, 2026 14:49

@diff-warden diff-warden Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Warden security clearance: clear. No blocking findings (security or desktop↔den sync) in this diff (522413f35e07408d3cc05df519f795cf1b7ca3ef). Automated clearance satisfies the required-review gate only — a human still reviews and merges. Analysis run

@benjaminshafii

Copy link
Copy Markdown
Member Author

Verified signatures: complete; queue verification remains incomplete

Re-signed the PR history with authorization and pushed using an explicit old-head force-with-lease. GitHub reports all 19 PR commits verified: true, reason: valid.

  • Old head: d216706baceda801e064037138c0fd29e94850a6
  • Signed head: 522413f35e07408d3cc05df519f795cf1b7ca3ef
  • Unchanged final tree: 6f92232de187634e97c21c64ff1b54d07024f33a
  • All intermediate trees, author/message content, merge topology, and upstream parent IDs were preserved. No product or assertion changes.

This fixes signatures only. Historical v1 queue failure and trusted-keyboard provenance gap remain unresolved. Queue journeys were not rerun on this signed head; prior runs are historical, not fresh signed-head proof.

Fresh bare pnpm warden:check exited 0 with three applicable reviews completed and no findings in this run. This does not resolve or waive the earlier synthetic-keydown finding on the identical code. Clear when trusted queue input and final-head runtime proof establish the intended flow. Run 725927ca-2026-09-10T21-57-52-118Z; HEAD above and origin/dev ccb9d89ecd0fdd65ff1e8c57136b51bc259a28cf unchanged before/after. Large server entrypoint skipped under security/confidentiality file-size limits. No full coverage or all-green claim.

This branch was successfully deployed

4 active deployments
Preview – openwork-landing — 522413f3 Deployed Sep 10, 2026 by vercel[bot]
Preview – openwork-app — 522413f3 Deployed Sep 10, 2026 by vercel[bot]
Preview – openwork-den — 522413f3 Deployed Sep 10, 2026 by vercel[bot]
Preview – openwork-diagnostics — 522413f3 Deployed Sep 10, 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