Skip to content

fix(streamer): preserve pre-roll initialization and trailing events during replay - #12

Merged
akdasa merged 1 commit into
mainfrom
subagent-Issue-5-Fixer---Streamer-Boundary-Sync-self-ec21bf50
Oct 1, 2026
Merged

akdasa merged 1 commit into
mainfrom
subagent-Issue-5-Fixer---Streamer-Boundary-Sync-self-ec21bf50

Conversation

@akdasa

@akdasa akdasa commented Oct 1, 2026

Copy link
Copy Markdown
Member

Resolves #7

Summary of Changes

  1. Pre-roll Event Preservation: Events occurring prior to StartedAt (such as initial window focus and first OCR snapshot) are now clamped into tickIndex: 0 instead of being discarded.
  2. Post-roll Flushing: After the main tick interval loop finishes, any remaining events in the K-Way merge heap are flushed in a final tick batch.
  3. Agent Mapper Robustness: In ToDomainTickBatch, events with minor float/nano rounding variations across boundary edges are safely ingested without silent loss.
  4. Brutal Chaos E2E Dataset: Added dedicated data/emp-boundary-sync.tar.gz recording with matching fixtures in tests/e2e/agent/fixtures/ and tests/e2e/streamer/fixtures/, verified in full E2E pipeline.

@akdasa
akdasa merged commit 4333919 into main Oct 1, 2026
21 checks passed
@akdasa
akdasa deleted the subagent-Issue-5-Fixer---Streamer-Boundary-Sync-self-ec21bf50 branch October 1, 2026 18:49
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.

[Bug] Streamer K-Way merge discards pre-roll initialization events and trailing session events

1 participant