Requirement · active · spec/exacly/ledger-history.yaml
REQ-029 Create and audit an integrity-index ledger copy
Establish explicit copy-only version-3 integrity baselines and fresh semantic audit without enabling operational reuse or replacing the working ledger.
Why it exists
How it is realized
REQ-029Create and audit an integrity-index ledger copy Requirement main: verification passed- implements ←
APP-015Ledger history validation Application- depends_on →
APP-010Execution binding registry Application- depends_on →
APP-007Verification planner Application- depends_on →
APP-003Query Application - depends_on →
APP-006Readiness policy evaluator Application- depends_on →
APP-003Query Application (above)
- depends_on →
- reads →
INFO-001Model config Information (above) - reads →
INFO-002Model state Information (above)
- depends_on →
- depends_on →
APP-008GitHub verification evidence admission Application - depends_on →
INF-003Private execution ledger Infrastructure - reads →
INFO-001Model config Information (above) - reads →
INFO-002Model state Information (above) - reads →
INFO-003Execution bindings Information- stores ←
INF-003Private execution ledger Infrastructure (above)
- stores ←
- writes →
INFO-003Execution bindings Information (above)
- depends_on →
- depends_on →
APP-011Execution ledger maintenance Application- depends_on →
APP-010Execution binding registry Application (above) - depends_on →
INF-003Private execution ledger Infrastructure (above) - reads →
INFO-003Execution bindings Information (above) - reads →
INFO-004Completion intents and receipts Information- stores ←
INF-003Private execution ledger Infrastructure (above)
- stores ←
- reads →
INFO-006Historical integrity baselines and semantic verdicts Information- stores ←
INF-003Private execution ledger Infrastructure (above)
- stores ←
- writes →
INFO-003Execution bindings Information (above) - writes →
INFO-004Completion intents and receipts Information (above) - writes →
INFO-006Historical integrity baselines and semantic verdicts Information (above)
- depends_on →
- depends_on →
APP-012Verification completion reconciler Application- depends_on →
APP-002Refresh Application (above) - depends_on →
APP-006Readiness policy evaluator Application (above) - depends_on →
APP-008GitHub verification evidence admission Application (above) - depends_on →
APP-009Verification reconciliation preview Application- depends_on →
APP-006Readiness policy evaluator Application (above) - depends_on →
APP-007Verification planner Application (above) - depends_on →
APP-008GitHub verification evidence admission Application (above) - depends_on →
APP-010Execution binding registry Application (above) - reads →
INFO-001Model config Information (above) - reads →
INFO-002Model state Information (above) - reads →
INFO-003Execution bindings Information (above)
- depends_on →
- depends_on →
APP-010Execution binding registry Application (above) - depends_on →
INF-003Private execution ledger Infrastructure (above) - reads →
INFO-001Model config Information (above) - reads →
INFO-002Model state Information (above) - reads →
INFO-003Execution bindings Information (above) - reads →
INFO-004Completion intents and receipts Information (above) - writes →
INFO-002Model state Information (above) - writes →
INFO-004Completion intents and receipts Information (above)
- depends_on →
- depends_on →
INF-003Private execution ledger Infrastructure (above) - reads →
INFO-003Execution bindings Information (above) - reads →
INFO-004Completion intents and receipts Information (above) - reads →
INFO-006Historical integrity baselines and semantic verdicts Information (above) - writes →
INFO-003Execution bindings Information (above) - writes →
INFO-004Completion intents and receipts Information (above) - writes →
INFO-006Historical integrity baselines and semantic verdicts Information (above)
- depends_on →
- implements ←
main config 94cbae926e86
| Assessment | Reason | Evidence | At |
|---|---|---|---|
| verification passed tests | All 160 selected test cases passed | 2026-11-22T17:48:12Z |
Findings
None.
Config
- owner
- exacly-maintainers
- lifecycle
- active
- last_reviewed_at
- 2026-10-29
- statement
- Given an explicitly selected clean version-2 execution ledger, create a fully validated audit-only version-3 copy with exact retained history and integrity baselines, or audit an existing version-3 copy read-only against those baselines and freshly re-derived semantics, preserving source authority without enabling operational semantic reuse of version 3.
- acceptance_criteria
- executions index is an explicit offline maintenance command requiring a clean supported version-2 source and a new private destination outside Git working trees, model folders and protected inputs; it never initializes, repairs or modifies the source ledger and rejects unresolved prepared intents even in dry-run.
- Dry-run validates the actual source and destination plan and reports ready without creating an output directory, changing source bytes or writing an index.
- Conversion performs full version-2 schema, relationship and semantic proof validation before creating required byte baselines and terminal semantic verdicts; it preserves exact historical rows, identities, proof, state bytes, receipts, supersession history and watermarks rather than importing unchecked verdicts.
- Required baselines cover the complete retained row set and bind raw typed values with explicit field identities, lengths, order and presence, including binding and request dependencies, phases and exact receipts or receipt absence; missing, extra, altered or inconsistently associated baseline data fails audit without repair or resealing.
- Record the independently installed validation profile with terminal verdicts; stored profile declarations do not grant authority, and full audit freshly validates all retained semantics regardless of a matching positive verdict.
- The new private bundle contains an exact raw version-2 source copy, an indexed version-3 ledger and a versioned manifest; validate and synchronize the complete output before atomic publication without overwrite, preserve source files on failure, and retain complete published output for inspection if final durability is uncertain.
- executions audit reads an explicitly selected version-3 copy without changing its bytes, checks required integrity baselines and global relationships, and freshly re-derives every retained semantic transition; corruption or unsupported inputs cannot become a successful audit through cached results.
- Index and audit diagnose unsupported formats and existing journal or WAL sidecars without implicit recovery; ordinary execution and completion commands continue to refuse version 3, and existing version-1/version-2 maintenance behavior and report formats remain unchanged.
- History reports use their independent versioned format and identify conversion or audit, source and copy, selected profile, checked scope and audit-only operational eligibility; dry-run ready, indexed output and passed audit succeed, audit findings return a non-success status, and invalid inputs or operational errors are explicit errors.
- Index and audit share a finite nonnegative lock-wait budget with default 30 seconds across required locks and SQLite waits; zero permits an immediate attempt, and timeout leaves source history unchanged without limiting whole-operation copying or computation.
- The version-3 copy is audit-only and does not authorize operational cutover, registration, completion, semantic reuse, operational index-aware writes, backup or recovery; operational use requires separate explicit activation into version 4 under REQ-028.
- Conversion and audit do not publish state, remove pending work, fetch live evidence, dispatch candidates, close external tasks, garbage-collect proof or establish a performance improvement; digests and reports do not authenticate historical origin, latest global freshness or hostile same-user integrity.
- verification_method
- Integrity transcript, conversion, audit, CLI and publication-failure tests including altered proof or index rows, exact source preservation, dry-run and fresh semantic derivation.
- observe
- tests
- cases
- python/tests/test_execution_history.py::*
- python/tests/test_execution_history_cli.py::*
- python/tests/test_execution_history_faults.py::*
- python/tests/test_history_distribution.py::*