DD-469 #6 child 5/7: Durable transition and quarantine #33

Open
opened 2026-11-19 13:45:44 +00:00 by svc-agent-writer · 50 comments

Parent and authority

Child 5/7 of #6 (DD-469 Attention 4/6). Parent epic: #1. Reviewed scope: decomposition decomposition.md SHA-256 a51ac56839bcd81e6a34166e71ce677ba443a9d92b88423f772f3d84bbe39daa, spec PASS with zero findings in disposition 4598e30997b235ab493c1067cb636b8612abb5eb53780323ee7f4c5cd179c531. Binds frozen docs/planning/issue-6-transition-protocol-v2.md SHA-256 1aaab9cb149d2575879428eaa9ce42d9b401a582a2ffa9bb44c31d4b2ac82cc2 (design PASS 0, #6 comment 42606) and the paired #6 body f771415735c3a9238f03e7e9c4dacd259cb62e55e9a7839c20378a46a83f5b61 and acceptance matrix a02eb1136bcd60f6dec7395e2a2ff337a189af64d0927a9d6f363b8d03003054, both ratified. Contract: mind-spec 3da6a263e6aeb3f37d25590d6ab755045ff53786. Standing grant: #6 comment 42500.

Blocked by

  • #32 — child 4/7 (Manifests/inventory)

Fixed write set

src/attention_mind_mcp/store.py, src/attention_mind_mcp/custody.py, src/attention_mind_mcp/service.py, src/attention_mind_mcp/recovery_transition.py, tests/test_recovery_transition.py

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

Interface and responsibility

Extend the existing prepared/finalize path through a single queue transition interface. Persist original-admission reservations and a non-decreasing lifetime high-water, atomically coupled to local mutation/outcome, with the independently surviving authenticated frontier carrying the same authority. Start from reconciled state when opening or admitting a new write. Refuse or quarantine stale/missing/contradictory authority or a lower older archive value presented as authority. Preserve existing schema-2 data on additive migration. The one prepared record durably reserves exact F/C/M bytes, predecessor, identities, nonce allocations and settlement plans before send. It holds the reconstructed readiness and disclosure barrier, applies C once, cancels/spends once on exact M, keeps F alone inconclusive, and retires obsolete state before releasing/replying. Connect backup registration/retirement and staging to the same custody/admission path. Persist only bounded diagnostic metadata. Test production code with the local storage fault adapter and writer termination, lost admission/response, C/M winners, repeated restart before/during settlement and retirement, unresolved/unknown authority and unchanged original deadlines. Release/admission generations block stale work.

Serial dispatch. Children 5, 6 and 7 overlap on store.py, service.py and custody.py. Dispatch only after the preceding child has merged; never run two of them at once.

Inherited constraint (spec disposition 4598e309). The prepared record reserves exact F/C/M bytes through P09's separately charged file references/copies; it does not place multi-megabyte envelopes inside the bounded prepared-record payload.

Evidence served

E02–E06, E08, E10, E14 and offline E12/E13 prerequisites. Own persistence and restart evidence for high-water. Forget completes transport/erasure integration. Restore completes reconciliation, fresh-writer activation and 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. Concrete interface signatures, persisted schema and encoded charges, premise freshness rules and exact test schedules belong in that specification under the bound protocol.
  • 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. New or migrated persisted records need named P09 classes and encoded bounds.
  • Offline only. No provider request, credential, IAM, bucket or configuration change, claim, reservation or live run. Frozen fence/harness/protocol bytes stay unchanged. Balances 57 / 1,943 / 1,504 unchanged.

Filed under: operator word "file tickets" sha256:d982c2768589

## Parent and authority Child 5/7 of #6 (DD-469 Attention 4/6). Parent epic: #1. Reviewed scope: decomposition `decomposition.md` SHA-256 `a51ac56839bcd81e6a34166e71ce677ba443a9d92b88423f772f3d84bbe39daa`, spec PASS with zero findings in disposition `4598e30997b235ab493c1067cb636b8612abb5eb53780323ee7f4c5cd179c531`. Binds frozen `docs/planning/issue-6-transition-protocol-v2.md` SHA-256 `1aaab9cb149d2575879428eaa9ce42d9b401a582a2ffa9bb44c31d4b2ac82cc2` (design PASS 0, #6 comment 42606) and the paired #6 body `f771415735c3a9238f03e7e9c4dacd259cb62e55e9a7839c20378a46a83f5b61` and acceptance matrix `a02eb1136bcd60f6dec7395e2a2ff337a189af64d0927a9d6f363b8d03003054`, both ratified. Contract: mind-spec `3da6a263e6aeb3f37d25590d6ab755045ff53786`. Standing grant: #6 comment 42500. ## Blocked by - #32 — child 4/7 (Manifests/inventory) ## Fixed write set `src/attention_mind_mcp/store.py`, `src/attention_mind_mcp/custody.py`, `src/attention_mind_mcp/service.py`, `src/attention_mind_mcp/recovery_transition.py`, `tests/test_recovery_transition.py` Expanding this write set, or changing reviewed guarantee semantics, goes back to spec review before dispatch. ## Interface and responsibility Extend the existing prepared/finalize path through a single queue transition interface. Persist original-admission reservations and a non-decreasing lifetime high-water, atomically coupled to local mutation/outcome, with the independently surviving authenticated frontier carrying the same authority. Start from reconciled state when opening or admitting a new write. Refuse or quarantine stale/missing/contradictory authority or a lower older archive value presented as authority. Preserve existing schema-2 data on additive migration. The one prepared record durably reserves exact F/C/M bytes, predecessor, identities, nonce allocations and settlement plans before send. It holds the reconstructed readiness and disclosure barrier, applies C once, cancels/spends once on exact M, keeps F alone inconclusive, and retires obsolete state before releasing/replying. Connect backup registration/retirement and staging to the same custody/admission path. Persist only bounded diagnostic metadata. Test production code with the local storage fault adapter and writer termination, lost admission/response, C/M winners, repeated restart before/during settlement and retirement, unresolved/unknown authority and unchanged original deadlines. Release/admission generations block stale work. **Serial dispatch.** Children 5, 6 and 7 overlap on `store.py`, `service.py` and `custody.py`. Dispatch only after the preceding child has merged; never run two of them at once. **Inherited constraint (spec disposition 4598e309).** The prepared record reserves exact F/C/M bytes through P09's separately charged file references/copies; it does not place multi-megabyte envelopes inside the bounded prepared-record payload. ## Evidence served E02–E06, E08, E10, E14 and offline E12/E13 prerequisites. Own persistence and restart evidence for high-water. Forget completes transport/erasure integration. Restore completes reconciliation, fresh-writer activation and 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. Concrete interface signatures, persisted schema and encoded charges, premise freshness rules and exact test schedules belong in that specification under the bound protocol. - 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. New or migrated persisted records need named P09 classes and encoded bounds. - Offline only. No provider request, credential, IAM, bucket or configuration change, claim, reservation or live run. Frozen fence/harness/protocol bytes stay unchanged. Balances 57 / 1,943 / 1,504 unchanged. Filed under: operator word "file tickets" sha256:d982c2768589
Author
Member

This was generated by AI during triage.

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 (disposition 4598e30997b235ab493c1067cb636b8612abb5eb53780323ee7f4c5cd179c531).

CONV-40 walk (advisory): branch 3 proposed ready-for-human. Rule 3 fires: the SQLite/S3 transition protocol is a substrate contract across process and storage.

Applied ready-for-agent under 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 by has merged. Children #33, #34 and #35 overlap on shared files, so they run one at a time.

> *This was generated by AI during triage.* **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 (disposition `4598e30997b235ab493c1067cb636b8612abb5eb53780323ee7f4c5cd179c531`). **CONV-40 walk (advisory):** branch 3 proposed `ready-for-human`. Rule 3 fires: the SQLite/S3 transition protocol is a substrate contract across process and storage. **Applied `ready-for-agent` under 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 by` has merged. Children #33, #34 and #35 overlap on shared files, so they run one at a time.
Author
Member

This was generated by AI during the merge gate.

Carry-forward note from the PR #42 (#31) merge gate. recovery_crypto._resolve keeps a resolver's own FoundationError code. It maps every other resolver exception to key_unavailable, including MemoryError and a transient I/O failure. So key_unavailable alone does not prove that a key is lost. This child must not treat key_unavailable as permanent key loss. Its spec should say how it tells a transient resolver failure apart from a lost key. P11 and E07 already require the loss drill to tell an unavailable key, a wrong key, corrupt ciphertext and expiry apart. Sources: the round-5 security observation in the PR #42 gate record, and mind-spec's canonical-fit answer on the #31 round-1 amendments.

> *This was generated by AI during the merge gate.* **Carry-forward note from the PR #42 (#31) merge gate.** `recovery_crypto._resolve` keeps a resolver's own `FoundationError` code. It maps every other resolver exception to `key_unavailable`, including `MemoryError` and a transient I/O failure. So `key_unavailable` alone does not prove that a key is lost. This child must not treat `key_unavailable` as permanent key loss. Its spec should say how it tells a transient resolver failure apart from a lost key. P11 and E07 already require the loss drill to tell an unavailable key, a wrong key, corrupt ciphertext and expiry apart. Sources: the round-5 security observation in the PR #42 gate record, and mind-spec's canonical-fit answer on the #31 round-1 amendments.
Author
Member

This was generated by AI during the merge gate.

Carried forward from PR #44 (#30), merged as 35d15ff3

These two requirements apply to whichever child encrypts the staged archive (#32 or #33):

  1. Re-hash the staged bytes (operator ruling on SEC7, #30 comment 43731). staged() verifies the archive through the pinned staging directory, but it returns a plain path. The bytes a later reader opens at that path may differ from the verified bytes. The encrypting child must hash exactly the bytes it reads and refuse on a size or sha256 mismatch with the StagedArchive values. The PR #44 body records this as an open risk.
  2. Zero-lifetime identity. ArchiveIdentity accepts created_us == original_expiry_us, but the envelope code in recovery_crypto requires created < expiry. The encrypting child must refuse that identity with a fixed code before it does any work, or the spec must say which side changes.

The PR #44 gate record (comment 43858) has the details.

Filed under: operator-word-d982c2768589

> *This was generated by AI during the merge gate.* ## Carried forward from PR #44 (#30), merged as 35d15ff3 These two requirements apply to whichever child encrypts the staged archive (#32 or #33): 1. **Re-hash the staged bytes (operator ruling on SEC7, #30 comment 43731).** `staged()` verifies the archive through the pinned staging directory, but it returns a plain path. The bytes a later reader opens at that path may differ from the verified bytes. The encrypting child must hash exactly the bytes it reads and refuse on a size or sha256 mismatch with the `StagedArchive` values. The PR #44 body records this as an open risk. 2. **Zero-lifetime identity.** `ArchiveIdentity` accepts `created_us == original_expiry_us`, but the envelope code in `recovery_crypto` requires created < expiry. The encrypting child must refuse that identity with a fixed code before it does any work, or the spec must say which side changes. The PR #44 gate record (comment 43858) has the details. Filed under: operator-word-d982c2768589
Author
Member

This was generated by AI during the merge gate.

Carried forward from PR #46 (#32), merged as 0828c1ef

These requirements apply to #33. The #33 spec must name each one in its acceptance criteria, with negative tests, before #33 dispatch. The #32 spec records items 1 and 2 as its open risks 7 and 8.

  1. Obligations from #30 (comment 43873). The re-hash of the staged bytes and the zero-lifetime identity refusal are still owed. #32 does no encryption.
  2. Durable settlement and coverage.
    • Bind exact prepared creates and fences to the original predecessor and admission.
    • Persist authoritative exclusion evidence. Keep the fence and charge while a delayed commit is possible.
    • Release cleanup custody only after exact deletion and a later complete absence check.
    • Reuse coverage_root. Durably bind the snapshot boundary and baseline root to the artifact identity, ciphertext digest, queue and original expiry.
    • Apply §2b metadata accounting to the local custody aggregate and keep the independent admission reservation.
    • Derive through-current requirements from independent authoritative records, and preserve them across each mutation, marker settlement and prune under P09 accounting.
  3. Two-transition retirement (SEC6). No schedule may let two transitions each retire one of the last two copies. The duplicate-copy rule must hold across transitions, not only within one.
  4. Admission records. #33 is the first durable writer of admission records.
    • Bind the persisted namespace to the prepared identity and the deployment premise.
    • Preserve the original request, body and condition digests.
    • Leave an unbound admission unresolved. The 16 KiB bound and redaction still apply.
    • decode_admission accepts any bucket, and any role or prefix on inventory admissions. #33 must bind all three.
  5. Frontier binding (#33 and #35). Bind the digest, ETag and size to the authenticated current object in the premise namespace.
  6. Ambiguous writes. After an AMBIGUOUS deadline, neither a worker exit nor a late response may settle a provider write. Only a separately admitted exact readback resolves it.
  7. Manual orphan debt. Clear the debt only after an authorised removal of every exact version and delete marker, and then a fresh complete listing that shows absence.
  8. Upload availability. A full 100,671,488-byte envelope must upload over TLS within one timeout_s. At the 30 s default that needs about 3.4 MB/s. PR #46 records this as open risk 12.

The PR #46 gate record (comment 44379) has the details.

Filed under: operator-word-d982c2768589

> *This was generated by AI during the merge gate.* ## Carried forward from PR #46 (#32), merged as 0828c1ef These requirements apply to #33. The #33 spec must name each one in its acceptance criteria, with negative tests, before #33 dispatch. The #32 spec records items 1 and 2 as its open risks 7 and 8. 1. **Obligations from #30 (comment 43873).** The re-hash of the staged bytes and the zero-lifetime identity refusal are still owed. #32 does no encryption. 2. **Durable settlement and coverage.** - Bind exact prepared creates and fences to the original predecessor and admission. - Persist authoritative exclusion evidence. Keep the fence and charge while a delayed commit is possible. - Release cleanup custody only after exact deletion and a later complete absence check. - Reuse `coverage_root`. Durably bind the snapshot boundary and baseline root to the artifact identity, ciphertext digest, queue and original expiry. - Apply §2b metadata accounting to the local custody aggregate and keep the independent admission reservation. - Derive through-current requirements from independent authoritative records, and preserve them across each mutation, marker settlement and prune under P09 accounting. 3. **Two-transition retirement (SEC6).** No schedule may let two transitions each retire one of the last two copies. The duplicate-copy rule must hold across transitions, not only within one. 4. **Admission records.** #33 is the first durable writer of admission records. - Bind the persisted namespace to the prepared identity and the deployment premise. - Preserve the original request, body and condition digests. - Leave an unbound admission unresolved. The 16 KiB bound and redaction still apply. - `decode_admission` accepts any bucket, and any role or prefix on inventory admissions. #33 must bind all three. 5. **Frontier binding (#33 and #35).** Bind the digest, ETag and size to the authenticated current object in the premise namespace. 6. **Ambiguous writes.** After an AMBIGUOUS deadline, neither a worker exit nor a late response may settle a provider write. Only a separately admitted exact readback resolves it. 7. **Manual orphan debt.** Clear the debt only after an authorised removal of every exact version and delete marker, and then a fresh complete listing that shows absence. 8. **Upload availability.** A full 100,671,488-byte envelope must upload over TLS within one `timeout_s`. At the 30 s default that needs about 3.4 MB/s. PR #46 records this as open risk 12. The PR #46 gate record (comment 44379) has the details. Filed under: operator-word-d982c2768589
Collaborator

⏸ SVD architect gate: dev/attention-mind-mcp#33 dd-469-6-child-5-7-durable-transition-and-quarantine

Status: CLEAN after 2 rework round(s) · 0 blocking defect(s) · 0 lens(es) INCONCLUSIVE (could not run) · 0 lens(es) DEGRADED (deterministic denial) · complexity substrate · dispatch effort high

Run: 20261121T003643Z-46ea8f91

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

Open risks:

  1. R1: 'Additive migration' is met by an owned custody/ directory plus a closed managed payload_json variant, with SQLite schema 2 unchanged. The reason: recovery_archive.py:28,284-300,433-434 and tests/test_commands.py:832-843, both outside the write set, refuse any new table or user_version. Accept this, or require real tables? Tables would add both files to the write set and need re-review. [decision]
  2. R2: One PR carries the whole engine: activation, command settlement, reconcile, admissions, backup/retirement, debt and SEC6. Proceed as one slice, or re-slice into 5a/5b with the same write set and issueBinding: refs? [decision]
  3. R3: Every managed command, including no-op and refusal outcomes, costs one frontier publication, because command capacity lives in the authoritative ledger. Accept this for this child? [decision]
  4. R4: The item→Fact(fp,'terminal',{w,d}) mapping is defined here for the first time, and a disposition over the 1 KiB EVIDENCE cap is refused at prepare (capacity_exceeded). Is that right for #34/#35 and P10? [decision]
  5. R5: A pre-send Outcome.UNSENT is treated as complete absence of dispatch, allowing local cancellation without M. Confirm that UNSENT from S3Transport._check_request/LocalFaultTransport is sufficient proof of no send. [decision]
  6. R6: The admission settlement rewrite (temp + os.replace) charges its temp against the same 16 KiB record cap instead of a second admission slot. Does that satisfy P09's 'no uncharged extra copy'? [decision]
  7. R7: In the E13 real-custodian packet, verify that a 100,671,488 B PUT completes within S3Transport timeout_s=30.0 at the measured TLS throughput to the selected endpoint, or that timeout_s is set from that measurement. [verification]
  8. R8: At #6 reconciliation (E15), verify that each E02-E14 row citing this PR names its exact head and test node ids and stays labelled offline. E09/E12/E13 stay owed. [verification]
  9. R9: writer_epoch is carried unchanged from F and fresh-writer advancement is deferred to #35. Confirm that no #33 path, such as activation after an explicit reset, must bump it. [decision]
  10. R10: Store(data_dir, _custody=config) performs bounded transport sends (≤6 reserved ids) before returning (driver a). Should #35's CLI show/admin commands resume on every managed open, or should #35 add an explicit read-only open? [decision]

Change: Add src/attention_mind_mcp/recovery_transition.py, which provides QueueTransition, behind the existing seam: commands.decide → store.policy.requires_evidence → custody.prepare, routed through a ContextVar slot. Mirror custody.prepare/load_transition/finalize (custody.py:203-325) for every stage advance. Mirror the recovery_staging.StagingArea discipline (recovery_staging.py:77-560) for the owned custody/ files. Keep SQLite schema 2 byte-identical and add a closed managed variant of prepared_transitions.payload_json. resume() is the only recovery entry. It runs at Store.init open, before each non-info Service.execute, and after each prepare. Rework 2 adds I16 to custody.inspect_pending (custody.py:264-290). Rows are decoded once via load_prepared. Every one of the four capacity sums (items :284, bytes :285, commands +len(rows) :286, lifetime :287-288) is taken over the outstanding rows only: legacy rows, plus managed COMMAND rows at stage PREPARED or MARKER_PREPARED. Managed COMMAND rows in LOCAL_SETTLED={LOCAL_COMMITTED,LOCAL_CANCELLED,RETIRING} contribute 0, because apply_transition (commands.py:342-411) or the spent-row insert has already written their effect in the same FULL tx. Non-command managed rows contribute 0 at every stage. The reserved* columns stay immutable: CHECK(reserved_commands=1) at store.py:240 and the load_transition column binding at custody.py:249-257 both forbid zeroing them. Stage tests use the closed sets custody.MANAGED_STAGES/LOCAL_SETTLED and never StrEnum ordering. For COMMAND rows, a tamper cross-check requires stage∈LOCAL_SETTLED ⇔ a commands row with that scoped_key exists. This is sound because commands.py:223 is the sole commands prune and it runs after the :189 quarantined return.

Files: src/attention_mind_mcp/store.py · src/attention_mind_mcp/custody.py · src/attention_mind_mcp/service.py · src/attention_mind_mcp/recovery_transition.py · tests/test_recovery_transition.py

Decision: accept the 10 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/src/attention-mind-mcp/data/svd33/specs/2026-11-21-dd-469-6-child-5-7-durable-transition-and-quarantine.md — next: codex-svd dispatch --args '<same-json>' --approved-spec-path /Users/piers/src/attention-mind-mcp/data/svd33/specs/2026-11-21-dd-469-6-child-5-7-durable-transition-and-quarantine.md

label flip withheld (--no-label-writes); gate label is the orchestrator's act — actor unset

### ⏸ SVD architect gate: dev/attention-mind-mcp#33 dd-469-6-child-5-7-durable-transition-and-quarantine **Status:** CLEAN after 2 rework round(s) · 0 blocking defect(s) · 0 lens(es) INCONCLUSIVE (could not run) · 0 lens(es) DEGRADED (deterministic denial) · complexity `substrate` · dispatch effort `high` **Run:** `20261121T003643Z-46ea8f91` **Held because:** CLEAN but 10 open risk(s) (2 verification · 8 decision) — HOLD-ALL parks everything. The risks, verbatim: **Open risks:** 1. R1: 'Additive migration' is met by an owned custody/ directory plus a closed managed payload_json variant, with SQLite schema 2 unchanged. The reason: recovery_archive.py:28,284-300,433-434 and tests/test_commands.py:832-843, both outside the write set, refuse any new table or user_version. Accept this, or require real tables? Tables would add both files to the write set and need re-review. [decision] 2. R2: One PR carries the whole engine: activation, command settlement, reconcile, admissions, backup/retirement, debt and SEC6. Proceed as one slice, or re-slice into 5a/5b with the same write set and issueBinding: refs? [decision] 3. R3: Every managed command, including no-op and refusal outcomes, costs one frontier publication, because command capacity lives in the authoritative ledger. Accept this for this child? [decision] 4. R4: The item→Fact(fp,'terminal',{w,d}) mapping is defined here for the first time, and a disposition over the 1 KiB EVIDENCE cap is refused at prepare (capacity_exceeded). Is that right for #34/#35 and P10? [decision] 5. R5: A pre-send Outcome.UNSENT is treated as complete absence of dispatch, allowing local cancellation without M. Confirm that UNSENT from S3Transport._check_request/LocalFaultTransport is sufficient proof of no send. [decision] 6. R6: The admission settlement rewrite (temp + os.replace) charges its temp against the same 16 KiB record cap instead of a second admission slot. Does that satisfy P09's 'no uncharged extra copy'? [decision] 7. R7: In the E13 real-custodian packet, verify that a 100,671,488 B PUT completes within S3Transport timeout_s=30.0 at the measured TLS throughput to the selected endpoint, or that timeout_s is set from that measurement. [verification] 8. R8: At #6 reconciliation (E15), verify that each E02-E14 row citing this PR names its exact head and test node ids and stays labelled offline. E09/E12/E13 stay owed. [verification] 9. R9: writer_epoch is carried unchanged from F and fresh-writer advancement is deferred to #35. Confirm that no #33 path, such as activation after an explicit reset, must bump it. [decision] 10. R10: Store(data_dir, _custody=config) performs bounded transport sends (≤6 reserved ids) before returning (driver a). Should #35's CLI show/admin commands resume on every managed open, or should #35 add an explicit read-only open? [decision] **Change:** Add src/attention_mind_mcp/recovery_transition.py, which provides QueueTransition, behind the existing seam: commands.decide → store._policy.requires_evidence → custody.prepare, routed through a ContextVar slot. Mirror custody.prepare/load_transition/finalize (custody.py:203-325) for every stage advance. Mirror the recovery_staging.StagingArea discipline (recovery_staging.py:77-560) for the owned custody/ files. Keep SQLite schema 2 byte-identical and add a closed managed variant of prepared_transitions.payload_json. resume() is the only recovery entry. It runs at Store.__init__ open, before each non-info Service.execute, and after each prepare. Rework 2 adds I16 to custody.inspect_pending (custody.py:264-290). Rows are decoded once via load_prepared. Every one of the four capacity sums (items :284, bytes :285, commands +len(rows) :286, lifetime :287-288) is taken over the outstanding rows only: legacy rows, plus managed COMMAND rows at stage PREPARED or MARKER_PREPARED. Managed COMMAND rows in LOCAL_SETTLED={LOCAL_COMMITTED,LOCAL_CANCELLED,RETIRING} contribute 0, because apply_transition (commands.py:342-411) or the spent-row insert has already written their effect in the same FULL tx. Non-command managed rows contribute 0 at every stage. The reserved_* columns stay immutable: CHECK(reserved_commands=1) at store.py:240 and the load_transition column binding at custody.py:249-257 both forbid zeroing them. Stage tests use the closed sets custody.MANAGED_STAGES/LOCAL_SETTLED and never StrEnum ordering. For COMMAND rows, a tamper cross-check requires stage∈LOCAL_SETTLED ⇔ a commands row with that scoped_key exists. This is sound because commands.py:223 is the sole commands prune and it runs after the :189 quarantined return. **Files:** `src/attention_mind_mcp/store.py` · `src/attention_mind_mcp/custody.py` · `src/attention_mind_mcp/service.py` · `src/attention_mind_mcp/recovery_transition.py` · `tests/test_recovery_transition.py` **Decision:** accept the 10 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/src/attention-mind-mcp/data/svd33/specs/2026-11-21-dd-469-6-child-5-7-durable-transition-and-quarantine.md` — next: `codex-svd dispatch --args '<same-json>' --approved-spec-path /Users/piers/src/attention-mind-mcp/data/svd33/specs/2026-11-21-dd-469-6-child-5-7-durable-transition-and-quarantine.md`</sub> label flip withheld (--no-label-writes); gate label is the orchestrator's act — actor unset
Author
Member

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

Architect-gate dispositions for the #33 Half-A spec

The spec is from run 20261121T003643Z-46ea8f91 on main 0828c1ef (CLEAN, 0 blocking, 2 rework rounds): 2026-11-21-dd-469-6-child-5-7-durable-transition-and-quarantine.md, sha256 3f2c3ed4…dfa4. Its five Primary Files are the #33 write set. mind-spec checked the eight decision risks for canonical fit. The operator ruled R2 on 2026-11-21. The guide checked the spec against comments 43686, 43873 and 44393.

Item Disposition Source
R1: additive migration as an owned custody/ directory plus a closed managed payload_json variant, SQLite schema 2 unchanged Settled. Conditions: existing data survives the migration; prepare and local settlement use FULL transactions; durable side files are synchronized and charged. New tables are optional mind-spec: P01, P03, P05.1, P09
R2: one PR for the whole engine, or 5a/5b One slice. #33 ships the whole engine in one PR Operator ruling. mind-spec: open (P03, P16); any enabled slice must hold the invariants it exposes
R3: every managed command costs one frontier publication Settled for newly admitted commands, including a no-op or an admitted precondition refusal. A replay and a refusal before admission spend no new slot. Batching is a future design mind-spec: P02, P04, P05, P09, attention-v1 conditional writes
R4: Fact(fp, "terminal", {"w", "d"}) and the 1 KiB cap Accommodated. The cap applies to the whole encoded record. #34 and #35 obligations follow P07, P08 and P10 mind-spec: P02, P09, P10, P14
R5: pre-send Outcome.UNSENT as proof of no dispatch Canonical clash. The spec must change. UNSENT proves no dispatch only once its settlement is durable, bound to the exact admission, and rules out any later send; the test transport proves it only in tests. The cancellation path returns command_spent while the frontier stays current with no new spend mind-spec: P06 (no-send proof); clash with P02, P09
R6: the admission settlement rewrite charged inside one 16 KiB cap Canonical clash. The spec must change. The original and the rewrite temp coexist: reserve their combined bytes before allocation, enforce the bound, and keep an interrupted temp's charge through retirement mind-spec: P09 capacity profile and reservation accounting
R9: writer_epoch carried unchanged Settled. A deliberate reset starts a new queue; a fresh writer on the same queue needs the P12 fence and a new P13 recovery generation mind-spec: P02, P12, P13
R10: resume on every managed open Carried to #35. A read-only show cannot apply queued mutations. P05 caps each recovery pass at four requests mind-spec: P03, P05, P05.4
R7, R8 Verification items for E13 and E15 Spec

Carry-forward coverage. Comment 44393 item 1 and the 43873 obligations (re-hash of staged bytes, zero-lifetime refusal) are covered. The spec must add an acceptance criterion and a negative test for each of these:

  • Admission namespace (44393 item 4): the whole bucket, role and prefix tuple equals the one namespace that the admission's kind names, including inventory admissions. Comparing each field to either namespace admits a mixed tuple.
  • Frontier binding (item 5): the binding includes the premise namespace, not only digest, ETag and size.
  • Coverage binding (item 2): coverage_root reuse, a negative case for each of the six bound fields, and a check after reopen.
  • Exact deletion before release, and orphan debt (items 2 and 7): a partial or wrong delete set, a missed version or delete marker, and an incomplete listing keep the charge and the debt.
  • Fence and exclusion record (item 2): a delayed create after the fence, an early release, and a missing or altered exclusion record.
  • SEC6 in flight (item 3): the schedule where the first transition is still prepared.
  • Ambiguous writes (item 6): a worker exit, and a readback that was not separately admitted.
  • Through-current facts, the admission reservation, the 16 KiB record bound, and the contradictory-readback cases (items 2 and 4, comment 43686).

Accepted as written. Upload throughput (item 8) is verified in the E13 packet (R7); the spec pins single-send ambiguity. Key-loss classification is #35's E07 drill (decomposition section 7); this child never classifies key_unavailable as loss.

Next. Amend the spec, run one Half-A verify, and have mind-spec confirm no clash on the amended hash. svd:go follows after that.

Filed under: operator-word-d982c2768589

> *This was generated by AI during the SVD architect gate (minds-guide@voyager).* ## Architect-gate dispositions for the #33 Half-A spec The spec is from run 20261121T003643Z-46ea8f91 on main 0828c1ef (CLEAN, 0 blocking, 2 rework rounds): `2026-11-21-dd-469-6-child-5-7-durable-transition-and-quarantine.md`, sha256 `3f2c3ed4…dfa4`. Its five Primary Files are the #33 write set. mind-spec checked the eight decision risks for canonical fit. The operator ruled R2 on 2026-11-21. The guide checked the spec against comments 43686, 43873 and 44393. | Item | Disposition | Source | | --- | --- | --- | | R1: additive migration as an owned `custody/` directory plus a closed managed `payload_json` variant, SQLite schema 2 unchanged | **Settled.** Conditions: existing data survives the migration; prepare and local settlement use FULL transactions; durable side files are synchronized and charged. New tables are optional | mind-spec: P01, P03, P05.1, P09 | | R2: one PR for the whole engine, or 5a/5b | **One slice.** #33 ships the whole engine in one PR | Operator ruling. mind-spec: open (P03, P16); any enabled slice must hold the invariants it exposes | | R3: every managed command costs one frontier publication | **Settled for newly admitted commands**, including a no-op or an admitted precondition refusal. A replay and a refusal before admission spend no new slot. Batching is a future design | mind-spec: P02, P04, P05, P09, attention-v1 conditional writes | | R4: `Fact(fp, "terminal", {"w", "d"})` and the 1 KiB cap | **Accommodated.** The cap applies to the whole encoded record. #34 and #35 obligations follow P07, P08 and P10 | mind-spec: P02, P09, P10, P14 | | R5: pre-send `Outcome.UNSENT` as proof of no dispatch | **Canonical clash. The spec must change.** UNSENT proves no dispatch only once its settlement is durable, bound to the exact admission, and rules out any later send; the test transport proves it only in tests. The cancellation path returns `command_spent` while the frontier stays current with no new spend | mind-spec: P06 (no-send proof); clash with P02, P09 | | R6: the admission settlement rewrite charged inside one 16 KiB cap | **Canonical clash. The spec must change.** The original and the rewrite temp coexist: reserve their combined bytes before allocation, enforce the bound, and keep an interrupted temp's charge through retirement | mind-spec: P09 capacity profile and reservation accounting | | R9: `writer_epoch` carried unchanged | **Settled.** A deliberate reset starts a new queue; a fresh writer on the same queue needs the P12 fence and a new P13 recovery generation | mind-spec: P02, P12, P13 | | R10: resume on every managed open | **Carried to #35.** A read-only show cannot apply queued mutations. P05 caps each recovery pass at four requests | mind-spec: P03, P05, P05.4 | | R7, R8 | Verification items for E13 and E15 | Spec | **Carry-forward coverage.** Comment 44393 item 1 and the 43873 obligations (re-hash of staged bytes, zero-lifetime refusal) are covered. The spec must add an acceptance criterion and a negative test for each of these: - Admission namespace (44393 item 4): the whole bucket, role and prefix tuple equals the one namespace that the admission's kind names, including inventory admissions. Comparing each field to either namespace admits a mixed tuple. - Frontier binding (item 5): the binding includes the premise namespace, not only digest, ETag and size. - Coverage binding (item 2): `coverage_root` reuse, a negative case for each of the six bound fields, and a check after reopen. - Exact deletion before release, and orphan debt (items 2 and 7): a partial or wrong delete set, a missed version or delete marker, and an incomplete listing keep the charge and the debt. - Fence and exclusion record (item 2): a delayed create after the fence, an early release, and a missing or altered exclusion record. - SEC6 in flight (item 3): the schedule where the first transition is still prepared. - Ambiguous writes (item 6): a worker exit, and a readback that was not separately admitted. - Through-current facts, the admission reservation, the 16 KiB record bound, and the contradictory-readback cases (items 2 and 4, comment 43686). **Accepted as written.** Upload throughput (item 8) is verified in the E13 packet (R7); the spec pins single-send ambiguity. Key-loss classification is #35's E07 drill (decomposition section 7); this child never classifies `key_unavailable` as loss. **Next.** Amend the spec, run one Half-A verify, and have mind-spec confirm no clash on the amended hash. svd:go follows after that. Filed under: operator-word-d982c2768589
Collaborator

✅ SVD architect gate: dev/attention-mind-mcp#33 dd-469-6-child-5-7-durable-transition-and-quarantine

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: 20261121T023823Z-423d0b6b

Files: src/attention_mind_mcp/store.py · src/attention_mind_mcp/custody.py · src/attention_mind_mcp/service.py · src/attention_mind_mcp/recovery_transition.py · tests/test_recovery_transition.py

Write-set divergence: present table wins. 0 sourceHashes vs 26-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/src/attention-mind-mcp/data/svd33/spec-v2/2026-11-21-dd-469-6-child-5-7-durable-transition-and-quarantine.md — next: codex-svd dispatch --args '<same-json>' --approved-spec-path /Users/piers/src/attention-mind-mcp/data/svd33/spec-v2/2026-11-21-dd-469-6-child-5-7-durable-transition-and-quarantine.md

### ✅ SVD architect gate: dev/attention-mind-mcp#33 dd-469-6-child-5-7-durable-transition-and-quarantine **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:** `20261121T023823Z-423d0b6b` **Files:** `src/attention_mind_mcp/store.py` · `src/attention_mind_mcp/custody.py` · `src/attention_mind_mcp/service.py` · `src/attention_mind_mcp/recovery_transition.py` · `tests/test_recovery_transition.py` **Write-set divergence:** present table wins. 0 sourceHashes vs 26-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/src/attention-mind-mcp/data/svd33/spec-v2/2026-11-21-dd-469-6-child-5-7-durable-transition-and-quarantine.md` — next: `codex-svd dispatch --args '<same-json>' --approved-spec-path /Users/piers/src/attention-mind-mcp/data/svd33/spec-v2/2026-11-21-dd-469-6-child-5-7-durable-transition-and-quarantine.md`</sub>
Author
Member

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

mind-spec canonical fit on the #33 spec amendments

mind-spec checks canonical fit only, against docs/planning/issue-6-transition-protocol-v2.md at 0828c1ef and the attention-v1 contract. The guide relays its answers here, so the spec can cite a forge record. Earlier dispositions: comment 44602.

Spec-v2, sha256 2534783d…dfc5b (2026-11-21).

  • Accommodated: the R5 fix (only exact authenticated M, with durable local settlement and retirement, can return command_spent; proven no-send settles only C's dispatch and does not authorize spend from F; P02, P05.2, P06). The R6 fix (one logical admission slot holds two 16,384-byte reservations through verified rewrite retirement; P09). The admission namespace and through-current coverage bindings, original-publication or fence and exclusion evidence, exact-version retirement with fresh post-delete absence, and persistent orphan debt (P03 to P05, P10, P14). No portable contract amendment is needed.
  • Six clashes, all fixed in spec-v3: the literal recovery pass order (P05, P05.1, P06); prior reservation and simultaneous-copy accounting (P09); the exact M lifetime on cancellation and reopen (P02, P05.2, P09, P13); backup reservation before snapshot (P10); fresh bound observations before READY, and unknown for previously enabled custody (P01, P15); the effective barrier on direct export and staging (P03, P01).

Spec-v3, sha256 6f55a611…3742 (2026-11-21).

  • Accommodated: the GET-first recovery pass, copy accounting, the exact M high-water, the disabled-custody status and the export barrier. R5 and R6 stay settled.
  • Two clashes, to be fixed in spec-v4:
    1. P01, P04 (protocol line 9). The first PUT of C from a PREPARED row with no C admission runs under the settlement gate alone. If the evidence expires after preparation, that PUT can still commit the mutation. Recheck fresh, bound observations before that first dispatch. An attempt already dispatched, or possibly dispatched, is still reconciled under P05.
    2. P10 (protocol line 107). The direct export and staging routes enforce readiness and freshness but not the matching reservation. Every managed snapshot must bind its identity, creation time, expiry, key, queue and generation, encoded size bound, and every local and remote location before it begins.

Filed under: operator-word-d982c2768589

> *This was generated by AI during the SVD architect gate (minds-guide@voyager).* ## mind-spec canonical fit on the #33 spec amendments mind-spec checks canonical fit only, against `docs/planning/issue-6-transition-protocol-v2.md` at 0828c1ef and the attention-v1 contract. The guide relays its answers here, so the spec can cite a forge record. Earlier dispositions: comment 44602. **Spec-v2, sha256 `2534783d…dfc5b` (2026-11-21).** - Accommodated: the R5 fix (only exact authenticated M, with durable local settlement and retirement, can return `command_spent`; proven no-send settles only C's dispatch and does not authorize spend from F; P02, P05.2, P06). The R6 fix (one logical admission slot holds two 16,384-byte reservations through verified rewrite retirement; P09). The admission namespace and through-current coverage bindings, original-publication or fence and exclusion evidence, exact-version retirement with fresh post-delete absence, and persistent orphan debt (P03 to P05, P10, P14). No portable contract amendment is needed. - Six clashes, all fixed in spec-v3: the literal recovery pass order (P05, P05.1, P06); prior reservation and simultaneous-copy accounting (P09); the exact M lifetime on cancellation and reopen (P02, P05.2, P09, P13); backup reservation before snapshot (P10); fresh bound observations before READY, and `unknown` for previously enabled custody (P01, P15); the effective barrier on direct export and staging (P03, P01). **Spec-v3, sha256 `6f55a611…3742` (2026-11-21).** - Accommodated: the GET-first recovery pass, copy accounting, the exact M high-water, the disabled-custody status and the export barrier. R5 and R6 stay settled. - Two clashes, to be fixed in spec-v4: 1. P01, P04 (protocol line 9). The first PUT of C from a PREPARED row with no C admission runs under the settlement gate alone. If the evidence expires after preparation, that PUT can still commit the mutation. Recheck fresh, bound observations before that first dispatch. An attempt already dispatched, or possibly dispatched, is still reconciled under P05. 2. P10 (protocol line 107). The direct export and staging routes enforce readiness and freshness but not the matching reservation. Every managed snapshot must bind its identity, creation time, expiry, key, queue and generation, encoded size bound, and every local and remote location before it begins. Filed under: operator-word-d982c2768589
Author
Member

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

Approved spec for #33 Half-B

Approved spec: 2026-11-21-dd-469-6-child-5-7-durable-transition-and-quarantine.md, revision 5, sha256 6f2c939213e60d83c481fde4d8d33006a3169256376d8129e94cb3a332769062 (162,517 bytes, 824 lines), on main 0828c1ef. Earlier records: comments 44602 and 44651.

Verify runs after 44651. Each run was verify-only, with no rework rounds and no label writes, on base 0828c1ef.

Revision sha256 Run Result
3 6f55a611…3742 20261121T025552Z-24ffb06d Not clean: 1 blocking (unnamed Store.transaction() callers)
4 0e87a4b7…5906 20261121T030447Z-aa680191 Clean: 2 warnings, 1 nit
5 6f2c9392…9062 20261121T031350Z-47b7d5de Clean: 2 warnings, 2 nits

Revision 4 fixes. Revision 4 fixes the revision 3 blocking defect, the two mind-spec clashes on revision 3 and six smaller items:

  • a table that names every Store.transaction() caller as gated content or state-only;
  • a fresh-evidence recheck before the first dispatch of C;
  • the exact reservation on direct export and staging, with the never-activated local path unchanged;
  • matching scenario and test names;
  • an explicit class for R10;
  • the open-time queue check before any provider call;
  • a refusal when a managed prepare has no slot.

Revision 5 fixes. Revision 5 fixes the revision 4 warning on the budget API. prepare_transition refuses while a frontier copy is held. So the spec now runs it on a private state, derived by releasing the idle F charge, under the custody lock as one check. A reopen with a durable prepared row counts F inside that one reservation. Revision 5 also adds binding.py:134 to the reader audit.

Warnings accepted without amendment:

  • Revision 4, I16 tamper coverage: the guide checked by hand that the tamper and saturation scenarios and their tests are present.
  • Revision 5, R5 and R6 citations: the verifier could not read this issue. The guide confirmed that comment 44651 exists and records both settlements.
  • Revision 5, the sole commands prune: the I16 equivalence holds only while commands.py:223 is the only DELETE FROM commands. The spec records this for #34 and #35 under Risk flags. Their gates re-run the grep.

mind-spec canonical fit. mind-spec found no clash on revision 4 and no clash on revision 5. It confirmed that both revision 3 clashes are closed. R5 and R6 stay settled and R10 stays with #35. For revision 5 it accommodated the idle-F transfer and the reopen accounting under P09 and P05.1. It also found that the reader audit keeps the attention-v1 readiness values and the P15 status contract.

Filed under: operator-word-d982c2768589

> *This was generated by AI during the SVD architect gate (minds-guide@voyager).* ## Approved spec for #33 Half-B Approved spec: `2026-11-21-dd-469-6-child-5-7-durable-transition-and-quarantine.md`, revision 5, sha256 `6f2c939213e60d83c481fde4d8d33006a3169256376d8129e94cb3a332769062` (162,517 bytes, 824 lines), on main `0828c1ef`. Earlier records: comments 44602 and 44651. **Verify runs after 44651.** Each run was verify-only, with no rework rounds and no label writes, on base `0828c1ef`. | Revision | sha256 | Run | Result | | --- | --- | --- | --- | | 3 | `6f55a611…3742` | 20261121T025552Z-24ffb06d | Not clean: 1 blocking (unnamed `Store.transaction()` callers) | | 4 | `0e87a4b7…5906` | 20261121T030447Z-aa680191 | Clean: 2 warnings, 1 nit | | 5 | `6f2c9392…9062` | 20261121T031350Z-47b7d5de | Clean: 2 warnings, 2 nits | **Revision 4 fixes.** Revision 4 fixes the revision 3 blocking defect, the two mind-spec clashes on revision 3 and six smaller items: - a table that names every `Store.transaction()` caller as gated content or state-only; - a fresh-evidence recheck before the first dispatch of C; - the exact reservation on direct export and staging, with the never-activated local path unchanged; - matching scenario and test names; - an explicit class for R10; - the open-time queue check before any provider call; - a refusal when a managed prepare has no slot. **Revision 5 fixes.** Revision 5 fixes the revision 4 warning on the budget API. `prepare_transition` refuses while a frontier copy is held. So the spec now runs it on a private state, derived by releasing the idle F charge, under the custody lock as one check. A reopen with a durable prepared row counts F inside that one reservation. Revision 5 also adds `binding.py:134` to the reader audit. **Warnings accepted without amendment:** - Revision 4, I16 tamper coverage: the guide checked by hand that the tamper and saturation scenarios and their tests are present. - Revision 5, R5 and R6 citations: the verifier could not read this issue. The guide confirmed that comment 44651 exists and records both settlements. - Revision 5, the sole `commands` prune: the I16 equivalence holds only while `commands.py:223` is the only `DELETE FROM commands`. The spec records this for #34 and #35 under Risk flags. Their gates re-run the grep. **mind-spec canonical fit.** mind-spec found no clash on revision 4 and no clash on revision 5. It confirmed that both revision 3 clashes are closed. R5 and R6 stay settled and R10 stays with #35. For revision 5 it accommodated the idle-F transfer and the reopen accounting under P09 and P05.1. It also found that the reader audit keeps the attention-v1 readiness values and the P15 status contract. Filed under: operator-word-d982c2768589
Author
Member

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

Approved spec for #33 Half-B, revision 6

This record replaces comment 44720. Revision 5 was released, but its Half-B dispatch stopped on two spec contradictions. svd:go was removed until a corrected revision passed review.

Approved spec: 2026-11-21-dd-469-6-child-5-7-durable-transition-and-quarantine.md, revision 6, sha256 dface8aaefb6f31b78b12bfbb8afdab2c54a214ee3a497414f5e8fee2bbb9154 (170,716 bytes, 840 lines), on main 0828c1ef.

Half-B dispatch on revision 5. Run 20261121T031914Z-5d2d6da3 ran for 97 seconds and declared the work incomplete. It changed no file and opened no PR. The guide confirmed both contradictions against 0828c1ef:

  • D1. The spec required the archive content entry to compare its scope with the actual export invocation before any read. But recovery_archive.py:432 calls store.transaction() with no argument, and keeps its ArchiveIdentity inside the exporter. Inside the five-file write set, the gate cannot see that identity.
  • D2. The managed prepared row embeds the command Transition. Its candidate JSON, title included, must match custody.py:89-94 exactly. A scenario also forbade candidate title bytes in any prepared row.

Revision 6 fixes.

  • D1, option A. recovery_archive.py becomes the sixth Primary File. _export_snapshot passes its actual ArchiveIdentity to the private Store._archive_transaction(identity). Before any snapshot read, that entry checks the identity, the single-use scope, effective quarantine and the full durable reservation. Bare Store.transaction() refuses on a managed or previously activated queue. The never-activated local path, the archive bytes and the wire do not change. The engine passes exactly the scope's identity and staging location. The staged summary is a second check before sealing or registration.
  • D2. Only the local SQLite managed COMMAND row may hold the exact canonical candidate JSON, title included, and only as far as replay and forward apply need it. The complete encoded row stays within 65,536 bytes. That material stays out of control records, diagnostics, the abort marker and logical archives.
  • Retirement order. On both branches, the temporary apply material and the prepared row are durably retired before the completion acknowledgement and before any barrier lift, including after a restart. P07's Forget requirements are recorded as a carry-forward to #34.

Verify run. Run 20261121T033426Z-fad6ae3a was verify-only, with no rework rounds and no label writes, on base 0828c1ef. It was CLEAN: 0 blocking, 1 warning and 4 nits, all accepted. The warning was that one lens read only part of the spec. The guide read the whole change from revision 5 to revision 6. The nits are about line citations, and each claim holds.

mind-spec canonical fit. Both D1 options fit P10, and the guide chose option A. On revision 6, mind-spec found no clash. It accommodated D1 under P03, P10 and P11, D2 under P02, P09, P05.1 and P11, and the retirement order under P04 and P05.2. Revision 4 and revision 5 dispositions in comment 44720 still stand.

Filed under: operator-word-d982c2768589

> *This was generated by AI during the SVD architect gate (minds-guide@voyager).* ## Approved spec for #33 Half-B, revision 6 This record replaces comment 44720. Revision 5 was released, but its Half-B dispatch stopped on two spec contradictions. svd:go was removed until a corrected revision passed review. Approved spec: `2026-11-21-dd-469-6-child-5-7-durable-transition-and-quarantine.md`, revision 6, sha256 `dface8aaefb6f31b78b12bfbb8afdab2c54a214ee3a497414f5e8fee2bbb9154` (170,716 bytes, 840 lines), on main `0828c1ef`. **Half-B dispatch on revision 5.** Run 20261121T031914Z-5d2d6da3 ran for 97 seconds and declared the work incomplete. It changed no file and opened no PR. The guide confirmed both contradictions against `0828c1ef`: - **D1.** The spec required the archive content entry to compare its scope with the actual export invocation before any read. But `recovery_archive.py:432` calls `store.transaction()` with no argument, and keeps its `ArchiveIdentity` inside the exporter. Inside the five-file write set, the gate cannot see that identity. - **D2.** The managed prepared row embeds the command `Transition`. Its candidate JSON, title included, must match `custody.py:89-94` exactly. A scenario also forbade candidate title bytes in any prepared row. **Revision 6 fixes.** - **D1, option A.** `recovery_archive.py` becomes the sixth Primary File. `_export_snapshot` passes its actual `ArchiveIdentity` to the private `Store._archive_transaction(identity)`. Before any snapshot read, that entry checks the identity, the single-use scope, effective quarantine and the full durable reservation. Bare `Store.transaction()` refuses on a managed or previously activated queue. The never-activated local path, the archive bytes and the wire do not change. The engine passes exactly the scope's identity and staging location. The staged summary is a second check before sealing or registration. - **D2.** Only the local SQLite managed COMMAND row may hold the exact canonical candidate JSON, title included, and only as far as replay and forward apply need it. The complete encoded row stays within 65,536 bytes. That material stays out of control records, diagnostics, the abort marker and logical archives. - **Retirement order.** On both branches, the temporary apply material and the prepared row are durably retired before the completion acknowledgement and before any barrier lift, including after a restart. P07's Forget requirements are recorded as a carry-forward to #34. **Verify run.** Run 20261121T033426Z-fad6ae3a was verify-only, with no rework rounds and no label writes, on base `0828c1ef`. It was CLEAN: 0 blocking, 1 warning and 4 nits, all accepted. The warning was that one lens read only part of the spec. The guide read the whole change from revision 5 to revision 6. The nits are about line citations, and each claim holds. **mind-spec canonical fit.** Both D1 options fit P10, and the guide chose option A. On revision 6, mind-spec found no clash. It accommodated D1 under P03, P10 and P11, D2 under P02, P09, P05.1 and P11, and the retirement order under P04 and P05.2. Revision 4 and revision 5 dispositions in comment 44720 still stand. Filed under: operator-word-d982c2768589
Author
Member

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

#33 split (operator ruling R3, 2026-11-21)

Revision 6 (comment 44727) was released, but its Half-B dispatch stopped on a third spec contradiction (D3): the frozen admission codec cannot hold the literal recovery pass as one plan. That run changed no file and opened no PR, and svd:go was removed. This was the second stop of one class, so attention swept every frozen API that revision 6 depends on, at 0828c1ef. It found 12 gaps. Eleven have a fix inside the six Primary Files. One does not: a non-command transition cannot get an abort marker M without a command charge, because the frozen marker needs exactly one (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 needs section 4 ratification. The operator ruled to split #33.

#33 keeps INITIALIZE (the first exact F0) and COMMAND transitions, exact recovery, quarantine, authenticated identity and info, the archive entry guard, D1, D2, and retirement before the acknowledgement and the barrier lift. It carries the in-set fixes:

  • D3: one durable, ordered P05 parent pass over single-request children, with the four-send ceiling in the parent. The optional HEAD uses predicate (a) through a private engine-typed admission.
  • A: each admission and copy retires through its own verified release path.
  • B: all checked deltas compose into one F+1 revision.
  • D: reopen records the full authenticated frontier identity.
  • G: the workspace stays charged until its worker gives up ownership.
  • H: F0 is built from validated stored counters.
  • K: the expiry prune is isolated from replay and pre-admission refusal.
  • L: corrected generation statement, plus a private permit fence.

Primary Files stay six: store.py, custody.py, service.py, recovery_transition.py, recovery_archive.py and tests/test_recovery_transition.py.

Interim. REGISTER, PUBLISH, SETTLE_COPY, RETIRE_COPY and CLEAR_DEBT refuse at the engine intent entry, before any durable write or provider call. Public codes do not change. Each new command admission needs fresh, complete, bound evidence of an empty artifact namespace, rechecked before the first candidate send. Known orphan debt is kept and reported, and it holds ordinary new work only. Production managed activation and admission stay gated until #34 and #47 land.

#47 takes the non-command certificate and settlement, the exact prepared fence, inventory continuation, the coverage baseline projection and the backup lifecycle. The sentence "Connect backup registration/retirement and staging to the same custody/admission path" in this body moves with it. Order: #33, #34, #47, #35.

mind-spec found the cut fits as a gated integration stage. A revision 7 specification for the narrowed #33 follows, with its own verify run, canonical-fit check and release record. That record will replace comment 44727.

Filed under: operator-word-d982c2768589

> *This was generated by AI during the SVD architect gate (minds-guide@voyager).* ## #33 split (operator ruling R3, 2026-11-21) Revision 6 (comment 44727) was released, but its Half-B dispatch stopped on a third spec contradiction (D3): the frozen admission codec cannot hold the literal recovery pass as one plan. That run changed no file and opened no PR, and svd:go was removed. This was the second stop of one class, so attention swept every frozen API that revision 6 depends on, at `0828c1ef`. It found 12 gaps. Eleven have a fix inside the six Primary Files. One does not: a non-command transition cannot get an abort marker M without a command charge, because the frozen marker needs exactly one (`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 needs section 4 ratification. The operator ruled to split #33. **#33 keeps** INITIALIZE (the first exact F0) and COMMAND transitions, exact recovery, quarantine, authenticated identity and info, the archive entry guard, D1, D2, and retirement before the acknowledgement and the barrier lift. It carries the in-set fixes: - D3: one durable, ordered P05 parent pass over single-request children, with the four-send ceiling in the parent. The optional HEAD uses predicate (a) through a private engine-typed admission. - A: each admission and copy retires through its own verified release path. - B: all checked deltas compose into one F+1 revision. - D: reopen records the full authenticated frontier identity. - G: the workspace stays charged until its worker gives up ownership. - H: F0 is built from validated stored counters. - K: the expiry prune is isolated from replay and pre-admission refusal. - L: corrected generation statement, plus a private permit fence. Primary Files stay six: `store.py`, `custody.py`, `service.py`, `recovery_transition.py`, `recovery_archive.py` and `tests/test_recovery_transition.py`. **Interim.** REGISTER, PUBLISH, SETTLE_COPY, RETIRE_COPY and CLEAR_DEBT refuse at the engine intent entry, before any durable write or provider call. Public codes do not change. Each new command admission needs fresh, complete, bound evidence of an empty artifact namespace, rechecked before the first candidate send. Known orphan debt is kept and reported, and it holds ordinary new work only. Production managed activation and admission stay gated until #34 and #47 land. **#47 takes** the non-command certificate and settlement, the exact prepared fence, inventory continuation, the coverage baseline projection and the backup lifecycle. The sentence "Connect backup registration/retirement and staging to the same custody/admission path" in this body moves with it. Order: #33, #34, #47, #35. mind-spec found the cut fits as a gated integration stage. A revision 7 specification for the narrowed #33 follows, with its own verify run, canonical-fit check and release record. That record will replace comment 44727. Filed under: operator-word-d982c2768589
Author
Member

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

Approved spec for #33 Half-B, revision 8

This record replaces comment 44727. Revision 6 was released, but its Half-B dispatch stopped on contradiction D3, and svd:go was removed. The operator then split #33 (comment 44770). Revision 7 specified the narrowed #33. mind-spec found one P03 clash in revision 7, and revision 8 resolves it.

Approved spec: 2026-11-21-dd-469-6-child-5-7-durable-transition-and-quarantine.md, revision 8, sha256 b080c1e2b75e19df81e5e192ee18536b9c8faebc4fc0dac3231dff751d4d3c86 (167,623 bytes, 857 lines, 62 scenarios), on main 0828c1ef.

Half-B dispatch on revision 6. Run 20261121T034120Z-17944ce8 ran for 216 seconds and declared the work incomplete. It changed no file and opened no PR. The guide confirmed D3 against 0828c1ef: the frozen admission codec has no HEAD plan kind (recovery_storage.py:941-963) and refuses a non-zero ordinal for frontier kinds (:1677). So the literal recovery pass cannot be one plan. This was the second stop of one class, so the full frozen-API sweep and the split followed.

Scope.

  • Only INITIALIZE and COMMAND transitions. REGISTER, PUBLISH, SETTLE_COPY, RETIRE_COPY and CLEAR_DEBT refuse at the private engine intent entry with zero effect, and public codes do not change.
  • Every new command admission needs fresh, complete, bound evidence of an empty artifact namespace, with separate durable observation admissions, at most 128 versions, and known debt kept. Production managed activation and admission stay gated until #34 and #47 land.
  • The recovery pass is a durable parent journal over single-request children at frozen ordinal zero. Position 4 (the optional HEAD) is unused in #33 and carried to #47 (comment 44784).
  • Fixes from the sweep: per-resource retirement (A); one composed F+1 revision with expiry proof (B); the full frontier identity on reopen (D); workspace held until the worker releases it (G); F0 from validated stored counters (H); frozen decide in a savepoint, rolled back on replay and pre-admission refusal (K); a corrected generation statement (L).
  • D1 (the identity-bearing archive entry), D2 (the bounded prepared row) and the retirement order stay as in revision 6.
  • Primary Files stay six: store.py, custody.py, service.py and recovery_archive.py (modify); recovery_transition.py and tests/test_recovery_transition.py (create).

Revision 8: served release under P03. The frozen adapter rechecks only successful list, get and explain responses before release (mcp_adapter.py:84, :179). In revision 7, a cached command replay computed while READY could therefore be released after another request entered PREPARED. Revision 8 makes these changes:

  • It classifies every served result by what it discloses. The service attaches an obligation and a one-use permit to admission results, fresh and replayed command outcomes, queue-dependent refusals and protected query refusals. It uses the existing request slot, with no adapter edit and no wire change.
  • Each durable PREPARED commit advances a private release epoch. A buffered response from an older epoch gives the existing quarantined document, even after a no-op or cancellation returns the queue to READY.
  • One Store-owned handoff lease is held from a valid recheck through the bounded send. The spec lists every PREPARED entry with its exclusion rule.
  • Four new scenarios add served-app race tests with negative cases.

Verify runs. Revision 7: run 20261121T043649Z-b1186b18, CLEAN. Revision 8: run 20261121T050615Z-8efb6eac, verify-only, with no rework rounds and no label writes, on base 0828c1ef. It was CLEAN: 0 blocking, 2 warnings and 3 nits. The R11 warning closes with mind-spec's answer below. R8 is an E15 citation step that the merge gate checks.

Lens coverage was partial. Each lens's whole-file read returned the first 296 of 857 lines. One lens read the new release section, and no lens read the new scenarios or test rows. The guide read the whole change from revision 7 to revision 8 and re-measured the adapter seam against 0828c1ef.

mind-spec canonical fit. mind-spec measured this exact hash independently and found no clash. The revision 7 P03 replay clash is closed. Protected fresh and replayed outcomes, admission results and refusals, and protected queries pass the served handoff check. The private epoch changes neither cursor generation nor the wire. The existing quarantined refusal fits a direct command that cannot safely enter PREPARED while a handoff is active. The Store-local lease fits the isolated offline INITIALIZE scope of #33. The position 4, interim custody, R4 and R9 dispositions carry over from revision 7.

Carry-forwards:

  • P07 local retirement to #34.
  • The ordinary-work hold never becomes a production hold on Forget or reserved cleanup, to #34 and #47.
  • The J projection and the certificate ratification to #47; J and R10 to #35.
  • The sole-prune check at the #34, #47 and #35 gates.
  • The production activation gate (P01, P03 L23). Before production activation enters PREPARED, it must exclude any other serving process for the queue, stop new release permits, drain active handoffs, and discard unreleased buffers. Exclusion must be proved through cutover, including restart paths. The Store mutex and the custody flock alone do not fence a never-activated server, and merge order alone does not establish the fence. Production activation stays disabled until this gate is implemented and verified.

Filed under: operator-word-d982c2768589

> *This was generated by AI during the SVD architect gate (minds-guide@voyager).* ## Approved spec for #33 Half-B, revision 8 This record replaces comment 44727. Revision 6 was released, but its Half-B dispatch stopped on contradiction D3, and svd:go was removed. The operator then split #33 (comment 44770). Revision 7 specified the narrowed #33. mind-spec found one P03 clash in revision 7, and revision 8 resolves it. Approved spec: `2026-11-21-dd-469-6-child-5-7-durable-transition-and-quarantine.md`, revision 8, sha256 `b080c1e2b75e19df81e5e192ee18536b9c8faebc4fc0dac3231dff751d4d3c86` (167,623 bytes, 857 lines, 62 scenarios), on main `0828c1ef`. **Half-B dispatch on revision 6.** Run 20261121T034120Z-17944ce8 ran for 216 seconds and declared the work incomplete. It changed no file and opened no PR. The guide confirmed D3 against `0828c1ef`: the frozen admission codec has no HEAD plan kind (`recovery_storage.py:941-963`) and refuses a non-zero ordinal for frontier kinds (`:1677`). So the literal recovery pass cannot be one plan. This was the second stop of one class, so the full frozen-API sweep and the split followed. **Scope.** - Only INITIALIZE and COMMAND transitions. REGISTER, PUBLISH, SETTLE_COPY, RETIRE_COPY and CLEAR_DEBT refuse at the private engine intent entry with zero effect, and public codes do not change. - Every new command admission needs fresh, complete, bound evidence of an empty artifact namespace, with separate durable observation admissions, at most 128 versions, and known debt kept. Production managed activation and admission stay gated until #34 and #47 land. - The recovery pass is a durable parent journal over single-request children at frozen ordinal zero. Position 4 (the optional HEAD) is unused in #33 and carried to #47 (comment 44784). - Fixes from the sweep: per-resource retirement (A); one composed F+1 revision with expiry proof (B); the full frontier identity on reopen (D); workspace held until the worker releases it (G); F0 from validated stored counters (H); frozen `decide` in a savepoint, rolled back on replay and pre-admission refusal (K); a corrected generation statement (L). - D1 (the identity-bearing archive entry), D2 (the bounded prepared row) and the retirement order stay as in revision 6. - Primary Files stay six: `store.py`, `custody.py`, `service.py` and `recovery_archive.py` (modify); `recovery_transition.py` and `tests/test_recovery_transition.py` (create). **Revision 8: served release under P03.** The frozen adapter rechecks only successful `list`, `get` and `explain` responses before release (`mcp_adapter.py:84`, `:179`). In revision 7, a cached command replay computed while READY could therefore be released after another request entered PREPARED. Revision 8 makes these changes: - It classifies every served result by what it discloses. The service attaches an obligation and a one-use permit to admission results, fresh and replayed command outcomes, queue-dependent refusals and protected query refusals. It uses the existing request slot, with no adapter edit and no wire change. - Each durable PREPARED commit advances a private release epoch. A buffered response from an older epoch gives the existing `quarantined` document, even after a no-op or cancellation returns the queue to READY. - One Store-owned handoff lease is held from a valid recheck through the bounded send. The spec lists every PREPARED entry with its exclusion rule. - Four new scenarios add served-app race tests with negative cases. **Verify runs.** Revision 7: run 20261121T043649Z-b1186b18, CLEAN. Revision 8: run 20261121T050615Z-8efb6eac, verify-only, with no rework rounds and no label writes, on base `0828c1ef`. It was CLEAN: 0 blocking, 2 warnings and 3 nits. The R11 warning closes with mind-spec's answer below. R8 is an E15 citation step that the merge gate checks. Lens coverage was partial. Each lens's whole-file read returned the first 296 of 857 lines. One lens read the new release section, and no lens read the new scenarios or test rows. The guide read the whole change from revision 7 to revision 8 and re-measured the adapter seam against `0828c1ef`. **mind-spec canonical fit.** mind-spec measured this exact hash independently and found no clash. The revision 7 P03 replay clash is closed. Protected fresh and replayed outcomes, admission results and refusals, and protected queries pass the served handoff check. The private epoch changes neither cursor generation nor the wire. The existing `quarantined` refusal fits a direct command that cannot safely enter PREPARED while a handoff is active. The Store-local lease fits the isolated offline INITIALIZE scope of #33. The position 4, interim custody, R4 and R9 dispositions carry over from revision 7. Carry-forwards: - P07 local retirement to #34. - The ordinary-work hold never becomes a production hold on Forget or reserved cleanup, to #34 and #47. - The J projection and the certificate ratification to #47; J and R10 to #35. - The sole-prune check at the #34, #47 and #35 gates. - The production activation gate (P01, P03 L23). Before production activation enters PREPARED, it must exclude any other serving process for the queue, stop new release permits, drain active handoffs, and discard unreleased buffers. Exclusion must be proved through cutover, including restart paths. The Store mutex and the custody flock alone do not fence a never-activated server, and merge order alone does not establish the fence. Production activation stays disabled until this gate is implemented and verified. Filed under: operator-word-d982c2768589
Author
Member

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

Approved spec for #33 Half-B, revision 11

This record replaces comment 44809. Revision 8 was released, but its Half-B dispatch stopped, and svd:go was removed. Revisions 9, 10 and 11 followed. mind-spec found no clash in revision 11.

Approved spec: 2026-11-21-dd-469-6-child-5-7-durable-transition-and-quarantine.md, revision 11, sha256 d306967d25fe6d770dc75280fea9b7f036900b503058f4549a84eb4aee531302 (198,699 bytes, 926 lines, 71 scenarios), on main 0828c1ef.

Half-B dispatch on revision 8. Run 20261121T051641Z-1a58aa12 declared the work incomplete. It changed no file and opened no PR. Revision 8 still charged the staging file and its full read input together. But the frozen staging route reads the archive after the exporter returns (recovery_staging.py:459-471), and staging had moved to #47. The guide confirmed this as residue left by the #33 split, not a new need in a frozen module. Attention then mapped every WHEN/THEN clause of the 62 scenarios to a file in the six-file set.

Revision 9: residue moves and four fixes.

  • The older-archive authority case moves to #35. The successful managed archive privacy controls and the staging plus full-read charge move to #47. #33 keeps the pre-read identity and reservation checks, the blocked export and staging with zero archive bytes, and the F/C/M and promotion accounting.
  • No-send-before-PREPARED covers C, M and P05 recovery. Read-only P01 configuration and LIST observations run under a separate durable, bounded plan. Each one reserves its workspace first and fsyncs its exact admission before the call. An observation cannot settle a transition, prove that nothing was dispatched, or spend a recovery position.
  • Debt records: one charged record per exact version or delete marker, at most 16,384 encoded bytes each, in a named 4,194,304-byte debt-metadata aggregate. Incomplete or over-bound evidence gives UNKNOWN and keeps the known debt.
  • INITIALIZE: an immutable first-send cutoff, at most 300 seconds after preparation and clipped to the premise window. After a possible send, the cutoff proves nothing absent and allows no second attempt.
  • Stock S3: worker exit alone releases no workspace charge.

Revision 10: new-work hold and disclosure barrier. Fresh custody evidence gates new managed commands only (P01). The disclosure barrier covers a pending transition, unretired required material, and current recovery authority that is unproved or contradictory (P03, P15). Once the exact winner, local completion and required retirement are proved, these are released without waiting for new evidence: the settled acknowledgement, an authorized replay, and get, list and explain. A permit fenced before settlement stays revoked.

Revision 11: the hold refusal.

  • An otherwise authorized new submit, replace, withdraw or dispose, held only by the custody-evidence gate, returns the existing ineligible code. The hold is checked after authority, queue and generation, the token, any eligible replay and the real capacity limits. It is pre-admission and unspent: no prepared transition, no stored fingerprint or outcome, and no mutation request. The client may retry the same request with the same token and command ID before the original deadline.
  • A real capacity limit still returns capacity_exceeded. A failure of disclosure authority still returns quarantined. Delivery operations keep their existing meaning.
  • A held command may get one separately admitted refresh, after its first transaction closes, and at most one re-entry of the decision. If the binding changes during the refresh, the result is quarantined.
  • #33 has no managed restore entry.

mind-spec ratified the ineligible meaning under grant section 4. The operator approved its canonical text on 2026-11-21 at 17:20:18 +11:00. dev/mind-spec PR #8 merged it at f2d7a963a0dbbb50534b6de85133756c718e89b9, with a conformance case. CI was green on the PR head and on main. The operator ruled that #33 does not wait for that text. This ruling replaces the ownership and waiting wording in the spec's canonical follow-up carry-forward and in R14. The #7/#8 release adopts the new contract pin through mind-spec#4.

Verify runs. All three were verify-only, with no rework rounds and no label writes, on base 0828c1ef:

  • revision 9, run 20261121T054247Z-e74a0e53, CLEAN;
  • revision 10, run 20261121T055611Z-2a40f29f, CLEAN;
  • revision 11, run 20261121T062043Z-b64a7671, CLEAN, with 0 blocking, 1 warning and 4 nits. The warning says R14 names no post-merge check; this record and the merge gate below close it.

Lens coverage: in revisions 10 and 11 the exhaustiveness lens read the whole spec. The other lenses read only the first part. The guide read each whole delta (revision 8 to 9, 9 to 10, and 10 to 11) and re-measured the cited code against 0828c1ef.

mind-spec canonical fit. mind-spec measured this exact hash independently and found no clash. The hold refusal, the single refresh, the reopen rule and the #35 restore carry-forward fit the protocol and attention-v1. One wording note: the orphan-debt scenario says "both custody blocks". Its test asserts the command hold and keeps disclosure for a proved winner.

Carry-forwards:

  • P07 local retirement to #34.
  • The ordinary-work hold never becomes a production hold on Forget or reserved cleanup, to #34 and #47.
  • The J projection and the certificate ratification to #47; J and R10 to #35.
  • To #47: the staging plus full-read charge; the successful managed archive privacy controls; debt records as retirement inputs, which still need current exact authority, verified absence and delayed-create exclusion (P05.3); and stock-S3 ownership-release proof.
  • To #35: restore of a selected artifact. #35 checks fresh, complete, exact-bound evidence (P01), plus the artifact's eligibility and through-current coverage, under P10's limited-availability rule for unrelated overdue copies. #33's empty-namespace guard does not carry to restore.
  • The sole-prune check at the #34, #47 and #35 gates.
  • Two production gates. (1) Activation (P01, P03 L23): 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) Stock S3: prove ownership release before managed activation and use, including observation and command sends. Production activation stays disabled until both are implemented and verified.

Filed under: operator-word-d982c2768589

> *This was generated by AI during the SVD architect gate (minds-guide@voyager).* ## Approved spec for #33 Half-B, revision 11 This record replaces comment 44809. Revision 8 was released, but its Half-B dispatch stopped, and svd:go was removed. Revisions 9, 10 and 11 followed. mind-spec found no clash in revision 11. Approved spec: `2026-11-21-dd-469-6-child-5-7-durable-transition-and-quarantine.md`, revision 11, sha256 `d306967d25fe6d770dc75280fea9b7f036900b503058f4549a84eb4aee531302` (198,699 bytes, 926 lines, 71 scenarios), on main `0828c1ef`. **Half-B dispatch on revision 8.** Run 20261121T051641Z-1a58aa12 declared the work incomplete. It changed no file and opened no PR. Revision 8 still charged the staging file and its full read input together. But the frozen staging route reads the archive after the exporter returns (`recovery_staging.py:459-471`), and staging had moved to #47. The guide confirmed this as residue left by the #33 split, not a new need in a frozen module. Attention then mapped every WHEN/THEN clause of the 62 scenarios to a file in the six-file set. **Revision 9: residue moves and four fixes.** - The older-archive authority case moves to #35. The successful managed archive privacy controls and the staging plus full-read charge move to #47. #33 keeps the pre-read identity and reservation checks, the blocked export and staging with zero archive bytes, and the F/C/M and promotion accounting. - No-send-before-PREPARED covers C, M and P05 recovery. Read-only P01 configuration and LIST observations run under a separate durable, bounded plan. Each one reserves its workspace first and fsyncs its exact admission before the call. An observation cannot settle a transition, prove that nothing was dispatched, or spend a recovery position. - Debt records: one charged record per exact version or delete marker, at most 16,384 encoded bytes each, in a named 4,194,304-byte debt-metadata aggregate. Incomplete or over-bound evidence gives UNKNOWN and keeps the known debt. - INITIALIZE: an immutable first-send cutoff, at most 300 seconds after preparation and clipped to the premise window. After a possible send, the cutoff proves nothing absent and allows no second attempt. - Stock S3: worker exit alone releases no workspace charge. **Revision 10: new-work hold and disclosure barrier.** Fresh custody evidence gates new managed commands only (P01). The disclosure barrier covers a pending transition, unretired required material, and current recovery authority that is unproved or contradictory (P03, P15). Once the exact winner, local completion and required retirement are proved, these are released without waiting for new evidence: the settled acknowledgement, an authorized replay, and get, list and explain. A permit fenced before settlement stays revoked. **Revision 11: the hold refusal.** - An otherwise authorized new `submit`, `replace`, `withdraw` or `dispose`, held only by the custody-evidence gate, returns the existing `ineligible` code. The hold is checked after authority, queue and generation, the token, any eligible replay and the real capacity limits. It is pre-admission and unspent: no prepared transition, no stored fingerprint or outcome, and no mutation request. The client may retry the same request with the same token and command ID before the original deadline. - A real capacity limit still returns `capacity_exceeded`. A failure of disclosure authority still returns `quarantined`. Delivery operations keep their existing meaning. - A held command may get one separately admitted refresh, after its first transaction closes, and at most one re-entry of the decision. If the binding changes during the refresh, the result is `quarantined`. - #33 has no managed restore entry. mind-spec ratified the `ineligible` meaning under grant section 4. The operator approved its canonical text on 2026-11-21 at 17:20:18 +11:00. dev/mind-spec PR #8 merged it at `f2d7a963a0dbbb50534b6de85133756c718e89b9`, with a conformance case. CI was green on the PR head and on main. The operator ruled that #33 does not wait for that text. This ruling replaces the ownership and waiting wording in the spec's canonical follow-up carry-forward and in R14. The #7/#8 release adopts the new contract pin through mind-spec#4. **Verify runs.** All three were verify-only, with no rework rounds and no label writes, on base `0828c1ef`: - revision 9, run 20261121T054247Z-e74a0e53, CLEAN; - revision 10, run 20261121T055611Z-2a40f29f, CLEAN; - revision 11, run 20261121T062043Z-b64a7671, CLEAN, with 0 blocking, 1 warning and 4 nits. The warning says R14 names no post-merge check; this record and the merge gate below close it. Lens coverage: in revisions 10 and 11 the exhaustiveness lens read the whole spec. The other lenses read only the first part. The guide read each whole delta (revision 8 to 9, 9 to 10, and 10 to 11) and re-measured the cited code against `0828c1ef`. **mind-spec canonical fit.** mind-spec measured this exact hash independently and found no clash. The hold refusal, the single refresh, the reopen rule and the #35 restore carry-forward fit the protocol and attention-v1. One wording note: the orphan-debt scenario says "both custody blocks". Its test asserts the command hold and keeps disclosure for a proved winner. Carry-forwards: - P07 local retirement to #34. - The ordinary-work hold never becomes a production hold on Forget or reserved cleanup, to #34 and #47. - The J projection and the certificate ratification to #47; J and R10 to #35. - To #47: the staging plus full-read charge; the successful managed archive privacy controls; debt records as retirement inputs, which still need current exact authority, verified absence and delayed-create exclusion (P05.3); and stock-S3 ownership-release proof. - To #35: restore of a selected artifact. #35 checks fresh, complete, exact-bound evidence (P01), plus the artifact's eligibility and through-current coverage, under P10's limited-availability rule for unrelated overdue copies. #33's empty-namespace guard does not carry to restore. - The sole-prune check at the #34, #47 and #35 gates. - Two production gates. (1) Activation (P01, P03 L23): 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) Stock S3: prove ownership release before managed activation and use, including observation and command sends. Production activation stays disabled until both are implemented and verified. Filed under: operator-word-d982c2768589
Author
Member

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

Approved spec for #33 Half-B, revision 12

This record replaces comment 44849. Revision 11 was released, but its Half-B dispatch stopped, and svd:go was removed. Revision 12 followed. mind-spec found no clash in revision 12.

Approved spec: 2026-11-21-dd-469-6-child-5-7-durable-transition-and-quarantine.md, revision 12, sha256 4f7baa16ba1727eeee38d583494e0fb9e2a4e65a213f2759e7ae153230277f24 (205,590 bytes, 933 lines, 71 scenarios), on main 0828c1ef.

Half-B dispatch on revision 11. Run 20261121T063935Z-735b7bbe declared the work incomplete. It changed no file and opened no PR. The worker found two gaps, and the guide confirmed both against the frozen code:

  • The frozen frontier stores each spent command as an opaque key and its original deadline only (recovery_frontier.py:133-144, :419-421). The ordinary and completion counts exist only as ledger totals (recovery_budget.py:155-156). Revision 11 gave expiry credit only for "the proper command group", which the frontier cannot prove. Swapping the classes of two records gives identical frontier bytes.
  • The frozen command total counts one reserve per live item (recovery_budget.py:180, :186-187). Revision 11's profile check allowed 1,024 unexpired commands with no live-reserve term. A store with 1 live item and 1,024 commands passed that check, but the frozen ledger refused it at 1,025.

Revision 12: zero expiry credit and the joint command profile. mind-spec read both points against the protocol (P05.1, P08, P09) and attention-v1.

  • #33 gives no frontier credit for command expiry. A candidate may omit a spent identity only at or after its original deadline under the trusted, non-regressing cutoff. Both authenticated command counters stay charged. A retained charge grants no authority to replay or to extend a deadline.
  • The frozen local prune (commands.py:223) may remove expired rows of both classes, but only inside a newly admitted prepare. It rolls back on replay and on pre-admission refusal.
  • The marker M is built from the original, uncredited F, with its spent identities, prior certificates and charges. M's branch charge is reserved before the first dispatch is admitted.
  • Reopen accepts charges above the surviving row count. SQLite rows never rebuild or reduce the ledger.
  • Before INITIALIZE, the profile check counts ordinary commands, reserved commands and one reserve per live item, and requires the total to fit within 1,024 with the two protected completion slots still free. At 512 live items, at most 510 retained commands fit. Any violation refuses managed_profile_exceeded before any custody write, clock-floor update, admission or provider call. Local mode is unchanged.
  • The spec now records the operator's 2026-11-21 17:20:18 +11:00 ruling and the canonical attention-v1 text at dev/mind-spec f2d7a963a0dbbb50534b6de85133756c718e89b9. #33 has no pending canonical-text dependency.

Verify run. Run 20261121T070011Z-f89a730e, verify-only on base 0828c1ef, with no rework rounds and no label writes: CLEAN, with 0 blocking, 1 warning and 3 nits. The warning says R14 names no post-merge check; this record and the merge gate below close it.

Lens coverage: no lens read lines 535-799 of the spec, which hold most of the changed scenarios and test rows. The guide read the whole revision 11 to 12 delta and re-measured the cited code against 0828c1ef.

mind-spec canonical fit. mind-spec measured this exact hash independently and found no clash. Omitting expired spent identities while both counters stay charged fits P08 and attention-v1. M stays bound to the original F under P05.1. The joint profile leaves both protected completion slots within 1,024.

Carry-forwards:

  • P07 local retirement to #34.
  • The ordinary-work hold never becomes a production hold on Forget or reserved cleanup, to #34 and #47.
  • The J projection and the certificate ratification to #47; J and R10 to #35.
  • To #47: the staging plus full-read charge; the successful managed archive privacy controls; debt records as retirement inputs (P05.3); stock-S3 ownership-release proof (#47 comment 44855). New: a bounded, proof-based expiry and reclamation path that handles existing classless records, before production managed activation and use. An authenticated class binding needs mind-spec section 4 review of the exact persisted variant with #47.
  • To #35: selected-artifact restore under P01, P10 and P13, and the other items in #35 comment 44858. New: the E06 and E14 evidence must exercise the maximum reachable joint profile (512 live items plus up to 510 retained commands, two protected slots free), test the structural 1,024 total separately, and show reserved Forget and cleanup at ordinary saturation.
  • The sole-prune check at the #34, #47 and #35 gates.
  • Production gates. Production activation stays disabled until each of these is implemented and verified: (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) stock-S3 ownership release before managed activation and use, including observation and command sends; (3) the proof-based command expiry and reclamation path above.

Filed under: operator-word-d982c2768589

> *This was generated by AI during the SVD architect gate (minds-guide@voyager).* ## Approved spec for #33 Half-B, revision 12 This record replaces comment 44849. Revision 11 was released, but its Half-B dispatch stopped, and svd:go was removed. Revision 12 followed. mind-spec found no clash in revision 12. Approved spec: `2026-11-21-dd-469-6-child-5-7-durable-transition-and-quarantine.md`, revision 12, sha256 `4f7baa16ba1727eeee38d583494e0fb9e2a4e65a213f2759e7ae153230277f24` (205,590 bytes, 933 lines, 71 scenarios), on main `0828c1ef`. **Half-B dispatch on revision 11.** Run 20261121T063935Z-735b7bbe declared the work incomplete. It changed no file and opened no PR. The worker found two gaps, and the guide confirmed both against the frozen code: - The frozen frontier stores each spent command as an opaque key and its original deadline only (`recovery_frontier.py:133-144`, `:419-421`). The ordinary and completion counts exist only as ledger totals (`recovery_budget.py:155-156`). Revision 11 gave expiry credit only for "the proper command group", which the frontier cannot prove. Swapping the classes of two records gives identical frontier bytes. - The frozen command total counts one reserve per live item (`recovery_budget.py:180`, `:186-187`). Revision 11's profile check allowed 1,024 unexpired commands with no live-reserve term. A store with 1 live item and 1,024 commands passed that check, but the frozen ledger refused it at 1,025. **Revision 12: zero expiry credit and the joint command profile.** mind-spec read both points against the protocol (P05.1, P08, P09) and attention-v1. - #33 gives no frontier credit for command expiry. A candidate may omit a spent identity only at or after its original deadline under the trusted, non-regressing cutoff. Both authenticated command counters stay charged. A retained charge grants no authority to replay or to extend a deadline. - The frozen local prune (`commands.py:223`) may remove expired rows of both classes, but only inside a newly admitted prepare. It rolls back on replay and on pre-admission refusal. - The marker M is built from the original, uncredited F, with its spent identities, prior certificates and charges. M's branch charge is reserved before the first dispatch is admitted. - Reopen accepts charges above the surviving row count. SQLite rows never rebuild or reduce the ledger. - Before INITIALIZE, the profile check counts ordinary commands, reserved commands and one reserve per live item, and requires the total to fit within 1,024 with the two protected completion slots still free. At 512 live items, at most 510 retained commands fit. Any violation refuses `managed_profile_exceeded` before any custody write, clock-floor update, admission or provider call. Local mode is unchanged. - The spec now records the operator's 2026-11-21 17:20:18 +11:00 ruling and the canonical attention-v1 text at dev/mind-spec `f2d7a963a0dbbb50534b6de85133756c718e89b9`. #33 has no pending canonical-text dependency. **Verify run.** Run 20261121T070011Z-f89a730e, verify-only on base `0828c1ef`, with no rework rounds and no label writes: CLEAN, with 0 blocking, 1 warning and 3 nits. The warning says R14 names no post-merge check; this record and the merge gate below close it. Lens coverage: no lens read lines 535-799 of the spec, which hold most of the changed scenarios and test rows. The guide read the whole revision 11 to 12 delta and re-measured the cited code against `0828c1ef`. **mind-spec canonical fit.** mind-spec measured this exact hash independently and found no clash. Omitting expired spent identities while both counters stay charged fits P08 and attention-v1. M stays bound to the original F under P05.1. The joint profile leaves both protected completion slots within 1,024. Carry-forwards: - P07 local retirement to #34. - The ordinary-work hold never becomes a production hold on Forget or reserved cleanup, to #34 and #47. - The J projection and the certificate ratification to #47; J and R10 to #35. - To #47: the staging plus full-read charge; the successful managed archive privacy controls; debt records as retirement inputs (P05.3); stock-S3 ownership-release proof (#47 comment 44855). New: a bounded, proof-based expiry and reclamation path that handles existing classless records, before production managed activation and use. An authenticated class binding needs mind-spec section 4 review of the exact persisted variant with #47. - To #35: selected-artifact restore under P01, P10 and P13, and the other items in #35 comment 44858. New: the E06 and E14 evidence must exercise the maximum reachable joint profile (512 live items plus up to 510 retained commands, two protected slots free), test the structural 1,024 total separately, and show reserved Forget and cleanup at ordinary saturation. - The sole-prune check at the #34, #47 and #35 gates. - Production gates. Production activation stays disabled until each of these is implemented and verified: (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) stock-S3 ownership release before managed activation and use, including observation and command sends; (3) the proof-based command expiry and reclamation path above. Filed under: operator-word-d982c2768589
Author
Member

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

Approved spec for #33 Half-B, revision 13

This record replaces comment 44906. Revision 12 was released, and three Half-B dispatches on it stopped without a commit, a push or a PR. Revision 13 followed. mind-spec found no clash in revision 13, and svd:go stays on #33.

Approved spec: 2026-11-21-dd-469-6-child-5-7-durable-transition-and-quarantine.md, revision 13, sha256 10b8a09364771bb01ceb0730f08a710998fc92b962c4f32ffd3b3a029c399cf5 (216,333 bytes, 965 lines, 72 scenarios), on main 0828c1ef.

Half-B dispatches on revision 12.

  • Run 20261121T070849Z-e83a3e6a stopped at the 2,700 s stage watchdog while the worker was busy. A resume of that run was stopped under the grant rule against extending an exhausted run. The operator ruled "Stop; fresh run" (2026-11-21 19:16 +11:00). mind-spec classified the stop as runner stage-budget exhaustion.
  • Run 20261121T082316Z-5afe3362 stopped at the 5,400 s stage watchdog while the worker was busy. mind-spec classified it the same way. The operator ruled "double the stage budget" (received by 2026-11-21 20:58:31 +11:00).
  • Run 20261121T101337Z-38768ce3, with a 10,800 s budget, declared the work incomplete after 394 s and changed no file. The worker reported two spec defects, and mind-spec classified both as specification defects:
    • Served release. Revision 12 required the operation-specific quarantined refusal when release evidence is missing. The frozen adapter could not enforce that. It holds the response start only when slot.obligation is set (mcp_adapter.py:179-181), and a missing obligation after buffering raises internal_failure (:193-194). Neither path calls the release recheck. The guide confirmed both lines at 0828c1ef.
    • Repeated restart. Revision 12 required one settlement and READY after every kill checkpoint. At admitted_m, M's admission already exists and M was never sent, so the no-resend rule bars a second M. With only the original F visible, no winner can be proved.

The operator ruled "Add mcp_adapter.py (Recommended)" (received 2026-11-21 between 21:26:52 and 21:27:54 +11:00).

Revision 13: the adapter release path and the restart matrix.

  • The write set has seven Primary Files: five modified (store.py, custody.py, service.py, recovery_archive.py, mcp_adapter.py) and two new. commands.py and queries.py stay unchanged.
  • The adapter diff stays inside three named base locations: the shared ReleaseSlot (:42-49), the bounded release path with its buffer (:167-220), and a managed-scope capture around Service.execute (:78-81). The query-success hook, request parsing, schemas, transport and CLI stay unchanged.
  • For a managed non-info tool result, the adapter holds the response start and body even when no obligation or permit is registered. It classifies the result against the closed table and checks the document digest, slot, Store, operation, obligation and permit under the release gate before any protected byte goes downstream. Missing, removed or mismatched release metadata, before response start or after a partial buffer, returns only the existing operation-specific quarantined document in both representations. It never becomes HTTP 200 with content, and never a bare internal_failure. Wire shapes stay unchanged.
  • The restart scenario names a fault schedule for each of the ten kill checkpoints. Where an exact C or M is proved, that branch settles once, and READY follows only after durable local completion, required retirement and current authority are proved. Where the allowed reads end without proving C or M, as at admitted_m, the row, the charges and the barrier stay in durable quarantine, with no local apply or cancel and no further sends.
  • A new scenario and test row cover protected served results whose release metadata is missing or mismatched. Each failure case must turn red when its rule is removed.

Verify run. Run 20261121T103517Z-cad8f175, verify-only on base 0828c1ef, with no rework rounds and no label writes: CLEAN, with 0 blocking, 1 warning and 2 nits. The warning says R10 must stay a design decision for #35 and must not be reclassified as sequencing. It stays a decision.

Lens coverage: no lens read lines 492-736 of the spec. Those lines hold the restart schedule table and the new served-metadata scenario. One lens checked the Test Strategy rows at lines 737-830. The guide read the whole revision 12 to 13 delta and re-read the cited adapter code at 0828c1ef.

mind-spec canonical fit. mind-spec measured this exact hash independently and found no clash. The adapter section meets the P03 release requirement and keeps the attention-v1 wire shapes. The restart table fits the once and no-resend rules and the P05 and P06 recovery rules, including the admitted_c and admitted_m rows.

Carry-forwards, unchanged from revision 12:

  • P07 local retirement to #34.
  • The ordinary-work hold never becomes a production hold on Forget or reserved cleanup, to #34 and #47.
  • The J projection and the certificate ratification to #47; J and R10 to #35.
  • To #47: the staging plus full-read charge; the successful managed archive privacy controls; debt records as retirement inputs (P05.3); stock-S3 ownership-release proof (#47 comment 44855); a bounded, proof-based expiry and reclamation path that handles existing classless records (#47 comment 44911).
  • To #35: selected-artifact restore under P01, P10 and P13, and the other items in #35 comment 44858; the maximum reachable joint profile for E06 and E14 (#35 comment 44913).
  • The sole-prune check at the #34, #47 and #35 gates.
  • Production gates. Production activation stays disabled until each of these is implemented and verified: (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) stock-S3 ownership release before managed activation and use, including observation and command sends; (3) the proof-based command expiry and reclamation path.

Filed under: operator-word-d982c2768589

> *This was generated by AI during the SVD architect gate (minds-guide@voyager).* ## Approved spec for #33 Half-B, revision 13 This record replaces comment 44906. Revision 12 was released, and three Half-B dispatches on it stopped without a commit, a push or a PR. Revision 13 followed. mind-spec found no clash in revision 13, and svd:go stays on #33. Approved spec: `2026-11-21-dd-469-6-child-5-7-durable-transition-and-quarantine.md`, revision 13, sha256 `10b8a09364771bb01ceb0730f08a710998fc92b962c4f32ffd3b3a029c399cf5` (216,333 bytes, 965 lines, 72 scenarios), on main `0828c1ef`. **Half-B dispatches on revision 12.** - Run 20261121T070849Z-e83a3e6a stopped at the 2,700 s stage watchdog while the worker was busy. A resume of that run was stopped under the grant rule against extending an exhausted run. The operator ruled "Stop; fresh run" (2026-11-21 19:16 +11:00). mind-spec classified the stop as runner stage-budget exhaustion. - Run 20261121T082316Z-5afe3362 stopped at the 5,400 s stage watchdog while the worker was busy. mind-spec classified it the same way. The operator ruled "double the stage budget" (received by 2026-11-21 20:58:31 +11:00). - Run 20261121T101337Z-38768ce3, with a 10,800 s budget, declared the work incomplete after 394 s and changed no file. The worker reported two spec defects, and mind-spec classified both as specification defects: - Served release. Revision 12 required the operation-specific `quarantined` refusal when release evidence is missing. The frozen adapter could not enforce that. It holds the response start only when `slot.obligation` is set (`mcp_adapter.py:179-181`), and a missing obligation after buffering raises `internal_failure` (`:193-194`). Neither path calls the release recheck. The guide confirmed both lines at `0828c1ef`. - Repeated restart. Revision 12 required one settlement and READY after every kill checkpoint. At `admitted_m`, M's admission already exists and M was never sent, so the no-resend rule bars a second M. With only the original F visible, no winner can be proved. The operator ruled "Add mcp_adapter.py (Recommended)" (received 2026-11-21 between 21:26:52 and 21:27:54 +11:00). **Revision 13: the adapter release path and the restart matrix.** - The write set has seven Primary Files: five modified (`store.py`, `custody.py`, `service.py`, `recovery_archive.py`, `mcp_adapter.py`) and two new. `commands.py` and `queries.py` stay unchanged. - The adapter diff stays inside three named base locations: the shared `ReleaseSlot` (`:42-49`), the bounded release path with its buffer (`:167-220`), and a managed-scope capture around `Service.execute` (`:78-81`). The query-success hook, request parsing, schemas, transport and CLI stay unchanged. - For a managed non-`info` tool result, the adapter holds the response start and body even when no obligation or permit is registered. It classifies the result against the closed table and checks the document digest, slot, Store, operation, obligation and permit under the release gate before any protected byte goes downstream. Missing, removed or mismatched release metadata, before response start or after a partial buffer, returns only the existing operation-specific `quarantined` document in both representations. It never becomes HTTP 200 with content, and never a bare `internal_failure`. Wire shapes stay unchanged. - The restart scenario names a fault schedule for each of the ten kill checkpoints. Where an exact C or M is proved, that branch settles once, and READY follows only after durable local completion, required retirement and current authority are proved. Where the allowed reads end without proving C or M, as at `admitted_m`, the row, the charges and the barrier stay in durable quarantine, with no local apply or cancel and no further sends. - A new scenario and test row cover protected served results whose release metadata is missing or mismatched. Each failure case must turn red when its rule is removed. **Verify run.** Run 20261121T103517Z-cad8f175, verify-only on base `0828c1ef`, with no rework rounds and no label writes: CLEAN, with 0 blocking, 1 warning and 2 nits. The warning says R10 must stay a design decision for #35 and must not be reclassified as sequencing. It stays a decision. Lens coverage: no lens read lines 492-736 of the spec. Those lines hold the restart schedule table and the new served-metadata scenario. One lens checked the Test Strategy rows at lines 737-830. The guide read the whole revision 12 to 13 delta and re-read the cited adapter code at `0828c1ef`. **mind-spec canonical fit.** mind-spec measured this exact hash independently and found no clash. The adapter section meets the P03 release requirement and keeps the attention-v1 wire shapes. The restart table fits the once and no-resend rules and the P05 and P06 recovery rules, including the `admitted_c` and `admitted_m` rows. Carry-forwards, unchanged from revision 12: - P07 local retirement to #34. - The ordinary-work hold never becomes a production hold on Forget or reserved cleanup, to #34 and #47. - The J projection and the certificate ratification to #47; J and R10 to #35. - To #47: the staging plus full-read charge; the successful managed archive privacy controls; debt records as retirement inputs (P05.3); stock-S3 ownership-release proof (#47 comment 44855); a bounded, proof-based expiry and reclamation path that handles existing classless records (#47 comment 44911). - To #35: selected-artifact restore under P01, P10 and P13, and the other items in #35 comment 44858; the maximum reachable joint profile for E06 and E14 (#35 comment 44913). - The sole-prune check at the #34, #47 and #35 gates. - Production gates. Production activation stays disabled until each of these is implemented and verified: (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) stock-S3 ownership release before managed activation and use, including observation and command sends; (3) the proof-based command expiry and reclamation path. Filed under: operator-word-d982c2768589
Author
Member

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

Correction to the revision 13 release record: lens coverage

This corrects the lens coverage paragraph in the revision 13 release record. That record said no lens read lines 492-736 of the spec. The gap was wider. The approved spec, its hash and svd:go do not change.

The guide re-measured the verify run 20261121T103517Z-cad8f175 from the lens logs. A line counts as read only when a lens opened it whole. A grep hit, or a sed range piped into a filter, does not count. Three lenses read the spec as a whole file, and each read returned only lines 1-264 of 965. The decision-retrieval lens opened no file.

  • exhaustiveness: 1-264, 342-491, 916-927
  • invariant and diagnosis: 1-264, 829-876
  • path and access freshness: 1-264, 955-965
  • decision retrieval: none

No lens read lines 265-341, 492-828, 877-915 or 928-954. That is 485 of 965 lines read, 50%. The earlier record's "one lens checked the Test Strategy rows at lines 737-830" was a filtered extraction of the scenario column only.

The guide has now read every unread range in full. It found no clash with the revision 13 rules:

  • Lines 265-341 (the resume table, reconcile and activation) agree with the no-winner durable quarantine row and the no-resend rule.
  • Lines 492-828: the 72 acceptance scenarios map one to one onto the 72 Test Strategy rows, with none missing and none duplicated.
  • Lines 877-915: the Evidence Pack cites the adapter base ranges that the release path names.
  • Lines 928-954: all 19 source hashes match base 0828c1ef, the two new files are absent at that base, and the protocol hash is 1aaab9cb….

The operator ruled to proceed with this workaround for partial lens reads: measure each lens's coverage from its log, and the gate reads every range no lens read.

Filed under: operator-word-d982c2768589

> *This was generated by AI during the SVD architect gate (minds-guide@voyager).* ## Correction to the revision 13 release record: lens coverage This corrects the lens coverage paragraph in the revision 13 release record. That record said no lens read lines 492-736 of the spec. The gap was wider. The approved spec, its hash and svd:go do not change. The guide re-measured the verify run 20261121T103517Z-cad8f175 from the lens logs. A line counts as read only when a lens opened it whole. A grep hit, or a sed range piped into a filter, does not count. Three lenses read the spec as a whole file, and each read returned only lines 1-264 of 965. The decision-retrieval lens opened no file. - exhaustiveness: 1-264, 342-491, 916-927 - invariant and diagnosis: 1-264, 829-876 - path and access freshness: 1-264, 955-965 - decision retrieval: none No lens read lines 265-341, 492-828, 877-915 or 928-954. That is 485 of 965 lines read, 50%. The earlier record's "one lens checked the Test Strategy rows at lines 737-830" was a filtered extraction of the scenario column only. The guide has now read every unread range in full. It found no clash with the revision 13 rules: - Lines 265-341 (the resume table, reconcile and activation) agree with the no-winner durable quarantine row and the no-resend rule. - Lines 492-828: the 72 acceptance scenarios map one to one onto the 72 Test Strategy rows, with none missing and none duplicated. - Lines 877-915: the Evidence Pack cites the adapter base ranges that the release path names. - Lines 928-954: all 19 source hashes match base `0828c1ef`, the two new files are absent at that base, and the protocol hash is `1aaab9cb…`. The operator ruled to proceed with this workaround for partial lens reads: measure each lens's coverage from its log, and the gate reads every range no lens read. Filed under: operator-word-d982c2768589
Collaborator

spec-verify-dispatch Half B for dev/attention-mind-mcp#33 dd-469-6-child-5-7-durable-transition-and-quarantine completed integration verify.

  • PR: #48
  • Branch: feat/svd-dev-attention-mind-mcp-33-dd-469-6-child-5-7-durable-d2b4c2a7
  • Commit: b5cb5e2efe
  • Build: none
  • Test: red
  • Reader audit clean: False
  • Spec fidelity: True
  • Ready for merge: False
  • Check ci/woodpecker/pr/validation: pending https://ci.groupthink.asia/repos/76/pipeline/72/1
  • Checks: PR #48 head b5cb5e2: ci/woodpecker/pr/validation pending. Local unit, transport, ruff and mypy are green. 10 scenario-test name blockers remain (11 spec-named test functions absent). Not ready for merge.
  • Blocker: Scenario test missing: 'Effective barrier blocks direct snapshot' expects test_effective_barrier_blocks_direct_snapshot; the PR names it only as a param id inside test_managed_snapshot_checks_reservation_at_content_entry
  • Blocker: Scenario test missing: 'Fenced permit stays revoked after settlement during admission hold' expects test_epoch_fence_survives_admission_hold; the PR names it only as a param id inside test_served_release_rechecks_epoch_and_barrier
  • Blocker: Scenario test missing: 'Lost C response, C committed' expects test_lost_candidate_reply_recognized_by_exact_readback; the PR has test_lost_candidate_reply_and_delayed_candidate
  • Blocker: Scenario test missing: 'M wins before delayed C' expects test_marker_wins_delayed_candidate_refused; the PR names it only as a param id in test_lost_candidate_reply_and_delayed_candidate
  • Blocker: Scenario test missing: 'M committed, response lost, crash before cancellation' expects test_lost_marker_reply_crash_recognizes_same_marker; the PR names it only as a param id in test_repeated_kill_restart_each_checkpoint
  • Blocker: Scenario test missing: 'Publication and spend follow new command admission' expects test_one_frontier_publication_per_new_admission and test_no_slot_spent_without_new_admission; the PR has test_command_publication_and_spend_follow_new_admission
  • Blocker: Scenario test missing: 'Private permit fences release across no-op and cancellation' expects test_private_permit_fences_stale_release; the PR names it only as param ids in other tests
  • Blocker: Scenario test missing: 'Idle frontier charged once across prepare and reopen' expects test_reopen_counts_current_inside_prepared_charge; the PR names it only as param ids
  • Blocker: Scenario test missing: 'Unavailable listing holds new work after exact settlement' expects test_settled_release_with_unavailable_listing; the PR has test_settled_release_during_new_work_hold with that name as a param id
  • Blocker: Scenario test missing: 'Orphan-only debt holds new work after exact settlement' expects test_settled_release_with_orphan_debt; the PR has test_settled_release_during_new_work_hold with that name as a param id
  • Blocker: Verification command failed: .venv/bin/python -m pytest --collect-only -q tests/test_recovery_transition.py -m unit -o addopts= > /tmp/collect33.txt 2>&1; echo exit $?; tail -5 /tmp/collect33.txt; wc -l /tmp/collect33.txt (ran outside the project environment /Users/piers/src/attention-mind-mcp/data/svd33/worktrees/20261121T104247Z-d2b4c2a7/worktree/.venv/bin)
  • Blocker cause: work for Scenario test missing: 'Effective barrier blocks direct snapshot' expects test_effective_barrier_blocks_direct_snapshot; the PR names it only as a param id inside test_managed_snapshot_checks_reservation_at_content_entry; no denial signature; evidence: grep 'def test_effective_barrier' in tests/test_recovery_transition.py returned no match; only param id at line 2639
  • Blocker cause: work for Scenario test missing: 'Fenced permit stays revoked after settlement during admission hold' expects test_epoch_fence_survives_admission_hold; the PR names it only as a param id inside test_served_release_rechecks_epoch_and_barrier; no denial signature; evidence: no 'def test_epoch_fence' in the file; id string at line 1556
  • Blocker cause: work for Scenario test missing: 'Lost C response, C committed' expects test_lost_candidate_reply_recognized_by_exact_readback; the PR has test_lost_candidate_reply_and_delayed_candidate; no denial signature; evidence: def test_lost_candidate_reply_and_delayed_candidate at line 294; the named function is absent from the collected node ids
  • Blocker cause: work for Scenario test missing: 'M wins before delayed C' expects test_marker_wins_delayed_candidate_refused; the PR names it only as a param id in test_lost_candidate_reply_and_delayed_candidate; no denial signature; evidence: line 291: id="marker_wins_delayed_candidate_refused"; no such function
  • Blocker cause: work for Scenario test missing: 'M committed, response lost, crash before cancellation' expects test_lost_marker_reply_crash_recognizes_same_marker; the PR names it only as a param id in test_repeated_kill_restart_each_checkpoint; no denial signature; evidence: line 675: id="before_local_cancel_same_marker"; no such function
  • Blocker cause: work for Scenario test missing: 'Publication and spend follow new command admission' expects test_one_frontier_publication_per_new_admission and test_no_slot_spent_without_new_admission; the PR has test_command_publication_and_spend_follow_new_admission; no denial signature; evidence: def test_command_publication_and_spend_follow_new_admission at line 3299; neither named function is in the collected node ids
  • Blocker cause: work for Scenario test missing: 'Private permit fences release across no-op and cancellation' expects test_private_permit_fences_stale_release; the PR names it only as param ids in other tests; no denial signature; evidence: ids at lines 1107-1109, 1552-1553, 1767-1771; no such function
  • Blocker cause: work for Scenario test missing: 'Idle frontier charged once across prepare and reopen' expects test_reopen_counts_current_inside_prepared_charge; the PR names it only as param ids; no denial signature; evidence: ids at lines 4585-4586 'before_rename-inside_prepared_charge'; no such function
  • Blocker cause: work for Scenario test missing: 'Unavailable listing holds new work after exact settlement' expects test_settled_release_with_unavailable_listing; the PR has test_settled_release_during_new_work_hold with that name as a param id; no denial signature; evidence: line 1854 ids=["settled_release_with_unavailable_listing", ...]; def at line 1856 is test_settled_release_during_new_work_hold
  • Blocker cause: work for Scenario test missing: 'Orphan-only debt holds new work after exact settlement' expects test_settled_release_with_orphan_debt; the PR has test_settled_release_during_new_work_hold with that name as a param id; no denial signature; evidence: line 1854 ids=[..., "settled_release_with_orphan_debt"]; def at line 1856 is test_settled_release_during_new_work_hold
  • Blocker cause: unclassified for Verification command failed: .venv/bin/python -m pytest --collect-only -q tests/test_recovery_transition.py -m unit -o addopts= > /tmp/collect33.txt 2>&1; echo exit $?; tail -5 /tmp/collect33.txt; wc -l /tmp/collect33.txt (ran outside the project environment /Users/piers/src/attention-mind-mcp/data/svd33/worktrees/20261121T104247Z-d2b4c2a7/worktree/.venv/bin); no denial signature
  • Warning: The remaining Scenario rows have a test function that exists and is collected under the -m unit selection. Tests in the missing-name blockers pass but under different function names, so the fix is renaming or splitting, not new behavior.
  • Warning: CONV-23 reader-row check and the base-hash protocol/write-set comparison (merge gate) were not performed in full. The diff touches exactly the seven Primary Files, so the footprint matches.
  • Warning: The runner-read forge status ci/woodpecker/pr/validation is pending, so remote CI is not yet integration truth.
  • Warning: I did not read PR comments or reviews, so I make no claim about an independent reviewer.
  • Warning: Local verification on b5cb5e2: tests/test_recovery_transition.py 416 passed; -m unit 1317 passed; -m transport 66 passed; ruff check, ruff format --check and mypy src all clean. The declared failure floor is empty and no failures were observed.
  • Rework: 0 round(s), outcome escalated
  • Escalation: unclassified blocker(s) hold the run without code rework (an infra cause with no evidence): unclassified for Verification command failed: .venv/bin/python -m pytest --collect-only -q tests/test_recovery_transition.py -m unit -o addopts= > /tmp/collect33.txt 2>&1; echo exit $?; tail -5 /tmp/collect33.txt; wc -l /tmp/collect33.txt (ran outside the project environment /Users/piers/src/attention-mind-mcp/data/svd33/worktrees/20261121T104247Z-d2b4c2a7/worktree/.venv/bin); no denial signature; 10 work blocker(s) also held until the unclassified cause clears
  • Decision: resolve the blockers above and rerun integrate, or park this PR for a human?
spec-verify-dispatch Half B for dev/attention-mind-mcp#33 dd-469-6-child-5-7-durable-transition-and-quarantine completed integration verify. - PR: https://git.groupthink.asia/dev/attention-mind-mcp/pulls/48 - Branch: feat/svd-dev-attention-mind-mcp-33-dd-469-6-child-5-7-durable-d2b4c2a7 - Commit: b5cb5e2efef905bb85c076189a21b8ab0d10e5c6 - Build: none - Test: red - Reader audit clean: False - Spec fidelity: True - Ready for merge: False - Check ci/woodpecker/pr/validation: pending https://ci.groupthink.asia/repos/76/pipeline/72/1 - Checks: PR #48 head b5cb5e2: ci/woodpecker/pr/validation pending. Local unit, transport, ruff and mypy are green. 10 scenario-test name blockers remain (11 spec-named test functions absent). Not ready for merge. - Blocker: Scenario test missing: 'Effective barrier blocks direct snapshot' expects test_effective_barrier_blocks_direct_snapshot; the PR names it only as a param id inside test_managed_snapshot_checks_reservation_at_content_entry - Blocker: Scenario test missing: 'Fenced permit stays revoked after settlement during admission hold' expects test_epoch_fence_survives_admission_hold; the PR names it only as a param id inside test_served_release_rechecks_epoch_and_barrier - Blocker: Scenario test missing: 'Lost C response, C committed' expects test_lost_candidate_reply_recognized_by_exact_readback; the PR has test_lost_candidate_reply_and_delayed_candidate - Blocker: Scenario test missing: 'M wins before delayed C' expects test_marker_wins_delayed_candidate_refused; the PR names it only as a param id in test_lost_candidate_reply_and_delayed_candidate - Blocker: Scenario test missing: 'M committed, response lost, crash before cancellation' expects test_lost_marker_reply_crash_recognizes_same_marker; the PR names it only as a param id in test_repeated_kill_restart_each_checkpoint - Blocker: Scenario test missing: 'Publication and spend follow new command admission' expects test_one_frontier_publication_per_new_admission and test_no_slot_spent_without_new_admission; the PR has test_command_publication_and_spend_follow_new_admission - Blocker: Scenario test missing: 'Private permit fences release across no-op and cancellation' expects test_private_permit_fences_stale_release; the PR names it only as param ids in other tests - Blocker: Scenario test missing: 'Idle frontier charged once across prepare and reopen' expects test_reopen_counts_current_inside_prepared_charge; the PR names it only as param ids - Blocker: Scenario test missing: 'Unavailable listing holds new work after exact settlement' expects test_settled_release_with_unavailable_listing; the PR has test_settled_release_during_new_work_hold with that name as a param id - Blocker: Scenario test missing: 'Orphan-only debt holds new work after exact settlement' expects test_settled_release_with_orphan_debt; the PR has test_settled_release_during_new_work_hold with that name as a param id - Blocker: Verification command failed: .venv/bin/python -m pytest --collect-only -q tests/test_recovery_transition.py -m unit -o addopts= > /tmp/collect33.txt 2>&1; echo exit $?; tail -5 /tmp/collect33.txt; wc -l /tmp/collect33.txt (ran outside the project environment /Users/piers/src/attention-mind-mcp/data/svd33/worktrees/20261121T104247Z-d2b4c2a7/worktree/.venv/bin) - Blocker cause: work for Scenario test missing: 'Effective barrier blocks direct snapshot' expects test_effective_barrier_blocks_direct_snapshot; the PR names it only as a param id inside test_managed_snapshot_checks_reservation_at_content_entry; no denial signature; evidence: grep 'def test_effective_barrier' in tests/test_recovery_transition.py returned no match; only param id at line 2639 - Blocker cause: work for Scenario test missing: 'Fenced permit stays revoked after settlement during admission hold' expects test_epoch_fence_survives_admission_hold; the PR names it only as a param id inside test_served_release_rechecks_epoch_and_barrier; no denial signature; evidence: no 'def test_epoch_fence' in the file; id string at line 1556 - Blocker cause: work for Scenario test missing: 'Lost C response, C committed' expects test_lost_candidate_reply_recognized_by_exact_readback; the PR has test_lost_candidate_reply_and_delayed_candidate; no denial signature; evidence: def test_lost_candidate_reply_and_delayed_candidate at line 294; the named function is absent from the collected node ids - Blocker cause: work for Scenario test missing: 'M wins before delayed C' expects test_marker_wins_delayed_candidate_refused; the PR names it only as a param id in test_lost_candidate_reply_and_delayed_candidate; no denial signature; evidence: line 291: id="marker_wins_delayed_candidate_refused"; no such function - Blocker cause: work for Scenario test missing: 'M committed, response lost, crash before cancellation' expects test_lost_marker_reply_crash_recognizes_same_marker; the PR names it only as a param id in test_repeated_kill_restart_each_checkpoint; no denial signature; evidence: line 675: id="before_local_cancel_same_marker"; no such function - Blocker cause: work for Scenario test missing: 'Publication and spend follow new command admission' expects test_one_frontier_publication_per_new_admission and test_no_slot_spent_without_new_admission; the PR has test_command_publication_and_spend_follow_new_admission; no denial signature; evidence: def test_command_publication_and_spend_follow_new_admission at line 3299; neither named function is in the collected node ids - Blocker cause: work for Scenario test missing: 'Private permit fences release across no-op and cancellation' expects test_private_permit_fences_stale_release; the PR names it only as param ids in other tests; no denial signature; evidence: ids at lines 1107-1109, 1552-1553, 1767-1771; no such function - Blocker cause: work for Scenario test missing: 'Idle frontier charged once across prepare and reopen' expects test_reopen_counts_current_inside_prepared_charge; the PR names it only as param ids; no denial signature; evidence: ids at lines 4585-4586 'before_rename-inside_prepared_charge'; no such function - Blocker cause: work for Scenario test missing: 'Unavailable listing holds new work after exact settlement' expects test_settled_release_with_unavailable_listing; the PR has test_settled_release_during_new_work_hold with that name as a param id; no denial signature; evidence: line 1854 ids=["settled_release_with_unavailable_listing", ...]; def at line 1856 is test_settled_release_during_new_work_hold - Blocker cause: work for Scenario test missing: 'Orphan-only debt holds new work after exact settlement' expects test_settled_release_with_orphan_debt; the PR has test_settled_release_during_new_work_hold with that name as a param id; no denial signature; evidence: line 1854 ids=[..., "settled_release_with_orphan_debt"]; def at line 1856 is test_settled_release_during_new_work_hold - Blocker cause: unclassified for Verification command failed: .venv/bin/python -m pytest --collect-only -q tests/test_recovery_transition.py -m unit -o addopts= > /tmp/collect33.txt 2>&1; echo exit $?; tail -5 /tmp/collect33.txt; wc -l /tmp/collect33.txt (ran outside the project environment /Users/piers/src/attention-mind-mcp/data/svd33/worktrees/20261121T104247Z-d2b4c2a7/worktree/.venv/bin); no denial signature - Warning: The remaining Scenario rows have a test function that exists and is collected under the -m unit selection. Tests in the missing-name blockers pass but under different function names, so the fix is renaming or splitting, not new behavior. - Warning: CONV-23 reader-row check and the base-hash protocol/write-set comparison (merge gate) were not performed in full. The diff touches exactly the seven Primary Files, so the footprint matches. - Warning: The runner-read forge status ci/woodpecker/pr/validation is pending, so remote CI is not yet integration truth. - Warning: I did not read PR comments or reviews, so I make no claim about an independent reviewer. - Warning: Local verification on b5cb5e2: tests/test_recovery_transition.py 416 passed; -m unit 1317 passed; -m transport 66 passed; ruff check, ruff format --check and mypy src all clean. The declared failure floor is empty and no failures were observed. - Rework: 0 round(s), outcome escalated - Escalation: unclassified blocker(s) hold the run without code rework (an infra cause with no evidence): unclassified for Verification command failed: .venv/bin/python -m pytest --collect-only -q tests/test_recovery_transition.py -m unit -o addopts= > /tmp/collect33.txt 2>&1; echo exit $?; tail -5 /tmp/collect33.txt; wc -l /tmp/collect33.txt (ran outside the project environment /Users/piers/src/attention-mind-mcp/data/svd33/worktrees/20261121T104247Z-d2b4c2a7/worktree/.venv/bin); no denial signature; 10 work blocker(s) also held until the unclassified cause clears - Decision: resolve the blockers above and rerun integrate, or park this PR for a human?
Collaborator

spec-verify-dispatch Half B for dev/attention-mind-mcp#33 dd-469-6-child-5-7-durable-transition-and-quarantine completed integration verify.

  • PR: #48
  • Branch: feat/svd-dev-attention-mind-mcp-33-dd-469-6-child-5-7-durable-d2b4c2a7
  • Commit: b1943a5cca
  • 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/73/1
  • Checks: required ci/woodpecker/pr/validation resolved pass by CI-wait poll
  • Warning: Remote CI ci/woodpecker/pr/validation is still pending on head b1943a5cca; merge waits for green.
  • Warning: Spec merge-gate item (CONV-23 reader row) was checked by reading the diff only. The archive diff is a single line, store.transaction() to store._archive_transaction(identity). The protocol hash 1aaab9cb... matches the spec. Diff against base 0828c1e touches exactly the seven Primary Files.
  • Warning: Baseline re-measure on the pristine base was not run, so the post-change unit and transport failure sets are compared against zero failures, not a base failure set.
  • CI wait: ci/woodpecker/pr/validation -> pass
  • Decision: review the PR and merge? (codex-svd ship --run-id 20261121T104247Z-d2b4c2a7 --confirm-merge)
spec-verify-dispatch Half B for dev/attention-mind-mcp#33 dd-469-6-child-5-7-durable-transition-and-quarantine completed integration verify. - PR: https://git.groupthink.asia/dev/attention-mind-mcp/pulls/48 - Branch: feat/svd-dev-attention-mind-mcp-33-dd-469-6-child-5-7-durable-d2b4c2a7 - Commit: b1943a5cca3861e9a945db595a1615dfcc4c0b4a - 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/73/1 - Checks: required ci/woodpecker/pr/validation resolved pass by CI-wait poll - Warning: Remote CI ci/woodpecker/pr/validation is still pending on head b1943a5cca38; merge waits for green. - Warning: Spec merge-gate item (CONV-23 reader row) was checked by reading the diff only. The archive diff is a single line, store.transaction() to store._archive_transaction(identity). The protocol hash 1aaab9cb... matches the spec. Diff against base 0828c1e touches exactly the seven Primary Files. - Warning: Baseline re-measure on the pristine base was not run, so the post-change unit and transport failure sets are compared against zero failures, not a base failure set. - CI wait: ci/woodpecker/pr/validation -> pass - Decision: review the PR and merge? (`codex-svd ship --run-id 20261121T104247Z-d2b4c2a7 --confirm-merge`)
Author
Member

PR #48 round 1: guide dispositions

Operator ruling (§6, 2026-11-22T07:39+11:00): SEC1 to SEC4, fix all four. mind-spec fit (answer a7cf44c5 on corr pr48-r1-fit, spec-v13 10b8a093, protocol 1aaab9cb, attention-v1 f2d7a963): ACCOMMODATE / NO CLASH for items 1 to 13, within the bounds in the section "mind-spec bounds" below. No spec amendment.

Head b1943a5, spec-v13 sha256 10b8a093. Three independent reviews, all FAIL. Guide reproduced SEC1 to SEC4 and confirmed ST1 on its own copy before the voyager reboot at 04:46.

Code fixes (Primary Files only)

  1. ST1 (blocking, guide confirmed by reading). _Files.write syncs record content with os.fsync. Spec L63 names _sync_fd (F_FULLFSYNC on Darwin) plus _sync_directory. Fix: sync file content with recovery_staging._sync_fd or an identical helper. Directory syncs stay as they are. Test: record the content-sync call for every record write and fail if any write uses plain os.fsync on the file.
  2. SEC1 (medium, guide reproduced: EMFILE and unreadable key dir leave durable 1 after the fault clears; FileNotFoundError control recovers). Spec L275, L282, L320, L588-590: custody I/O and key_unavailable are transient; persist only contradictory authority. Fix: key_custody_io and every other resolver I/O code is transient in reconcile and resume: derived quarantine, never queue.quarantined=1. Test through the production KeyCustody path with an injected EMFILE and EIO on the key directory (inject, do not chmod: CI runs as root): derived quarantine during the fault, then ready with durable 0 after.
  3. SEC2 (medium, guide reproduced: C torn at 0 B and 64 B, M torn at 0 B, durable 1 across two reopens; complete-C control ready). Spec L242: a crash before the row exists leaves only staged files under reserved owned names; reconstruct charges and retire verified unreferenced files before reuse. Fix: a staged C or M with no PREPARED row is unreferenced; if it fails authentication, retire it (unlink plus directory sync, charge released once per L268) instead of persisting quarantine. Test: kill between create and fsync for C and for M, at 0 B and at a partial length; reopen gives ready, durable 0, empty staged family, charges back to idle.
  4. SP1 = SEC3 (Spec blocking deviation, Security low; guide reproduced: key_unavailable during prepare returns capacity_exceeded, readiness ready). Spec L402, L492, L588-590, R14: only an actual finite capacity refusal keeps capacity_exceeded; a key or custody I/O failure during prepare quarantines. Fix: a key or custody I/O failure during COMMAND prepare returns quarantined (derived), and a later healthy resolver proceeds. The side-file fsync failure case (tests L4735-4736 assert capacity_exceeded) is custody I/O under L275 and L589; change it to quarantined (mind-spec: accommodate, no clash; bound B1).
  5. ST3. activate lets raw OSError escape (mkdir EACCES; fsync EIO). Spec L63: quarantine-on-failure that never raises past the barrier. Fix: map OSError to fixed codes as staging does.
  6. ST4. Reachable assert outcome is not None at :2744. Fix: a fixed refusal.
  7. ST5. _released takes _test_ownership_release by getattr on any transport, honoured on a stock S3Transport instance. Fix: bind the seam the way neighbours bind test hooks (a validated private ManagedConfig or transport-type check), so a stock S3Transport can never release (spec L225, L704).
  8. ST2. _fail has no from None; 13 refusals carry a FoundationError __context__. Spec L67 names the refused idiom (asserts __cause__ and __context__ are None). Fix: _fail(code) raises from None, no FoundationError leaves with a __context__ (raise outside the handler), and the new tests use refused for FoundationError refusals.
  9. ST7, ST8. Use the existing helpers (recovery_inventory namespace encode and decode, recovery_storage _digest, storage._member for enum decode so unknown values give a fixed code). Match codes on error.args like staging, not str(exc); narrow the broad except clauses; guard _quarantine() at :1067 as resume does. Fold the three service reauthorization copies into one helper.

Test-only fixes

  1. SP2 (blocking test gap). Uncertain GET 1 never authorizes M (L263, L294, L634). Pin both layers (:2128 before is not None; :1727-1733 GET 1 SUCCEEDED with F digest and ETag), each with an isolated case that turns red when that layer alone is removed.
  2. SP3 (blocking test gap). Metadata missing at response start and restored after buffering (L456, L720). Add obligation_restored and permit_restored cases; removing :268 or :270 alone turns its own case red.
  3. SEC4 (low). nlink == 1 (:295) and directory mode 0700 (:304) have no test. Add a planted hard link and family directory modes 0755, 0777, 0750 cases; both are root-safe (st_nlink and st_mode, not access).
  4. SP4 ineligible protection row in test_served_result_classification (L423, L723). SP5 an open prepare intent closes new handoff leases (L445; service.py:189-190). SP6 F0 carries every reserve, suppression and terminal fact (L500, L706-707, L755): read F0 content after a withdraw and a dispose. SP7 driver (b) on a non-command request (L557). SP8 archive identity compare with the same artifact_id and a different original_expiry_us (L468, L491).
  5. SP9 isolate the barrier recheck case with a non-get operation. SP10 the disabling-custody scenario with a pending row, asserting legacy finalize returns False (L585-587). SP11 lowercase ids per L775. SP12 pin the compose expiry boundary (deadline equal to now) and the M premise guard (:2132; L283 "qualified premise" before any send). SP13 name the nine rule removals in the PR body.

Nits

  1. ST10 dead code (:671-674; adapter :84). ST11 iterate sorted names in _sweep. ST12 compare readiness with the enum. ST13 UNIT = pytest.mark.unit per L67.

Accepted residuals (no change)

  • ST6 Any in recovery_transition.py decoders (replace only where a concrete type exists in the service and adapter diff: _Permit, Store). ST9 module size (spec names the module). ST13 file size and private-attribute coupling (L550 requires stripping each check).
  • Security observations 1-10, the three parallel-load timing flakes (serial CI unaffected), the legacy test_writer_kill_and_retry flake.

mind-spec bounds (binding on the fixes)

  • B1 (item 4). A staged COMMAND C or M file fsync or parent-directory fsync failure returns the existing operation-specific derived quarantined. Keep any uncertain copy charged and the barrier up until durable retirement and current authority are proved. Roll back with zero new spend, no PREPARED commit and no transition send. A healthy retry may reuse the same unspent key and token within the original deadline. An actual finite reservation failure (the no_headroom control) still returns capacity_exceeded. Spec L229, L235, L241-245, L275, L402, L491-492, L588-590, R14 L870; P06 L81.
  • B2 (item 2). Recognized resolver I/O (including key_custody_io) and key_unavailable are retryable: derived quarantine while authority, settlement or retirement is unproved; keep evidence and charges. A recorded-digest authentication failure, key mismatch or contradictory binding still persists quarantine. A resolver error code is not proof of key loss and gives no authority for reset, marker or cancel, or a new request. Spec L275, L282-283, L297, L318-320, L588-593.
  • B3 (item 3). Retire a torn C or M only after proving it is an exact owned, bounded, safely opened pre-PREPARED staging entry that no prepared authority or transition journal references. Prove that from the successful durable row lookup, the owned-name family sweep and the journal binding; the torn contents need not authenticate. Contradictory bindings and unsafe or unknown entries stay fenced; a resolver or read I/O error is unavailable evidence, not proof. Reconstruct the exact charge first, unlink and sync the parent, release the charge once after verified retirement, and prove current F before READY. No new admission or send, no local apply or cancel. Spec L63, L229, L241-245, L268, L302-314, L516-518.
  • B4 (items 1, 5 to 9). Reauthorization keeps the exact current binding, the erasure checks and the fixed refusal and diagnostic shape (L429, L455, L724-726). A stock S3 transport keeps the exact attempt charge; only exact synthetic ownership proof and verified retirement release it (L225, L703-704).
  • B5 (items 10 to 13). Item 13 SP8: use two otherwise valid archive identities that differ only on expiry.

Round rules

  • This is rework round 1 of the PR #48 merge gate, under default caps.
  • Write set: the 7 files of the spec write set only. No spec change.
  • Inject faults in every permission or I/O test; do not chmod (CI runs as root on Linux).
  • On the new head, run integrate with absolute .venv/bin paths (dev/stables#2333). Send the receipt as before.
# PR #48 round 1: guide dispositions Operator ruling (§6, 2026-11-22T07:39+11:00): SEC1 to SEC4, fix all four. mind-spec fit (answer a7cf44c5 on corr pr48-r1-fit, spec-v13 10b8a093, protocol 1aaab9cb, attention-v1 f2d7a963): ACCOMMODATE / NO CLASH for items 1 to 13, within the bounds in the section "mind-spec bounds" below. No spec amendment. Head b1943a5, spec-v13 sha256 10b8a093. Three independent reviews, all FAIL. Guide reproduced SEC1 to SEC4 and confirmed ST1 on its own copy before the voyager reboot at 04:46. ## Code fixes (Primary Files only) 1. ST1 (blocking, guide confirmed by reading). `_Files.write` syncs record content with `os.fsync`. Spec L63 names `_sync_fd` (F_FULLFSYNC on Darwin) plus `_sync_directory`. Fix: sync file content with `recovery_staging._sync_fd` or an identical helper. Directory syncs stay as they are. Test: record the content-sync call for every record write and fail if any write uses plain `os.fsync` on the file. 2. SEC1 (medium, guide reproduced: EMFILE and unreadable key dir leave durable 1 after the fault clears; FileNotFoundError control recovers). Spec L275, L282, L320, L588-590: custody I/O and key_unavailable are transient; persist only contradictory authority. Fix: `key_custody_io` and every other resolver I/O code is transient in reconcile and resume: derived quarantine, never `queue.quarantined=1`. Test through the production `KeyCustody` path with an injected EMFILE and EIO on the key directory (inject, do not chmod: CI runs as root): derived quarantine during the fault, then ready with durable 0 after. 3. SEC2 (medium, guide reproduced: C torn at 0 B and 64 B, M torn at 0 B, durable 1 across two reopens; complete-C control ready). Spec L242: a crash before the row exists leaves only staged files under reserved owned names; reconstruct charges and retire verified unreferenced files before reuse. Fix: a staged C or M with no PREPARED row is unreferenced; if it fails authentication, retire it (unlink plus directory sync, charge released once per L268) instead of persisting quarantine. Test: kill between create and fsync for C and for M, at 0 B and at a partial length; reopen gives ready, durable 0, empty staged family, charges back to idle. 4. SP1 = SEC3 (Spec blocking deviation, Security low; guide reproduced: key_unavailable during prepare returns capacity_exceeded, readiness ready). Spec L402, L492, L588-590, R14: only an actual finite capacity refusal keeps `capacity_exceeded`; a key or custody I/O failure during prepare quarantines. Fix: a key or custody I/O failure during COMMAND prepare returns `quarantined` (derived), and a later healthy resolver proceeds. The side-file fsync failure case (tests L4735-4736 assert capacity_exceeded) is custody I/O under L275 and L589; change it to quarantined (mind-spec: accommodate, no clash; bound B1). 5. ST3. `activate` lets raw OSError escape (mkdir EACCES; fsync EIO). Spec L63: quarantine-on-failure that never raises past the barrier. Fix: map OSError to fixed codes as staging does. 6. ST4. Reachable `assert outcome is not None` at :2744. Fix: a fixed refusal. 7. ST5. `_released` takes `_test_ownership_release` by getattr on any transport, honoured on a stock S3Transport instance. Fix: bind the seam the way neighbours bind test hooks (a validated private ManagedConfig or transport-type check), so a stock S3Transport can never release (spec L225, L704). 8. ST2. `_fail` has no `from None`; 13 refusals carry a FoundationError `__context__`. Spec L67 names the `refused` idiom (asserts `__cause__` and `__context__` are None). Fix: `_fail(code)` raises `from None`, no FoundationError leaves with a `__context__` (raise outside the handler), and the new tests use `refused` for FoundationError refusals. 9. ST7, ST8. Use the existing helpers (recovery_inventory namespace encode and decode, recovery_storage `_digest`, `storage._member` for enum decode so unknown values give a fixed code). Match codes on `error.args` like staging, not `str(exc)`; narrow the broad except clauses; guard `_quarantine()` at :1067 as resume does. Fold the three service reauthorization copies into one helper. ## Test-only fixes 10. SP2 (blocking test gap). Uncertain GET 1 never authorizes M (L263, L294, L634). Pin both layers (:2128 `before is not None`; :1727-1733 GET 1 SUCCEEDED with F digest and ETag), each with an isolated case that turns red when that layer alone is removed. 11. SP3 (blocking test gap). Metadata missing at response start and restored after buffering (L456, L720). Add obligation_restored and permit_restored cases; removing :268 or :270 alone turns its own case red. 12. SEC4 (low). nlink == 1 (:295) and directory mode 0700 (:304) have no test. Add a planted hard link and family directory modes 0755, 0777, 0750 cases; both are root-safe (st_nlink and st_mode, not access). 13. SP4 `ineligible` protection row in test_served_result_classification (L423, L723). SP5 an open prepare intent closes new handoff leases (L445; service.py:189-190). SP6 F0 carries every reserve, suppression and terminal fact (L500, L706-707, L755): read F0 content after a withdraw and a dispose. SP7 driver (b) on a non-command request (L557). SP8 archive identity compare with the same artifact_id and a different original_expiry_us (L468, L491). 14. SP9 isolate the barrier recheck case with a non-get operation. SP10 the disabling-custody scenario with a pending row, asserting legacy finalize returns False (L585-587). SP11 lowercase ids per L775. SP12 pin the compose expiry boundary (deadline equal to now) and the M premise guard (:2132; L283 "qualified premise" before any send). SP13 name the nine rule removals in the PR body. ## Nits 15. ST10 dead code (:671-674; adapter :84). ST11 iterate sorted names in `_sweep`. ST12 compare readiness with the enum. ST13 `UNIT = pytest.mark.unit` per L67. ## Accepted residuals (no change) - ST6 `Any` in recovery_transition.py decoders (replace only where a concrete type exists in the service and adapter diff: `_Permit`, Store). ST9 module size (spec names the module). ST13 file size and private-attribute coupling (L550 requires stripping each check). - Security observations 1-10, the three parallel-load timing flakes (serial CI unaffected), the legacy test_writer_kill_and_retry flake. ## mind-spec bounds (binding on the fixes) - B1 (item 4). A staged COMMAND C or M file fsync or parent-directory fsync failure returns the existing operation-specific derived `quarantined`. Keep any uncertain copy charged and the barrier up until durable retirement and current authority are proved. Roll back with zero new spend, no PREPARED commit and no transition send. A healthy retry may reuse the same unspent key and token within the original deadline. An actual finite reservation failure (the no_headroom control) still returns `capacity_exceeded`. Spec L229, L235, L241-245, L275, L402, L491-492, L588-590, R14 L870; P06 L81. - B2 (item 2). Recognized resolver I/O (including key_custody_io) and key_unavailable are retryable: derived quarantine while authority, settlement or retirement is unproved; keep evidence and charges. A recorded-digest authentication failure, key mismatch or contradictory binding still persists quarantine. A resolver error code is not proof of key loss and gives no authority for reset, marker or cancel, or a new request. Spec L275, L282-283, L297, L318-320, L588-593. - B3 (item 3). Retire a torn C or M only after proving it is an exact owned, bounded, safely opened pre-PREPARED staging entry that no prepared authority or transition journal references. Prove that from the successful durable row lookup, the owned-name family sweep and the journal binding; the torn contents need not authenticate. Contradictory bindings and unsafe or unknown entries stay fenced; a resolver or read I/O error is unavailable evidence, not proof. Reconstruct the exact charge first, unlink and sync the parent, release the charge once after verified retirement, and prove current F before READY. No new admission or send, no local apply or cancel. Spec L63, L229, L241-245, L268, L302-314, L516-518. - B4 (items 1, 5 to 9). Reauthorization keeps the exact current binding, the erasure checks and the fixed refusal and diagnostic shape (L429, L455, L724-726). A stock S3 transport keeps the exact attempt charge; only exact synthetic ownership proof and verified retirement release it (L225, L703-704). - B5 (items 10 to 13). Item 13 SP8: use two otherwise valid archive identities that differ only on expiry. ## Round rules - This is rework round 1 of the PR #48 merge gate, under default caps. - Write set: the 7 files of the spec write set only. No spec change. - Inject faults in every permission or I/O test; do not chmod (CI runs as root on Linux). - On the new head, run integrate with absolute .venv/bin paths (dev/stables#2333). Send the receipt as before.
Collaborator

spec-verify-dispatch Half B for dev/attention-mind-mcp#33 dd-469-6-child-5-7-durable-transition-and-quarantine completed integration verify.

  • PR: #48
  • Branch: feat/svd-dev-attention-mind-mcp-33-dd-469-6-child-5-7-durable-d2b4c2a7
  • Commit: cfae3861a1
  • 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/75/1
  • Checks: required ci/woodpecker/pr/validation resolved pass by CI-wait poll
  • Warning: Remote CI ci/woodpecker/pr/validation is still pending on head cfae3861a1.
  • Warning: The merge-gate checks (protocol hash and write-set comparison with base 0828c1ef) passed locally: the protocol hash matches 1aaab9cb... and the diff touches only the seven named files. The CONV-23 reader row rests on the passing test_wire_readiness_reader_accepts_only_ready plus the unchanged existing suite.
  • Warning: I did not run the unit suite on the pristine base. The full unit suite (excluding the new file) and the transport suite pass with zero failures, so the pre-edit failure set is empty or unchanged.
  • Warning: I did not read PR comments or reviews in this invocation, so I make no claim about independent review.
  • CI wait: ci/woodpecker/pr/validation -> pass
  • Decision: merge disposition is the operator's; run ready (codex-svd ship --run-id 20261121T104247Z-d2b4c2a7 available to a permitted seat)

label flip withheld (--no-label-writes); gate label is the orchestrator's act — actor unset

spec-verify-dispatch Half B for dev/attention-mind-mcp#33 dd-469-6-child-5-7-durable-transition-and-quarantine completed integration verify. - PR: https://git.groupthink.asia/dev/attention-mind-mcp/pulls/48 - Branch: feat/svd-dev-attention-mind-mcp-33-dd-469-6-child-5-7-durable-d2b4c2a7 - Commit: cfae3861a1241e2d8e7cd7eee4d6a6fbf5d24389 - 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/75/1 - Checks: required ci/woodpecker/pr/validation resolved pass by CI-wait poll - Warning: Remote CI ci/woodpecker/pr/validation is still pending on head cfae3861a124. - Warning: The merge-gate checks (protocol hash and write-set comparison with base 0828c1ef) passed locally: the protocol hash matches 1aaab9cb... and the diff touches only the seven named files. The CONV-23 reader row rests on the passing test_wire_readiness_reader_accepts_only_ready plus the unchanged existing suite. - Warning: I did not run the unit suite on the pristine base. The full unit suite (excluding the new file) and the transport suite pass with zero failures, so the pre-edit failure set is empty or unchanged. - Warning: I did not read PR comments or reviews in this invocation, so I make no claim about independent review. - CI wait: ci/woodpecker/pr/validation -> pass - Decision: merge disposition is the operator's; run ready (`codex-svd ship --run-id 20261121T104247Z-d2b4c2a7` available to a permitted seat) label flip withheld (--no-label-writes); gate label is the orchestrator's act — actor unset
Author
Member

PR #48 round 2: guide dispositions

Head cfae386, spec-v13 sha256 10b8a093, base 0828c1ef. Three fresh independent reviews: Spec FAIL, Standards PASS, §19 Security FAIL. mind-spec fit answer ba25a12c (corr pr48-r2-fit). Operator ruling (§6, 2026-11-22T10:26:05+11:00): SEC-r2-1 to SEC-r2-4, fix all four. No spec amendment.

Round-1 items confirmed fixed: ST1, ST3, ST4, ST5, ST10-ST13, SEC1, SEC2, SEC3, SEC4, SP1 (except R2-1 below), SP2, SP3, SP4, SP6, SP7, SP8, SP11, SP12. Not fixed or partly: SP5 (R2-8), SP9 (R2-7), SP13 (R2-6, N1), ST2 (R2-4), ST7/ST8 (R2-5).

Code fixes (blocking)

  1. R2-1 (Spec SP-r2-1, deviation). prepare_command checks the P01 hold (recovery_transition.py:1639-1640) before _reserve (:1641). With a real finite bound and an untrusted clock or a MISMATCHED premise, the result is ineligible, not capacity_exceeded. Spec L235: check existing local capacity and the named reservation bounds first, against the same locked reconstructed state, without allocating candidate material; a genuine finite refusal keeps its result; only then report the P01-only hold, before any candidate reservation. L683: "Repeat with an actual finite bound, including when P01 evidence is also missing, and assert capacity_exceeded is never remapped." L402, L492. Fix: a non-allocating capacity check before the hold. Test: each of submit, replace, withdraw and dispose under no_headroom, once with an untrusted clock and once with a MISMATCHED premise, returns capacity_exceeded with no prepared row, spend or send.
  2. R2-2 (Security SEC-r2-4, Spec SP-r2-5; mind-spec clash). key_custody_insecure and key_custody_corrupt must not persist durable quarantine unconditionally, in reconcile (default durable outside _TRANSIENT_AUTHORITY, :1081-1091) or in resume (_CONTRADICTIONS, :2594+). Each fences disclosure, keeps evidence and charges, and needs secure custody plus exact proof through the configured resolver (spec L282, L314, L320, L588-593, L688-689; frozen P11:119). key_purpose_mismatch, key_custody_contradictory, envelope_binding_mismatch and envelope_replayed persist only when the fact contradicts the exact recorded current or prepared authority; the code name alone is not enough for an unbound input or an orphan (L306, L320, L591-593). Apply the same boundary in reconcile and resume. Tests: injected key-directory mode 0750 and 0755, ELOOP, and a wrong-size key file give derived quarantine, durable 0, then ready after the fault clears; for each of the four durable codes, one bound case persists and one unbound or orphan case does not.
  3. R2-3 (Standards probe (a); mind-spec clash). A family directory with mode 0755 at reopen persists queue.quarantined=1. Fix: fence on the unsafe directory (:296-304) as derived quarantine; once secure, the bounded sweep, exact authority authentication and verified retirement establish READY. A mode correction alone proves nothing and must not clear a persisted contradiction (L63, L282, L302-306, L314, L320; P01:7, P11:115). Test: 0755 at reopen gives derived, durable 0; after the fix the normal sweep reaches READY.
  4. R2-4 (Standards ST-r2-1, round-1 item 8 incomplete). custody.py:313-314 now catches FoundationError and re-raises invalid_prepared_state inside the handler, so the refusal keeps a FoundationError __context__ (base 0828c1ef at custody.py:260 did not catch it). Fails today: test_forged_settled_stage_refused[derived_stage], test_complete_prepared_row_over_cap_refused[load] under a context check. Fix: set a flag in the handler and raise after it; convert the remaining pytest.raises(FoundationError, match=) sites (about 25) to refused.
  5. R2-5 (Standards ST-r2-2). except (TypeError, ValueError, KeyError) at recovery_transition.py:1084-1085 (reconcile) and :2542-2543 (resume) persist durable quarantine and are untested (deleting both passes 489/489). A programming error must not write quarantined=1 (B2). Fix: remove them if the decoders already map to fixed codes; otherwise test each.

Test-only fixes (blocking)

  1. R2-6 (Spec SP-r2-2). producer_skips_registration patches only _capture; the frozen query obligation hook still registers for get. L719-720 require skipping both registrations. Patch both queue.service._capture and mcp_adapter.obligation (get and submit); the mutant _protected(...) -> slot.permit is None and slot.obligation is None must turn it red. Correct PR-body row 5.
  2. R2-7 (Spec SP-r2-3, round-1 SP9). The barrier-only recheck (or identity["quarantined"] in service.py recheck) is masked on list by the frozen queries.recheck. Parametrize the barrier-only case over replay and admit as well as list (L716-717, L431).
  3. R2-8 (Spec SP-r2-4, round-1 SP5). test_open_prepare_intent_excludes_new_handoff asserts inside the callback; the raise becomes the same quarantine document, so removing or self.store._prepare_intent is not None stays green. Record in the callback and assert after the request returns (L445).
  4. R2-9 (Security SEC-r2-1). The readback leg of B2 / L589 is untested: adding key_custody_io or key_unavailable to _CONTRADICTIONS passes 489. Arm the key fault after the send, at settled_c and at pointer_replaced, for both codes: durable 0 during the fault, then healthy completion with no reset, marker, cancel or extra send.
  5. R2-10 (Security SEC-r2-2). B3 / L229 ("a resolver or read I/O error is unavailable evidence") is untested at recovery_transition.py:971-973: skipping every staged-inspect FoundationError passes 489. Kill at prepared so complete C and M exist with no row; reopen with a resolver that fails only on the 2nd or 3rd key use: both files kept, charge prepared, durable 0; a healthy reopen retires them.

Should-fix

  1. R2-11 (Security SEC-r2-3). Charge release before retirement is unpinned (:996-998). Add unlink-failure and directory-sync-failure variants of the torn test; assert _custody_state.prepared while the fault holds (L229, L268).
  2. R2-12 (Spec SP-r2-6). store_transaction in _TRANSIENT_AUTHORITY is untested (removal survives 18). Add a fault-injected test, or state in the PR body why it is equivalent (L282).
  3. R2-13 (Standards ST-r2-4). Four any(error.args == (code,) ...) tables (:972, :1082, :1696, :2541) classify some codes one way in reconcile and the other in resume. Use one helper and one classification table; it is the natural place for R2-2.

Nits

  1. ST-r2-3: mcp_adapter.py:44-45 move the _Permit and Store imports out of the ReleaseSlot class body to a module-level TYPE_CHECKING block. ST5 nit: _released and _stock_transport() (:1850) define "stock" differently; use one. N1: PR-body row 2 names a redundant single term; name the pair or the initial_metadata comparison. N2: exercise SP10 for MARKER_PREPARED. N3: drive the SP9 barrier by custody_required or engine-not-READY (L716), not raw quarantined=1.

Accepted residuals (record in the PR body)

  • Partial activation: a parent-directory fsync EIO in activate leaves only custody.lock; a retry refuses initialization_unproven; derived quarantine, durable 0; READY needs operator-assisted recovery. mind-spec: accommodated, no clash (L305, L324-330; P04:27, P06). No adoption path in #33.
  • Key files have no st_nlink check in recovery_crypto._check_custody (outside the write set): carry to #47.
  • Non-load-bearing surviving mutants listed in the Security and Spec reports (defence in depth, equivalent or unreachable).

Probes you may reuse

Reviewer probes and mutant harnesses (copied out of /tmp): /Users/piers/src/_architect/dd469-minds-2026-11-16/r2-probes/ — test_r2_sec_probe.py (P11 kills M5, P12 kills M6, P7 kills M9), r2-spec-tools/ (mut.py and mutant sets), r2-st-tools/.

Round rules

  • Rework round 2 of the PR #48 merge gate, default caps.
  • Write set: the same 7 files. No spec change.
  • Inject faults; never chmod (CI runs as root on Linux).
  • Integrate on the new head with absolute .venv/bin paths (dev/stables#2333). Send the new head and the receipt as before.
# PR #48 round 2: guide dispositions Head cfae386, spec-v13 sha256 10b8a093, base 0828c1ef. Three fresh independent reviews: Spec FAIL, Standards PASS, §19 Security FAIL. mind-spec fit answer ba25a12c (corr pr48-r2-fit). Operator ruling (§6, 2026-11-22T10:26:05+11:00): SEC-r2-1 to SEC-r2-4, fix all four. No spec amendment. Round-1 items confirmed fixed: ST1, ST3, ST4, ST5, ST10-ST13, SEC1, SEC2, SEC3, SEC4, SP1 (except R2-1 below), SP2, SP3, SP4, SP6, SP7, SP8, SP11, SP12. Not fixed or partly: SP5 (R2-8), SP9 (R2-7), SP13 (R2-6, N1), ST2 (R2-4), ST7/ST8 (R2-5). ## Code fixes (blocking) 1. **R2-1 (Spec SP-r2-1, deviation).** prepare_command checks the P01 hold (recovery_transition.py:1639-1640) before `_reserve` (:1641). With a real finite bound and an untrusted clock or a MISMATCHED premise, the result is `ineligible`, not `capacity_exceeded`. Spec L235: check existing local capacity and the named reservation bounds first, against the same locked reconstructed state, without allocating candidate material; a genuine finite refusal keeps its result; only then report the P01-only hold, before any candidate reservation. L683: "Repeat with an actual finite bound, including when P01 evidence is also missing, and assert capacity_exceeded is never remapped." L402, L492. Fix: a non-allocating capacity check before the hold. Test: each of submit, replace, withdraw and dispose under no_headroom, once with an untrusted clock and once with a MISMATCHED premise, returns `capacity_exceeded` with no prepared row, spend or send. 2. **R2-2 (Security SEC-r2-4, Spec SP-r2-5; mind-spec clash).** `key_custody_insecure` and `key_custody_corrupt` must not persist durable quarantine unconditionally, in reconcile (default durable outside `_TRANSIENT_AUTHORITY`, :1081-1091) or in resume (`_CONTRADICTIONS`, :2594+). Each fences disclosure, keeps evidence and charges, and needs secure custody plus exact proof through the configured resolver (spec L282, L314, L320, L588-593, L688-689; frozen P11:119). `key_purpose_mismatch`, `key_custody_contradictory`, `envelope_binding_mismatch` and `envelope_replayed` persist only when the fact contradicts the exact recorded current or prepared authority; the code name alone is not enough for an unbound input or an orphan (L306, L320, L591-593). Apply the same boundary in reconcile and resume. Tests: injected key-directory mode 0750 and 0755, ELOOP, and a wrong-size key file give derived quarantine, durable 0, then ready after the fault clears; for each of the four durable codes, one bound case persists and one unbound or orphan case does not. 3. **R2-3 (Standards probe (a); mind-spec clash).** A family directory with mode 0755 at reopen persists `queue.quarantined=1`. Fix: fence on the unsafe directory (:296-304) as derived quarantine; once secure, the bounded sweep, exact authority authentication and verified retirement establish READY. A mode correction alone proves nothing and must not clear a persisted contradiction (L63, L282, L302-306, L314, L320; P01:7, P11:115). Test: 0755 at reopen gives derived, durable 0; after the fix the normal sweep reaches READY. 4. **R2-4 (Standards ST-r2-1, round-1 item 8 incomplete).** custody.py:313-314 now catches FoundationError and re-raises `invalid_prepared_state` inside the handler, so the refusal keeps a FoundationError `__context__` (base 0828c1ef at custody.py:260 did not catch it). Fails today: `test_forged_settled_stage_refused[derived_stage]`, `test_complete_prepared_row_over_cap_refused[load]` under a context check. Fix: set a flag in the handler and raise after it; convert the remaining `pytest.raises(FoundationError, match=)` sites (about 25) to `refused`. 5. **R2-5 (Standards ST-r2-2).** `except (TypeError, ValueError, KeyError)` at recovery_transition.py:1084-1085 (reconcile) and :2542-2543 (resume) persist durable quarantine and are untested (deleting both passes 489/489). A programming error must not write `quarantined=1` (B2). Fix: remove them if the decoders already map to fixed codes; otherwise test each. ## Test-only fixes (blocking) 6. **R2-6 (Spec SP-r2-2).** `producer_skips_registration` patches only `_capture`; the frozen query obligation hook still registers for `get`. L719-720 require skipping both registrations. Patch both `queue.service._capture` and `mcp_adapter.obligation` (get and submit); the mutant `_protected(...) -> slot.permit is None and slot.obligation is None` must turn it red. Correct PR-body row 5. 7. **R2-7 (Spec SP-r2-3, round-1 SP9).** The barrier-only recheck (`or identity["quarantined"]` in service.py recheck) is masked on `list` by the frozen `queries.recheck`. Parametrize the barrier-only case over replay and admit as well as list (L716-717, L431). 8. **R2-8 (Spec SP-r2-4, round-1 SP5).** `test_open_prepare_intent_excludes_new_handoff` asserts inside the callback; the raise becomes the same quarantine document, so removing `or self.store._prepare_intent is not None` stays green. Record in the callback and assert after the request returns (L445). 9. **R2-9 (Security SEC-r2-1).** The readback leg of B2 / L589 is untested: adding `key_custody_io` or `key_unavailable` to `_CONTRADICTIONS` passes 489. Arm the key fault after the send, at `settled_c` and at `pointer_replaced`, for both codes: durable 0 during the fault, then healthy completion with no reset, marker, cancel or extra send. 10. **R2-10 (Security SEC-r2-2).** B3 / L229 ("a resolver or read I/O error is unavailable evidence") is untested at recovery_transition.py:971-973: skipping every staged-inspect FoundationError passes 489. Kill at `prepared` so complete C and M exist with no row; reopen with a resolver that fails only on the 2nd or 3rd key use: both files kept, charge `prepared`, durable 0; a healthy reopen retires them. ## Should-fix 11. **R2-11 (Security SEC-r2-3).** Charge release before retirement is unpinned (:996-998). Add unlink-failure and directory-sync-failure variants of the torn test; assert `_custody_state.prepared` while the fault holds (L229, L268). 12. **R2-12 (Spec SP-r2-6).** `store_transaction` in `_TRANSIENT_AUTHORITY` is untested (removal survives 18). Add a fault-injected test, or state in the PR body why it is equivalent (L282). 13. **R2-13 (Standards ST-r2-4).** Four `any(error.args == (code,) ...)` tables (:972, :1082, :1696, :2541) classify some codes one way in reconcile and the other in resume. Use one helper and one classification table; it is the natural place for R2-2. ## Nits 14. ST-r2-3: mcp_adapter.py:44-45 move the `_Permit` and `Store` imports out of the `ReleaseSlot` class body to a module-level `TYPE_CHECKING` block. ST5 nit: `_released` and `_stock_transport()` (:1850) define "stock" differently; use one. N1: PR-body row 2 names a redundant single term; name the pair or the `initial_metadata` comparison. N2: exercise SP10 for MARKER_PREPARED. N3: drive the SP9 barrier by custody_required or engine-not-READY (L716), not raw `quarantined=1`. ## Accepted residuals (record in the PR body) - Partial activation: a parent-directory fsync EIO in `activate` leaves only `custody.lock`; a retry refuses `initialization_unproven`; derived quarantine, durable 0; READY needs operator-assisted recovery. mind-spec: accommodated, no clash (L305, L324-330; P04:27, P06). No adoption path in #33. - Key files have no `st_nlink` check in `recovery_crypto._check_custody` (outside the write set): carry to #47. - Non-load-bearing surviving mutants listed in the Security and Spec reports (defence in depth, equivalent or unreachable). ## Probes you may reuse Reviewer probes and mutant harnesses (copied out of /tmp): `/Users/piers/src/_architect/dd469-minds-2026-11-16/r2-probes/` — `test_r2_sec_probe.py` (P11 kills M5, P12 kills M6, P7 kills M9), `r2-spec-tools/` (mut.py and mutant sets), `r2-st-tools/`. ## Round rules - Rework round 2 of the PR #48 merge gate, default caps. - Write set: the same 7 files. No spec change. - Inject faults; never chmod (CI runs as root on Linux). - Integrate on the new head with absolute .venv/bin paths (dev/stables#2333). Send the new head and the receipt as before.
Collaborator

spec-verify-dispatch Half B for dev/attention-mind-mcp#33 dd-469-6-child-5-7-durable-transition-and-quarantine completed integration verify.

  • PR: #48
  • Branch: feat/svd-dev-attention-mind-mcp-33-dd-469-6-child-5-7-durable-d2b4c2a7
  • Commit: 0aad72bcb6
  • 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/76/1
  • Checks: required ci/woodpecker/pr/validation resolved pass by CI-wait poll
  • Warning: Remote CI ci/woodpecker/pr/validation is still pending; the runner must re-poll before merge.
  • Warning: The spec's Test Strategy names uv run commands; I ran the same pytest, ruff and mypy checks through the project venv by absolute path.
  • Warning: The CONV-23 reader-row check and branch comparison remain merge-gate checks. I confirmed the wire-readiness reader test exists, and the diff touches only the seven named files.
  • Warning: I did not read the PR comments or reviews in this invocation, so I make no claim about independent review.
  • CI wait: ci/woodpecker/pr/validation -> pass
  • Decision: merge disposition is the operator's; run ready (codex-svd ship --run-id 20261121T104247Z-d2b4c2a7 available to a permitted seat)

label flip withheld (--no-label-writes); gate label is the orchestrator's act — actor unset

spec-verify-dispatch Half B for dev/attention-mind-mcp#33 dd-469-6-child-5-7-durable-transition-and-quarantine completed integration verify. - PR: https://git.groupthink.asia/dev/attention-mind-mcp/pulls/48 - Branch: feat/svd-dev-attention-mind-mcp-33-dd-469-6-child-5-7-durable-d2b4c2a7 - Commit: 0aad72bcb6d29aa8e7e0b68bcdd4e800871f53db - 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/76/1 - Checks: required ci/woodpecker/pr/validation resolved pass by CI-wait poll - Warning: Remote CI ci/woodpecker/pr/validation is still pending; the runner must re-poll before merge. - Warning: The spec's Test Strategy names uv run commands; I ran the same pytest, ruff and mypy checks through the project venv by absolute path. - Warning: The CONV-23 reader-row check and branch comparison remain merge-gate checks. I confirmed the wire-readiness reader test exists, and the diff touches only the seven named files. - Warning: I did not read the PR comments or reviews in this invocation, so I make no claim about independent review. - CI wait: ci/woodpecker/pr/validation -> pass - Decision: merge disposition is the operator's; run ready (`codex-svd ship --run-id 20261121T104247Z-d2b4c2a7` available to a permitted seat) label flip withheld (--no-label-writes); gate label is the orchestrator's act — actor unset
Author
Member

PR #48 round 3: guide dispositions

Head 0aad72b, spec-v13 sha256 10b8a093, base 0828c1ef. Three fresh independent reviews: Spec FAIL, Standards FAIL, §19 Security FAIL. mind-spec fit answers ead5d026 (Q1, Q2), 2dc3f6a4 (Q3) and c00b96e7 (Q4), all on corr pr48-r3-fit. Operator ruling (§6, round 3): SEC-r3-1 to SEC-r3-5, fix all five. No spec amendment.

Round-2 items confirmed fixed by all lenses that checked them: R2-1 custody reservation order (ledger residue below as R3-3), R2-2, R2-3 (directory), R2-4, R2-5, R2-6, R2-7, R2-8, R2-9, R2-10, R2-11, R2-12, R2-13 (with the default change below as R3-2), N1, N2, N3 (one raw quarantined=1 left, nit 12). No round-1 regression. All 15 PR-body rule removals reproduced red.

Code fixes (blocking)

  1. R3-1 (Standards ST-r3-1, Spec SP-r3-4, Security SEC-r3-5; mind-spec ead5d026 Q1 clash). _file_info (recovery_transition.py:285-293) raises custody_file_unsafe, which is not in _AUTHORITY_FAULTS, so it defaults to CONTRADICTION. An injected mode 0644 or an external hard link on frontier.current, activation.record or frontier.record at reopen, or on an admission record during resume, persists quarantined=1, and the queue stays QUARANTINED after the fault clears. mind-spec rule:
    • The owned-file safety precheck alone (mode, uid, type, nlink, generic byte cap, and the short read at :388) gives a derived fence. Preserve evidence and charges. Once the file is safely inspectable, READY comes through the sweep, exact proof and verified retirement.
    • Durable only when evidence proves a conflict with exact recorded authority, for example a size or digest that differs from the independently bound value.
    • An external hard link on a staged C or M: keep the file and its charge, fence, and require proof of disposition of the linked material before retiring it. Same persistence rule.
    • custody_file_unsafe is overloaded (:285-293, :368-441, :648-684): classify at the call site, not by the code name. Content and name contradictions (non-canonical record or wrong class at :441, name that does not match the digest at :528 and :531) stay durable.
    • Tests (inject through os.fstat/os.stat, never chmod): mode 0644 and a hard link on each of the three owned files at reopen and on an admission record during resume give derived quarantine with durable 0, before and after reopen, then READY after the fault clears. Add a durable_quarantine assertion to test_custody_rejects_owned_file_with_external_hard_link (tests:4680-4692). A staged C or M hard link keeps the file and the prepared charge until disposition is proved. One proved size or digest conflict persists durable 1 across reopen.
    • Unchanged and recorded in the PR body: a planted unknown name such as admissions/stray.record persists durable 1 (L229, L304).
  2. R3-2 (Standards ST-r3-2; mind-spec ead5d026 Q2 clash). _authority_fault (:2620-2623) sends every unlisted code to CONTRADICTION; about 150 codes raisable in reconcile and resume are unlisted. Fix: an explicit durable list (proved contradictions, the torn-envelope set, and the exhausted-continuation terminal case) with a derived fallback, or typed errors. Annotate the table as Mapping[str, _AuthorityFault] or wrap it in MappingProxyType, and add a one-line comment naming the default (Standards nit ST-r3-4). Test: an unlisted code raised in reconcile and in resume gives derived quarantine with durable 0.
  3. R3-3 (Spec SP-r3-1; mind-spec 2dc3f6a4 Q3 accommodate). The authenticated ledger bounds are checked in _compose (:1666), after the P01 hold (:1654-1657). With lifetime_admitted=65,536 and a changed submit: an untrusted clock gives ineligible; missing evidence with a failing refresh gives ineligible after 4 provider calls; a successful refresh gives capacity_exceeded only after 4 refresh calls. Spec L235, L402, L683; refresh limit L403-404. mind-spec conditions:
    • Precheck the ledger bounds before the P01 hold. A real finite refusal returns capacity_exceeded whether P01 is fresh, missing or held by an untrusted observation clock, with no command-triggered observation refresh and no mutation request.
    • Input: the bounded frontier.record ledger reconciled to the exact current authority under the custody lock. Use that attempt's checked ledger, or recheck its binding and freshness against the same exact frontier and local counters. A parsed or HMAC-verified stale header alone is not enough (L213, L235, L306-308; :920-949, :1078-1090). Missing or contradictory authority still follows the disclosure barrier.
    • Preserve the frozen token and deadline, authorization, revision and replay precedence, including when a clock failure prevents proving one of those checks (L235, L401-404, L683).
    • Check the actual command delta with the same budget rules as _compose (:1584-1608, :1648-1666; recovery_budget.py:248-256, :288-333). The lifetime increment applies only to a changed submit: do not refuse a command that adds no occurrence because lifetime is saturated. Apply the correct live-byte delta, revision and command or reserve charges for the real operation.
    • Use only bounded local inputs (canonical row lengths if needed). The precheck must not open full F, build C or M, make a slot durable or record spend. Keep the later exact F/C/M checks and the reservation-before-open and build ordering (L235-242). A refresh re-entry repeats the capacity and binding checks against the then-current state (L404). A true P01-only hold still follows the one-refresh rule.
    • The pre-request driver for an existing durable transition keeps its own authority (L275, L400).
    • Tests: the four probe cases above (fresh, untrusted clock, missing with failing refresh, missing with successful refresh) all give capacity_exceeded with 0 provider calls and no prepared row, spend or send. Add a 512-LIVE or command-limit case for a non-submit operation. Add a saturated-lifetime case where a command that adds no occurrence is not refused. Probe: r3-spec-probes/test_r3_spec_probe.py::test_ledger_lifetime_cap_vs_p01_hold.
  4. R3-4 (Security SEC-r3-3, round-2 regression, fails closed; mind-spec c00b96e7 Q4). At cfae386, reconcile treated only custody_byte_limit and admission_limit as transient among the bound codes. At 0aad72b every CAPACITY code in _AUTHORITY_FAULTS (:2597-2617) is non-persisting in _contradicts_authority (:2626). Probe Q1: an authenticated, digest-bound current or prepared envelope that raises frontier_byte_limit, plaintext_too_large, record_byte_limit or counter_overflow at open gives durable 0 at 0aad72b and durable 1 at cfae386; control key_purpose_mismatch gives 1 at both. Spec L282, L306, L320. Reachable only by an envelope sealed out of profile. mind-spec accommodates durable quarantine for a proved structural violation in the exact recorded current or prepared frontier (L225, L282, L306-308, L320, L688-689; frozen P02:13-17, P09:97-103, P11:117). Rules:
    • Durable when an actual fixed-cap or fixed-format validator rejects bytes whose full raw digest was first bound as the exact expected authority. Examples: a verified payload over a fixed decoded-record or frontier cap (recovery_frontier.py:310-315, :341-346, :380-386, :410-415, :452-471); a plaintext_too_large framing rejection before AEAD (recovery_crypto.py:684-691, :727-745). Keep evidence and charges; recovery needs verified authorized #35 repair.
    • Keep the early bound. Never decrypt over the cap to establish it.
    • Map with validator provenance, not from the error string in the _open_recorded_frontier wrapper (:902-918): the resolver can forward a FoundationError string through the same open path (recovery_crypto.py:578-594, :700-707). Typed errors or a mapping at each validator raise site meet this.
    • counter_overflow as raised today is the attempted increment of a valid MAX_COUNTER ledger (recovery_budget.py:160-183, :248-256). That stays a capacity refusal. Only a recorded counter that is itself out of range is inconsistent and durable when proved.
    • Current local workspace, aggregate custody_byte_limit and admission_limit ceilings stay derived while the obstacle persists. A valid ledger at its maximum is distinct from invalid recorded content, even when a proposed successor would overflow.
    • Tests: drive each validator with real out-of-profile recorded bytes (sealed with the test key, digest bound as current and as prepared), not by patching frontier.open_frontier. Expect durable 1 across reopen. Controls: a valid MAX_COUNTER ledger plus a changed submit gives capacity_exceeded with durable 0; a resolver that forwards a bound-code FoundationError string gives derived quarantine with durable 0. Security probe Q1 (r3-probes/test_r3_sec_probe.py:45-68) shows the classifier only.

Test-only fixes (blocking)

  1. R3-5 (Security SEC-r3-1, Spec SP-r3-3 and SP-r3-5). No test exercises envelope_unauthenticated. test_wrong_key_or_corrupt_readback_is_durable_quarantine[envelope_unauthenticated] (tests:4975-5018) actually raises key_mismatch, because the key-commitment check runs before decryption (recovery_crypto.py:700-714). Removing the TORN_ENVELOPE mapping (:2596) survives all 529 cases. Fix:
    • Readback leg (L591-593, L781): inject envelope_unauthenticated (or InvalidTag) after the digest and commitment checks at the open of a recorded digest, as test_frontier_contradiction_requires_recorded_authority does. Assert durable 1 across reopen. Relabel the current case as key_mismatch and correct the PR-body ID map.
    • Torn leg (L242, bound B3): add a full-length staged M with a flipped last byte to test_torn_prepared_file_retires_before_ready (kill at prepared). Expect READY, durable 0 and an empty family. Probe: r3-spec-probes/test_r3_spec_probe.py::test_full_length_unauthenticated_orphan_retires.
  2. R3-6 (Spec SP-r3-2, Security SEC-r3-2). custody_ownership_unproved (:2580, raised at :2396 and :2486) is unpinned: making it durable survives every transition case. Every stock S3 command ends in this state until #47 lands. Assert durable_quarantine(queue) == 0, before and after reopen, in _exercise_stock_command_worker_exit and _exercise_test_transport_without_ownership_proof (L225, L229, L245, L282, L704).

Should-fix (fix this round)

  1. R3-7 (Security SEC-r3-4). Mapping five durable codes to derived at once over the whole test file fails 1 of 529, attributed to invalid_prepared_state. pass_exhausted, marker_certificate_invalid, lifetime_regression and custody_file_unsafe survive, though L320 names several. Add a durable-across-reopen parametrization for each durable code that stays on the R3-2 list; for custody_file_unsafe use a proved-conflict call site from R3-1.
  2. R3-8 (Spec SP-r3-6, Security nit). Weakening _can_prove_unsent to isinstance(transport, storage.S3Transport) survives all 529 cases. Add an S3Transport subclass with an overridden execute that returns UNSENT; assert the result is not treated as no-dispatch proof (L261, L610).

Nits

  1. ST-r3-3: mcp_adapter.py:51-55. Move TYPE_CHECKING into the line-12 typing import and the if TYPE_CHECKING: block up to the import section; drop the noqa: E402.
  2. ST-r3-4: covered by R3-2.
  3. ST-r3-5: status() (:1256) and _refresh (:1548) still catch (FoundationError, OSError, TypeError, ValueError, KeyError). The Standards fuzz (1,356 wrong-type mutations, 0 raw escapes) shows the decoders already map malformed input to fixed codes. Narrow them to (FoundationError, OSError) or state why not.
  4. Spec nit: served_release_rechecks…[barrier_only] still sets raw quarantined=1 on list (L716).

Accepted residuals (record in the PR body)

  • Round-2 residuals stand: partial activation, the key-file nlink carry to #47, the accepted survivors.
  • Non-load-bearing round-3 survivors: removing the digest check in _open_recorded_frontier is equivalent (open_envelope checks the digest first); capacity after staging is unreachable (the row cap precedes staging_started); hold_always_refreshable is refused by _refresh (:1455-1461); torn_not_durable on crash-reachable recorded paths is closed by R3-5.

Probes you may reuse

All in /Users/piers/src/_architect/dd469-minds-2026-11-16:

  • r3-probes/standards/test_r3_st_probe.py (R3-1 file faults)
  • r3-spec-probes/test_r3_spec_probe.py (R3-1, R3-3, R3-5, R3-6)
  • r3-probes/test_r3_sec_probe*.py (R3-4 probe Q1, R3-5, R3-6, R3-7)

Hold pushes until this batch is complete; then report the new head on corr pr48-r3.

# PR #48 round 3: guide dispositions Head 0aad72b, spec-v13 sha256 10b8a093, base 0828c1ef. Three fresh independent reviews: Spec FAIL, Standards FAIL, §19 Security FAIL. mind-spec fit answers ead5d026 (Q1, Q2), 2dc3f6a4 (Q3) and c00b96e7 (Q4), all on corr pr48-r3-fit. Operator ruling (§6, round 3): SEC-r3-1 to SEC-r3-5, fix all five. No spec amendment. Round-2 items confirmed fixed by all lenses that checked them: R2-1 custody reservation order (ledger residue below as R3-3), R2-2, R2-3 (directory), R2-4, R2-5, R2-6, R2-7, R2-8, R2-9, R2-10, R2-11, R2-12, R2-13 (with the default change below as R3-2), N1, N2, N3 (one raw `quarantined=1` left, nit 12). No round-1 regression. All 15 PR-body rule removals reproduced red. ## Code fixes (blocking) 1. **R3-1 (Standards ST-r3-1, Spec SP-r3-4, Security SEC-r3-5; mind-spec ead5d026 Q1 clash).** `_file_info` (recovery_transition.py:285-293) raises `custody_file_unsafe`, which is not in `_AUTHORITY_FAULTS`, so it defaults to CONTRADICTION. An injected mode 0644 or an external hard link on `frontier.current`, `activation.record` or `frontier.record` at reopen, or on an admission record during resume, persists `quarantined=1`, and the queue stays QUARANTINED after the fault clears. mind-spec rule: - The owned-file safety precheck alone (mode, uid, type, nlink, generic byte cap, and the short read at :388) gives a derived fence. Preserve evidence and charges. Once the file is safely inspectable, READY comes through the sweep, exact proof and verified retirement. - Durable only when evidence proves a conflict with exact recorded authority, for example a size or digest that differs from the independently bound value. - An external hard link on a staged C or M: keep the file and its charge, fence, and require proof of disposition of the linked material before retiring it. Same persistence rule. - `custody_file_unsafe` is overloaded (:285-293, :368-441, :648-684): classify at the call site, not by the code name. Content and name contradictions (non-canonical record or wrong class at :441, name that does not match the digest at :528 and :531) stay durable. - Tests (inject through `os.fstat`/`os.stat`, never chmod): mode 0644 and a hard link on each of the three owned files at reopen and on an admission record during resume give derived quarantine with durable 0, before and after reopen, then READY after the fault clears. Add a `durable_quarantine` assertion to `test_custody_rejects_owned_file_with_external_hard_link` (tests:4680-4692). A staged C or M hard link keeps the file and the `prepared` charge until disposition is proved. One proved size or digest conflict persists durable 1 across reopen. - Unchanged and recorded in the PR body: a planted unknown name such as `admissions/stray.record` persists durable 1 (L229, L304). 2. **R3-2 (Standards ST-r3-2; mind-spec ead5d026 Q2 clash).** `_authority_fault` (:2620-2623) sends every unlisted code to CONTRADICTION; about 150 codes raisable in reconcile and resume are unlisted. Fix: an explicit durable list (proved contradictions, the torn-envelope set, and the exhausted-continuation terminal case) with a derived fallback, or typed errors. Annotate the table as `Mapping[str, _AuthorityFault]` or wrap it in `MappingProxyType`, and add a one-line comment naming the default (Standards nit ST-r3-4). Test: an unlisted code raised in reconcile and in resume gives derived quarantine with durable 0. 3. **R3-3 (Spec SP-r3-1; mind-spec 2dc3f6a4 Q3 accommodate).** The authenticated ledger bounds are checked in `_compose` (:1666), after the P01 hold (:1654-1657). With `lifetime_admitted=65,536` and a changed submit: an untrusted clock gives `ineligible`; missing evidence with a failing refresh gives `ineligible` after 4 provider calls; a successful refresh gives `capacity_exceeded` only after 4 refresh calls. Spec L235, L402, L683; refresh limit L403-404. mind-spec conditions: - Precheck the ledger bounds before the P01 hold. A real finite refusal returns `capacity_exceeded` whether P01 is fresh, missing or held by an untrusted observation clock, with no command-triggered observation refresh and no mutation request. - Input: the bounded `frontier.record` ledger reconciled to the exact current authority under the custody lock. Use that attempt's checked ledger, or recheck its binding and freshness against the same exact frontier and local counters. A parsed or HMAC-verified stale header alone is not enough (L213, L235, L306-308; :920-949, :1078-1090). Missing or contradictory authority still follows the disclosure barrier. - Preserve the frozen token and deadline, authorization, revision and replay precedence, including when a clock failure prevents proving one of those checks (L235, L401-404, L683). - Check the actual command delta with the same budget rules as `_compose` (:1584-1608, :1648-1666; recovery_budget.py:248-256, :288-333). The lifetime increment applies only to a changed submit: do not refuse a command that adds no occurrence because lifetime is saturated. Apply the correct live-byte delta, revision and command or reserve charges for the real operation. - Use only bounded local inputs (canonical row lengths if needed). The precheck must not open full F, build C or M, make a slot durable or record spend. Keep the later exact F/C/M checks and the reservation-before-open and build ordering (L235-242). A refresh re-entry repeats the capacity and binding checks against the then-current state (L404). A true P01-only hold still follows the one-refresh rule. - The pre-request driver for an existing durable transition keeps its own authority (L275, L400). - Tests: the four probe cases above (fresh, untrusted clock, missing with failing refresh, missing with successful refresh) all give `capacity_exceeded` with 0 provider calls and no prepared row, spend or send. Add a 512-LIVE or command-limit case for a non-submit operation. Add a saturated-lifetime case where a command that adds no occurrence is not refused. Probe: `r3-spec-probes/test_r3_spec_probe.py::test_ledger_lifetime_cap_vs_p01_hold`. 4. **R3-4 (Security SEC-r3-3, round-2 regression, fails closed; mind-spec c00b96e7 Q4).** At cfae386, reconcile treated only `custody_byte_limit` and `admission_limit` as transient among the bound codes. At 0aad72b every CAPACITY code in `_AUTHORITY_FAULTS` (:2597-2617) is non-persisting in `_contradicts_authority` (:2626). Probe Q1: an authenticated, digest-bound current or prepared envelope that raises `frontier_byte_limit`, `plaintext_too_large`, `record_byte_limit` or `counter_overflow` at open gives durable 0 at 0aad72b and durable 1 at cfae386; control `key_purpose_mismatch` gives 1 at both. Spec L282, L306, L320. Reachable only by an envelope sealed out of profile. mind-spec accommodates durable quarantine for a proved structural violation in the exact recorded current or prepared frontier (L225, L282, L306-308, L320, L688-689; frozen P02:13-17, P09:97-103, P11:117). Rules: - Durable when an actual fixed-cap or fixed-format validator rejects bytes whose full raw digest was first bound as the exact expected authority. Examples: a verified payload over a fixed decoded-record or frontier cap (recovery_frontier.py:310-315, :341-346, :380-386, :410-415, :452-471); a `plaintext_too_large` framing rejection before AEAD (recovery_crypto.py:684-691, :727-745). Keep evidence and charges; recovery needs verified authorized #35 repair. - Keep the early bound. Never decrypt over the cap to establish it. - Map with validator provenance, not from the error string in the `_open_recorded_frontier` wrapper (:902-918): the resolver can forward a FoundationError string through the same open path (recovery_crypto.py:578-594, :700-707). Typed errors or a mapping at each validator raise site meet this. - `counter_overflow` as raised today is the attempted increment of a valid MAX_COUNTER ledger (recovery_budget.py:160-183, :248-256). That stays a capacity refusal. Only a recorded counter that is itself out of range is inconsistent and durable when proved. - Current local workspace, aggregate `custody_byte_limit` and `admission_limit` ceilings stay derived while the obstacle persists. A valid ledger at its maximum is distinct from invalid recorded content, even when a proposed successor would overflow. - Tests: drive each validator with real out-of-profile recorded bytes (sealed with the test key, digest bound as current and as prepared), not by patching `frontier.open_frontier`. Expect durable 1 across reopen. Controls: a valid MAX_COUNTER ledger plus a changed submit gives `capacity_exceeded` with durable 0; a resolver that forwards a bound-code FoundationError string gives derived quarantine with durable 0. Security probe Q1 (`r3-probes/test_r3_sec_probe.py:45-68`) shows the classifier only. ## Test-only fixes (blocking) 5. **R3-5 (Security SEC-r3-1, Spec SP-r3-3 and SP-r3-5).** No test exercises `envelope_unauthenticated`. `test_wrong_key_or_corrupt_readback_is_durable_quarantine[envelope_unauthenticated]` (tests:4975-5018) actually raises `key_mismatch`, because the key-commitment check runs before decryption (recovery_crypto.py:700-714). Removing the TORN_ENVELOPE mapping (:2596) survives all 529 cases. Fix: - Readback leg (L591-593, L781): inject `envelope_unauthenticated` (or `InvalidTag`) after the digest and commitment checks at the open of a recorded digest, as `test_frontier_contradiction_requires_recorded_authority` does. Assert durable 1 across reopen. Relabel the current case as `key_mismatch` and correct the PR-body ID map. - Torn leg (L242, bound B3): add a full-length staged M with a flipped last byte to `test_torn_prepared_file_retires_before_ready` (kill at `prepared`). Expect READY, durable 0 and an empty family. Probe: `r3-spec-probes/test_r3_spec_probe.py::test_full_length_unauthenticated_orphan_retires`. 6. **R3-6 (Spec SP-r3-2, Security SEC-r3-2).** `custody_ownership_unproved` (:2580, raised at :2396 and :2486) is unpinned: making it durable survives every transition case. Every stock S3 command ends in this state until #47 lands. Assert `durable_quarantine(queue) == 0`, before and after reopen, in `_exercise_stock_command_worker_exit` and `_exercise_test_transport_without_ownership_proof` (L225, L229, L245, L282, L704). ## Should-fix (fix this round) 7. **R3-7 (Security SEC-r3-4).** Mapping five durable codes to derived at once over the whole test file fails 1 of 529, attributed to `invalid_prepared_state`. `pass_exhausted`, `marker_certificate_invalid`, `lifetime_regression` and `custody_file_unsafe` survive, though L320 names several. Add a durable-across-reopen parametrization for each durable code that stays on the R3-2 list; for `custody_file_unsafe` use a proved-conflict call site from R3-1. 8. **R3-8 (Spec SP-r3-6, Security nit).** Weakening `_can_prove_unsent` to `isinstance(transport, storage.S3Transport)` survives all 529 cases. Add an S3Transport subclass with an overridden `execute` that returns UNSENT; assert the result is not treated as no-dispatch proof (L261, L610). ## Nits 9. ST-r3-3: mcp_adapter.py:51-55. Move `TYPE_CHECKING` into the line-12 `typing` import and the `if TYPE_CHECKING:` block up to the import section; drop the `noqa: E402`. 10. ST-r3-4: covered by R3-2. 11. ST-r3-5: `status()` (:1256) and `_refresh` (:1548) still catch `(FoundationError, OSError, TypeError, ValueError, KeyError)`. The Standards fuzz (1,356 wrong-type mutations, 0 raw escapes) shows the decoders already map malformed input to fixed codes. Narrow them to `(FoundationError, OSError)` or state why not. 12. Spec nit: `served_release_rechecks…[barrier_only]` still sets raw `quarantined=1` on `list` (L716). ## Accepted residuals (record in the PR body) - Round-2 residuals stand: partial activation, the key-file nlink carry to #47, the accepted survivors. - Non-load-bearing round-3 survivors: removing the digest check in `_open_recorded_frontier` is equivalent (`open_envelope` checks the digest first); capacity after staging is unreachable (the row cap precedes `staging_started`); `hold_always_refreshable` is refused by `_refresh` (:1455-1461); `torn_not_durable` on crash-reachable recorded paths is closed by R3-5. ## Probes you may reuse All in /Users/piers/src/_architect/dd469-minds-2026-11-16: - `r3-probes/standards/test_r3_st_probe.py` (R3-1 file faults) - `r3-spec-probes/test_r3_spec_probe.py` (R3-1, R3-3, R3-5, R3-6) - `r3-probes/test_r3_sec_probe*.py` (R3-4 probe Q1, R3-5, R3-6, R3-7) Hold pushes until this batch is complete; then report the new head on corr pr48-r3.
Collaborator

spec-verify-dispatch Half B for dev/attention-mind-mcp#33 dd-469-6-child-5-7-durable-transition-and-quarantine completed integration verify.

  • PR: #48
  • Branch: feat/svd-dev-attention-mind-mcp-33-dd-469-6-child-5-7-durable-d2b4c2a7
  • Commit: 502620ad65
  • 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/77/1
  • Checks: required ci/woodpecker/pr/validation resolved pass by CI-wait poll
  • Warning: Remote check ci/woodpecker/pr/validation is still pending on head 502620ad65; the runner re-polls it.
  • Warning: The CONV-23 reader-row check was verified only through test_wire_readiness_reader_accepts_only_ready (passes). The coding subagent deferred the branch comparison to the merge gate.
  • Warning: The spec has no Agent Adjustments section. Every scenario row maps to an existing test that collects under its specified -k filter. I spot-checked parametrized filters with collect-only; the full unit run of the new file collected 586 tests.
  • Warning: I did not read PR comments or reviews, so I make no claim about an independent reviewer.
  • CI wait: ci/woodpecker/pr/validation -> pass
  • Decision: merge disposition is the operator's; run ready (codex-svd ship --run-id 20261121T104247Z-d2b4c2a7 available to a permitted seat)

label flip withheld (--no-label-writes); gate label is the orchestrator's act — actor unset

spec-verify-dispatch Half B for dev/attention-mind-mcp#33 dd-469-6-child-5-7-durable-transition-and-quarantine completed integration verify. - PR: https://git.groupthink.asia/dev/attention-mind-mcp/pulls/48 - Branch: feat/svd-dev-attention-mind-mcp-33-dd-469-6-child-5-7-durable-d2b4c2a7 - Commit: 502620ad65c5771bbfe406b8a79ad59556336e1e - 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/77/1 - Checks: required ci/woodpecker/pr/validation resolved pass by CI-wait poll - Warning: Remote check ci/woodpecker/pr/validation is still pending on head 502620ad65c5; the runner re-polls it. - Warning: The CONV-23 reader-row check was verified only through test_wire_readiness_reader_accepts_only_ready (passes). The coding subagent deferred the branch comparison to the merge gate. - Warning: The spec has no Agent Adjustments section. Every scenario row maps to an existing test that collects under its specified -k filter. I spot-checked parametrized filters with collect-only; the full unit run of the new file collected 586 tests. - Warning: I did not read PR comments or reviews, so I make no claim about an independent reviewer. - CI wait: ci/woodpecker/pr/validation -> pass - Decision: merge disposition is the operator's; run ready (`codex-svd ship --run-id 20261121T104247Z-d2b4c2a7` available to a permitted seat) label flip withheld (--no-label-writes); gate label is the orchestrator's act — actor unset
Author
Member

PR #48 round 4: guide dispositions

Head 502620a, spec-v13 sha256 10b8a093, base 0828c1ef. Three fresh independent reviews: Spec FAIL, Standards PASS, §19 Security FAIL. No reviewer found a live defect in the round-3 fixes; most of this round is missing tests, plus two contract clashes that mind-spec ruled. mind-spec fit answer ed6241ec (corr pr48-r4-fit). Operator ruling (§6, round 4): SEC-r4-1 to SEC-r4-5, fix all five; SEC-r4-4 and SEC-r4-5 as code fixes per ed6241ec. No spec amendment.

Round-3 items confirmed fixed: R3-2, R3-4, R3-5, R3-6, R3-7, R3-8, nits 9 to 12. R3-1 and R3-3 are correct in code but partly pinned (items 3 to 5 below). No earlier-round regression except R2-4 at four new raise sites (item 6). Guide red-side check: the local-counter mutant (item 3) survives all 586 cases of tests/test_recovery_transition.py.

Code fixes (blocking; mind-spec ed6241ec clashes)

  1. R4-1 (Security SEC-r4-4; ed6241ec Q1 clash). _OpeningKeys (recovery_transition.py:2650-2675) forwards resolver-raised key_mismatch, key_purpose_mismatch and key_custody_contradictory. key_mismatch maps straight to CONTRADICTION (:2721). The other two go through NEEDS_BINDING and are promoted on the recorded-open path (:932-955, :2754-2755). Security probe P1: a resolver raising any of the three while opening the bound current frontier gives durable 1, kept after reopen with the good key. mind-spec rule:
    • A resolver forwarding a plain FoundationError with one of these strings proves no comparison. Fence disclosure, keep evidence and charges, and hold derived until the configured resolver can establish exact proof (L282, L306, L314, L320, L588-593, L688-689; frozen P06:81, P11:119).
    • Drop forwarded key_mismatch from the pass-through. Keep the opener's own post-return key-ID and commitment checks (recovery_crypto.py:587-592, :700-703), which can prove a mismatch on a named digest.
    • Same evidence rule for the other two. These can stay durable when tied to the recorded authority: a returned key with the wrong purpose; KeyRing's lookup of the exact required ID with a different stored purpose (:186-194, :587-590); KeyCustody's comparison of two different secure copies for the same purpose and ID (:333-345). Preserve validator provenance with an internal result type or a check at the source. A reason-string allowlist for an arbitrary callable cannot tell these apart from P1.
    • The plaintext_too_large string check at :951 relies on this normalization ("only the frame validator can report this"). Keep it sound after the change, or move it to the same provenance mechanism.
    • Tests: each of the three codes raised as a plain error by a test resolver gives derived quarantine, durable 0, then READY with the good key (extend test_forwarded_resolver_code_is_not_recorded_evidence). One real proved case for each durable source (opener commitment mismatch on a bound digest, KeyRing wrong purpose, KeyCustody contradictory copies) persists durable 1 across reopen. Probe: r4-probes/security/test_r4_sec_probe.py (P1).
  2. R4-2 (Security SEC-r4-5; ed6241ec Q2 clash; predates round 3). A rowless prepared/<T>.c sealed under a second key id, opened through inspect_frontier (:1029-1035), gives durable 1 when the resolver returns wrong material for that id (Security probe P2). The inspection hash is not an independently recorded expected digest (recovery_crypto.py:700-703, :756-764; :1015-1035). mind-spec rule:
    • A non-torn failure that leaves an unbound orphan unproved gets a derived fence. Keep the file and its full charge until exclusive ownership, exact binding and durable retirement are verified.
    • No release, no retirement by assumption and no fresh dispatch follows from this error.
    • Independently proved contradiction with recorded recovery authority still persists. Keep the activation-record-bound path at :1024-1028 as it is.
    • Spec L229, L282, L304-306, L314, L320, L516-518, L688-689; frozen P06:73-74, :79-81, P11:115.
    • Tests: P2 cases (exact key retires to READY; wrong material, key_purpose_mismatch and key_unavailable each give derived 0 with the file and prepared charge kept across reopen, then READY once the fault clears). One activation-bound mismatch case stays durable 1.

Test-only fixes (blocking)

  1. R4-3 (Security SEC-r4-1, Spec SP-r4-3 and SP-r4-4). The R3-3 rechecks in _command_ledger are unpinned:
    • local counters (:1648, checked.local != (t.expected_mutation, t.expected_lifetime)): the mutant survives all 586 transition cases (guide run). Under it, mutation_generation drift after a READY reconcile lets the command send a PUT and commit ok; lifetime_admitted drift sends a PUT, then durable quarantine (Security P3, Spec P5).
    • current size (:1655-1657): the mutant survives 66 cases; the later _open_ref check catches it only after the reservation.
    • Binding: mind-spec 2dc3f6a4 ("recheck … against the same exact frontier and local counters"); L213, L235, L306-308.
    • Tests: drift each of mutation_generation and lifetime_admitted, and resize frontier.current, after READY and before a command. Each gives quarantined with no provider call, no prepared row and no spend. Probes: r4-probes/security/test_r4_sec_probe.py (P3), r4-probes/spec/test_r4_spec_probe.py (P5).
  2. R4-4 (Spec SP-r4-1, Security SEC-r4-2, Standards ST-r4-2 derived side). The uid, file-type and byte-cap prechecks in _file_info (:297-305) and the short read (:399-400) are not pinned as derived. Mutants making them durable survive 62 cases; the short-read mutant survives all 586 (Standards run). Binding: ead5d026 Q1 names mode, uid, file type, link count, the generic byte cap and the short read as precheck faults. Tests: add stat-uid, stat-type, stat-size and short_read to test_owned_file_safety_is_derived_until_proof (tests:6651). Inject the short read through the stream read or fdopen, never chmod. Probes: r4-probes/spec/test_r4_spec_probe.py (P1, P2).

Should-fix (fix this round)

  1. R4-5 (Spec SP-r4-2, Security SEC-r4-3, Standards ST-r4-2). Seven proved-conflict sites are not pinned as durable: :452, :548, :551, :691, :699, :721 and :802. Demoting all seven at once survives all 586 cases (Standards C01). Only :458 and :710 are pinned. The R3-1 disposition and the PR body say these stay durable. Add one case per site to test_proved_custody_conflict_survives_reopen (tests:6939), each durable 1 across reopen.
  2. R4-6 (Standards ST-r4-1; R2-4 regression). Four raise _RecordedConflict(...) from None inside except handlers (:452, :952, :954, :960) still carry a FoundationError __context__; from None only suppresses display. Set a local in the handler and raise after the try, as R2-4 did. Test: extend the refused-style context assertion to these sites. Probe: r4-probes/standards/test_r4_st_probe.py::test_probe_new_handler_raises_carry_context.

Nits

  1. SP-r4-5: the __func__ checks in _can_prove_unsent (:1941-1942) are unpinned; add an instance-patched execute case, or state in the PR body why it is out of reach.
  2. ST-r4-3: classification lives in four places (_AUTHORITY_FAULTS, _RecordedConflict, _RECORDED_FORMAT_FAULTS, _KEY_RESOLUTION_FAULTS). Use one _code() helper for the repeated args guard, add a comment at the table that the typed error takes precedence, and drop the redundant integer_out_of_range from the format set.
  3. ST-r4-4: _open_recorded_frontier (:937-957) copies frontier.open_frontier's binding construction and calls the private frontier._opened. Add a comment naming why, or expose a public helper (outside the write set: comment only).
  4. ST-r4-5: _Files.document (:449-452) renames record_byte_limit to custody_file_unsafe; its sibling decode errors keep their own codes. Keep one style.
  5. ST-r4-6: comment that prepare_command calls _charge_command (:1718) only for its raise; rename _sweep or note that it returns the activation.

Record in the PR body

  • Round-2 and round-3 residuals stand.
  • Spec "unverified": after a CAPACITY failure that follows _custody_state = reserved, an in-memory reservation may outlive the request until the next reconcile. It over-counts (fails closed) and predates round 3. Check it; fix it if trivial, otherwise record it as a residual.
  • Equivalent survivors: integer_out_of_range already CONTRADICTION; frontier_byte_limit shares the envelope cap that fires first; counter_overflow is never raised during decode; seal-side plaintext_too_large follows a same-cap check.

Probes you may reuse

All in /Users/piers/src/_architect/dd469-minds-2026-11-16/r4-probes/: security/test_r4_sec_probe.py (P1 to P3), spec/test_r4_spec_probe.py (P1 to P5), standards/test_r4_st_probe.py.

Hold pushes until this batch is complete; then report the new head on corr pr48-r4.

# PR #48 round 4: guide dispositions Head 502620a, spec-v13 sha256 10b8a093, base 0828c1ef. Three fresh independent reviews: Spec FAIL, Standards PASS, §19 Security FAIL. No reviewer found a live defect in the round-3 fixes; most of this round is missing tests, plus two contract clashes that mind-spec ruled. mind-spec fit answer ed6241ec (corr pr48-r4-fit). Operator ruling (§6, round 4): SEC-r4-1 to SEC-r4-5, fix all five; SEC-r4-4 and SEC-r4-5 as code fixes per ed6241ec. No spec amendment. Round-3 items confirmed fixed: R3-2, R3-4, R3-5, R3-6, R3-7, R3-8, nits 9 to 12. R3-1 and R3-3 are correct in code but partly pinned (items 3 to 5 below). No earlier-round regression except R2-4 at four new raise sites (item 6). Guide red-side check: the local-counter mutant (item 3) survives all 586 cases of tests/test_recovery_transition.py. ## Code fixes (blocking; mind-spec ed6241ec clashes) 1. **R4-1 (Security SEC-r4-4; ed6241ec Q1 clash).** `_OpeningKeys` (recovery_transition.py:2650-2675) forwards resolver-raised `key_mismatch`, `key_purpose_mismatch` and `key_custody_contradictory`. `key_mismatch` maps straight to CONTRADICTION (:2721). The other two go through NEEDS_BINDING and are promoted on the recorded-open path (:932-955, :2754-2755). Security probe P1: a resolver raising any of the three while opening the bound current frontier gives durable 1, kept after reopen with the good key. mind-spec rule: - A resolver forwarding a plain FoundationError with one of these strings proves no comparison. Fence disclosure, keep evidence and charges, and hold derived until the configured resolver can establish exact proof (L282, L306, L314, L320, L588-593, L688-689; frozen P06:81, P11:119). - Drop forwarded `key_mismatch` from the pass-through. Keep the opener's own post-return key-ID and commitment checks (recovery_crypto.py:587-592, :700-703), which can prove a mismatch on a named digest. - Same evidence rule for the other two. These can stay durable when tied to the recorded authority: a returned key with the wrong purpose; KeyRing's lookup of the exact required ID with a different stored purpose (:186-194, :587-590); KeyCustody's comparison of two different secure copies for the same purpose and ID (:333-345). Preserve validator provenance with an internal result type or a check at the source. A reason-string allowlist for an arbitrary callable cannot tell these apart from P1. - The `plaintext_too_large` string check at :951 relies on this normalization ("only the frame validator can report this"). Keep it sound after the change, or move it to the same provenance mechanism. - Tests: each of the three codes raised as a plain error by a test resolver gives derived quarantine, durable 0, then READY with the good key (extend `test_forwarded_resolver_code_is_not_recorded_evidence`). One real proved case for each durable source (opener commitment mismatch on a bound digest, KeyRing wrong purpose, KeyCustody contradictory copies) persists durable 1 across reopen. Probe: `r4-probes/security/test_r4_sec_probe.py` (P1). 2. **R4-2 (Security SEC-r4-5; ed6241ec Q2 clash; predates round 3).** A rowless `prepared/<T>.c` sealed under a second key id, opened through `inspect_frontier` (:1029-1035), gives durable 1 when the resolver returns wrong material for that id (Security probe P2). The inspection hash is not an independently recorded expected digest (recovery_crypto.py:700-703, :756-764; :1015-1035). mind-spec rule: - A non-torn failure that leaves an unbound orphan unproved gets a derived fence. Keep the file and its full charge until exclusive ownership, exact binding and durable retirement are verified. - No release, no retirement by assumption and no fresh dispatch follows from this error. - Independently proved contradiction with recorded recovery authority still persists. Keep the activation-record-bound path at :1024-1028 as it is. - Spec L229, L282, L304-306, L314, L320, L516-518, L688-689; frozen P06:73-74, :79-81, P11:115. - Tests: P2 cases (exact key retires to READY; wrong material, `key_purpose_mismatch` and `key_unavailable` each give derived 0 with the file and `prepared` charge kept across reopen, then READY once the fault clears). One activation-bound mismatch case stays durable 1. ## Test-only fixes (blocking) 3. **R4-3 (Security SEC-r4-1, Spec SP-r4-3 and SP-r4-4).** The R3-3 rechecks in `_command_ledger` are unpinned: - local counters (:1648, `checked.local != (t.expected_mutation, t.expected_lifetime)`): the mutant survives all 586 transition cases (guide run). Under it, `mutation_generation` drift after a READY reconcile lets the command send a PUT and commit `ok`; `lifetime_admitted` drift sends a PUT, then durable quarantine (Security P3, Spec P5). - current size (:1655-1657): the mutant survives 66 cases; the later `_open_ref` check catches it only after the reservation. - Binding: mind-spec 2dc3f6a4 ("recheck … against the same exact frontier and local counters"); L213, L235, L306-308. - Tests: drift each of `mutation_generation` and `lifetime_admitted`, and resize `frontier.current`, after READY and before a command. Each gives `quarantined` with no provider call, no prepared row and no spend. Probes: `r4-probes/security/test_r4_sec_probe.py` (P3), `r4-probes/spec/test_r4_spec_probe.py` (P5). 4. **R4-4 (Spec SP-r4-1, Security SEC-r4-2, Standards ST-r4-2 derived side).** The uid, file-type and byte-cap prechecks in `_file_info` (:297-305) and the short read (:399-400) are not pinned as derived. Mutants making them durable survive 62 cases; the short-read mutant survives all 586 (Standards run). Binding: ead5d026 Q1 names mode, uid, file type, link count, the generic byte cap and the short read as precheck faults. Tests: add `stat-uid`, `stat-type`, `stat-size` and `short_read` to `test_owned_file_safety_is_derived_until_proof` (tests:6651). Inject the short read through the stream `read` or `fdopen`, never chmod. Probes: `r4-probes/spec/test_r4_spec_probe.py` (P1, P2). ## Should-fix (fix this round) 5. **R4-5 (Spec SP-r4-2, Security SEC-r4-3, Standards ST-r4-2).** Seven proved-conflict sites are not pinned as durable: :452, :548, :551, :691, :699, :721 and :802. Demoting all seven at once survives all 586 cases (Standards C01). Only :458 and :710 are pinned. The R3-1 disposition and the PR body say these stay durable. Add one case per site to `test_proved_custody_conflict_survives_reopen` (tests:6939), each durable 1 across reopen. 6. **R4-6 (Standards ST-r4-1; R2-4 regression).** Four `raise _RecordedConflict(...) from None` inside except handlers (:452, :952, :954, :960) still carry a FoundationError `__context__`; `from None` only suppresses display. Set a local in the handler and raise after the `try`, as R2-4 did. Test: extend the `refused`-style context assertion to these sites. Probe: `r4-probes/standards/test_r4_st_probe.py::test_probe_new_handler_raises_carry_context`. ## Nits 7. SP-r4-5: the `__func__` checks in `_can_prove_unsent` (:1941-1942) are unpinned; add an instance-patched `execute` case, or state in the PR body why it is out of reach. 8. ST-r4-3: classification lives in four places (`_AUTHORITY_FAULTS`, `_RecordedConflict`, `_RECORDED_FORMAT_FAULTS`, `_KEY_RESOLUTION_FAULTS`). Use one `_code()` helper for the repeated `args` guard, add a comment at the table that the typed error takes precedence, and drop the redundant `integer_out_of_range` from the format set. 9. ST-r4-4: `_open_recorded_frontier` (:937-957) copies `frontier.open_frontier`'s binding construction and calls the private `frontier._opened`. Add a comment naming why, or expose a public helper (outside the write set: comment only). 10. ST-r4-5: `_Files.document` (:449-452) renames `record_byte_limit` to `custody_file_unsafe`; its sibling decode errors keep their own codes. Keep one style. 11. ST-r4-6: comment that `prepare_command` calls `_charge_command` (:1718) only for its raise; rename `_sweep` or note that it returns the activation. ## Record in the PR body - Round-2 and round-3 residuals stand. - Spec "unverified": after a CAPACITY failure that follows `_custody_state = reserved`, an in-memory reservation may outlive the request until the next reconcile. It over-counts (fails closed) and predates round 3. Check it; fix it if trivial, otherwise record it as a residual. - Equivalent survivors: `integer_out_of_range` already CONTRADICTION; `frontier_byte_limit` shares the envelope cap that fires first; `counter_overflow` is never raised during decode; seal-side `plaintext_too_large` follows a same-cap check. ## Probes you may reuse All in /Users/piers/src/_architect/dd469-minds-2026-11-16/r4-probes/: `security/test_r4_sec_probe.py` (P1 to P3), `spec/test_r4_spec_probe.py` (P1 to P5), `standards/test_r4_st_probe.py`. Hold pushes until this batch is complete; then report the new head on corr pr48-r4.
Collaborator

spec-verify-dispatch Half B for dev/attention-mind-mcp#33 dd-469-6-child-5-7-durable-transition-and-quarantine completed integration verify.

  • PR: #48
  • Branch: feat/svd-dev-attention-mind-mcp-33-dd-469-6-child-5-7-durable-d2b4c2a7
  • Commit: 8162065c71
  • Build: none
  • Test: red
  • Reader audit clean: True
  • Spec fidelity: True
  • Ready for merge: False
  • Check ci/woodpecker/pr/validation: pending https://ci.groupthink.asia/repos/76/pipeline/78/1
  • Checks: PR #48 head 8162065c71: ci/woodpecker/pr/validation is pending. Local checks are green: 642 new unit tests, 901 existing unit tests, 66 transport tests, ruff check, ruff format and mypy.
  • Blocker: Verification command failed: mkdir -p /tmp/iv_scripts && cat > /tmp/iv_scripts/trace.py <<'EOF'
    import re,sys
    spec=open(sys.argv[1]).read()
    ids=open(sys.argv[2]).read()
    names=set(re.findall(r'tests/test_recovery_transition.py::(\w+)',ids))
    sec=spec.split('## Test Strategy')[1].split('## Risk flags')[0]
    rows=[l for l in sec.splitlines() if l.startswith('| ') and not l.startswith('| Scenario') and not l.startswith('| ---')]
    missing=[]
    for r in rows:
    cells=r.split('|')
    test=cells[2]
    for t in re.findall(r'`(test_\w+)',test):
    if t not in names: missing.append((cells[1].strip(),t))
    if 'unmapped' in r: print('UNMAPPED',r[:100])
    print(len(rows),'rows; missing',missing)
    EOF
    cd /Users/piers/src/attention-mind-mcp/data/svd33/worktrees/20261121T104247Z-d2b4c2a7/worktree && .venv/bin/python -m pytest tests/test_recovery_transition.py --collect-only -q > /tmp/iv_scripts/ids.txt; echo done (ran outside the project environment /Users/piers/src/attention-mind-mcp/data/svd33/worktrees/20261121T104247Z-d2b4c2a7/worktree/.venv/bin)
  • Blocker cause: unclassified for Verification command failed: mkdir -p /tmp/iv_scripts && cat > /tmp/iv_scripts/trace.py <<'EOF'
    import re,sys
    spec=open(sys.argv[1]).read()
    ids=open(sys.argv[2]).read()
    names=set(re.findall(r'tests/test_recovery_transition.py::(\w+)',ids))
    sec=spec.split('## Test Strategy')[1].split('## Risk flags')[0]
    rows=[l for l in sec.splitlines() if l.startswith('| ') and not l.startswith('| Scenario') and not l.startswith('| ---')]
    missing=[]
    for r in rows:
    cells=r.split('|')
    test=cells[2]
    for t in re.findall(r'`(test_\w+)',test):
    if t not in names: missing.append((cells[1].strip(),t))
    if 'unmapped' in r: print('UNMAPPED',r[:100])
    print(len(rows),'rows; missing',missing)
    EOF
    cd /Users/piers/src/attention-mind-mcp/data/svd33/worktrees/20261121T104247Z-d2b4c2a7/worktree && .venv/bin/python -m pytest tests/test_recovery_transition.py --collect-only -q > /tmp/iv_scripts/ids.txt; echo done (ran outside the project environment /Users/piers/src/attention-mind-mcp/data/svd33/worktrees/20261121T104247Z-d2b4c2a7/worktree/.venv/bin); no denial signature
  • Warning: Remote CI ci/woodpecker/pr/validation is still pending on head 8162065c71. The runner re-polls it.
  • Warning: The spec asks for a pristine-base failure-set comparison. I did not re-measure the base. Every unit and transport test passes on the PR head, so the failure set is empty.
  • Warning: The merge-gate comparison of the protocol hash against base 0828c1ef was not re-run. The diff against base touches exactly the seven Primary Files. recovery_archive.py changes one line. mcp_adapter.py changes 95 insertions and 10 deletions in the release path.
  • Warning: I did not read the PR comments or reviews. I make no claim about an independent reviewer.
  • Rework: 0 round(s), outcome escalated
  • Escalation: unclassified blocker(s) hold the run without code rework (an infra cause with no evidence): unclassified for Verification command failed: mkdir -p /tmp/iv_scripts && cat > /tmp/iv_scripts/trace.py <<'EOF'
    import re,sys
    spec=open(sys.argv[1]).read()
    ids=open(sys.argv[2]).read()
    names=set(re.findall(r'tests/test_recovery_transition.py::(\w+)',ids))
    sec=spec.split('## Test Strategy')[1].split('## Risk flags')[0]
    rows=[l for l in sec.splitlines() if l.startswith('| ') and not l.startswith('| Scenario') and not l.startswith('| ---')]
    missing=[]
    for r in rows:
    cells=r.split('|')
    test=cells[2]
    for t in re.findall(r'`(test_\w+)',test):
    if t not in names: missing.append((cells[1].strip(),t))
    if 'unmapped' in r: print('UNMAPPED',r[:100])
    print(len(rows),'rows; missing',missing)
    EOF
    cd /Users/piers/src/attention-mind-mcp/data/svd33/worktrees/20261121T104247Z-d2b4c2a7/worktree && .venv/bin/python -m pytest tests/test_recovery_transition.py --collect-only -q > /tmp/iv_scripts/ids.txt; echo done (ran outside the project environment /Users/piers/src/attention-mind-mcp/data/svd33/worktrees/20261121T104247Z-d2b4c2a7/worktree/.venv/bin); no denial signature
  • Decision: resolve the blockers above and rerun integrate, or park this PR for a human?

label flip withheld (--no-label-writes); gate label is the orchestrator's act — actor unset

spec-verify-dispatch Half B for dev/attention-mind-mcp#33 dd-469-6-child-5-7-durable-transition-and-quarantine completed integration verify. - PR: https://git.groupthink.asia/dev/attention-mind-mcp/pulls/48 - Branch: feat/svd-dev-attention-mind-mcp-33-dd-469-6-child-5-7-durable-d2b4c2a7 - Commit: 8162065c7175e4a8d56ea0ab76a30b56ff5e2577 - Build: none - Test: red - Reader audit clean: True - Spec fidelity: True - Ready for merge: False - Check ci/woodpecker/pr/validation: pending https://ci.groupthink.asia/repos/76/pipeline/78/1 - Checks: PR #48 head 8162065c7175: ci/woodpecker/pr/validation is pending. Local checks are green: 642 new unit tests, 901 existing unit tests, 66 transport tests, ruff check, ruff format and mypy. - Blocker: Verification command failed: mkdir -p /tmp/iv_scripts && cat > /tmp/iv_scripts/trace.py <<'EOF' import re,sys spec=open(sys.argv[1]).read() ids=open(sys.argv[2]).read() names=set(re.findall(r'tests/test_recovery_transition.py::(\w+)',ids)) sec=spec.split('## Test Strategy')[1].split('## Risk flags')[0] rows=[l for l in sec.splitlines() if l.startswith('| ') and not l.startswith('| Scenario') and not l.startswith('| ---')] missing=[] for r in rows: cells=r.split('|') test=cells[2] for t in re.findall(r'`(test_\w+)',test): if t not in names: missing.append((cells[1].strip(),t)) if 'unmapped' in r: print('UNMAPPED',r[:100]) print(len(rows),'rows; missing',missing) EOF cd /Users/piers/src/attention-mind-mcp/data/svd33/worktrees/20261121T104247Z-d2b4c2a7/worktree && .venv/bin/python -m pytest tests/test_recovery_transition.py --collect-only -q > /tmp/iv_scripts/ids.txt; echo done (ran outside the project environment /Users/piers/src/attention-mind-mcp/data/svd33/worktrees/20261121T104247Z-d2b4c2a7/worktree/.venv/bin) - Blocker cause: unclassified for Verification command failed: mkdir -p /tmp/iv_scripts && cat > /tmp/iv_scripts/trace.py <<'EOF' import re,sys spec=open(sys.argv[1]).read() ids=open(sys.argv[2]).read() names=set(re.findall(r'tests/test_recovery_transition.py::(\w+)',ids)) sec=spec.split('## Test Strategy')[1].split('## Risk flags')[0] rows=[l for l in sec.splitlines() if l.startswith('| ') and not l.startswith('| Scenario') and not l.startswith('| ---')] missing=[] for r in rows: cells=r.split('|') test=cells[2] for t in re.findall(r'`(test_\w+)',test): if t not in names: missing.append((cells[1].strip(),t)) if 'unmapped' in r: print('UNMAPPED',r[:100]) print(len(rows),'rows; missing',missing) EOF cd /Users/piers/src/attention-mind-mcp/data/svd33/worktrees/20261121T104247Z-d2b4c2a7/worktree && .venv/bin/python -m pytest tests/test_recovery_transition.py --collect-only -q > /tmp/iv_scripts/ids.txt; echo done (ran outside the project environment /Users/piers/src/attention-mind-mcp/data/svd33/worktrees/20261121T104247Z-d2b4c2a7/worktree/.venv/bin); no denial signature - Warning: Remote CI ci/woodpecker/pr/validation is still pending on head 8162065c7175. The runner re-polls it. - Warning: The spec asks for a pristine-base failure-set comparison. I did not re-measure the base. Every unit and transport test passes on the PR head, so the failure set is empty. - Warning: The merge-gate comparison of the protocol hash against base 0828c1ef was not re-run. The diff against base touches exactly the seven Primary Files. recovery_archive.py changes one line. mcp_adapter.py changes 95 insertions and 10 deletions in the release path. - Warning: I did not read the PR comments or reviews. I make no claim about an independent reviewer. - Rework: 0 round(s), outcome escalated - Escalation: unclassified blocker(s) hold the run without code rework (an infra cause with no evidence): unclassified for Verification command failed: mkdir -p /tmp/iv_scripts && cat > /tmp/iv_scripts/trace.py <<'EOF' import re,sys spec=open(sys.argv[1]).read() ids=open(sys.argv[2]).read() names=set(re.findall(r'tests/test_recovery_transition.py::(\w+)',ids)) sec=spec.split('## Test Strategy')[1].split('## Risk flags')[0] rows=[l for l in sec.splitlines() if l.startswith('| ') and not l.startswith('| Scenario') and not l.startswith('| ---')] missing=[] for r in rows: cells=r.split('|') test=cells[2] for t in re.findall(r'`(test_\w+)',test): if t not in names: missing.append((cells[1].strip(),t)) if 'unmapped' in r: print('UNMAPPED',r[:100]) print(len(rows),'rows; missing',missing) EOF cd /Users/piers/src/attention-mind-mcp/data/svd33/worktrees/20261121T104247Z-d2b4c2a7/worktree && .venv/bin/python -m pytest tests/test_recovery_transition.py --collect-only -q > /tmp/iv_scripts/ids.txt; echo done (ran outside the project environment /Users/piers/src/attention-mind-mcp/data/svd33/worktrees/20261121T104247Z-d2b4c2a7/worktree/.venv/bin); no denial signature - Decision: resolve the blockers above and rerun integrate, or park this PR for a human? label flip withheld (--no-label-writes); gate label is the orchestrator's act — actor unset
Collaborator

spec-verify-dispatch Half B for dev/attention-mind-mcp#33 dd-469-6-child-5-7-durable-transition-and-quarantine completed integration verify.

  • PR: #48
  • Branch: feat/svd-dev-attention-mind-mcp-33-dd-469-6-child-5-7-durable-d2b4c2a7
  • Commit: 8162065c71
  • Build: none
  • Test: green
  • Reader audit clean: True
  • Spec fidelity: True
  • Ready for merge: False
  • Check ci/woodpecker/pr/validation: green https://ci.groupthink.asia/repos/76/pipeline/78/1
  • Checks: ci/woodpecker/pr/validation green on 8162065c71. Local pytest -m unit (1543 passed), pytest -m transport, ruff check, ruff format --check and mypy src all exit 0. No blockers.
  • Blocker: Verification evidence: no single-command test run exited 0 (compound or piped runs mask exit status)
  • Blocker cause: accounting for Verification evidence: no single-command test run exited 0 (compound or piped runs mask exit status); no denial signature; evidence: /Users/piers/src/attention-mind-mcp/data/svd33/worktrees/20261121T104247Z-d2b4c2a7/worktree/.venv/bin/python -m pytest tests/test_recovery_transition.py -m unit -q --collect-only -> opaque; /Users/piers/src/attention-mind-mcp/data/svd33/worktrees/20261121T104247Z-d2b4c2a7/worktree/.venv/bin/python -
  • Warning: The transport run completed with exit code 0; I did not read its pass count.
  • Warning: I did not independently read the PR comments or reviews, so I make no claim about an independent reviewer.
  • Warning: readerAuditClean rests on the unit test test_wire_readiness_reader_accepts_only_ready passing and on the diff touching only the seven named files. I did not audit each reader line by line, and the spec leaves the CONV-23 reader-row check to the merge gate.
  • Rework: 0 round(s), outcome accounting-hold
  • Escalation: accounting blocker(s) hold the run without code rework (a runner accounting fault, not infra): accounting for Verification evidence: no single-command test run exited 0 (compound or piped runs mask exit status); no denial signature; evidence: /Users/piers/src/attention-mind-mcp/data/svd33/worktrees/20261121T104247Z-d2b4c2a7/worktree/.venv/bin/python -m pytest tests/test_recovery_transition.py -m unit -q --collect-only -> opaque; /Users/piers/src/attention-mind-mcp/data/svd33/worktrees/20261121T104247Z-d2b4c2a7/worktree/.venv/bin/python -
  • Decision: resolve the blockers above and rerun integrate, or park this PR for a human?

label flip withheld (--no-label-writes); gate label is the orchestrator's act — actor unset

spec-verify-dispatch Half B for dev/attention-mind-mcp#33 dd-469-6-child-5-7-durable-transition-and-quarantine completed integration verify. - PR: https://git.groupthink.asia/dev/attention-mind-mcp/pulls/48 - Branch: feat/svd-dev-attention-mind-mcp-33-dd-469-6-child-5-7-durable-d2b4c2a7 - Commit: 8162065c7175e4a8d56ea0ab76a30b56ff5e2577 - Build: none - Test: green - Reader audit clean: True - Spec fidelity: True - Ready for merge: False - Check ci/woodpecker/pr/validation: green https://ci.groupthink.asia/repos/76/pipeline/78/1 - Checks: ci/woodpecker/pr/validation green on 8162065c7175. Local pytest -m unit (1543 passed), pytest -m transport, ruff check, ruff format --check and mypy src all exit 0. No blockers. - Blocker: Verification evidence: no single-command test run exited 0 (compound or piped runs mask exit status) - Blocker cause: accounting for Verification evidence: no single-command test run exited 0 (compound or piped runs mask exit status); no denial signature; evidence: /Users/piers/src/attention-mind-mcp/data/svd33/worktrees/20261121T104247Z-d2b4c2a7/worktree/.venv/bin/python -m pytest tests/test_recovery_transition.py -m unit -q --collect-only -> opaque; /Users/piers/src/attention-mind-mcp/data/svd33/worktrees/20261121T104247Z-d2b4c2a7/worktree/.venv/bin/python - - Warning: The transport run completed with exit code 0; I did not read its pass count. - Warning: I did not independently read the PR comments or reviews, so I make no claim about an independent reviewer. - Warning: readerAuditClean rests on the unit test test_wire_readiness_reader_accepts_only_ready passing and on the diff touching only the seven named files. I did not audit each reader line by line, and the spec leaves the CONV-23 reader-row check to the merge gate. - Rework: 0 round(s), outcome accounting-hold - Escalation: accounting blocker(s) hold the run without code rework (a runner accounting fault, not infra): accounting for Verification evidence: no single-command test run exited 0 (compound or piped runs mask exit status); no denial signature; evidence: /Users/piers/src/attention-mind-mcp/data/svd33/worktrees/20261121T104247Z-d2b4c2a7/worktree/.venv/bin/python -m pytest tests/test_recovery_transition.py -m unit -q --collect-only -> opaque; /Users/piers/src/attention-mind-mcp/data/svd33/worktrees/20261121T104247Z-d2b4c2a7/worktree/.venv/bin/python - - Decision: resolve the blockers above and rerun integrate, or park this PR for a human? label flip withheld (--no-label-writes); gate label is the orchestrator's act — actor unset
Collaborator

spec-verify-dispatch Half B for dev/attention-mind-mcp#33 dd-469-6-child-5-7-durable-transition-and-quarantine completed integration verify.

  • PR: #48
  • Branch: feat/svd-dev-attention-mind-mcp-33-dd-469-6-child-5-7-durable-d2b4c2a7
  • Commit: 8162065c71
  • Build: none
  • Test: red
  • Reader audit clean: True
  • Spec fidelity: True
  • Ready for merge: False
  • Check ci/woodpecker/pr/validation: green https://ci.groupthink.asia/repos/76/pipeline/78/1
  • Checks: CI ci/woodpecker/pr/validation: green on 8162065c71. Local: unit 1543 passed. Transport 66 passed on rerun; the first run failed one test under load. ruff check, ruff format and mypy are clean. All 94 spec test names are collected.
  • Blocker: Verification command failed: /Users/piers/src/attention-mind-mcp/data/svd33/worktrees/20261121T104247Z-d2b4c2a7/worktree/.venv/bin/python -m pytest -m transport -q (exit 1)
  • Blocker cause: work for Verification command failed: /Users/piers/src/attention-mind-mcp/data/svd33/worktrees/20261121T104247Z-d2b4c2a7/worktree/.venv/bin/python -m pytest -m transport -q (exit 1); no denial signature
  • Warning: The first transport run failed tests/test_commands.py::test_writer_kill_and_retry[before_response-dispose]. It ran at the same time as the 690-second unit suite, and the barrier file stayed empty before the 15-second deadline. An uncontended rerun of the full transport suite on the same head passed: 66 passed, exit 0. This test is in an existing file, not in the PR's footprint. I judge the failure a timing flake under load. It is still in the invocation log.
  • Warning: The merge-gate checks remain open, as the subagent noted. These are the base 0828c1ef protocol hash, the write-set comparison and the CONV-23 reader-row check.
  • Warning: The spec asks for a pristine-base failure-set comparison. I did not run one. The unit suite and the uncontended transport rerun are fully green, so there is no failure set to compare.
  • Warning: I did not read the PR's comments or reviews, so I make no claim about independent review.
  • Base failure evidence: tests/test_commands.py::test_writer_kill_and_retry[before_response-dispose] preExistingAtBase=null; kind: pytest-exit; reason: pytest exit 4: usage error at base (node id not found); base 0828c1ef5a; host=voyager; python3=/nix/store/q27ffdqgbpxbz4d0zfdyzg4jkfn83z7s-python3-3.14.7-env/bin/python3; resolved=/nix/store/q27ffdqgbpxbz4d0zfdyzg4jkfn83z7s-python3-3.14.7-env/bin/python3.14; version=3.14.7; pytest=9.1.1
  • Rework: 0 round(s), outcome exhausted
  • Escalation: reached the 0-round rework cap without converging.
  • Decision: resolve the blockers above and rerun integrate, or park this PR for a human?

label flip withheld (--no-label-writes); gate label is the orchestrator's act — actor unset

spec-verify-dispatch Half B for dev/attention-mind-mcp#33 dd-469-6-child-5-7-durable-transition-and-quarantine completed integration verify. - PR: https://git.groupthink.asia/dev/attention-mind-mcp/pulls/48 - Branch: feat/svd-dev-attention-mind-mcp-33-dd-469-6-child-5-7-durable-d2b4c2a7 - Commit: 8162065c7175e4a8d56ea0ab76a30b56ff5e2577 - Build: none - Test: red - Reader audit clean: True - Spec fidelity: True - Ready for merge: False - Check ci/woodpecker/pr/validation: green https://ci.groupthink.asia/repos/76/pipeline/78/1 - Checks: CI ci/woodpecker/pr/validation: green on 8162065c7175. Local: unit 1543 passed. Transport 66 passed on rerun; the first run failed one test under load. ruff check, ruff format and mypy are clean. All 94 spec test names are collected. - Blocker: Verification command failed: /Users/piers/src/attention-mind-mcp/data/svd33/worktrees/20261121T104247Z-d2b4c2a7/worktree/.venv/bin/python -m pytest -m transport -q (exit 1) - Blocker cause: work for Verification command failed: /Users/piers/src/attention-mind-mcp/data/svd33/worktrees/20261121T104247Z-d2b4c2a7/worktree/.venv/bin/python -m pytest -m transport -q (exit 1); no denial signature - Warning: The first transport run failed tests/test_commands.py::test_writer_kill_and_retry[before_response-dispose]. It ran at the same time as the 690-second unit suite, and the barrier file stayed empty before the 15-second deadline. An uncontended rerun of the full transport suite on the same head passed: 66 passed, exit 0. This test is in an existing file, not in the PR's footprint. I judge the failure a timing flake under load. It is still in the invocation log. - Warning: The merge-gate checks remain open, as the subagent noted. These are the base 0828c1ef protocol hash, the write-set comparison and the CONV-23 reader-row check. - Warning: The spec asks for a pristine-base failure-set comparison. I did not run one. The unit suite and the uncontended transport rerun are fully green, so there is no failure set to compare. - Warning: I did not read the PR's comments or reviews, so I make no claim about independent review. - Base failure evidence: tests/test_commands.py::test_writer_kill_and_retry[before_response-dispose] preExistingAtBase=null; kind: pytest-exit; reason: pytest exit 4: usage error at base (node id not found); base 0828c1ef5a9bdce12610cb4f61060d88915271d2; host=voyager; python3=/nix/store/q27ffdqgbpxbz4d0zfdyzg4jkfn83z7s-python3-3.14.7-env/bin/python3; resolved=/nix/store/q27ffdqgbpxbz4d0zfdyzg4jkfn83z7s-python3-3.14.7-env/bin/python3.14; version=3.14.7; pytest=9.1.1 - Rework: 0 round(s), outcome exhausted - Escalation: reached the 0-round rework cap without converging. - Decision: resolve the blockers above and rerun integrate, or park this PR for a human? label flip withheld (--no-label-writes); gate label is the orchestrator's act — actor unset
Collaborator

spec-verify-dispatch Half B for dev/attention-mind-mcp#33 dd-469-6-child-5-7-durable-transition-and-quarantine completed integration verify.

  • PR: #48
  • Branch: feat/svd-dev-attention-mind-mcp-33-dd-469-6-child-5-7-durable-d2b4c2a7
  • Commit: 8162065c71
  • 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/78/1
  • Checks: ci/woodpecker/pr/validation green on 8162065c71. Local: 98 round-four cases passed, wire reader case passed, ruff and mypy clean, 72 of 72 scenario rows traced to collected test ids.
  • Warning: Local execution was scoped: the 98 round-four regression cases and the frozen wire readiness reader case ran here. The full unit and transport suites were not rerun here, per operator instruction; Woodpecker 78 is the full-suite evidence.
  • Warning: No Agent Adjustments section in the spec, so the tables apply as written. The 'Frozen bytes unchanged' row is a merge-gate diff check, not a test, and was verified here directly.
  • Warning: This stage did not read PR comments or reviews, so it makes no claim about independent review.
  • Decision: merge disposition is the operator's; run ready (codex-svd ship --run-id 20261121T104247Z-d2b4c2a7 available to a permitted seat)

label flip withheld (--no-label-writes); gate label is the orchestrator's act — actor unset

spec-verify-dispatch Half B for dev/attention-mind-mcp#33 dd-469-6-child-5-7-durable-transition-and-quarantine completed integration verify. - PR: https://git.groupthink.asia/dev/attention-mind-mcp/pulls/48 - Branch: feat/svd-dev-attention-mind-mcp-33-dd-469-6-child-5-7-durable-d2b4c2a7 - Commit: 8162065c7175e4a8d56ea0ab76a30b56ff5e2577 - 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/78/1 - Checks: ci/woodpecker/pr/validation green on 8162065c7175. Local: 98 round-four cases passed, wire reader case passed, ruff and mypy clean, 72 of 72 scenario rows traced to collected test ids. - Warning: Local execution was scoped: the 98 round-four regression cases and the frozen wire readiness reader case ran here. The full unit and transport suites were not rerun here, per operator instruction; Woodpecker 78 is the full-suite evidence. - Warning: No Agent Adjustments section in the spec, so the tables apply as written. The 'Frozen bytes unchanged' row is a merge-gate diff check, not a test, and was verified here directly. - Warning: This stage did not read PR comments or reviews, so it makes no claim about independent review. - Decision: merge disposition is the operator's; run ready (`codex-svd ship --run-id 20261121T104247Z-d2b4c2a7` available to a permitted seat) label flip withheld (--no-label-writes); gate label is the orchestrator's act — actor unset
Author
Member

PR #48 round 5: guide dispositions

Head 8162065, spec-v13 sha256 10b8a093, base 0828c1ef. Three fresh independent reviews: Spec FAIL, Standards PASS, §19 Security FAIL. All round-4 items are fixed in code; every one except the R4-1 provenance check is pinned by a test. The open items are all in the R4-1 validator-provenance mechanism in _OpeningKeys.resolve (recovery_transition.py:2675-2709). mind-spec fit answer 61eea58d (corr pr48-r5-fit). Operator ruling (§6, round 5): fix SEC-r5-1, SEC-r5-2 and SEC-r5-3 F5 in this child; record SEC-r5-3 F4 as a PR-body residual. No spec amendment.

Round-4 items confirmed fixed and pinned: R4-2, R4-3, R4-4, R4-5, R4-6 (PR-wide: no typed raise inside a handler remains), nits 7 to 11, and the CAPACITY reservation restore. R4-1 is fixed for plain forwarded errors (r4 probe P1 passes) but open as below. No earlier-round regression. Full unit at head: 1543 passed. gitleaks over 0828c1ef..8162065: no leaks.

Code fixes (blocking; mind-spec 61eea58d clashes)

  1. R5-1 (Security SEC-r5-1; 61eea58d Q1 clash). _OpeningKeys.resolve classifies the resolver's error, then re-raises the same object (:2699, :2708). recovery_crypto._resolve (:582-583) reads error.args again. A FoundationError subclass with an args property can show key_unavailable to the check and another code afterwards.
    • Security probe F3 (bound current frontier, late key_mismatch or key_purpose_mismatch): durable 1, kept after reopen with the good key.
    • Security probe G2 (unbound orphan, late envelope_truncated or envelope_unauthenticated): _retire_staged treats it as torn and removes the orphan (:1042-1043, :1063-1064); READY, charge released.
    • Guide reproduced both at head.
    • mind-spec rule: the boundary snapshots args once, validates and normalizes the code, and emits a fresh plain FoundationError that carries the checked code. Unavailable or unusable resolver evidence stays transient. _code itself reads error.args up to three times (:2681-2682), so snapshot it inside _code (args = error.args once), which also covers its other callers (:451, :956, :966, :2825).
    • Set the code in a local inside the handler and call _fail(code) after the try, as R2-4 did, so the new error carries no __context__. Guide measured this shape (diff: r5-probes/guide-sec-r5-1-fix.diff): F3 gives derived 0, then READY with the good key; G2 gives a derived fence with the file and full charge kept; 51 related transition cases pass.
    • Tests: F3 (both late codes) gives derived 0, then READY with the good key. G2 (envelope_truncated, envelope_unauthenticated, key_mismatch) keeps the orphan and its prepared charge, durable 0, then retires to READY once the resolver is healthy. Probe: r5-probes/security/test_r5_sec_probe.py (F3, G2).
  2. R5-2 (Security SEC-r5-3 F5; 61eea58d Q2 clash). KeyCustody.__init__ accepts any Path subclass (isinstance(path, Path), recovery_crypto.py:329). Probe F5: a Path subclass whose __fspath__ raises key_custody_contradictory passes all four provenance checks before any comparison runs; durable 1, kept after reopen with the good key.
    • mind-spec rule: an exact receiver and the original bound method show which validator ran, not that it reached the comparison. Either establish the contradiction at the comparison (or corroborate it independently against the exact bound authority), or keep caller-controlled path behavior out of the trusted resolution path. With proof missing, the result is derived.
    • recovery_crypto.py is outside the write set. Do the check in recovery_transition.py. One shape: before trusting a forwarded key_custody_contradictory, require each configured custody directory to be an exact concrete pathlib type (type(path) is type(Path())), and otherwise treat the code as key_unavailable. If you choose corroboration, state the mechanism in the PR body.
    • Tests: F5 gives derived 0, then READY with the good key. The real contradictory-copies case (two secure copies that differ) still persists durable 1 across reopen. Probe: r5-probes/security/test_r5_sec_probe.py (F5).

Test-only fix (blocking)

  1. R5-3 (Spec SP-r5-1, Security SEC-r5-2, Standards ST-r5-1). Three provenance conjuncts are unpinned: the exact-type lookup _KEY_VALIDATORS.get(type(self.resolver)) (:2700), resolve.__self__ is self.resolver (:2705) and resolve.__func__ is validator[0] (:2706).
    • Mutants: drop __func__, drop __self__, and replace the exact type with isinstance. Each passes all 14 resolver cases (guide run, -k "resolver or forwarded or recorded_key or key_validator"). Under each, a forged code persists durable 1.
    • Binding: ed6241ec Q1 ("Preserve that validator provenance"); spec L282, L306, L320, L591-593.
    • Tests: add to test_resolver_overrides_cannot_prove_recorded_key_conflict, each derived 0, then READY with the good key:
      • class_patch: monkeypatch.setattr(crypto.KeyCustody, "resolve", forge) (kills drop-__func__).
      • rebound_instance: MethodType(forge, keys) on the instance (kills drop-__func__).
      • foreign_self: genuine KeyCustody.resolve bound to a different custody with contradictory copies (kills drop-__self__).
      • keyring_subclass: a KeyRing subclass whose lookup raises key_purpose_mismatch inside the genuine resolve (kills isinstance).
    • Probes: r5-probes/spec/test_r5_spec_probe.py (4 cases; kills all three mutants), r5-probes/standards/test_r5_st_probe.py (2 cases), Security F6 and F7.

Nits

  1. ST-r5-2: move _code() (:2681) next to _fail (:175); its first use is at :451.
  2. ST-r5-3: annotate _KEY_VALIDATORS (:2675) like its sibling _AUTHORITY_FAULTS.
  3. ST-r5-4: comment why resolve = None (:2692) is set: a failed attribute lookup falls through to key_unavailable.

Record in the PR body

  • Round-2, round-3 and round-4 residuals stand.
  • SEC-r5-3 F4 residual (operator ruling; 61eea58d Q2): a KeyRing whose frozen private mapping is replaced through object.__setattr__ after construction can still report key_purpose_mismatch without a comparison. The configured-resolver boundary covers supported configuration and callbacks and assumes a trusted validator's private state stays intact. If replaced inner state becomes supported, the source-proof rule applies.
  • Unverified equivalent survivor: dropping code == validator[1] (Security A6) survives; it appears equivalent, not proved for every input.
  • Integrate evidence on 8162065: r6 relative-path false red, r7 accounting hold (background test runs), r8 transport timing flake under load (test_writer_kill_and_retry[before_response-dispose], outside the write set; the uncontended rerun passed 66). r9 readyForMerge true on 98 focused cases; Woodpecker 78 is the full-suite evidence.

Probes you may reuse

All in /Users/piers/src/_architect/dd469-minds-2026-11-16/r5-probes/: security/test_r5_sec_probe.py (F1 to F7, G1, G2), spec/test_r5_spec_probe.py, standards/test_r5_st_probe.py, and the guide's measured fix guide-sec-r5-1-fix.diff.

Hold pushes until this batch is complete; then report the new head on corr pr48-r5.

# PR #48 round 5: guide dispositions Head 8162065, spec-v13 sha256 10b8a093, base 0828c1ef. Three fresh independent reviews: Spec FAIL, Standards PASS, §19 Security FAIL. All round-4 items are fixed in code; every one except the R4-1 provenance check is pinned by a test. The open items are all in the R4-1 validator-provenance mechanism in `_OpeningKeys.resolve` (recovery_transition.py:2675-2709). mind-spec fit answer 61eea58d (corr pr48-r5-fit). Operator ruling (§6, round 5): fix SEC-r5-1, SEC-r5-2 and SEC-r5-3 F5 in this child; record SEC-r5-3 F4 as a PR-body residual. No spec amendment. Round-4 items confirmed fixed and pinned: R4-2, R4-3, R4-4, R4-5, R4-6 (PR-wide: no typed raise inside a handler remains), nits 7 to 11, and the CAPACITY reservation restore. R4-1 is fixed for plain forwarded errors (r4 probe P1 passes) but open as below. No earlier-round regression. Full unit at head: 1543 passed. gitleaks over 0828c1ef..8162065: no leaks. ## Code fixes (blocking; mind-spec 61eea58d clashes) 1. **R5-1 (Security SEC-r5-1; 61eea58d Q1 clash).** `_OpeningKeys.resolve` classifies the resolver's error, then re-raises the same object (:2699, :2708). `recovery_crypto._resolve` (:582-583) reads `error.args` again. A FoundationError subclass with an `args` property can show `key_unavailable` to the check and another code afterwards. - Security probe F3 (bound current frontier, late `key_mismatch` or `key_purpose_mismatch`): durable 1, kept after reopen with the good key. - Security probe G2 (unbound orphan, late `envelope_truncated` or `envelope_unauthenticated`): `_retire_staged` treats it as torn and removes the orphan (:1042-1043, :1063-1064); READY, charge released. - Guide reproduced both at head. - mind-spec rule: the boundary snapshots `args` once, validates and normalizes the code, and emits a fresh plain FoundationError that carries the checked code. Unavailable or unusable resolver evidence stays transient. `_code` itself reads `error.args` up to three times (:2681-2682), so snapshot it inside `_code` (`args = error.args` once), which also covers its other callers (:451, :956, :966, :2825). - Set the code in a local inside the handler and call `_fail(code)` after the `try`, as R2-4 did, so the new error carries no `__context__`. Guide measured this shape (diff: `r5-probes/guide-sec-r5-1-fix.diff`): F3 gives derived 0, then READY with the good key; G2 gives a derived fence with the file and full charge kept; 51 related transition cases pass. - Tests: F3 (both late codes) gives derived 0, then READY with the good key. G2 (`envelope_truncated`, `envelope_unauthenticated`, `key_mismatch`) keeps the orphan and its `prepared` charge, durable 0, then retires to READY once the resolver is healthy. Probe: `r5-probes/security/test_r5_sec_probe.py` (F3, G2). 2. **R5-2 (Security SEC-r5-3 F5; 61eea58d Q2 clash).** `KeyCustody.__init__` accepts any `Path` subclass (`isinstance(path, Path)`, recovery_crypto.py:329). Probe F5: a Path subclass whose `__fspath__` raises `key_custody_contradictory` passes all four provenance checks before any comparison runs; durable 1, kept after reopen with the good key. - mind-spec rule: an exact receiver and the original bound method show which validator ran, not that it reached the comparison. Either establish the contradiction at the comparison (or corroborate it independently against the exact bound authority), or keep caller-controlled path behavior out of the trusted resolution path. With proof missing, the result is derived. - recovery_crypto.py is outside the write set. Do the check in recovery_transition.py. One shape: before trusting a forwarded `key_custody_contradictory`, require each configured custody directory to be an exact concrete `pathlib` type (`type(path) is type(Path())`), and otherwise treat the code as `key_unavailable`. If you choose corroboration, state the mechanism in the PR body. - Tests: F5 gives derived 0, then READY with the good key. The real contradictory-copies case (two secure copies that differ) still persists durable 1 across reopen. Probe: `r5-probes/security/test_r5_sec_probe.py` (F5). ## Test-only fix (blocking) 3. **R5-3 (Spec SP-r5-1, Security SEC-r5-2, Standards ST-r5-1).** Three provenance conjuncts are unpinned: the exact-type lookup `_KEY_VALIDATORS.get(type(self.resolver))` (:2700), `resolve.__self__ is self.resolver` (:2705) and `resolve.__func__ is validator[0]` (:2706). - Mutants: drop `__func__`, drop `__self__`, and replace the exact type with `isinstance`. Each passes all 14 resolver cases (guide run, `-k "resolver or forwarded or recorded_key or key_validator"`). Under each, a forged code persists durable 1. - Binding: ed6241ec Q1 ("Preserve that validator provenance"); spec L282, L306, L320, L591-593. - Tests: add to `test_resolver_overrides_cannot_prove_recorded_key_conflict`, each derived 0, then READY with the good key: - `class_patch`: `monkeypatch.setattr(crypto.KeyCustody, "resolve", forge)` (kills drop-`__func__`). - `rebound_instance`: `MethodType(forge, keys)` on the instance (kills drop-`__func__`). - `foreign_self`: genuine `KeyCustody.resolve` bound to a different custody with contradictory copies (kills drop-`__self__`). - `keyring_subclass`: a KeyRing subclass whose lookup raises `key_purpose_mismatch` inside the genuine resolve (kills `isinstance`). - Probes: `r5-probes/spec/test_r5_spec_probe.py` (4 cases; kills all three mutants), `r5-probes/standards/test_r5_st_probe.py` (2 cases), Security F6 and F7. ## Nits 4. ST-r5-2: move `_code()` (:2681) next to `_fail` (:175); its first use is at :451. 5. ST-r5-3: annotate `_KEY_VALIDATORS` (:2675) like its sibling `_AUTHORITY_FAULTS`. 6. ST-r5-4: comment why `resolve = None` (:2692) is set: a failed attribute lookup falls through to `key_unavailable`. ## Record in the PR body - Round-2, round-3 and round-4 residuals stand. - SEC-r5-3 F4 residual (operator ruling; 61eea58d Q2): a KeyRing whose frozen private mapping is replaced through `object.__setattr__` after construction can still report `key_purpose_mismatch` without a comparison. The configured-resolver boundary covers supported configuration and callbacks and assumes a trusted validator's private state stays intact. If replaced inner state becomes supported, the source-proof rule applies. - Unverified equivalent survivor: dropping `code == validator[1]` (Security A6) survives; it appears equivalent, not proved for every input. - Integrate evidence on 8162065: r6 relative-path false red, r7 accounting hold (background test runs), r8 transport timing flake under load (`test_writer_kill_and_retry[before_response-dispose]`, outside the write set; the uncontended rerun passed 66). r9 readyForMerge true on 98 focused cases; Woodpecker 78 is the full-suite evidence. ## Probes you may reuse All in /Users/piers/src/_architect/dd469-minds-2026-11-16/r5-probes/: `security/test_r5_sec_probe.py` (F1 to F7, G1, G2), `spec/test_r5_spec_probe.py`, `standards/test_r5_st_probe.py`, and the guide's measured fix `guide-sec-r5-1-fix.diff`. Hold pushes until this batch is complete; then report the new head on corr pr48-r5.
Collaborator

spec-verify-dispatch Half B for dev/attention-mind-mcp#33 dd-469-6-child-5-7-durable-transition-and-quarantine completed integration verify.

  • PR: #48
  • Branch: feat/svd-dev-attention-mind-mcp-33-dd-469-6-child-5-7-durable-d2b4c2a7
  • Commit: 55db5f830f
  • 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/79/1
  • Checks: required ci/woodpecker/pr/validation resolved pass by CI-wait poll
  • Warning: Remote CI ci/woodpecker/pr/validation is still pending on head 55db5f830f.
  • Warning: Spec has no Agent Adjustments section; the tables apply as written.
  • Warning: Scenario tracing checked test function names only (54 of 54 present in the collected node ids). It did not check each parametrize id.
  • Warning: I did not read PR comments or reviews, so I make no claim about independent review.
  • Warning: The CONV-23 reader audit rests on the green wire-readiness reader test and the passing unit and transport suites. I did not diff the adapter against the base.
  • CI wait: ci/woodpecker/pr/validation -> pass
  • Decision: merge disposition is the operator's; run ready (codex-svd ship --run-id 20261121T104247Z-d2b4c2a7 available to a permitted seat)

label flip withheld (--no-label-writes); gate label is the orchestrator's act — actor unset

spec-verify-dispatch Half B for dev/attention-mind-mcp#33 dd-469-6-child-5-7-durable-transition-and-quarantine completed integration verify. - PR: https://git.groupthink.asia/dev/attention-mind-mcp/pulls/48 - Branch: feat/svd-dev-attention-mind-mcp-33-dd-469-6-child-5-7-durable-d2b4c2a7 - Commit: 55db5f830f0a14fbe278eb7911882321b0ca8042 - 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/79/1 - Checks: required ci/woodpecker/pr/validation resolved pass by CI-wait poll - Warning: Remote CI ci/woodpecker/pr/validation is still pending on head 55db5f830f0a. - Warning: Spec has no Agent Adjustments section; the tables apply as written. - Warning: Scenario tracing checked test function names only (54 of 54 present in the collected node ids). It did not check each parametrize id. - Warning: I did not read PR comments or reviews, so I make no claim about independent review. - Warning: The CONV-23 reader audit rests on the green wire-readiness reader test and the passing unit and transport suites. I did not diff the adapter against the base. - CI wait: ci/woodpecker/pr/validation -> pass - Decision: merge disposition is the operator's; run ready (`codex-svd ship --run-id 20261121T104247Z-d2b4c2a7` available to a permitted seat) label flip withheld (--no-label-writes); gate label is the orchestrator's act — actor unset
Author
Member

PR #48 round 6: guide dispositions

Head 55db5f8, spec-v13 sha256 10b8a093, base 0828c1ef. Three fresh independent reviews: Spec FAIL, Standards FAIL, §19 Security FAIL. All three fail on the same boundary, the provenance checks in _OpeningKeys.resolve (recovery_transition.py:2684-2730). A configured resolver can still forge a conflict code that persists durable quarantine after a reopen with the good key. mind-spec fit answer ad41dd8d (corr pr48-r6-fit) accommodates the fix design and the residual wording. Operator ruling (§6, round 6): fix all six in this child; record F4 as a PR-body residual; the guide writes and pushes the fix (round-5 path, because the content filter blocks the attention seat on this material). No spec amendment.

Round-5 items: R5-1 fixed for args that vary between reads, but the classification can still raise (item 1, SEC-r6-2). R5-2 and R5-3 are open as below. Nits 4 to 6 fixed. No earlier-round regression. No proved durable case lost. F13 (a non-Exception BaseException escapes reconcile, then READY) matches L282 and is not a finding.

Fix: corroborate, do not infer provenance

The boundary no longer infers provenance from the resolver's type, bound method or paths.

  • Before the call, it captures the resolver's exact type. For an exact KeyCustody it also captures the configured directories as plain strings. It does this only when the container is an exact tuple of exact concrete Path objects that format to an exact str.
  • A transient code passes through as a derived fault.
  • Any other code counts as proof only when the genuine validator reproduces the same code for the same purpose and key ID. The validator functions are captured at import:
    • KeyRing.resolve on a resolver that was an exact KeyRing both before and after the call;
    • KeyCustody.resolve on a fresh custody rebuilt from the captured strings.
  • Otherwise the result is key_unavailable.
  • Any exception while capturing state or classifying the error gives key_unavailable. The boundary always raises a fresh error after the handler.
  • An unbound staged frontier keeps its file and full prepared charge even when the lookup corroborates a conflict (ad41dd8d Q1 rider). _retire_staged already does this; a new test pins it.

Code fixes (blocking)

  1. R6-1 (Security SEC-r6-2, Standards ST-r6-1). The classification inside the handler reads resolver-controlled state: the args property, the metaclass __hash__ in the validator lookup, and isinstance on a bound method with a __class__ property. Each can raise a resolver-chosen FoundationError that escapes unchecked: durable 1 on the bound current frontier. On an unbound orphan it is read as torn, so the file is removed and the charge released (Security F12 and F12b, F14, F16; Standards P1 to P4; guide red side 8 of 9 at head). Fix: a guard around capture and classification. Tests: test_resolver_classification_fault_is_derived (args property ×3, metaclass hash ×2, method __class__ property) and test_unbound_staged_key_fault_retains_file_and_charge[raising_args:*] ×3.
  2. R6-2 (Security SEC-r6-1). An exact PosixPath built from a str-subclass segment passes the exact-type check, then forges key_custody_contradictory during parsing in the call (F10: durable 1; the benign control is READY 0). Fix: corroboration rebuilds custody from captured plain strings; a parse fault during capture gives key_unavailable. Test: [text_subclass_segment]. F8 and F9 do not reach parsing on Python 3.14.5.
  3. R6-3 (Security SEC-r6-3). An object with a spoofed __class__ passes isinstance(resolve, MethodType) and the __self__ and __func__ checks without running the genuine validator (F15: durable 1 for KeyCustody and KeyRing). Fix: no bound-method inspection. Tests: [spoofed_method_type], [method_lookalike].
  4. R6-4 (Spec SP-r6-1). The validator lookup _KEY_VALIDATORS.get(type(self.resolver)) uses the metaclass __hash__ and __eq__. A class aliasing KeyRing or KeyCustody selects that validator (durable 1). Fix: identity checks on the captured type. Tests: [keyring_alias], [custody_alias].
  5. R6-5 (Spec SP-r6-2). The resolver's type is read after the call. A foreign resolver that sets its __class__ to KeyRing during the call passes (durable 1, kept after a good reopen). Fix: the type is captured before the call, and the KeyRing branch also requires the exact type after it. Tests: [class_swap_to_keyring], [keyring_swap_after_call].
  6. R6-6 (Spec SP-r6-3). A Path subclass restores exact _directories before it raises, so the after-call path check passes (durable 1). Fix: corroboration uses names captured before the call. Tests: [paths_restored_during_call], [directories_swapped_during_call], [fspath_redirect], [directories_redirect].

Corroboration itself is pinned by [keyring_without_key], where the genuine lookup fails with another code, and by test_unbound_staged_key_fault_retains_file_and_charge[corroborated_contradiction].

Test-only and nits

  1. SP-r6-4 (MethodType check unpinned): moot, the check is removed.
  2. ST-r6-2 (comments cite mind-spec ids and the write set): removed with the rewrite; no such comment remains in src/.
  3. ST-r6-3 (validator lookup before the fault branch): removed with the rewrite.
  4. ST-r6-4: [foreign_custody] now records the genuine comparison through its directory iteration, instead of appending to calls unconditionally. stable_reads has a comment.

Guide verification before push

  • Ruff, formatting and strict mypy src pass. tests/test_recovery_transition.py passes 679 cases.
  • Red side: 14 of the new cases fail at 55db5f8. The 2 that pass there (keyring_swap_after_call, method_lookalike) pin checks that 55db5f8 does not have.
  • 14 isolated rule changes, run against the key-resolution selection. 12 fail the expected case:
    • type read after the call;
    • no KeyRing type check after the call;
    • live resolver.resolve instead of the captured function;
    • class KeyCustody.resolve;
    • reusing the resolver instead of rebuilding;
    • capturing names after the call;
    • no exact path type;
    • no exact tuple;
    • no classification guard;
    • no capture guard;
    • accepting any corroboration error as proof;
    • forwarding the claimed code.
  • 2 equivalent survivors:
    • The exact-str check: an exact path always formats to an exact str on 3.14.5. Kept for other pathlib versions.
    • The exact error type in corroboration: only _fail raises inside the boundary. Reachable only through the F4 case.

Record in the PR body (SP-r6-5)

  • Round-2, round-3, round-4 and round-5 residuals stand. The round-5 survivors (code == validator[1], re-raise in the validator branch) go away with their checks.
  • Correct the round-5 rows. R5-2's directory check ran after the call, so "every configured directory" did not hold (SP-r6-3). R5-3 pinned the function, receiver and exact-type checks but not the MethodType check (SP-r6-4). The code == validator[1] survivor is "unverified equivalent", as the round-5 disposition said.
  • F4 residual (operator ruling; ad41dd8d Q2 wording): the boundary assumes that the trusted validator code and module globals, and the private normalized mapping of a KeyRing built through its constructor, stay intact. F4 replaces that mapping after construction and falls inside this assumption. A configured resolver callback, its exception accessors and caller-supplied path behavior stay inside the supported boundary, including during classification and path capture. None can stand in for the comparison.
  • The equivalent survivors above.

Probes

All in /Users/piers/src/_architect/dd469-minds-2026-11-16/r6-probes/: spec/test_r6_spec_probe.py, standards/test_r6_st_probe.py, security/test_r6_sec_probe.py (F8 to F16).

The guide pushes the fix on the PR branch and reports the new head on corr pr48-r6.

# PR #48 round 6: guide dispositions Head 55db5f8, spec-v13 sha256 10b8a093, base 0828c1ef. Three fresh independent reviews: Spec FAIL, Standards FAIL, §19 Security FAIL. All three fail on the same boundary, the provenance checks in `_OpeningKeys.resolve` (recovery_transition.py:2684-2730). A configured resolver can still forge a conflict code that persists durable quarantine after a reopen with the good key. mind-spec fit answer ad41dd8d (corr pr48-r6-fit) accommodates the fix design and the residual wording. Operator ruling (§6, round 6): fix all six in this child; record F4 as a PR-body residual; the guide writes and pushes the fix (round-5 path, because the content filter blocks the attention seat on this material). No spec amendment. Round-5 items: R5-1 fixed for args that vary between reads, but the classification can still raise (item 1, SEC-r6-2). R5-2 and R5-3 are open as below. Nits 4 to 6 fixed. No earlier-round regression. No proved durable case lost. F13 (a non-`Exception` BaseException escapes reconcile, then READY) matches L282 and is not a finding. ## Fix: corroborate, do not infer provenance The boundary no longer infers provenance from the resolver's type, bound method or paths. - Before the call, it captures the resolver's exact type. For an exact `KeyCustody` it also captures the configured directories as plain strings. It does this only when the container is an exact tuple of exact concrete `Path` objects that format to an exact `str`. - A transient code passes through as a derived fault. - Any other code counts as proof only when the genuine validator reproduces the same code for the same purpose and key ID. The validator functions are captured at import: - `KeyRing.resolve` on a resolver that was an exact `KeyRing` both before and after the call; - `KeyCustody.resolve` on a fresh custody rebuilt from the captured strings. - Otherwise the result is `key_unavailable`. - Any exception while capturing state or classifying the error gives `key_unavailable`. The boundary always raises a fresh error after the handler. - An unbound staged frontier keeps its file and full prepared charge even when the lookup corroborates a conflict (ad41dd8d Q1 rider). `_retire_staged` already does this; a new test pins it. ## Code fixes (blocking) 1. **R6-1 (Security SEC-r6-2, Standards ST-r6-1).** The classification inside the handler reads resolver-controlled state: the `args` property, the metaclass `__hash__` in the validator lookup, and `isinstance` on a bound method with a `__class__` property. Each can raise a resolver-chosen FoundationError that escapes unchecked: durable 1 on the bound current frontier. On an unbound orphan it is read as torn, so the file is removed and the charge released (Security F12 and F12b, F14, F16; Standards P1 to P4; guide red side 8 of 9 at head). Fix: a guard around capture and classification. Tests: `test_resolver_classification_fault_is_derived` (args property ×3, metaclass hash ×2, method `__class__` property) and `test_unbound_staged_key_fault_retains_file_and_charge[raising_args:*]` ×3. 2. **R6-2 (Security SEC-r6-1).** An exact `PosixPath` built from a str-subclass segment passes the exact-type check, then forges `key_custody_contradictory` during parsing in the call (F10: durable 1; the benign control is READY 0). Fix: corroboration rebuilds custody from captured plain strings; a parse fault during capture gives `key_unavailable`. Test: `[text_subclass_segment]`. F8 and F9 do not reach parsing on Python 3.14.5. 3. **R6-3 (Security SEC-r6-3).** An object with a spoofed `__class__` passes `isinstance(resolve, MethodType)` and the `__self__` and `__func__` checks without running the genuine validator (F15: durable 1 for KeyCustody and KeyRing). Fix: no bound-method inspection. Tests: `[spoofed_method_type]`, `[method_lookalike]`. 4. **R6-4 (Spec SP-r6-1).** The validator lookup `_KEY_VALIDATORS.get(type(self.resolver))` uses the metaclass `__hash__` and `__eq__`. A class aliasing `KeyRing` or `KeyCustody` selects that validator (durable 1). Fix: identity checks on the captured type. Tests: `[keyring_alias]`, `[custody_alias]`. 5. **R6-5 (Spec SP-r6-2).** The resolver's type is read after the call. A foreign resolver that sets its `__class__` to `KeyRing` during the call passes (durable 1, kept after a good reopen). Fix: the type is captured before the call, and the KeyRing branch also requires the exact type after it. Tests: `[class_swap_to_keyring]`, `[keyring_swap_after_call]`. 6. **R6-6 (Spec SP-r6-3).** A Path subclass restores exact `_directories` before it raises, so the after-call path check passes (durable 1). Fix: corroboration uses names captured before the call. Tests: `[paths_restored_during_call]`, `[directories_swapped_during_call]`, `[fspath_redirect]`, `[directories_redirect]`. Corroboration itself is pinned by `[keyring_without_key]`, where the genuine lookup fails with another code, and by `test_unbound_staged_key_fault_retains_file_and_charge[corroborated_contradiction]`. ## Test-only and nits 7. SP-r6-4 (MethodType check unpinned): moot, the check is removed. 8. ST-r6-2 (comments cite mind-spec ids and the write set): removed with the rewrite; no such comment remains in `src/`. 9. ST-r6-3 (validator lookup before the fault branch): removed with the rewrite. 10. ST-r6-4: `[foreign_custody]` now records the genuine comparison through its directory iteration, instead of appending to `calls` unconditionally. `stable_reads` has a comment. ## Guide verification before push - Ruff, formatting and strict `mypy src` pass. `tests/test_recovery_transition.py` passes 679 cases. - Red side: 14 of the new cases fail at 55db5f8. The 2 that pass there (`keyring_swap_after_call`, `method_lookalike`) pin checks that 55db5f8 does not have. - 14 isolated rule changes, run against the key-resolution selection. 12 fail the expected case: - type read after the call; - no KeyRing type check after the call; - live `resolver.resolve` instead of the captured function; - class `KeyCustody.resolve`; - reusing the resolver instead of rebuilding; - capturing names after the call; - no exact path type; - no exact tuple; - no classification guard; - no capture guard; - accepting any corroboration error as proof; - forwarding the claimed code. - 2 equivalent survivors: - The exact-`str` check: an exact path always formats to an exact `str` on 3.14.5. Kept for other `pathlib` versions. - The exact error type in corroboration: only `_fail` raises inside the boundary. Reachable only through the F4 case. ## Record in the PR body (SP-r6-5) - Round-2, round-3, round-4 and round-5 residuals stand. The round-5 survivors (`code == validator[1]`, re-raise in the validator branch) go away with their checks. - Correct the round-5 rows. R5-2's directory check ran after the call, so "every configured directory" did not hold (SP-r6-3). R5-3 pinned the function, receiver and exact-type checks but not the MethodType check (SP-r6-4). The `code == validator[1]` survivor is "unverified equivalent", as the round-5 disposition said. - F4 residual (operator ruling; ad41dd8d Q2 wording): the boundary assumes that the trusted validator code and module globals, and the private normalized mapping of a KeyRing built through its constructor, stay intact. F4 replaces that mapping after construction and falls inside this assumption. A configured resolver callback, its exception accessors and caller-supplied path behavior stay inside the supported boundary, including during classification and path capture. None can stand in for the comparison. - The equivalent survivors above. ## Probes All in /Users/piers/src/_architect/dd469-minds-2026-11-16/r6-probes/: `spec/test_r6_spec_probe.py`, `standards/test_r6_st_probe.py`, `security/test_r6_sec_probe.py` (F8 to F16). The guide pushes the fix on the PR branch and reports the new head on corr pr48-r6.
Collaborator

spec-verify-dispatch Half B for dev/attention-mind-mcp#33 dd-469-6-child-5-7-durable-transition-and-quarantine completed integration verify.

  • PR: #48
  • Branch: feat/svd-dev-attention-mind-mcp-33-dd-469-6-child-5-7-durable-d2b4c2a7
  • Commit: ad18dd6424
  • 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/80/1
  • Checks: required ci/woodpecker/pr/validation resolved pass by CI-wait poll
  • Warning: Remote CI ci/woodpecker/pr/validation is still pending on head ad18dd6424; the runner must re-poll it.
  • Warning: CONV-23 reader-row check and branch comparison against base 0828c1ef remain merge-gate checks. Locally, the diff touches exactly the seven spec files and the protocol hash matches the frozen value 1aaab9cb.
  • Warning: Scenario tracing checked that every test name in the Test Strategy table exists in the collected node ids (679 collected, 0 missing). It did not execute each per-scenario -k filter separately.
  • Warning: I did not read PR comments or reviews, so I make no claim about independent review.
  • CI wait: ci/woodpecker/pr/validation -> pass
  • Decision: merge disposition is the operator's; run ready (codex-svd ship --run-id 20261121T104247Z-d2b4c2a7 available to a permitted seat)

label flip withheld (--no-label-writes); gate label is the orchestrator's act — actor unset

spec-verify-dispatch Half B for dev/attention-mind-mcp#33 dd-469-6-child-5-7-durable-transition-and-quarantine completed integration verify. - PR: https://git.groupthink.asia/dev/attention-mind-mcp/pulls/48 - Branch: feat/svd-dev-attention-mind-mcp-33-dd-469-6-child-5-7-durable-d2b4c2a7 - Commit: ad18dd64240300a12f7f3151ffa97ceb614ee03d - 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/80/1 - Checks: required ci/woodpecker/pr/validation resolved pass by CI-wait poll - Warning: Remote CI ci/woodpecker/pr/validation is still pending on head ad18dd642403; the runner must re-poll it. - Warning: CONV-23 reader-row check and branch comparison against base 0828c1ef remain merge-gate checks. Locally, the diff touches exactly the seven spec files and the protocol hash matches the frozen value 1aaab9cb. - Warning: Scenario tracing checked that every test name in the Test Strategy table exists in the collected node ids (679 collected, 0 missing). It did not execute each per-scenario -k filter separately. - Warning: I did not read PR comments or reviews, so I make no claim about independent review. - CI wait: ci/woodpecker/pr/validation -> pass - Decision: merge disposition is the operator's; run ready (`codex-svd ship --run-id 20261121T104247Z-d2b4c2a7` available to a permitted seat) label flip withheld (--no-label-writes); gate label is the orchestrator's act — actor unset
Author
Member

PR #48 round 7: guide dispositions

Head ad18dd6, spec-v13 sha256 10b8a093, base 0828c1ef. Three fresh independent reviews: Spec FAIL (one test gap), Standards PASS, §19 Security PASS. All six round-6 items are fixed in code, and no earlier-round item regressed. mind-spec fit answer bf3ee04d (corr pr48-r7-fit) accommodates all three questions. Operator ruling (§6, round 7): fix SEC-r7-1 in this child; extend the F4 residual for SEC-r7-2 and SP-r7-5; fix all Spec and Standards items this round. The guide writes and pushes the fix, as in rounds 5 and 6. No spec amendment.

Round-6 items confirmed fixed: R6-1 to R6-6, the ad41dd8d Q1 orphan rider, nits 7 to 10. The R6-4 KeyCustody side is correct in code but unpinned (item 2).

Code fix (should-fix, operator ruling)

  1. R7-1 (Security SEC-r7-1; bf3ee04d Q1). _custody_names keeps relative directory names verbatim (recovery_transition.py:2690-2704). Corroboration resolves them against the working directory at the time it runs (:2747). Security probe P1: a resolver callback calls os.chdir into directories whose copies differ, then raises key_custody_contradictory. Result: durable 1, kept after a good reopen; the control is READY 0. Guide reproduced at ad18dd6.
    • Fix: capture os.getcwd() with the names before the call, and join each name to it with no lexical normalization, so OS path semantics stay as they are.
    • Test: test_forged_validator_code_is_not_proof[relative_names_chdir]. It fails at ad18dd6.

Test-only fix (blocking)

  1. R7-2 (Spec SP-r7-1). The KeyCustody identity checks (:2721, :2745) are unpinned. Mutants that drop both checks, or change both to ==, pass all 48 key-resolution cases. [custody_alias] is refused by the tuple check instead, because its directories are not a tuple.
    • Tests: [custody_alias] now gives an aliased foreign resolver an exact tuple of exact paths to a real contradiction. A new [foreign_decoy] case does the same with a plain foreign class. Both are derived 0, then READY. Spec probe: r7-probes/spec/test_r7_spec_probe.py::test_foreign_resolver_with_decoy_directories_is_derived.

Should-fix

  1. R7-3 (Standards ST-r7-2). The KeyRing half of the captured-function rule is unpinned. With the class KeyRing.resolve in place of _KEYRING_RESOLVE (M04c), all 56 cases pass; the guide reproduced 55 of 55. Test: test_resolver_overrides_cannot_prove_recorded_key_conflict[keyring_class_patch]. M05b, the KeyCustody identity check changed to ==, is now killed by item 2.
  2. R7-4 (Spec SP-r7-3). The fresh-error rule is pinned only with key_unavailable as the first read. A mutant that re-raises the resolver's error for other transient codes survives. Test: test_resolver_error_is_checked_once now runs the first read over every code in _KEY_RESOLUTION_FAULTS.
  3. R7-5 (Standards ST-r7-1, Spec SP-r7-4). test_resolver_classification_fault_is_derived builds seen but never asserts it. The type_hash and method_class faults never fire at head, yet the round-6 disposition counted them as pins of R6-1. The orphan raising_args:key_custody_contradictory case stays green without the guard, because a contradiction on an unbound orphan is not torn.
    • Tests: seen is asserted. The args fault must be read; the type-hash and bound-method faults must stay unread, as regression guards. The args property records its own read.
    • PR body: R6-1 is pinned by [args:*] ×3 and the orphan raising_args:envelope_* ×2 only.
  4. R7-6 (Spec SP-r7-2). The round-6 body and disposition say corroboration must reproduce "the same code". It does not compare the claimed code with the proof. The claimed code only prompts the comparison, and the proof code is whatever the genuine comparison raises. This fits ad41dd8d Q1 ("the comparison supplies the evidence"). PR body: say so in those words.

Nits

  1. ST-r7-3: in [fspath_redirect], [directories_redirect] and [text_subclass_segment], calls now records each real read of the configuration or path, instead of a fixed append.
  2. ST-r7-4: [corroborated_contradiction] no longer reassigns the parametrized fault. It runs genuine custody through the reconcile and the reopen, and asserts durable 0, the full charge and the staged file directly.
  3. ST-r7-5:
    • Drop cast and its import; strict mypy narrows type(resolver) is crypto.KeyCustody.
    • Drop the duplicate names = None; the capture guard moves inside the helper.
    • Comment the private KeyCustody._directories read.
    • Rename names to directories, because names already means prepared file names elsewhere in the module.

Record in the PR body

  • Round-2 to round-6 residuals still apply.
  • Extend the F4 residual (operator ruling; bf3ee04d Q2, Q3):
    • The boundary assumes that the trusted validator code and module globals, and the private normalized mapping of a KeyRing built through its constructor with the frozen KeyEntry values in it, stay intact.
    • It also assumes that its own frames and the objects it captured are not rewritten through interpreter introspection (frame locals, gc, ctypes).
    • F4 (Security r5), the KeyEntry purpose flip (Spec SP-r7-5) and the frame-locals rewrite (Security SEC-r7-2) fall inside these assumptions.
    • Configured callbacks remain in scope for every other behavior, including during classification and path capture. None can stand in for the comparison.
  • Correct the round-6 red-side count: 8 of the 22 new cases pass at 55db5f8, not 2.
  • Correct the round-6 table rows for R6-1 (item 5) and SP-r6-1 (item 2).
  • Record the ruled durable cases that Security re-measured:
    • A callback that plants a real contradictory copy (P3) reaches durable 1 through a genuine comparison.
    • A resolver that returns an entry with the wrong purpose (P4) reaches durable 1, as ruled in ed6241ec.
    • Corroboration closes forged proof by a raised code. It does not stop a hostile resolver from forcing durable quarantine through a real disagreement.
  • Equivalent survivors: the exact-str check and the exact error type, as in round 6.

Probes

All in /Users/piers/src/_architect/dd469-minds-2026-11-16/r7-probes/: spec/test_r7_spec_probe.py, standards/test_r7_st_probe.py, security/test_r7_sec_probe.py (P1 to P5).

The guide pushes the fix on the PR branch and reports the new head on corr pr48-r7.

# PR #48 round 7: guide dispositions Head ad18dd6, spec-v13 sha256 10b8a093, base 0828c1ef. Three fresh independent reviews: Spec FAIL (one test gap), Standards PASS, §19 Security PASS. All six round-6 items are fixed in code, and no earlier-round item regressed. mind-spec fit answer bf3ee04d (corr pr48-r7-fit) accommodates all three questions. Operator ruling (§6, round 7): fix SEC-r7-1 in this child; extend the F4 residual for SEC-r7-2 and SP-r7-5; fix all Spec and Standards items this round. The guide writes and pushes the fix, as in rounds 5 and 6. No spec amendment. Round-6 items confirmed fixed: R6-1 to R6-6, the ad41dd8d Q1 orphan rider, nits 7 to 10. The R6-4 KeyCustody side is correct in code but unpinned (item 2). ## Code fix (should-fix, operator ruling) 1. **R7-1 (Security SEC-r7-1; bf3ee04d Q1).** `_custody_names` keeps relative directory names verbatim (recovery_transition.py:2690-2704). Corroboration resolves them against the working directory at the time it runs (:2747). Security probe P1: a resolver callback calls `os.chdir` into directories whose copies differ, then raises `key_custody_contradictory`. Result: durable 1, kept after a good reopen; the control is READY 0. Guide reproduced at ad18dd6. - Fix: capture `os.getcwd()` with the names before the call, and join each name to it with no lexical normalization, so OS path semantics stay as they are. - Test: `test_forged_validator_code_is_not_proof[relative_names_chdir]`. It fails at ad18dd6. ## Test-only fix (blocking) 2. **R7-2 (Spec SP-r7-1).** The KeyCustody identity checks (:2721, :2745) are unpinned. Mutants that drop both checks, or change both to `==`, pass all 48 key-resolution cases. `[custody_alias]` is refused by the tuple check instead, because its directories are not a tuple. - Tests: `[custody_alias]` now gives an aliased foreign resolver an exact tuple of exact paths to a real contradiction. A new `[foreign_decoy]` case does the same with a plain foreign class. Both are derived 0, then READY. Spec probe: `r7-probes/spec/test_r7_spec_probe.py::test_foreign_resolver_with_decoy_directories_is_derived`. ## Should-fix 3. **R7-3 (Standards ST-r7-2).** The KeyRing half of the captured-function rule is unpinned. With the class `KeyRing.resolve` in place of `_KEYRING_RESOLVE` (M04c), all 56 cases pass; the guide reproduced 55 of 55. Test: `test_resolver_overrides_cannot_prove_recorded_key_conflict[keyring_class_patch]`. M05b, the KeyCustody identity check changed to `==`, is now killed by item 2. 4. **R7-4 (Spec SP-r7-3).** The fresh-error rule is pinned only with `key_unavailable` as the first read. A mutant that re-raises the resolver's error for other transient codes survives. Test: `test_resolver_error_is_checked_once` now runs the first read over every code in `_KEY_RESOLUTION_FAULTS`. 5. **R7-5 (Standards ST-r7-1, Spec SP-r7-4).** `test_resolver_classification_fault_is_derived` builds `seen` but never asserts it. The `type_hash` and `method_class` faults never fire at head, yet the round-6 disposition counted them as pins of R6-1. The orphan `raising_args:key_custody_contradictory` case stays green without the guard, because a contradiction on an unbound orphan is not torn. - Tests: `seen` is asserted. The args fault must be read; the type-hash and bound-method faults must stay unread, as regression guards. The args property records its own read. - PR body: R6-1 is pinned by `[args:*]` ×3 and the orphan `raising_args:envelope_*` ×2 only. 6. **R7-6 (Spec SP-r7-2).** The round-6 body and disposition say corroboration must reproduce "the same code". It does not compare the claimed code with the proof. The claimed code only prompts the comparison, and the proof code is whatever the genuine comparison raises. This fits ad41dd8d Q1 ("the comparison supplies the evidence"). PR body: say so in those words. ## Nits 7. ST-r7-3: in `[fspath_redirect]`, `[directories_redirect]` and `[text_subclass_segment]`, `calls` now records each real read of the configuration or path, instead of a fixed append. 8. ST-r7-4: `[corroborated_contradiction]` no longer reassigns the parametrized `fault`. It runs genuine custody through the reconcile and the reopen, and asserts durable 0, the full charge and the staged file directly. 9. ST-r7-5: - Drop `cast` and its import; strict mypy narrows `type(resolver) is crypto.KeyCustody`. - Drop the duplicate `names = None`; the capture guard moves inside the helper. - Comment the private `KeyCustody._directories` read. - Rename `names` to `directories`, because `names` already means prepared file names elsewhere in the module. ## Record in the PR body - Round-2 to round-6 residuals still apply. - Extend the F4 residual (operator ruling; bf3ee04d Q2, Q3): - The boundary assumes that the trusted validator code and module globals, and the private normalized mapping of a KeyRing built through its constructor with the frozen KeyEntry values in it, stay intact. - It also assumes that its own frames and the objects it captured are not rewritten through interpreter introspection (frame locals, gc, ctypes). - F4 (Security r5), the KeyEntry purpose flip (Spec SP-r7-5) and the frame-locals rewrite (Security SEC-r7-2) fall inside these assumptions. - Configured callbacks remain in scope for every other behavior, including during classification and path capture. None can stand in for the comparison. - Correct the round-6 red-side count: 8 of the 22 new cases pass at 55db5f8, not 2. - Correct the round-6 table rows for R6-1 (item 5) and SP-r6-1 (item 2). - Record the ruled durable cases that Security re-measured: - A callback that plants a real contradictory copy (P3) reaches durable 1 through a genuine comparison. - A resolver that returns an entry with the wrong purpose (P4) reaches durable 1, as ruled in ed6241ec. - Corroboration closes forged proof by a raised code. It does not stop a hostile resolver from forcing durable quarantine through a real disagreement. - Equivalent survivors: the exact-`str` check and the exact error type, as in round 6. ## Probes All in /Users/piers/src/_architect/dd469-minds-2026-11-16/r7-probes/: `spec/test_r7_spec_probe.py`, `standards/test_r7_st_probe.py`, `security/test_r7_sec_probe.py` (P1 to P5). The guide pushes the fix on the PR branch and reports the new head on corr pr48-r7.
Collaborator

spec-verify-dispatch Half B for dev/attention-mind-mcp#33 dd-469-6-child-5-7-durable-transition-and-quarantine completed integration verify.

  • PR: #48
  • Branch: feat/svd-dev-attention-mind-mcp-33-dd-469-6-child-5-7-durable-d2b4c2a7
  • Commit: cec9e255fb
  • 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/81/1
  • Checks: required ci/woodpecker/pr/validation resolved pass by CI-wait poll
  • Warning: Remote CI ci/woodpecker/pr/validation is still pending; the runner re-polls it.
  • Warning: The spec's CONV-23 reader-row check and branch comparison are merge-gate checks. I did not verify them independently beyond the passing test_wire_readiness_reader_accepts_only_ready and the in-footprint diff.
  • Warning: I did not read the PR comments or reviews, so I make no claim about independent review.
  • CI wait: ci/woodpecker/pr/validation -> pass
  • Decision: merge disposition is the operator's; run ready (codex-svd ship --run-id 20261121T104247Z-d2b4c2a7 available to a permitted seat)

label flip withheld (--no-label-writes); gate label is the orchestrator's act — actor unset

spec-verify-dispatch Half B for dev/attention-mind-mcp#33 dd-469-6-child-5-7-durable-transition-and-quarantine completed integration verify. - PR: https://git.groupthink.asia/dev/attention-mind-mcp/pulls/48 - Branch: feat/svd-dev-attention-mind-mcp-33-dd-469-6-child-5-7-durable-d2b4c2a7 - Commit: cec9e255fbc712c0ff4c593ab1a5b396c6364767 - 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/81/1 - Checks: required ci/woodpecker/pr/validation resolved pass by CI-wait poll - Warning: Remote CI ci/woodpecker/pr/validation is still pending; the runner re-polls it. - Warning: The spec's CONV-23 reader-row check and branch comparison are merge-gate checks. I did not verify them independently beyond the passing test_wire_readiness_reader_accepts_only_ready and the in-footprint diff. - Warning: I did not read the PR comments or reviews, so I make no claim about independent review. - CI wait: ci/woodpecker/pr/validation -> pass - Decision: merge disposition is the operator's; run ready (`codex-svd ship --run-id 20261121T104247Z-d2b4c2a7` available to a permitted seat) label flip withheld (--no-label-writes); gate label is the orchestrator's act — actor unset
Author
Member

PR #48 round 8: guide dispositions

Head cec9e25, spec-v13 sha256 10b8a093, base 0828c1ef. Three fresh independent reviews: Spec FAIL (one test gap), Standards PASS, §19 Security PASS. All round-7 items are fixed in code, and each named test kills the mutant that undoes its fix. No earlier-round item regressed. Spec's full suite at head: 1667 passed. mind-spec answer to fd282c1a (corr pr48-r8-fit) accommodates all three fit questions. Operator ruling (§6, round 8): fix SEC-r8-1, SEC-r8-2 and SEC-r8-3/SP-r8-1 in this child, with SP-r8-3, SP-r8-4 and the Standards nits. The guide writes and pushes the fix, as in rounds 5 to 7. No spec amendment.

Code fixes (should-fix, operator ruling)

  1. R8-1 (Security SEC-r8-1; fd282c1a Q1). cec9e25 captures the working directory as a path string (recovery_transition.py:2700, :2708). A resolver callback that renames that directory away and plants differing copies at its old path makes the rebuilt custody read the planted copies, while the process still reads the agreeing ones. Result: durable 1, kept after a good reopen; the control is READY. Guide reproduced: cec9e25 durable 1, ad18dd6 derived 0 then READY.
    • Fix: record the identity (st_dev, st_ino) of . with the path before the call. At corroboration, when the path no longer names that directory or cannot be read, the result is key_unavailable.
    • Test: test_forged_validator_code_is_not_proof[relative_names_renamed]. It fails at cec9e25.
  2. R8-2 (Security SEC-r8-2, Spec SP-r8-2; fd282c1a Q2). A regression from cec9e25: os.getcwd() runs even when every name is absolute. With a deleted working directory the capture gives None, and a genuine contradiction between absolute directories becomes derived instead of durable (spec L320). Guide reproduced: cec9e25 derived 0, ad18dd6 durable 1.
    • Fix: read the working directory only when some name is relative. Absolute names are used exactly as configured.
    • Test: test_bound_key_validator_conflict_survives_reopen[key_custody_deleted_cwd]. It deletes its own temporary directory; no chmod. It fails at cec9e25.

Test-only fix (blocking)

  1. R8-3 (Spec SP-r8-1, Security SEC-r8-3, Standards ST-r8-2; fd282c1a Q3). Nothing pins that the rebuilt custody reads exactly the configured paths, as the OS reads them. The abspath, normpath and realpath mutants pass every key-resolution case; under them a forged code reaches a real disagreement the genuine validator never reads (durable 1).
    • Tests in test_forged_validator_code_is_not_proof, each derived 0, then READY:
      • [symlink_dotdot_names], [symlink_dotdot_absolute]: a .. after a symlink, relative and absolute.
      • [symlinked_directory], [symlinked_directory_relative]: a configured directory that is itself a symlink, which the genuine read refuses as insecure.

Should-fix

  1. R8-4 (Spec SP-r8-3). Nothing pins that a genuine contradiction under relative names stays durable; a mutant that refuses relative names passes. Test: test_bound_key_validator_conflict_survives_reopen[key_custody_relative].

Nits

  1. ST-r8-1 (reuse kind for the capture check): declined. Strict mypy narrows resolver only on type(resolver) is crypto.KeyCustody, not on the stored kind; reusing it needs cast back.
  2. ST-r8-3: the corroborate-side kind is crypto.KeyCustody is removed. Sources exist only when the exact type was captured, so the capture-side identity check alone carries the rule, and [custody_alias] pins it.
  3. ST-r8-4: [corroborated_contradiction] now records the genuine comparison's code and asserts it proved key_custody_contradictory.
  4. SP-r8-4: the PR-body round-six row is reworded. The args fault of [raising_args:key_custody_contradictory] is read at head; the case stays green without the guard only because a contradiction on an unbound orphan is not torn.

Record in the PR body

  • Round-2 to round-7 residuals still apply.
  • Corroboration reads exactly the configured paths: absolute names as given, relative names joined to the captured working directory, with no normalization and no symlink resolution. A captured working directory counts only while its path still names the same directory.
  • Equivalent survivors (guide mutants): taking the directory identity from the captured path instead of . (they name the same directory at capture), and treating a failed stat as unchanged (paths that are gone make the genuine lookup fail anyway). Each KeyCustody identity check alone is no longer a survivor, because only one remains.

Probes

All in /Users/piers/src/_architect/dd469-minds-2026-11-16/r8-probes/: spec/test_r8_spec_probe.py, standards/test_r8_st_probe.py, security/test_r8_sec_probe.py (Q1 to Q5).

The guide pushes the fix on the PR branch and reports the new head on corr pr48-r8.

# PR #48 round 8: guide dispositions Head cec9e25, spec-v13 sha256 10b8a093, base 0828c1ef. Three fresh independent reviews: Spec FAIL (one test gap), Standards PASS, §19 Security PASS. All round-7 items are fixed in code, and each named test kills the mutant that undoes its fix. No earlier-round item regressed. Spec's full suite at head: 1667 passed. mind-spec answer to fd282c1a (corr pr48-r8-fit) accommodates all three fit questions. Operator ruling (§6, round 8): fix SEC-r8-1, SEC-r8-2 and SEC-r8-3/SP-r8-1 in this child, with SP-r8-3, SP-r8-4 and the Standards nits. The guide writes and pushes the fix, as in rounds 5 to 7. No spec amendment. ## Code fixes (should-fix, operator ruling) 1. **R8-1 (Security SEC-r8-1; fd282c1a Q1).** cec9e25 captures the working directory as a path string (recovery_transition.py:2700, :2708). A resolver callback that renames that directory away and plants differing copies at its old path makes the rebuilt custody read the planted copies, while the process still reads the agreeing ones. Result: durable 1, kept after a good reopen; the control is READY. Guide reproduced: cec9e25 durable 1, ad18dd6 derived 0 then READY. - Fix: record the identity (`st_dev`, `st_ino`) of `.` with the path before the call. At corroboration, when the path no longer names that directory or cannot be read, the result is `key_unavailable`. - Test: `test_forged_validator_code_is_not_proof[relative_names_renamed]`. It fails at cec9e25. 2. **R8-2 (Security SEC-r8-2, Spec SP-r8-2; fd282c1a Q2).** A regression from cec9e25: `os.getcwd()` runs even when every name is absolute. With a deleted working directory the capture gives None, and a genuine contradiction between absolute directories becomes derived instead of durable (spec L320). Guide reproduced: cec9e25 derived 0, ad18dd6 durable 1. - Fix: read the working directory only when some name is relative. Absolute names are used exactly as configured. - Test: `test_bound_key_validator_conflict_survives_reopen[key_custody_deleted_cwd]`. It deletes its own temporary directory; no chmod. It fails at cec9e25. ## Test-only fix (blocking) 3. **R8-3 (Spec SP-r8-1, Security SEC-r8-3, Standards ST-r8-2; fd282c1a Q3).** Nothing pins that the rebuilt custody reads exactly the configured paths, as the OS reads them. The `abspath`, `normpath` and `realpath` mutants pass every key-resolution case; under them a forged code reaches a real disagreement the genuine validator never reads (durable 1). - Tests in `test_forged_validator_code_is_not_proof`, each derived 0, then READY: - `[symlink_dotdot_names]`, `[symlink_dotdot_absolute]`: a `..` after a symlink, relative and absolute. - `[symlinked_directory]`, `[symlinked_directory_relative]`: a configured directory that is itself a symlink, which the genuine read refuses as insecure. ## Should-fix 4. **R8-4 (Spec SP-r8-3).** Nothing pins that a genuine contradiction under relative names stays durable; a mutant that refuses relative names passes. Test: `test_bound_key_validator_conflict_survives_reopen[key_custody_relative]`. ## Nits 5. ST-r8-1 (reuse `kind` for the capture check): declined. Strict mypy narrows `resolver` only on `type(resolver) is crypto.KeyCustody`, not on the stored `kind`; reusing it needs `cast` back. 6. ST-r8-3: the corroborate-side `kind is crypto.KeyCustody` is removed. Sources exist only when the exact type was captured, so the capture-side identity check alone carries the rule, and `[custody_alias]` pins it. 7. ST-r8-4: `[corroborated_contradiction]` now records the genuine comparison's code and asserts it proved `key_custody_contradictory`. 8. SP-r8-4: the PR-body round-six row is reworded. The args fault of `[raising_args:key_custody_contradictory]` is read at head; the case stays green without the guard only because a contradiction on an unbound orphan is not torn. ## Record in the PR body - Round-2 to round-7 residuals still apply. - Corroboration reads exactly the configured paths: absolute names as given, relative names joined to the captured working directory, with no normalization and no symlink resolution. A captured working directory counts only while its path still names the same directory. - Equivalent survivors (guide mutants): taking the directory identity from the captured path instead of `.` (they name the same directory at capture), and treating a failed stat as unchanged (paths that are gone make the genuine lookup fail anyway). Each KeyCustody identity check alone is no longer a survivor, because only one remains. ## Probes All in /Users/piers/src/_architect/dd469-minds-2026-11-16/r8-probes/: `spec/test_r8_spec_probe.py`, `standards/test_r8_st_probe.py`, `security/test_r8_sec_probe.py` (Q1 to Q5). The guide pushes the fix on the PR branch and reports the new head on corr pr48-r8.
Collaborator

spec-verify-dispatch Half B for dev/attention-mind-mcp#33 dd-469-6-child-5-7-durable-transition-and-quarantine completed integration verify.

  • PR: #48
  • Branch: feat/svd-dev-attention-mind-mcp-33-dd-469-6-child-5-7-durable-d2b4c2a7
  • Commit: 9d3f8a268f
  • 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/82/1
  • Checks: required ci/woodpecker/pr/validation resolved pass by CI-wait poll
  • Warning: Remote CI ci/woodpecker/pr/validation is still pending on head 9d3f8a268f. It is not a blocker.
  • Warning: The branch comparison, protocol hash and CONV-23 reader-row check remain merge-gate checks. The diff stat against base 0828c1ef touches only the seven Primary Files, and docs/planning is untouched.
  • Warning: Scenario tracing: all 72 rows of the Test Strategy table name tests that exist in the collected tests/test_recovery_transition.py ids (707 ids, 134 functions). I did not run each row's -k filter separately. I did not read the PR comments or reviews.
  • CI wait: ci/woodpecker/pr/validation -> pass
  • Decision: merge disposition is the operator's; run ready (codex-svd ship --run-id 20261121T104247Z-d2b4c2a7 available to a permitted seat)

label flip withheld (--no-label-writes); gate label is the orchestrator's act — actor unset

spec-verify-dispatch Half B for dev/attention-mind-mcp#33 dd-469-6-child-5-7-durable-transition-and-quarantine completed integration verify. - PR: https://git.groupthink.asia/dev/attention-mind-mcp/pulls/48 - Branch: feat/svd-dev-attention-mind-mcp-33-dd-469-6-child-5-7-durable-d2b4c2a7 - Commit: 9d3f8a268f827fe4b4444de9504ffcff11e292d3 - 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/82/1 - Checks: required ci/woodpecker/pr/validation resolved pass by CI-wait poll - Warning: Remote CI ci/woodpecker/pr/validation is still pending on head 9d3f8a268f82. It is not a blocker. - Warning: The branch comparison, protocol hash and CONV-23 reader-row check remain merge-gate checks. The diff stat against base 0828c1ef touches only the seven Primary Files, and docs/planning is untouched. - Warning: Scenario tracing: all 72 rows of the Test Strategy table name tests that exist in the collected tests/test_recovery_transition.py ids (707 ids, 134 functions). I did not run each row's -k filter separately. I did not read the PR comments or reviews. - CI wait: ci/woodpecker/pr/validation -> pass - Decision: merge disposition is the operator's; run ready (`codex-svd ship --run-id 20261121T104247Z-d2b4c2a7` available to a permitted seat) label flip withheld (--no-label-writes); gate label is the orchestrator's act — actor unset
Author
Member

PR #48 round 9: guide dispositions

Head 9d3f8a2, spec-v13 sha256 10b8a093, base 0828c1ef. Three fresh independent reviews: Spec FAIL (one test gap), Standards PASS (four nits), §19 Security FAIL (one test gap, one should-fix). All round-8 items are fixed in code, and each named test kills the mutant that undoes its fix. No earlier-round item regressed. mind-spec answer b2f06ecd to e83aaeef (corr pr48-r9-fit) accommodates both fit questions. Operator ruling (§6, round 9): fix SEC-r9-1 and SEC-r9-2 in this child, with the Standards nits, and record the st_ino-only comparison as an untestable residual. The guide writes and pushes the fix, as in rounds 5 to 8. No spec amendment.

Test-only fix (blocking)

  1. R9-1 (Spec SP-r9-1, Security SEC-r9-1; b2f06ecd Q2). The round-8 nit 6 removed the corroborate-side exact-type check. The capture-side type(resolver) is crypto.KeyCustody is now the only KeyCustody provenance check, and no test pins that it is exact. An isinstance mutant passes every key-resolution case. Under it, a KeyCustody subclass that configures a real contradiction it never reads, then forges the code, reaches durable 1, kept after a good reopen.
    • Test: test_forged_validator_code_is_not_proof[custody_subclass], built on _contradictory_copies. Derived 0, then READY. It fails under the isinstance mutant.

Code fix (should-fix, operator ruling)

  1. R9-2 (Security SEC-r9-2; b2f06ecd Q1). 9d3f8a2 joins relative names to a captured os.getcwd() path and checks that path's identity. Two routes lose a proved durable case (spec L320), both durable 1 at ad18dd6:
    • absolute directories that genuinely disagree plus one relative name, with a deleted working directory (os.getcwd() raises, so the capture gives None);
    • a working directory whose path cannot be stat'ed (an unsearchable parent), although the process still reads the contradiction.
    • Fix: drop os.getcwd() and the join. Relative names stay exactly as configured. When any name is relative, the boundary records the identity (st_dev, st_ino) of . before the call. Corroboration reads the relative names only while . is still that directory; otherwise the result is key_unavailable. Absolute-only custody records nothing and reads its names as given.
    • Tests in test_bound_key_validator_conflict_survives_reopen, each durable 1, kept after a good reopen:
      • [key_custody_mixed_deleted_cwd]: two absolute directories that disagree, one relative name, and a deleted working directory. It deletes its own temporary directory; no chmod. It fails at 9d3f8a2.
      • [key_custody_callback_chdir]: a callback leaves the working directory, then runs the genuine lookup over absolute directories that disagree. A chdir cannot hide a genuine disagreement.
    • The unsearchable-parent route is fixed by construction, because the identity check stats . and makes no path lookup. It has no CI test: CI runs as root, and a chmod cannot make a parent unsearchable for root.

Nits

  1. ST-r9-1: the capture comment now says the helper returns None "when reading them or the working directory raises".
  2. ST-r9-2: resolved by the fix. _CustodySources keeps one optional field, identity; base is gone.
  3. ST-r9-3: recorded in the PR body as an untestable residual. Comparing st_ino only matters only when another filesystem is mounted at the same place with the same inode number. That needs mount privilege, and a unit test cannot set it up.
  4. ST-r9-4: assert proofs and set(proofs) == {...} drops proofs and. [symlinked_directory_relative] and [key_custody_relative] no longer build a throwaway absolute KeyCustody first.

Corrections to earlier records

  • The round-8 disposition (nit 6) and the PR-body round-eight sentence said the capture-side check alone carries the rule and that [custody_alias] pins it. [custody_alias] kills only the == form, because its metaclass alias is not a subclass. [custody_subclass] now pins exactness.
  • The round-8 equivalent-survivor sentence "Each KeyCustody identity check alone is no longer a survivor, because only one remains" was wrong: the remaining check was unpinned against isinstance. Item 1 closes it.

Record in the PR body

  • Round-2 to round-8 residuals still apply.
  • Behavior change from 9d3f8a2 (b2f06ecd Q1): a working directory renamed during the call is read as the same directory, by identity, not refused. A chdir during the call is still refused. [relative_names_renamed] stays derived 0, then READY, because corroboration reads the agreeing copies that the process reads.
  • Residuals: comparing st_ino only is untestable (item 5). A failed stat of . treated as unchanged is equivalent, because the rebuilt lookup of a relative name then fails too and never gives the proof code. Unverified races (a callback thread that moves the directory between the identity check and the reads, or inode reuse) reach the ruled P3 outcome only, because the callback must write to custody.

Probes

All in /Users/piers/src/_architect/dd469-minds-2026-11-16/r9-probes/: spec/test_r9_*, security/test_r9_sec_probe.py and security/candidate_fix.py. The fix follows the candidate.

The guide pushes the fix on the PR branch and reports the new head on corr pr48-r9.

# PR #48 round 9: guide dispositions Head 9d3f8a2, spec-v13 sha256 10b8a093, base 0828c1ef. Three fresh independent reviews: Spec FAIL (one test gap), Standards PASS (four nits), §19 Security FAIL (one test gap, one should-fix). All round-8 items are fixed in code, and each named test kills the mutant that undoes its fix. No earlier-round item regressed. mind-spec answer b2f06ecd to e83aaeef (corr pr48-r9-fit) accommodates both fit questions. Operator ruling (§6, round 9): fix SEC-r9-1 and SEC-r9-2 in this child, with the Standards nits, and record the `st_ino`-only comparison as an untestable residual. The guide writes and pushes the fix, as in rounds 5 to 8. No spec amendment. ## Test-only fix (blocking) 1. **R9-1 (Spec SP-r9-1, Security SEC-r9-1; b2f06ecd Q2).** The round-8 nit 6 removed the corroborate-side exact-type check. The capture-side `type(resolver) is crypto.KeyCustody` is now the only KeyCustody provenance check, and no test pins that it is exact. An `isinstance` mutant passes every key-resolution case. Under it, a KeyCustody subclass that configures a real contradiction it never reads, then forges the code, reaches durable 1, kept after a good reopen. - Test: `test_forged_validator_code_is_not_proof[custody_subclass]`, built on `_contradictory_copies`. Derived 0, then READY. It fails under the `isinstance` mutant. ## Code fix (should-fix, operator ruling) 2. **R9-2 (Security SEC-r9-2; b2f06ecd Q1).** 9d3f8a2 joins relative names to a captured `os.getcwd()` path and checks that path's identity. Two routes lose a proved durable case (spec L320), both durable 1 at ad18dd6: - absolute directories that genuinely disagree plus one relative name, with a deleted working directory (`os.getcwd()` raises, so the capture gives None); - a working directory whose path cannot be stat'ed (an unsearchable parent), although the process still reads the contradiction. - Fix: drop `os.getcwd()` and the join. Relative names stay exactly as configured. When any name is relative, the boundary records the identity (`st_dev`, `st_ino`) of `.` before the call. Corroboration reads the relative names only while `.` is still that directory; otherwise the result is `key_unavailable`. Absolute-only custody records nothing and reads its names as given. - Tests in `test_bound_key_validator_conflict_survives_reopen`, each durable 1, kept after a good reopen: - `[key_custody_mixed_deleted_cwd]`: two absolute directories that disagree, one relative name, and a deleted working directory. It deletes its own temporary directory; no chmod. It fails at 9d3f8a2. - `[key_custody_callback_chdir]`: a callback leaves the working directory, then runs the genuine lookup over absolute directories that disagree. A chdir cannot hide a genuine disagreement. - The unsearchable-parent route is fixed by construction, because the identity check stats `.` and makes no path lookup. It has no CI test: CI runs as root, and a chmod cannot make a parent unsearchable for root. ## Nits 3. ST-r9-1: the capture comment now says the helper returns None "when reading them or the working directory raises". 4. ST-r9-2: resolved by the fix. `_CustodySources` keeps one optional field, `identity`; `base` is gone. 5. ST-r9-3: recorded in the PR body as an untestable residual. Comparing `st_ino` only matters only when another filesystem is mounted at the same place with the same inode number. That needs mount privilege, and a unit test cannot set it up. 6. ST-r9-4: `assert proofs and set(proofs) == {...}` drops `proofs and`. `[symlinked_directory_relative]` and `[key_custody_relative]` no longer build a throwaway absolute KeyCustody first. ## Corrections to earlier records - The round-8 disposition (nit 6) and the PR-body round-eight sentence said the capture-side check alone carries the rule and that `[custody_alias]` pins it. `[custody_alias]` kills only the `==` form, because its metaclass alias is not a subclass. `[custody_subclass]` now pins exactness. - The round-8 equivalent-survivor sentence "Each KeyCustody identity check alone is no longer a survivor, because only one remains" was wrong: the remaining check was unpinned against `isinstance`. Item 1 closes it. ## Record in the PR body - Round-2 to round-8 residuals still apply. - Behavior change from 9d3f8a2 (b2f06ecd Q1): a working directory renamed during the call is read as the same directory, by identity, not refused. A chdir during the call is still refused. `[relative_names_renamed]` stays derived 0, then READY, because corroboration reads the agreeing copies that the process reads. - Residuals: comparing `st_ino` only is untestable (item 5). A failed stat of `.` treated as unchanged is equivalent, because the rebuilt lookup of a relative name then fails too and never gives the proof code. Unverified races (a callback thread that moves the directory between the identity check and the reads, or inode reuse) reach the ruled P3 outcome only, because the callback must write to custody. ## Probes All in /Users/piers/src/_architect/dd469-minds-2026-11-16/r9-probes/: `spec/test_r9_*`, `security/test_r9_sec_probe.py` and `security/candidate_fix.py`. The fix follows the candidate. The guide pushes the fix on the PR branch and reports the new head on corr pr48-r9.
Collaborator

spec-verify-dispatch Half B for dev/attention-mind-mcp#33 dd-469-6-child-5-7-durable-transition-and-quarantine completed integration verify.

  • PR: #48
  • Branch: feat/svd-dev-attention-mind-mcp-33-dd-469-6-child-5-7-durable-d2b4c2a7
  • Commit: 4982f3f098
  • Build: none
  • Test: red
  • Reader audit clean: True
  • Spec fidelity: True
  • Ready for merge: False
  • Check ci/woodpecker/pr/validation: pending https://ci.groupthink.asia/repos/76/pipeline/83/1
  • Checks: Head 4982f3f. Unit passed, 1611 tests. Transport failed in all 3 runs, 2 of 66 each time, with a different pair of tests each run. All failures are in unchanged tests; the common cause is an empty barrier file read. ruff and mypy are clean. Scenario collection is complete. The forge status ci/woodpecker/pr/validation is pending. Not ready for merge.
  • Blocker: Test failed: tests/test_queries.py::test_http_release_fence_revocation[erase-get]
  • Blocker: Test failed: tests/test_queries.py::test_http_release_fence_revocation[none-get]
  • Blocker: Test failed: tests/test_commands.py::test_writer_kill_and_retry[before_commit-conflict]
  • Blocker: Test failed: tests/test_commands.py::test_writer_kill_and_retry[after_commit-submit]
  • Blocker: Test failed: tests/test_commands.py::test_writer_kill_and_retry[after_commit-conflict]
  • Blocker: Test failed: tests/test_queries.py::test_http_release_fence_revocation[revoke-get]
  • Blocker cause: work for Test failed: tests/test_queries.py::test_http_release_fence_revocation[erase-get]; no denial signature; evidence: tests/test_queries.py:836 AssertionError: assert '' == 'before_release' (transport run 1, exit 1)
  • Blocker cause: work for Test failed: tests/test_queries.py::test_http_release_fence_revocation[none-get]; no denial signature; evidence: httpx.ReadTimeout: timed out at future.result(timeout=10), tests/test_queries.py:840 (transport run 1, exit 1)
  • Blocker cause: work for Test failed: tests/test_commands.py::test_writer_kill_and_retry[before_commit-conflict]; no denial signature; evidence: tests/test_commands.py:1122 AssertionError: assert '' == 'before_commit' (transport run 2, exit 1)
  • Blocker cause: work for Test failed: tests/test_commands.py::test_writer_kill_and_retry[after_commit-submit]; no denial signature; evidence: tests/test_commands.py:1122 AssertionError: assert '' == 'after_commit' (transport run 2, exit 1)
  • Blocker cause: work for Test failed: tests/test_commands.py::test_writer_kill_and_retry[after_commit-conflict]; no denial signature; evidence: tests/test_commands.py:1122 AssertionError: assert '' == 'after_commit' (transport run 3, exit 1)
  • Blocker cause: work for Test failed: tests/test_queries.py::test_http_release_fence_revocation[revoke-get]; no denial signature; evidence: tests/test_queries.py:836 AssertionError: assert '' == 'before_release' (transport run 3, exit 1)
  • Warning: The transport failures look like a race in unchanged test harness code. The server script at tests/test_commands.py:900 uses (root / "barrier").write_text(name), which creates an empty file and then writes it. The parent test reads the file in between. I did not run the pristine base, so I cannot prove the race is not made likelier by this PR's slower startup. Each of the three transport runs failed 2 of 66 tests, and the failing tests differed between runs. Neither tests/test_commands.py nor tests/test_queries.py is in the diff. The spec asks for a base re-measure of the transport failure set, and it was not done here.
  • Warning: The scenario-to-test trace passed. All 71 named-test rows are collected under their spec -k filters, and the file has 710 collected tests. The 'Frozen bytes unchanged' row names no test. It is a merge-gate diff and hash check, which I did not run. The diff covers exactly the seven Primary Files.
  • Warning: readerAuditClean rests on the green unit suite (1611 passed), which includes the unchanged readers in test_commands, test_queries and the recovery archive and staging tests. I did not do a separate manual CONV-23 reader-row audit.
  • Warning: Forge status ci/woodpecker/pr/validation is pending on head 4982f3f. I did not read the PR comments or reviews, so I make no claim about independent review.
  • Warning: self-review: I recorded no 'not fixed' entries.
  • Base failure evidence: tests/test_queries.py::test_http_release_fence_revocation[erase-get] preExistingAtBase=null; kind: pytest-exit; reason: pytest exit 4: usage error at base (node id not found); base 0828c1ef5a; host=voyager; python3=/nix/store/q27ffdqgbpxbz4d0zfdyzg4jkfn83z7s-python3-3.14.7-env/bin/python3; resolved=/nix/store/q27ffdqgbpxbz4d0zfdyzg4jkfn83z7s-python3-3.14.7-env/bin/python3.14; version=3.14.7; pytest=9.1.1
  • Base failure evidence: tests/test_queries.py::test_http_release_fence_revocation[none-get] preExistingAtBase=null; kind: pytest-exit; reason: pytest exit 4: usage error at base (node id not found); base 0828c1ef5a; host=voyager; python3=/nix/store/q27ffdqgbpxbz4d0zfdyzg4jkfn83z7s-python3-3.14.7-env/bin/python3; resolved=/nix/store/q27ffdqgbpxbz4d0zfdyzg4jkfn83z7s-python3-3.14.7-env/bin/python3.14; version=3.14.7; pytest=9.1.1
  • Base failure evidence: tests/test_commands.py::test_writer_kill_and_retry[before_commit-conflict] preExistingAtBase=null; kind: pytest-exit; reason: pytest exit 4: usage error at base (node id not found); base 0828c1ef5a; host=voyager; python3=/nix/store/q27ffdqgbpxbz4d0zfdyzg4jkfn83z7s-python3-3.14.7-env/bin/python3; resolved=/nix/store/q27ffdqgbpxbz4d0zfdyzg4jkfn83z7s-python3-3.14.7-env/bin/python3.14; version=3.14.7; pytest=9.1.1
  • Base failure evidence: tests/test_commands.py::test_writer_kill_and_retry[after_commit-submit] preExistingAtBase=null; kind: pytest-exit; reason: pytest exit 4: usage error at base (node id not found); base 0828c1ef5a; host=voyager; python3=/nix/store/q27ffdqgbpxbz4d0zfdyzg4jkfn83z7s-python3-3.14.7-env/bin/python3; resolved=/nix/store/q27ffdqgbpxbz4d0zfdyzg4jkfn83z7s-python3-3.14.7-env/bin/python3.14; version=3.14.7; pytest=9.1.1
  • Base failure evidence: tests/test_commands.py::test_writer_kill_and_retry[after_commit-conflict] preExistingAtBase=null; kind: pytest-exit; reason: pytest exit 4: usage error at base (node id not found); base 0828c1ef5a; host=voyager; python3=/nix/store/q27ffdqgbpxbz4d0zfdyzg4jkfn83z7s-python3-3.14.7-env/bin/python3; resolved=/nix/store/q27ffdqgbpxbz4d0zfdyzg4jkfn83z7s-python3-3.14.7-env/bin/python3.14; version=3.14.7; pytest=9.1.1
  • Base failure evidence: tests/test_queries.py::test_http_release_fence_revocation[revoke-get] preExistingAtBase=null; kind: pytest-exit; reason: pytest exit 4: usage error at base (node id not found); base 0828c1ef5a; host=voyager; python3=/nix/store/q27ffdqgbpxbz4d0zfdyzg4jkfn83z7s-python3-3.14.7-env/bin/python3; resolved=/nix/store/q27ffdqgbpxbz4d0zfdyzg4jkfn83z7s-python3-3.14.7-env/bin/python3.14; version=3.14.7; pytest=9.1.1
  • Rework: 0 round(s), outcome escalated
  • Escalation: out-of-scope flag: escalating immediately to a human.
  • Decision: resolve the blockers above and rerun integrate, or park this PR for a human?

label flip withheld (--no-label-writes); gate label is the orchestrator's act — actor unset

spec-verify-dispatch Half B for dev/attention-mind-mcp#33 dd-469-6-child-5-7-durable-transition-and-quarantine completed integration verify. - PR: https://git.groupthink.asia/dev/attention-mind-mcp/pulls/48 - Branch: feat/svd-dev-attention-mind-mcp-33-dd-469-6-child-5-7-durable-d2b4c2a7 - Commit: 4982f3f098ca630c7945aad1718a45183f4e880e - Build: none - Test: red - Reader audit clean: True - Spec fidelity: True - Ready for merge: False - Check ci/woodpecker/pr/validation: pending https://ci.groupthink.asia/repos/76/pipeline/83/1 - Checks: Head 4982f3f. Unit passed, 1611 tests. Transport failed in all 3 runs, 2 of 66 each time, with a different pair of tests each run. All failures are in unchanged tests; the common cause is an empty `barrier` file read. ruff and mypy are clean. Scenario collection is complete. The forge status ci/woodpecker/pr/validation is pending. Not ready for merge. - Blocker: Test failed: tests/test_queries.py::test_http_release_fence_revocation[erase-get] - Blocker: Test failed: tests/test_queries.py::test_http_release_fence_revocation[none-get] - Blocker: Test failed: tests/test_commands.py::test_writer_kill_and_retry[before_commit-conflict] - Blocker: Test failed: tests/test_commands.py::test_writer_kill_and_retry[after_commit-submit] - Blocker: Test failed: tests/test_commands.py::test_writer_kill_and_retry[after_commit-conflict] - Blocker: Test failed: tests/test_queries.py::test_http_release_fence_revocation[revoke-get] - Blocker cause: work for Test failed: tests/test_queries.py::test_http_release_fence_revocation[erase-get]; no denial signature; evidence: tests/test_queries.py:836 AssertionError: assert '' == 'before_release' (transport run 1, exit 1) - Blocker cause: work for Test failed: tests/test_queries.py::test_http_release_fence_revocation[none-get]; no denial signature; evidence: httpx.ReadTimeout: timed out at future.result(timeout=10), tests/test_queries.py:840 (transport run 1, exit 1) - Blocker cause: work for Test failed: tests/test_commands.py::test_writer_kill_and_retry[before_commit-conflict]; no denial signature; evidence: tests/test_commands.py:1122 AssertionError: assert '' == 'before_commit' (transport run 2, exit 1) - Blocker cause: work for Test failed: tests/test_commands.py::test_writer_kill_and_retry[after_commit-submit]; no denial signature; evidence: tests/test_commands.py:1122 AssertionError: assert '' == 'after_commit' (transport run 2, exit 1) - Blocker cause: work for Test failed: tests/test_commands.py::test_writer_kill_and_retry[after_commit-conflict]; no denial signature; evidence: tests/test_commands.py:1122 AssertionError: assert '' == 'after_commit' (transport run 3, exit 1) - Blocker cause: work for Test failed: tests/test_queries.py::test_http_release_fence_revocation[revoke-get]; no denial signature; evidence: tests/test_queries.py:836 AssertionError: assert '' == 'before_release' (transport run 3, exit 1) - Warning: The transport failures look like a race in unchanged test harness code. The server script at tests/test_commands.py:900 uses `(root / "barrier").write_text(name)`, which creates an empty file and then writes it. The parent test reads the file in between. I did not run the pristine base, so I cannot prove the race is not made likelier by this PR's slower startup. Each of the three transport runs failed 2 of 66 tests, and the failing tests differed between runs. Neither tests/test_commands.py nor tests/test_queries.py is in the diff. The spec asks for a base re-measure of the transport failure set, and it was not done here. - Warning: The scenario-to-test trace passed. All 71 named-test rows are collected under their spec `-k` filters, and the file has 710 collected tests. The 'Frozen bytes unchanged' row names no test. It is a merge-gate diff and hash check, which I did not run. The diff covers exactly the seven Primary Files. - Warning: readerAuditClean rests on the green unit suite (1611 passed), which includes the unchanged readers in test_commands, test_queries and the recovery archive and staging tests. I did not do a separate manual CONV-23 reader-row audit. - Warning: Forge status ci/woodpecker/pr/validation is pending on head 4982f3f. I did not read the PR comments or reviews, so I make no claim about independent review. - Warning: self-review: I recorded no 'not fixed' entries. - Base failure evidence: tests/test_queries.py::test_http_release_fence_revocation[erase-get] preExistingAtBase=null; kind: pytest-exit; reason: pytest exit 4: usage error at base (node id not found); base 0828c1ef5a9bdce12610cb4f61060d88915271d2; host=voyager; python3=/nix/store/q27ffdqgbpxbz4d0zfdyzg4jkfn83z7s-python3-3.14.7-env/bin/python3; resolved=/nix/store/q27ffdqgbpxbz4d0zfdyzg4jkfn83z7s-python3-3.14.7-env/bin/python3.14; version=3.14.7; pytest=9.1.1 - Base failure evidence: tests/test_queries.py::test_http_release_fence_revocation[none-get] preExistingAtBase=null; kind: pytest-exit; reason: pytest exit 4: usage error at base (node id not found); base 0828c1ef5a9bdce12610cb4f61060d88915271d2; host=voyager; python3=/nix/store/q27ffdqgbpxbz4d0zfdyzg4jkfn83z7s-python3-3.14.7-env/bin/python3; resolved=/nix/store/q27ffdqgbpxbz4d0zfdyzg4jkfn83z7s-python3-3.14.7-env/bin/python3.14; version=3.14.7; pytest=9.1.1 - Base failure evidence: tests/test_commands.py::test_writer_kill_and_retry[before_commit-conflict] preExistingAtBase=null; kind: pytest-exit; reason: pytest exit 4: usage error at base (node id not found); base 0828c1ef5a9bdce12610cb4f61060d88915271d2; host=voyager; python3=/nix/store/q27ffdqgbpxbz4d0zfdyzg4jkfn83z7s-python3-3.14.7-env/bin/python3; resolved=/nix/store/q27ffdqgbpxbz4d0zfdyzg4jkfn83z7s-python3-3.14.7-env/bin/python3.14; version=3.14.7; pytest=9.1.1 - Base failure evidence: tests/test_commands.py::test_writer_kill_and_retry[after_commit-submit] preExistingAtBase=null; kind: pytest-exit; reason: pytest exit 4: usage error at base (node id not found); base 0828c1ef5a9bdce12610cb4f61060d88915271d2; host=voyager; python3=/nix/store/q27ffdqgbpxbz4d0zfdyzg4jkfn83z7s-python3-3.14.7-env/bin/python3; resolved=/nix/store/q27ffdqgbpxbz4d0zfdyzg4jkfn83z7s-python3-3.14.7-env/bin/python3.14; version=3.14.7; pytest=9.1.1 - Base failure evidence: tests/test_commands.py::test_writer_kill_and_retry[after_commit-conflict] preExistingAtBase=null; kind: pytest-exit; reason: pytest exit 4: usage error at base (node id not found); base 0828c1ef5a9bdce12610cb4f61060d88915271d2; host=voyager; python3=/nix/store/q27ffdqgbpxbz4d0zfdyzg4jkfn83z7s-python3-3.14.7-env/bin/python3; resolved=/nix/store/q27ffdqgbpxbz4d0zfdyzg4jkfn83z7s-python3-3.14.7-env/bin/python3.14; version=3.14.7; pytest=9.1.1 - Base failure evidence: tests/test_queries.py::test_http_release_fence_revocation[revoke-get] preExistingAtBase=null; kind: pytest-exit; reason: pytest exit 4: usage error at base (node id not found); base 0828c1ef5a9bdce12610cb4f61060d88915271d2; host=voyager; python3=/nix/store/q27ffdqgbpxbz4d0zfdyzg4jkfn83z7s-python3-3.14.7-env/bin/python3; resolved=/nix/store/q27ffdqgbpxbz4d0zfdyzg4jkfn83z7s-python3-3.14.7-env/bin/python3.14; version=3.14.7; pytest=9.1.1 - Rework: 0 round(s), outcome escalated - Escalation: out-of-scope flag: escalating immediately to a human. - Decision: resolve the blockers above and rerun integrate, or park this PR for a human? label flip withheld (--no-label-writes); gate label is the orchestrator's act — actor unset
Author
Member

PR #48 round 10: guide dispositions (spec-v14)

Reviewed head 4982f3f, base 0828c1ef; new head 49f6f21. Round-10 reviews: Spec PASS (one should-fix, one nit), Standards PASS (two optional nits), §19 Security FAIL (one blocking test gap, three should-fix). No source-only design fitted the seven-file write set (mind-spec 2576f406), so the operator ruled a spec amendment in this child. Spec-v14 adds recovery_crypto.py as the eighth primary file. Its key-custody scope is KeyCustody, KeyRing construction, the private directory helpers that KeyCustody calls, and the private record registry with its reader. mind-spec accommodated the final text (b4dcfacd and text4), verify run 20261123T090947Z-9e2ebb28 was CLEAN, and the operator approved spec-v14 at sha256 ed311972b1265b9d51bed76bd26a863146a8ce4fbd644bd05a26a54a0e20fdef. The earlier test-only round-10 plan (tests plus cwd residuals) is withdrawn and was never posted. The guide writes and pushes the change, as in rounds 5 to 9.

What the change does (I17, §7)

  • Each KeyCustody and KeyRing gets a private constructor record, keyed by instance identity. The record holds the kind and the exact type at construction. A KeyCustody record also holds the configured names and, when any name is relative, a directory anchor opened at construction. A KeyRing record holds a copy of its entries.
  • KeyCustody reads every relative name through the anchor with dir_fd, one path component at a time, never following a symbolic link. It never reads through the process working directory. The public KeyCustody.resolve reads the same way. KeyCustody.close() closes the anchor. A weakref.finalize closes it when the instance dies.
  • ManagedConfig records the key custody it was built with. Its wrapped __init__ refuses reentry before any field write. __post_init__ stores a record only for an instance that its constructor marked. A standalone call, copy.copy or object.__new__ leaves no record.
  • QueueTransition binds its key reader once, at construction. Binding takes tuple(dict.items(d)) of the config's instance dict and checks for exact str keys. It requires the exact recorded keys object and its recorded type. A mismatch gives unsupported_type. A recorded reader is an engine-owned copy: the names and the engine's own duplicate of the anchor, or the ring's entries. No later change to engine.config, the config, or the custody object reaches it. activate compares the reader it would bind.
  • Unrecorded resolvers keep the base path with the F8 checks. _OpeningKeys and _CustodySources are removed.

Round-10 findings

  1. SEC-r10-1 (blocking; any-for-all mutant on the cwd identity check). Disposed by design. No working-directory identity check remains, because relative names are read through the anchor. Pinned by the custody matrix in test_forged_validator_code_is_not_proof and test_bound_key_validator_conflict_survives_reopen. The matrix covers absolute, relative and mixed custody, with disagreeing and agreeing copies. Its actions are chdir_before, chdir_during, renamed_anchor, deleted_cwd, callback_thread, close_during and copy_removed_during.
  2. SEC-r10-2 (cwd race through a thread or an audit or trace hook). Disposed by design. A working-directory change during the read no longer reaches relative names (chdir_during, callback_thread). Audit, trace and profile hooks are Not defended in the v14 trust boundary. The round-9 race sentence and the planned R10-3 residual are withdrawn.
  3. SEC-r10-3 and SP-r10-1 (mixed custody loses a genuine contradiction when the cwd cannot be confirmed). Disposed by design. The anchor is opened at construction. If it cannot be opened, construction fails closed with key_custody_io. After that, corroboration reads every name, absolute and relative. A genuine contradiction is durable in all three layouts (*-disagree arms, durable through a good reopen). The planned R10-4 residual is withdrawn.
  4. SEC-r10-4 (st_ino premise false). Moot. No inode comparison remains. The round-9 st_ino residual stays withdrawn.
  5. SP-r10-2 (failed-stat survivor wording). Moot. That survivor's code is gone.
  6. ST-r10-1 (rename identity). Moot. The field is removed.
  7. ST-r10-2 (one setup helper per custody variant). Declined, optional, as in the round-10 plan.

Scope note

The guide reads _walk_directory and _DIRECTORY_FLAGS as private directory helpers that KeyCustody calls. _custody_directory and _read_key_file gain an optional anchor argument. With no anchor, they keep base behaviour, so write_key_copy and create_key_file are unchanged. Nothing else in recovery_crypto.py changes. tests/test_recovery_crypto.py is unchanged and passes.

Tests and evidence

  • New: test_key_custody_anchor (11 arms), test_key_reader (15 arms, one per v14 F11 arm), and the custody matrix (42 ids per test in the two tests above).
  • Red side, guide-measured with base src 4982f3f and the new test file: 108 of the selected arms fail and 34 pass. The passing arms guard behaviour that base already has. Four test_key_reader arms are in this group: config_explicit_replacement, evidence_needs_digest_binding, private_access_no_protected_write and direct_quarantine_keeps_unbound_charge. The six copy_removed_during arms of the bound test are also in it.
  • Mutants: each named arm has a one-line mutant that kills it. Honest gaps:
    • Eleven mutants also kill other named arms, because the arms share read paths. "Only its case kills" does not hold for those eleven.
    • The four absolute close_during arms have no killing one-line mutant. Absolute custody holds no descriptor, and the bound reader never consults its record. They stay as behaviour guards.
  • ruff check, ruff format --check and strict mypy src are clean. Full suite: 1791 passed (guide run).

Residuals (v14 trust boundary, Not defended)

The v14 boundary is a closed list. Every action not on it is Defended. The list:

  • changes to the trusted validation dependencies;
  • rewriting the boundary's own frames or captured state;
  • direct writes of protected state, for the state written only;
  • a hook's call to engine._quarantine(), for the durable mark only (the staged file and its full charge stay);
  • audit, trace or profile hooks;
  • writes to process memory or to engine-built objects;
  • closing or replacing a descriptor that the acting code did not open;
  • root-directory or mount-namespace changes;
  • in-thread asynchronous code (signal handlers, gc callbacks, finalizers, async exceptions);
  • resource exhaustion.

Under Ruled P3, close() before binding gives key_unavailable for the engine reader and the public resolve.

Next

The guide pushed the change as 49f6f21 (gitleaks clean for 0828c1ef..HEAD). Next it updates the run's approved spec to spec-v14, and runs integrate, CI, the raw-log audit and the round-11 reviews.

# PR #48 round 10: guide dispositions (spec-v14) Reviewed head 4982f3f, base 0828c1ef; new head 49f6f21. Round-10 reviews: Spec PASS (one should-fix, one nit), Standards PASS (two optional nits), §19 Security FAIL (one blocking test gap, three should-fix). No source-only design fitted the seven-file write set (mind-spec 2576f406), so the operator ruled a spec amendment in this child. Spec-v14 adds `recovery_crypto.py` as the eighth primary file. Its key-custody scope is KeyCustody, KeyRing construction, the private directory helpers that KeyCustody calls, and the private record registry with its reader. mind-spec accommodated the final text (b4dcfacd and text4), verify run 20261123T090947Z-9e2ebb28 was CLEAN, and the operator approved spec-v14 at sha256 `ed311972b1265b9d51bed76bd26a863146a8ce4fbd644bd05a26a54a0e20fdef`. The earlier test-only round-10 plan (tests plus cwd residuals) is withdrawn and was never posted. The guide writes and pushes the change, as in rounds 5 to 9. ## What the change does (I17, §7) - Each `KeyCustody` and `KeyRing` gets a private constructor record, keyed by instance identity. The record holds the kind and the exact type at construction. A KeyCustody record also holds the configured names and, when any name is relative, a directory anchor opened at construction. A KeyRing record holds a copy of its entries. - `KeyCustody` reads every relative name through the anchor with `dir_fd`, one path component at a time, never following a symbolic link. It never reads through the process working directory. The public `KeyCustody.resolve` reads the same way. `KeyCustody.close()` closes the anchor. A `weakref.finalize` closes it when the instance dies. - `ManagedConfig` records the key custody it was built with. Its wrapped `__init__` refuses reentry before any field write. `__post_init__` stores a record only for an instance that its constructor marked. A standalone call, `copy.copy` or `object.__new__` leaves no record. - `QueueTransition` binds its key reader once, at construction. Binding takes `tuple(dict.items(d))` of the config's instance dict and checks for exact `str` keys. It requires the exact recorded `keys` object and its recorded type. A mismatch gives `unsupported_type`. A recorded reader is an engine-owned copy: the names and the engine's own duplicate of the anchor, or the ring's entries. No later change to `engine.config`, the config, or the custody object reaches it. `activate` compares the reader it would bind. - Unrecorded resolvers keep the base path with the F8 checks. `_OpeningKeys` and `_CustodySources` are removed. ## Round-10 findings 1. **SEC-r10-1 (blocking; any-for-all mutant on the cwd identity check).** Disposed by design. No working-directory identity check remains, because relative names are read through the anchor. Pinned by the custody matrix in `test_forged_validator_code_is_not_proof` and `test_bound_key_validator_conflict_survives_reopen`. The matrix covers absolute, relative and mixed custody, with disagreeing and agreeing copies. Its actions are `chdir_before`, `chdir_during`, `renamed_anchor`, `deleted_cwd`, `callback_thread`, `close_during` and `copy_removed_during`. 2. **SEC-r10-2 (cwd race through a thread or an audit or trace hook).** Disposed by design. A working-directory change during the read no longer reaches relative names (`chdir_during`, `callback_thread`). Audit, trace and profile hooks are Not defended in the v14 trust boundary. The round-9 race sentence and the planned R10-3 residual are withdrawn. 3. **SEC-r10-3 and SP-r10-1 (mixed custody loses a genuine contradiction when the cwd cannot be confirmed).** Disposed by design. The anchor is opened at construction. If it cannot be opened, construction fails closed with `key_custody_io`. After that, corroboration reads every name, absolute and relative. A genuine contradiction is durable in all three layouts (`*-disagree` arms, durable through a good reopen). The planned R10-4 residual is withdrawn. 4. **SEC-r10-4 (`st_ino` premise false).** Moot. No inode comparison remains. The round-9 `st_ino` residual stays withdrawn. 5. **SP-r10-2 (failed-stat survivor wording).** Moot. That survivor's code is gone. 6. **ST-r10-1 (rename `identity`).** Moot. The field is removed. 7. **ST-r10-2 (one setup helper per custody variant).** Declined, optional, as in the round-10 plan. ## Scope note The guide reads `_walk_directory` and `_DIRECTORY_FLAGS` as private directory helpers that KeyCustody calls. `_custody_directory` and `_read_key_file` gain an optional `anchor` argument. With no anchor, they keep base behaviour, so `write_key_copy` and `create_key_file` are unchanged. Nothing else in `recovery_crypto.py` changes. `tests/test_recovery_crypto.py` is unchanged and passes. ## Tests and evidence - New: `test_key_custody_anchor` (11 arms), `test_key_reader` (15 arms, one per v14 F11 arm), and the custody matrix (42 ids per test in the two tests above). - Red side, guide-measured with base src `4982f3f` and the new test file: 108 of the selected arms fail and 34 pass. The passing arms guard behaviour that base already has. Four `test_key_reader` arms are in this group: `config_explicit_replacement`, `evidence_needs_digest_binding`, `private_access_no_protected_write` and `direct_quarantine_keeps_unbound_charge`. The six `copy_removed_during` arms of the bound test are also in it. - Mutants: each named arm has a one-line mutant that kills it. Honest gaps: - Eleven mutants also kill other named arms, because the arms share read paths. "Only its case kills" does not hold for those eleven. - The four absolute `close_during` arms have no killing one-line mutant. Absolute custody holds no descriptor, and the bound reader never consults its record. They stay as behaviour guards. - `ruff check`, `ruff format --check` and strict `mypy src` are clean. Full suite: 1791 passed (guide run). ## Residuals (v14 trust boundary, Not defended) The v14 boundary is a closed list. Every action not on it is Defended. The list: - changes to the trusted validation dependencies; - rewriting the boundary's own frames or captured state; - direct writes of protected state, for the state written only; - a hook's call to `engine._quarantine()`, for the durable mark only (the staged file and its full charge stay); - audit, trace or profile hooks; - writes to process memory or to engine-built objects; - closing or replacing a descriptor that the acting code did not open; - root-directory or mount-namespace changes; - in-thread asynchronous code (signal handlers, gc callbacks, finalizers, async exceptions); - resource exhaustion. Under Ruled P3, `close()` before binding gives `key_unavailable` for the engine reader and the public resolve. ## Next The guide pushed the change as 49f6f21 (gitleaks clean for 0828c1ef..HEAD). Next it updates the run's approved spec to spec-v14, and runs integrate, CI, the raw-log audit and the round-11 reviews.
Collaborator

spec-verify-dispatch Half B for dev/attention-mind-mcp#33 dd-469-6-child-5-7-durable-transition-and-quarantine completed integration verify.

  • PR: #48
  • Branch: feat/svd-dev-attention-mind-mcp-33-dd-469-6-child-5-7-durable-d2b4c2a7
  • Commit: 49f6f21313
  • 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/84/1
  • Checks: required ci/woodpecker/pr/validation resolved pass by CI-wait poll
  • Warning: The diff touches recovery_crypto.py, which is missing from the dispatch FILES TOUCHED list. The spec (V14) names it as the eighth Primary File, so this is in scope. The merge gate must still check that its diff stays inside KeyCustody, KeyRing construction, the private directory helpers and the private record registry.
  • Warning: The branch comparison against base 0828c1ef, the adapter-diff check and the CONV-23 reader-row check stay as merge-gate checks. This run confirmed only that test_wire_readiness_reader_accepts_only_ready exists, is collected and passes.
  • Warning: The spec has no Agent Adjustments section, so the tables were applied as written.
  • Warning: Every scenario-table test name was found in the collection of tests/test_recovery_transition.py. I checked names only. I did not check each -k filter or parameter id against the parameter list the spec names for that row.
  • CI wait: ci/woodpecker/pr/validation -> pass
  • Decision: merge disposition is the operator's; run ready (codex-svd ship --run-id 20261121T104247Z-d2b4c2a7 available to a permitted seat)

label flip withheld (--no-label-writes); gate label is the orchestrator's act — actor unset

spec-verify-dispatch Half B for dev/attention-mind-mcp#33 dd-469-6-child-5-7-durable-transition-and-quarantine completed integration verify. - PR: https://git.groupthink.asia/dev/attention-mind-mcp/pulls/48 - Branch: feat/svd-dev-attention-mind-mcp-33-dd-469-6-child-5-7-durable-d2b4c2a7 - Commit: 49f6f21313367ac5baf426261570dd08cfe56253 - 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/84/1 - Checks: required ci/woodpecker/pr/validation resolved pass by CI-wait poll - Warning: The diff touches recovery_crypto.py, which is missing from the dispatch FILES TOUCHED list. The spec (V14) names it as the eighth Primary File, so this is in scope. The merge gate must still check that its diff stays inside KeyCustody, KeyRing construction, the private directory helpers and the private record registry. - Warning: The branch comparison against base 0828c1ef, the adapter-diff check and the CONV-23 reader-row check stay as merge-gate checks. This run confirmed only that test_wire_readiness_reader_accepts_only_ready exists, is collected and passes. - Warning: The spec has no Agent Adjustments section, so the tables were applied as written. - Warning: Every scenario-table test name was found in the collection of tests/test_recovery_transition.py. I checked names only. I did not check each -k filter or parameter id against the parameter list the spec names for that row. - CI wait: ci/woodpecker/pr/validation -> pass - Decision: merge disposition is the operator's; run ready (`codex-svd ship --run-id 20261121T104247Z-d2b4c2a7` available to a permitted seat) label flip withheld (--no-label-writes); gate label is the orchestrator's act — actor unset
Author
Member

PR #48 round 11: guide dispositions (spec-v15)

Reviewed head 49f6f21, base 0828c1ef; new head ef49467. Round-11 reviews: Spec FAIL, Standards FAIL, §19 Security FAIL. All three found every round-10 item fixed or moot, and no earlier item regressed. The guide reproduced every blocking finding before acting.

The FAIL has two causes:

  • four spec-v14 rules that no test pinned;
  • one gap in the spec text (SEC-r11-1).

The operator ruled to name every in-memory field of that kind as protected state. mind-spec found the enumerated list fits as a closed set (cfe007fb P1), and accommodated the final text (f5fc1de1). The operator approved spec-v15 at sha256 ca43e1e047ef1baf232ff08a4608e4e5d1e909e74c41ebbc0d5958ce19bc0853. Spec-v15 differs from spec-v14 ed311972 in the protected-state item only. Verify run 20261123T121638Z-251085b6 was CLEAN, but no lens read the changed lines (541-547). The change is test-only: no source file changes.

Blocking

  1. SEC-r11-1 (a fault hook's thread sets the engine's in-memory readiness). Disposed by spec-v15.
    • Reproduced (probe N8b): the engine reopens over unavailable custody, so its quarantine is derived and not durable. A thread that a fault hook starts finds the engine by reading frames and sets _readiness = READY. list then discloses 1 item. The same result holds at 4982f3f.
    • Spec-v14 L535 Defended "an attribute write that writes no protected state", and its protected-state list did not name in-memory readiness.
    • Spec-v15 names a closed set of instance bindings as protected state: every field that QueueTransition, Store, Service and _ReleaseGate assign at 49f6f21. engine.config stays Defended, and a field not on the list is not protected state. The readiness write is now residual, for the state written only. [private_access_no_protected_write] assigns only engine._probe, so it stands as written.
  2. Closed record never equals another reader (SP-r11-1, ST-r11-3, SEC-r11-2, L516). Fixed by a test. The old sub-case compared a closed custody against an engine that held a ring, so the type check refused before _live was read. [activate_compares_reader] now refuses a closed custody over the same absolute names before the first activation. Mutant (drop the _live check) turns exactly that arm red.
  3. Anchor compared by device and inode (ST-r11-2, SEC-r11-2, L516). Fixed by a test. The same arm, on a store not yet activated, refuses relative custody anchored at a copy of the keys directory elsewhere. It then activates the same names over the same directory. Mutant (return True) turns exactly that arm red.
  4. Intermediate descriptors close (SP-r11-2, ST-r11-1, SEC-r11-3, L482). Fixed by a test. [no_leaked_descriptor] adds x/y/a and x/y/b. Mutant (drop the in-loop close) turns exactly that arm red.
  5. Binding requires the exact ManagedConfig type (SP-r11-3, L501/L504). Fixed by a test. [config_dict_exact_keys] refuses a ManagedConfig subclass with unsupported_type. Mutant T09 turns exactly that arm red.

Should-fix

  • SP-r11-4 (the public resolve on an unrecorded instance). Fixed by a test. [public_resolve_anchored] builds an object.__new__ KeyCustody with relative names and expects key_unavailable. Mutant C23 turns exactly that arm red.
  • SP-r11-5 (binding reads keys from the live dict). Declined. The code reads the snapshot (recovery_transition.py:2826). A killing test needs a race inside one dictionary operation, or a patch of dict, which is a trusted dependency.

Nits

  • Spec N1 (direct-quarantine arm asserts readiness). Fixed: the arm asserts only the staged file and its full charge (D5.5 F11).
  • ST-r11-4 (stale comments). Fixed: seven comments now describe the recorded reader.
  • Spec N2 (KeyRing __class__ route untested). Declined, optional. The reviewer's probe passes at head.
  • Spec N3 (_custody_name catches Exception). Declined. A BaseException escapes construction and stores no record, so no reader exists.
  • ST-r11-5 (the init error path closes the anchor outside the record). Declined. It is reachable only through a registry failure, which is a trusted dependency, and a source change here would reopen review of recovery_crypto.py.
  • ST-r11-6 (registry design and naming), ST-r11-7 (_same_config lists fields by hand, as at base), ST-r11-8 (os.dup under EMFILE raises a raw OSError; resource exhaustion is Not defended). Declined, optional.
  • SEC-r11-N1 (weakref identity check survives). Declined. It is equivalent under CPython, because the finalizer runs before an id can be reused, and each guard covers the other.
  • ST-r10-2 (one setup helper per custody variant). Declined, optional, as in round 10.

Tests and evidence

  • Guide run at ef49467: ruff check, ruff format --check and strict mypy src are clean. tests/test_recovery_transition.py and tests/test_recovery_crypto.py give 859 passed. I17 selection: 142 passed.
  • Mutants C16, C17, C19, T09 and C23 each turn exactly their arm red; the source is restored byte for byte.
  • gitleaks: no leaks for 49f6f21..ef49467 and 0828c1ef..ef49467.

Next

Integrate, exact-head CI and the raw-log audit at ef49467, then three fresh round-12 reviews against spec-v15. Under the operator's "merge 48 on green", the guide merges pinned to the reviewed head only if every check is green.

# PR #48 round 11: guide dispositions (spec-v15) Reviewed head 49f6f21, base 0828c1ef; new head ef49467. Round-11 reviews: Spec FAIL, Standards FAIL, §19 Security FAIL. All three found every round-10 item fixed or moot, and no earlier item regressed. The guide reproduced every blocking finding before acting. The FAIL has two causes: - four spec-v14 rules that no test pinned; - one gap in the spec text (SEC-r11-1). The operator ruled to name every in-memory field of that kind as protected state. mind-spec found the enumerated list fits as a closed set (cfe007fb P1), and accommodated the final text (f5fc1de1). The operator approved spec-v15 at sha256 `ca43e1e047ef1baf232ff08a4608e4e5d1e909e74c41ebbc0d5958ce19bc0853`. Spec-v15 differs from spec-v14 `ed311972` in the protected-state item only. Verify run 20261123T121638Z-251085b6 was CLEAN, but no lens read the changed lines (541-547). The change is test-only: no source file changes. ## Blocking 1. **SEC-r11-1 (a fault hook's thread sets the engine's in-memory readiness).** Disposed by spec-v15. - Reproduced (probe N8b): the engine reopens over unavailable custody, so its quarantine is derived and not durable. A thread that a fault hook starts finds the engine by reading frames and sets `_readiness = READY`. `list` then discloses 1 item. The same result holds at 4982f3f. - Spec-v14 L535 Defended "an attribute write that writes no protected state", and its protected-state list did not name in-memory readiness. - Spec-v15 names a closed set of instance bindings as protected state: every field that `QueueTransition`, `Store`, `Service` and `_ReleaseGate` assign at 49f6f21. `engine.config` stays Defended, and a field not on the list is not protected state. The readiness write is now residual, for the state written only. `[private_access_no_protected_write]` assigns only `engine._probe`, so it stands as written. 2. **Closed record never equals another reader** (SP-r11-1, ST-r11-3, SEC-r11-2, L516). Fixed by a test. The old sub-case compared a closed custody against an engine that held a ring, so the type check refused before `_live` was read. `[activate_compares_reader]` now refuses a closed custody over the same absolute names before the first activation. Mutant (drop the `_live` check) turns exactly that arm red. 3. **Anchor compared by device and inode** (ST-r11-2, SEC-r11-2, L516). Fixed by a test. The same arm, on a store not yet activated, refuses relative custody anchored at a copy of the keys directory elsewhere. It then activates the same names over the same directory. Mutant (`return True`) turns exactly that arm red. 4. **Intermediate descriptors close** (SP-r11-2, ST-r11-1, SEC-r11-3, L482). Fixed by a test. `[no_leaked_descriptor]` adds `x/y/a` and `x/y/b`. Mutant (drop the in-loop close) turns exactly that arm red. 5. **Binding requires the exact `ManagedConfig` type** (SP-r11-3, L501/L504). Fixed by a test. `[config_dict_exact_keys]` refuses a `ManagedConfig` subclass with `unsupported_type`. Mutant T09 turns exactly that arm red. ## Should-fix - **SP-r11-4 (the public resolve on an unrecorded instance).** Fixed by a test. `[public_resolve_anchored]` builds an `object.__new__` `KeyCustody` with relative names and expects `key_unavailable`. Mutant C23 turns exactly that arm red. - **SP-r11-5 (binding reads `keys` from the live dict).** Declined. The code reads the snapshot (`recovery_transition.py:2826`). A killing test needs a race inside one dictionary operation, or a patch of `dict`, which is a trusted dependency. ## Nits - **Spec N1 (direct-quarantine arm asserts readiness).** Fixed: the arm asserts only the staged file and its full charge (D5.5 F11). - **ST-r11-4 (stale comments).** Fixed: seven comments now describe the recorded reader. - **Spec N2 (KeyRing `__class__` route untested).** Declined, optional. The reviewer's probe passes at head. - **Spec N3 (`_custody_name` catches `Exception`).** Declined. A `BaseException` escapes construction and stores no record, so no reader exists. - **ST-r11-5 (the init error path closes the anchor outside the record).** Declined. It is reachable only through a registry failure, which is a trusted dependency, and a source change here would reopen review of `recovery_crypto.py`. - **ST-r11-6 (registry design and naming), ST-r11-7 (`_same_config` lists fields by hand, as at base), ST-r11-8 (`os.dup` under `EMFILE` raises a raw `OSError`; resource exhaustion is Not defended).** Declined, optional. - **SEC-r11-N1 (weakref identity check survives).** Declined. It is equivalent under CPython, because the finalizer runs before an id can be reused, and each guard covers the other. - **ST-r10-2 (one setup helper per custody variant).** Declined, optional, as in round 10. ## Tests and evidence - Guide run at ef49467: `ruff check`, `ruff format --check` and strict `mypy src` are clean. `tests/test_recovery_transition.py` and `tests/test_recovery_crypto.py` give 859 passed. I17 selection: 142 passed. - Mutants C16, C17, C19, T09 and C23 each turn exactly their arm red; the source is restored byte for byte. - gitleaks: no leaks for 49f6f21..ef49467 and 0828c1ef..ef49467. ## Next Integrate, exact-head CI and the raw-log audit at ef49467, then three fresh round-12 reviews against spec-v15. Under the operator's "merge 48 on green", the guide merges pinned to the reviewed head only if every check is green.
Collaborator

spec-verify-dispatch Half B for dev/attention-mind-mcp#33 dd-469-6-child-5-7-durable-transition-and-quarantine completed integration verify.

  • PR: #48
  • Branch: feat/svd-dev-attention-mind-mcp-33-dd-469-6-child-5-7-durable-d2b4c2a7
  • Commit: ef49467d3d
  • 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/85/1
  • Checks: required ci/woodpecker/pr/validation resolved pass by CI-wait poll
  • Warning: Remote CI ci/woodpecker/pr/validation is still pending for head ef49467d3d.
  • Warning: FILES TOUCHED omits src/attention_mind_mcp/recovery_crypto.py, but the diff touches it. The spec names it as the eighth Primary File (V14). Its hunks stay in KeyCustody, KeyRing construction, the directory helpers and the record registry.
  • Warning: I did not read the PR comments or reviews, so I make no claim about an independent reviewer.
  • Warning: I did not diff the adapter against the pre-change base bytes. The subagent reported that check as passed.
  • CI wait: ci/woodpecker/pr/validation -> pass
  • Decision: merge disposition is the operator's; run ready (codex-svd ship --run-id 20261121T104247Z-d2b4c2a7 available to a permitted seat)

label flip withheld (--no-label-writes); gate label is the orchestrator's act — actor unset

spec-verify-dispatch Half B for dev/attention-mind-mcp#33 dd-469-6-child-5-7-durable-transition-and-quarantine completed integration verify. - PR: https://git.groupthink.asia/dev/attention-mind-mcp/pulls/48 - Branch: feat/svd-dev-attention-mind-mcp-33-dd-469-6-child-5-7-durable-d2b4c2a7 - Commit: ef49467d3dda6d820425a5e06acc24b470706b96 - 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/85/1 - Checks: required ci/woodpecker/pr/validation resolved pass by CI-wait poll - Warning: Remote CI ci/woodpecker/pr/validation is still pending for head ef49467d3dda. - Warning: FILES TOUCHED omits src/attention_mind_mcp/recovery_crypto.py, but the diff touches it. The spec names it as the eighth Primary File (V14). Its hunks stay in KeyCustody, KeyRing construction, the directory helpers and the record registry. - Warning: I did not read the PR comments or reviews, so I make no claim about an independent reviewer. - Warning: I did not diff the adapter against the pre-change base bytes. The subagent reported that check as passed. - CI wait: ci/woodpecker/pr/validation -> pass - Decision: merge disposition is the operator's; run ready (`codex-svd ship --run-id 20261121T104247Z-d2b4c2a7` available to a permitted seat) label flip withheld (--no-label-writes); gate label is the orchestrator's act — actor unset
Author
Member

PR #48 round 12: guide dispositions (spec-v16)

Reviewed head ef49467, base 0828c1ef; new head 11fe9d2. Round-12 reviews: Spec FAIL, Standards PASS, §19 Security FAIL. All three found every round-11 item fixed or moot, and no earlier item regressed. The guide reproduced every blocking finding before acting.

The FAIL has two causes:

  • one rule that no test pinned (SP-r12-1);
  • configured code that reaches a result through routes the spec-v15 trust boundary called Defended (SEC-r12-1 to SEC-r12-3).

The operator ruled "Add code + custody files" (2026-11-24). Spec-v16 adds two items to the closed Not-defended list, and it adds the engine's pinned configuration to the protected list. SEC-r12-2 is fixed in code. A third route, measured by the guide, needed a further ruling (below). mind-spec accommodated the clauses (8056d808 Q1, Q2, Q3, Q5; 3d20b3b2) and the final text (7de7866c). The operator approved spec-v16 at sha256 5cf79bb485f411a0cb371a3b61179e2e6a999e5534e6629a48cf007f0d0871a8. Verify run 20261123T134350Z-c0f90a0a was CLEAN on 15966cc6, which differs from the approved text by one editorial sentence at L510. The lenses read 38% of the spec and none read the changed lines, so the guide read every changed range.

Blocking

  1. SEC-r12-1 (configured code rebinds attention_mind_mcp code). Disposed by spec-v16.
    • Reproduced (probe B1, B2): an instance attribute that hides a method, an engine or store __class__ change, and a class property each disclose 1 item. A remap of the module-global _AUTHORITY_FAULTS gives a durable quarantine.
    • Spec-v16 adds a Not-defended item: changes to attention_mind_mcp code. These are rebinding a module global, a class attribute or a function's code; assigning an object's __class__; and setting an instance attribute that hides a method or property. A change to a resolver instance stays Defended. A change to the class of the config's keys object stays Defended, and binding refuses it with unsupported_type.
  2. SEC-r12-2 (the engine read engine.config live). Fixed in code.
    • Reproduced (probe B3, B4): a hook assigns engine.config with no invalidations, and a revoked premise lets a command through with a transport put. The archive gate read its namespace from engine.config (store.py:355), and a reservation in another bucket exported 2174 B.
    • The engine now binds _config at construction and reads its configuration only from it: 17 engine reads and store.py:355. engine.config keeps its value, so assigning it stays Defended and changes nothing the engine reads. Spec-v16 adds _config to the protected list.
    • New arm [config_assignment_has_no_effect]: a hook assigns engine.config with no invalidations and another artifact bucket. The revoked premise still gives ineligible with no transport call. A reservation in the other bucket refuses with archive_quarantined.
    • Mutants: the invalidation read put back on self.config, and store.py:355 put back on .config, each turn exactly that arm red.
    • Tests that change a fault hook or the transport after construction now set engine._config (39 sites). The [config_assigned_after_construction] arm still assigns engine.config.
  3. SEC-r12-3 (configured code deletes a file in the queue's custody directory). Disposed by spec-v16. Reproduced (probe B5): an unlinked invalidation record lets a command through with a put. Spec-v16 adds a Not-defended item: creating, changing or deleting a file or directory in the queue's own custody directory, as a direct write of the queue database's rows is. Key copies at the configured custody paths stay under Ruled P3.
  4. SP-r12-1 (an engine reader bound from a closed record). Fixed by a test. [activate_compares_reader] now reopens over a closed custody before the first activation, and then asks activate for a live custody over the same names. It expects initialization_unproven, no durable quarantine and no custody directory. Mutant (not other._live in place of not (self._live and other._live)) turns exactly that arm red.

Route beyond the first ruling

  • Writing around the freeze of the pinned config. Disposed by spec-v16. Guide-measured at the r13 build: a hook runs object.__setattr__(engine._config, "invalidations", ()), and a revoked command goes through with 5 transport sends. The control gives ineligible with 0 sends.
  • mind-spec clashed with an item over all frozen values, because it covers resolver values that I17 Defends. It also clashed with a copy through caller hooks (8056d808 Q4).
  • The operator ruled the narrower shape. Spec-v16 adds a Not-defended item: writing around the freeze of the bound config's premise, invalidations or frontier_key_id, or of a field of the DeploymentPremise, Namespace, PremisePrincipal or PremiseInvalidation values they hold. The keys field keeps its record check, and transport and _fault stay Defended.

Should-fix

  • ST-r12-1 (the direct-quarantine arm no longer shows that the hook ran). Fixed: the hook records that it fired, and the arm asserts it.
  • SP-r12-3 (PR body residual sentence). Fixed: the round-eleven section names the closed list in place of the rule form.

Nits

  • SP-r12-2 and SEC-r12-N1 (the private-access hook calls _activation, which rebinds _authority_premise). Fixed: the hook no longer calls _activation. It calls _header and _pass, and it assigns engine._probe.
  • SEC-r12-N2 (asyncio.Lock fields on _ReleaseGate). Fixed in spec-v16 under the round-11 ruling: the list adds _locked, _waiters and _loop.
  • ST-r12-2 (comment says the subclass instance is unrecorded). Fixed: the comment now says its type is not exact, so the engine treats it as an unrecorded resolver.
  • ST-r12-3 (redundant closed sub-case, reused names). Fixed: the old sub-case is removed, closed_same asserts that readiness is unchanged, and the anchored block uses anchored_base and anchored_unactivated.
  • ST-r11-7 (round-11 decline reason). Corrected: _same_config is new in this PR, not "as at base". The decline stands, optional.
  • R2b (anchor compared by inode only survives). Information only. Killing it needs a second filesystem.

Tests and evidence

  • Guide run at the r13 build: ruff check, ruff format --check and strict mypy src are clean. tests/test_recovery_transition.py and tests/test_recovery_crypto.py give 860 passed. I17 selection: 143 tests.
  • Mutants M1 (invalidation read), M2 (store.py:355) and M3 (not other._live) each turn exactly their arm red. The source is restored byte for byte.
  • gitleaks: no leaks for ef49467..11fe9d2 and 0828c1ef..11fe9d2.

Next

Integrate, exact-head CI and the raw-log audit at the new head, then three fresh round-13 reviews against spec-v16. Under the operator's "merge 48 on green", the guide merges pinned to the reviewed head only if every check is green.

# PR #48 round 12: guide dispositions (spec-v16) Reviewed head ef49467, base 0828c1ef; new head 11fe9d2. Round-12 reviews: Spec FAIL, Standards PASS, §19 Security FAIL. All three found every round-11 item fixed or moot, and no earlier item regressed. The guide reproduced every blocking finding before acting. The FAIL has two causes: - one rule that no test pinned (SP-r12-1); - configured code that reaches a result through routes the spec-v15 trust boundary called Defended (SEC-r12-1 to SEC-r12-3). The operator ruled "Add code + custody files" (2026-11-24). Spec-v16 adds two items to the closed Not-defended list, and it adds the engine's pinned configuration to the protected list. SEC-r12-2 is fixed in code. A third route, measured by the guide, needed a further ruling (below). mind-spec accommodated the clauses (`8056d808` Q1, Q2, Q3, Q5; `3d20b3b2`) and the final text (`7de7866c`). The operator approved spec-v16 at sha256 `5cf79bb485f411a0cb371a3b61179e2e6a999e5534e6629a48cf007f0d0871a8`. Verify run 20261123T134350Z-c0f90a0a was CLEAN on `15966cc6`, which differs from the approved text by one editorial sentence at L510. The lenses read 38% of the spec and none read the changed lines, so the guide read every changed range. ## Blocking 1. **SEC-r12-1 (configured code rebinds attention_mind_mcp code).** Disposed by spec-v16. - Reproduced (probe B1, B2): an instance attribute that hides a method, an engine or store `__class__` change, and a class property each disclose 1 item. A remap of the module-global `_AUTHORITY_FAULTS` gives a durable quarantine. - Spec-v16 adds a Not-defended item: changes to attention_mind_mcp code. These are rebinding a module global, a class attribute or a function's code; assigning an object's `__class__`; and setting an instance attribute that hides a method or property. A change to a resolver instance stays Defended. A change to the class of the config's `keys` object stays Defended, and binding refuses it with `unsupported_type`. 2. **SEC-r12-2 (the engine read `engine.config` live).** Fixed in code. - Reproduced (probe B3, B4): a hook assigns `engine.config` with no invalidations, and a revoked premise lets a command through with a transport put. The archive gate read its namespace from `engine.config` (`store.py:355`), and a reservation in another bucket exported 2174 B. - The engine now binds `_config` at construction and reads its configuration only from it: 17 engine reads and `store.py:355`. `engine.config` keeps its value, so assigning it stays Defended and changes nothing the engine reads. Spec-v16 adds `_config` to the protected list. - New arm `[config_assignment_has_no_effect]`: a hook assigns `engine.config` with no invalidations and another artifact bucket. The revoked premise still gives `ineligible` with no transport call. A reservation in the other bucket refuses with `archive_quarantined`. - Mutants: the invalidation read put back on `self.config`, and `store.py:355` put back on `.config`, each turn exactly that arm red. - Tests that change a fault hook or the transport after construction now set `engine._config` (39 sites). The `[config_assigned_after_construction]` arm still assigns `engine.config`. 3. **SEC-r12-3 (configured code deletes a file in the queue's custody directory).** Disposed by spec-v16. Reproduced (probe B5): an unlinked invalidation record lets a command through with a put. Spec-v16 adds a Not-defended item: creating, changing or deleting a file or directory in the queue's own custody directory, as a direct write of the queue database's rows is. Key copies at the configured custody paths stay under Ruled P3. 4. **SP-r12-1 (an engine reader bound from a closed record).** Fixed by a test. `[activate_compares_reader]` now reopens over a closed custody before the first activation, and then asks `activate` for a live custody over the same names. It expects `initialization_unproven`, no durable quarantine and no `custody` directory. Mutant (`not other._live` in place of `not (self._live and other._live)`) turns exactly that arm red. ## Route beyond the first ruling - **Writing around the freeze of the pinned config.** Disposed by spec-v16. Guide-measured at the r13 build: a hook runs `object.__setattr__(engine._config, "invalidations", ())`, and a revoked command goes through with 5 transport sends. The control gives `ineligible` with 0 sends. - mind-spec clashed with an item over all frozen values, because it covers resolver values that I17 Defends. It also clashed with a copy through caller hooks (`8056d808` Q4). - The operator ruled the narrower shape. Spec-v16 adds a Not-defended item: writing around the freeze of the bound config's `premise`, `invalidations` or `frontier_key_id`, or of a field of the `DeploymentPremise`, `Namespace`, `PremisePrincipal` or `PremiseInvalidation` values they hold. The `keys` field keeps its record check, and `transport` and `_fault` stay Defended. ## Should-fix - **ST-r12-1 (the direct-quarantine arm no longer shows that the hook ran).** Fixed: the hook records that it fired, and the arm asserts it. - **SP-r12-3 (PR body residual sentence).** Fixed: the round-eleven section names the closed list in place of the rule form. ## Nits - **SP-r12-2 and SEC-r12-N1 (the private-access hook calls `_activation`, which rebinds `_authority_premise`).** Fixed: the hook no longer calls `_activation`. It calls `_header` and `_pass`, and it assigns `engine._probe`. - **SEC-r12-N2 (`asyncio.Lock` fields on `_ReleaseGate`).** Fixed in spec-v16 under the round-11 ruling: the list adds `_locked`, `_waiters` and `_loop`. - **ST-r12-2 (comment says the subclass instance is unrecorded).** Fixed: the comment now says its type is not exact, so the engine treats it as an unrecorded resolver. - **ST-r12-3 (redundant `closed` sub-case, reused names).** Fixed: the old sub-case is removed, `closed_same` asserts that readiness is unchanged, and the anchored block uses `anchored_base` and `anchored_unactivated`. - **ST-r11-7 (round-11 decline reason).** Corrected: `_same_config` is new in this PR, not "as at base". The decline stands, optional. - **R2b (anchor compared by inode only survives).** Information only. Killing it needs a second filesystem. ## Tests and evidence - Guide run at the r13 build: `ruff check`, `ruff format --check` and strict `mypy src` are clean. `tests/test_recovery_transition.py` and `tests/test_recovery_crypto.py` give 860 passed. I17 selection: 143 tests. - Mutants M1 (invalidation read), M2 (`store.py:355`) and M3 (`not other._live`) each turn exactly their arm red. The source is restored byte for byte. - gitleaks: no leaks for ef49467..11fe9d2 and 0828c1ef..11fe9d2. ## Next Integrate, exact-head CI and the raw-log audit at the new head, then three fresh round-13 reviews against spec-v16. Under the operator's "merge 48 on green", the guide merges pinned to the reviewed head only if every check is green.
Collaborator

spec-verify-dispatch Half B for dev/attention-mind-mcp#33 dd-469-6-child-5-7-durable-transition-and-quarantine completed integration verify.

  • PR: #48
  • Branch: feat/svd-dev-attention-mind-mcp-33-dd-469-6-child-5-7-durable-d2b4c2a7
  • Commit: 11fe9d2b30
  • 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/86/1
  • Checks: required ci/woodpecker/pr/validation resolved pass by CI-wait poll
  • Warning: Remote CI ci/woodpecker/pr/validation is still pending; the runner must re-poll it.
  • Warning: I did not read PR comments or reviews in this run, so I make no claim about an independent reviewer.
  • Warning: The diff touches recovery_crypto.py, which the subagent's file list omitted. Spec V14 names it as the eighth Primary File, so the footprint is in scope. The repository also touches only the eight named files.
  • CI wait: ci/woodpecker/pr/validation -> pass
  • Decision: merge disposition is the operator's; run ready (codex-svd ship --run-id 20261121T104247Z-d2b4c2a7 available to a permitted seat)

label flip withheld (--no-label-writes); gate label is the orchestrator's act — actor unset

spec-verify-dispatch Half B for dev/attention-mind-mcp#33 dd-469-6-child-5-7-durable-transition-and-quarantine completed integration verify. - PR: https://git.groupthink.asia/dev/attention-mind-mcp/pulls/48 - Branch: feat/svd-dev-attention-mind-mcp-33-dd-469-6-child-5-7-durable-d2b4c2a7 - Commit: 11fe9d2b301bd9d8344c0c1f18739a2968542151 - 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/86/1 - Checks: required ci/woodpecker/pr/validation resolved pass by CI-wait poll - Warning: Remote CI ci/woodpecker/pr/validation is still pending; the runner must re-poll it. - Warning: I did not read PR comments or reviews in this run, so I make no claim about an independent reviewer. - Warning: The diff touches recovery_crypto.py, which the subagent's file list omitted. Spec V14 names it as the eighth Primary File, so the footprint is in scope. The repository also touches only the eight named files. - CI wait: ci/woodpecker/pr/validation -> pass - Decision: merge disposition is the operator's; run ready (`codex-svd ship --run-id 20261121T104247Z-d2b4c2a7` available to a permitted seat) label flip withheld (--no-label-writes); gate label is the orchestrator's act — actor unset
Author
Member

PR #48 round 13: guide dispositions (spec-v17)

Reviewed head 11fe9d2, base 0828c1ef; new head e99c6fb. Round-13 reviews: Spec FAIL, Standards PASS, §19 Security FAIL. All three found every round-12 item fixed or moot, and no earlier item regressed. The guide reproduced both blocking findings before acting.

The FAIL has two causes:

  • a code defect in the configured invalidations (SEC-r13-1);
  • one engine read that no test pinned (SP-r13-1).

The operator ruled "Refuse in code + spec-v17" (2026-11-24). mind-spec accommodated the text (e3a6b5cd F1, F2). The operator approved spec-v17 at sha256 048cc1ee8777624bb2992ac625aa514d8d580f19c55d3174431d1bb4a3584162. Verify run 20261123T203047Z-605b1d90 was CLEAN on that text. The lenses read 52% of the spec and missed L169, L700-701 and L891, so the guide read those lines against the code and tests.

Blocking

  1. SEC-r13-1 (a fault hook changes the configured invalidations container). Fixed in code.
    • Reproduced (guide probe): the control, an exact tuple holding one REVOKED invalidation, gives ineligible with 0 transport calls. A list that a fault hook clears gives ok with 5 calls ending in put. A tuple subclass whose iteration the hook changes gives the same.
    • The hook's write is on no Not-defended item, so it was Defended, and the result contradicted L699-700.
    • ManagedConfig.__post_init__ now refuses with unsupported_type unless invalidations is an exact tuple and each item is an exact PremiseInvalidation. It stores no record. Spec-v17 adds this rule at L492, as DeploymentPremise already does for principals.
    • New arm [config_invalidations_exact]: a list, a tuple subclass, a tuple holding a PremiseInvalidation subclass value, and a tuple holding a list each refuse, through ManagedConfig(...) and through dataclasses.replace. An exact tuple still binds, and its revocation gives ineligible with no transport call.
    • Mutant (check removed) turns exactly that arm red.
  2. SP-r13-1 (the _config read in _same_config had no test). Fixed by a test.
    • Reproduced: the reviewer's probe passes at 11fe9d2. With the read put back on engine.config, it fails (managed_observation_required, not initialization_unproven), and the I17 and activate selection gives 154 passed.
    • [config_assignment_has_no_effect] now covers an engine not yet activated. A hook assigns engine.config to the exact config that activate then requests, which differs from the engine's own in its invalidations or its premise. activate gives initialization_unproven, never durable, and creates no custody directory.
    • Mutant M6 turns exactly that arm red, also with the static check (below) turned off.

Should-fix

  • SP-r13-2 and ST-r13-1 (most _config reads had no test). Fixed. The same arm checks that no module in src loads a config attribute, and that the one store is in recovery_transition.py. Mutants on _same_config, the seal key ID and the invalidation read each turn exactly that arm red.
  • SP-r13-3 (part 1 of the arm changed the premise and the invalidations together). Fixed. Part 1 drops the invalidations alone and asserts the premise is unchanged. A second reopen changes the artifact bucket for the archive check. Mutant M1+M4 (premise and invalidations read from engine.config) turns the arm red at part 1, with the static check turned off.
  • SP-r13-4 and ST-r13-2 (PR body overclaims "each one-line mutant"). Fixed: the sentence now names the rows whose mutants were run, and says that [private_access_no_protected_write] asserts only the result.

Nits

  • ST-r13-3 (duplication). Fixed: _capture_engines and _archive_scope helpers replace the two copies of each pattern.
  • ST-r13-4 (closed_engine is a custody). Fixed: renamed closed_reader, and the sub-case asserts readiness is unchanged.
  • SEC-r13-N1. Covered by the static check above.
  • SEC-r13-U1 (a before_release hook can set a slot's fields to None, and the adapter returns 500). Unverified, and nothing is disclosed. Not changed in this round.
  • Information. "39 sites" in the round-12 dispositions is 31 assignment statements and 40 occurrences. One test sets engine._config to make the premise mismatch; spec-v17 L511 now says so. The Spec reviewer's full suite had one failure in test_commands.py::test_writer_kill_and_retry[after_commit-submit], a file the PR does not touch. It passes alone; it is a timing flake under load.

Tests and evidence

  • Guide run at e99c6fb: ruff check, ruff format --check and strict mypy src are clean. tests/test_recovery_transition.py and tests/test_recovery_crypto.py give 861 passed.
  • Mutants: the exact check removed, M6 (_same_config), M7 (seal key ID), M1 (invalidation read), M6 with the static check off, and M1+M4 with the static check off. Each turns exactly its arm red. The source is restored byte for byte.
  • gitleaks: no leaks for 11fe9d2..e99c6fb and 0828c1ef..e99c6fb.

Next

Integrate, exact-head CI and the raw-log audit at the new head, then three fresh round-14 reviews against spec-v17. Under the operator's "merge 48 on green", the guide merges pinned to the reviewed head only if every check is green.

# PR #48 round 13: guide dispositions (spec-v17) Reviewed head 11fe9d2, base 0828c1ef; new head e99c6fb. Round-13 reviews: Spec FAIL, Standards PASS, §19 Security FAIL. All three found every round-12 item fixed or moot, and no earlier item regressed. The guide reproduced both blocking findings before acting. The FAIL has two causes: - a code defect in the configured invalidations (SEC-r13-1); - one engine read that no test pinned (SP-r13-1). The operator ruled "Refuse in code + spec-v17" (2026-11-24). mind-spec accommodated the text (`e3a6b5cd` F1, F2). The operator approved spec-v17 at sha256 `048cc1ee8777624bb2992ac625aa514d8d580f19c55d3174431d1bb4a3584162`. Verify run 20261123T203047Z-605b1d90 was CLEAN on that text. The lenses read 52% of the spec and missed L169, L700-701 and L891, so the guide read those lines against the code and tests. ## Blocking 1. **SEC-r13-1 (a fault hook changes the configured invalidations container).** Fixed in code. - Reproduced (guide probe): the control, an exact tuple holding one REVOKED invalidation, gives `ineligible` with 0 transport calls. A list that a fault hook clears gives `ok` with 5 calls ending in `put`. A tuple subclass whose iteration the hook changes gives the same. - The hook's write is on no Not-defended item, so it was Defended, and the result contradicted L699-700. - `ManagedConfig.__post_init__` now refuses with `unsupported_type` unless `invalidations` is an exact tuple and each item is an exact `PremiseInvalidation`. It stores no record. Spec-v17 adds this rule at L492, as `DeploymentPremise` already does for `principals`. - New arm `[config_invalidations_exact]`: a list, a tuple subclass, a tuple holding a `PremiseInvalidation` subclass value, and a tuple holding a list each refuse, through `ManagedConfig(...)` and through `dataclasses.replace`. An exact tuple still binds, and its revocation gives `ineligible` with no transport call. - Mutant (check removed) turns exactly that arm red. 2. **SP-r13-1 (the `_config` read in `_same_config` had no test).** Fixed by a test. - Reproduced: the reviewer's probe passes at 11fe9d2. With the read put back on `engine.config`, it fails (`managed_observation_required`, not `initialization_unproven`), and the I17 and activate selection gives 154 passed. - `[config_assignment_has_no_effect]` now covers an engine not yet activated. A hook assigns `engine.config` to the exact config that `activate` then requests, which differs from the engine's own in its invalidations or its premise. `activate` gives `initialization_unproven`, never durable, and creates no custody directory. - Mutant M6 turns exactly that arm red, also with the static check (below) turned off. ## Should-fix - **SP-r13-2 and ST-r13-1 (most `_config` reads had no test).** Fixed. The same arm checks that no module in `src` loads a `config` attribute, and that the one store is in `recovery_transition.py`. Mutants on `_same_config`, the seal key ID and the invalidation read each turn exactly that arm red. - **SP-r13-3 (part 1 of the arm changed the premise and the invalidations together).** Fixed. Part 1 drops the invalidations alone and asserts the premise is unchanged. A second reopen changes the artifact bucket for the archive check. Mutant M1+M4 (premise and invalidations read from `engine.config`) turns the arm red at part 1, with the static check turned off. - **SP-r13-4 and ST-r13-2 (PR body overclaims "each one-line mutant").** Fixed: the sentence now names the rows whose mutants were run, and says that `[private_access_no_protected_write]` asserts only the result. ## Nits - **ST-r13-3 (duplication).** Fixed: `_capture_engines` and `_archive_scope` helpers replace the two copies of each pattern. - **ST-r13-4 (`closed_engine` is a custody).** Fixed: renamed `closed_reader`, and the sub-case asserts readiness is unchanged. - **SEC-r13-N1.** Covered by the static check above. - **SEC-r13-U1 (a `before_release` hook can set a slot's fields to None, and the adapter returns 500).** Unverified, and nothing is disclosed. Not changed in this round. - **Information.** "39 sites" in the round-12 dispositions is 31 assignment statements and 40 occurrences. One test sets `engine._config` to make the premise mismatch; spec-v17 L511 now says so. The Spec reviewer's full suite had one failure in `test_commands.py::test_writer_kill_and_retry[after_commit-submit]`, a file the PR does not touch. It passes alone; it is a timing flake under load. ## Tests and evidence - Guide run at e99c6fb: `ruff check`, `ruff format --check` and strict `mypy src` are clean. `tests/test_recovery_transition.py` and `tests/test_recovery_crypto.py` give 861 passed. - Mutants: the exact check removed, M6 (`_same_config`), M7 (seal key ID), M1 (invalidation read), M6 with the static check off, and M1+M4 with the static check off. Each turns exactly its arm red. The source is restored byte for byte. - gitleaks: no leaks for 11fe9d2..e99c6fb and 0828c1ef..e99c6fb. ## Next Integrate, exact-head CI and the raw-log audit at the new head, then three fresh round-14 reviews against spec-v17. Under the operator's "merge 48 on green", the guide merges pinned to the reviewed head only if every check is green.
Collaborator

spec-verify-dispatch Half B for dev/attention-mind-mcp#33 dd-469-6-child-5-7-durable-transition-and-quarantine completed integration verify.

  • PR: #48
  • Branch: feat/svd-dev-attention-mind-mcp-33-dd-469-6-child-5-7-durable-d2b4c2a7
  • Commit: e99c6fb3d1
  • 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/87/1
  • Checks: required ci/woodpecker/pr/validation resolved pass by CI-wait poll
  • Warning: Remote CI ci/woodpecker/pr/validation is still pending on head e99c6fb3d1; the runner re-polls it.
  • Warning: FILES TOUCHED omitted src/attention_mind_mcp/recovery_crypto.py, but the diff against base 0828c1ef changes it. The spec lists it as a Primary File (modify), so this is in scope.
  • Warning: The merge-gate protocol-hash and frozen-bytes comparison against base 0828c1ef was not run here beyond the file-list diff. The CONV-23 reader-row check was also not run beyond the spec's reader audit and the passing test_wire_readiness_reader_accepts_only_ready scenario.
  • Warning: The spec has no Agent Adjustments section, so the tables apply as written.
  • Warning: The self-review entries in SUBAGENT DEVIATIONS are all marked fixed. None is a not-fixed follow-up.
  • CI wait: ci/woodpecker/pr/validation -> pass
  • Decision: merge disposition is the operator's; run ready (codex-svd ship --run-id 20261121T104247Z-d2b4c2a7 available to a permitted seat)

label flip withheld (--no-label-writes); gate label is the orchestrator's act — actor unset

spec-verify-dispatch Half B for dev/attention-mind-mcp#33 dd-469-6-child-5-7-durable-transition-and-quarantine completed integration verify. - PR: https://git.groupthink.asia/dev/attention-mind-mcp/pulls/48 - Branch: feat/svd-dev-attention-mind-mcp-33-dd-469-6-child-5-7-durable-d2b4c2a7 - Commit: e99c6fb3d1dbfb6e85bdd63e7900a0ee43669874 - 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/87/1 - Checks: required ci/woodpecker/pr/validation resolved pass by CI-wait poll - Warning: Remote CI ci/woodpecker/pr/validation is still pending on head e99c6fb3d1db; the runner re-polls it. - Warning: FILES TOUCHED omitted src/attention_mind_mcp/recovery_crypto.py, but the diff against base 0828c1ef changes it. The spec lists it as a Primary File (modify), so this is in scope. - Warning: The merge-gate protocol-hash and frozen-bytes comparison against base 0828c1ef was not run here beyond the file-list diff. The CONV-23 reader-row check was also not run beyond the spec's reader audit and the passing test_wire_readiness_reader_accepts_only_ready scenario. - Warning: The spec has no Agent Adjustments section, so the tables apply as written. - Warning: The self-review entries in SUBAGENT DEVIATIONS are all marked fixed. None is a not-fixed follow-up. - CI wait: ci/woodpecker/pr/validation -> pass - Decision: merge disposition is the operator's; run ready (`codex-svd ship --run-id 20261121T104247Z-d2b4c2a7` available to a permitted seat) label flip withheld (--no-label-writes); gate label is the orchestrator's act — actor unset
Author
Member

PR #48 round 14: guide dispositions (spec-v18)

Reviewed head e99c6fb, base 0828c1ef; new head 7439267. Round-14 reviews: Spec FAIL, Standards FAIL, §19 Security FAIL. All three found every round-13 item fixed or partly fixed, and no earlier item regressed. The guide reproduced every blocking finding before acting.

The FAIL has two causes:

  • one rule that no test pinned (ST-r14-1, SP-r14-1);
  • a reentrant constructor call that binds a recorded config whose invalidations is a list (SEC-r14-1).

The guide measured a further route before building the reviewer's 2-line fix (below). The operator ruled "Bind from record, spec-v18" (2026-11-24). Mind-spec did not answer the fit question, and the guide took that silence as its answer. The operator approved spec-v18 at sha256 b56c0f3881f893a21ec236bbe839d652c501d4d74ae45c49689ad17b39618f35. Verify run 20261123T222307Z-feede31b was CLEAN on that text, with 0 blocking. The lenses read 29% of the spec and none read the changed lines (L169, L490-493, L511, L543, L548, L700-701, L891, R20), so the guide read every changed range against the code and tests.

Blocking

  1. ST-r14-1 and SP-r14-1 (no test pinned "stores no record" for a refused invalidations value). Fixed by a test.
    • Reproduced (guide, mutant X5: the check moved after the record store): key_reader gives 17 passed. A probe under X5 reaches the escaped instance and gives ok with 5 transport calls ending in put.
    • [config_invalidations_exact] now builds each refused value through object.__new__ and ManagedConfig.__init__. It asserts the refusal, that no record exists, and that a reopen with that instance refuses with unsupported_type.
    • Mutant K4 (X5) turns exactly that arm red.
  2. SEC-r14-1 (a reentrant ManagedConfig.__init__ writes a list into a recorded config). Fixed in code, with spec-v18.
    • Reproduced (guide probe D1): a str-subclass keyword name runs __eq__ during keyword matching, reads the instance from a frame, and calls ManagedConfig.__init__ on it. The inner call records an exact tuple, and the outer call then writes a list. list_clear, tuple_subclass and thread_list each give ok with 5 sends ending in put. The control gives ineligible with 0 sends.
    • The wrapper now refuses with unsupported_type when the construction mark for the instance is already set (L490). The inner call refuses and stores no record.
    • [constructor_reentry_refused] now makes the nested call from a keyword-name __eq__. It asserts that the nested call refuses and that the record holds the exact tuple of the outer call. Mutant K1 (mark check off) turns exactly that arm red.

Route beyond the reviewer's fix

  • The generated initializer, read from the wrapper's closure. Guide-measured at e99c6fb with the 2-line fix applied. ManagedConfig.__init__.__closure__[0].cell_contents is the generated __init__. It is not a frame read, and it is on no Not-defended item, so it is Defended.
    • Called during construction from a keyword-name __eq__, it writes a list after the inner record: record True, ok with 5 sends ending in put.
    • Called on a recorded config after construction, it writes a list before __post_init__ refuses: record True, ok with a put, at head and with the fix.
  • The operator ruled "Bind from record, spec-v18":
    • _ConfigRecord keeps the validated invalidations tuple (L492).
    • _bind_keys refuses with unsupported_type unless the config's invalidations field is that tuple.
    • QueueTransition binds _invalidations from the record. _premise, _same_config and _activate read only _invalidations. Spec-v18 adds _invalidations to the protected list (L543).
  • With the change, the nested-wrapper, closure-during and closure-after routes each refuse at bind (probe r14-probes/guide/test_r14_guide_closure.py).
  • New sub-cases in [config_invalidations_exact]:
    • the generated initializer called during construction and after construction: the field is the list and the record exists, and a reopen refuses with unsupported_type; a good reopen then gives ready and durable 0;
    • a hook that calls the generated initializer on the bound config after binding: the revoked command still gives ineligible with no transport call;
    • a static check that the only .invalidations attribute reads in src are on self and on record in recovery_transition.py.

Should-fix

  • SP-r14-2 (exact container type before iteration was unpinned). Fixed: the tuple-subclass value has an __iter__ that records the call and raises. The arm asserts that it never ran. Mutant K5 (X6, iterate before the type check) turns exactly that arm red.
  • SP-r14-3 (the static check saw only attribute syntax). Fixed: the check in [config_assignment_has_no_effect] also refuses a string constant "config" in any src module. That covers getattr, vars()[…], __dict__[…] and attrgetter. Mutant K8 (seal key ID through getattr(self, "config")) turns exactly that arm red.

Nits

  • SEC-r14-N1. Covered by the string-constant check above.
  • ST-r14-2 (the static check sits in a behavioural arm, with no message). Partly fixed: the assertion now names the rule ("read engine._config"), and loads and stores are asserted apart. The check stays in the arm, because spec-v18 L891 places it there. Declined in part, optional.
  • ST-r14-3 (helper placement, parameter name). Partly fixed: _archive_scope names its parameter object_key. _capture_engines stays where it is. Declined in part, optional.
  • SP-r14-4 (PR body round-twelve sentence said "exactly its case" for row 3). Fixed: the sentence now says "turns its case red".
  • SEC-r13-U1. Verified by the guide: a before_release hook that sets a slot's fields to None gives a 500 or a quarantined document, with durable 0. Nothing is disclosed.

Tests and evidence

  • Guide run at the r15 build and again in the run worktree before commit: ruff check, ruff format --check (92 files) and strict mypy src are clean. tests/test_recovery_transition.py and tests/test_recovery_crypto.py give 861 passed.
  • Mutants K1 to K9 each turn exactly one arm red:
    • K1 (wrapper mark check off): [constructor_reentry_refused];
    • K8 (seal key ID through getattr): [config_assignment_has_no_effect];
    • K2 (bind identity check off), K3 (premise reads the field), K4 (X5), K5 (X6), K6 (_same_config reads the field), K7 (_activate reads config.invalidations) and K9 (the record read returns the field): [config_invalidations_exact].
  • With the static check off, K3 still turns the arm red. K6, K7 and K9 then pass, so only the static check pins them. Each of them reads a value that bind has already checked is the record's tuple, so the trade-off is that a later write around that check is caught only by the static check.
  • The source is restored byte for byte after each mutant.
  • gitleaks: no leaks for e99c6fb..7439267 and 0828c1ef..7439267.

Next

Integrate, exact-head CI and the raw-log audit at the new head, then three fresh round-15 reviews against spec-v18. Under the operator's "merge 48 on green", the guide merges pinned to the reviewed head only if every check is green.

# PR #48 round 14: guide dispositions (spec-v18) Reviewed head e99c6fb, base 0828c1ef; new head 7439267. Round-14 reviews: Spec FAIL, Standards FAIL, §19 Security FAIL. All three found every round-13 item fixed or partly fixed, and no earlier item regressed. The guide reproduced every blocking finding before acting. The FAIL has two causes: - one rule that no test pinned (ST-r14-1, SP-r14-1); - a reentrant constructor call that binds a recorded config whose `invalidations` is a list (SEC-r14-1). The guide measured a further route before building the reviewer's 2-line fix (below). The operator ruled "Bind from record, spec-v18" (2026-11-24). Mind-spec did not answer the fit question, and the guide took that silence as its answer. The operator approved spec-v18 at sha256 `b56c0f3881f893a21ec236bbe839d652c501d4d74ae45c49689ad17b39618f35`. Verify run 20261123T222307Z-feede31b was CLEAN on that text, with 0 blocking. The lenses read 29% of the spec and none read the changed lines (L169, L490-493, L511, L543, L548, L700-701, L891, R20), so the guide read every changed range against the code and tests. ## Blocking 1. **ST-r14-1 and SP-r14-1 (no test pinned "stores no record" for a refused `invalidations` value).** Fixed by a test. - Reproduced (guide, mutant X5: the check moved after the record store): `key_reader` gives 17 passed. A probe under X5 reaches the escaped instance and gives `ok` with 5 transport calls ending in `put`. - `[config_invalidations_exact]` now builds each refused value through `object.__new__` and `ManagedConfig.__init__`. It asserts the refusal, that no record exists, and that a reopen with that instance refuses with `unsupported_type`. - Mutant K4 (X5) turns exactly that arm red. 2. **SEC-r14-1 (a reentrant `ManagedConfig.__init__` writes a list into a recorded config).** Fixed in code, with spec-v18. - Reproduced (guide probe D1): a str-subclass keyword name runs `__eq__` during keyword matching, reads the instance from a frame, and calls `ManagedConfig.__init__` on it. The inner call records an exact tuple, and the outer call then writes a list. `list_clear`, `tuple_subclass` and `thread_list` each give `ok` with 5 sends ending in `put`. The control gives `ineligible` with 0 sends. - The wrapper now refuses with `unsupported_type` when the construction mark for the instance is already set (L490). The inner call refuses and stores no record. - `[constructor_reentry_refused]` now makes the nested call from a keyword-name `__eq__`. It asserts that the nested call refuses and that the record holds the exact tuple of the outer call. Mutant K1 (mark check off) turns exactly that arm red. ## Route beyond the reviewer's fix - **The generated initializer, read from the wrapper's closure.** Guide-measured at e99c6fb with the 2-line fix applied. `ManagedConfig.__init__.__closure__[0].cell_contents` is the generated `__init__`. It is not a frame read, and it is on no Not-defended item, so it is Defended. - Called during construction from a keyword-name `__eq__`, it writes a list after the inner record: record True, `ok` with 5 sends ending in `put`. - Called on a recorded config after construction, it writes a list before `__post_init__` refuses: record True, `ok` with a `put`, at head and with the fix. - The operator ruled "Bind from record, spec-v18": - `_ConfigRecord` keeps the validated `invalidations` tuple (L492). - `_bind_keys` refuses with `unsupported_type` unless the config's `invalidations` field is that tuple. - `QueueTransition` binds `_invalidations` from the record. `_premise`, `_same_config` and `_activate` read only `_invalidations`. Spec-v18 adds `_invalidations` to the protected list (L543). - With the change, the nested-wrapper, closure-during and closure-after routes each refuse at bind (probe `r14-probes/guide/test_r14_guide_closure.py`). - New sub-cases in `[config_invalidations_exact]`: - the generated initializer called during construction and after construction: the field is the list and the record exists, and a reopen refuses with `unsupported_type`; a good reopen then gives `ready` and durable 0; - a hook that calls the generated initializer on the bound config after binding: the revoked command still gives `ineligible` with no transport call; - a static check that the only `.invalidations` attribute reads in `src` are on `self` and on `record` in `recovery_transition.py`. ## Should-fix - **SP-r14-2 (exact container type before iteration was unpinned).** Fixed: the tuple-subclass value has an `__iter__` that records the call and raises. The arm asserts that it never ran. Mutant K5 (X6, iterate before the type check) turns exactly that arm red. - **SP-r14-3 (the static check saw only attribute syntax).** Fixed: the check in `[config_assignment_has_no_effect]` also refuses a string constant `"config"` in any `src` module. That covers `getattr`, `vars()[…]`, `__dict__[…]` and `attrgetter`. Mutant K8 (seal key ID through `getattr(self, "config")`) turns exactly that arm red. ## Nits - **SEC-r14-N1.** Covered by the string-constant check above. - **ST-r14-2 (the static check sits in a behavioural arm, with no message).** Partly fixed: the assertion now names the rule ("read `engine._config`"), and loads and stores are asserted apart. The check stays in the arm, because spec-v18 L891 places it there. Declined in part, optional. - **ST-r14-3 (helper placement, parameter name).** Partly fixed: `_archive_scope` names its parameter `object_key`. `_capture_engines` stays where it is. Declined in part, optional. - **SP-r14-4 (PR body round-twelve sentence said "exactly its case" for row 3).** Fixed: the sentence now says "turns its case red". - **SEC-r13-U1.** Verified by the guide: a `before_release` hook that sets a slot's fields to None gives a 500 or a quarantined document, with durable 0. Nothing is disclosed. ## Tests and evidence - Guide run at the r15 build and again in the run worktree before commit: `ruff check`, `ruff format --check` (92 files) and strict `mypy src` are clean. `tests/test_recovery_transition.py` and `tests/test_recovery_crypto.py` give 861 passed. - Mutants K1 to K9 each turn exactly one arm red: - K1 (wrapper mark check off): `[constructor_reentry_refused]`; - K8 (seal key ID through `getattr`): `[config_assignment_has_no_effect]`; - K2 (bind identity check off), K3 (premise reads the field), K4 (X5), K5 (X6), K6 (`_same_config` reads the field), K7 (`_activate` reads `config.invalidations`) and K9 (the record read returns the field): `[config_invalidations_exact]`. - With the static check off, K3 still turns the arm red. K6, K7 and K9 then pass, so only the static check pins them. Each of them reads a value that bind has already checked is the record's tuple, so the trade-off is that a later write around that check is caught only by the static check. - The source is restored byte for byte after each mutant. - gitleaks: no leaks for e99c6fb..7439267 and 0828c1ef..7439267. ## Next Integrate, exact-head CI and the raw-log audit at the new head, then three fresh round-15 reviews against spec-v18. Under the operator's "merge 48 on green", the guide merges pinned to the reviewed head only if every check is green.
Collaborator

spec-verify-dispatch Half B for dev/attention-mind-mcp#33 dd-469-6-child-5-7-durable-transition-and-quarantine completed integration verify.

  • PR: #48
  • Branch: feat/svd-dev-attention-mind-mcp-33-dd-469-6-child-5-7-durable-d2b4c2a7
  • Commit: 74392674fe
  • 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/88/1
  • Checks: required ci/woodpecker/pr/validation resolved pass by CI-wait poll
  • Warning: The merge-gate branch comparison against base 0828c1ef (protocol hash, exact write set, CONV-23 reader-row check) was not run in full here. The diff stat shows 8 files, which matches the spec's eight Primary Files: recovery_crypto.py is the eighth and is outside the dispatch's seven-file list. Check the recovery_crypto.py diff at the merge gate as R17 requires.
  • Warning: I did not read the PR comments or reviews, so I make no claim about whether an independent reviewer exists.
  • CI wait: ci/woodpecker/pr/validation -> pass
  • Decision: merge disposition is the operator's; run ready (codex-svd ship --run-id 20261121T104247Z-d2b4c2a7 available to a permitted seat)

label flip withheld (--no-label-writes); gate label is the orchestrator's act — actor unset

spec-verify-dispatch Half B for dev/attention-mind-mcp#33 dd-469-6-child-5-7-durable-transition-and-quarantine completed integration verify. - PR: https://git.groupthink.asia/dev/attention-mind-mcp/pulls/48 - Branch: feat/svd-dev-attention-mind-mcp-33-dd-469-6-child-5-7-durable-d2b4c2a7 - Commit: 74392674fe2cfa2008f9293cd272783fda0cd03f - 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/88/1 - Checks: required ci/woodpecker/pr/validation resolved pass by CI-wait poll - Warning: The merge-gate branch comparison against base 0828c1ef (protocol hash, exact write set, CONV-23 reader-row check) was not run in full here. The diff stat shows 8 files, which matches the spec's eight Primary Files: recovery_crypto.py is the eighth and is outside the dispatch's seven-file list. Check the recovery_crypto.py diff at the merge gate as R17 requires. - Warning: I did not read the PR comments or reviews, so I make no claim about whether an independent reviewer exists. - CI wait: ci/woodpecker/pr/validation -> pass - Decision: merge disposition is the operator's; run ready (`codex-svd ship --run-id 20261121T104247Z-d2b4c2a7` available to a permitted seat) label flip withheld (--no-label-writes); gate label is the orchestrator's act — actor unset
Author
Member

PR #48 round 15: guide dispositions (spec-v19)

Reviewed head 7439267, base 0828c1ef; new head cc3ceb8. Round-15 reviews: Spec FAIL, Standards FAIL, §19 Security FAIL. All three found every round-14 item fixed, and no earlier item regressed. The guide reproduced every blocking finding before acting.

The FAIL has two causes:

  • the config record and the frontier authority held the caller's own frozen values (SEC-r15-1);
  • two rules that no test pinned against a second spelling (ST-r15-1, SP-r15-1).

The operator ruled "Engine copies, spec-v19" (2026-11-24). Mind-spec did not answer the fit question in a 15-minute window, and the guide took that silence as its answer. The operator approved spec-v19 at sha256 352affb462f5bc3942ab210074f7ac12c3d464a413105b0d85059a53384085b6. Verify run 20261124T001257Z-d53dd7a3 was CLEAN on that text, with 0 blocking. The lenses read 23% of the spec and none read the changed lines (L169, L492-493, L512, L701-702, L892, R21), so the guide read every changed range against the code and tests.

Blocking

  1. SEC-r15-1 (the generated initializers of the caller's premise values rewrite what the engine reads). Fixed in code, with spec-v19.
    • Reproduced (guide, probe E1 at 7439267): a fault hook calls PremiseInvalidation.__init__ on the recorded item with another digest. A revoked premise gives ok with 5 transport calls ending in put. The control gives ineligible with 0 calls.
    • Reproduced (guide, probes E6 and E7): a hook calls Namespace.__init__ on the caller's frontier namespace at before_local_commit or after_local_commit. Durable quarantine is 1, and a good reopen keeps it.
    • __post_init__ now builds copies of the validated invalidations, and _ConfigRecord keeps them as owned. _recorded_invalidations returns record.owned, so _invalidations is the engine's tuple of copies (L492-493). The bind identity check stays on the caller's tuple.
    • _authority_premise is now the engine's copy, decode_premise(encode_premise(premise)), at bind and at the prepared-record rebind (L512).
    • With the change, E1 gives ineligible with 0 sends, and E6 and E7 give ok with durable 0.
    • New arm [premise_values_owned]:
      • a hook rewrites the caller's PremiseInvalidation by its generated __init__ and by object.__setattr__; engine._invalidations keeps the copy, and the revocation gives ineligible with no transport call;
      • an engine not yet activated holds an authority premise equal to the caller's, not the same object, and with a frontier that is not the caller's;
      • a hook rewrites the frontier Namespace at before_local_commit and at after_local_commit; the command gives ok, durable 0, and a good reopen reaches READY.
  2. ST-r15-1 (no test pinned "that same tuple object" at bind). Fixed by a test.
    • Reproduced (guide, mutant K2b listed[0] != record.invalidations): key_reader gives 17 passed, and the reviewer's probe fails twice.
    • [config_invalidations_exact] now writes an equal but distinct exact tuple, and a tuple subclass whose __eq__ and __ne__ record each call, into a recorded config with the generated initializer. Each refuses with unsupported_type at bind, the reopen refuses, and the subclass records no comparison.
  3. SP-r15-1 (the _same_config read was pinned only against one spelling). Fixed by a test.
    • Reproduced (guide, mutant K6g, getattr(current, "invalidations")): key_reader gives 17 passed.
    • A new sub-case on an engine not yet activated: a hook calls the generated initializer on the bound config with the requested revocation. It is refused, activate gives initialization_unproven, and durable is 0.
    • The static check is now keyed by enclosing function. It finds the reads of invalidations and owned by attribute syntax, getattr, attrgetter or a constant subscript. It allows exactly __post_init__ on self, _bind_keys on record and _recorded_invalidations on record, and its message names the rule and the lines.

Should-fix

  • ST-r15-2 and SEC-r15-2 (the static check was keyed on receiver names and saw only attribute syntax). Fixed by the static check above. The guide's mutants N6 (K6g), N8 (R1) and N9 (G1) each turn the arm red. G2 is K6g with getattr on both sides, and the guide did not run it apart.

Nits

  • SP-r15-2 (the reentry record assertion was vacuous on the empty tuple). Fixed: both calls pass a non-empty tuple with a revoked item, and the arm asserts that the record holds the outer call's tuple.
  • SP-r15-3. Fixed by the ST-r15-1 sub-case.
  • SP-r15-4 (looser assertions). Fixed: the static check is keyed by enclosing function, and the during-construction refusal uses refused("unsupported_type", …).
  • SP-r15 Information (the generated initializer writes other fields). Measured by the guide: a rewritten config premise no longer equals the authority copy or the stored premise record, so the next premise check fails closed (ineligible, no transport call, durable 0). The authority itself is now the engine's copy (L512).
  • ST-r15-N1 (static-check messages). Fixed: both messages name the rule, and the invalidations message lists file, function, receiver and line. The scans still cover every src module. Declined in part, optional.
  • ST-r15-N2 (helper placement). Fixed: _generated_config_initializer, _reentrant_name, _capture_engines and the new _attribute_reads sit just above test_key_reader.
  • ST-r15-N3 (clarity). Partly fixed: the two bare pytest.raises use refused, nested["result"] moved up, and the double durable check is ready() alone. The wrapper's nested-call check keeps its form, and _recorded_invalidations keeps its own record lookup, so _bind_keys keeps one return type. Declined in part, optional.
  • SEC-r15-N1 (the per-thread mark is unpinned). Declined: a process-wide mark refuses more calls, not fewer, and the reviewer measured no security outcome under K13.

Tests and evidence

  • Guide run at the r16 build and again in the run worktree before commit: ruff check, ruff format --check (92 files) and strict mypy src are clean. tests/test_recovery_transition.py and tests/test_recovery_crypto.py give 862 passed.
  • Mutants N1 to N11 each turn at least one arm red:
    • N1 (the record read returns the caller's tuple), N2 (premise copy off at bind), N3 (copy off at rebind) and N4 (copy off everywhere): [premise_values_owned];
    • N5 (bind compares with !=), N6 (_same_config by getattr), N7 (_same_config reads the field), N8 (through a local named record) and N9 (_activate encodes getattr(config, "invalidations")): [config_invalidations_exact];
    • N10 (the premise check reads the bound field): two arms;
    • N11 (the wrapper mark check off): [constructor_reentry_refused].
  • With the static check off, N5 to N8 still turn the arm red. N9 then passes, so only the static check pins it.
  • The source is restored byte for byte after each mutant.
  • gitleaks: no leaks for 7439267..cc3ceb8 and 0828c1ef..cc3ceb8.

Next

Integrate, exact-head CI and the raw-log audit at the new head, then three fresh round-16 reviews against spec-v19. Under the operator's "merge 48 on green", the guide merges pinned to the reviewed head only if every check is green.

# PR #48 round 15: guide dispositions (spec-v19) Reviewed head 7439267, base 0828c1ef; new head cc3ceb8. Round-15 reviews: Spec FAIL, Standards FAIL, §19 Security FAIL. All three found every round-14 item fixed, and no earlier item regressed. The guide reproduced every blocking finding before acting. The FAIL has two causes: - the config record and the frontier authority held the caller's own frozen values (SEC-r15-1); - two rules that no test pinned against a second spelling (ST-r15-1, SP-r15-1). The operator ruled "Engine copies, spec-v19" (2026-11-24). Mind-spec did not answer the fit question in a 15-minute window, and the guide took that silence as its answer. The operator approved spec-v19 at sha256 `352affb462f5bc3942ab210074f7ac12c3d464a413105b0d85059a53384085b6`. Verify run 20261124T001257Z-d53dd7a3 was CLEAN on that text, with 0 blocking. The lenses read 23% of the spec and none read the changed lines (L169, L492-493, L512, L701-702, L892, R21), so the guide read every changed range against the code and tests. ## Blocking 1. **SEC-r15-1 (the generated initializers of the caller's premise values rewrite what the engine reads).** Fixed in code, with spec-v19. - Reproduced (guide, probe E1 at 7439267): a fault hook calls `PremiseInvalidation.__init__` on the recorded item with another digest. A revoked premise gives `ok` with 5 transport calls ending in `put`. The control gives `ineligible` with 0 calls. - Reproduced (guide, probes E6 and E7): a hook calls `Namespace.__init__` on the caller's frontier namespace at `before_local_commit` or `after_local_commit`. Durable quarantine is 1, and a good reopen keeps it. - `__post_init__` now builds copies of the validated invalidations, and `_ConfigRecord` keeps them as `owned`. `_recorded_invalidations` returns `record.owned`, so `_invalidations` is the engine's tuple of copies (L492-493). The bind identity check stays on the caller's tuple. - `_authority_premise` is now the engine's copy, `decode_premise(encode_premise(premise))`, at bind and at the prepared-record rebind (L512). - With the change, E1 gives `ineligible` with 0 sends, and E6 and E7 give `ok` with durable 0. - New arm `[premise_values_owned]`: - a hook rewrites the caller's `PremiseInvalidation` by its generated `__init__` and by `object.__setattr__`; `engine._invalidations` keeps the copy, and the revocation gives `ineligible` with no transport call; - an engine not yet activated holds an authority premise equal to the caller's, not the same object, and with a frontier that is not the caller's; - a hook rewrites the frontier `Namespace` at `before_local_commit` and at `after_local_commit`; the command gives `ok`, durable 0, and a good reopen reaches READY. 2. **ST-r15-1 (no test pinned "that same tuple object" at bind).** Fixed by a test. - Reproduced (guide, mutant K2b `listed[0] != record.invalidations`): `key_reader` gives 17 passed, and the reviewer's probe fails twice. - `[config_invalidations_exact]` now writes an equal but distinct exact tuple, and a tuple subclass whose `__eq__` and `__ne__` record each call, into a recorded config with the generated initializer. Each refuses with `unsupported_type` at bind, the reopen refuses, and the subclass records no comparison. 3. **SP-r15-1 (the `_same_config` read was pinned only against one spelling).** Fixed by a test. - Reproduced (guide, mutant K6g, `getattr(current, "invalidations")`): `key_reader` gives 17 passed. - A new sub-case on an engine not yet activated: a hook calls the generated initializer on the bound config with the requested revocation. It is refused, `activate` gives `initialization_unproven`, and durable is 0. - The static check is now keyed by enclosing function. It finds the reads of `invalidations` and `owned` by attribute syntax, `getattr`, `attrgetter` or a constant subscript. It allows exactly `__post_init__` on `self`, `_bind_keys` on `record` and `_recorded_invalidations` on `record`, and its message names the rule and the lines. ## Should-fix - **ST-r15-2 and SEC-r15-2 (the static check was keyed on receiver names and saw only attribute syntax).** Fixed by the static check above. The guide's mutants N6 (K6g), N8 (R1) and N9 (G1) each turn the arm red. G2 is K6g with `getattr` on both sides, and the guide did not run it apart. ## Nits - **SP-r15-2 (the reentry record assertion was vacuous on the empty tuple).** Fixed: both calls pass a non-empty tuple with a revoked item, and the arm asserts that the record holds the outer call's tuple. - **SP-r15-3.** Fixed by the ST-r15-1 sub-case. - **SP-r15-4 (looser assertions).** Fixed: the static check is keyed by enclosing function, and the during-construction refusal uses `refused("unsupported_type", …)`. - **SP-r15 Information (the generated initializer writes other fields).** Measured by the guide: a rewritten config premise no longer equals the authority copy or the stored premise record, so the next premise check fails closed (`ineligible`, no transport call, durable 0). The authority itself is now the engine's copy (L512). - **ST-r15-N1 (static-check messages).** Fixed: both messages name the rule, and the `invalidations` message lists file, function, receiver and line. The scans still cover every `src` module. Declined in part, optional. - **ST-r15-N2 (helper placement).** Fixed: `_generated_config_initializer`, `_reentrant_name`, `_capture_engines` and the new `_attribute_reads` sit just above `test_key_reader`. - **ST-r15-N3 (clarity).** Partly fixed: the two bare `pytest.raises` use `refused`, `nested["result"]` moved up, and the double durable check is `ready()` alone. The wrapper's nested-call check keeps its form, and `_recorded_invalidations` keeps its own record lookup, so `_bind_keys` keeps one return type. Declined in part, optional. - **SEC-r15-N1 (the per-thread mark is unpinned).** Declined: a process-wide mark refuses more calls, not fewer, and the reviewer measured no security outcome under K13. ## Tests and evidence - Guide run at the r16 build and again in the run worktree before commit: `ruff check`, `ruff format --check` (92 files) and strict `mypy src` are clean. `tests/test_recovery_transition.py` and `tests/test_recovery_crypto.py` give 862 passed. - Mutants N1 to N11 each turn at least one arm red: - N1 (the record read returns the caller's tuple), N2 (premise copy off at bind), N3 (copy off at rebind) and N4 (copy off everywhere): `[premise_values_owned]`; - N5 (bind compares with `!=`), N6 (`_same_config` by `getattr`), N7 (`_same_config` reads the field), N8 (through a local named `record`) and N9 (`_activate` encodes `getattr(config, "invalidations")`): `[config_invalidations_exact]`; - N10 (the premise check reads the bound field): two arms; - N11 (the wrapper mark check off): `[constructor_reentry_refused]`. - With the static check off, N5 to N8 still turn the arm red. N9 then passes, so only the static check pins it. - The source is restored byte for byte after each mutant. - gitleaks: no leaks for 7439267..cc3ceb8 and 0828c1ef..cc3ceb8. ## Next Integrate, exact-head CI and the raw-log audit at the new head, then three fresh round-16 reviews against spec-v19. Under the operator's "merge 48 on green", the guide merges pinned to the reviewed head only if every check is green.
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#33
No description provided.