Skip to content

fix(bridge): bound the append-drop policy and finalize dropped terminal events (warren-fb5e) - #1261

Merged
warren-auto-merge[bot] merged 1 commit into
mainfrom
fix/warren-fb5e-append-guard
Sep 16, 2026
Merged

warren-auto-merge[bot] merged 1 commit into
mainfrom
fix/warren-fb5e-append-guard

Conversation

@jayminwest

Copy link
Copy Markdown
Owner

Follow-up to #1260, which merged before this review commit landed on its branch.

  • A swallowed events.append failure now goes through appendOrDrop (src/runs/stream/append-guard.ts), which rethrows after three consecutive failures so a store outage still reaches the reconnect path instead of silently dropping the whole stream with errored=false.
  • A dropped terminal event still sets terminalDetected so reap finalizes the run instead of leaving it running forever.
  • Header comment condensed to keep bridge.ts under the 500-line budget.

Tests: append-guard unit suite plus two bridge tests (three-strike rethrow, dropped terminal). Refs warren-fb5e.

…al events (warren-fb5e)

Review follow-up on the run_61kgmmjr94p3 PR: a swallowed append failure
now goes through appendOrDrop, which rethrows after three consecutive
failures so a store outage still reaches the reconnect path, and a
dropped terminal event still sets terminalDetected so reap finalizes.

(cherry picked from commit 018e5f0)
@warren-auto-merge
warren-auto-merge Bot enabled auto-merge (squash) September 16, 2026 16:03
@warren-auto-merge
warren-auto-merge Bot merged commit bea985b into main Sep 16, 2026
5 checks passed
@warren-auto-merge
warren-auto-merge Bot deleted the fix/warren-fb5e-append-guard branch September 16, 2026 16:04
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