2026-09-04 15:07:35 +02:00
# Roadmap
2026-11-30 09:22:34 +01:00
## Roadmap -- back to bug finding: the driver, then proof (2026-11-30)
This section supersedes every section below it, the ladder of 2026-11-20 included. The older
sections stay as history. No bar is lowered: admission populations stay untouched, and a push is
blocked only on a demonstrated proof.
### Decision (maintainer, 2026-11-30)
The maintainer's words, after the project review of that day:
- "for me it's prio that the driver (augmented by abstract interpreation and wrapped into
probablistic dspy loops) finds bugs I want to avoid. it seems the project drifts and bug finding
is not focused"
- "I find that my search with proof got somehow benched, but it's important for developers to see
that nowadays"
- "I would like to supersede the respective specs and the roadmap but take those open tasks needed
with me to steer back to my actual project"
Terms used below. The **driver** is the model-driven hunter (`src/openultrasast/hunt/` , a DSPy
program). **Abstract interpretation** is what the engine and the access-control prover compute
without a model: entries, operations, guards, the ordered trace with argument provenance, taint
paths. **Proof** is `search-with-proof` : a finding demonstrated by execution, on the vulnerable
revision and not on the fixed one.
### What the review found (2026-11-30)
- The last detection measurement is of 2026-10-31 (`benchmarks/measurements/` ). November has 235
commits and no new detection number.
- Since 2026-10-14 the work went to contracts and benchmark machinery: 88 feature commits on
`detection-core` , 47 on `valid-detection-benchmark` . `src/openultrasast/core/` holds about 23,000
of 85,000 source lines and `benchmarks/valid` 33,000; the prover and the proof arm hold about
4,500 each.
- The ladder's next step, the governed run 11.6, had no new arm to measure: the only arm that went
through admission is parked after three 0/12 reads. It also waits on four cohorts reviewed by a
second person, and none exist.
- Rule 11 of `detection-quality.md` (a parked arm leads to a narrowed product plus proof-based
BLOCK) fired on 2026-10-31 and was not executed. The ladder parked `search-with-proof` instead.
- The rule "the pool measures and never trains" was written wider than its evidence. The
measurements of 2026-10-13 and 2026-10-14 falsified one thing: a program fitted on software shape
features (callers, diff shape, counts). They did not test a program that reads the trace.
- The breadth ledger of 2026-10-13 (`.kiro/breadth.toml` ) already parked `contributor-scan` and
`learned-decision-engine` and marked five specs for deletion. None of it was carried out, and
the ladder of 2026-11-20 put two of them back on the path. Sessions six to twelve
(2026-11-25 to 2026-11-29) were `contributor-scan` packaging and release work.
### The three lines of work
Work lands on these three lines and on nothing else. A session that touches none of them is
plumbing and needs the maintainer's word for that session.
2026-11-30 09:51:09 +01:00
1. **The driver finds the bugs.** Spec: `dspy-driver` (opened 2026-11-30; it continues
`hunter-learning-loop` , whose open tasks moved there). Its brief maps the driving and orders the
experiments E0 to E6; the driver is measured by example.
2026-11-30 09:22:34 +01:00
The driver reads the change and the abstract interpretation of it (the prover's trace, the
engine's facts) and names suspect locations. It runs as a DSPy program: sampled several times
per question, scored by agreement, and compiled on training repositories only. Its facts come
from `access-control-prover` (delivered) and `engine-change-scoped-analysis` (the engine work it
still needs).
2. **Proof shows them.** Specs: `search-with-proof` , with `proof-arm-opencode` . The driver's top
suspects go to the search, which builds the application and demonstrates the bug by a
differential. Active again from today; it is the only way to BLOCK.
3. **The developer sees it.** Spec: `pre-push-safety-net` , narrowed. The hook and `ousast scan`
show the driver's suspects as advisory and a demonstrated finding with its evidence: the
request, the effect on the pushed code, the repair direction.
The instrument stands behind the lines and is frozen as built: `valid-detection-benchmark` and
`detection-core` . No machinery task starts there until an arm has moved its number on the
training pool.
### Order of work, each step with its number
Rule 12 of `detection-quality.md` binds every step: the lever and the measurement are named
before the step starts.
- **N0. Close the plumbing.** The record commit for `contributor-scan` item 5b. Item 5c and step 6
are not done; they end with the spec (see the spec map). No number.
2026-11-30 09:51:09 +01:00
- **N1. Wire the abstract interpretation into the driver, then take the baseline.** Read on
2026-11-30: the driver receives neither the prover's trace nor anything from Joern; no module
under `hunt/` imports `cpg` . The maintainer: "that must be done first, otherwise we are testing
ghosts". So first the two producers, the prover's trace (access control) and Joern's taint path
and dominance results (path traversal), each proving nonzero input (`dspy-driver` D2, D3; a small
example book first, D1). Number for the wiring: the share of training-pool changes with a nonempty annotation, per
family. Only then the baseline over `benchmarks/valid/train/pool-train.toml` : the same changes
and sampling with no annotation, with the trace, and with Joern's results. Number: search recall
and suspicions per ordinary push, with intervals. Paid: 10 USD ceiling. (D4, experiment E1.)
2026-11-30 09:22:34 +01:00
- **N2. The bugs to avoid, as a training set.** The maintainer names the families and the kind of
repository that matter; the training set is sourced apart from every admission population
2026-11-30 09:51:09 +01:00
(`dspy-driver` D6, with the whole-repository vibe-code pairs carried from
2026-11-30 09:22:34 +01:00
`contributor-scan` 5.2). Number: accepted positives per family and language.
- **N3. The DSPy loop.** Compile on the compile folds, accept by the rule of task 5.2, pass the
reversed-pair probe of `core/probes.py` . Number: the paired gain on held-out folds over N1.
2026-11-30 09:51:09 +01:00
(`dspy-driver` D5, D7, D8; experiments E2 to E6.)
2026-11-30 09:22:34 +01:00
- **N4. Proof on what the driver finds.** Finish the path family of the pilot (five
demonstrations, zero false proofs), then feed the driver's suspects into the search. Number:
demonstrated rate, false proofs, cost per search. (`search-with-proof` 6.2 to 6.4, 7.1.)
- **N5. The developer sees a demonstrated finding.** One real pair end to end: push, advisory
suspects, proof, the evidence shown in the hook output and the scan report, and a docs page
that says what is working and what is not. (`search-with-proof` 7.2, 7.3;
`pre-push-safety-net` 18.)
- **N6. Admission, once.** Only after N3 shows a gain: one read on population v4 (11 cases, frozen
2026-11-23) under its protocol, then the governed run 11.6 if its cohorts exist by then.
N1 to N3 and N4 run side by side. N4 does not wait for N3: the proof arm has its own pilot.
### Rules, as amended
- **Admission and evaluation populations never train.** The training pool and the training set of
N2 teach the driver. This replaces "the pool measures and never trains" of 2026-10-14.
- **The driver may be compiled.** Instructions and demonstrations are chosen on compile folds of
the training repositories. This replaces "no compiled prompt" of 2026-10-14. What stays from
that day: software shape features alone decide nothing, every compiled program passes the
reversed-pair probe, and no threshold is tuned on an admission label.
- **BLOCK only on a demonstrated proof**, never on a score (`detection-quality.md` rule 9,
unchanged).
- Two admission NO-GOs in a row on the same arm still park it. Every zero still proves its
instrument read nonzero input. Spent populations stay spent.
- **One handover page.** A handover names the line, the last number, the next step and its
measurement. Session records go to the spec they belong to.
### Spec map (2026-11-30)
| Spec | State | What happens to its open tasks |
| --- | --- | --- |
2026-11-30 09:51:09 +01:00
| `dspy-driver` | active, line 1; new 2026-11-30 | brief and requirements input written; requirements, design and tasks to come |
| `hunter-learning-loop` | built; no new work | 4.1, 6 and group 7 moved to `dspy-driver` (D6, D10, D2 to D9) |
2026-11-30 09:22:34 +01:00
| `access-control-prover` | done | supplies the trace |
| `engine-change-scoped-analysis` | active, line 1 | takes the carried engine tasks (its `brief.md` ) |
| `search-with-proof` , `proof-arm-opencode` | active, line 2 | all open tasks stay; group 7 added |
| `pre-push-safety-net` | active, line 3, narrowed | 8.3 and 16 stay; 18 added; 11.3, 13.2, 13.3 deferred; 15 provisional |
| `valid-detection-benchmark` | frozen as built | 11.6 and 11.7 wait for N6 |
| `detection-core` | frozen as built | group headers unticked, subtasks done; the contract stays |
| `plane-on-kubernetes` | parked | only what `search-with-proof` needs on kube-ax; the operator decides the rest |
2026-11-30 09:51:09 +01:00
| `contributor-scan` | superseded | 2.14, 5.6, 5.12, 7.2, 7.4 to `engine-change-scoped-analysis` ; 5.2 to `dspy-driver` ; the rest dropped |
| `learned-decision-engine` | superseded | 16 and 17 to `dspy-driver` ; 17.3 to `search-with-proof` ; 11.1 and 11.2 to `engine-change-scoped-analysis` ; the rest dropped |
| `reachability-flow-model` | superseded | 4.1 to `dspy-driver` ; the rest is covered by the prover's path records |
| `authorization-obligations` | superseded | 2.6 to `engine-change-scoped-analysis` ; 3.3 to `dspy-driver` ; the rest is covered by the prover |
2026-11-30 09:22:34 +01:00
| `finding-feedback-loop` , `flow-aware-ranking` , `zero-with-a-reason` , `ir-consolidation` , `mcp-shift-left-agent` | superseded | none carried |
A superseded spec keeps its directory as history, with a notice at its top; no work lands there.
"Dropped" means not carried, not forbidden: a dropped task comes back only through a line above,
with its lever and number named.
### Answers of 2026-11-30 (maintainer, with the question tool)
- **The bugs to avoid (N2):** access control and path traversal first. Injection and secrets or
configuration were offered and not chosen; they are not in the first training set.
- **The repositories:** AI-written web applications, Express/TypeScript and FastAPI/Python. The
training set and the first measurements are drawn from these.
- **Spend:** 25 USD in total for the first paid steps, about 10 for the driver baseline (N1) and
15 for the path family of the proof pilot (N4). Work stops and reports when either is reached.
N3 has no ceiling yet.
- **Commits:** the amendment goes in as two commits, steering with the public roadmap page, then
the specs with the breadth ledger; not pushed without a word.
### Open for the maintainer
- The spend ceiling of N3.
2026-11-30 09:51:09 +01:00
- Code that the superseded specs leave without an owner (the ledger's `review` entries: the scan
extensions whose results never reach a finding, `map_gate.py` and `pair_gate.py` , the local kind
executor). Nothing is deleted by this amendment.
- **HarnessX is not used anymore** (maintainer, 2026-11-30), and the tree agrees: it was removed on
2026-09-30, and `tests/test_removed_plane_references.py` fails on any mention outside the
retirement notes in `config.py` . No code depends on it. The ledger's suspicion that
`plane/engine_alerts.py` , `harvest.py` , `workspaces.py` and `profile.py` served only the HarnessX
loop does not hold: read on 2026-11-30, each is imported by `cli.py` , and by `benchmarks/learn`
or `ops/ax` . They are plane code and follow the plane's fate, not HarnessX's. What is left of
HarnessX is wording: comments that cite the `harnessx-removal` spec, and the superseded specs.
2026-11-30 09:22:34 +01:00
- Whether the cohort review of 11.6 gets a second reviewer or a recorded single-maintainer rule.
- M2, the 30 second gate: no task owns graph reuse. Either line 3 takes it, or the hook answers in
the background and says so.
## Roadmap -- milestone ladder to a shippable safety net (2026-11-20; superseded 2026-11-30)
2026-11-20 20:08:21 +01:00
This section supersedes ordering questions below it. It is the general roadmap the maintainer
asked for: every open work stream led milestone by milestone to the narrow advisory release
(M5), with the first governed real-world number as the pivotal gate. Milestone definitions and
acceptance profiles (`pre-push-safety-net/release-milestones.md` ) and stop conditions
(`detection-quality.md` ) apply unchanged; this ladder sequences work, it lowers no bar.
2026-11-25 19:19:46 +01:00
### Position (2026-11-20; refreshed 2026-11-25)
2026-11-20 20:08:21 +01:00
- M1a/M1b met on fixtures (NodeGoat). M2 measured unmet (engine startup, 2026-09-17). M3
partial (PHP blocked by runtime). M4/M5 pending.
- The access-control admission arm is parked after three honest 0/12 NO-GOs. Root cause on
record: framework-shaped entries (event bridges, MCP tools, router factories) outside the
route-shaped entry model, vendored framework semantics excluded by design, and a gate
arithmetically unreachable at 3/12 in-family pairs.
- Real-world results do not exist yet. That is the gap this ladder closes first: no product
milestone outranks a governed admission number on real repositories.
2026-11-25 19:19:46 +01:00
- **Refreshed 2026-11-25.** R1 and R2: every subtask is checked (their group headers are not). R3
waits on 11.6, the one governed admission run, and on 11.7 after it. R4: 15.1 and 15.2 are
checked, 15.2 provisionally until 11.6 has been read. R5 is in progress. The local kind cluster
is stopped since 2026-11-24 and its code stays until the plane re-plan decides whether the
executor code is deleted.
- Open work by spec (verified 2026-11-25): valid-detection-benchmark 2 subtasks (11.6, 11.7);
contributor-scan 18; plane-on-kubernetes 22 (paused, re-plan); reachability-flow-model 16
2026-11-20 20:08:21 +01:00
and authorization-obligations 18 (tasks-generated, not yet implementation-ready);
2026-11-25 19:19:46 +01:00
pre-push-safety-net 4 (8.3, 11.3, 13.2, 13.3); hunter-learning-loop 1 (model lane,
proposal-only); detection-core 0 (11.4 closed under R0). access-control-prover subtasks are
complete.
2026-11-20 20:08:21 +01:00
### R0 -- Closure (2026-11-20)
detection-core 11.4 unblocked: the benchmark owner (valid-detection-benchmark tasks 2.1-2.4)
implemented the authoritative reservation/withdrawal/replacement lifecycle the blocker waited
on; the reservation conflict is resolved (`tests/test_independent_population.py` green), the
final gate instrument is green with the V3 evaluation layer added to its declared core
authority, the suite is green, and the 67-commit backlog is pushed. access-control-prover
group headers reconciled with their completed subtasks.
Exit evidence: green suite at the closure commit; origin/main advanced.
### R1 -- Benchmark machinery complete (valid-detection-benchmark 6.5 -> 9.3)
Commit task 6.5 (sealed pre-spend diagnostics), land the retry authority seam (7.2/8.6 per the
2026-11-18 design amendment), closed workflow outcomes and lease-protected heads (7.x), the
atomic multi-arm admission lifecycle (8.x), and the operator entry point (9.1-9.3).
Exit evidence: a synthetic multi-arm, multi-family lifecycle runs end to end from operator
commands; crash and retry resume converge to exact durable outcomes.
### R2 -- Real population frozen (valid-detection-benchmark group 10)
Bounded sourcing and review queues, four independently reviewed cohorts (at least 40
positives across Python and JavaScript/TypeScript, at least two families), the full
ordinary-change population, and the causally bound replacement baseline.
Human gates (maintainer): cohort reviews, contamination dispositions, development openings.
Everything else is autonomous.
Exit evidence: immutable population and label-blind manifest with zero label reads, digests
bound into the workflow head.
### R3 -- First honest number (valid-detection-benchmark 11.1 -> 11.6)
Adversarial governance/confidentiality suites, custody and scratch-loss recovery, the
synthetic lifecycle, the crash/retry matrix, scale and back-pressure, then the ONE governed
replacement admission run on the frozen population.
Exit evidence: a GO or NO-GO bound to the immutable spent population, with witnesses and
exact scopes. Whichever way it lands, a real-world number exists. A NO-GO is a result: it
names the exact missing capability (entry shape, framework semantics, or calibration)
instead of leaving "no real results" undefined.
### R4 -- Shippable scope declared (pre-push-safety-net 15.1/15.2; M4)
Reserve and review the untouched evaluation population (may run parallel with R2/R3 wherever
inputs exist), then declare the v1 advisory scope as exactly the families whose claims
survived R3 plus the M4 acceptance profile (95% observed actionable precision, 90% supported
recall, 95% supported-check completion, 30s/2s runtime gates, zero known fixed/benign false
alerts). Silence on everything fails; experimental leftovers stay labeled experimental.
### R5 -- Engine depth and hardening (parallelizable once R3 is read)
- contributor-scan: resolution depth and engine internals (control dependence, modeled sinks,
complete-share levers) -- the quality lever any R3 NO-GO names.
- reachability-flow-model + authorization-obligations: the two specs that cure the parked
arm's root cause (bounded path/entry edges; closed discharger/obligation facts). They enter
implementation only after their phase approvals.
- pre-push task 16: harness self-reporting (provenance, per-cause counts, contradiction
assertions) -- the plausible-zero instrument class dies here.
- M2 engine-startup robustness; 11.3 batch path; 13.2/13.3 PHP transfer once its runtime is
unblocked; 8.3 independent transfer admission.
- hunter-learning-loop stays proposal-only behind core probes; search-with-proof stays parked
until R4 needs proof-based BLOCK (human operator decision).
### R6 -- Narrow advisory rollout (M5)
Eligibility bound to the exact passing runtime, query, fact, ranking and policy identities;
packaged vulnerable/fixed/benign push experience revalidated; advisory keeps the blocking
evidence bar. plane-on-kubernetes resumes here (or at R4) as the delivery substrate, after its
2026-10-04 re-plan.
### Rules that hold at every milestone
- The pool measures and never trains; admission gates on untouched populations only.
- Two consecutive admission NO-GOs on the same arm park it for strategy review.
- Every zero proves its instrument read nonzero input; every harness reports its own failure
causes once R5 lands.
- Historical bytes stay frozen; governance decisions are recorded, never improvised.
2026-10-30 18:00:59 +01:00
## Binding phase -- detection-core as the shared contract (2026-10-30)
This section supersedes ordering questions below it for detection work. `detection-core`
(spec complete, validated GO at 1cd6a39) is now the binding element: its contract package
(`src/openultrasast/core/` ) owns the canonical trace, verdict, coverage, measured budget,
provenance, admission, probes, fact-pack and consumer contracts. Existing specs adopt it;
they do not grow parallel runner contracts.
### Integration sequence (each step admission-gated on the untouched pilot)
1. **Prover native conformance** -- `access-control-prover` 's `Trace` implements
`core.TraceRecord` directly; `hunt/core_adapter.py` is deleted once conformance tests
pass. Touchpoint: access-control-prover.
2. **Fact-pack workstream (recognition breadth)** -- `valid-detection-benchmark` task 7.1's
manifest-derived recognition table becomes reviewed fact packs admitted via
`core/factpack.py` (families tagged, digest-stamped). Target ecosystems: the valid
pool's Express/FastAPI/NestJS/Koa/MCP-style servers. Touchpoints: valid-detection-benchmark,
ruleset loader.
3. **Resolution depth** -- interprocedural call resolution (today 11.9% complete) in the
engine/frontends; measured via `core/coverage.py` buckets. Touchpoint: contributor-scan
(engine internals stay out of detection-core).
4. **Hook consumes the core** -- `pre-push-safety-net` builds `PushRequest` and consumes
`PushVerdict` via `core/consumer.py` , budget from the measured per-class derivation
(`benchmarks/measurements/2026-10-30-detection-core-budget/` ), one real push E2E on a
dev-pool repo. Touchpoints: pre-push-safety-net.
5. **Proof layer attaches** -- `search-with-proof` attaches demonstrated evidence to
`PushVerdict` claims; BLOCK only on proven claims. Touchpoint: search-with-proof.
6. **Model lane bounded** -- `hunter-learning-loop` proposes only; every fitted component
passes `core/probes.py` (reversed-pair + holdout + admission GO). Touchpoint:
hunter-learning-loop.
Stop conditions from `detection-quality.md` apply unchanged: two consecutive admission
NO-GOs on the same arm park it for a strategy review; the fallback is the narrowed
one-ecosystem advisory product plus proof-based BLOCK.
2026-10-30 14:48:40 +01:00
## Roadmap -- admission read, stop conditions (2026-10-30)
This section supersedes the ordering below it for detection claims. The 2026-10-30 admission
run (`benchmarks/measurements/2026-10-30-access-control-admission/` , committed 1edc479)
returned **NO-GO** on the untouched pilot population: 0/12 pairs, in-family 0/3, 9/12
repositories with zero framework recognition, 0 instrument failures. The standing rules,
including pre-registered stop conditions (two consecutive admission NO-GOs park an arm;
fallback is a narrowed one-ecosystem advisory product plus proof-based BLOCK), live in
`detection-quality.md` and win over older sections here. Next lever: entry recognition and
call resolution breadth for the valid pool's ecosystems, measured on pool-train and gated on
the pilot pool. The injection spec stays deferred; its gate-5 condition is unmet.
2026-10-28 18:59:01 +01:00
## Roadmap -- measure the trace first (2026-10-28)
This section supersedes the ordering below it. The older sections stay as history. It builds on the
2026-10-14 decision-strategy correction (steering `overview.md` ): the trace decides, a judge reads it
zero-shot, the pool measures and never trains.
### Decision (2026-10-28, maintainer session)
The DSPy annotation loop was built and measured; its premise -- that shape annotations teach the hunter --
was falsified by its own instruments (`benchmarks/measurements/2026-10-13-access-control-screen/` ,
`2026-10-13-hunt-repeats/` , `2026-10-14-access-control-hunt/` ). The surviving direction inverts the
augmentation: compute the deterministic security object (the ordered trace) first, and let the LLM judge
the residual question on it. Before anything generalizes, that direction gets its number. No new spec
starts until the gates below are read.
### The sequence, each step a gate
1. `access-control-prover` task 6.1: run the prover arm over `benchmarks/valid/train/pool-train.toml` --
the first full-repository recall and false-alarm numbers for the trace. No model calls. Record the
provider error code for any `LMInvalidRequestError` -class failure (the 2026-10-14 run's failures sat on
38 of 48 locations), and read the summary's `uncovered` repositories before calling any miss a logic
failure rather than a fact-coverage gap.
- **Read 2026-10-28** (`benchmarks/measurements/2026-10-28-access-control-prover/` ): 23-repo pool,
483 changes, 93 locations -- recall 65.2% (Wilson 44.9-81.2), 15.0 FA/100, 0 instrument failures.
On the 5 repos shared with the 2026-10-14 arms: prover 4/5 vs DSPy 2/5, hunter 2/5 (union 4/5),
including trigger.dev which neither arm found. Misses: 2 fact-coverage (seatunnel, byobu -- no
entry points), 6 covered-but-unflagged for gate 3. Gate 1 holds; proceed to gate 2.
2. Zero-shot judge pass over those traces ("is this entry meant to be public"): does it drop false alarms
without killing recall? The pool reports how often the judge is right (correction, rule 3).
2026-10-28 19:43:59 +01:00
- **Read 2026-10-28** (`benchmarks/measurements/2026-10-28-access-control-judge/` ): 340 judgments over
all prover findings, 0 failures. Keeps 15/15 true flags (recall 65.2% unchanged), drops only 5/69
false pushes (FA 15.0 -> 13.9/100). The public-entry question does not separate the prover's false
alarms; the wrongness lives in the trace, not the entry's publicity. Judge is safe but nearly inert;
the FA lever is trace/fact coverage -> gate 3. Do not tune this judge prompt.
2026-10-28 18:59:01 +01:00
3. Trace-component ablation (the amended `hunter-learning-loop` role -- selection, not fitting): which
trace components the judge needs to see, with intervals.
2026-10-28 20:06:40 +01:00
- **Read 2026-10-28** (`benchmarks/measurements/2026-10-28-access-control-ablation/` ): all 8 misses
labeled -- A entry facts 2 (seatunnel Jetty programmatic, byobu client-side JS), B operation facts 4
(Stapler entry reached, operation inside unrecognized), C guard too coarse 2 (crx, kimai -- guard
discharges but weaker than the fix). FA sample n=12 of 64 kept (seed 20261028): guard-unmodeled 3,
op-not-privileged 3, actually-suspicious 3 (pool label defects, incl. one upstream-fixed 2022),
instrument noise 3, unreachable 0. One lever covers both sides: interprocedural resolution (call
depth, overload disambiguation, honoring recorded guards, base-class projection) -- not new fact
families, not the judge. Pool hygiene: pre-2019 "ordinary" baselines contain missing-check bugs.
2026-10-28 18:59:01 +01:00
4. One pilot run under the at-most-once rule (`hunter-learning-loop` req 8.6): trace + judge over the 12
verified positives and the ordinary pushes. Read the gate distance off the curve (recall at 10 false
alarms per 100 pushes, false alarms at 90% recall), per family -- the first such number for the new
direction.
5. Decision:
- access_control holds recall with false alarms moving toward the gate -> formalize the injection
security object (`engine-change-scoped-analysis` brief -> spec): the taint flow with argument
provenance as the deterministic object, the fact-proposal lane included.
- it fails -> fix the trace, do not generalize. A failure traced to fact coverage grows the fact
tables first; a logic failure revisits the prover.
2026-10-28 20:12:37 +01:00
- **Decided 2026-10-28**: neither pole -- a characterized logic gap with one lever. Fix the trace
first: interprocedural resolution in the prover (call depth past `do*` wrappers, overload
disambiguation, honoring `guards_before_call` , no base-class projection) + Jetty programmatic
entry facts for seatunnel. byobu (client-side Flarum JS) is declared out of the server-side
object's scope. Injection spec stays deferred until the post-fix pilot (gate 4 rerun) holds
recall with FA moving toward the gate. Pool negatives predating ~2019 must be re-audited before
any future run (3 of 12 sampled "ordinary" pushes contain real missing-check bugs). Route:
`/kiro-spec-requirements access-control-prover` for the resolution + entry-fact work.
2026-10-28 18:59:01 +01:00
### What is deferred, explicitly
- The injection-family spec waits for gate 5. Its fact-proposal lane absorbs the disciplined DSPy steer:
the LLM proposes trust boundaries and missing sinks, the engine verifies, and repetition promotes them
to closed facts -- never a prompt fitted on pool labels.
- `hunter-learning-loop` task 4.1 (training-set sourcing) stays parked: gates 1-4 need no fitted model.
- `pre-push-safety-net` wiring follows a search that clears the bar, unchanged from the 2026-10-13 order.
2026-10-04 17:34:57 +02:00
## Roadmap to detection with the decision engine on kube-ax (2026-10-04)
This section supersedes the ordering below it. The older sections stay as history.
### Destination
On every push, from a hook or CI, OpenUltraSAST answers for the changed code. The answer is advisory for every
2026-10-12 16:38:18 +02:00
family, and BLOCK only for families whose precision has been proven on repositories the system never saw.
Each environment handles different parts of the work:
2026-10-04 17:34:57 +02:00
2026-10-12 16:38:18 +02:00
- The kube-ax cluster (operator k3s, Agent Substrate v0.3.0, AX v0.3.1, 2 nodes) runs the Joern engine as AX Tasks.
2026-10-04 17:34:57 +02:00
No API keys and no store credentials in the cluster; tasks read and write through short-lived presigned links.
2026-10-12 16:38:18 +02:00
- The VM or CI runner handles candidate selection and the decision engine's model calls (DeepSeek). It also hosts
the memory store and the fallback engine lane (2.5 GB heap) for pins that do not fit the cluster's 1.7 GB heap.
2026-11-25 19:19:46 +01:00
- **kind** stays the local development profile, with the same code and manifests. **Since 2026-11-24** its local
cluster is stopped; the code stays, and whether it is deleted is decided at the plane re-plan.
2026-10-04 17:34:57 +02:00
### The question everything answers
2026-10-12 16:38:18 +02:00
The A/B experiments test whether the safety net works on repositories it has never seen. Every phase below must
answer that question. Almost every push on an unseen repository is an ordinary change. Two numbers measure whether
the safety net is useful, based on the hook's advisory output as a user sees it:
2026-10-04 17:34:57 +02:00
2026-10-12 18:24:13 +02:00
1. How often does it flag real vulnerability-introducing changes in unseen repositories (recall)?
2. How often does it flag anything on ordinary changes in the same unseen repositories (false-positive rate)?
2026-10-04 17:34:57 +02:00
Within-pair AUC on known fix pairs answers neither. It stays a development signal, not the goal.
### Where we are (2026-10-04)
| Area | State | Evidence |
| --- | --- | --- |
| Generalisation measured so far | The classifier ranks above chance on repository-held-out folds (within-pair AUC about 0.76) but cannot reach the block bar; the engine-based scan failed fresh populations (v1 1/11, v2 0/17); push-level catch and false-alarm rates on unseen repositories have never been measured | exp-003/004/005, `results-v1.json` , `results-v2.json` |
| Pre-push hook | Operational and advisory on any repository | `2026-10-02-pre-push-operational-1/record.json` |
| Labelled data | 710 complete real fix pairs | `2026-10-04-decision-engine-harvest-3/record.json` |
| Engine | Almost blind to fixes (paths differ between sides in 2 of 105 both-asked pairs) | `2026-10-04-joern-slice-leak-audit/record.json` |
2026-11-25 19:19:46 +01:00
| Infrastructure | Engine runs on kube-ax as AX Tasks with a VM fallback; the local kind cluster is stopped since 2026-11-24 and its code stays | memory `kube-ax-cluster` ; `plane-on-kubernetes/tasks.md` , section of 2026-11-24 |
2026-10-04 17:34:57 +02:00
2026-10-12 16:38:18 +02:00
Correction recorded 2026-10-04: most work in the previous two days went into infrastructure and engine internals
without improving a generalisation number. Further work on those areas must remove a bottleneck for the
measurements below.
2026-10-04 17:34:57 +02:00
2026-10-11 08:17:06 +02:00
### Where we are (2026-10-11)
2026-10-12 16:38:18 +02:00
**The frozen-SZZ-pool scoring approach is not feasible. Its catch/false-alarm numbers are retired as a
metric (2026-10-12 maintainer call).** The SZZ-derived labels place the vulnerability in the wrong location
~half the time (audit: path 1/7, output_encoding 1/8 sound). Only ~24% of entries are app-shaped
(reachability in-repo). Catch/false-alarm figures from this pool are invalid as a baseline.
Record 07's "3/92" and every pool catch/FP number are **not quoted and not a release gate** . Before any
detection number is valid, the pool must have **sound labels** and entries classified as app-shaped or library.
Until then, no pool-scored metric is cited anywhere.
2026-10-11 08:17:06 +02:00
| Area | State | Evidence |
| --- | --- | --- |
| Unseen pool (G0.1) | **Frozen.** `pool-p1.toml` = 100 repos (slice 1); `freeze-p1.json` guard=0, dropped=0; deterministic (manifest `6bd2fa5d` ). License 49 permissive / 51 private; methods 81 introducing / 19 last_touch. | `benchmarks/unseen/pool-p1.toml` ; archived `ousast-corpus/unseen/20260601/pool/` |
| Labels | 100 machine-derived (SZZ), **unchecked** . Record 07 is a **machine-label baseline** (caveat stated); a human label pass is a later refinement, before any published claim. | `freeze-p1.json` label_check_counts |
| Harvest | Rebuilt to converge. Pure GitHub-API harvesting is a dead end for this benchmark (it needs the SZZ introducing commit + 12 stratified history negatives, not one commit). The fix: a full-objects clone (drop `--filter=blob:none` , which caused ~600 per-blob lazy fetches) + bucket-first durability + a get_repo cache that paid the 4,499-name used-set canonicalization once. Yield ~2.2%; **GitHub-rate-limit bound, not CPU** . | 95bed70, 857263d, 21aebe8, 7b711a6 |
| Persistence | **Bucket-first, not local disk.** `ousast-corpus` is the source of truth: enumeration, resolution, get_repo, and accept/reject decisions all stream to and resume from it. The host disk (~9-13 GB free) is the scarce resource; RustFS/S3 has the room, so run artifacts and **replay outputs go to RustFS too** , not `~/ousast-results` on local disk. | `storage-streaming.md` , `bank.py` |
| Replay image | Provenance pinned. CI `engine-image.yml` builds `ousast-replay-task` (harness with `/app/benchmarks/unseen/replay_entry.py` ) + `ousast-engine-task` (Joern hook), publicly pullable by digest. The old `ousast-runner:dev` (248 MB ax-runner, no `/app/benchmarks` , no Joern) is the **wrong** image for replay. | CI run 38116281676 |
2026-10-12 16:38:18 +02:00
| Baseline (G0.2) | **RETIRED as a metric.** A replay (record 07) ran end-to-end on the docker lane, which proves the pipeline works — but its catch/false-alarm figures are **not a usable baseline** (scored against ~half-mislocated SZZ labels on a mostly non-app-shaped corpus) and are **not quoted or used as a gate** . The pool must be cleaned to sound labels first. | pipeline proven; metric not used |
2026-10-11 08:17:06 +02:00
2026-10-12 16:38:18 +02:00
Sourcing and engine-image work took time. The pipeline and these docs now record bucket-first persistence and
pinned image provenance, along with the measured yield. The next pool or arm can reuse that work.
2026-10-11 08:17:06 +02:00
2026-10-12 16:38:18 +02:00
### Readiness plan — build a VALID benchmark first
2026-10-11 08:17:06 +02:00
2026-10-12 16:38:18 +02:00
The frozen-SZZ-pool approach is retired (above). The replay pipeline works end-to-end, and the harvest/freeze/bucket
machinery remains available. The engine/replay images are pinned. No catch/false-alarm figure from that pool is used.
2026-10-12 15:30:11 +02:00
2026-10-12 16:38:18 +02:00
Next, define and build the valid benchmark. Use sound, verified positives with in-repo reachability and ordinary
negatives on unseen repos. Measure the whole tool with metrics an engineer understands. The design is in
`.kiro/specs/valid-detection-benchmark/brief.md` . Only once that benchmark exists does any detection number
2026-10-12 18:24:13 +02:00
(recall, false alarms per 100 pushes, exploit-verified findings) mean anything. The kube `ax` lane is still the place the
2026-10-12 16:38:18 +02:00
engine tier runs at scale, but it is infrastructure, not the gate.
2026-10-12 15:30:11 +02:00
### Restoring the kube `ax` lane (for G1, operator-owned)
The AX executor is **built and smoke-tested** (`benchmarks/ax/batch.py` , `engine_trace.py` `ax` /`mixed-ax`
lanes, OOM→docker fallback; an engine smoke test dispatched to the 2-worker cluster end-to-end on 2026-10-04).
What remains before the G1 engine-arm replay:
2026-10-12 16:38:18 +02:00
- Use the working `ax` binary, `~/go/bin/ax` . `~/.local/ax-v0.3.1/ax` hits the AX-lane blocker
2026-10-12 15:30:11 +02:00
(recorded in the unseen spec `tasks.md` , 2026-10-11). The coordinator commands in the READMEs are being
corrected to this binary.
2026-10-12 16:38:18 +02:00
- `benchmarks/ax/batch.py` expects a public-HTTPS DNS, presign-capable S3 store endpoint reachable
2026-10-12 15:30:11 +02:00
from the cluster; the cluster carries no model/store credentials (it reads/writes via short-lived presigned
links). This and the cluster's store access are operator/AX-owned.
- **Run the open spec tasks** that gate G1: **4.4** (engine smoke on kube-ax → record 04) and **5.4** (replay
proof on kind, then kube-ax → record 05), both marked `(coordinator, network)` . Then the full engine-arm
replay (`--lane ax` ).
2026-11-26 10:59:35 +01:00
- **Noted 2026-11-26:** the replay proof of 5.4 on kind waits for the local kind cluster, which is
stopped since 2026-11-24; its code stays.
2026-11-28 11:53:11 +01:00
- **Noted 2026-11-28:** the text of 4.4 in `plane-on-kubernetes/tasks.md` stays as written (its title
says "Kind proof and record 04"). Three points on it are open and not decided: what the proof is on
kube-ax, since the parent bullet calls 4.4 the engine smoke and the task's bullets prove the GHCR images;
how a task of a group to re-plan under G4 gates G1, in this section whose ordering the milestone ladder
above supersedes; and the marker `(coordinator, network)` , which the parent bullet says 4.4 and 5.4 carry
and neither task's line in the spec has. The dated note under 4.4 holds the points.
2026-10-11 08:17:06 +02:00
2026-10-04 17:34:57 +02:00
### Phases
2026-10-12 16:38:18 +02:00
**G0. A VALID detection benchmark** (spec `valid-detection-benchmark` ; supersedes the retired
`unseen-repo-evaluation` frozen-SZZ-pool approach)
2026-10-04 17:34:57 +02:00
2026-10-12 16:38:18 +02:00
1. Use real vulnerabilities labelled *from the fix* : the pre-fix code at the file/function the fix changed,
without an SZZ blame-walk. Keep only those reachable from an in-repo entry point. Confirm each case through
LLM adjudication and a human spot-check so the positives are sound, app-shaped and verified.
2. Ordinary negatives: everyday non-fix commits from the same application repos, a set much larger than the
positives (false alarms discourage adoption).
2026-10-12 18:24:13 +02:00
3. Measure the **whole tool** (all tiers on) on **unseen** repos, and report metrics an engineer reads:
**recall** , **false alarms per 100 pushes** (false-positive rate), **precision** , and **exploit-verified**
findings (demonstrated with a working proof of concept, label-free). See the brief for the full definition
and why the SZZ pool was not feasible.
2026-10-04 17:34:57 +02:00
2026-10-12 16:38:18 +02:00
Exit: the benchmark exists (frozen, verified) and the whole tool has a first measured result on it.
2026-10-04 17:34:57 +02:00
2026-10-12 16:38:18 +02:00
**G1. Score the arms on the valid benchmark**
2026-10-04 17:34:57 +02:00
2026-10-12 16:38:18 +02:00
Quick rules, engine evidence, the LLM-guided arm, and their combination, each a registered decision rule,
2026-10-12 18:24:13 +02:00
scored by recall at a fixed false-alarms-per-100-pushes budget, with exploit-verified findings where available.
2026-10-04 17:34:57 +02:00
2026-10-12 16:38:18 +02:00
Exit: one measured table of arms on unseen app-shaped code; keep only what generalises. (No number is quoted
until it comes from this benchmark, never the SZZ pool.)
2026-10-04 17:34:57 +02:00
**G2. Improve what moves the unseen-repo numbers**
Candidates, each admitted only if it improves the pool metric on a fresh slice: fix mechanisms in the engine
(approved plan, now one arm, not the spine), engine coverage and TypeScript, decision-engine prompt and retrieval
changes, more labelled pairs from more distinct repositories.
2026-10-11 15:05:51 +02:00
Active G2 workstreams (2026-10-11; progress tracked in `.kiro/specs/engine-change-scoped-analysis/brief.md` ):
2026-10-11 11:10:26 +02:00
2026-10-12 16:38:18 +02:00
Priority #1 after record 07: run semantic detection within the pre-push budget. The record-07 baseline
is **regex only** . The push arms hardcode `model="disabled"` , `max_model_calls=0` , and the engine never
ran (`engine_covered=0` ); measured `catch≈2.5%` . Pattern rules alone are insufficient; otherwise `grep` would do.
The two detection tiers did not run: the **engine** (Joern dataflow) and the **LLM adjudication**
(disabled in the push path). The workstream measures **efficiency barriers** with a per-tier budget ledger
2026-10-12 08:20:16 +02:00
against a realistic pre-push window (≤120 s target, 300 s hard):
2026-10-12 16:38:18 +02:00
- Engine: E1/E2 DONE (2026-10-12, clean host), see brief "E1/E2 RESULTS". CORRECTION: the engine's
2026-10-12 08:20:16 +02:00
`query=0` wall was **host contention** (the baseline replay), not an intrinsic floor. On a clean host the
shipped engine **runs dataflow** (query 0→35 s, selected 0→**356 regions**). The evidence/taint batch (~225 s)
is **invariant to session and preload** ; graph-load is cheap (~35 s incl `importCpg` ). The real barrier is
`taint.sc` 's ~160 s per-batch flow work, so `build(~30)+evidence(~225)≈255 s` of 300 s defers 1009/1365
2026-10-12 16:38:18 +02:00
regions. Reduce the work by **scoping the family/file set to the change** (not session/preload). E3 analysis
2026-10-12 08:20:16 +02:00
per-pair cost; E4 build vs repo size remain.
2026-10-12 16:38:18 +02:00
- **ENGINE-ON PILOT DONE (2026-10-12, clean host, 5 public repos), see brief "ENGINE-ON PILOT RESULTS".**
**regex 1/5, engine 0/5.** The engine added no catches over the regex floor. The budget hypothesis is
refuted: 3/5 repos finished their queue (deferred=0) and still emitted no finding, so change-scoping will not
2026-10-12 18:24:13 +02:00
improve recall. The engine ranked the vuln region in all 5 and found the right sink on 2 (socketio deser,
2026-10-12 16:38:18 +02:00
launch-editor, score 2.0), but withholds any finding it cannot anchor 1:1 to changed lines: all 5 hit
2026-10-12 08:53:38 +02:00
`ambiguous_line_correspondence` → `witness_unresolved` → `coverage_status=incomplete` , suppressing even the
2026-10-12 16:38:18 +02:00
scored sinks. This is not a shallow-clone artifact. Detection does not meet release requirements.
- Corrected after inspecting `head.findings` : the engine produced no vuln-family findings (path/
injection/deser) on all 5, only config_secrets. The tier1/score2.0 "sink" was the ranker's static candidate,
not a taint finding. `ambiguous_line_correspondence` does not explain the missing findings (nothing to anchor), so the
2026-10-12 09:19:04 +02:00
region-level witness fix (old "Option A") was **refuted before implementation** . The **LLM tier was disabled**
2026-10-12 16:38:18 +02:00
(model_calls=0). The cause is that pilot repos are libraries whose untrusted input is public-API parameters;
2026-10-12 09:24:06 +02:00
Python taint sources are web/CLI only, and the param-as-source mode fires only for entry points (vuln regions
2026-10-12 16:38:18 +02:00
are `entry:false` ). Widening it statically would reintroduce the WordPress/PMPro false-SQL-injection flood.
The workstream follows the maintainer's "#2 guided by #1 " directive: the LLM adjudicates which library parameter is a trust boundary
2026-10-12 09:24:06 +02:00
(static rules can't without FPs), the taint engine then traces that source→sink as proof, and repeated source
2026-10-12 16:38:18 +02:00
shapes get promoted to guarded static facts. First increment (pending budget): wire the disabled LLM tier on the
2026-10-12 09:24:06 +02:00
5 pilot regions in LLM-guided-source mode; measure source naming, traced finding, catch lift vs regex 1/5, and
false-alarm on ordinary changes; stage 5– 10 → ~10– 20 → full on lift. #3 change-anchoring deprioritised until
tiers yield findings.
2026-10-12 16:38:18 +02:00
- **BANKS FIXED-SEARCH MVP DONE (2026-10-12), "#2 guided by #1 " closes on an unseen target.** See brief
2026-10-12 14:02:41 +02:00
"BANKS FIXED-SEARCH MVP" + `benchmarks/measurements/2026-10-12-banks-fixed-search-mvp/` . On banks (the
library that gave the engine zero), injecting the two annotations an LLM steer would supply (param-as-source
+ `write_text` /`read_text` sink) makes the engine resolve `prompt → path-join → write_text` where the
2026-10-12 16:38:18 +02:00
shipped search resolved nothing. This supports the principle "no wrong targets, only wrong searching" and
identifies the inputs the DSPy-optimised steer must learn. Filed instrument bug:
2026-10-12 14:02:41 +02:00
`.kiro/specs/engine-change-scoped-analysis/bugs/taint-sc-single-query-signature-skew.md` (single-query taint
path dead on an exec-signature skew; batch path unaffected).
2026-10-12 16:38:18 +02:00
- LLM: L1 model latency and calls per push; L2 the recall lift of the LLM tier over regex+dataflow on the pool.
2026-10-11 15:05:51 +02:00
- Deliverable: a barrier table (budget × tier combo → fits? measured recall/FP) → the minimal releasable config.
2026-10-12 16:38:18 +02:00
- The pilot lowers the priority of change-scoped engine analysis again. Branch `engine-change-scoped-evidence-pass`
2026-10-12 08:53:38 +02:00
(unmerged). Fitting the budget does not produce catches (3/5 pilot repos finished the queue with zero findings),
2026-10-12 18:24:13 +02:00
so this is not required to improve recall. Keep only as a latency optimisation once detection works.
2026-10-12 09:19:04 +02:00
- **Line-correspondence (merged c39fbb8).** `ambiguous_line_correspondence` fires on 5/5 realistic diffs, but the
2026-10-12 16:38:18 +02:00
pilot's corrected diagnosis shows it does not block detection here. The static tiers produce no vuln-family
findings to anchor. A region-level witness fallback only matters once #1/#2 yield findings.
2026-10-11 11:10:26 +02:00
2026-10-04 17:34:57 +02:00
**G3. Decide BLOCK per family** on the pool's false-alarm rate and the pooled precision bound (Req 6.4).
**G4. Detection on push for any repository** (`plane-on-kubernetes` P4 work: `ousast plane scan --base --head` ,
engine pins on kube-ax, model calls on the VM or CI), sized by what G1-G3 kept.
2026-10-12 16:38:18 +02:00
G5. Qualification and rollout: adopt, commit `prediction-v3.json` , spend population v3 once, advisory rollout,
2026-10-04 17:34:57 +02:00
BLOCK only for families that passed.
2026-11-23 21:05:56 +01:00
Population v4 (11 cases, frozen 2026-11-23) is the untouched population held for M4: it is not scanned;
`protocol-v4.md` is committed and its one run follows the candidate frozen at M3.
2026-10-04 17:34:57 +02:00
### Cross-cutting rules
- No hand-tuning per miss. Every detection change is a registered experiment or an admission by held-out
separation.
- Records carry counts, digests and pattern names, never repository names: the reserved-repository guard covers
every population.
- Instrument first: a zero from an unread input is a failed run (AGENTS.md).
- Cluster stability: sandbox deaths are retried once, then sent to the VM lane; the operator owns workers, egress
and Substrate.
### Spec map
| Spec | Role in this roadmap | State |
| --- | --- | --- |
| `unseen-repo-evaluation` (new) | G0, G1: the pool and the push-level metric | To specify |
| `learned-decision-engine` | G1-G3, G5; fix-mechanisms plan is one G2 arm | Implementation; experiments 3-5 recorded |
2026-11-25 19:19:46 +01:00
| `plane-on-kubernetes` | G4; the engine executors for kube-ax | Groups 1-2 done (kind); local kind cluster stopped 2026-11-24, code stays; production path re-scoped to the operator's kube-ax (AX Tasks), groups 3-8 to re-plan |
2026-10-04 17:34:57 +02:00
| `pre-push-safety-net` | the hook replayed in G0-G1; M4-M5 in G5 | Operational increment 1 done; M4-M5 open |
| `ai-service-plane` | The plane the above runs on | Complete |
2026-10-02 07:08:44 +02:00
## Status, 2026-10-02
The milestone table below dates from 2026-09-14. Since then (`.kiro/specs/pre-push-safety-net/release-milestones.md` ):
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.
2026-11-23 21:05:56 +01:00
Population v4 (11 cases) was frozen on 2026-11-23 and is unscanned; `protocol-v4.md` is committed and no
result exists yet.
2026-10-02 07:08:44 +02:00
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
progress, not adopted). See `overview.md` for the current-state summary.
## Release path as accepted 2026-09-14
2026-09-12 18:27:14 +02:00
2026-09-14 20:48:23 +02:00
Build an actionable pre-push security safety net for AI-accelerated development.
The maintainer accepted the following order: **prove one useful detection, make it
2026-10-12 16:38:18 +02:00
fast, prove cross-language transfer, qualify independently, then enable a narrow advisory
2026-09-14 20:48:23 +02:00
rollout**. The executable outcome contract lives in the existing
[pre-push-safety-net release milestone spec ](../specs/pre-push-safety-net/release-milestones.md ).
2026-09-12 18:27:14 +02:00
2026-09-16 15:31:34 +02:00
**We are at M1b. M1a is met; no other release milestone is verified yet.** The published
2026-10-12 16:38:18 +02:00
`v1.2.0-alpha.1` and 28/29 completed implementation tasks show that the machinery is implemented.
They do not demonstrate a useful safety net. Task 8.3 and rollout remain NO-GO.
2026-09-12 18:27:14 +02:00
2026-09-14 20:48:23 +02:00
| Order | Milestone | Observable exit | Current state |
|---|---|---|---|
2026-09-16 15:31:34 +02:00
| M1a | Show the NodeGoat detection with every admission veto recorded, not applied | Raw finding with witness on the vulnerable revision; analyzed fixed twin and unchanged control quiet; per-finding veto list. One-week time box | MET 2026-09-16 |
2026-09-16 19:11:03 +02:00
| M1b | Repair only the vetoes M1a showed to matter | Supported evaluation finding through production rules, exact change/base evidence and repair direction; fixed twin and unchanged control stay quiet | IN PROGRESS: comparison half verified on all three revisions; the consequence and repair rendering (10.10) remains |
2026-09-14 20:48:23 +02:00
| M2 | Make that same analysis fast | Equivalent evidence; representative warm changed-code p95 <=30s, cancellation/report <=2s, >=95% supported completion | Pending M1 |
| M3 | Prove the shared design transfers | PMPro/PHP and VAmPI/Python vulnerable/fixed evidence; unchanged core rules; Node replay after any PMPro core change | Pending M2 |
| M4 | Qualify on independent cases | Reviewed untouched vulnerable/fixed/benign populations pass joint quality, coverage and latency gates per capability | Pending M3 |
| M5 | Enable a narrow advisory rollout | Exact passing eligibility and packaged acceptance; only qualified capabilities enabled | Pending M4 |
2026-09-12 18:27:14 +02:00
2026-09-14 20:48:23 +02:00
### Immediate next action
2026-09-12 18:27:14 +02:00
2026-09-16 19:11:03 +02:00
Finish M1b by rendering the experimental evaluation finding with its consequence and repair
direction (10.10), through an explicitly unreviewed declaration and with eligibility still
disabled. The comparison half is verified: the production rules classify the vulnerable, fixed
and unchanged NodeGoat revisions correctly, and admission rejects the vulnerable one on the
eligibility gate alone. What is missing is the explanation, which no declaration currently
supports, and inventing it is exactly what admission exists to prevent. Then M2 runtime.
2026-09-14 20:48:23 +02:00
Do not start another broad speed campaign before this outcome exists. See the
2026-09-16 15:31:34 +02:00
[M1a evidence ](../specs/pre-push-safety-net/m1a-recorded-vetoes.md ) and the
2026-09-14 20:48:23 +02:00
[owner diagnosis ](../specs/contributor-scan/release-remediation-research.md ).
### Approach and boundaries
The existing ranker owns scope. Vendor code stays out of targets and graphs. Framework
facts and frontends supply evidence to a language-agnostic core. Unknown dependencies
remain explicit; removing global completeness vetoes requires question-owned evidence,
not dropped safety checks. Advisory and blocking share the same actionability bar.
Graph persistence now works: identical-tip replays take 18.5– 18.9s. All 18 other measured
transactions still time out and 0/24 target checks complete. A local Joern session census
2026-10-12 16:38:18 +02:00
probe shows promise, but full-query equivalence and hook performance are unverified.
2026-09-14 20:48:23 +02:00
These findings inform M2; they do not complete M1. No second IR/engine, new heuristic
scope selector, differential graph mutation or unrelated backlog is part of this path.
2026-09-12 18:27:14 +02:00
## Existing Spec Updates
2026-10-12 16:38:18 +02:00
- [ ] pre-push-safety-net, Execute the accepted M1– M5 release milestone amendment.
2026-09-14 20:48:23 +02:00
Owns immutable replay, comparison, admission, evaluation and reporting. Preserve the
existing completed tasks; task 8.3 remains blocked until qualification passes.
2026-10-12 16:38:18 +02:00
- [ ] contributor-scan, Supply the required query/operation/context fixes for M1,
2026-09-14 20:48:23 +02:00
followed by equivalent bounded session execution for M2 and shared transfer evidence.
Frontend retention 2.18 and named census repair 2.19 are already verified.
2026-10-12 16:38:18 +02:00
- [ ] flow-aware-ranking, Preserve ranker-owned scope and normalized cross-language
2026-09-14 20:48:23 +02:00
behavior. New ranking research is not a prerequisite for the first useful comparison.
2026-10-12 16:38:18 +02:00
- [ ] zero-with-a-reason, Adjacent diagnostics work; finishing its whole backlog is
2026-09-14 20:48:23 +02:00
not required before M1.
2026-09-12 18:27:14 +02:00
## Specs (dependency order)
2026-10-12 16:38:18 +02:00
- [ ] pre-push-safety-net, Existing approved implementation, dependent on contributor-scan.
2026-09-14 20:48:23 +02:00
Groups 1– 7 and tasks 8.1, 8.2, 8.4 are verified; 26/27 executable tasks complete.
Remaining release work follows [M1– M5 ](../specs/pre-push-safety-net/release-milestones.md ).
This amendment creates no duplicate implementation spec and resets no prior approvals.
2026-09-12 18:27:14 +02:00
2026-09-14 20:48:23 +02:00
### Progress reporting
2026-09-12 18:27:14 +02:00
2026-09-14 20:48:23 +02:00
Lead with the current milestone, the demonstrated developer outcome, the blocker and
the next action. Keep implementation counts separate from release readiness. Preserve
prior evidence and review limits in the [implementation records ](../specs/pre-push-safety-net/status.md ).
The earlier PHP-first and runtime-first narrative below is historical and does not
supersede this accepted sequence. Blocking deployment follows a later explicit decision.
2026-09-12 18:27:14 +02:00
## Historical roadmap narrative — September 9– 11
The sections below preserve prior plans and measurements. Statements about the current bottleneck,
PHP coverage, rollout order or feature readiness are superseded by the current section above.
2026-10-12 16:38:18 +02:00
**Rewritten 2026-09-09.** The previous version (kept as `.kiro/archive/steering/roadmap-2026-09-04.md` , outside steering) described a pre-Joern world,
2026-09-09 13:50:46 +02:00
"adjudication is still Python-`ast` plus a tree-sitter CLI stub", "Joern-as-required deferred". Joern was
2026-10-12 16:38:18 +02:00
adopted. The model layer was built and wired, then measured. Two repositories have been scanned. See
2026-09-09 13:50:46 +02:00
`overview.md` for what is true today; this is what happens next and in what order.
2026-09-04 15:07:35 +02:00
2026-09-09 14:06:11 +02:00
## The target: a first release for small projects
> "a first release that is ready for smaller projects like libpng or wordpress"
2026-10-12 16:38:18 +02:00
Neither works today. They fail for different reasons, so both are useful targets.
2026-09-09 14:06:11 +02:00
| target | why it fails now | what a release needs |
| --- | --- | --- |
| **WordPress** (php) | `taint_specs(language="php")` returns **zero families** . Joern's `php2cpg` parses it; we say nothing. | Fact tables and entry-point mapping. The engine is right for this: PHP web bugs are the classic taint families, which is what the taint arbiter already decides well. |
| **libpng** (c) | `c/memory` models string functions; libpng overflows through *arithmetic* , and its library never calls a sink we model. | Either a second abstraction (size arithmetic — a constraint problem) or an honest, stated limit. |
So "ready for" has to mean two different things, and the release criteria say which applies where:
* For a project whose bug class a family **can** decide (WordPress, vibe-code): find the known vulnerability.
* For one it **cannot** (libpng today): run inside its envelope, report nothing false, and *state the limit*
rather than returning a quiet clean bill of health.
2026-10-12 16:38:18 +02:00
A tool that says "I do not model this class" is usable. Silent failure to find anything teaches developers to
distrust SAST.
2026-09-09 14:06:11 +02:00
### Release criteria (v0.1)
1. Runs unattended on a pinned checkout of each target within a stated time and memory envelope.
2. **Zero known-false entailed findings** on every pinned checkout.
3. Finds the known vulnerability wherever a family can decide it in principle (Req 4.6).
4. States what each family cannot decide, in the report (Req 5.6).
2026-10-12 16:38:18 +02:00
5. The report is proportionate: no rule repeats itself past a stated count (Req 5.5).
2026-09-09 14:06:11 +02:00
6. Installs and runs without the user having Joern, a JVM, or a PHP interpreter (docker compose + wrapper).
7. A committed regression baseline per target, so the next change is measurable rather than argued about.
### What that reorders
2026-10-12 16:38:18 +02:00
PHP moves up: it is the shortest path from here to a target the maintainer named, and it is the case the
2026-09-09 14:06:11 +02:00
existing arbiter is best suited to. The C decision moves up with it, because criterion 4 needs `c/memory`
2026-11-24 14:17:30 +01:00
either earning its place or being scoped, and scoping it is cheap. Taken on 2026-11-24: scoped.
2026-09-09 14:06:11 +02:00
2026-09-09 13:50:46 +02:00
## The one test everything is ordered by
2026-09-04 15:07:35 +02:00
2026-09-09 13:50:46 +02:00
> "it must find the bugs, otherwise it's SAST noise. most devs know codeql / semgrep have dataflow
> capabilities but never use it"
2026-09-05 09:55:35 +02:00
2026-09-09 13:50:46 +02:00
So the ordering principle is: **make the output worth reading, then make it find more.** A better arbiter
2026-10-12 16:38:18 +02:00
behind an unreadable report changes nothing, and a second language before the report is fixed doubles the
2026-09-09 13:50:46 +02:00
noise.
2026-09-05 09:55:35 +02:00
2026-09-10 16:01:21 +02:00
## Now — make a repository scan finish at all
2026-09-04 15:07:35 +02:00
2026-10-12 16:38:18 +02:00
The output work previously listed here is done. PHP detection exceeded the plan: the graph entailed three
CVEs on real WordPress plugins without a model, and each finding disappeared on the fixed side. The remaining
problem is getting scans to finish.
2026-09-04 15:07:35 +02:00
2026-09-10 16:01:21 +02:00
A 637-file plugin builds in 76 seconds and then the taint query does not complete. Everything below is
ordered by one question: what is the shortest path to a scan of a real plugin that reports its CVE?
2026-09-04 15:07:35 +02:00
2026-10-12 16:38:18 +02:00
1. For **5.14** , stop asking questions that cannot have an answer. 53% of taint requests are put to a family
2026-09-10 16:01:21 +02:00
whose sinks do not appear in scope; every one of PMPro's 487 `deserialization` requests is asked of a
2026-10-12 16:38:18 +02:00
repository that never calls `unserialize` . This is an arithmetic check and cannot lose a finding.
2026-09-10 16:01:21 +02:00
4.6 hours → 2.2. Do this first because it makes every later measurement cheaper to run.
2026-10-12 16:38:18 +02:00
2. For **5.12** , add ranking. Currently 84% of regions share one rank and are ordered alphabetically. Two thirds of the
budget is spent arbitrarily. Fifty well-chosen regions are better than five hundred; combined with (1) that is the
2026-09-10 16:01:21 +02:00
difference between hours and minutes. The ranker is an LLM job, and it is safe as one because ranking
2026-10-12 16:38:18 +02:00
cannot manufacture a finding. It decides what is looked at, never what is reported.
The loop is closed and that is a design requirement, not a caveat: a region the ranker excludes is
2026-09-10 16:01:21 +02:00
never arbitrated, so it never produces a label, so the ranker never learns it was wrong. An exploration
slice and a small fully-labelled corpus are what make the signal unbiased.
2026-10-12 16:38:18 +02:00
3. For **5.13** , reduce the 6.63 s/request itself if (1) and (2) are not enough. `callDepth=3` over 7,061 methods is
the term that makes a request cost seconds; the two-stage joins are not the cost (measured: 22%, and they
2026-09-10 16:01:21 +02:00
found two of the three CVEs).
2026-09-04 15:07:35 +02:00
2026-09-10 16:01:21 +02:00
Only after a scan finishes is there any point tuning what it finds.
## Next — the families that cannot be asked
2026-10-12 16:38:18 +02:00
4. For **5.9** , add PHP obligation facts. `dominance_specs(language="php")` is empty, so missing-capability checks
2026-09-10 16:01:21 +02:00
are not asked on any WordPress scan. Not a miss; nothing was measured.
2026-10-12 16:38:18 +02:00
5. For **5.6** , associate each sanitizer with the family it cleanses. The list is flat, so `esc_sql` reads as sufficient
2026-09-10 16:01:21 +02:00
for XSS and `esc_html` as insufficient for SQL. Wrong in both directions, so no `output_encoding` verdict
currently means anything.
6. **File the php2cpg defect upstream.** A `global` inside a closure yields a CPG Joern's own dataflow
overlay rejects, bisected to four lines. Worked around here (0.2% of files, detected and excluded and
reported), but it costs the WHOLE graph rather than the file, and other users will hit it.
2026-09-05 09:55:35 +02:00
2026-09-09 13:50:46 +02:00
## Then — close the deferred engine questions
2026-09-05 09:55:35 +02:00
2026-10-12 16:38:18 +02:00
8. For **2.14** , check control dependence. It is absent from both CPGs, so every guard question runs on CFG dominance. Find
2026-09-09 13:50:46 +02:00
out whether Joern's CDG pass can be applied from the query script and what it costs. If it cannot, that is
a real bound on what this engine can reason about and should be recorded as one.
2026-11-24 14:17:30 +01:00
9. **2.13** was to cover a `strcpy` copy into a destination allocated to fit. **Withdrawn 2026-11-24:** its
Observable needs a second C checkout with a genuine CWE-121, and the harvest that was to supply one (5.3)
is withdrawn.
2026-10-12 16:38:18 +02:00
10. Ship **Group 3– 4** : contributor output, the Docker image, the memory-family decision, and retirement of
2026-11-24 14:17:30 +01:00
`evidence_level` . **Decided 2026-11-24:** C memory-safety beyond string-function misuse is out of scope
(contributor-scan task 4.1, so the C harvest in 5.3 is withdrawn), and `evidence_level` stays beside `rung`
as the overlay pipeline's own vocabulary, with the reason recorded (task 4.2). Revisit it when detection-core
revises its consumer contract.
2026-09-05 09:55:35 +02:00
2026-09-09 17:04:04 +02:00
## Alongside — keep the codebase from growing into the problem
> "we should make sure our code base here doesn't explode. for example we have a custom IR."
`.kiro/specs/ir-consolidation/` (brief, unapproved) separates two questions with opposite answers:
2026-10-12 16:38:18 +02:00
* The source IR already exists in the project. `semantic/` is 3,218 lines, or 16% of the
codebase. It holds a hand-written IR and flat taint engine measured at **2.2% entailment against the CPG's
2026-09-09 17:04:04 +02:00
41.3%**, still running as a proposer. Vine and Ghidra P-Code are *binary* IRs and do not help here; the
2026-10-12 16:38:18 +02:00
work is subtraction. This is a candidate ~1,000-line deletion supported by a measurement.
2026-09-09 17:04:04 +02:00
* * *The missing abstraction is C arithmetic**, and there an existing IR is exactly right. GhidraPAL's
three-valued-logic abstract interpreter over P-Code decides "can this index exceed this allocation", which
is the class `c/memory` cannot see and every libpng overflow is. Vine is dormant since 2009 and is not the
candidate.
2026-10-12 16:38:18 +02:00
The order matters: **question 1 lands before question 2 starts** , or adopting an IR makes
2026-09-09 17:04:04 +02:00
the growth problem worse rather than better.
2026-11-24 14:17:30 +01:00
**Overtaken 2026-11-24:** C memory-safety beyond string-function misuse is out of scope (contributor-scan task
4.1), so question 2 is not pursued.
2026-09-09 13:50:46 +02:00
## After — the feedback loop
2026-09-05 09:55:35 +02:00
2026-09-09 13:50:46 +02:00
11. ** `finding-feedback-loop` ** (design generated, awaiting approval). Its ledger and dismissals are useful
immediately; its *evolution* should not be trusted until step 5 or 6 lands a second true-positive
checkout. The boundary is fixed: an optimiser may evolve the **question** , never the **facts** .
2026-09-05 09:55:35 +02:00
2026-09-09 13:50:46 +02:00
## Not now, and why
2026-09-05 09:55:35 +02:00
2026-10-12 16:38:18 +02:00
- `authorization-obligations` (24 open tasks, approved): the dominance arbiter delivered its substance by
2026-09-09 13:50:46 +02:00
another route. It should be reconciled or retired rather than worked, and carrying it as "approved, not
started" misrepresents both.
2026-10-12 16:38:18 +02:00
- `reachability-flow-model` (23 open, nothing approved) was largely delivered by adopting Joern. Same
2026-09-09 13:50:46 +02:00
treatment.
2026-10-12 16:38:18 +02:00
- `constrained-detector` (4 of 20, tasks unapproved) is parked.
- More corpus volume is deferred. 198 of 238 OWASP pairs were left unvendored deliberately: volume without
2026-09-09 13:50:46 +02:00
readability makes every number worse, and the corpus is not the binding constraint. Reachability is.
2026-10-12 16:38:18 +02:00
- A second CPG engine and an execution rung are deferred, as is server mode. Server mode was measured and rejected (6% of a
2026-09-09 13:50:46 +02:00
scan). The other two have no evidence calling for them yet.
2026-09-05 14:55:00 +02:00
2026-09-09 13:50:46 +02:00
## How to know it is working
2026-09-05 14:55:00 +02:00
2026-09-09 13:50:46 +02:00
The scoreboard in `overview.md` , and one question: **can a developer run this on a repository they did not
write and get something they act on?** Today that is true for one Python application and false for one C
library, and the specs above are ordered by what changes that.
2026-09-09 14:06:11 +02:00
2026-10-12 16:38:18 +02:00
A release is ready when it answers **yes for WordPress and honestly for libpng** . It must find the vulnerability
where the engine can decide the class, and state the limit where it cannot. Both are release criteria; only one
2026-09-09 14:06:11 +02:00
of them is a detection claim.