Skip to content

E1: Storage layer — JSONL session file + Storage trait #1

Closed

Description

@ajianaz

Epic E1 (docs/epics.md) — Phase 1a

One JSONL file per session (<session-id>.jsonl): header + append-only commit lines (industry pattern: Claude Code / Codex / pi). All ops behind a single Storage trait; optional SQLite backend feature-gated behind the same trait.

Acceptance criteria

  • JSONL format documented (header, entry/register/usage lines) in docs/ or rustdoc
  • Open file with older format version → replay/migrate cleanly (roundtrip test)
  • Open file with newer format version → hard error with clear message (test)
  • All operations go through the Storage trait; no backend-specific code in callers

Est ~12h. Depends: none.

Activity

  1. added
    enhancement
    on Aug 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions