Add bind_case_adapter_spend_stage and export it from the run module: the
stage derives the preparation from the adapter request and commits the
shared spend through commit_preparation_spend_and_release, so a receipt
minted on this path satisfies the core's shared-spend validation. The
legacy release is refused on the same path (contrast test).
The bound stage refuses a stage product that differs from the execution the
request was validated for, before any custody read or write.
Add commit_preparation_spend_and_release: the shared label spend mints its
custody receipt from preparation.label_release_request, which is what the
core's shared-spend validation requires (arm id and influenced artifact
digest of the authority). commit_spend_and_release keeps its behaviour and
its mint order; its receipts cannot satisfy a preparation and are refused by
the replay, as a contrast test now pins.
Closed refusals, all before any write unless stated: wrong preparation type,
head unavailable or moved (no CAS), lost CAS, labels unreadable after the
committed spend (labels_spent true).
admission_spend.py, admission_case_adapter.py and run.py were still
unformatted at HEAD (CI runs ruff format --check over the whole tree).
Formatting only: the abstract syntax tree of each file is identical to
the previous revision.
freeze.py verified every case with git and file reads only (exit 0). A hand
review in two independent sessions then read each sink at the vulnerable pin
and each benign diff. Eleven cases stand; irrd-host-header-reset-poisoning
was dropped (its declared sink file holds no link construction and the fix
touches none of the link files, so the sink rule cannot be met).
4 PHP with JavaScript, 4 TypeScript, 3 Python; injection 6, untrusted
destination 3, configuration 2. Nothing in it has been scanned, traced,
probed or censused. protocol-v4.md must be committed before the first scan.
freeze-v4.json is pinned in reservation_guard_sources.py beside the
research record, so the guard fails loudly if either file changes.
Reserve a fourth independent population for milestone M4: twelve
repositories (four PHP, four TypeScript, four Python) chosen by the
maintainer from a sixteen-candidate research record built without a
clone or a scan. None of the twelve is named anywhere else in the
development tree.
The research record is pinned by SHA-256 in the reservation guard so the
production guard accepts the one file allowed to name the reserved
repositories. The population is reserved, not frozen: pins, sink
presence and benign changes are verified by the freeze step. Nothing in
it has been scanned, traced, probed or censused.
- one sourcing-queue pair per fix-site key element (path-only,
function-only), each proven red by dropping that key line alone
- the closure decode test covers a self-consistent bool total next to
the float total
- the _request_order docstring names the two ties that remain open
(fix revisions; shared candidate digest with another family or CWE)
CI runs ruff format --check over the whole repository, and these modules under benchmarks/valid were the last unformatted files. Formatting only: the AST dump of every file is identical to the previous revision and the logical line count is unchanged (admission_execution.py and admission_projection.py stay at 400).
Candidates that differed only in fix-site path or function were selected by input order under the queue cap. Both scalars are now part of the request order, so cap selection no longer depends on input order for them.
total_accepted_positives accepted floats and booleans on both the direct and the decode path. Both now fail closed with STATE_MISMATCH through one sibling helper that keeps _validate_closure within the complexity cap.
_ledger_facts accepted any pending_entries value and turned it into a set; a ledger outside the durable shape is now a STATE_MISMATCH on both selection rounds. The _pending_by_ecosystem docstring now states the conflicting-accepted-review corner accurately.
A reference such as OWNER/REPO.GIT escaped the reserved-identity check at both reservation sites because the suffix was stripped case-sensitively. One shared strip now handles the suffix case-insensitively; identities without a mixed-case suffix are byte-identical.