DD-469: Recovery proof A — restore identity and reserved erasure capacity #15
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
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
dev/attention-mind-mcp#15
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
Authority and boundary
Parent: Attention recovery #6, under DD-469. The operator explicitly approved this three-unit proof phase; the authoritative scope is proposal 40618 plus review addendum 40627. The body below incorporates the unit-specific requirements so verification need not infer them from a title.
This is a decided investigation/deliverable scope, not approval of the architecture being investigated. Tests, standalone prototypes and proposed design notes only. No changes to service/runtime source, accepted ADRs, portable contracts/schemas, live data, deployment, credentials or production buckets. Findings may reject proposed mechanisms. Return unresolved contract choices explicitly to mind-spec. The old full #6 attempt remains stopped at 2/2; this child is a newly approved bounded proof, not its third rework. Passing this child does not certify or release recovery. The release and parent remain held.
Baseline: main
5375725434c7e62a009f6e88bc0c070fd8e620e6; refresh against current main at dispatch. Contract authority: attention/1.0 at pin 3da6a263, binding 1.1, accepted Attention ADR 0002 and merged store/command/query/release-gate behavior. The proposed proof material must not claim accepted ADR status. Readsrc/attention_mind_mcp/{commands,store,service,queries}.pyanddocs/adr/0002-standalone-product-and-managed-recovery.md; production files are read-only inputs.Blocked by
None. This proof can run independently of the other two proof units. Parent #6 is its carrier, not a dependency requiring the unimplemented recovery feature first.
Deliverables and write set
Write only under
proofs/recovery/identity/: a standalone executable finite state model, meaningful regression/state-space tests and a README with commands, measured coverage, counterexamples, limits and proposed operation/accounting tables. A small standard-library model is preferred. Do not add a shared helper or touch another proof unit's files, application dependencies, CI or accepted ADRs. Files can be added within this one directory if justified in the spec. This is a reproducible artifact rather than a single green assertion.Required investigations and acceptance
Reproduce the held draft's absent-fact counterexamples: retain empty old backup B, submit occurrence O/item A, then acknowledge withdrawal/dismissal/current disposition; restore B lacking A. Demonstrate how skipping A allows a fresh admitted submit in the new generation to create a new open item, and how charging only present items/forgotten facts undercounts the retained A fact. The negative controls must fail the proposed safety invariant for an understandable reason.
Model retained current facts keyed by stable opaque queue/namespace/occurrence fingerprint and persistent missing-content guards. Do not lose open or snoozed current dispositions, withdrawals or Forget. Fresh submit must not recreate a fenced occurrence. Non-forgotten guards must not be relabelled as forgotten suppression. Exercise repeat restores, guard persistence in later backups and remote fact pruning: local protection must survive removal of the fact from the remote frontier when old coverage expires.
Reserve the union of live potential records and all retained facts, deduplicated by stable occurrence, plus existing suppressions and fixed/envelope/inventory overhead. Every admitted or restored occurrence reserves its eventual suppression count/bytes and successful Forget-command capacity up front. Forget consumes its reservation; an independently full suppression pool must never refuse it. Cover local and remote byte and count limits, lifetime-admission accounting/high-water marks, restored absent records, repeated restores, saturation, cleanup and invalid commands. Use explicit encoded forms/size calculations for the proposed model, not arbitrary per-slot constants presented as product evidence. Model command deadlines/spent-key fences sufficiently to show reserve consumption; do not invent an indefinite historical command archive.
Preserve the suppression derivation secret for a queue's lifetime in this first proposal; distinguish it from credential/wrapping keys and recovery/admission generations. Fingerprint inputs include queue ID, authenticated namespace and occurrence ID. Model credential/wrapping-key changes, same occurrence ID in separate namespaces, and missing/mismatched derivation identity during restore. Mismatch remains quarantined. A key ID does not reconstruct missing key material or re-derive an opaque fingerprint. Do not add underlying suppression-key rotation.
Produce a proposed missing-content operation table with authority, query visibility, submit, replace, withdraw, disposition and Forget outcomes. Identify any choice that cannot be expressed faithfully by the pinned contract.
content_missingis not in the pinned error enum;list(all)has retained-item semantics; replacement must refuse terminal withdrawal and must not undo a preserved disposition. Do not add that error, silently hide state, fabricate lost content/provenance or grant submit-only read access. Returning a concrete unresolved contract decision is an honest result, not permission to choose it silently.Preserve the established F5 ruling: revision identity includes recovery generation; no new digest field is compelled. Model rejection of old-generation requests, admissions, views and buffered work; never silently substitute a fresh token/generation into an old request. A recovered old candidate with a newer surviving disposition must be described truthfully, not as recovery of a lost replacement.
Completion evidence
Run the standalone tests, include both failing old-design schedules and proposed-model coverage, state finite exploration bounds and unmodeled behavior. Separate proven model properties from unresolved representation/contract choices and real implementation/provider proof still owed by #6. Use independent review before marking the artifact complete; do not close #6 or claim restore is implemented.
⏸ SVD architect gate: dev/attention-mind-mcp#15 dd-469-recovery-proof-a-restore-identity-and-reserved-erasur
Status: CLEAN after 0 rework round(s) · 0 blocking defect(s) · 0 lens(es) INCONCLUSIVE (could not run) · 0 lens(es) DEGRADED (deterministic denial) · complexity
standard· dispatch effortmediumRun:
20261116T040737Z-05879939Held because: CLEAN but 6 open risk(s) (3 verification · 3 decision) — HOLD-ALL parks everything. The risks, verbatim:
Open risks:
uv run ruff check . && uv run ruff format --check .on the host before pushing, and confirm the CI quality step is green on the PR. [verification]python3 proofs/recovery/identity/identity_explore.py --design allrun, with the host, Python version and date. If the default depth had to drop below 7, the README states the reduced bound. [verification]Change: Build a stdlib-only, pure, hashable finite state machine in proofs/recovery/identity/identity_model.py. It must not import attention_mind_mcp. Its fingerprint derivation must match production byte-for-byte: commands.py:39-60, which is HMAC-SHA256 under purpose_key(secret,'suppression') over canonical [queue_id, namespace, occurrence_id]. Its submit, replace, withdraw and dispose semantics mirror commands.py:285-339. Generation fencing mirrors commands.py:185-190,213-223 and queries.py:184-213,304-320. The reservation shape mirrors commands.py:377-381 and store.py:230-235. One machine is parameterised by Design flags: held_draft (skip absent facts on restore, charge present items only, take the backup's high-water), proposed, and six single-fault mutants. Proposed restore runs in this order: refuse on derivation-ID mismatch or missing secret; start a new quarantined generation; take the deduplicated union of backup live items, guards, frontier facts and suppressions; write missing_content/withdrawn/disposition guards (a suppression only for a forgotten fact); set high-water to the max of backup and frontier; reserve for the whole union or stay quarantined; then unquarantine. Byte sizes come from canonical-JSON worst-case encoders, never constants. Invariants I1-I7 are exported as functions that return a reason string. identity_explore.py runs BFS at documented bounds (depth 7, 2 namespaces x 2 occurrence IDs) and prints coverage JSON, plus --tables for the accounting and missing-content tables. Three unittest-based test files cover the held-draft counterexamples and mutants, directed properties, and the exhaustive search plus a README-sync check. The README carries measured coverage, the counterexamples, the tables, and an explicit list of unresolved questions for mind-spec: missing-content item representation versus the types.schema.json item requiring candidate and provenance; the replace refusal code; dispose without visible content; and the shared queue.secret root.
Files:
proofs/recovery/identity/identity_model.py·proofs/recovery/identity/identity_explore.py·proofs/recovery/identity/test_identity_counterexamples.py·proofs/recovery/identity/test_identity_properties.py·proofs/recovery/identity/test_identity_state_space.py·proofs/recovery/identity/README.mdDecision: accept the 6 open risk(s) above and dispatch this spec (
svd:go), or park (svd:skip) / re-spec (svd:respec)?Your call (when this issue is held at the gate via
svd:hold):svd:go— approve; Half-B dispatch accepts exactly this spec (open risks accepted)svd:firebesidesvd:go— approve AND authorise the Half-B fire from the phone; never on its ownsvd:skip— park it; dispatch refuses it and the issue stays for a humansvd:respec— discard this spec; the next Half-A run re-produces it with this record as prior-attempt contextSpec:
/Users/piers/.local/state/exhaust/groupthink/specs/2026-11-16-dd-469-recovery-proof-a-restore-identity-and-reserved-erasur.md— next:codex-svd dispatch --args '<same-json>' --approved-spec-path /Users/piers/.local/state/exhaust/groupthink/specs/2026-11-16-dd-469-recovery-proof-a-restore-identity-and-reserved-erasur.md— mind-spec@voyager
✅ SVD architect gate: dev/attention-mind-mcp#15 dd-469-recovery-proof-a-restore-identity-and-reserved-erasur
Status: CLEAN after 0 rework round(s) · 0 blocking defect(s) · 0 lens(es) INCONCLUSIVE (could not run) · 0 lens(es) DEGRADED (deterministic denial) · complexity
unclassified· dispatch effortunclassifiedRun:
20261116T040737Z-05879939Files:
proofs/recovery/identity/identity_model.py·proofs/recovery/identity/identity_explore.py·proofs/recovery/identity/test_identity_counterexamples.py·proofs/recovery/identity/test_identity_properties.py·proofs/recovery/identity/test_identity_state_space.py·proofs/recovery/identity/README.mdWrite-set divergence: present table wins. 0 sourceHashes vs 15-row table.
Decision: dispatch this spec (
svd:go)?Your call (when this issue is held at the gate via
svd:hold):svd:go— approve; Half-B dispatch accepts exactly this spec (open risks accepted)svd:firebesidesvd:go— approve AND authorise the Half-B fire from the phone; never on its ownsvd:skip— park it; dispatch refuses it and the issue stays for a humansvd:respec— discard this spec; the next Half-A run re-produces it with this record as prior-attempt contextSpec:
/Users/piers/.local/state/exhaust/groupthink/specs/2026-11-16-dd-469-recovery-proof-a-restore-identity-and-reserved-erasur.md— next:codex-svd dispatch --args '<same-json>' --approved-spec-path /Users/piers/.local/state/exhaust/groupthink/specs/2026-11-16-dd-469-recovery-proof-a-restore-identity-and-reserved-erasur.mdmind-spec architect gate: GO for bounded proof only
Operator approval is already recorded at #6 (comment). I reviewed the actual amended spec and the latest verifier result: zero blocking defects, no inconclusive or degraded lenses. Approved spec SHA-256:
c3edf327a06b538bf4e3aeb426daeed00e27aa4665720c63a23a7bebaf0a44fd.Proceed with the existing tests/prototype/design scope and retained worktree. No runtime, accepted ADR, portable contract, deployment, live data, provider purchase, or credential changes. Endpoint qualification stays NOT RUN/UNQUALIFIED and deployment fencing UNPROVEN. Original #6 remains stopped at its 2/2 cap; this child does not reset it. Release stays paused.
Root CI plus explicit proof commands and recorded evidence are required. Independent artifact review is still required before a merge; this design gate does not stand in for that review. Closes applies only to this child, never #6.
Full gate and warning dispositions:
/private/tmp/dd469-backup-rescope/architect-gate.mdon voyager. Actual coordinator CWD:/Users/piers/src/mind-spec. Signed: mind-spec@voyager.The approved bounded proof phase has not established backup safety. No proof PR is approved to merge, and the release remains paused.
20261116T043026Z-ac117f17returned no files and failed with an empty commit message. The documented dev/stables#1973 recovery is now running as20261116T043852Z-947c70c2, using the same exact approved spec and explicitcodex/gpt-6.1-sol. This is one counted recovery attempt, withmaxCodeReworkRounds: 0; it does not reset any budget. Original worktree and failure evidence are retained.6ef17b5444ca149632b064bf8128239dae461757, required lifecycle, ownership/sweep, interruption, measurements and evidence scenarios remain missing. Fourteen existing proof tests and the root suite passing do not establish the missing claims. Do not merge or restart this exhausted code loop.Runner recurrence is filed at dev/stables#2224. Results and retained worktrees are under
/Users/piers/.local/state/exhaust/groupthink/dd469-backup-proof/. The original batch completion notice and a separate single-recovery completion notice are armed; neither notice starts work. Original #6 remains stopped at 2/2. No runtime, ADR, portable contract, deployment, live data or real endpoint change is authorized or made by this phase. No operator action is needed while the remaining results return.spec-verify-dispatch Half B for dev/attention-mind-mcp#15 dd-469-recovery-proof-a-restore-identity-and-reserved-erasur completed integration verify.
84de82b4f4codex-svd ship --run-id 20261116T043852Z-947c70c2 --confirm-merge)— mind-spec@voyager
Proposed next step: one small repair to the restore proof
Recommendation: repair the restore proof first; keep the other two proofs and the release paused. The new finding is in the test logic. It does not demonstrate lost or revived data. This plan is prepared for approval; it has not been dispatched.
The automatic checks passed, but independent review found that the test can confuse an old successful reply with a genuinely new request. A six-step example reproduces the problem. Fixing that one gap gives a smaller, reviewable next step than restarting all three proofs.
Proposed scope
Keep issue #15 and PR #20. Start from the retained head
84de82b4f45f82114a6c030906030b99392c2dc2and the existing approved requirements. Change only files withinproofs/recovery/identity/already allowed by that spec.occurrence_exists, and the handled item stays unchanged. Also retain explicit replay coverage and the existing negative controls that catch genuine model revival.The original bounded search remains at its disclosed bounds. Do not broaden the operation model, choose unresolved product contracts, weaken assertions, remove negative controls, or claim production backup safety. The investigation did not establish an additional byte-accounting defect; no speculative encoding redesign is included.
Validation and stopping rule
Run the targeted regression, the existing proof tests, proposed and held-design exploration at the documented bounds, and appropriate lint/format checks. Obtain independent Standards and Spec review and green required CI at the new exact head before any merge. Merge would close only #15, not the parent or release gate.
Requested additional authority: one corrective build on this existing proof, with zero automatic rework retries. Use the explicit Sol model pin already demonstrated to complete the prior artifact. Record this as a new, separately authorized repair allowance; retain the consumed original recovery and all historical caps. If the corrective build or independent review still fails, stop and report the concrete defect. Do not start another attempt automatically.
Staging #16 and custody #17 receive no new build allowance under this proposal. Their incomplete artifacts and worktrees remain available for a later, separately reviewed plan. No runtime, accepted ADR, portable contract, deployment, credentials, live data or real storage endpoint work is included. Release remains paused even if this repair passes.
The approval is needed because the recorded single recovery allowance is used and its completion instruction says, “Do not start another recovery attempt.” Earlier approval of the small proof phase remains valid; this request is only for the additional correction beyond that consumed allowance.
Independent review: #20 (comment)
Operator directly approved “approve one small repair”. This authorizes the prepared plan at #15 (comment): one corrective build on the existing PR #20 from
84de82b4f45f82114a6c030906030b99392c2dc2, explicit Sol pin, zero automatic rework retries, followed by independent review and exact-head CI. Existing consumed recovery and #6/#16/#17 caps remain unchanged. Release remains paused. The issue stays held against unrelated automatic dispatch while this bounded correction is owned by mind-spec@voyager (actual CWD /Users/piers/src/mind-spec).No new Half-A scope or PR is being created. The runner has no external-review repair CLI and its existing zero-rework limit stays unchanged; one isolated corrective worker will use the approved spec plus this repair plan, then normal integration will inspect the actual updated PR. Original runner evidence is retained.
spec-verify-dispatch Half B for dev/attention-mind-mcp#15 dd-469-recovery-proof-a-restore-identity-and-reserved-erasur completed integration verify.
60d8629a93codex-svd ship --run-id 20261116T043852Z-947c70c2 --confirm-merge)Complete and merged after the one approved corrective build. Final evidence, independent reviews and green PR/main CI. Further backup work and release remain held as recorded on the parent.