DD-469 #6 child 2/7: Logical archive exporter and readable staging #30
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#30
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 2/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_archive.py,src/attention_mind_mcp/recovery_staging.py,tests/test_recovery_archive.py,tests/test_recovery_staging.pyExpanding this write set, or changing reviewed guarantee semantics, goes back to spec review before dispatch.
Interface and responsibility
Export one consistent logical snapshot under the caller's release barrier, validate its framed schema against
managed_profile.py, and manage owned staging reservation, inspection and durable retirement. Use allowlisted current records from SQLite, header/counter and footer/digest checks, class accounting and sensitive field exclusion. Store, principal and suppression key material is separately recovered under the key custody rules. Refuse unknown/inconsistent data and prevent partial archives from registering. Hold the readiness/acknowledgement barrier if readable staged files cannot be classified or retired. Tests exercise raw synthetic markers including free pages and impossible framing, interrupted export, fsync/permission failures and restart inventory. Transition wires the barrier, Forget removes obsolete readable copies before success, and Restore uses the checked reader and runs actual round trips. No production delivery integration is part of #6. Reject unclassified delivery-intent data, and require any later persisted record to have a reviewed class and charge before managed export.Evidence served
E04, E06, E08, E10, E11. Staging/format evidence is local. Restore eligibility depends on manifest coverage, authenticated decryption and reconciliation with independent authority.
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 2 proposed
ready-for-agent. Bounded: four named files, local SQLite export and staging; no network or credential surface.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#30 dd-469-6-child-2-7-logical-archive-exporter-and-readable-sta
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-c2366702Held because: CLEAN but 8 open risk(s) (2 verification · 6 decision) — HOLD-ALL parks everything. The risks, verbatim:
Open risks:
uv run python3 -m pytest -m unit. [verification]Change: recovery_archive.py:
_fail,__post_init__validation).recovery_staging.py:
Files:
src/attention_mind_mcp/recovery_archive.py·src/attention_mind_mcp/recovery_staging.py·tests/test_recovery_archive.py·tests/test_recovery_staging.pyDecision: accept the 8 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-30/2026-11-20-dd-469-6-child-2-7-logical-archive-exporter-and-readable-sta.md— next:codex-svd dispatch --args '<same-json>' --approved-spec-path /Users/piers/src/attention-mind-mcp/data/svd30-31/specs-30/2026-11-20-dd-469-6-child-2-7-logical-archive-exporter-and-readable-sta.mdlabel flip withheld (--no-label-writes); gate label is the orchestrator's act — attention
Architect-gate dispositions for the #30 Half-A spec
The spec is from run 20261120T013029Z-c2366702, rebaselined onto main
9af46b3e:2026-11-20-dd-469-6-child-2-7-logical-archive-exporter-and-readable-sta.md, sha2565e5bc649…15a8. mind-spec checked the decision risks for canonical fit, and the operator ruled the open ones on 2026-11-20.principals.credential_digestis left out of the archive; Restore re-provisions principal credentials from separate custodylifetime_admittedas an unverified, profile-capped bound; Restore reconciles against the frontierdeadline_us <= identity.created_usare left out of the archivecontracts/attention-v1/README.md:55), P11D6 change. The archive cutoff must be the provider's effective time at the snapshot. It is bounded below by the persisted clock floor. The draft checks only
created_us >= effective_floor_us, so a futurecreated_uscould leave out a command outcome that is still valid.created_usmay stay as the cutoff only if it is bound to the provider's effective time for that snapshot.Next. Revise the spec for D6 only, run the Half-A verify again, and have mind-spec re-check D6. svd:go follows under the standing ruling. #31 dispatches first. #30 is rebaselined after #31 merges.
Filed under: operator-word-d982c2768589
🛑 SVD architect gate: dev/attention-mind-mcp#30 dd-469-6-child-2-7-logical-archive-exporter-and-readable-sta
Status: NEEDS ARCHITECT JUDGEMENT after 0 rework round(s) · 1 blocking defect(s) · 0 lens(es) INCONCLUSIVE (could not run) · 0 lens(es) DEGRADED (deterministic denial) · complexity
unclassified· dispatch effortunclassifiedRun:
20261120T030007Z-9a59d383Blocking defects (verbatim, with evidence):
floor_usholds. The reader-side cutoff invariant therefore does not enforce the exporter's cutoff, and the spec cites anInvariant 10that does not exist.Evidence: Spec line 117 (COMMAND row): "Only rows with
deadline_us > snapshot_effective_us(= HEADERfloor_us)". Spec line 124 (step 1): "Setsnapshot_effective_us = max(clock_sample_us, queue.effective_floor_us)...floor_uscarries the persisted floor read from SQLite. Export leaves that floor intact." Test 6 uses persisted floor 100 with provider clock 150 and excludes the deadline-150 command. Line 141 has the reader checkdeadline_us > header.floor_usand call it 'Invariant 10 (cutoff invariant)'; the Invariants section lists only 1-9. Iffloor_usis the persisted floor (100), the reader accepts a deadline-150 or deadline-120 command that the exporter would have dropped at cutoff 150. The snapshot_effective_us value is never persisted in the archive. The reader half of the claimed cutoff invariant is therefore vacuous when the clock exceeds the floor, and the spec does not say which reading the header holds. Fix: define one header field for snapshot_effective_us, or drop the reader-enforcement claim, and add a numbered invariant for it.Files:
src/attention_mind_mcp/recovery_archive.py·src/attention_mind_mcp/recovery_staging.py·tests/test_recovery_archive.py·tests/test_recovery_staging.pyWrite-set divergence: present table wins. 0 sourceHashes vs 20-row table.
Decision: 1 blocking defect(s) stand after 0 rework round(s) — discard and re-spec (
svd:respec), or park for a human (svd:skip)?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/evidence-30-d6/spec-v2/2026-11-20-dd-469-6-child-2-7-logical-archive-exporter-and-readable-sta.md— next:codex-svd dispatch --args '<same-json>' --approved-spec-path /Users/piers/src/attention-mind-mcp/data/svd30-31/evidence-30-d6/spec-v2/2026-11-20-dd-469-6-child-2-7-logical-archive-exporter-and-readable-sta.md✅ SVD architect gate: dev/attention-mind-mcp#30 dd-469-6-child-2-7-logical-archive-exporter-and-readable-sta
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:
20261120T030156Z-5ee84be9Files:
src/attention_mind_mcp/recovery_archive.py·src/attention_mind_mcp/recovery_staging.py·tests/test_recovery_archive.py·tests/test_recovery_staging.pyWrite-set divergence: present table wins. 0 sourceHashes vs 20-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/src/attention-mind-mcp/data/svd30-31/evidence-30-d6/spec-v3/2026-11-20-dd-469-6-child-2-7-logical-archive-exporter-and-readable-sta.md— next:codex-svd dispatch --args '<same-json>' --approved-spec-path /Users/piers/src/attention-mind-mcp/data/svd30-31/evidence-30-d6/spec-v3/2026-11-20-dd-469-6-child-2-7-logical-archive-exporter-and-readable-sta.mdspec-verify-dispatch Half B for dev/attention-mind-mcp#30 dd-469-6-child-2-7-logical-archive-exporter-and-readable-sta completed integration verify.
72f294d12572f294d125. Local: 84 targeted and 565 unit tests pass; ruff check, ruff format and mypy are clean.codex-svd ship --run-id 20261120T044546Z-8f132718available to a permitted seat)label flip withheld (--no-label-writes); gate label is the orchestrator's act — attention@voyager
PR #44 round-1 dispositions
Three independent reviews ran on head
72f294d1(Spec, Standards and Security §19). The code matches the spec and the D1 to D6 dispositions. The operator ruled the security items under section 6 of the standing grant on 2026-11-20.__context__retireunlinks before it validates custodyrecovery_crypto, which open risk D7 freezesst_nlinkis not checkedrecovery_archiveimports.commands(first-party), outside the spec import listFiled under: operator-word-d982c2768589
PR #44 round-2 dispositions
Head
72beb4bc. Standards passes with zero findings. Security confirms that SEC1 to SEC6 are fixed. mind-spec found the round-1 spec amendment (sha2561f01fa3f…199b) fits the canonical, with one clash.retireunlink a staging-owned plaintext file that has a second hard link, then reach READY or release the chargeretirerefuses without releasing custodystaged()verifies through the pinned descriptor but returns a plain pathFiled under: operator-word-d982c2768589
spec-verify-dispatch Half B for dev/attention-mind-mcp#30 dd-469-6-child-2-7-logical-archive-exporter-and-readable-sta completed integration verify.
dadd99006bdadd99006b: ci/woodpecker/pr/validation green. Local: 166 targeted and 647 full unit tests pass; ruff check, ruff format and mypy clean. No blockers.codex-svd ship --run-id 20261120T044546Z-8f132718available to a permitted seat)label flip withheld (--no-label-writes); gate label is the orchestrator's act — attention@voyager
PR #44 round-3 dispositions
Head
dadd9900. SEC8, SEC9 and SEC10 are fixed. All 18 round-2 test gaps are closed. Standards passes. Pipeline 57 is green, and attention's exact-head integrate is READY. mind-spec found no clash between the round-3 spec amendment (sha256a9be727e…5035) and the canonical; the amendment implements P11 as written.Filed under: operator-word-d982c2768589
PR #44 round-4 dispositions
Head
586b31d5. Security passes: SEC11 is fixed on retire, failed-stage cleanup and the sweep, and SEC8 still holds. Spec passes with one nit, and SP11 and SP12 are closed. Pipeline 58 is red.staging_entry_unclassified, and retire refuses without released custody. This also gives a directory at the plaintext name a fitting codetest_failed_stage_under_umask_retires_unreadable_plaintextfails as root in CI, because root reads a 0o200 file.partialcandidatesFiled under: operator-word-d982c2768589
spec-verify-dispatch Half B for dev/attention-mind-mcp#30 dd-469-6-child-2-7-logical-archive-exporter-and-readable-sta completed integration verify.
30481a19d930481a19d9. Local: 179 new tests pass, full unit suite 660 passed, ruff check, ruff format and mypy clean.codex-svd ship --run-id 20261120T044546Z-8f132718available to a permitted seat)label flip withheld (--no-label-writes); gate label is the orchestrator's act — attention@voyager
spec-verify-dispatch Half B for dev/attention-mind-mcp#30 dd-469-6-child-2-7-logical-archive-exporter-and-readable-sta completed integration verify.
a45112a654a45112a. Local: 180 new tests and 661 unit tests pass. ruff check, ruff format and mypy are clean. No build manifest.codex-svd ship --run-id 20261120T044546Z-8f132718available to a permitted seat)label flip withheld (--no-label-writes); gate label is the orchestrator's act — attention@voyager