Repository navigation
Description
Context
A completed tracker can announce its completion again after a page reload. In #4314's full unit selection, three viewport cases in packages/ui-react/tests/tracker-runtime.test.ts:284 failed a reload announces nothing: expected an empty live region, received The voyage home is done. The test and tracker product code are unchanged by that PR.
Unchanged main 7e861bdb3, with its own preload, passed 18 targeted repetitions and 26 cases across two complete-file repetitions under CPU load. Those passing checks do not establish an unchanged-main failure.
A controlled main reproduction does establish the ordering sensitivity: add only await Bun.sleep(2000) immediately after the scripted backend emits its existing result frame (around line 77), leaving production code and every assertion unchanged. The same cold-reload assertion then fails in all six viewport variants: 7 pass / 6 fail across 13 cases. The temporary fixture change was restored after the run. This represents an asynchronous backend that emits its result and still has cleanup to await. The diagnostic patch and before/after logs are retained separately; this is not presented as an unmodified-test receipt. The exact internal state transition responsible remains to be traced.
Out of scope
Do not silence real background-completion announcements, weaken the cold-hydration assertion, or require every backend to return immediately after emitting its result. No native guard authority or product deadline change.
Scope
Trace tracker recovery, live-frame delivery and the completion of backend finalization across a reload. Prevent already-completed work from being announced as a new completion during cold hydration.
Acceptance criteria
- Cold hydration of a completed tracker announces nothing, including while backend cleanup is still pending after the result frame.
- A genuinely new background completion is announced once.
- Preserve tracker times, visibility/seen proofs and clearing behavior.
- Replace the diagnostic delay with a controlled ordering gate in the regression proof, and demonstrate a killing mutation.
Verification
Run the real Chrome tracker-runtime file at main with its own preload. Record the passing unchanged control separately from the reproduction with delayed fixture cleanup. Assert the original empty-live-region check, not merely a process exit.
Found during #4314's full-category proof. Filed without a milestone and not fixed in the guard PR. The native-isolation guard makes this timing window easier to observe; the controlled main result proves it can occur without that guard, while the precise internal cause is still open.
Contract impact
None expected; preserve existing completion and cold-hydration behavior.
2026-11-23 triage at main a3395c4: duplicate of #3994 (same assertion, same controlled late-return reproduction, cause traced to the recovery read); see the triage comment. needs: human to close it as a duplicate; not agent-ready.
Activity
schlessera commentedon Nov 22, 2026
Fable 25 FIX 5 — unmodified-main reproduction now confirmed.
On one boat VM, using separate clean checkouts and the same four CPU burners, I ran the complete tracker-runtime.test.ts file three times at a7240d4 and three times at main 7e861bd, with each checkout's own preload. No injected sleep or other source edit was used.
R1. PR head: 39 passed, 0 failed (249.63 s).
R2. Unmodified main: 38 passed, 1 failed (197.62 s). The 1280 desktop dark case failed at line 284:
a reload announces nothing, expected an empty live region, receivedThe voyage home is done.This matches the earlier complete-category assertion.R3. This supersedes the earlier controlled-delay-only evidence. It establishes that the failure can occur without #4314's guard; it does not establish the internal ordering cause. No tracker production code or assertion was changed.
schlessera commentedon Nov 23, 2026
2026-11-23 triage at main a3395c4: this is the failure and cause already attributed in #3994, which is open and
agent-ready."a reload announces nothing"atpackages/ui-react/tests/tracker-runtime.test.ts:284,Received: "The voyage home is done.".runningafter its result is published (liveRequests,packages/ui-server/src/ws/recovery.ts:77-96), so the reloaded page takesrunningas its baseline and announces the later change todone. Snapshot-on-connect already reports such a turn asidle(const finishSnapshot,packages/ui-server/src/ws/connection.ts:169-177). Both anchors hold at a3395c4.The unmodified-main sighting in the comment above (1 of 3 full-file runs under CPU load at 7e861bd) is new natural-failure evidence for #3994.
Recommended action (needs a maintainer, outside triage): close this as a duplicate of #3994. Added
needs: humanuntil then; notagent-ready.schlessera commentedon Nov 23, 2026
Closed as a duplicate of #3994 by maintainer decision (2026-11-23): same assertion and trigger. Further evidence belongs on #3994.