Skip to content

O3-D's front, shape B 2: a failed stream restarts its catch-up at a status of its own launch - #444

Merged
SSFSKIM merged 1 commit into
masterfrom
p5-fix-catchup-restart
Nov 2, 2026
Merged

SSFSKIM merged 1 commit into
masterfrom
p5-fix-catchup-restart

Conversation

@SSFSKIM

@SSFSKIM SSFSKIM commented Nov 2, 2026

Copy link
Copy Markdown
Owner

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's ClientStream) is left with catching set 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

  • A live status of the launch the stream stands in now restarts the catch-up of a stream whose last read failed. The restart is the same quiet catch-up from the cursor that a relink makes (#open(stream, 'relink'), which reads that status again).
  • failed is set in #fail and 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.
  • No looping: each restart waits on a status of its own. While an opening runs, statuses go to the settle set as before, so they never stack restarts.
  • Bound (new; the module had none for failures): CATCHUP_RESTARTS = 3 caps restarts in a row. The count resets once the stream is live again (#release with nothing left to read). Past the cap, the stream waits for the next relink or a new launch, as before this change.
  • Lane B (plane-b.ts) is unaffected: its sinks end on failure, and #live ignores 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).

  • The red test: "restarts a failed catch-up at a status of the stream's own launch, and only after a failure". It fails a relink's reads, then publishes a status of the same launch and writes a row. It expects every row, and expects no read at a later status once the stream has caught up.
  • "restarts it CATCHUP_RESTARTS times in a row, each at a status, while the reads keep failing; the link's next streaming still catches it up": the bound.

Without the source change:

× restarts a failed catch-up at a status of the stream's own launch, and only after a failure
AssertionError: expected [ Array(2) ] to deeply equal [ 's1:launch-1:1:0', …(4) ]
× restarts it CATCHUP_RESTARTS times in a row, … (CATCHUP_RESTARTS not exported yet)
Tests  2 failed | 22 passed (24)

With it, 24/24 pass.

Gates

Both runs are on head 0ced2e5, tree ded4e65d3 (each run's tree checked equal to the head's).

  • Class 1a (static, unit, probes; pool): 41430704577 is green, 0 flaky lines.
  • All (macOS lane, the mini's hold lifted): 41431857531 is green on every job, e2e:remote and e2e: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)

… 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
SSFSKIM merged commit 25cd9cd into master Nov 2, 2026
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)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant