Repository navigation
O3-D's front, shape B 2: a failed stream restarts its catch-up at a status of its own launch - #444
Merged
Merged
Conversation
… it at a live status of the launch it stands in, from its cursor as at the link's next streaming; CATCHUP_RESTARTS (3) bounds the restarts in a row until it is live again, after which it waits for the next relink or a new launch as before; red-first in front-streams.test.ts Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
SSFSKIM
added a commit
that referenced
this pull request
Nov 2, 2026
…he park order, the catch-up restart, O16's render reading); shape B's row 2 closed, the hosted row's signature (23), the discover family tallied Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
SSFSKIM
added a commit
that referenced
this pull request
Nov 2, 2026
…o p5-o17 Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What was wrong
Tracker row "O3-D's front, shape B 2" (#442's Unresolved Review Findings). In
src/shared/host/stream-catchup.ts, a read that fails ends the stream for its reader. A reader that keeps the stream (the front'sClientStream) is left withcatchingset and no read flow. Live events of its launch are then dropped, and a live status of its own launch (status.launchId === stream.epoch) was only forwarded as a snapshot. Only the link's next streaming (relinked) or a new launch restarted the catch-up. So a session whose catch-up failed once, for example on a successor's read past its adoption bound (D65(5)), stayed behind: the pane stopped updating.The fix
#open(stream, 'relink'), which reads that status again).failedis set in#failand cleared when an opening or a journal read starts. A status reaching a healthy stream, or one whose catch-up is already running, restarts nothing.CATCHUP_RESTARTS = 3caps restarts in a row. The count resets once the stream is live again (#releasewith nothing left to read). Past the cap, the stream waits for the next relink or a new launch, as before this change.plane-b.ts) is unaffected: its sinks end on failure, and#liveignores an ended sink.Red before the fix
Both tests are in
src/mawsd/front-streams.test.ts. The module has no test file of its own, and its kept-stream failure rules are already tested there (fix wave B scalpel-2#1's case).Without the source change:
With it, 24/24 pass.
Gates
Both runs are on head 0ced2e5, tree ded4e65d3 (each run's tree checked equal to the head's).
e2e:remoteande2e:lane-a(plane B's owners of the module) included, with 0 flaky lines.Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)