Skip to content

Files Changed: complete bounded evidence sidecar lifecycle #1104

Description

@jeonghun-jj-lee

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.

Activity

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

Metadata

Metadata

Labels

hitlNeeds human review before merge

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions