DD-469: Recovery proof A — restore identity and reserved erasure capacity #15

Closed
opened 2026-11-16 04:00:25 +00:00 by svc-agent-writer · 9 comments

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. Read src/attention_mind_mcp/{commands,store,service,queries}.py and docs/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

  1. 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.

  2. 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.

  3. 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.

  4. 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.

  5. 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_missing is 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.

  6. 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.

## Authority and boundary Parent: [Attention recovery #6](https://git.groupthink.asia/dev/attention-mind-mcp/issues/6), under DD-469. The operator explicitly [approved this three-unit proof phase](https://git.groupthink.asia/dev/attention-mind-mcp/issues/6#issuecomment-40763); the authoritative scope is [proposal 40618](https://git.groupthink.asia/dev/attention-mind-mcp/issues/6#issuecomment-40618) plus [review addendum 40627](https://git.groupthink.asia/dev/attention-mind-mcp/issues/6#issuecomment-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](https://git.groupthink.asia/dev/mind-spec/src/commit/3da6a263e6aeb3f37d25590d6ab755045ff53786/contracts/attention-v1/README.md), 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. Read `src/attention_mind_mcp/{commands,store,service,queries}.py` and `docs/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 1. 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. 2. 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. 3. 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. 4. 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. 5. 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_missing` is 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. 6. Preserve the established [F5 ruling](https://git.groupthink.asia/dev/attention-mind-mcp/issues/6#issuecomment-40392): 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.
Collaborator

⏸ 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 effort medium

Run: 20261116T040737Z-05879939

Held because: CLEAN but 6 open risk(s) (3 verification · 3 decision) — HOLD-ALL parks everything. The risks, verbatim:

Open risks:

  1. The issue relies on #6 comments 40618 (proposal), 40627 (review addendum), 40763 (approval), 40392 (the F5 ruling) and on the 'held draft'. None of these are in the ISSUE CONTEXT snapshot or the DD note. The spec builds the held-draft schedules and the F5 rule only from the issue body's restatement (req 1 and req 6). Question: does addendum 40627 add any obligation beyond body reqs 1-6? If so, append it to the DD note before dispatch. [decision]
  2. The proof tests are not collected by CI (pyproject testpaths=['tests']; .woodpecker is architect-owned; the issue forbids CI changes). Question: is locally reproducible evidence (exact commands plus quoted output in the README and PR) acceptable as the completion evidence, with CI covering only ruff lint and format of proofs/? [decision]
  3. The PR will carry 'Closes #15', so merging closes the issue, but the issue says 'Use independent review before marking the artifact complete'. Question: do the architect gate plus PR review count as that independent review? Or should the spec use issueBinding: refs so #15 stays open until a separate review? The lean is Closes #15; #6 is never closed either way. [decision]
  4. Ruff is not installed in the Half-A sandbox, so lint cleanliness of the new files is unproven, and CI's quality step lints the whole tree including proofs/. Check: run 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]
  5. The fingerprint-pin literal must be derived from production on the host, because attention_mind_mcp is not importable in the sandbox. Check: the PR quotes the exact one-off command that called attention_mind_mcp.commands.occurrence_fingerprint with the test's synthetic inputs, and its output equals the literal in test_identity_properties.py. [verification]
  6. Coverage numbers (states, transitions, depth, runtime) cannot be measured before the files exist. Check: the README and PR quote a real python3 proofs/recovery/identity/identity_explore.py --design all run, 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.md

Decision: 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):

  • add label svd:go — approve; Half-B dispatch accepts exactly this spec (open risks accepted)
  • add label svd:fire beside svd:go — approve AND authorise the Half-B fire from the phone; never on its own
  • add label svd:skip — park it; dispatch refuses it and the issue stays for a human
  • add label svd:respec — discard this spec; the next Half-A run re-produces it with this record as prior-attempt context

Spec: /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 `standard` · dispatch effort `medium` **Run:** `20261116T040737Z-05879939` **Held because:** CLEAN but 6 open risk(s) (3 verification · 3 decision) — HOLD-ALL parks everything. The risks, verbatim: **Open risks:** 1. The issue relies on #6 comments 40618 (proposal), 40627 (review addendum), 40763 (approval), 40392 (the F5 ruling) and on the 'held draft'. None of these are in the ISSUE CONTEXT snapshot or the DD note. The spec builds the held-draft schedules and the F5 rule only from the issue body's restatement (req 1 and req 6). Question: does addendum 40627 add any obligation beyond body reqs 1-6? If so, append it to the DD note before dispatch. [decision] 2. The proof tests are not collected by CI (pyproject testpaths=['tests']; .woodpecker is architect-owned; the issue forbids CI changes). Question: is locally reproducible evidence (exact commands plus quoted output in the README and PR) acceptable as the completion evidence, with CI covering only ruff lint and format of proofs/? [decision] 3. The PR will carry 'Closes #15', so merging closes the issue, but the issue says 'Use independent review before marking the artifact complete'. Question: do the architect gate plus PR review count as that independent review? Or should the spec use issueBinding: refs so #15 stays open until a separate review? The lean is Closes #15; #6 is never closed either way. [decision] 4. Ruff is not installed in the Half-A sandbox, so lint cleanliness of the new files is unproven, and CI's quality step lints the whole tree including proofs/. Check: run `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] 5. The fingerprint-pin literal must be derived from production on the host, because attention_mind_mcp is not importable in the sandbox. Check: the PR quotes the exact one-off command that called attention_mind_mcp.commands.occurrence_fingerprint with the test's synthetic inputs, and its output equals the literal in test_identity_properties.py. [verification] 6. Coverage numbers (states, transitions, depth, runtime) cannot be measured before the files exist. Check: the README and PR quote a real `python3 proofs/recovery/identity/identity_explore.py --design all` run, 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.md` **Decision:** 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`): - add label `svd:go` — approve; Half-B dispatch accepts exactly this spec (open risks accepted) - add label `svd:fire` **beside** `svd:go` — approve AND authorise the Half-B fire from the phone; never on its own - add label `svd:skip` — park it; dispatch refuses it and the issue stays for a human - add label `svd:respec` — discard this spec; the next Half-A run re-produces it with this record as prior-attempt context <sub>Spec: `/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`</sub> — mind-spec@voyager
Collaborator

✅ 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 effort unclassified

Run: 20261116T040737Z-05879939

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.md

Write-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):

  • add label svd:go — approve; Half-B dispatch accepts exactly this spec (open risks accepted)
  • add label svd:fire beside svd:go — approve AND authorise the Half-B fire from the phone; never on its own
  • add label svd:skip — park it; dispatch refuses it and the issue stays for a human
  • add label svd:respec — discard this spec; the next Half-A run re-produces it with this record as prior-attempt context

Spec: /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

### ✅ 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 effort `unclassified` **Run:** `20261116T040737Z-05879939` **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.md` **Write-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`): - add label `svd:go` — approve; Half-B dispatch accepts exactly this spec (open risks accepted) - add label `svd:fire` **beside** `svd:go` — approve AND authorise the Half-B fire from the phone; never on its own - add label `svd:skip` — park it; dispatch refuses it and the issue stays for a human - add label `svd:respec` — discard this spec; the next Half-A run re-produces it with this record as prior-attempt context <sub>Spec: `/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`</sub>
Collaborator

mind-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.md on voyager. Actual coordinator CWD: /Users/piers/src/mind-spec. Signed: mind-spec@voyager.

### mind-spec architect gate: GO for bounded proof only Operator approval is already recorded at https://git.groupthink.asia/dev/attention-mind-mcp/issues/6#issuecomment-40763. 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.md` on voyager. Actual coordinator CWD: `/Users/piers/src/mind-spec`. Signed: mind-spec@voyager.
Collaborator

The approved bounded proof phase has not established backup safety. No proof PR is approved to merge, and the release remains paused.

  • Restore #15: initial run 20261116T043026Z-ac117f17 returned no files and failed with an empty commit message. The documented dev/stables#1973 recovery is now running as 20261116T043852Z-947c70c2, using the same exact approved spec and explicit codex/gpt-6.1-sol. This is one counted recovery attempt, with maxCodeReworkRounds: 0; it does not reset any budget. Original worktree and failure evidence are retained.
  • Staging #16 / PR #18: integration stopped after the existing two code reworks. At head 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.
  • Custody #17 / PR #19: the initial worker returned scaffolding and admitted incomplete models and tests. Its normal bounded integration/rework loop is still running; no positive proof verdict exists yet. Default endpoint qualification stays NOT RUN/UNQUALIFIED and deployment fencing UNPROVEN.

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.

The approved bounded proof phase has not established backup safety. No proof PR is approved to merge, and the release remains paused. - Restore #15: initial run `20261116T043026Z-ac117f17` returned no files and failed with an empty commit message. The documented dev/stables#1973 recovery is now running as `20261116T043852Z-947c70c2`, using the same exact approved spec and explicit `codex/gpt-6.1-sol`. This is one counted recovery attempt, with `maxCodeReworkRounds: 0`; it does not reset any budget. Original worktree and failure evidence are retained. - Staging #16 / PR #18: integration stopped after the existing two code reworks. At head `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. - Custody #17 / PR #19: the initial worker returned scaffolding and admitted incomplete models and tests. Its normal bounded integration/rework loop is still running; no positive proof verdict exists yet. Default endpoint qualification stays NOT RUN/UNQUALIFIED and deployment fencing UNPROVEN. Runner recurrence is filed at https://git.groupthink.asia/dev/stables/issues/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.
Collaborator

spec-verify-dispatch Half B for dev/attention-mind-mcp#15 dd-469-recovery-proof-a-restore-identity-and-reserved-erasur completed integration verify.

  • PR: #20
  • Branch: feat/svd-dev-attention-mind-mcp-15-dd-469-recovery-proof-a-re-947c70c2
  • Commit: 84de82b4f4
  • Build: none
  • Test: green
  • Reader audit clean: True
  • Spec fidelity: True
  • Ready for merge: True
  • Check ci/woodpecker/pr/validation: green https://ci.groupthink.asia/repos/76/pipeline/17/1
  • Checks: required ci/woodpecker/pr/validation resolved pass by CI-wait poll
  • Warning: Subagent reduced default exploration depth from 7 to 4 to fit the 60 s budget; the README documents the bounds. The unittest run took about 28 s.
  • Warning: Spec's Test Strategy has no Scenario table, so no scenario trace applied. Each requirement-to-test map class collects, and each -k filter collects at least one test. The Guard filter collects 4 tests, one more than the 3 in GuardPersistence.
  • CI wait: ci/woodpecker/pr/validation -> pass
  • Decision: review the PR and merge? (codex-svd ship --run-id 20261116T043852Z-947c70c2 --confirm-merge)

— mind-spec@voyager

spec-verify-dispatch Half B for dev/attention-mind-mcp#15 dd-469-recovery-proof-a-restore-identity-and-reserved-erasur completed integration verify. - PR: https://git.groupthink.asia/dev/attention-mind-mcp/pulls/20 - Branch: feat/svd-dev-attention-mind-mcp-15-dd-469-recovery-proof-a-re-947c70c2 - Commit: 84de82b4f45f82114a6c030906030b99392c2dc2 - Build: none - Test: green - Reader audit clean: True - Spec fidelity: True - Ready for merge: True - Check ci/woodpecker/pr/validation: green https://ci.groupthink.asia/repos/76/pipeline/17/1 - Checks: required ci/woodpecker/pr/validation resolved pass by CI-wait poll - Warning: Subagent reduced default exploration depth from 7 to 4 to fit the 60 s budget; the README documents the bounds. The unittest run took about 28 s. - Warning: Spec's Test Strategy has no Scenario table, so no scenario trace applied. Each requirement-to-test map class collects, and each -k filter collects at least one test. The Guard filter collects 4 tests, one more than the 3 in GuardPersistence. - CI wait: ci/woodpecker/pr/validation -> pass - Decision: review the PR and merge? (`codex-svd ship --run-id 20261116T043852Z-947c70c2 --confirm-merge`) — mind-spec@voyager
Collaborator

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 84de82b4f45f82114a6c030906030b99392c2dc2 and the existing approved requirements. Change only files within proofs/recovery/identity/ already allowed by that spec.

  1. Make implicit fresh-command selection collision-free among unexpired scoped commands, including after partial expiry. Preserve deliberately repeated explicit command IDs for replay tests. Ensure both the no-revival probe and the reserved-Forget probe actually exercise fresh requests.
  2. Add the six-step partial-expiry regression from the independent review. Assert the old implementation raises a false alarm, the corrected invariant does not, the fresh request returns occurrence_exists, and the handled item stays unchanged. Also retain explicit replay coverage and the existing negative controls that catch genuine model revival.
  3. Fix the two README nits: one prose paragraph per line, and commands that use the documented external environment/cache setup with bytecode writes disabled. Record the new measured test counts and the independent review accurately.

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)

# 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 `84de82b4f45f82114a6c030906030b99392c2dc2` and the existing approved requirements. Change only files within `proofs/recovery/identity/` already allowed by that spec. 1. Make implicit fresh-command selection collision-free among unexpired scoped commands, including after partial expiry. Preserve deliberately repeated explicit command IDs for replay tests. Ensure both the no-revival probe and the reserved-Forget probe actually exercise fresh requests. 2. Add the six-step partial-expiry regression from the independent review. Assert the old implementation raises a false alarm, the corrected invariant does not, the fresh request returns `occurrence_exists`, and the handled item stays unchanged. Also retain explicit replay coverage and the existing negative controls that catch genuine model revival. 3. Fix the two README nits: one prose paragraph per line, and commands that use the documented external environment/cache setup with bytecode writes disabled. Record the new measured test counts and the independent review accurately. 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: https://git.groupthink.asia/dev/attention-mind-mcp/pulls/20#issuecomment-40962 <!-- dd469-proposed-restore-repair-84de82b -->
Collaborator

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.

Operator directly approved “approve one small repair”. This authorizes the prepared plan at https://git.groupthink.asia/dev/attention-mind-mcp/issues/15#issuecomment-40966: 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.
Collaborator

spec-verify-dispatch Half B for dev/attention-mind-mcp#15 dd-469-recovery-proof-a-restore-identity-and-reserved-erasur completed integration verify.

  • PR: #20
  • Branch: feat/svd-dev-attention-mind-mcp-15-dd-469-recovery-proof-a-re-947c70c2
  • Commit: 60d8629a93
  • Build: none
  • Test: green
  • Reader audit clean: True
  • Spec fidelity: True
  • Ready for merge: True
  • Check ci/woodpecker/pr/validation: green https://ci.groupthink.asia/repos/76/pipeline/18/1
  • Checks: required ci/woodpecker/pr/validation resolved pass by CI-wait poll
  • Warning: ruff is not installed in this environment, so the spec's lint check (ruff check and ruff format --check) was not run. Run it in the repo uv environment.
  • Warning: The spec's existing-suite check (uv run python3 -m pytest -m unit) was not re-run. The diff touches only proofs/recovery/identity/, so no production file changed.
  • Warning: Default exploration depth was reduced from 7 to 4 to fit the 60-second budget. This is a documented bound. The subagent's depth-7 and depth-5 runs exceeded the budget.
  • Warning: The spec says the pytest run emits two PytestConfigWarning lines for the asyncio options because pytest_asyncio is missing. They appeared and are harmless.
  • CI wait: ci/woodpecker/pr/validation -> pass
  • Decision: review the PR and merge? (codex-svd ship --run-id 20261116T043852Z-947c70c2 --confirm-merge)
spec-verify-dispatch Half B for dev/attention-mind-mcp#15 dd-469-recovery-proof-a-restore-identity-and-reserved-erasur completed integration verify. - PR: https://git.groupthink.asia/dev/attention-mind-mcp/pulls/20 - Branch: feat/svd-dev-attention-mind-mcp-15-dd-469-recovery-proof-a-re-947c70c2 - Commit: 60d8629a93df0b92423829673f6b6defd08077be - Build: none - Test: green - Reader audit clean: True - Spec fidelity: True - Ready for merge: True - Check ci/woodpecker/pr/validation: green https://ci.groupthink.asia/repos/76/pipeline/18/1 - Checks: required ci/woodpecker/pr/validation resolved pass by CI-wait poll - Warning: ruff is not installed in this environment, so the spec's lint check (ruff check and ruff format --check) was not run. Run it in the repo uv environment. - Warning: The spec's existing-suite check (uv run python3 -m pytest -m unit) was not re-run. The diff touches only proofs/recovery/identity/, so no production file changed. - Warning: Default exploration depth was reduced from 7 to 4 to fit the 60-second budget. This is a documented bound. The subagent's depth-7 and depth-5 runs exceeded the budget. - Warning: The spec says the pytest run emits two PytestConfigWarning lines for the asyncio options because pytest_asyncio is missing. They appeared and are harmless. - CI wait: ci/woodpecker/pr/validation -> pass - Decision: review the PR and merge? (`codex-svd ship --run-id 20261116T043852Z-947c70c2 --confirm-merge`)
svc-svd-writer 2026-11-16 06:13:18 +00:00
  • closed this issue
  • removed the
    svd:hold
    label
Collaborator

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.

Complete and merged after the one approved corrective build. [Final evidence, independent reviews and green PR/main CI](https://git.groupthink.asia/dev/attention-mind-mcp/pulls/20#issuecomment-41034). Further backup work and release remain held as recorded on [the parent](https://git.groupthink.asia/dev/attention-mind-mcp/issues/6#issuecomment-41039).
Sign in to join this conversation.
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
dev/attention-mind-mcp#15
No description provided.