Context
#21601's hosted record (issuecomment-7051163706) showed a Workstation cold boot where Reset's projection cycle queued behind a refresh that never settled. The record names Reset's own cycle (waitedForTail: true, no startedAt) but not the refresh it waited on, so nobody can say which await hung. My first answer, PR #21802 as first opened, bounded the wait with a timeout. Sophie's review refuted it: a timed-out refresh that later resumes can still retire a pane the successor already adopted, because its writes inside the reconciler's own awaits are not fenced. That approach is withdrawn; this ticket is what survives of it.
(Body rewritten 2026-11-21 17:28Z. It first asked for naming and fixing the await after the timeout; the fix of the hang itself stays with #21601.)
The Problem
A cycle waiting behind a refresh that never settles knows nothing about that refresh. The record a test reads on a miss (readProjectionState in test/playwright/component/workstation/WorkstationBoot.spec.mjs) prints projectionCycle.timing, which is the waiting cycle's, so the phase where the earlier refresh stopped is lost.
The Architectural Reality
- Each
Neo.dashboard.dock.projection.Cycle stamps its phases: startedAt, reconciled, flipPlayed, settledAt.
Workspace#onDockZoneDocumentChange creates the next cycle while projectionCycle still points at the one before it (src/dashboard/dock/Workspace.mjs, where refreshPromise is chained).
- The candidate awaits are
host.promiseUpdate() before the first mount, flip.captureFirst(), a collaborator's syncDockProjection(), and Workstation's afterRefreshDockWorkspace (waitForOverflowMenu, await played, the trailing host.promiseUpdate()).
Design authority: n/a — this adds a record; projection behavior is unchanged.
The Fix
The Workspace hands each new cycle the live timing of the cycle before it, as predecessorTiming. The cycle drops that reference once its tail settles, so only a cycle stalled behind an unsettled refresh holds one, and no chain of cycles stays alive. The cold-boot test's miss record prints it.
Acceptance Criteria
Out of Scope
- Fixing the hung await, and the cold-boot witness: #21601.
- Any timeout on the chain (withdrawn, see Context).
Related
#21601 · PR #21802 · #21644 (the miss record)
Live latest-open + closed sweep: latest 20 open plus all-state searches ("refresh never settles", "dock refresh await hang", "cold-hydrate projection") at 2026-11-21T16:45Z; 63 open (red band); #21601 is the parent symptom, #21579 a closed sibling hang. A2A: latest 30 messages, no claim. Own assignments: #21601 the only one on this surface.
Retrieval Hint: "dock projection cycle predecessorTiming, the stalled refresh's phase in the cold-boot miss record"
Context
#21601's hosted record (
issuecomment-7051163706) showed a Workstation cold boot where Reset's projection cycle queued behind a refresh that never settled. The record names Reset's own cycle (waitedForTail: true, nostartedAt) but not the refresh it waited on, so nobody can say which await hung. My first answer, PR #21802 as first opened, bounded the wait with a timeout. Sophie's review refuted it: a timed-out refresh that later resumes can still retire a pane the successor already adopted, because its writes inside the reconciler's own awaits are not fenced. That approach is withdrawn; this ticket is what survives of it.(Body rewritten 2026-11-21 17:28Z. It first asked for naming and fixing the await after the timeout; the fix of the hang itself stays with #21601.)
The Problem
A cycle waiting behind a refresh that never settles knows nothing about that refresh. The record a test reads on a miss (
readProjectionStateintest/playwright/component/workstation/WorkstationBoot.spec.mjs) printsprojectionCycle.timing, which is the waiting cycle's, so the phase where the earlier refresh stopped is lost.The Architectural Reality
Neo.dashboard.dock.projection.Cyclestamps its phases:startedAt,reconciled,flipPlayed,settledAt.Workspace#onDockZoneDocumentChangecreates the next cycle whileprojectionCyclestill points at the one before it (src/dashboard/dock/Workspace.mjs, whererefreshPromiseis chained).host.promiseUpdate()before the first mount,flip.captureFirst(), a collaborator'ssyncDockProjection(), and Workstation'safterRefreshDockWorkspace(waitForOverflowMenu,await played, the trailinghost.promiseUpdate()).Design authority: n/a — this adds a record; projection behavior is unchanged.
The Fix
The Workspace hands each new cycle the live
timingof the cycle before it, aspredecessorTiming. The cycle drops that reference once its tail settles, so only a cycle stalled behind an unsettled refresh holds one, and no chain of cycles stays alive. The cold-boot test's miss record prints it.Acceptance Criteria
null. Behind a refresh no cycle owns (a direct repair), it holds{owner: 'unknown'}, never an older cycle's timing.Out of Scope
Related
#21601 · PR #21802 · #21644 (the miss record)
Live latest-open + closed sweep: latest 20 open plus all-state searches ("refresh never settles", "dock refresh await hang", "cold-hydrate projection") at 2026-11-21T16:45Z; 63 open (red band); #21601 is the parent symptom, #21579 a closed sibling hang. A2A: latest 30 messages, no claim. Own assignments: #21601 the only one on this surface.
Retrieval Hint: "dock projection cycle predecessorTiming, the stalled refresh's phase in the cold-boot miss record"