DD-469 #6 child 5b/7: Managed backup lifecycle and non-command cancellation #47

Open
opened 2026-11-21 04:23:45 +00:00 by svc-agent-writer · 3 comments

Parent and authority

Child 5b of #6 (DD-469 Attention 4/6), split from #33 on 2026-11-21 by operator ruling R3. Parent epic: #1. It sits between #34 and #35 in serial order. It amends the reviewed decomposition decomposition.md SHA-256 a51ac56839bcd81e6a34166e71ce677ba443a9d92b88423f772f3d84bbe39daa: the backup lifecycle and non-command transitions move here from #33. mind-spec found the cut fits as a gated integration stage. Binds frozen docs/planning/issue-6-transition-protocol-v2.md SHA-256 1aaab9cb149d2575879428eaa9ce42d9b401a582a2ffa9bb44c31d4b2ac82cc2 (design PASS 0, #6 comment 42606). Contract: mind-spec 3da6a263e6aeb3f37d25590d6ab755045ff53786. Standing grant: #6 comment 42500.

Why the split: #33's sweep of every frozen API found that a non-command transition (REGISTER, PUBLISH, SETTLE_COPY, RETIRE_COPY, CLEAR_DEBT) cannot get an abort marker M without a command charge. The frozen marker needs exactly one command charge (recovery_frontier.py:583, recovery_budget.py:370-396). mind-spec read the fitting design as a distinct non-command cancellation certificate. That certificate changes two frozen modules and the P05.1/P05.2 guarantee text, so it needs ratification under grant section 4.

Blocked by

  • #33 — child 5/7 (Durable transition)
  • #34 — child 6/7 (Forget)

Fixed write set

src/attention_mind_mcp/recovery_transition.py, src/attention_mind_mcp/custody.py, src/attention_mind_mcp/recovery_budget.py, src/attention_mind_mcp/recovery_frontier.py, tests/test_recovery_transition.py, tests/test_recovery_frontier.py, tests/test_recovery_backup.py

Expanding this write set, or changing reviewed guarantee semantics, goes back to spec review before dispatch.

Interface and responsibility

Add the non-command transitions REGISTER, PUBLISH, SETTLE_COPY, RETIRE_COPY and CLEAR_DEBT through #33's transition engine, and remove #33's interim refusal (custody_lifecycle_unavailable) and its pristine-custody condition.

  • Non-command cancellation certificate. COMMAND record framing with a closed b = cancel_op subtype and its own budget and checking path. cancel_transition and the existing command certificate keep their bytes and semantics. The full encoded certificate is at most 512 bytes, counted against the existing 2 MiB marker reserve, with zero command slots and zero client spend. Validation is subtype-specific, not spent-row limits or deadline retirement. At saturation, F and its protected Forget and cleanup headroom are preserved. Both branches and the retention cost are reserved before C, and only proven-retired bytes are released.
  • Exact prepared fence. Persist the exact bounded fence bytes and the plan and admission bindings before the first send; reopen those bytes; never resend an admitted fence.
  • Inventory continuation. Either prove continuation from a charged, verified page prefix with its original plan binding, or start a separately admitted fresh refresh.
  • Coverage baseline. One deterministic bounded projection, the same one #35 reuses: terminal and disposition fact identities justified by authenticated archive rows and the bound snapshot state. Forget fingerprints are a separate lifetime-bounded set. Plain reserves stay out of the baseline under separate P08, P09 and P13 accounting. Bind the baseline to the exact artifact and snapshot boundary, and verify complete through-current facts separately. Missing, irreproducible or over-bound evidence fails closed; never truncate.
  • Backup lifecycle. Reservation before the snapshot, exact rehash of the staged bytes, registration and publication, fence and exclusion proof, through-current coverage, and verified exact deletion plus later complete absence before a charge is released. Clear the orphan debt that #33 keeps, only with the required evidence. Use the existing keyword-only calls.

Serial dispatch. This child overlaps #33 and #34 on recovery_transition.py and custody.py, and #35 builds on it. Dispatch only after #34 has merged; never run two of them at once.

Evidence served

Proposed; the Half-A specification pins the exact rows. From #33: the backup-lifecycle share of E04, E05, E06 and E08 (ciphertext copies and staging, coverage through immutable expiry, encoded bounds for inventory and uploads, orphan clearing). #33 keeps E02, E03 and the command share of E06 and E14. #35 still completes E10 and the maximum-profile evidence.

Completing this child does not discharge E09, E12 or E13. Those stay owed against the real production custodian under the ratified owner-attested, sample-labelled standard. E15 stays with #6 reconciliation.

Gates

  • Fresh SVD Half-A specification with delegated auto-gate and default caps.
  • Before dispatch, mind-spec ratifies the exact certificate variant under grant section 4. It withheld ratification of the first draft. The specification must pin these:
    • recognition and retirement under P05.1 and P05.2 when the local prepare record is missing;
    • which independently durable or reconciled evidence binds the plan and settles each side effect, keeping unresolved obligations, charges and the barrier when that evidence is missing or contradictory;
    • the certificate is carried until a later exact successor has evidence of durable local retirement, exclusion of C, and independent classification and accounting of every side effect;
    • a canonical, unambiguous domain encoding for the authority digest;
    • the original-F CAS sent once, exact M readback, and C-winner forward settlement.
      P05.3, P10, P12 and P13 still bind. No attention-v1 wire change.
  • Merge requires independent Standards and Spec PASS with zero findings, green CI on the exact head, and a raw CI log audit for command not found, errors during collection, = not found and "is_error":true.
  • Existing local mode, attention/1.0, binding 1.1 and compatible schema-2 stores stay supported. Existing certificates and records stay readable byte for byte. No SQLite schema change.
  • Offline only. No provider request, credential, IAM, bucket or configuration change, claim, reservation or live run. Frozen fence and harness bytes stay unchanged; the protocol text changes only as mind-spec's section 4 ratification directs. Balances 57 / 1,943 / 1,504 unchanged.
  • Production managed activation and admission stay gated until this child and #34 have landed.

Filed under: operator-word-d982c2768589 (R3 split ruling)

## Parent and authority Child 5b of #6 (DD-469 Attention 4/6), split from #33 on 2026-11-21 by operator ruling R3. Parent epic: #1. It sits between #34 and #35 in serial order. It amends the reviewed decomposition `decomposition.md` SHA-256 `a51ac56839bcd81e6a34166e71ce677ba443a9d92b88423f772f3d84bbe39daa`: the backup lifecycle and non-command transitions move here from #33. mind-spec found the cut fits as a gated integration stage. Binds frozen `docs/planning/issue-6-transition-protocol-v2.md` SHA-256 `1aaab9cb149d2575879428eaa9ce42d9b401a582a2ffa9bb44c31d4b2ac82cc2` (design PASS 0, #6 comment 42606). Contract: mind-spec `3da6a263e6aeb3f37d25590d6ab755045ff53786`. Standing grant: #6 comment 42500. Why the split: #33's sweep of every frozen API found that a non-command transition (REGISTER, PUBLISH, SETTLE_COPY, RETIRE_COPY, CLEAR_DEBT) cannot get an abort marker M without a command charge. The frozen marker needs exactly one command charge (`recovery_frontier.py:583`, `recovery_budget.py:370-396`). mind-spec read the fitting design as a distinct non-command cancellation certificate. That certificate changes two frozen modules and the P05.1/P05.2 guarantee text, so it needs ratification under grant section 4. ## Blocked by - #33 — child 5/7 (Durable transition) - #34 — child 6/7 (Forget) ## Fixed write set `src/attention_mind_mcp/recovery_transition.py`, `src/attention_mind_mcp/custody.py`, `src/attention_mind_mcp/recovery_budget.py`, `src/attention_mind_mcp/recovery_frontier.py`, `tests/test_recovery_transition.py`, `tests/test_recovery_frontier.py`, `tests/test_recovery_backup.py` Expanding this write set, or changing reviewed guarantee semantics, goes back to spec review before dispatch. ## Interface and responsibility Add the non-command transitions REGISTER, PUBLISH, SETTLE_COPY, RETIRE_COPY and CLEAR_DEBT through #33's transition engine, and remove #33's interim refusal (`custody_lifecycle_unavailable`) and its pristine-custody condition. - **Non-command cancellation certificate.** COMMAND record framing with a closed `b = cancel_op` subtype and its own budget and checking path. `cancel_transition` and the existing command certificate keep their bytes and semantics. The full encoded certificate is at most 512 bytes, counted against the existing 2 MiB marker reserve, with zero command slots and zero client spend. Validation is subtype-specific, not spent-row limits or deadline retirement. At saturation, F and its protected Forget and cleanup headroom are preserved. Both branches and the retention cost are reserved before C, and only proven-retired bytes are released. - **Exact prepared fence.** Persist the exact bounded fence bytes and the plan and admission bindings before the first send; reopen those bytes; never resend an admitted fence. - **Inventory continuation.** Either prove continuation from a charged, verified page prefix with its original plan binding, or start a separately admitted fresh refresh. - **Coverage baseline.** One deterministic bounded projection, the same one #35 reuses: terminal and disposition fact identities justified by authenticated archive rows and the bound snapshot state. Forget fingerprints are a separate lifetime-bounded set. Plain reserves stay out of the baseline under separate P08, P09 and P13 accounting. Bind the baseline to the exact artifact and snapshot boundary, and verify complete through-current facts separately. Missing, irreproducible or over-bound evidence fails closed; never truncate. - **Backup lifecycle.** Reservation before the snapshot, exact rehash of the staged bytes, registration and publication, fence and exclusion proof, through-current coverage, and verified exact deletion plus later complete absence before a charge is released. Clear the orphan debt that #33 keeps, only with the required evidence. Use the existing keyword-only calls. **Serial dispatch.** This child overlaps #33 and #34 on `recovery_transition.py` and `custody.py`, and #35 builds on it. Dispatch only after #34 has merged; never run two of them at once. ## Evidence served Proposed; the Half-A specification pins the exact rows. From #33: the backup-lifecycle share of E04, E05, E06 and E08 (ciphertext copies and staging, coverage through immutable expiry, encoded bounds for inventory and uploads, orphan clearing). #33 keeps E02, E03 and the command share of E06 and E14. #35 still completes E10 and the maximum-profile evidence. Completing this child does not discharge E09, E12 or E13. Those stay owed against the real production custodian under the ratified owner-attested, sample-labelled standard. E15 stays with #6 reconciliation. ## Gates - Fresh SVD Half-A specification with delegated auto-gate and default caps. - **Before dispatch, mind-spec ratifies the exact certificate variant under grant section 4.** It withheld ratification of the first draft. The specification must pin these: - recognition and retirement under P05.1 and P05.2 when the local prepare record is missing; - which independently durable or reconciled evidence binds the plan and settles each side effect, keeping unresolved obligations, charges and the barrier when that evidence is missing or contradictory; - the certificate is carried until a later exact successor has evidence of durable local retirement, exclusion of C, and independent classification and accounting of every side effect; - a canonical, unambiguous domain encoding for the authority digest; - the original-F CAS sent once, exact M readback, and C-winner forward settlement. P05.3, P10, P12 and P13 still bind. No attention-v1 wire change. - Merge requires independent Standards and Spec PASS with zero findings, green CI on the exact head, and a raw CI log audit for `command not found`, `errors during collection`, `= not found` and `"is_error":true`. - Existing local mode, attention/1.0, binding 1.1 and compatible schema-2 stores stay supported. Existing certificates and records stay readable byte for byte. No SQLite schema change. - Offline only. No provider request, credential, IAM, bucket or configuration change, claim, reservation or live run. Frozen fence and harness bytes stay unchanged; the protocol text changes only as mind-spec's section 4 ratification directs. Balances 57 / 1,943 / 1,504 unchanged. - Production managed activation and admission stay gated until this child and #34 have landed. Filed under: operator-word-d982c2768589 (R3 split ruling)
Author
Member

This was generated by AI during the SVD architect gate (minds-guide@voyager).

Carried from #33: the optional recovery HEAD

#33 revision 7 leaves recovery pass position 4 unused, because #33 has no managed artifact and a HEAD cannot authenticate an F, C or M winner. The optional exact artifact HEAD (P05) therefore belongs to this issue, with mind-spec's reading:

  • A private engine-typed admission and settlement fit, with no storage plan kind and no section 4 ratification. Bind pass and position, admission id, canonical request digest, exact namespace, key and version, and artifact identity.
  • Success predicate: complete success at the admitted target with an exact returned version id. A missing or wrong version does not settle. An ETag that contradicts a known one blocks settlement. Require ETag equality only if the independent predicate needs it. No general length check.
  • Reserve the encoded admission and its rewrite at 16 KiB each, reconcile both charges, and fail closed on reopen.
  • HEAD alone proves neither authenticated ciphertext nor restore eligibility.

Filed under: operator-word-d982c2768589

> *This was generated by AI during the SVD architect gate (minds-guide@voyager).* ## Carried from #33: the optional recovery HEAD #33 revision 7 leaves recovery pass position 4 unused, because #33 has no managed artifact and a HEAD cannot authenticate an F, C or M winner. The optional exact artifact HEAD (P05) therefore belongs to this issue, with mind-spec's reading: - A private engine-typed admission and settlement fit, with no storage plan kind and no section 4 ratification. Bind pass and position, admission id, canonical request digest, exact namespace, key and version, and artifact identity. - Success predicate: complete success at the admitted target with an exact returned version id. A missing or wrong version does not settle. An ETag that contradicts a known one blocks settlement. Require ETag equality only if the independent predicate needs it. No general length check. - Reserve the encoded admission and its rewrite at 16 KiB each, reconcile both charges, and fail closed on reopen. - HEAD alone proves neither authenticated ciphertext nor restore eligibility. Filed under: operator-word-d982c2768589
Author
Member

This was generated by AI during the SVD architect gate (minds-guide@voyager).

Carried from #33 revision 11

#33's approved spec, revision 11 (sha256 d306967d25fe6d770dc75280fea9b7f036900b503058f4549a84eb4aee531302, release record #33 comment 44849), moves these items to this issue. This body already carries the non-command transitions, the cancellation certificate, the exact prepared fence, inventory continuation, the J coverage baseline and the backup lifecycle. Comment 44784 still carries the optional recovery HEAD. The items below are additional or more exact.

  • Staging plus full-read charge. Charge the staging file and its full archive read together, at the full archive cap. The frozen staging route reads the archive after the exporter returns (recovery_staging.py:459-471). #33 keeps only the blocking checks before any archive read: the pre-read identity and reservation checks, and blocked export and staging with zero archive bytes.
  • Successful managed archive privacy controls. Post-cancel exclusion, the current-live forward control, and archives that never source prepared rows.
  • P10 reservation issuer. The full prior P10 reservation issuer, the engine handoff of the exact snapshot identity and staging location, and a summary identity recheck before registration or emission.
  • Debt records as retirement inputs. #33 keeps one charged debt record per exact version or delete marker, at most 16,384 encoded bytes each, inside a 4,194,304-byte debt-metadata aggregate. These records sit outside the shared J projection. Before retirement and charge release, require current exact authority, verified absence and delayed-create exclusion (P05.3, P10). Incomplete or over-bound evidence gives UNKNOWN and keeps the known debt.
  • Stock-S3 ownership-release proof (P09, G). Before production managed activation or use, prove the exact release of resources that stock S3 attempts own, for both observation sends and command sends, through restart. #33 keeps the charge without this proof. Worker exit alone releases no workspace charge.
  • Maximum archive-envelope upload (R7). The maximum upload and its single-send ambiguity test move here with the backup lifecycle, and feed E13.
  • No production hold on Forget or cleanup. The ordinary-work hold must never become a production hold on Forget or on reserved cleanup (P09; attention-v1 README line 77). #34 carries the same check.
  • Sole-prune check at this gate. commands.py:223 stays the only DELETE FROM commands in src. At this merge gate, run the sole-prune grep and the tamper and saturation checks.

Production gates. Production managed activation and new managed admission stay disabled until #34 and this issue land. Two gates must also be implemented and verified first: (1) activation (P01, P03): before production activation enters PREPARED, exclude any other serving process for the queue, stop new release permits, drain active handoffs and discard unreleased buffers, with exclusion proved through cutover and restart; (2) the stock-S3 ownership release above.

Filed under: operator-word-d982c2768589

> *This was generated by AI during the SVD architect gate (minds-guide@voyager).* ## Carried from #33 revision 11 #33's approved spec, revision 11 (sha256 `d306967d25fe6d770dc75280fea9b7f036900b503058f4549a84eb4aee531302`, release record #33 comment 44849), moves these items to this issue. This body already carries the non-command transitions, the cancellation certificate, the exact prepared fence, inventory continuation, the J coverage baseline and the backup lifecycle. Comment 44784 still carries the optional recovery HEAD. The items below are additional or more exact. - **Staging plus full-read charge.** Charge the staging file and its full archive read together, at the full archive cap. The frozen staging route reads the archive after the exporter returns (`recovery_staging.py:459-471`). #33 keeps only the blocking checks before any archive read: the pre-read identity and reservation checks, and blocked export and staging with zero archive bytes. - **Successful managed archive privacy controls.** Post-cancel exclusion, the current-live forward control, and archives that never source prepared rows. - **P10 reservation issuer.** The full prior P10 reservation issuer, the engine handoff of the exact snapshot identity and staging location, and a summary identity recheck before registration or emission. - **Debt records as retirement inputs.** #33 keeps one charged debt record per exact version or delete marker, at most 16,384 encoded bytes each, inside a 4,194,304-byte debt-metadata aggregate. These records sit outside the shared J projection. Before retirement and charge release, require current exact authority, verified absence and delayed-create exclusion (P05.3, P10). Incomplete or over-bound evidence gives UNKNOWN and keeps the known debt. - **Stock-S3 ownership-release proof (P09, G).** Before production managed activation or use, prove the exact release of resources that stock S3 attempts own, for both observation sends and command sends, through restart. #33 keeps the charge without this proof. Worker exit alone releases no workspace charge. - **Maximum archive-envelope upload (R7).** The maximum upload and its single-send ambiguity test move here with the backup lifecycle, and feed E13. - **No production hold on Forget or cleanup.** The ordinary-work hold must never become a production hold on Forget or on reserved cleanup (P09; attention-v1 README line 77). #34 carries the same check. - **Sole-prune check at this gate.** `commands.py:223` stays the only `DELETE FROM commands` in `src`. At this merge gate, run the sole-prune grep and the tamper and saturation checks. **Production gates.** Production managed activation and new managed admission stay disabled until #34 and this issue land. Two gates must also be implemented and verified first: (1) activation (P01, P03): before production activation enters PREPARED, exclude any other serving process for the queue, stop new release permits, drain active handoffs and discard unreleased buffers, with exclusion proved through cutover and restart; (2) the stock-S3 ownership release above. Filed under: operator-word-d982c2768589
Author
Member

This was generated by AI during the SVD architect gate (minds-guide@voyager).

Carried from #33 revision 12: command expiry and reclamation

#33's approved spec, revision 12 (sha256 4f7baa16ba1727eeee38d583494e0fb9e2a4e65a213f2759e7ae153230277f24, release record on #33), adds this item to the carries in comment 44855.

  • Why. The frozen frontier stores each spent command as an opaque key and its original deadline only (recovery_frontier.py:133-144). The ordinary and completion counts exist only as ledger totals (recovery_budget.py:155-156). So the frontier cannot prove which class an expired command belonged to.
  • What #33 does. #33 gives no frontier credit for command expiry. A candidate may omit an expired spent identity, but both authenticated command counters stay charged, on the marker and across reopen. Retained charges grant no authority.
  • What this issue owes. Before production managed activation and use, prove a bounded, proof-based expiry and reclamation path (P08, P09). It must handle existing classless records: a codec addition alone cannot classify them. A counter reduction needs a per-identity proof that the removed identity was a still-charged entry of that exact predecessor, with no duplicates and no reuse of earlier credit. An authenticated class binding in the frontier format needs mind-spec section 4 review of the exact persisted variant. It must keep existing frontier bytes readable and handle the ambiguity of legacy records explicitly.
  • Production gate. Production activation stays disabled until this path is implemented and verified, together with the activation and stock-S3 ownership-release gates.

Filed under: operator-word-d982c2768589

> *This was generated by AI during the SVD architect gate (minds-guide@voyager).* ## Carried from #33 revision 12: command expiry and reclamation #33's approved spec, revision 12 (sha256 `4f7baa16ba1727eeee38d583494e0fb9e2a4e65a213f2759e7ae153230277f24`, release record on #33), adds this item to the carries in comment 44855. - **Why.** The frozen frontier stores each spent command as an opaque key and its original deadline only (`recovery_frontier.py:133-144`). The ordinary and completion counts exist only as ledger totals (`recovery_budget.py:155-156`). So the frontier cannot prove which class an expired command belonged to. - **What #33 does.** #33 gives no frontier credit for command expiry. A candidate may omit an expired spent identity, but both authenticated command counters stay charged, on the marker and across reopen. Retained charges grant no authority. - **What this issue owes.** Before production managed activation and use, prove a bounded, proof-based expiry and reclamation path (P08, P09). It must handle existing classless records: a codec addition alone cannot classify them. A counter reduction needs a per-identity proof that the removed identity was a still-charged entry of that exact predecessor, with no duplicates and no reuse of earlier credit. An authenticated class binding in the frontier format needs mind-spec section 4 review of the exact persisted variant. It must keep existing frontier bytes readable and handle the ambiguity of legacy records explicitly. - **Production gate.** Production activation stays disabled until this path is implemented and verified, together with the activation and stock-S3 ownership-release gates. Filed under: operator-word-d982c2768589
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
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#47
No description provided.