refactor(delivery,identity,vrs): delete a label branch, give DELTA-006 a producer, fold two duplications - #500
Merged
schickling-assistant merged 2 commits intoSep 7, 2026
Conversation
…allow-list
C4: four sites re-derived the same `{id, bus_identity, host, address}`
from the same spec that `identity::address_book` already maps. The
derivation becomes `AddressBookEntry::of`, which `address_book` uses too;
`resolve` and `resolve_address` had zero callers outside the module and
become private.
C5: `tests/vrs_ledger.rs` spelled four decision numbers and eight full
filename stems to assert a set equality. Comparing `number -> count`
keeps every ledger property that matters — a new number colliding, or a
third file joining an existing collision — and drops only "a stem was
retitled", which is not a ledger property and forced a test edit on
every rename.
agent-identity: dev3.direct.omp.43sz6ujq
agent-persona: generalist
agent-supervisor: unavailable
agent-tool: OMP
agent-tool-version: 18.1.7
agent-runtime: OMP 18.1.7
tooling-profile: dotfiles@39a19af
…6 a producer C2: `HoldReason::UnattestedClaim` was a label, not a decision. `retention()` reaches the attestation branch only for a phase below `Persisted` that the profile does not release — i.e. `Attempted` — which already holds as `AmbiguousAttempt`, and `retry()` collapses both through one arm. No caller reads the reason: both transports test `!= RetryDecision::Retry`. So the arm changed no Release/Hold/Retry outcome anywhere; the safety property is delivered by `Phase` + `Profile::proves`, which `seed` re-checks. Deleted, with the three docs that claimed the attestation did that work. C3: DELTA-006's Resolution Signal named a query nobody ran, so the trigger resolved on someone remembering — a date in disguise. Adds the producer: `migrations::delivery_state::resolution_signal` counts both clauses read-only (it opens no ledger, so measuring cannot consume what it measures) and `st2 doctor` prints `<seat> pre-ledger delivery state (DELTA-006) — preLedgerRecords=N assertedEntries=M`, silent when both are zero. Clause 1's unevidenceable "rollback has stopped being supported" is replaced by a named artifact: a ratified decision recording that the pre-ledger release line is no longer a rollback target. Consequence recorded in DELTA-006: the `attestation` field is trigger instrumentation for this arm, not a permanent concept, so it is deleted *with* the arm. agent-identity: dev3.direct.omp.43sz6ujq agent-persona: generalist agent-supervisor: unavailable agent-tool: OMP agent-tool-version: 18.1.7 agent-runtime: OMP 18.1.7 tooling-profile: dotfiles@39a19af
This was referenced Sep 7, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Four items from
reports/deepclean-added-today.md, each small and independent.C2 —
HoldReason::UnattestedClaimwas a label, not a decisionretention()'s branch order is quarantine → negative →profile.releases→>= Persisted→ attestation, so the attestation arm was reachable only for a phase belowPersistedthat the profile does not release — i.e.Attempted— which already holds asAmbiguousAttempt.retry()collapses both through one arm, and no caller reads the reason:codex_app_server.rs:1087andopencode_session.rs:1510both test!= RetryDecision::Retry, andHoldReasonreaches no output path. So the arm changed no Release/Hold/Retry outcome anywhere.Deleted, along with the three doc claims that credited the attestation with work the phase does. The safety property is delivered by
Phase+Profile::proves— no harness profile provesAttempted, andseedre-checks an asserted phase against the profile and fails closed.C3 — DELTA-006's deletion trigger named a query nobody ran
Both commands were runnable, but nothing produced them: no
st2 doctorrow, noaxecheck, no timer. "Prints nothing on every admitted host for seven consecutive days" then resolves on someone remembering — a date in disguise, which/sk-patterns-legacy-boundary's own Smells section forbids. Clause 1 additionally required "rollback to a pre-ledger release has stopped being supported", which no artifact records, so it could never be satisfied.migrations::delivery_state::resolution_signal(&[state_dirs])counts both clauses. Read-only by construction: it opens noLedger, so measuring cannot consume what it measures (opening translates and persists).delivery_ledger::asserted_entriesreads the ledger bytes directly; a missing ledger is zero, unparseable bytes are an error.st2 doctorprints one advisory per seat and nothing when both clauses are clear, so the trigger keeps the shape of the query it replaces.docs/vrs/.decisions/recording that the pre-ledger release line is no longer a rollback target. Its existence is what closes the clause.DELTA-006 also loses its false claim that the attestation concept is permanent: it is trigger instrumentation for this arm, and it is deleted with the arm. Deletion cost is restated accordingly.
C4 — identity API wider than its callers
resolve(0 external callers) andresolve_address(0) become private;delivery_ledger::{LEDGER_SCHEMA, LEDGER_FILE}becomepub(crate). Three sites re-derived the identical{id, bus_identity, host, address}mapping from the same specaddress_bookalready performs; that derivation becomesAddressBookEntry::of, whichaddress_bookitself uses.message.rs:1373keeps its own literal — it maps anAddressableAgent, not anAgentSpec.C5 —
tests/vrs_ledger.rsallow-listThe
expectedliteral spelled 4 numbers × 8 full filename stems (35 of 122 LOC). Comparingnumber -> countkeeps every property that matters — a new number colliding, a third file joining an existing collision, a repair — and drops only "a stem was retitled", which is not a ledger property and forced a test edit on every rename. Renaming the 8 files is explicitly not done: 26 inbound references cite them and decision filenames are historical IDs.Checks
nix build .#st2 --no-link -L: EXIT=0 (ptyst2.clean-2.gate, log/tmp/st2-clean2-gate.log).--lib742 passed (741 before; +1 is the new signal test),agent_publish15 passed / 9 ignored,validate64,message6,agent_address12,vrs_ledger3, all other targets unchanged.migrations::delivery_state::tests::the_resolution_signal_counts_each_clause_without_consuming_it(each clause counts nonzero exactly while its subject is present, and two consecutive measurements agree) and the rewordedan_asserted_phase_suppresses_a_duplicate_and_authorizes_no_transport, which now shows the hold coming from the phase.cargo check --all-targets: EXIT=0, no new warnings.st2with a planted state dir:delivery-state.jsonpresent⚠ h.root pre-ledger delivery state (DELTA-006) — preLedgerRecords=1 assertedEntries=0… preLedgerRecords=1 assertedEntries=1✗ h.root delivery ledger readable — parsing delivery ledger …LOC delta
+254/−126 across 9 files. Production: C2 −11, C4 −18; C3 +~75 (producer, doctor row, and its test); docs +49/−22;
tests/vrs_ledger.rs−34.Posted on behalf of @schickling
agent_identitysessionagent_personaagent_supervisoragent_toolagent_tool_versionagent_runtimetooling_profile