Context
#21601's cold-boot Reset failure hit hosted CI twice on 2026-11-20, on unrelated PRs (runs 44778016222 and 44800290913; #21601 issuecomment-7048832541). It never reproduced locally: 105/105 in CI order, 10/10 at 4× CPU. Both failure snapshots show the same end state: Reset committed (Undo 1), and the dock still shows the cold-boot layout without the Feed.
The Problem
Four mechanisms remain open (#21601 issuecomment-7047394740), and each leaves the same DOM, so a CI failure today carries no evidence of which one it was:
- Reset's projection is starved behind an await of the cold-hydrate cycle that never settles.
- It started and never settled.
- It stood down.
- It failed silently:
Commit.complete turns a projection rejection into a receipt, and resetTopology swallows refreshPromise rejections.
The Architectural Reality
Design authority: n/a. This adds test diagnostics; no product behavior changes.
test/playwright/sharedWorkerAppWorker.mjs's attachPageSharedAppWorker binds a page's own SharedWorker App Worker over CDP and returns an evaluate handle. The handle must close before its page or context goes, or the worker stops answering.
- The main dock workspace stamps each projection on
projectionCycle.timing (queuedAt, startedAt, then reconciled, flipPlayed and settledAt; src/dashboard/dock/projection/Cycle.mjs). It also keeps refreshPromise, scheduledProjection and departedProjection.
- Attaching before the Reset click would perturb the race. Attaching after the miss reads the state the miss left behind.
The Fix
In the cold-boot Reset arm of test/playwright/component/workstation/WorkstationBoot.spec.mjs, when the final Feed wait fails:
- Attach to the cold page's App Worker.
- Read the main dock workspace's
projectionCycle.timing, whether its refreshPromise settles within 2 s (settled, rejected or pending), whether scheduledProjection.document is its dockModel, and whether a departedProjection is parked.
- Attach that as
app-worker-projection-state.json to the test result, close the handle, and rethrow.
Acceptance Criteria
Out of Scope
- Fixing the mechanism (#21601).
Related
#21601, #21209, #21579 (a headless promiseUpdate hang), #18820 (a mount settles parked promises).
Live latest-open + closed sweep: checked latest 20 open + open and closed search (WorkstationBoot, projection state diagnostics; Out of Scope / Avoided Traps read on hits) at 2026-11-20T19:37Z; no equivalent found. Prior art cited: #21579, #18820. Backlog band: 84 open (red).
A2A claim sweep: latest 30 lane-claim messages; no claim on WorkstationBoot or #21601's diagnostics.
MC sweep: "Workstation cold boot Reset test failure diagnostics app worker projection state on timeout", 5 results, no prior decision found.
Own-assignment sweep: #21601 is the parent this serves; no other overlap.
Origin Session ID: 35869811-c1f7-4381-80fd-ced9de7082b5
Retrieval Hint: "cold-boot Reset test attaches app worker projection state on failure; starved vs stuck vs failed"
Context
#21601's cold-boot Reset failure hit hosted CI twice on 2026-11-20, on unrelated PRs (runs 44778016222 and 44800290913; #21601 issuecomment-7048832541). It never reproduced locally: 105/105 in CI order, 10/10 at 4× CPU. Both failure snapshots show the same end state: Reset committed (
Undo 1), and the dock still shows the cold-boot layout without the Feed.The Problem
Four mechanisms remain open (#21601 issuecomment-7047394740), and each leaves the same DOM, so a CI failure today carries no evidence of which one it was:
Commit.completeturns a projection rejection into a receipt, andresetTopologyswallowsrefreshPromiserejections.The Architectural Reality
Design authority: n/a. This adds test diagnostics; no product behavior changes.
test/playwright/sharedWorkerAppWorker.mjs'sattachPageSharedAppWorkerbinds a page's own SharedWorker App Worker over CDP and returns anevaluatehandle. The handle must close before its page or context goes, or the worker stops answering.projectionCycle.timing(queuedAt,startedAt, thenreconciled,flipPlayedandsettledAt;src/dashboard/dock/projection/Cycle.mjs). It also keepsrefreshPromise,scheduledProjectionanddepartedProjection.The Fix
In the cold-boot Reset arm of
test/playwright/component/workstation/WorkstationBoot.spec.mjs, when the final Feed wait fails:projectionCycle.timing, whether itsrefreshPromisesettles within 2 s (settled, rejected or pending), whetherscheduledProjection.documentis itsdockModel, and whether adepartedProjectionis parked.app-worker-projection-state.jsonto the test result, close the handle, and rethrow.Acceptance Criteria
app-worker-projection-state.jsonwith those fields (receipt: a forced local failure).Out of Scope
Related
#21601, #21209,
#21579(a headlesspromiseUpdatehang),#18820(a mount settles parked promises).Live latest-open + closed sweep: checked latest 20 open + open and closed search (
WorkstationBoot,projection state diagnostics; Out of Scope / Avoided Traps read on hits) at 2026-11-20T19:37Z; no equivalent found. Prior art cited:#21579,#18820. Backlog band: 84 open (red). A2A claim sweep: latest 30lane-claimmessages; no claim on WorkstationBoot or #21601's diagnostics. MC sweep: "Workstation cold boot Reset test failure diagnostics app worker projection state on timeout", 5 results, no prior decision found. Own-assignment sweep: #21601 is the parent this serves; no other overlap.Origin Session ID: 35869811-c1f7-4381-80fd-ced9de7082b5
Retrieval Hint: "cold-boot Reset test attaches app worker projection state on failure; starved vs stuck vs failed"