spec(dspy-driver): the driver gets its own spec, measured by example

The open work of hunter-learning-loop (4.1, 6 and the group 7 of the same day)
moves to dspy-driver as D1 to D10. The brief maps the driving in seven stages and
orders the experiments E0 to E6. The abstract interpretation is wired in before
anything is measured: the prover's trace and Joern's results are not inputs of the
driver today. HarnessX is gone from the tree, and the four plane modules the ledger
suspected are still imported.

Co-Authored-By: Claude Fable 5.2 <[email protected]>
This commit is contained in:
Marius Ciepluch
2026-11-30 09:51:09 +01:00
co-authored by Claude Fable 5.2
parent 1a9865496b
commit e3f2f608d5
21 changed files with 277 additions and 83 deletions
+1 -1
View File
@@ -3,7 +3,7 @@
## 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
the plan: the driver (`dspy-driver`) 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
+1 -1
View File
@@ -6,7 +6,7 @@ Everything below this section is dated history; where it disagrees with this sec
- **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
(`dspy-driver`, which continues `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
+30 -16
View File
@@ -50,7 +50,9 @@ revision and not on the fixed one.
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).
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.
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
@@ -74,17 +76,22 @@ 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.)
- **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.)
- **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
(`dspy-driver` D6, 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.)
(`dspy-driver` D5, D7, D8; experiments E2 to E6.)
- **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.)
@@ -116,7 +123,8 @@ N1 to N3 and N4 run side by side. N4 does not wait for N3: the proof arm has its
| Spec | State | What happens to its open tasks |
| --- | --- | --- |
| `hunter-learning-loop` | active, line 1 | 4.1 and 6 stay; group 7 added |
| `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) |
| `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 |
@@ -124,10 +132,10 @@ N1 to N3 and N4 run side by side. N4 does not wait for N3: the proof arm has its
| `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 |
| `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 |
| `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.
@@ -149,10 +157,16 @@ with its lever and number named.
### 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.
- 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.
- 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.
+1 -1
View File
@@ -76,7 +76,7 @@ does not pass: useful recall and coverage are required alongside low noise.
## 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`
shows what the driver (`dspy-driver`) 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