Skip to content

Extract the event log codec used by append and replay #59

@ThomasK33

Description

@ThomasK33

What to build

Deepen event-log parsing and replay validation into a shared event-log codec module. EventLog.open(), replay loading, and export/offline replay readers should rely on one implementation for JSONL parsing, size limits, record validation, and contiguous sequence checks.

Acceptance criteria

  • The event-log size limit is defined in one place and used by append/hydration and replay readers.
  • JSONL parsing and contiguous sequence validation are shared between src/host/eventLog.ts and src/host/replay.ts.
  • Event record shapes and public replay/export behavior remain unchanged.
  • Existing event-log unit tests, replay unit tests, and event-log integration tests still pass.

Blocked by

None - can start immediately.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or improvementready-for-agentFully specified, ready for an AFK agent

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions