DD-469 #6 child 1/7: Bounds and original-admission accounting #29
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#29
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 1/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
909c3cc84aa5373166c97c02b712a1ab7d9a65a5)Fixed write set
src/attention_mind_mcp/recovery_budget.py,tests/test_recovery_budget.pyExpanding this write set, or changing reviewed guarantee semantics, goes back to spec review before dispatch.
Interface and responsibility
Given the existing
managed_profile.pyrecord class encoding and a reconciled authoritative budget snapshot, calculate and check charges for original admission, staging, publication and reserved completion. Keep callers from computing individual counters. Refuse overflow and unknown classes before allocation or admission. Cover non-decreasing lifetime and original reservations, deduplicated fact/coverage union, simultaneous F/C/M encrypted and decoded frontier copies, reserved marker/retirement bytes, admission slots and bounded work passes. Test exact encoded charges, overflows, missing/inconsistent reconciled state and reserved completion at ordinary saturation. Transition persists and advances the authoritative ledger, Forget uses the original reserve, and Restore reconciles it across generations and runs the integrated maximum-profile test. #25 supplies per-archive occupancy and encoding.Evidence served
E05, E06, E14. Scope the checked arithmetic and bounded reservation evidence. Physical high-water, restart/restore, writer envelope, measured SQLite/WAL/disk/RAM and retirement tests remain integration obligations.
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: two named files, checked arithmetic over the existing profile; no boundary 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#29 dd-469-6-child-1-7-bounds-and-original-admission-accounting
Status: CLEAN after 0 rework round(s) · 0 blocking defect(s) · 0 lens(es) INCONCLUSIVE (could not run) · 0 lens(es) DEGRADED (deterministic denial) · complexity
standard· dispatch effortmediumRun:
20261119T201038Z-8ecb1364Held because: CLEAN but 6 open risk(s) (4 verification · 2 decision) — HOLD-ALL parks everything. The risks, verbatim:
Open risks:
3862272before editing, and show the same failure set plus only the new passing tests after the change. [verification]Change: Create a pure, private module src/attention_mind_mcp/recovery_budget.py. It imports only the stdlib, .contract (FoundationError, canonical_uuid) and .managed_profile (RecordClass, ClassLimit, PROFILE, canonical_record, decode_record and the byte constants), so the record classes and encoding are reused, never re-implemented.
It provides three frozen dataclasses:
Every operation is a pure function that checks all limits in a fixed order before building its result with dataclasses.replace, so inputs are never mutated. This strengthens the check-then-commit shape of ArchiveOccupancy._reserve (managed_profile.py:286-298) and mirrors local mode's per-occurrence Forget reserve and ordinary/reserved command split (store.py:220-233, custody.py:280-289).
Charging operations:
The ledger persists as a HEADER-class canonical record of 12 keys: 314 B empty, 361 B at every field's maximum, against a 512 B bound. Tests in tests/test_recovery_budget.py follow the refused/UNIT/exact-and-one-over idioms of tests/test_managed_profile.py:1-22,198-248.
Files:
src/attention_mind_mcp/recovery_budget.py·tests/test_recovery_budget.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/.local/state/exhaust/groupthink/specs/2026-11-19-dd-469-6-child-1-7-bounds-and-original-admission-accounting.md— next:codex-svd dispatch --args '<same-json>' --approved-spec-path /Users/piers/.local/state/exhaust/groupthink/specs/2026-11-19-dd-469-6-child-1-7-bounds-and-original-admission-accounting.md— minds-guide@voyager
✅ SVD architect gate: dev/attention-mind-mcp#29 dd-469-6-child-1-7-bounds-and-original-admission-accounting
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:
20261119T204640Z-49bae8bbFiles:
src/attention_mind_mcp/recovery_budget.py·tests/test_recovery_budget.pyWrite-set divergence: present table wins. 0 sourceHashes vs 13-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:
/private/tmp/attention6-child29-gate-20261120/specs/2026-11-19-dd-469-6-child-1-7-bounds-and-original-admission-accounting.md— next:codex-svd dispatch --args '<same-json>' --approved-spec-path /private/tmp/attention6-child29-gate-20261120/specs/2026-11-19-dd-469-6-child-1-7-bounds-and-original-admission-accounting.md✅ SVD architect gate: dev/attention-mind-mcp#29 dd-469-6-child-1-7-bounds-and-original-admission-accounting
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:
20261119T210406Z-deb3c756Files:
src/attention_mind_mcp/recovery_budget.py·tests/test_recovery_budget.pyWrite-set divergence: present table wins. 0 sourceHashes vs 14-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/svd-child29/specs-marker-charge-v2/2026-11-19-dd-469-6-child-1-7-bounds-and-original-admission-accounting.md— next:codex-svd dispatch --args '<same-json>' --approved-spec-path /Users/piers/src/attention-mind-mcp/data/svd-child29/specs-marker-charge-v2/2026-11-19-dd-469-6-child-1-7-bounds-and-original-admission-accounting.mdspec-verify-dispatch Half B for dev/attention-mind-mcp#29 dd-469-6-child-1-7-bounds-and-original-admission-accounting completed integration verify.
9b6df1072dcodex-svd ship --run-id 20261119T211444Z-c8741446available 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#29 dd-469-6-child-1-7-bounds-and-original-admission-accounting completed integration verify.
0e8830009a0e8830009a; the runner must re-poll it.codex-svd ship --run-id 20261119T211444Z-c8741446available 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#29 dd-469-6-child-1-7-bounds-and-original-admission-accounting completed integration verify.
791a670397codex-svd ship --run-id 20261119T211444Z-c8741446available to a permitted seat)label flip withheld (--no-label-writes); gate label is the orchestrator's act — attention