Summary
Build the foundation for #324: a durable repo-scoped AutoReviewRun store in code-core, near the existing review lock/epoch state.
This slice should not change prompt injection or LLM behavior yet. It creates the durable source of truth that later TUI/exec/ledger work will use.
Scope
- Define
AutoReviewRun, status/phase/freshness enums, finding digests, and sidecar paths.
- Store records under the existing repo-scoped review state area in
CODE_HOME.
- Prefer simple JSON/NDJSON plus atomic writes/compaction unless a concrete locking issue requires SQLite.
- Persist terminal output/detail sidecars by stable run id.
- Add load/compact/reconcile APIs.
- On restart/load, mark orphaned in-flight records as lost/cancelled only after reconciling available AgentManager/worktree/lock evidence.
Acceptance Criteria
Relationships
Parent: #324
Evidence archive: #76
Finish Line
Every Code has a repo-scoped durable AutoReviewRun store that records run lifecycle state, survives restart, reconciles orphaned in-flight runs, and preserves terminal review output sidecars without changing assistant prompt injection yet.
Summary
Build the foundation for #324: a durable repo-scoped AutoReviewRun store in
code-core, near the existing review lock/epoch state.This slice should not change prompt injection or LLM behavior yet. It creates the durable source of truth that later TUI/exec/ledger work will use.
Scope
AutoReviewRun, status/phase/freshness enums, finding digests, and sidecar paths.CODE_HOME.Acceptance Criteria
Relationships
Parent: #324
Evidence archive: #76
Finish Line
Every Code has a repo-scoped durable AutoReviewRun store that records run lifecycle state, survives restart, reconciles orphaned in-flight runs, and preserves terminal review output sidecars without changing assistant prompt injection yet.