Add DD-469 restore identity and reserved erasure proof #20
No reviewers
Labels
No labels
epic
needs-info
needs-triage
ready-for-agent
ready-for-human
svd:fire
svd:go
svd:hold
svd:respec
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
dev/attention-mind-mcp!20
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "feat/svd-dev-attention-mind-mcp-15-dd-469-recovery-proof-a-re-947c70c2"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Add an isolated restore-identity proof for #15. It models retained identity, disposition and reserved erasure capacity after restoring an older backup, and exposes failures in the held design and six deliberately broken variants.
The approved correction makes implicit test requests choose unused command scopes after partial expiry. Explicit request IDs retain replay semantics.
Evidence
occurrence_exists, preserving the handled item, and reserved Forget succeeds. Whole-tree Ruff lint and format checks pass.60d8629a93df0b92423829673f6b6defd08077be; the Spec review additionally exercised three occupied keys and explicit replay/expiry behavior. Normal integration and required CI passed on this exact commit; see the architect completion review.Closes #15
Merge Danger
Door: two-way
An isolated proof and its documentation can be reverted. No runtime code, accepted ADR, portable contract, deployment configuration or live endpoint changes.
Blast Radius: proof
Closing #15 clears only this bounded artifact. #6, #16, #17 and the release remain held; endpoint qualification and deployment fencing are unproven.
Co-Authored-By: gpt-6.1-sol noreply@openai.com
DD-469 restore proof: independent review and architect disposition
Reviewed 2026-11-16 by mind-spec@voyager, actual CWD
/Users/piers/src/mind-spec.PR: #20
Fixed base:
5375725434c7e62a009f6e88bc0c070fd8e620e6; reviewed head:84de82b4f45f82114a6c030906030b99392c2dc2. Run:20261116T043852Z-947c70c2. Approved spec SHA-256:c3edf327a06b538bf4e3aeb426daeed00e27aa4665720c63a23a7bebaf0a44fd.Architect disposition: HOLD proof completion and merge. The runner completed and reported merge readiness; required remote CI is green at the reviewed head. The independently reproduced required-invariant defect below prevents calling this proof complete. This is a false alarm in the proof, not demonstrated data revival. The six added files stay isolated; no runtime change or production safety claim follows.
Standards
Independent reviewer:
/root/restore_standards_review. Two documented-standard findings, both nonblocking; no substantive baseline smell found.proofs/recovery/identity/README.md:7–8,23–29,424–457, and most other prose paragraphs are hard-wrapped. The new file violates/Users/piers/src/AGENTS.md:56–58: “Never hard-wrap Markdown prose. Write one paragraph per line.” The existing-document exception does not apply to this new file. Reflow prose paragraphs and list-item prose; preserve code blocks and tables.proofs/recovery/identity/README.md:7–20presents directly runnable commands without requiring the root setup. In a fresh shell, these Python commands create__pycache__inside the checkout; theuv/Ruff commands can also create local environment/cache artifacts. RootREADME.md:30–38requires external environments/caches andPYTHONDONTWRITEBYTECODE=1. Add that export for standalone proof execution and explicitly require the root’s external-path setup before the optional provider checks. Pytest’s cache is already disabled inpyproject.toml.The synthetic-only boundaries are clear, including reduced search depth, absent provider guarantees, unresolved contract choices and pending independent review. Ghost history survives restore/pruning, and the direct frontier-corruption regression checks that separation. Some predicates are shared with transitions, so this is independent retained evidence rather than a separately implemented oracle; the README’s narrower explanation supports that distinction. This reviewer made no edits and did not run additional tests.
Spec
Independent reviewer:
/root/restore_spec_review. One blocker to proof completion: I1 probes command replay instead of guaranteed fresh submission. Atidentity_model.py:690, the invariant uses an implicit command ID;identity_model.py:419derives that ID fromlen(commands). Partial expiry can recreate an existing scoped key.Spec line 139 requires: “A fresh submit of it returns
occurrence_exists… orsuppressed.”Starting from
initial(), execute:inv_no_revival(s)reports that the handled occurrence permits fresh submission. Its probe actually returns a cachedok, changes no state, and leaves O2 handled at revision(0,2). Supplyingcommand_id="fresh-probe"correctly returnsoccurrence_exists. The architect independently reproduced these results offline at the reviewed head with bytecode writes disabled.This is an incorrect required invariant, not demonstrated data revival. The published depth-four, zero-violation result remains accurate; this six-transition schedule exposes a limitation of the oracle needed for further exploration. Hold proof completion until the oracle reliably distinguishes fresh submission from replay, or the architect explicitly accepts that gap. The architect does not waive this required invariant.
No scope creep or additional established blockers found. Actual-secret verification, independent history retention, per-backup pruning checks, and consumed-reservation handling are present. An initial concern about command metadata was investigated but did not establish an independent byte-accounting defect: the encoding follows the spec’s explicit smaller shape, and occurrence association can be derived from fixed model item IDs and the finite domain.
Evidence and remaining authority
The automated run records 28 proof tests and 16 pytest subtests passing, standalone unittest success, root tests and lint/format success. CI readback at this exact head is
success, contextci/woodpecker/pr/validation, https://ci.groupthink.asia/repos/76/pipeline/17/1. These passing checks do not cover the newly reproduced six-transition schedule. The separate Standards reviewer did not claim to have run these commands.The single counted restore recovery is consumed; no additional automatic code reworks were authorized. No source changes, additional dispatch, merge, runtime/ADR/contract/deployment action, live data access, or endpoint qualification was performed during this review. Preserve all worktrees and original runner evidence. Staging #16 and custody #17 remain held at their existing two-rework caps; parent #6 remains stopped at 2/2. Release remains paused.
Totals: Standards — 2 findings, worst is a nonblocking documented-convention breach. Spec — 1 finding, a required fresh-submit oracle defect blocking proof completion.
Independent review of the operator-approved corrective build 1/1 at
60d8629a93df0b92423829673f6b6defd08077be. Original proof base5375725434c7e62a009f6e88bc0c070fd8e620e6; correction base84de82b4f45f82114a6c030906030b99392c2dc2. No additional automatic code-rework allowance.Standards
DD-469 corrective build — independent Standards review
Verdict: PASS. Zero documented-standard violations; zero reportable heuristic smells; no Standards blocker.
Reviewed fixed HEAD
60d8629a93df0b92423829673f6b6defd08077be, correction diff84de82b4f45f82114a6c030906030b99392c2dc2...60d8629a93df0b92423829673f6b6defd08077be, and the worker delivery report. The retained worktree was clean. The correction touches onlyproofs/recovery/identity/identity_model.py,test_identity_properties.py, andREADME.md; the complete artifact remains exactly six files underproofs/recovery/identity/against base5375725434c7e62a009f6e88bc0c070fd8e620e6.Both previous findings are resolved. Proof
README.md:7and subsequent prose now follow/Users/piers/src/AGENTS.md:56–58(one paragraph per line); the whole-file reflow was explicitly authorized. ProofREADME.md:10,19–25disables bytecode and requires the root README's external environment/cache setup, satisfying rootREADME.md:30–38. Pytest cache creation remains disabled bypyproject.toml.The shared
scoped_keycorrection is small, clearly explains the partial-expiry collision, adds no persistent state, and preserves the explicit-ID path. The duplicated old suffix expression inFreshCommandSelection.old_scoped_keyintentionally preserves the historical failure for regression testing; extracting it into the corrected selector would weaken that comparison, so no Duplicated Code finding is warranted. No other baseline smell merits a finding.The README distinguishes current correction measurements from historical provider/build evidence, retains the bounded synthetic-only claims, and leaves exact-head CI and independent review as separate completion requirements. It grants no runtime, contract, ADR, deployment, parent-issue or release clearance.
Independent validation:
PYTHONDONTWRITEBYTECODE=1 /private/tmp/attention-svd-env/bin/python -m pytest proofs/recovery/identity/test_identity_properties.py -q -k 'FreshCommandSelection or command_scope_replay'passed 3 tests, 18 deselected, in 0.03s. No dependencies were downloaded. Tooling-enforced matters were excluded from findings. No source edits, commits, pushes or merge actions were performed.Spec
Verdict: PASS for the authorized correction at
60d8629a93df0b92423829673f6b6defd08077be. The previous fresh-submit oracle blocker is resolved. No missing/partial requirement, scope creep, or incorrect implementation found in this correction; zero blocking and zero nonblocking findings.Reviewed
git diff 84de82b4f45f82114a6c030906030b99392c2dc2...60d8629a93df0b92423829673f6b6defd08077bein the retained worktree. HEAD and the approved spec SHA-256c3edf327a06b538bf4e3aeb426daeed00e27aa4665720c63a23a7bebaf0a44fdwere independently verified. Only three files underproofs/recovery/identity/changed.Spec line 139 requires: “A fresh submit of it returns
occurrence_exists... orsuppressed.”identity_model.py:413–430now skips occupied scoped keys for implicit IDs while returning the original key for explicit IDs. Both I1 (:699) and I4 (:748) use this selection. It adds no persistent counter or archive and leaves explicit replay behavior intact. The six-step partial-expiry regression (test_identity_properties.py:65) reproduces the old false alarm and verifies the corrected probe returnsoccurrence_exists, with O2 still handled at revision(0,2).Independent offline checks additionally built reachable states with three consecutive occupied suffixes for each of submit and Forget. Both probes selected the next free key. Submit preserved state; Forget succeeded and produced suppression, satisfying spec line 142: “For every reserved fingerprint, a valid Forget returns
ok.” Explicit replay, mismatch, spent-fence refusal, and expiry behavior all remained correct.Eight targeted unittest tests passed: both new regressions, existing command lifecycle coverage, all held-draft counterexamples, and all mutant controls. This retains spec line 174’s requirement for meaningful negative controls. Checks used the existing external Python environment with bytecode disabled; the worktree remained clean.
The correction preserves the disclosed depth-four search bounds and does not establish arbitrary-schedule or production recovery safety. This review clears the prior artifact blocker only; exact-head CI and the other required review axis remain separate gates. Parent #6 and release readiness remain held.
Summary: Standards 0 findings, PASS; Spec 0 findings, PASS. Required exact-head CI and normal integration remain pending. Parent, other proofs and release remain held.
Architect merge review: PASS at
60d8629a93df0b92423829673f6b6defd08077be. Independent Standards and Spec reviews: #20 (comment). Normal integration verified this same head with zero code reworks; 30 proof tests pass under both runners. Required Woodpecker validation passed, including quality checks, 359 provider unit tests and 64 transport tests. Only the six isolated proof files change.Executing the existing operator grant to merge T4 for this project together with the accepted specific PR20 repair plan and direct words “approve one small repair”. This is an architect merge pinned to the reviewed head; no ship/classifier override or gateway grant is fabricated. Closing #15 only. Parent #6, #16/#17 and release remain held at existing caps. Retain branch and worktree.
The one approved corrective build is complete. PR20 merged as
68054f3b5f9686064c7156c2e9255962048f5d4aand closed #15. The merged tree exactly matches reviewed head60d8629a93df0b92423829673f6b6defd08077be.Both independent review axes passed. Normal integration independently passed all 30 proof tests under pytest and unittest, with no code rework. The worker also recorded 16 passing subtests and retained the held-design/mutant controls. Proposed depth-four search remains 15,525 states / 64,464 transitions / zero violations. The false alarm after partial expiry is fixed; this does not establish production restore safety.
Required PR validation and merged-main validation are green. Quality checks, 359 provider unit tests and 64 transport tests passed. The local integrator’s missing-Ruff/existing-suite warnings are covered by worker lint evidence and exact-head CI, without changing its original report.
Corrective build allowance consumed: 1/1; automatic code reworks: 0. Original recovery and pre-repair reviews retained. Worktree and branch kept. Only #15 is complete: #16 staging and #17 custody remain stopped at their existing 2/2 caps; parent #6 remains stopped at 2/2. Release stays paused. No runtime, accepted ADR, contract, endpoint or deployment change was made.