DD-469 #6 child 3/7: Encrypted frontier and AEAD #31
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#31
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?
Parent and authority
Child 3/7 of #6 (DD-469 Attention 4/6). Parent epic: #1. Reviewed scope: decomposition
decomposition.mdSHA-256a51ac56839bcd81e6a34166e71ce677ba443a9d92b88423f772f3d84bbe39daa, spec PASS with zero findings in disposition4598e30997b235ab493c1067cb636b8612abb5eb53780323ee7f4c5cd179c531. Binds frozendocs/planning/issue-6-transition-protocol-v2.mdSHA-2561aaab9cb149d2575879428eaa9ce42d9b401a582a2ffa9bb44c31d4b2ac82cc2(design PASS 0, #6 comment 42606) and the paired #6 bodyf771415735c3a9238f03e7e9c4dacd259cb62e55e9a7839c20378a46a83f5b61and acceptance matrixa02eb1136bcd60f6dec7395e2a2ff337a189af64d0927a9d6f363b8d03003054, both ratified. Contract: mind-spec3da6a263e6aeb3f37d25590d6ab755045ff53786. Standing grant: #6 comment 42500.Blocked by
Fixed write set
src/attention_mind_mcp/recovery_crypto.py,src/attention_mind_mcp/recovery_frontier.py,pyproject.toml,uv.lock,tests/test_recovery_crypto.py,tests/test_recovery_frontier.pyExpanding this write set, or changing reviewed guarantee semantics, goes back to spec review before dispatch.
Interface and responsibility
Seal/open bounded authenticated archive and frontier envelopes and validate complete logical frontier state against its exact incarnation metadata. Use the reviewed P11 format and maintained dependency, subject to pin/advisory review in this child, purpose-separated secrets, externally available historical key IDs and one encryption per durable reservation supplied by Transition. Keep nonce, length, header, key-resolution, loss/rotation and framing rules within the module. Validate the full state needed for F/C/M, including inventory/coverage, lifetime and original reservations. Preserve all required predecessor state when constructing M, and protect old state/key availability through eligible retention and unresolved debt. Tests cover corrupt/truncated/replayed envelopes, wrong/missing keys, separate recovery copies, reserve reuse refusal, complete-state marker preservation and encoded overhead. Transition owns durable admission/settlement and Restore owns actual recovered-key activation.
Change class. This child changes
pyproject.tomlanduv.lock. The guide classifies the merge from the diff; a dependency change is T2 or higher and needs/code-reviewand/security-reviewposted on the PR before merge. Pin and advisory review of the selected AEAD dependency is part of this child.Evidence served
E03, E05, E06, E07, E10. Real archive recovery with a separately held old key and measured simultaneous maximum copies remain integration 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
command not found,errors during collection,= not foundand"is_error":true.Filed under: operator word "file tickets" sha256:d982c2768589
State:
ready-for-agent. The issue body is the agent brief. Its scope, fixed write set, dependencies, E-row debt and gates come verbatim from the decomposition that mind-spec passed with zero findings (disposition4598e30997b235ab493c1067cb636b8612abb5eb53780323ee7f4c5cd179c531).CONV-40 walk (advisory): branch 3 proposed
ready-for-human. Rule 3 fires: AEAD and key custody touch the credential surface and add a dependency (T2+).Applied
ready-for-agentunder the operator's ruling. The 2026-11-20T00:18:41+11:00 product-first ruling (Q5) routes each #6 child through delegated SVD with auto-gate and default caps. Spec has already ruled the boundary design in transition protocol v2 (design PASS 0, #6 comment 42606). This child implements that contract offline and authorizes no credential, provider or live action.Dispatch rule: start only when every issue under
## Blocked byhas merged. Children #33, #34 and #35 overlap on shared files, so they run one at a time.⏸ SVD architect gate: dev/attention-mind-mcp#31 dd-469-6-child-3-7-encrypted-frontier-and-aead
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
substrate· dispatch efforthighRun:
20261120T013029Z-2accd690Held because: CLEAN but 6 open risk(s) (4 verification · 2 decision) — HOLD-ALL parks everything. The risks, verbatim:
Open risks:
Change: Mirror proofs/recovery/staging/stagingproof/envelope.py:74-107 for the envelope: MAGIC, u32 header length and canonical header form the AAD, followed by nonce, ciphertext and tag. Opening checks length first and authenticates before parsing plaintext. Mirror envelope.py:24-42 for 0700/0600 exclusive key files. Mirror proofs/recovery/identity/identity_model.py:27-28 for HMAC purpose-key derivation. Follow the recovery_budget.py style: _fail fixed codes from None (:109-110), frozen dataclasses validated in post_init (:131-183), pure functions. Reuse managed_profile.canonical_record/decode_record (:127-228) and recovery_budget FRONTIER_PROFILE/frontier_record/ledger codec/cancel_transition/check_advance (:56-68, :201-245, :269-280, :370-397, :461-468) unchanged. recovery_crypto has two purposes (archive and frontier). Its KeyRing handles rotation, plus retirement guarded by obligations. KeyCustody handles primary and separate recovery-copy dirs. SealReservation is consume-first and single use; decoded reservations are inert. SealedEnvelope keeps prefix and body separate, so there is no uncharged copy. A fixed-order open distinguishes key_unavailable, key_mismatch, envelope_unauthenticated, envelope_replayed and artifact_expired. recovery_frontier encodes canonical class-ordered records: HEADER with ledger, OCCURRENCE, EVIDENCE, ARTIFACT inventory, spent COMMAND, certificate COMMAND, FOOTER. They are validated against the envelope incarnation metadata and the ledger. build_marker copies F's tuples byte-exact, adds one certificate, and takes its ledger from cancel_transition. check_marker and check_candidate enforce preservation. key_obligations feeds KeyRing.retire. The dependency change is cryptography>=50.0.2,<51 in pyproject; it is already locked at 50.0.2 transitively, so only the project dependency and requires-dist lock lines change.
Files:
src/attention_mind_mcp/recovery_crypto.py·src/attention_mind_mcp/recovery_frontier.py·pyproject.toml·uv.lock·tests/test_recovery_crypto.py·tests/test_recovery_frontier.pyDecision: 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/src/attention-mind-mcp/data/svd30-31/specs-31/2026-11-20-dd-469-6-child-3-7-encrypted-frontier-and-aead.md— next:codex-svd dispatch --args '<same-json>' --approved-spec-path /Users/piers/src/attention-mind-mcp/data/svd30-31/specs-31/2026-11-20-dd-469-6-child-3-7-encrypted-frontier-and-aead.mdlabel flip withheld (--no-label-writes); gate label is the orchestrator's act — attention
spec-verify-dispatch Half B for dev/attention-mind-mcp#31 dd-469-6-child-3-7-encrypted-frontier-and-aead completed integration verify.
cadca3566dcadca3566d.codex-svd ship --run-id 20261120T024115Z-3b223369available to a permitted seat)label flip withheld (--no-label-writes); gate label is the orchestrator's act — attention
Merge-gate dispositions for PR #42, round 1
PR #42 is at head
cadca356. Independent Standards, Spec and Security reviews ran at that head. The operator ruled the security findings and the spec-level finding on 2026-11-20.exceptkeeps the library error in__context__check_markeraccepts a refunded lifetime, an inflated lifetime and a revision past F+1revision == F+1,F <= lifetime <= F+1recovery_budget.py:379), and each operation adds at most one lifetime occurrenceSP2 residual. On the path with no PREPARED payload (P05.1), a marker that drops the candidate's single admission cannot be told apart from one where the candidate admitted nothing. The marker is authenticated, and only
build_markerwrites it. Its derivation is tested exactly.Filed under: operator-word-d982c2768589
spec-verify-dispatch Half B for dev/attention-mind-mcp#31 dd-469-6-child-3-7-encrypted-frontier-and-aead completed integration verify.
143a3415d8143a3415d8. Local: 36 new unit tests, 463 unit and 66 transport tests, ruff, ruff format, mypy and uv lock --check all pass.codex-svd ship --run-id 20261120T024115Z-3b223369available to a permitted seat)label flip withheld (--no-label-writes); gate label is the orchestrator's act — attention
spec-verify-dispatch Half B for dev/attention-mind-mcp#31 dd-469-6-child-3-7-encrypted-frontier-and-aead completed integration verify.
6b3845fe676b3845fe67: ci/woodpecker/pr/validation green. Local unit (469), transport (66), ruff, format, mypy and uv lock --check all pass. Write set matches the six spec files.codex-svd ship --run-id 20261120T024115Z-3b223369available to a permitted seat)label flip withheld (--no-label-writes); gate label is the orchestrator's act — attention
spec-verify-dispatch Half B for dev/attention-mind-mcp#31 dd-469-6-child-3-7-encrypted-frontier-and-aead completed integration verify.
5e2757fa1b5e2757fa1b: ci/woodpecker/pr/validation green. Local: unit 474 passed, transport 66 passed, ruff/format/mypy clean, uv lock --check passes. No blockers.codex-svd ship --run-id 20261120T024115Z-3b223369available to a permitted seat)label flip withheld (--no-label-writes); gate label is the orchestrator's act — attention
spec-verify-dispatch Half B for dev/attention-mind-mcp#31 dd-469-6-child-3-7-encrypted-frontier-and-aead completed integration verify.
f353463360f353463360. Local unit (478), transport (66), ruff, mypy and uv lock --check all pass.codex-svd ship --run-id 20261120T024115Z-3b223369available to a permitted seat)label flip withheld (--no-label-writes); gate label is the orchestrator's act — attention
spec-verify-dispatch Half B for dev/attention-mind-mcp#31 dd-469-6-child-3-7-encrypted-frontier-and-aead completed integration verify.
b9361ceb87b9361ceb87. Local: unit 481 passed, transport 66 passed, ruff, ruff format, mypy, uv lock --check all clean. No blockers.codex-svd ship --run-id 20261120T024115Z-3b223369available to a permitted seat)label flip withheld (--no-label-writes); gate label is the orchestrator's act — attention