> [!IMPORTANT] > **Problem** — Evidence sidecar publication and cleanup require bounded lifecycle behavior independent of receipt/metadata reservation. > **Approach** — Store evidence atomically before receipt reference; preserve metadata-only overflow and idempotent cleanup/retention. > **Scope** — in: evidence byte budget, atomic sidecar files, orphan cleanup, root deletion, retention · out: root receipt/metadata reservation and compatibility paging. ## Acceptance Criteria - [ ] Evidence above max_evidence_bytes yields metadata-only receipts. - [ ] Interrupted evidence publication leaves removable orphans and no invalid committed reference. - [ ] Root deletion and terminal retention remove sidecar evidence idempotently. ## Testing Decisions Extend receipt storage tests with evidence-overflow, interruption, cleanup, deletion, and retention fixtures. ## Key Decisions Evidence is host-local and never in session database or legacy output. ## Constraints & Invariants Cleanup cannot generate session-visible receipts. ## Source Part of #1089 and #972. Blocked by the root-budget reservation slice.
Important
Problem — Evidence sidecar publication and cleanup require bounded lifecycle behavior independent of receipt/metadata reservation.
Approach — Store evidence atomically before receipt reference; preserve metadata-only overflow and idempotent cleanup/retention.
Scope — in: evidence byte budget, atomic sidecar files, orphan cleanup, root deletion, retention · out: root receipt/metadata reservation and compatibility paging.
Acceptance Criteria
Testing Decisions
Extend receipt storage tests with evidence-overflow, interruption, cleanup, deletion, and retention fixtures.
Key Decisions
Evidence is host-local and never in session database or legacy output.
Constraints & Invariants
Cleanup cannot generate session-visible receipts.
Source
Part of #1089 and #972. Blocked by the root-budget reservation slice.