Skip to content

[Reliability] Persist stream event log so replay survives restarts #75

Description

@sjr666666

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

  1. Append-only JSONL event log next to the kernel store
  2. Cross-restart replayStream works for runs recorded before this process started
  3. Bounded disk usage; truncated/unknown run still returns recoverable:false
  4. Disk failure degrades to in-memory buffering without breaking the live stream
  5. Log directory supplied by the app (userData store dir)

Out of scope

Acceptance

Related

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

claimedClaimed by a contributor and currently in progress

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions