docs(pre-push-safety-net): record the population v4 reservation and freeze for 15.1

This commit is contained in:
Marius Ciepluch
2026-11-23 17:42:23 +01:00
parent c97564343e
commit 62a08a0398
+4 -1
View File
@@ -593,13 +593,16 @@ Preserve all completed task evidence below.
- [ ] 15. Prepare the independent population and declare the shippable scope (M4 preparation)
- Runs in parallel with M2 and M3. M4 already permits population preparation before the frozen candidate exists, and it is the longest lead-time item on the path: nothing can be qualified without it however good the analyser gets.
- [ ] 15.1 Reserve and review an untouched evaluation population
- [x] 15.1 Reserve and review an untouched evaluation population
- Freeze reviewed vulnerable, fixed and benign changes from projects not used to develop or tune this analyser. NodeGoat, VAmPI, PMPro, WP Statistics, MW WP Form and libpng are all development subjects and none of them may qualify anything.
- Reserve the cases untouched: do not examine their scan results before the population is frozen, and record the reservation so a later run cannot be mistaken for a blind one.
- **The population MUST hold a multi-language repository.** Task 13.4 found that a second language in a repository cost every question its completion, and so cost every finding its admission — on the declared v0.1 target, which is PHP plus admin JavaScript. Neither subject that passes today could reveal it, because both hold exactly one language. A population of single-language repositories would qualify a capability that fails on the product's own target.
- Done when a frozen population exists with its provenance and review recorded, at least one member holds more than one language, and nothing in it has been scanned.
- _Reserved 2026-09-24, not yet frozen._ Eleven cases selected by the maintainer from fifteen researched by advisory and fix diff alone (no clone, no scan), none among the 262 repositories this project's benchmarks reference, plus the earlier Ghost reservation: 4 PHP with JavaScript (Ultimate Member and LearnPress WordPress plugins, phpMyFAQ, YesWiki; all SQL injection), 4 Node/TypeScript (Signal K SSRF, Saltcorn SQLi, mongo-express code injection, Mockoon permissive CORS), 3 Python (alerta SQLi, wger open redirect, OpenCVE SSRF). Record: `benchmarks/independent/population-v1.toml`; research and rejected alternates: `research-2026-09-24.md`. A guard test fails if any reserved repository is referenced elsewhere in the tree. Remaining to FREEZE: per case, verify the pins and the sink by reading source, and choose a benign change from the same history without scanning; the OpenCVE licence must be checked before any result is published.
- _Frozen 2026-09-24._ `benchmarks/independent/freeze.py` verified every case with git and file reads only -- no analyzer, query or tooling: both pins present and ordered, the sink text present at the vulnerable pin (LearnPress's fix is source-side and recorded as `fix_site`; Mockoon's sink is recorded as `sink_evidence`), the fix touching the sink or its declared fix site, and SHA-256 of the sink file at both pins. Benign controls were proposed mechanically and REVIEWED by diff: the keyword filter alone let through an access-restriction, a filter check, API-token scopes, a login change and a TLS-verification option, all rejected; Ultimate Member's and alerta's controls were replaced by hand (a coding-standards reformat; a dependency-plumbing change with both sides still vulnerable). Record: `freeze-v1.json`. The guard test now requires a benign pair for every case of a frozen population. Nothing in it has been scanned; the first scan is the evaluation.
- _Reserved 2026-11-23, population v4._ Why a fourth population: v1 and v2 were evaluated and failed every M4 gate, and v3 (PHP) is frozen for the one-time final check. Twelve cases selected by the maintainer from sixteen researched by advisory and fix diff only (no clone, no scan), none among the repositories this tree names: 4 PHP with JavaScript (rtMedia SQL injection, Drupal core SQL injection, Known SSRF, TYPO3 news SQL injection), 4 TypeScript (Tianji SQL injection, Vendure SQL injection, Novu SSRF, Strapi permissive CORS), 4 Python (agenticSeek debug mode, Rucio SQL injection, LlamaFactory SSRF, IRRD host-header reset-link poisoning). Records: `benchmarks/independent/population-v4.toml`, `research-2026-11-23.md`. Since commit 731eb8d the guard scans every file under benchmarks, plane, src and tests, so each file that names a reserved repository is pinned by SHA-256 in `benchmarks/valid/reservation_guard_sources.py`. Commit 624816f.
- _Frozen 2026-11-23._ `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 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. The population holds 11 cases, 4 PHP with JavaScript, 4 TypeScript, 3 Python (injection 6, untrusted destination 3, configuration 2), with four multi-language members. The review named the functions freeze.py could not resolve (Novu, Vendure), replaced one benign proposal by hand (agenticSeek: the proposal edited the denial branch of a tool guard), and read and recorded every licence. Record: `freeze-v4.json`, pinned, with the review fields inside it. Nothing in it has been scanned, traced, probed or censused. Commit c975643.
- _Still open before the first scan:_ (1) `protocol-v4.md` does not exist; it must be committed before any scan and must state, per language, which instruments run (`evaluate.py` runs only the Joern engine and the quick rules are PHP-only), the matching rule, the gates and the budget: maintainer choices. (2) Not traced at the freeze, by rule, and recorded as such in the population: the request entry points and privilege claims of every case. (3) A twelfth case to replace IRRD needs its own reservation and freeze. (4) The docs that list populations with counts (`docs/evaluation.md`, `docs/where-we-stand.md`, the steering files) do not list v4 yet.
- _Boundary: Evaluation harness, corpus provenance_
- _Requirements: 8.1, 8.2_
- [x] 15.2 Declare the v1 advisory scope as the families whose claims can be admitted