The maintainer's request of 2026-11-28, in chat, after6ef8381: use Archify to map the system and add the map to the README, before the index that links each part to its documentation; say which parts to document and which open parts the documentation should link into the roadmap. Two menus followed, each answered with the option recommended. Menu 3: all fourteen parts, in four groups; all nine open parts, listed on the roadmap page and linked from the seven pages that describe them; a static SVG in the README, the interactive HTML left out of the repository; the open parts show the states as the records hold them today, not the decisions of the earlier menu. Menu 4: the wording of the section and of the seven sentences, and the caption of the image, each "Write it as shown (Recommended)". Four places differ from that wording, each on a finding of the reviewer. The two cells follow the answer that the section show the states as the records hold them today: the row on graph reuse says "Not scheduled; no step owns it" where the wording said R5, and the row on the proof arm says "R4, if it needs it" where it said R4. The pre-push page gained a sentence in front of its link: "No pre-push capability is admitted yet." And the box of the proof arm in the map names "Use case", the page that describes the arm, where it named "Where we stand". What changed. Measured in /tmp/opencode/s10_rd2_diffcheck.out and s10_rd2_svg.out: nine tracked files changed (39 insertions, 4 deletions) and one file is new. - docs/system-map.svg, new: 225,027 bytes, 922 by 936, exported by Archify 3.3.2 from its checked HTML (four gates passed, no crossover). Fourteen components in four groups: what you call, inside a scan, maintainers only, how detection is measured. The second line of each component names its page in short. The candidate cites forty source ranges, read at6ef8381. The labels are text. The file is ASCII: the exporter's hover titles hold a middle dot, replaced by a hyphen. It holds no digit in its text, no ".kiro", no "kiro-", and none of the five patterns that test_plane_literals forbids under docs. - README.md, 301 lines: the image and one caption at the top of "Documentation", before the site paragraph and the table. - docs/roadmap.md, 140 lines: a section "Open parts" before "Rules at every step", nine rows: the open part, its state today, the page that describes it, and the step that closes it. The words "on synthetic review batches" in the first row are the handover's, which is not tracked; the reviewer found them consistent with commits825e680,6d66501andc2b5f5b. - Seven pages, one linking sentence each, with a link to that section: docs/evaluation.md, docs/pre-push-for-developers.md, docs/detection-techniques.md, docs/architecture.md, docs/use-case-fix-and-reverify.md, docs/deployment.md and docs/decision-engine.md. The map was drawn by a subagent with the Archify skill, from a list of fourteen parts and fifteen relationships; it attached the sources. It was corrected twice, after its reports and my reading of the captures. The arrow between the report and the plane pointed from the report to the plane, which suggests that a scan sends something to the plane. It now runs from the plane to the quick rules, "runs the quick scan on both pins", on the call in src/openultrasast/plane/tasks/alerts.py (lines 117 to 168, cited on the caller). The legend's "Frontend" became "Entry point". Two arrows simplify the code, as the subagent reported: the overlay asks the engine for a flow and merges it, and the engine's answers are graded on the evidence ladder. I inspected the captures at 900 pixels: light and dark of the first delivery, and light of the second and of the third; the third differs from the second in one second line. The labels read. The title of the second group sits at the top middle of its frame, above the arrow labelled "standard". Checks, in files under /tmp/opencode/ that start with their command. - s10_rd2_pytest_docs.out: 30 passed in the five test files that read the README, docs and ops, with the strict build, run after the last edit. - s10_rd2_site.out: a strict build to /tmp/opencode/site-rd2-check copies the SVG into the site, and no page of that site contains ".kiro" or "kiro-". - s10_rd2_links.out (script s10_rd2_links.py): the relative links resolve, anchors included: 42 in the README, 14 in docs/roadmap.md. The script names three anchors of docs/deployment.md that it cannot find; they lead into the pages that include ops/ax/README.md and ops/README.md, and the strict build accepts them. - s10_rd2_svg.out: the size, the viewBox, 49 lines with a text element, and the counts above. - s10_rd2_diffcheck.out: the added text is ASCII; git diff --check exits 0. - s10_rd2_gates_run.out and s10_rd2_exits.txt: the gates of label rd2 give ten zeros. They ran before the last edits, which touch documentation only. Not verified: the image through GitHub's proxy; the switch to the light theme was seen in headless Chromium only. Not in the repository: the interactive HTML and the candidate, which stay under /tmp/opencode/archify-system-map/. Review. Three rounds. Round one blocked on two points; rounds two and three checked the fixes and the message. The graph reuse row (docs/roadmap.md:121) now says "Not scheduled; no step owns it", as the records say; the Proof arm box of docs/system-map.svg names "Use case", the page that describes the arm; the pre-push page gained a sentence in front of its link; the proof arm row reads "R4, if it needs it" (roadmap.md:122). Round three found the tree as in round two: the nine blobs and the SVG are those I approved. Measured: 225,027 bytes, 922 by 936, 49 text lines, 14 boxes, 15 arrows (11 labelled), ASCII, no digit, none of the five patterns; 40 source ranges inside files at 6ef8381; 42 and 14 relative links; six anchors in a strict build of my own; 11 tests passed, again in round three; the captures of the three deliveries read at 900 pixels. Remark: line 88 of the pre-push page is 131 columns wide and line 89 is 91; the page's other lines stop at 84.
8.9 KiB
Evaluation
This page shows what has been measured on code the tool was not tuned on, and how. State as of 2026-10-02. Every number below is quoted from a committed record, and the record's path is given with it.
Instruments
| Instrument | Measures | Where |
|---|---|---|
| Detection gate | per-language recall/FP on the bundled cheat-sheet corpora (goal: >= 90% recall, < 10% FP) | python -m openultrasast.gate, benchmarks/manifests/ |
| Pair corpus | fire on the vulnerable function, stay silent on its fix | ousast pairs, benchmarks/pairs/ |
| Independent populations | real repositories at vulnerable, fixed and benign pins, scored under a pre-registered protocol | benchmarks/independent/ |
Recall means the share of known bugs found. FP means false positives.
The detection gate and the local pairs are CI gates. They catch regressions. They do not estimate recall on real code, because the rules were written against them.
The gate's committed baseline, benchmarks/measurements/2026-09-06-gate-baseline.txt, records 93.62%
recall (44/47) and 0.0% false positives. The README quoted it from 2026-10-02 (commit bdabb97). PHP
is not in the gate.
Pair corpora
A pair is a vulnerable function and its fixed version. You can run the catalog
benchmarks/pairs/catalog.toml and the slice directories with ousast pairs --slice <name>.
The slices are local, github, sast, vfc, vibe-py, vfc-js, agent-vfc and owasp.
- Each pair carries a provenance profile and a train/holdout split (
--profile,--split). - Pointer pairs are not vendored.
--pointersfetches them into~/.cache/openultrasast/pairs/. benchmarks/pairs/README.mddocuments the schema and the review tiers.
advisory-fixes (benchmarks/pairs/advisory-fixes/, 2026-10-01) holds 97 pointer pairs,
one per repository. Each is a public CVE/GHSA fix commit. The function the advisory names is
declared on both sides and changed by the fix.
It was assembled to give the decision engine real negatives (fixed, non-vulnerable code). It
targets families the corpus had few of: access control, deserialization, output encoding,
path, untrusted destination. It is a label source of the decision engine
(src/openultrasast/learn/sources.toml), not an ousast pairs slice. The research log and
every rejection are in research-2026-10-01.md.
Independent populations and the M4 gates
M4 is the qualification milestone of the pre-push safety net. It requires all of these together:
- at least 95% actionable precision;
- at least 90% supported recall;
- at least 95% supported-check completion;
- the runtime gates;
- zero fixed-side or benign false alerts.
A population is a set of real repositories. Its lifecycle has three steps:
- It is frozen before any of its cases is scanned.
- It is scored once under a pre-registered protocol.
- It is then spent: it may inform changes, but it can no longer qualify anything.
| Population | Status | Result | Record |
|---|---|---|---|
| v1 (11 cases) | spent | engine: recall 1/11, precision 1/12, 4 fixed-side and 1 benign false alert; every M4 gate failed. Eight of eleven cases completed no question at the vulnerable pin. | benchmarks/independent/results-v1.json |
| 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; its one run follows protocol-v4.md, after the candidate is frozen at M3 |
population-v4.toml, freeze-v4.json, protocol-v4.md |
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. Its run follows
protocol-v4.md, committed before any scan.
stateDiagram-v2
[*] --> Frozen: cases selected and frozen before any scan
Frozen --> Scored: scored once under the pre-registered protocol
Scored --> Spent: result recorded
Spent --> [*]: may inform changes, can no longer qualify anything
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
end note
What is still open on this road, the reviewed cohorts, the governed run and the reading of M4, is listed in Open parts on the roadmap page.
Folds: how learned decisions are kept out of their own training data
The decision engine is evaluated on repositories it was not shown
(src/openultrasast/learn/folds.py). Every split is by repository group. A group is the label
builder's normalised owner/name, merged across URLs, forks and shared advisories. Splits
cover all corpora and are seeded and deterministic.
flowchart TD
groups["All repository groups with labels"] --> c["Compile split: 25% of groups, never evaluated"]
groups --> rest["The other 75%"]
c --> boot["C_boot 60%: demonstrations"]
c --> val["C_val 40%: instruction scoring"]
rest --> outer["Outer grouped 5-fold: calibration cross-fitted, operating points nested"]
rest --> loso["Leave-one-source-out: a source held out whole"]
rest --> lofo["Leave-one-framework-out: frameworks with at least 10 groups"]
assert_disjoint runs before a compile. It checks that the compile split and the evaluation
folds share no group. A framework with fewer than 10 groups gets insufficient data instead of
a fold. As of 2026-10-02, the outer folds have been run for the six evaluable families.
Leave-one-source-out and leave-one-framework-out have not
(decision-engine.md).
The plane increment
The first increment of the agentic plane ran on google/ax. It used the model-driven pipeline's validation set: 46 candidates in 15 cases of v2, with 20 declared vulnerable sites. It was compared with the script pipeline on the same cases, candidates, pins and recorded triage.
The pre-registered gate: at least 16 of 20 declared sites agreed, at a cost per candidate under $0.022.
-
Increment 1 (2026-09-29,
benchmarks/independent/plane-increment-1.json): 14 of 20 declared sites agreed, against the reference's 16. Cost was $0.0194 per candidate with recorded triage. NOT MET on recall. Correction (2026-09-30, in the record): the first version misread agree'sdeclared_sites_matched. That field is coverage by candidates (19), but it was read as "found in either pass". So the first version concluded detection was unchanged. Recounted from the agreed rows, the plane's passes flagged 17 of 20 declared sites in at least one pass. The reference flagged 19. -
Increment 2 (2026-09-30,
benchmarks/independent/plane-increment-2.json): came after the design revisit. It added a tie-break pass c on the 10 disputed candidates, with 2-of-3 agreement. 16 of 20 declared sites agreed (reference 16). Cost was $0.0205 per candidate over 46, and $0.02195 over the 43 after triage (reference: $0.022). MET, with two caveats the record carries:- The tie-break was chosen after seeing the first measurement on the same validation set. So this compares plane with script and qualifies nothing on an independent population.
- The plane's passes still flag fewer declared sites than the reference (17 vs 19).
Precision is not part of this gate and remains the open problem.
The decision engine
Two slices have been measured out of repository: injection (2026-10-01) and six families (2026-10-02). The engine is not adopted. Where we stand shows the state against the gates in one place, with the plane increment and the populations above. The per-family tables are on decision-engine.md.
Removal of the earlier agentic extra
The earlier agentic extra was removed on 2026-09-30. The removal was checked for byte-identical
deterministic outputs: pair replay, quick benchmark, standard scan. Records:
benchmarks/measurements/2026-09-30-harnessx-removal-baseline/ and -equality/.