Repository navigation
fix(app): bound archive verification before the window timeout - #5014
Conversation
Signed-off-by: Guillaume Loret <[email protected]>
Signed-off-by: Guillaume Loret <[email protected]>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
2 Skipped Deployments
|
Warden review summary — ClearNative 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 (97002 ms), confidentiality-review (143347 ms), spec-provenance-review (210221 ms), desktop-den-sync-review (211065 ms), design-spec-review (239769 ms). Blockers
Advisories
Needs recheck
Observed review-thread metrics
Thread states are read-only collection snapshots. These metrics are neither lifetime totals nor exact resolution times, and this summary is not clearance authority. |
There was a problem hiding this comment.
Warden security clearance: clear. No blocking findings (security or desktop↔den sync) in this diff (32f1242eaabd2b35d4a6b24d110ced9c372392ee). Automated clearance satisfies the required-review gate only — a human still reviews and merges. Analysis run
Signed-off-by: Guillaume Loret <[email protected]>
There was a problem hiding this comment.
Warden security clearance: clear. No blocking findings (security or desktop↔den sync) in this diff (7c1b4732602afa0f419cc2b42e6263b80d89eddd). Automated clearance satisfies the required-review gate only — a human still reviews and merges. Analysis run
Signed-off-by: Guillaume Loret <[email protected]>
There was a problem hiding this comment.
Warden security clearance: clear. No blocking findings (security or desktop↔den sync) in this diff (0ee88980ba136844fde3a36522c1aa8b9598f6b5). Automated clearance satisfies the required-review gate only — a human still reviews and merges. Analysis run
…sion-hang Signed-off-by: Guillaume Loret <[email protected]>
There was a problem hiding this comment.
Warden security clearance: clear. No blocking findings (security or desktop↔den sync) in this diff (eb24c339fee929402e5957cb29d5944ac166bc9e). Automated clearance satisfies the required-review gate only — a human still reviews and merges. Analysis run
Test evidence — archive deadlines settle stalled reads and uncertain writes, preserve caller cancellation, and retain pin and working-session contracts — 0/0 screenshots passed · 1 assertionSHA eb24c33 · engine v1 ✅ 0/0 screenshots passed · 1 assertion · 1 expectations passed · 0 failed · 0 pending verdict unknown · 0 user observations · 0 probes · steps 0/0 ℹ️ ASSERTION — 1. Bounded preflight never sends a late PATCH; uncertain PATCH is not reported as cancellation; holds and busy state recover; caller signals and pin state survivebun test --isolate tests/session-archive-agent-contract.test.tsx tests/opencode-stream-timeout.test.ts tests/opencode-session-native.test.ts tests/session-management-store.test.ts tests/session-management-store.test.ts: 117 pass
tests/session-management-store.test.ts: 117 pass Test run created 2026-09-16T18:59:42.111Z · Source: |
Test evidence — pinned idle sessions archive from the sidebar and mailbox without a focused session; held preflight fails promptly without a late PATCH and recovers — ✅ passedSHA eb24c33 · engine v1 ✅ passed · 5 expectations passed · 0 failed · 0 pending [world] desktop(local) · mock(mcp) · workspace(/tmp/openwork-session-archive-1789585233156-64963-a) · [seed:raw] evalIn() ×22 ℹ️ ASSERTION — 1. Pinned archive completes without a focused conversationOwning-engine archive persisted, sidebar row disappeared, unrelated sessions stayed idle/unarchived, no abort or dialog, route and surface list stayed sessionless.
ℹ️ ASSERTION — 2. Pinned cross-workspace archive completes through the real mailboxHTTP 200; elapsed 554.5726250000007 ms; persisted archive, no unrelated mutation, no navigation or dialog.
ℹ️ ASSERTION — 3. Unpin then archive also succeedsCandidate changed pinned:true to pinned:false, then archived through the UI with no focused conversation; unrelated sessions were preserved.
ℹ️ ASSERTION — 4. Held preflight fails through the requesting channel before five secondsHTTP 200; elapsed 3606.7060000000056 ms; verification_failed; zero additional PATCHes or session mutations, pin retained.
ℹ️ ASSERTION — 5. No late PATCH and no restart needed for mailbox recoveryReleased preflight stayed inert for two seconds. A new request on the same app/mailbox completed in 451.8062079999945 ms with exactly one successful PATCH; unrelated sessions and route unchanged.
Test run created 2026-09-16T19:00:09.815Z · Source: |
|
Final-head verification: Passed at eb24c33. Local isolated dev Electron lane (explicitly authorized): pnpm evals:e2e session-archive-pinned --local --engine v1 exited 0, 1 passed / 0 failed / 0 skipped. pnpm evals:pr specs/session-archive-deadline.test.ts exited 0, 1 passed / 0 failed / 0 skipped; native suites 117 passed / 0 failed. Both exact-head receipts are in the test-evidence comments. The wrapper publisher displays verdict unknown for the app-less wrapper, but its exit/result and recorded assertion are passing. Merge gate checked: openwork-tests-required PASS, Warden APPROVED at this exact SHA, no failed required checks, zero review threads, every branch commit signed and signed off, no .github/ .warden/ or warden.toml changes in the PR diff. This fixes deadline/cancellation containment, not a proven cause of the original installed UI timeout. Follow-up RCA is investigating real renderer connection pressure and mailbox liveness separately. |
Problem
Archive verification could outlive the five-second mailbox receipt. SDK Request signals were overwritten; stalled bodies could keep archive pending. Healthy pinned archives pass even with production reverted: pin causality and the original first no-window response remain unproven.
Change
Bound agent archives at 3.5 seconds (human: 15 seconds), preserve cancellation, prevent late preflight PATCHes, distinguish verification failure from uncertain writes, and release busy/hold state. Preserve pin preferences and working-session safeguards.
Oracle decision
No oracle change or streaming exception. CI used Bun 1.3.14, whose Request clone retains the input signal for an explicit null override; Bun 1.4.0 does not. Forward the explicit override through the wrapper. Keep the new non-streaming assertion unchanged; streams remain untimed.
Matrix / verification
Pinned UI / cross-workspace affordance / unpin→archive / no focused session / held body / no late PATCH / same-app recovery: Passed; revert-fails confirmed.
pnpm evals:e2e session-archive-pinned --local --engine v1: 1 passed.pnpm evals:pr specs/session-archive-deadline.test.ts: 1 passed; 110 native tests.pnpm --filter @openwork/app test:coreon CI Bun: 292 passed.New head:
7c1b47326; regenerated head-matching evidence below. The requestedtest -- opencode-stream-timeoutactually runs 254 files and has eight broader failures, documented without claiming pre-existing status.RCA:
reports/rca-archive-pinned-session-hang-2026-09-14.md. Do not merge.