diff --git a/.kiro/steering/overview.md b/.kiro/steering/overview.md index d041e80b..b2db2992 100644 --- a/.kiro/steering/overview.md +++ b/.kiro/steering/overview.md @@ -98,6 +98,8 @@ User-facing documentation: `README.md`, `docs/architecture.md`, `docs/evaluation - **Evaluation.** Populations v1 and v2 are spent and failed every M4 gate (`benchmarks/independent/results-v1.json`, `results-v2.json`); v3 (PHP) is frozen and untouched for the one-time final check. The plane increment met its gate on the second measurement with a tie-break chosen after the first (`benchmarks/independent/plane-increment-2.json`). + Population v4 (11 cases: 4 PHP, 4 TypeScript, 3 Python) was frozen on 2026-11-23 and is unscanned, with no + protocol and no result yet. - **Providers.** DeepSeek for LLM calls, OpenRouter only for OpenAI embeddings; keys in `.env`, which never overrides an exported shell variable. diff --git a/.kiro/steering/roadmap.md b/.kiro/steering/roadmap.md index adc1d5bd..b93bb833 100644 --- a/.kiro/steering/roadmap.md +++ b/.kiro/steering/roadmap.md @@ -403,6 +403,8 @@ engine pins on kube-ax, model calls on the VM or CI), sized by what G1-G3 kept. G5. Qualification and rollout: adopt, commit `prediction-v3.json`, spend population v3 once, advisory rollout, BLOCK only for families that passed. +Population v4 (11 cases, frozen 2026-11-23) is the untouched population held for M4: it is not scanned and has +no protocol yet. ### Cross-cutting rules @@ -430,6 +432,7 @@ The milestone table below dates from 2026-09-14. Since then (`.kiro/specs/pre-pu M1a and M1b are met, M2 is measured NO-GO, and M3 is next, with M4 population preparation in parallel; none of M1-M5 is verified and rollout remains NO-GO. Populations v1 and v2 were evaluated and failed every M4 gate (`benchmarks/independent/results-v1.json`, `results-v2.json`); v3 (PHP) is frozen for the one-time final check. +Population v4 (11 cases) was frozen on 2026-11-23 and is unscanned, with no protocol and no result yet. Work since then moved to: the ax plane as the only agentic executor (`ai-service-plane`, HarnessX retired 2026-09-30 by `harnessx-removal`), and the learned decision engine (`learned-decision-engine`, task 6 in diff --git a/README.md b/README.md index 894175eb..95f8f688 100644 --- a/README.md +++ b/README.md @@ -300,7 +300,8 @@ The design and evaluation slices are in [docs/decision-engine.md](docs/decision- [docs/evaluation.md](docs/evaluation.md) explains how anything is measured on code the tool was not tuned on. It covers the pair corpora, the independent populations and the M4 gates. It also covers the fold discipline that keeps learned decisions out of their own training data. Population v3 -(PHP, 15 cases) is frozen as the one-time final check. Nothing in the tree may read it. +(PHP, 15 cases) is frozen as the one-time final check. Nothing in the tree may read it. Population v4 +(11 cases) was frozen on 2026-11-23 and is unscanned, with no protocol and no result yet. ```bash uv run ousast benchmark benchmarks/manifests/python-vulnerable.toml --mode quick diff --git a/docs/decision-engine.md b/docs/decision-engine.md index fc2bdf8f..87eea678 100644 --- a/docs/decision-engine.md +++ b/docs/decision-engine.md @@ -28,6 +28,7 @@ step-by-step chain that replaced hand edits. - recorded adjudications. "Rejected by the plane" is never a negative. Reserved populations (v3) are not on the list. + Neither is population v4 (frozen 2026-11-23). - **An AI classifier with local memory, compiled in house in the DSPy style.** The program has an instruction, a few demonstrations and up to six retrieved labelled examples. Then come the candidate's code excerpt and signals. The model (`deepseek-flash`) answers vulnerable / not diff --git a/docs/evaluation.md b/docs/evaluation.md index 91ff0825..3d8d0da9 100644 --- a/docs/evaluation.md +++ b/docs/evaluation.md @@ -60,10 +60,13 @@ A population is a set of real repositories. Its lifecycle has three steps: | v2 (17 cases) | spent | engine: recall 0/17, 3 benign alerts, completion 13,206 of 108,374. Tool hunter: recall 1/17, precision 2/14, 1 fixed-side and 16 benign alerts, $8.88. No M4 gate met by either. | `results-v2.json`, `results-v2-hunter.json` | | v2, model-driven pipeline | exploratory (v2 already spent) | stopped after 7 of 17 cases when the account emptied: recall 4/7; precision not adjudicated; no gate measurable | `results-v2-model-pipeline.json` | | v3 (PHP, 15 cases; one SSRF slot left empty by the selection rule) | frozen, untouched | none: it is the one-time final check, run once under `protocol-v3.md` after a prediction is committed | `population-v3-php.toml`, `freeze-v3-php.json` | +| v4 (11 cases: 4 PHP with JavaScript, 4 TypeScript, 3 Python) | frozen 2026-11-23, unscanned | none: it has not been scanned, and no protocol is written for it yet | `population-v4.toml`, `freeze-v4.json` | v3 is reserved. Development and analysis work never reads its cases. `tests/test_independent_population.py` fails when anything in the development tree names one of its repositories. That covers a recipe, catalog, manifest or measurement. +The same guard covers population v4, frozen on 2026-11-23 and not scanned. No protocol is +written for it yet. ```mermaid stateDiagram-v2 @@ -74,6 +77,7 @@ stateDiagram-v2 note right of Frozen v3 (PHP, 15 cases) waits here as the one-time final check, run once after a prediction is committed + v4 (11 cases, frozen 2026-11-23) waits here too, unscanned end note note right of Spent v1 and v2 are spent diff --git a/docs/memory-and-detection.md b/docs/memory-and-detection.md index b15f1bbd..6e079a8c 100644 --- a/docs/memory-and-detection.md +++ b/docs/memory-and-detection.md @@ -68,7 +68,8 @@ and `facts.function_lines` from prompts and from the retrieval distance. `ousast learn labels` (`learn/labels.py`) reads only the sources on a fail-closed allow-list (`learn/sources.toml`). The sources are `population-v1`, `population-v2`, `dev-php` (reviewed recipe sites), `pairs`, `advisory-fixes`, `adjudications` and `assumed_benign`. A file the list does not name -is refused before it is opened. The reserved population v3 is excluded unread. +is refused before it is opened. The reserved population v3 is excluded unread. So is population v4, +frozen on 2026-11-23. - **Positives** are declared sites and the vulnerable side of a fix. - **Negatives** are two kinds: diff --git a/docs/where-we-stand.md b/docs/where-we-stand.md index 7a7a36d4..abda91ee 100644 --- a/docs/where-we-stand.md +++ b/docs/where-we-stand.md @@ -88,6 +88,9 @@ What has not been touched: population v3, 15 PHP cases, frozen as the one-time f - A test fails when anything in the tree names one of its repositories. - It runs once, after a prediction is committed. +Population v4 is unscanned as well: 11 cases (4 PHP with JavaScript, 4 TypeScript, 3 Python), +frozen on 2026-11-23, with no protocol and no result yet. The same test guards its repositories. + ## 2. Our approach to detection, step by step The path changed because hand edits did not transfer. Every gain before 2026-09-30 was a hand @@ -310,7 +313,8 @@ Data. (`src/openultrasast/learn/excerpt.py`). But labels drawn from public advisories are partly in the model's training data, and the within-pair numbers carry that. - PHP is covered by the engine on real code and by in-sample quick rules. The population that - would measure it (v3) is reserved. + would measure it (v3) is reserved. Population v4, frozen on 2026-11-23 and unscanned, holds 4 + PHP cases among its 11. Measurement debt. @@ -324,6 +328,8 @@ Measurement debt. label on unseen code (`2026-10-02-decision-engine-harvest-advisory/record.json`). - Population v3 waits for `benchmarks/independent/prediction-v3.json`, which does not exist. It is written only after a program is adopted. +- Population v4 (11 cases, frozen 2026-11-23) is unscanned. No protocol is written for it, so no + result exists. Infrastructure.