mirror of
https://github.com/norandom/OpenUltraSAST.git
synced 2026-12-03 02:08:18 +00:00
docs(steering): the roadmap returns to bug finding: the driver, then proof
The maintainer's decision of 2026-11-30 after the project review. Three lines of work: the driver finds the bugs, proof shows them, the developer sees them. The ladder of 2026-11-20 is superseded and kept as history. The benchmark and the core contract are frozen as built. Admission populations never train; the training pool teaches, and the driver may be compiled on it. Co-Authored-By: Claude Fable 5.2 <[email protected]>
This commit is contained in:
co-authored by
Claude Fable 5.2
parent
7ecd60ec4e
commit
0c5e06bb14
@@ -1,5 +1,19 @@
|
||||
# Detection quality: standing rules (2026-10-30)
|
||||
|
||||
## Amendment of 2026-11-30 (maintainer decision; wins over the text below where they differ)
|
||||
|
||||
- **Rule 11 is executed.** The access-control arm is parked since 2026-10-31. Its fallback is now
|
||||
the plan: the driver (`hunter-learning-loop`) finds, `search-with-proof` demonstrates, and a
|
||||
push is blocked only on a demonstration. `search-with-proof` is active, not parked.
|
||||
- **Rule 1 is narrowed.** "Recognition, then resolution, then judgment" ordered the deterministic
|
||||
prover. It does not hold the driver back: the driver reads whatever the trace holds today, and
|
||||
recognition and resolution work is chosen by what the driver's ablation shows missing.
|
||||
- **Rules 4 and 5 are the training rule.** A development population teaches; an admission
|
||||
population is untouched and never tunes anything. The wider wording "the pool measures and never
|
||||
trains" (`overview.md`, 2026-10-14) is replaced by these two rules. A compiled driver program
|
||||
passes the reversed-pair probe before any admission read.
|
||||
- Rules 3, 6 to 10 and 12 are unchanged. Rule 12 binds every step of the roadmap of 2026-11-30.
|
||||
|
||||
Detection on unseen repositories is the binding constraint of this project. The rules below
|
||||
extend the 2026-10-28 gate-5 decision and the Req 12 admission workflow to every spec that
|
||||
touches detection. Where this file disagrees with older spec text, this file wins for
|
||||
|
||||
@@ -1,9 +1,33 @@
|
||||
# Overview — what this is, and what is actually true of it
|
||||
|
||||
## Current state, 2026-10-30
|
||||
## Current state, 2026-11-30
|
||||
|
||||
Everything below this section is dated history; where it disagrees with this section, this section wins.
|
||||
|
||||
- **The project steers back to bug finding** (maintainer decision, 2026-11-30; `roadmap.md`, top
|
||||
section). Three lines of work and nothing else: the driver finds the bugs
|
||||
(`hunter-learning-loop`), proof shows them (`search-with-proof`), the developer sees them
|
||||
(`pre-push-safety-net`). The benchmark and the core contract are frozen as built.
|
||||
- **The driver** is the model-driven hunter, a DSPy program. It reads the change together with
|
||||
what abstract interpretation establishes (the prover's ordered trace, the engine's facts), is
|
||||
sampled several times per question, and is compiled on training repositories.
|
||||
- **The decision-strategy correction of 2026-10-14 is narrowed, not withdrawn.** It stays true
|
||||
that software shape features decide nothing and that anything fitted on them learns the pool.
|
||||
Two of its rules were wider than their evidence and are replaced: "the pool measures and never
|
||||
trains" becomes "admission and evaluation populations never train; the training pool teaches",
|
||||
and "no compiled prompt" becomes "the driver may be compiled on compile folds, on the trace, and
|
||||
must pass the reversed-pair probe". No threshold is tuned on an admission label.
|
||||
- **Nothing has been measured since 2026-10-31.** The figures of the section below are still the
|
||||
latest. No arm meets the gate; every output is advisory; BLOCK needs a demonstrated proof.
|
||||
- **Superseded on 2026-11-30:** `contributor-scan`, `learned-decision-engine`,
|
||||
`reachability-flow-model`, `authorization-obligations`, `finding-feedback-loop`,
|
||||
`flow-aware-ranking`, `zero-with-a-reason`, `ir-consolidation`, `mcp-shift-left-agent`. The open
|
||||
tasks that the three lines need were carried; the spec map in `roadmap.md` says where.
|
||||
|
||||
## Current state, 2026-10-30 (superseded by the section above where they differ)
|
||||
|
||||
Below this section is dated history.
|
||||
|
||||
- **Detection on unseen repositories is still the open problem, and now measured honestly.**
|
||||
The valid benchmark pilot (2026-10-12): push hook 0/12, hunter 5-6/12 at 54 FA/100. The
|
||||
access-control prover: 15/23 on the development pool (2026-10-28, binary vocabulary),
|
||||
|
||||
+158
-1
@@ -1,6 +1,163 @@
|
||||
# Roadmap
|
||||
|
||||
## Roadmap -- milestone ladder to a shippable safety net (2026-11-20)
|
||||
## 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.
|
||||
|
||||
1. **The driver finds the bugs.** Spec: `hunter-learning-loop` (amended 2026-11-30, group 7).
|
||||
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.
|
||||
- **N1. Driver baseline on the trace.** Run the driver as it is over
|
||||
`benchmarks/valid/train/pool-train.toml`, once with the trace in its input and once without, the
|
||||
same changes and sampling for both. Number: search recall and suspicions per ordinary push, with
|
||||
intervals. Paid: needs the maintainer's ceiling. (`hunter-learning-loop` 7.1, 7.2.)
|
||||
- **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
|
||||
(`hunter-learning-loop` 4.1, with the whole-repository vibe-code pairs carried from
|
||||
`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.
|
||||
(`hunter-learning-loop` 7.3 to 7.5.)
|
||||
- **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 |
|
||||
| --- | --- | --- |
|
||||
| `hunter-learning-loop` | active, line 1 | 4.1 and 6 stay; group 7 added |
|
||||
| `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 |
|
||||
| `contributor-scan` | superseded | 2.14, 5.6, 5.12, 7.2, 7.4 to `engine-change-scoped-analysis`; 5.2 to `hunter-learning-loop`; the rest dropped |
|
||||
| `learned-decision-engine` | superseded | 16 and 17 to `hunter-learning-loop`; 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 `hunter-learning-loop`; the rest is covered by the prover's path records |
|
||||
| `authorization-obligations` | superseded | 2.6 to `engine-change-scoped-analysis`; 3.3 to `hunter-learning-loop`; the rest is covered by the prover |
|
||||
| `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.
|
||||
- Code that the superseded specs leave without an owner (the ledger's `review` entries: the plane
|
||||
executor modules of the removed HarnessX loop, 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.
|
||||
- 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)
|
||||
|
||||
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
|
||||
|
||||
@@ -73,7 +73,14 @@ Keep the repeatedly inspected plugins as regression workloads. Evaluate new rank
|
||||
policies on untouched repositories and benign changes as well. A policy that suppresses all alerts
|
||||
does not pass: useful recall and coverage are required alongside low noise.
|
||||
|
||||
## Specification boundaries
|
||||
## Specification boundaries (amended 2026-11-30)
|
||||
|
||||
The list below this note is of 2026-09. Since 2026-11-30 the hook is line 3 of the roadmap: it
|
||||
shows what the driver (`hunter-learning-loop`) suspects, as advisory, and what `search-with-proof`
|
||||
demonstrated, with its evidence. The sentence "The hook does not require an LLM ranker" stays
|
||||
true for the hook's own code; the driver is a separate producer the hook consumes.
|
||||
`contributor-scan`, `flow-aware-ranking`, `zero-with-a-reason` and `finding-feedback-loop` are
|
||||
superseded (`roadmap.md`, spec map of 2026-11-30); their boundaries below are history.
|
||||
|
||||
- `pre-push-safety-net`: immutable pushed snapshots, ranker integration, reusable results, total budget,
|
||||
change attribution, actionability admission, and concise hook behavior.
|
||||
|
||||
@@ -1,5 +1,8 @@
|
||||
# Roadmap
|
||||
|
||||
The order of work changed on 2026-11-30: read [The direction of 2026-11-30](#the-direction-of-2026-11-30)
|
||||
first. The rest of this page is the state of 2026-11-28.
|
||||
|
||||
State on 2026-11-28. The project is at step R3 of its ladder, the first honest number. That is one
|
||||
governed run (task 11.6 of the valid benchmark) that measures detection on real repositories the tool
|
||||
was not tuned on. The run has not happened: the independently reviewed cases it needs do not exist
|
||||
@@ -14,6 +17,32 @@ regression). Work on the engine runs alongside and does not wait for it.
|
||||
The only detection figures on this page are the two recall counts quoted in the status of 2026-11-06.
|
||||
Every figure, with its record, is in [Where we stand](where-we-stand.md) and [Evaluation](evaluation.md).
|
||||
|
||||
## The direction of 2026-11-30
|
||||
|
||||
A project review on 2026-11-30 changed the order of work. The ladder below is kept as the record of
|
||||
2026-11-20; where the two differ, this section is the plan in force.
|
||||
|
||||
The review found that no detection measurement had been taken since 2026-10-31, and that the work of
|
||||
November had gone into benchmark machinery, packaging and the release. The next step of the ladder,
|
||||
the governed run, had no new detection arm to measure. So the work returns to finding bugs, on three
|
||||
lines:
|
||||
|
||||
1. **The driver finds the bugs.** The driver is the model-driven hunter. It reads a change together
|
||||
with what static analysis establishes about it: the entry, the data that reaches a protected
|
||||
operation, and the checks on the way. It is sampled several times per question and is taught on
|
||||
training repositories only.
|
||||
2. **Proof shows them.** The proof arm builds the application and demonstrates a suspect by a
|
||||
differential: the issue triggers on the vulnerable revision and not on the fixed one. It was parked
|
||||
on 2026-11-20 and is active again. It is still a pilot.
|
||||
3. **The developer sees it.** The hook and `ousast scan` show the driver's suspects as advisory, and
|
||||
a demonstrated finding with its evidence.
|
||||
|
||||
What does not change: the repositories used to qualify a release are never used to teach, every
|
||||
output is advisory until a number on unseen repositories says otherwise, and a push is blocked only
|
||||
on a demonstrated proof. The benchmark machinery is kept as built, and the governed run waits until
|
||||
the driver has shown a gain on training repositories. None of the three lines has a new measurement
|
||||
yet.
|
||||
|
||||
## Where this is going
|
||||
|
||||
On every push, from a hook or CI, OpenUltraSAST answers for the changed code. It stays advisory for
|
||||
|
||||
Reference in New Issue
Block a user