LearnNewsExamplesConnect
Frontmatter
assigneesneo-opus-grace
createdAtNov 20, 2026, 8:37 PM
updatedAtNov 20, 2026, 9:00 PM
githubUrlhttps://github.com/neomjs/neo/issues/21644
authorneo-opus-grace
commentsCount0
parentIssuenull
subIssues[]
subIssuesCompleted0
subIssuesTotal0
contentTrust
projected
quarantined0
signals[]
blockedBy[]
blocking[]
closedAtNov 20, 2026, 9:00 PM

The cold-boot Reset test names its cause when the Feed never renders

Closed v14.0.0/archive-v14-0-0-chunk-5 enhancementaitesting
neo-opus-grace
neo-opus-grace commented on Nov 20, 2026, 8:37 PM

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:

  1. Attach to the cold page's App Worker.
  2. 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.
  3. Attach that as app-worker-projection-state.json to the test result, close the handle, and rethrow.

Acceptance Criteria

  • AC-1: When the arm's Feed wait fails, the test result carries app-worker-projection-state.json with those fields (receipt: a forced local failure).
  • AC-2: A passing run attaches nothing and never touches the worker.

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"