I6
What to build¶
Restart/history paths preserve consistent safe evidence under corruption, quota and crash boundaries.
Source and evidence¶
Repository scientific/architectural review, snapshot 86c8517, item I6.
Classification: documented follow-up; no new defect severity asserted.
Documented follow-up in the review narrative. This is documentation debt or an investigation/profiling requirement, not an additional reproduced production defect. Validate the current implementation before claiming a failure.
Acceptance criteria¶
- [ ] Adversarial checkpoint counts, failures and measurement coverage cannot invoke a candidate before identity and internal consistency validation.
- [ ] Crash-before/after replacement, truncated/oversized reads and interruption recovery retain only complete valid documents.
- [ ] Pinned retention, stale indexes, concurrent recovery and quota boundaries do not delete protected evidence or accept inconsistent records.
- [ ] Characterize recovery at representative bounded history sizes and report its O(total retained bytes) cost without pretending it is constant-time.
- [ ] Preserve Consumer-owned meaning, payload-free evidence, disabled optional-import isolation, safe diagnostics and the non-relaxable Safety Floor.
- [ ] Run the narrowest observable contract, then applicable committed Make gates. Record every command and outcome; update specifications/compatibility evidence for changed public or wire contracts. Run native Collector verification for changed Collector assets and build for packaging changes.
Design guidance¶
Use deterministic filesystem interleavings and fault injection. Keep completed-trial Memento and content-addressed Repository boundaries; no private candidate state or arbitrary serialization. Treat untested leads as hypotheses until observed.
Keep prefactoring narrow and verifiable in this slice. Reuse established owners and structural interfaces; introduce a pattern only when it clarifies a real responsibility or variation point. Do not add consumer vocabulary or private payloads to platform code or evidence. Mocked/local results must not claim hosted, production, accelerator or release qualification.
Blocked by¶
None (can start immediately). Shared-area coordination is useful, but no other review fix is a genuine prerequisite for this slice.
Verification scope¶
Convert the described counterexample or investigation oracle into an observable test at the lowest suitable public boundary. Prefer bounded operation-count or deterministic interleaving evidence to flaky timing assertions; timing guarantees need a declared tolerance and independently owned cleanup. This ticket authorizes remediation/research, not publication or deployment.