Implement durable managed recovery transitions and quarantine #48
No reviewers
Labels
No labels
epic
needs-info
needs-triage
ready-for-agent
ready-for-human
svd:fire
svd:go
svd:hold
svd:respec
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
dev/attention-mind-mcp!48
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "feat/svd-dev-attention-mind-mcp-33-dd-469-6-child-5-7-durable-d2b4c2a7"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
The engine persists exact provider admissions and bounded recovery progress. It applies an authenticated candidate or cancellation marker once, preserves the original deadlines and charges, and retires required material before lifting quarantine. Fresh custody observations gate new managed commands independently of disclosure readiness.
Evidence
e83a3e6a), the 5,400 s watchdog (5afe3362), and an incomplete declaration (38768ce3). The attempted resume ofe83a3e6awas stopped. The operator ruled “Stop; fresh run” at 19:16, “double the stage budget” by 20:58:31, and “Add mcp_adapter.py (Recommended)” at 21:26:52–21:27:54 AEDT on 2026-11-21. Mind-spec records9ccb4143,a03709b5,141b1a84and01ff94eccover those stops and the approved revision.20261121T103517Z-cad8f175was CLEAN on spec SHA-25610b8a09364771bb01ceb0730f08a710998fc92b962c4f32ffd3b3a029c399cf5. Fresh dispatch20261121T104247Z-d2b4c2a7completed with a 10,800 s stage limit and default rework caps. Its evidence reports 1,317 unit, 66 transport, 416 transition, and 180 archive and staging tests passing, plus a 35-case final focused rerun, Ruff, strict mypy, and the native build.b5cb5e2. The transport exception handlers match base byte for byte. The adapter diff stays within the approved release ranges. The original integrate passed 1,317 unit and 66 transport tests, then stopped on Test Strategy naming and grouping and the runner's relative-path collection check. Mind-spec8aa224d8approved mapping the tests to the v13 names and rerunning with the absolute project interpreter and separate collection and run evidence.b5cb5e2.test_exact_retirement_charges[copy]found that both obsolete copy charges survived into unrelated admission retirement. Mind-spec classified this as implementation conformance in answerfeb7dfadto ask37661f35. Inrecovery_transition.py:633–646and2335–2381, reopen reestablishes conservative reservations before synchronization, and each obsolete encrypted and decoded copy releases its charge at verified retirement. The winner stays charged. Interrupted sync or unlink and unproved worker ownership retain charges.b1943a5returnedreadyForMerge=truewith zero blockers, zero rework and separate locked-interpreter collection and run evidence. Pipeline 73 passed on the same head. The lens initially recorded CI as pending and itslensReadyForMergeremains false. The final CI poll recorded green. The raw integrate log has zero command-start or collection-error signature hits. Receipt SHA-256496c3e17114b2c97dfdafc2894b68e5232745f7cafa78ce69f10cb10feb8ea7f.Test Strategy ID mapping
Each row accounts for IDs absent under the spec spelling at the previous head.
test_side_file_is_reserved_and_synced_before_useretirement_synctest_settled_row_reopens_at_saturationitem_count-after_local_commit,item_count-pointer_replaced,item_bytes_submit-after_local_commit,item_bytes_replace-after_local_commit,lifetime-after_local_commit,lifetime-pointer_replaced,commands-after_local_commit,commands-marker_pointer_replacedtest_forged_settled_stage_refusedderived_stagetest_key_unavailable_is_transientmemory_error,os_error,missing_filetest_wrong_key_or_corrupt_readback_is_durable_quarantinecorrupt_readFault.CORRUPT_READscenario.test_admission_namespace_bindinginventory_namespace,inventory_exact_requesttest_new_work_requires_bound_fresh_observationsunavailable,other_namespace,other_generation,other_frontier,disabledtest_managed_prepare_requires_own_slotlocal_legacytest_new_work_refresh_oncefirst_transaction_open,second_reentrytest_new_work_refresh_oncerelease_rechecks,release_rechecks-list,release_rechecks-replay,release_rechecks-admittest_exact_retirement_chargescopy,unused_position,settled_gettest_worker_keeps_workspace_chargestock_command_exittest_managed_expiry_prune_preserves_chargesexpired_key_still_ineligibleL817 also has a distinct post-send stock observation worker exit checked across reopen, an extra stock observation return case and a separate test transport with absent ownership proof.
Round-one rule-removal checks
Each row was checked independently against this revision in a disposable source copy. With the rule removed, the named case failed. With the rule in place, the case exercises the original managed path.
test_protected_served_result_requires_release_metadata[obligation_before_start]slot.obligation is Noneandinitial_metadata[1] is not slot.obligationtest_protected_served_result_requires_release_metadata[obligation_after_buffer]test_protected_served_result_requires_release_metadata[obligation_restored]test_protected_served_result_requires_release_metadata[permit_restored]queue.service._captureandmcp_adapter.obligationregistrations are skippedtest_protected_served_result_requires_release_metadata[producer_skips_registration,producer_skips_registration_submit]test_recover_does_not_attempt_marker_without_get_and_premise[uncertain_get]test_marker_handoff_requires_exact_first_get[uncertain,wrong_digest,wrong_etag]test_recover_does_not_attempt_marker_without_get_and_premise[stale_premise]test_custody_rejects_owned_file_with_external_hard_link0700on a custody family directorytest_custody_family_requires_private_directory[0755,0777,0750]Round-one fault checks also cover
EMFILE,EIOand missing keys through the production resolver; SIGKILL before either staged write is durable at 0 and 64 bytes; and file and parent-directory sync failures on both C and M. The checks prove the request remains unspent before PREPARED and retries when authority is proved. The finite-headroom control retainscapacity_exceeded.Round-two verification
Round two checks capacity before the P01 hold under the same transaction and keeps a refused command unprepared, unspent, and unsent. Unsafe or unavailable custody stays fenced as derived quarantine. The four binding errors persist quarantine only after proof of the exact current or prepared authority. Reopen preserves staged files and their charge through failed inspection, unlink, or directory sync. Tests cover revoked custody during both PREPARED and MARKER_PREPARED.
All 15 targeted mutations produced the expected failures in 45 test invocations. Fault injection used mode, descriptor, and I/O probes that also apply when tests run as root.
Exact-head integrate on
0aad72breturnedreadyForMerge=truewith zero blockers and zero rework. Separate collection and execution used the absolute project interpreter. The raw log records 1,430 unit tests with exit code 0, while the receipt parser marks that background command opaque. All 66 transport tests passed. Hosted CI passed on the same head with 1,420 unit tests, 10 skips, and 66 transport tests. The raw integrate and CI logs had zero command-start or collection errors. Receipt SHA-256b5478ed74f442b7aac51ec1b9c8b817a13d9425abb68aee71e5b0a5795162ef9. Woodpecker pipeline 76Accepted round-two residuals
custody.lock. A retry refusesinitialization_unprovenwith derived quarantine and a durable flag of zero. READY requires operator-assisted recovery. Automatic adoption is outside #33.recovery_crypto._check_custodyis outside this write set and carries to #47.Round-three verification
envelope_unauthenticatedID now injectsInvalidTagafter digest and key commitment checks. Wrong returned key ID and wrong key material have the separatekey_mismatch-idandkey_mismatch-commitmentIDs.full_length_unauthenticated_mflips the tag byte of a full-length staged M and verifies retirement with durable zero. Stock and synthetic ownership failures keep durable zero before and after reopen. Pass exhaustion, an invalid marker certificate, lifetime regression, an invalid prepared admission, and a proved unsafe-document conflict each persist durable one across reopen. An S3 subclass returning UNSENT is settled as ambiguous and retains its charge.Local verification passed 1,487 unit and 66 transport tests. The first transport run hit a read timeout in the existing
[none-list]release-fence case. The isolated retry and the full transport rerun passed.The 17 targeted rule removals produced 34 expected failing test invocations. The removals covered file safety and charge retention, unknown faults, early budget and header checks, exact digest binding before framing checks, decoder and resolver provenance, authentication and ownership, terminal conflicts, and the S3 UNSENT proof. Ruff, strict mypy and the offline lock check passed.
Exact-head integration on
502620ad65c5771bbfe406b8a79ad59556336e1ein run20261121T104247Z-d2b4c2a7returnedreadyForMerge=truewith zero blockers and zero runner rework. Separate collection and run evidence used the absolute project interpreter. Verification accounting passed. The raw logintegrate.r5.jsonlrecords 1,487 unit and 66 transport tests passing. Woodpecker 77 passed on the same head (1,477 unit tests passed, 10 skipped, and 66 transport tests passed). Receipt SHA-2565d3c6cedb9200f1e22412823012565d9aa9c5afdcc717bc3db22a7da631f343c. Woodpecker 77 · SVD closeoutAccepted round-three residuals
admissions/stray.recordremains a durable conflict.Round-four gate rework
The guide ruled all five §19 findings in scope. Mind-spec answer
ed6241ecresolved the two key-evidence questions within the approved revision-13 spec and seven-file write set. Round-four dispositionsThe S3 test now covers instance overrides of both executor methods as well as a subclass. Authority classification uses one error-code helper and documents typed conflict precedence. The recorded-open split documents how it distinguishes framing from authenticated record limits. Document decode preserves
record_byte_limit, and comments identify the activation returned by the sweep and the ledger check before reservation.The pre-staging CAPACITY path now restores the prior in-memory charge. A test injects the refusal after reservation, checks for no side effects and successfully retries the same command.
Exact-head SVD integration on
8162065c7175e4a8d56ea0ab76a30b56ff5e2577returnedreadyForMerge=truewith zero blockers and zero runner rework. Raw logintegrate.r9.jsonlrecords 98 round-four cases and the frozen wire reader passing, with accounted foreground verification and separate collection using absolute project Python paths. The full local suites independently passed 1,543 unit tests and 66 transport tests on the same commit. The initial local wheel test hit a sandbox cache permission error. The isolated and full reruns passed with a writable uv cache. Twenty-five isolated rule changes produced 31 expected test failures. Ruff, formatting, strict mypy and the offline lockfile check passed. Woodpecker 78 passed all four jobs with 1,533 unit tests passing, ten skipped, and 66 transport tests passing. Earlier SVD attempts hit accounting blockers from a relative supplemental collection command and explicit background execution. A subsequent full foreground run hit a pre-existing transport fixture race when reading the barrier file. The affected test passed in isolation and the fixture file stayed outside the round-four patch. The approved spec and frozen protocol hashes match. Receipt SHA-2563a9f87c20be59391d81eb7920f82e9a9a24bbdde28be5a1db065db3e8e3ea264. Woodpecker 78 · SVD closeoutThe round-two and round-three residuals still apply. Equivalent mutation survivors are
integer_out_of_range, already classified as a contradiction,frontier_byte_limit, covered by the earlier envelope cap, andcounter_overflow, an operation error outside decode. Seal-sideplaintext_too_largefollows an earlier check with the same cap.Round-five gate rework
The round-five gate found the round-four key-provenance boundary sound for plain forwarded codes but open in three ways. Mind-spec answer
61eea58druled both questions as clashes within the approved revision-13 spec and seven-file write set. The operator ruled all three items in scope and the F4 case a residual. OpenAI's content filter stopped the attention seat three times on this round's material, so under the operator's ruling the guide wrote and pushed commit55db5f8. Round-five dispositions_codereadserror.argsonce._OpeningKeys.resolveraises a fresh error carrying the checked code after thetryand never re-raises the resolver's object. Tests cover an error whoseargschange after one read and after three reads, on the recorded current frontier (derived, then READY) and on an unbound staged frontier (file and full prepared charge kept, then retired).key_custody_contradictorycounted as proof only when the configured KeyCustody directories were exact concretePathobjects. The check ran after the call, so a path that restored exact directories before it raised still passed (SP-r6-3). A Path subclass that raises during path conversion gives a derived fence, then READY. Different secure copies still persist quarantine. Round six replaces this check._codemoved next to_fail;_KEY_VALIDATORSannotated; comment on theresolve = Nonedefault.Guide verification on
55db5f8before push: ruff, formatting and strict mypy passed;tests/test_recovery_transition.pypassed 657 cases. Seven isolated rule removals were checked against the key-resolution selection. Six fail the expected cases: reverting the fresh error on the forwarded-fault branch, a multi-read_code, and dropping the path, function, receiver or exact-type check.Accepted round-five residuals (the round-two, round-three and round-four residuals still apply):
object.__setattr__after construction can reportkey_purpose_mismatchwithout a comparison. The configured-resolver boundary covers supported configuration and callbacks and assumes a trusted validator's private state stays intact (mind-spec61eea58d, operator ruling). If replaced inner state becomes supported, the source-proof rule applies.code == validator[1]appears equivalent, not proved for every input. Restoring the re-raise only in the validator-proof branch needs replaced validator state (the F4 case) to be observable. Round six removes both checks.8162065: r6 held on a relative interpreter path, r7 on background test runs without exit status, and r8 on a transport fixture timing race under load (test_writer_kill_and_retry[before_response-dispose], outside the write set; the uncontended rerun passed 66). r9 returnedreadyForMerge=true.Round-six gate rework
All three round-six reviews failed
55db5f8on the key-provenance boundary in_OpeningKeys.resolve. A configured resolver could still forge a conflict code that kept durable quarantine after a reopen with the good key. Six paths reached it:Mind-spec answer
ad41dd8daccommodated the corroboration design and the residual wording within the approved revision-13 spec and seven-file write set. The operator ruled all six in scope and F4 a residual. Under the operator's ruling the guide wrote and pushed commitad18dd6. Round-six dispositionsThe boundary no longer infers provenance from the resolver's type, bound method or paths:
KeyCustodyit also captures the configured directories as plain strings, but only from an exact tuple of exact concretePathobjects that format to an exactstr.KeyRing.resolveon a resolver that was an exactKeyRingbefore and after the call, orKeyCustody.resolveon a fresh custody rebuilt from the captured strings. The proof code is whatever that comparison raises as a plain FoundationError,key_purpose_mismatchorkey_custody_contradictory; the claimed code is never compared with it or forwarded. Otherwise the result iskey_unavailable. (Reworded in round seven; round six said the validator must reproduce "the same code".)key_unavailable. The boundary always raises a fresh error after the handler.test_forged_validator_code_is_not_proof[text_subclass_segment]test_resolver_classification_fault_is_derived[args:*]×3;test_unbound_staged_key_fault_retains_file_and_charge[raising_args:envelope_*]×2. Regression guards that do not fire at head:[type_hash:*]and[method_class].[raising_args:key_custody_contradictory]reads its args fault but stays green without the guard, because a contradiction on an unbound orphan is not torn (corrected in rounds seven and eight)[spoofed_method_type],[method_lookalike][keyring_alias]; KeyCustody side[custody_alias]and[foreign_decoy](round seven)[class_swap_to_keyring],[keyring_swap_after_call][paths_restored_during_call],[directories_swapped_during_call],[fspath_redirect],[directories_redirect][keyring_without_key];test_unbound_staged_key_fault_retains_file_and_charge[corroborated_contradiction]The
foreign_custodycase now records the genuine comparison instead of marking itself called. Comments insrc/state invariants only.Guide verification on
ad18dd6before push: ruff, formatting and strict mypy passed;tests/test_recovery_transition.pypassed 679 cases. Fourteen of the 22 new cases fail at55db5f8and eight pass there (corrected in round seven; the round-six disposition said two). Fourteen isolated rule changes were checked against the key-resolution selection, and twelve fail the expected case. They cover the capture timing, both type checks, the captured functions, the rebuilt custody, the path, tuple and guard checks, proof matching, and the forwarded code.Accepted round-six residuals (the round-two to round-five residuals still apply):
ad41dd8d, operator ruling).strcheck, because an exact path always formats to an exactstron Python 3.14.5 (kept for otherpathlibversions); and the exact error type in corroboration, because only_failraises inside the boundary, so it is reachable only through the F4 case.Round-seven gate rework
The round-seven reviews of
ad18dd6found all six round-six items fixed in code and no earlier item regressed. Standards and Security passed; Spec failed on one test gap. Mind-spec answerbf3ee04daccommodated all three fit questions. The operator ruled SEC-r7-1 fixed in this child, the F4 residual extended, and every Spec and Standards item fixed this round. Under the operator's ruling the guide wrote and pushed commitcec9e25. Round-seven dispositions[custody_alias]was refused by the tuple check first.[custody_alias]and the new[foreign_decoy]give an aliased and a plain foreign resolver an exact tuple of exact paths to a real contradiction.[keyring_class_patch]patches the classKeyRing.resolve.test_resolver_error_is_checked_oncenow runs the first read over every transient code, not onlykey_unavailable.[corroborated_contradiction]asserts durable 0, the full charge and the staged file without reassigning its parameter;castis gone andnamesis renameddirectories.test_forged_validator_code_is_not_proof[relative_names_chdir][custody_alias],[foreign_decoy]test_resolver_overrides_cannot_prove_recorded_key_conflict[keyring_class_patch]test_resolver_error_is_checked_once×24 (first read overkey_unavailable,key_custody_io,key_custody_insecure,key_custody_corrupt)test_resolver_classification_fault_is_derived×6Guide verification on
cec9e25before push: ruff, formatting and strict mypy passed;tests/test_recovery_transition.pypassed 700 cases. Against thead18dd6code the key-resolution selection fails only[relative_names_chdir]; the other new cases pin checks thatad18dd6already had. Nineteen isolated rule changes were run against the key-resolution selection, and seventeen fail the expected case. They include the classKeyRing.resolve, both KeyCustody identity checks, a re-raise of a held non-key_unavailabletransient error, and no working-directory capture. The two survivors are the equivalent ones recorded in round six.Accepted round-seven residuals (the round-two to round-six residuals still apply):
bf3ee04dQ2 and Q3, operator ruling): 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, the KeyEntry purpose flip (SP-r7-5) and the frame-locals rewrite (SEC-r7-2) fall inside these assumptions. Configured resolver callbacks, their exception accessors and caller-supplied path behavior remain in scope for every other behavior, including during classification and path capture. None can stand in for the comparison.ed6241ec). Corroboration closes forged proof by a raised code. It does not stop a hostile resolver from forcing durable quarantine through a real disagreement.strcheck and the exact error type in corroboration, as in round six.Round-eight gate rework
The round-eight reviews of
cec9e25found all round-seven items fixed in code, each pinned by its named test, and no earlier item regressed. Standards and Security passed; Spec failed on one test gap. Mind-spec answered the round-eight fit ask (fd282c1a) with three accommodations. The operator ruled all three security items fixed in this child. Under the operator's ruling the guide wrote and pushed commit9d3f8a2. Round-eight dispositionscec9e25captured the working directory as a path string. A callback that renamed that directory away and planted differing copies at its old path redirected the rebuilt custody (durable 1). The boundary now records the identity of the working directory with its path before the call. When the path no longer names that directory at corroboration, the result iskey_unavailable.cec9e25read the working directory even when every name was absolute, so a deleted working directory turned a genuine absolute-path contradiction into a derived fault. The working directory is now read only when a name is relative.KeyCustody; the corroborated orphan case asserts the genuine comparison's code. ST-r8-1 is declined: strict mypy narrows only ontype(resolver), so reusing the stored type needscast.test_forged_validator_code_is_not_proof[relative_names_renamed]test_bound_key_validator_conflict_survives_reopen[key_custody_deleted_cwd][symlink_dotdot_names],[symlink_dotdot_absolute],[symlinked_directory],[symlinked_directory_relative]test_bound_key_validator_conflict_survives_reopen[key_custody_relative]test_unbound_staged_key_fault_retains_file_and_charge[corroborated_contradiction]Guide verification on
9d3f8a2before push: ruff, formatting and strict mypy passed;tests/test_recovery_transition.pypassed 707 cases. Against thecec9e25code the key-resolution selection fails only[relative_names_renamed]and[key_custody_deleted_cwd]. Ten isolated rule changes were run against the key-resolution selection, and eight fail the expected case: no rename check, normalization of relative or absolute names,realpathof relative or absolute names, always reading the working directory, refusing relative names, and never corroborating.Accepted round-eight residuals (the round-two to round-seven residuals still apply):
., because both name the same directory at capture; and treating a failed stat as unchanged, because paths that are gone make the genuine lookup fail anyway. The exact-strcheck and the exact error type in corroboration stay equivalent, as in round six.Round-nine gate rework
The round-nine reviews of
9d3f8a2found all round-eight items fixed in code, each pinned by its named test, and no earlier item regressed. Standards passed with four nits. Spec and Security each failed on one test gap, and Security raised one should-fix. Mind-spec answered the round-nine fit ask (e83aaeef) with two accommodations (b2f06ecd). The operator ruled both security items fixed in this child. Under the operator's ruling the guide wrote and pushed commit4982f3f. Round-nine dispositionsisinstancemutant passed every case; under it a KeyCustody subclass that configures a real contradiction it never reads, then forges the code, reached durable 1. A new test pins exactness.9d3f8a2joined relative names to a capturedos.getcwd()path. A deleted working directory with one relative name among disagreeing absolute directories, or a working directory whose path cannot be stat'ed, turned a genuine contradiction into a derived fault. The boundary no longer callsos.getcwd()and no longer joins names. Relative names stay exactly as configured. When any name is relative, the boundary records the identity of.before the call, and corroboration reads the relative names only while.is still that directory; otherwise the result iskey_unavailable. Absolute-only custody records nothing.9d3f8a2(b2f06ecdQ1): 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._CustodySourceskeeps one optionalidentityfield; two tests no longer build a throwaway absoluteKeyCustody; a redundantproofs andis dropped.[custody_alias]pins the remaining type check and that no KeyCustody identity check survives alone.[custody_alias]kills only the==form;[custody_subclass]now pins exactness.test_forged_validator_code_is_not_proof[custody_subclass]test_bound_key_validator_conflict_survives_reopen[key_custody_mixed_deleted_cwd],[key_custody_callback_chdir]Guide verification on
4982f3fbefore push: ruff, formatting and strict mypy passed;tests/test_recovery_transition.pypassed 710 cases. Against the9d3f8a2code the new and changed cases fail only[key_custody_mixed_deleted_cwd]. Withisinstancein the capture-side type check,[custody_subclass]fails.Accepted round-nine residuals (the round-two to round-eight residuals still apply):
.and makes no path lookup. It has no CI test, because CI runs as root and a chmod cannot make a parent unsearchable for root.st_inoonly is an untestable survivor. It matters only when another filesystem is mounted at the same place with the same inode number, which needs mount privilege..as unchanged is an equivalent survivor: the rebuilt lookup of a relative name then fails too and never gives the proof code. The round-eight survivor "identity from the captured path instead of." no longer exists, because no path is captured.Round-ten gate rework (spec-v14)
The round-ten reviews of
4982f3fpassed Spec and Standards. Security failed on one test gap and raised three should-fix items. They showed that reading relative key names through the process working directory could not be made sound within the seven-file write set (mind-spec2576f406). The operator ruled a spec amendment in this child. Spec-v14 addsrecovery_crypto.pyas the eighth primary file. Its 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, and the operator approved spec-v14 at sha256ed311972b1265b9d51bed76bd26a863146a8ce4fbd644bd05a26a54a0e20fdef. Under the operator's ruling the guide wrote and pushed commit49f6f21. Round-ten dispositionsKeyCustody.resolvereads the same way.KeyCustody.close()releases the anchor.ManagedConfigrecords its key custody. Its wrapped initializer refuses reentry before any field write. A config built without its constructor has no record.QueueTransitionbinds an engine-owned key reader once, at construction, from a snapshot of the config's instance dictionary with exactstrkeys. No later change to the config or the custody object reaches it._OpeningKeysand_CustodySourcesare removed.test_forged_validator_code_is_not_proofandtest_bound_key_validator_conflict_survives_reopen(absolute, relative and mixed;chdir_before,chdir_during,renamed_anchor,deleted_cwd,callback_thread,close_during,copy_removed_during; disagreeing and agreeing copies)test_key_custody_anchor(11 cases)test_key_reader(15 cases, one per v14 arm)SEC-r10-4 (
st_ino), SP-r10-2 and ST-r10-1 are moot, because the working-directory identity check is removed. ST-r10-2 is declined as optional.Guide verification on
49f6f21before push: ruff, formatting and strict mypy passed; the full suite passed 1791 cases. With the4982f3fsource and the new test file, 108 of the key-resolution and key-reader cases fail and 34 pass. The passing cases guard behaviour that the base already had. Each named case has a one-line mutant that kills it, with two gaps. Eleven mutants also kill other named cases, because those cases share read paths. The four absoluteclose_duringcases have no killing one-line mutant, because absolute custody holds no descriptor.Withdrawn residuals: the round-nine residuals on the unsearchable parent,
st_ino, the failed stat of.and callback races no longer apply, because no working-directory check remains.Accepted round-ten residuals: the spec-v14 trust boundary is a closed Not-defended list. Every action not on it is Defended. The list:
engine._quarantine(), for the durable mark only (the staged file and its full charge stay);Round-eleven gate rework (spec-v15)
The round-eleven reviews of
49f6f21failed all three lenses. Every round-ten item was fixed or moot, and no earlier item regressed. The failures had two causes. Four spec-v14 rules had no test that a one-line mutant turned red. A fault hook's thread could also set the engine's in-memory readiness, which spec-v14 did not list as protected state (SEC-r11-1, also present at4982f3f). The operator ruled to name every in-memory field of that kind. Mind-spec found the enumerated list fits as a closed set (cfe007fb) and accommodated the final text (f5fc1de1). The operator approved spec-v15 at sha256ca43e1e047ef1baf232ff08a4608e4e5d1e909e74c41ebbc0d5958ce19bc0853. It differs from spec-v14 in the protected-state item only. Commitef49467changes tests only. Round-eleven dispositionstest_key_reader[activate_compares_reader]test_key_reader[activate_compares_reader]test_key_custody_anchor[no_leaked_descriptor]ManagedConfigtype (SP-r11-3)test_key_reader[config_dict_exact_keys]test_key_custody_anchor[public_resolve_anchored]Each one-line mutant that undoes one of these rules turns exactly its case red. The direct-quarantine case now asserts only the staged file and its full charge, and seven test comments no longer describe the removed corroboration.
Guide verification on
ef49467before push: ruff, formatting and strict mypy passed;tests/test_recovery_transition.pyandtests/test_recovery_crypto.pypassed 859 cases.Changed round-ten residual: "direct writes of protected state" now covers the spec-v15 closed set: the database rows, the bound reader and the records named before, plus the instance fields that spec-v15 names for
QueueTransition,Store,Serviceand_ReleaseGate. Only the named fields are protected state.engine.configstays Defended.Round-twelve gate rework (spec-v16)
The round-twelve reviews of
ef49467gave Spec FAIL, Standards PASS and §19 Security FAIL. Every round-eleven item was fixed or moot, and no earlier item regressed. Configured code reached a result through code rebinding, a file write in the queue's custody directory, and an assignment ofengine.config(SEC-r12-1 to SEC-r12-3). The operator ruled code changes and writes in the custody directory Not defended, and later the bound config's authority fields written around their freeze. Mind-spec accommodated the clauses (8056d808,3d20b3b2) and the final text (7de7866c). The operator approved spec-v16 at sha2565cf79bb485f411a0cb371a3b61179e2e6a999e5534e6629a48cf007f0d0871a8. Round-twelve dispositionsengine.configlive, including the archive namespace (SEC-r12-2)_config, bound at construction;test_key_reader[config_assignment_has_no_effect]test_key_reader[activate_compares_reader]test_key_reader[direct_quarantine_keeps_unbound_charge]asserts the hook fired_authority_premise(SP-r12-2, SEC-r12-N1)_activationA one-line mutant was run for each of the first three rows, and each turns its case red. For the first row, those mutants put the invalidation read and the archive namespace read back on
engine.config; round thirteen pins the other reads. The private-access arm asserts only that the result equals the run without the hook, so it does not detect a hook that writes protected state.Guide verification on
11fe9d2before push: ruff, formatting and strict mypy passed;tests/test_recovery_transition.pyandtests/test_recovery_crypto.pypassed 860 cases.New residuals (spec-v16 Not-defended list):
__class__assigned, or an instance attribute that hides a method or property;premise,invalidationsorfrontier_key_id, or of a field of the premise, namespace, principal or invalidation values they hold.The protected list adds
_configand the three fields thatasyncio.Lockassigns on_ReleaseGate.Round-thirteen gate rework (spec-v17)
The round-thirteen reviews of
11fe9d2gave Spec FAIL, Standards PASS and §19 Security FAIL. Every round-twelve item was fixed or moot, and no earlier item regressed. A fault hook could empty a list or change a tuple subclass that the config held asinvalidations, so a revoked premise dispatched (SEC-r13-1). No test pinned the_configread in_same_config(SP-r13-1). The operator ruled thatManagedConfigrefuses a mutable container. Mind-spec accommodated the text (e3a6b5cd). The operator approved spec-v17 at sha256048cc1ee8777624bb2992ac625aa514d8d580f19c55d3174431d1bb4a3584162. Round-thirteen dispositionsinvalidations(SEC-r13-1)ManagedConfigrefuses withunsupported_typeunlessinvalidationsis an exact tuple of exactPremiseInvalidationvalues;test_key_reader[config_invalidations_exact]_same_configread had no test (SP-r13-1)test_key_reader[config_assignment_has_no_effect]assigns the requested config beforeactivateon an engine not yet activated_configreads had no test (SP-r13-2, ST-r13-1)srcmodule loads aconfigattributeA one-line mutant was run for each row, and each turns exactly its case red: the exact check removed; the
_same_configread, also with the static check off; the seal key ID and the invalidation read; and the premise and invalidation reads together, with the static check off.Guide verification on
e99c6fbbefore push: ruff, formatting and strict mypy passed;tests/test_recovery_transition.pyandtests/test_recovery_crypto.pypassed 861 cases.Round-fourteen gate rework (spec-v18)
The round-fourteen reviews of
e99c6fbgave Spec FAIL, Standards FAIL and §19 Security FAIL. Every round-thirteen item was fixed or partly fixed, and no earlier item regressed. No test pinned that a refusedinvalidationsvalue stores no record (ST-r14-1, SP-r14-1). A reentrantManagedConfig.__init__call, and the generated initializer read from the wrapper's closure, could write a list into a recorded config, so a revoked premise dispatched (SEC-r14-1). The operator ruled that the engine binds the validated invalidations from the config record. Mind-spec did not answer the fit question, and the guide took that silence as its answer. The operator approved spec-v18 at sha256b56c0f3881f893a21ec236bbe839d652c501d4d74ae45c49689ad17b39618f35. Round-fourteen dispositions_invalidations;test_key_reader[constructor_reentry_refused]and[config_invalidations_exact][config_invalidations_exact]builds each refused value throughManagedConfig.__init__and asserts no record and a refused reopen__iter__records and raises; the arm asserts it never ran"config"string constant insrcA one-line mutant was run for each row, and each turns exactly one arm red. Three mutants (
_same_config,_activateand the record read each taking the field) are caught only by the static check of.invalidationsreads.Guide verification on
7439267before push: ruff, formatting and strict mypy passed;tests/test_recovery_transition.pyandtests/test_recovery_crypto.pypassed 861 cases.Round-fifteen gate rework (spec-v19)
The round-fifteen reviews of
7439267gave Spec FAIL, Standards FAIL and §19 Security FAIL. Every round-fourteen item was fixed, and no earlier item regressed. The config record and the frontier authority held the caller's own frozen values. A fault hook that called a value's dataclass-generated__init__on the same instance dropped a revocation, so a revoked premise dispatched. On the frontierNamespaceduring the local commit, it persisted a durable quarantine that a good reopen kept (SEC-r15-1). No test pinned the bind identity check against an equality mutant (ST-r15-1) or the_same_configread against agetattrspelling (SP-r15-1). The operator ruled that the engine reads its own copies of the configured premise values. Mind-spec did not answer the fit question, and the guide took that silence as its answer. The operator approved spec-v19 at sha256352affb462f5bc3942ab210074f7ac12c3d464a413105b0d85059a53384085b6. Round-fifteen dispositions__post_init__builds copies, and the engine binds_invalidationsfrom them;_authority_premiseis the engine's decoded copy at bind and at rebind;test_key_reader[premise_values_owned][config_invalidations_exact]writes an equal distinct tuple and a recording tuple subclass; each refuses at bind, and no comparison runs_same_configread was pinned against one spelling (SP-r15-1, ST-r15-2, SEC-r15-2)initialization_unproven; the static check is keyed by enclosing function and seesgetattr,attrgetterand constant subscriptsA one-line mutant was run for each change, and each turns at least one arm red. One mutant (
_activateencoding the field bygetattr) is caught only by the static check.Guide verification on
cc3ceb8before push: ruff, formatting and strict mypy passed;tests/test_recovery_transition.pyandtests/test_recovery_crypto.pypassed 862 cases.Merge Danger
The code merge is reversible while managed activation remains disabled. The affected paths are managed custody and served response release. Production managed activation remains disabled until all three gates are verified.
Carry-forwards
4adee8cdand09e1ced4record the expiry and profile decisions.ec8036c8ratified the narrowineligiblemapping. Under the operator's 17:20:18 ruling on 2026-11-21, mind-spec landed the canonical attention-v1 text in dev/mind-spec atf2d7a963.Closes #33
Co-Authored-By: gpt-6.2-sol noreply@openai.com
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.