Commit Graph
507 Commits
Author SHA1 Message Date
Marius Ciepluch f9d29aa6e8 fix(valid-detection-benchmark): bind a production spend stage for the adapter path
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.
2026-11-23 20:15:21 +01:00
Marius Ciepluch 5fdf65e02d fix(valid-detection-benchmark): mint the shared spend receipt from the preparation
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).
2026-11-23 20:15:09 +01:00
Marius Ciepluch 58b2021247 style(valid-detection-benchmark): apply ruff format to three benchmark modules
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.
2026-11-23 20:15:02 +01:00
Marius Ciepluch c97564343e bench(independent): freeze population v4 (11 cases)
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.
2026-11-23 17:41:29 +01:00
Marius Ciepluch 624816f36c bench(independent): reserve population v4 (12 cases) by maintainer selection
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.
2026-11-23 16:03:59 +01:00
Marius Ciepluch 364b4c0777 test(valid-detection-benchmark): pin each fix-site key element and non-integer closure totals
- 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)
2026-11-23 13:31:01 +01:00
Marius Ciepluch bacbe53a0b style(valid-detection-benchmark): apply ruff format to 15 benchmark modules
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).
2026-11-23 11:42:55 +01:00
Marius Ciepluch 67bc37cac6 fix(valid-detection-benchmark): break sourcing-queue ties on fix-site path and function
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.
2026-11-23 11:40:09 +01:00
Marius Ciepluch 9e884e8342 fix(valid-detection-benchmark): require a strict integer for the accepted positive total
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.
2026-11-23 11:40:09 +01:00
Marius Ciepluch 60bb7f0bdd fix(valid-detection-benchmark): fail cohort selection closed on a malformed pending ledger
_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.
2026-11-23 11:40:09 +01:00
Marius Ciepluch 7e6da2efae fix(valid-detection-benchmark): normalize mixed-case .git suffixes in reservation identity
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.
2026-11-23 11:40:09 +01:00
Marius Ciepluch da5323002e feat(valid-detection-benchmark): 11.3 end-to-end lifecycle with case adapter and hostile-decode retrofit 2026-11-23 02:50:12 +01:00
Marius Ciepluch c587f25bb3 feat(valid-detection-benchmark): 10.7 freeze and causally bind replacement baseline 2026-11-22 22:27:09 +01:00
Marius Ciepluch 93ebea7b93 feat(valid-detection-benchmark): 10.6 draw and validate ordinary-change population 2026-11-22 21:38:26 +01:00
Marius Ciepluch c2b5f5bc92 feat(valid-detection-benchmark): 10.5 ingest fourth cohort and close positive set 2026-11-22 20:12:03 +01:00
Marius Ciepluch 6d66501192 feat(valid-detection-benchmark): 10.4 select and ingest third reviewed cohort 2026-11-22 19:16:54 +01:00
Marius Ciepluch 408a562c41 feat(valid-detection-benchmark): 10.3 ingest bounded reviewed JavaScript/TypeScript cohort 2026-11-22 18:42:51 +01:00
Marius Ciepluch 825e680804 feat(valid-detection-benchmark): 10.2 ingest bounded reviewed Python cohort 2026-11-22 10:25:59 +01:00
Marius Ciepluch 34344234d5 feat(valid-detection-benchmark): 10.1 create bounded sourcing and review queues for both initial ecosystems 2026-11-21 21:29:52 +01:00
Marius Ciepluch 38e12282da feat(valid-detection-benchmark): 9.3 publish benchmark-only run, resume, and status commands 2026-11-21 19:27:27 +01:00
Marius Ciepluch 4085f236f3 feat(valid-detection-benchmark): 8.6 resume exact pre-spend and post-spend workflows without changing authority 2026-11-21 17:39:10 +01:00
Marius Ciepluch 6fad162962 feat(valid-detection-benchmark): 8.5 produce every scoped report and one complete evaluation replay 2026-11-21 16:34:30 +01:00
Marius Ciepluch 475ff3a5fe feat(valid-detection-benchmark): 8.4 project exact-scope cases and promote only matching differential proof 2026-11-21 15:23:51 +01:00
Marius Ciepluch 14036e1ec9 feat(valid-detection-benchmark): 8.3 commit spend before label release with independent V3 case review 2026-11-21 14:11:01 +01:00
Marius Ciepluch 14bf931f01 feat(valid-detection-benchmark): 9.2 remove replacement authority from legacy aggregate scoring 2026-11-21 13:39:38 +01:00
Marius Ciepluch 9ba0a9d4c5 feat(valid-detection-benchmark): 8.2 execute and seal planned observations before spend 2026-11-21 12:41:55 +01:00
Marius Ciepluch a7adc99d31 feat(valid-detection-benchmark): 9.1 route catalog, verification, and assembly through new authorities 2026-11-21 12:41:42 +01:00
Marius Ciepluch 3a9f1d12ab feat(valid-detection-benchmark): 8.1 admission preflight with sealed retry authority 2026-11-21 11:10:05 +01:00
Marius Ciepluch 8b0cf664b3 feat(valid-detection-benchmark): render deterministic transport-neutral operator reports 2026-11-21 10:25:33 +01:00
Marius Ciepluch cf4467aa5e feat(valid-detection-benchmark): implement causal workflow journal with lease-protected head 2026-11-20 22:25:06 +01:00
Marius Ciepluch 0ba6d22d17 feat(valid-detection-benchmark): define closed workflow outcomes and redacted serialization 2026-11-20 21:35:16 +01:00
Marius Ciepluch b1a7ccd231 feat(valid-detection-benchmark): integrate sealed pre-spend diagnostics with reviewed development opening 2026-11-20 20:25:08 +01:00
Marius Ciepluch c122c72da1 feat(valid-detection-benchmark): freeze exact observation checkpoints 2026-11-17 22:42:00 +01:00
Marius Ciepluch 06cee280df feat(valid-detection-benchmark): isolate label blind arm execution 2026-11-17 20:34:11 +01:00
Marius Ciepluch 6a71a86ee5 feat(valid-detection-benchmark): combine preserved arm observations 2026-11-17 17:34:49 +01:00
Marius Ciepluch abe3f9ccd9 feat(valid-detection-benchmark): register immutable evaluation arms 2026-11-17 16:47:55 +01:00
Marius Ciepluch 990eda3506 feat(valid-detection-benchmark): enforce monotonic durable custody 2026-11-17 16:11:24 +01:00
Marius Ciepluch 7f1539a7ca feat(valid-detection-benchmark): probe custody store capabilities 2026-11-17 15:52:05 +01:00
Marius Ciepluch b8a7e66cd6 feat(valid-detection-benchmark): recover durable authority projections 2026-11-17 14:37:20 +01:00
Marius Ciepluch ce7bc1842c feat(valid-detection-benchmark): persist content addressed artifacts 2026-11-17 13:59:33 +01:00
Marius Ciepluch 26b6174510 feat(valid-detection-benchmark): integrate reviewed label blind manifest 2026-11-17 13:35:45 +01:00
Marius Ciepluch 67312fc39f feat(valid-detection-benchmark): separate public private and sealed materials 2026-11-17 13:07:06 +01:00
Marius Ciepluch 4196effcd0 feat(valid-detection-benchmark): classify and freeze canonical population 2026-11-16 18:41:49 +01:00
Marius Ciepluch 0dd4d35519 feat(valid-detection-benchmark): draw representative ordinary changes 2026-11-16 18:09:48 +01:00
Marius Ciepluch 450c31257b feat(valid-detection-benchmark): validate reviewed ground truth 2026-11-16 17:41:41 +01:00
Marius Ciepluch 819084a93a feat(valid-detection-benchmark): validate canonical ecosystem reviews 2026-11-16 17:31:05 +01:00
Marius Ciepluch 00b584a1ac feat(valid-detection-benchmark): preserve exact fix-site evidence 2026-11-16 17:08:05 +01:00
Marius Ciepluch 731eb8d24a feat(valid-detection-benchmark): enforce permanent reservation guard 2026-11-16 16:55:56 +01:00
Marius Ciepluch c5bffb2835 feat(valid-detection-benchmark): project causal population lifecycle 2026-11-16 16:06:01 +01:00
Marius Ciepluch a64da1f4f4 feat(valid-detection-benchmark): authorize exact historical audit files 2026-11-16 15:51:29 +01:00