Background
Stream Event Protocol v1 implements reconnect replay entirely in memory (StreamEventHistory caps at MAX_RUNS=32 / MAX_EVENTS_PER_RUN=2000). Restart loses every run history, and buffer eviction is silent. ADR 0001 defers event-log persistence explicitly (open question #1).
Requirements
- Append-only JSONL event log next to the kernel store
- Cross-restart replayStream works for runs recorded before this process started
- Bounded disk usage; truncated/unknown run still returns recoverable:false
- Disk failure degrades to in-memory buffering without breaking the live stream
- Log directory supplied by the app (userData store dir)
Out of scope
Acceptance
Related
Background
Stream Event Protocol v1 implements reconnect replay entirely in memory (StreamEventHistory caps at MAX_RUNS=32 / MAX_EVENTS_PER_RUN=2000). Restart loses every run history, and buffer eviction is silent. ADR 0001 defers event-log persistence explicitly (open question #1).
Requirements
Out of scope
Acceptance
Related