mirror of
https://github.com/norandom/OpenUltraSAST.git
synced 2026-12-04 02:38:18 +00:00
spec: the scope is cut to a safety net that produces evidence; the plane is retired
The maintainer's second decision of 2026-11-30. The requirements of dspy-driver are approved, with a memory amendment: a cache in stage one, a case memory and a curator that prunes as later stages. The kube and AX plane is retired and its removal is listed as steps C1 to C5 of the roadmap. search-with-proof is deferred to a follow-up spec in Docker on a dedicated runner, opened once the driver's baseline is read. Co-Authored-By: Claude Fable 5.2 <[email protected]>
This commit is contained in:
co-authored by
Claude Fable 5.2
parent
3bc7059fd3
commit
b38dcdbc60
@@ -1,9 +1,9 @@
|
||||
{
|
||||
"feature_name": "ai-service-plane",
|
||||
"created_at": "2026-09-29T15:40:00Z",
|
||||
"updated_at": "2026-10-02T00:00:00Z",
|
||||
"updated_at": "2026-11-30T00:00:00+01:00",
|
||||
"language": "en",
|
||||
"phase": "implementation-complete",
|
||||
"phase": "superseded",
|
||||
"approvals": {
|
||||
"requirements": {
|
||||
"generated": true,
|
||||
@@ -18,5 +18,10 @@
|
||||
"approved": true
|
||||
}
|
||||
},
|
||||
"ready_for_implementation": true
|
||||
"ready_for_implementation": false,
|
||||
"phase_before_supersession": "implementation-complete",
|
||||
"superseded_on": "2026-11-30",
|
||||
"superseded_by": [],
|
||||
"supersession_note": "This spec was complete. The plane it built is retired; its code is removed by the cut (roadmap step C2). The memory store and the spend meter move out of the plane package first (C1) and stay.",
|
||||
"roadmap_state_2026_11_30": "retired with the kube and AX plane"
|
||||
}
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
> **RETIRED 2026-11-30** (maintainer decision; `.kiro/steering/roadmap.md`, "Second decision of
|
||||
> 2026-11-30"). No work lands in this spec. The directory stays as history. This spec was complete. The plane it built is retired; its code is removed by the cut (roadmap step C2). The memory store and the spend meter move out of the plane package first (C1) and stay.
|
||||
|
||||
# Implementation Plan
|
||||
|
||||
Order follows the dependency chain: ax bring-up (parallel with 1-2) -> manifests -> budget -> runner ->
|
||||
|
||||
@@ -128,6 +128,45 @@ Input for the requirements and task phases. The ids are this brief's.
|
||||
| D9 | The handoff of the top suspects to the proof arm | `hunter-learning-loop` 7.6 |
|
||||
| D10 | One read of an accepted program on a held-out pilot, at most once per program | `hunter-learning-loop` 6 |
|
||||
|
||||
## Memory for the driver (added 2026-11-30)
|
||||
|
||||
The maintainer: "we have a rustfs memory. how should dspy use it. memory is key to save cycles, and it can
|
||||
improve. but we need a memory pruning and memory agent approach here. dspy has this, but it's missing".
|
||||
|
||||
Read on 2026-11-30:
|
||||
|
||||
- The store exists: `src/openultrasast/plane/memory.py`, a file backend and an S3 backend tested on RustFS,
|
||||
rows per repository and pin, blobs by content (`excerpts/`, `embeddings/<model>/`, `responses/`,
|
||||
`programs/`). `learn/` uses it (7 files). The driver in `hunt/` does not: it has only DSPy's local disk
|
||||
cache. The store sits in the plane package, which is retired; it moves out first (roadmap step C1).
|
||||
- DSPy 3.4.1 as installed exports `configure_cache`, `History`, `Embedder`, `Embeddings`, `KNN`,
|
||||
`KNNFewShot`, `Retrieve` and tools for `ReAct`. It has no long-term memory, no pruning and no memory
|
||||
agent. Those are ours to build.
|
||||
|
||||
Three stages. Each is entered by a result, as Requirement 7 demands; only M1 belongs to stage one.
|
||||
|
||||
| Stage | What the driver gets | Saves or improves | How it is measured |
|
||||
| --- | --- | --- | --- |
|
||||
| M1 Cache | Joern's results keyed by repository, revision, function digest, engine and query version; model answers keyed by the request digest; both in the store, so a second machine or a later session reuses them | saves cycles; changes no answer | run E0 and E1 twice: the second run starts no engine, makes no model call, and gives the same pages |
|
||||
| M2 Case memory | every read example with a verified label becomes a case: its annotation, family, outcome and miss cause. Before answering, the driver retrieves the nearest cases and sees them as demonstrations | may improve | one experiment: with and without retrieval, on repositories the memory holds no case from |
|
||||
| M3 Curator | a step that runs after an experiment, never while the driver answers: it writes cases, merges duplicates, scores each case by what happened when it was retrieved, and prunes | keeps M2 from decaying | one experiment: pruned against unpruned memory on the same held-out examples; pruning is a tombstone first, so it can be undone |
|
||||
|
||||
Rules that hold from M1 on:
|
||||
|
||||
- **Only verified labels enter the case memory:** a label from a fix or, later, from a demonstration. The
|
||||
driver's own unverified answer is never stored as a case, or the memory learns the driver's mistakes.
|
||||
- **Retrieval is held out by repository:** a question never retrieves a case from its own repository, and
|
||||
no case comes from an admission or evaluation population.
|
||||
- **A key carries its versions.** A cached result is void when the code, the engine, the query or the
|
||||
program changed. That is the first pruning rule, and it needs no judgment.
|
||||
- **Pruning reasons are a closed list:** version changed; duplicate of a kept case; contradicted by a later
|
||||
verified label; retrieved often and unhelpful; over the cap for its family and framework.
|
||||
- **The memory agent is a DSPy module of its own**, the curator of M3. Whether the driver also asks the
|
||||
memory through a tool while it works, or receives the cases up front, is experiment E6's question.
|
||||
|
||||
Carried work added: **D11** the cache of M1 through the store (with D3); **D12** the case memory (M2);
|
||||
**D13** the curator and pruning (M3). D12 and D13 have no criteria until E1 is read.
|
||||
|
||||
## Scope
|
||||
|
||||
- **In.** The driver's inputs, signature, module, sampling, compilation and output; the two producers; the
|
||||
|
||||
@@ -210,3 +210,18 @@ that a good result here can still be tested fairly.
|
||||
detection rate of the tool.
|
||||
4. The driver work shall record every model call with its model, version, sampling settings and cost.
|
||||
5. While no paid run is in progress, the driver work shall run with both API keys unset.
|
||||
|
||||
## Amendments
|
||||
|
||||
- **2026-11-30, at approval.** The maintainer approved this document ("approved.") and raised memory:
|
||||
"memory is key to save cycles, and it can improve. but we need a memory pruning and memory agent approach
|
||||
here". Two changes. (a) Requirement 2 gains criterion 8 and Requirement 5 criterion 7, below: the cache
|
||||
that saves cycles belongs to stage one. (b) The later stages of Requirement 7.1 gain two: whether
|
||||
retrieval of verified cases from memory improves the driver on repositories the memory holds no case from
|
||||
(M2), and whether a curator that prunes keeps that gain (M3). Like E2 to E6 they have no criteria until
|
||||
the result before them is read. The thresholds of Requirements 5 and 6 are approved as proposed.
|
||||
- Requirement 2, criterion 8: When a producer is asked for a result it already holds for the same
|
||||
repository, revision, function content, engine version and query version, the driver work shall return
|
||||
the stored result and shall record that it did.
|
||||
- Requirement 5, criterion 7: When E0 is run a second time on the unchanged example book, the driver work
|
||||
shall start no engine and shall report the same annotations byte for byte.
|
||||
|
||||
@@ -3,11 +3,12 @@
|
||||
"created_at": "2026-11-30T00:00:00+01:00",
|
||||
"updated_at": "2026-11-30T00:00:00+01:00",
|
||||
"language": "en",
|
||||
"phase": "requirements-generated",
|
||||
"phase": "requirements-approved",
|
||||
"approvals": {
|
||||
"requirements": {
|
||||
"generated": true,
|
||||
"approved": false
|
||||
"approved": true,
|
||||
"note": "maintainer 2026-11-30: 'approved.'; thresholds of Requirements 5 and 6 as proposed; memory amendment recorded in requirements.md"
|
||||
},
|
||||
"design": {
|
||||
"generated": false,
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
"created_at": "2026-10-02T20:00:00Z",
|
||||
"updated_at": "2026-11-30T00:00:00+01:00",
|
||||
"language": "en",
|
||||
"phase": "implementation",
|
||||
"phase": "superseded",
|
||||
"approvals": {
|
||||
"requirements": {
|
||||
"generated": true,
|
||||
@@ -18,6 +18,10 @@
|
||||
"approved": true
|
||||
}
|
||||
},
|
||||
"ready_for_implementation": true,
|
||||
"roadmap_state_2026_11_30": "parked; only what search-with-proof needs on kube-ax"
|
||||
"ready_for_implementation": false,
|
||||
"roadmap_state_2026_11_30": "retired with the kube and AX plane",
|
||||
"phase_before_supersession": "implementation",
|
||||
"superseded_on": "2026-11-30",
|
||||
"superseded_by": [],
|
||||
"supersession_note": "No task is carried. The kube and AX plane is retired; its code is removed by the cut (roadmap steps C2 and C3)."
|
||||
}
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
> **SUPERSEDED 2026-11-30** (maintainer decision; `.kiro/steering/roadmap.md`, "Second decision of
|
||||
> 2026-11-30"). No work lands in this spec. The directory stays as history. No task is carried. The kube and AX plane is retired; its code is removed by the cut (roadmap steps C2 and C3).
|
||||
|
||||
# Implementation Plan
|
||||
|
||||
> **Status 2026-10-04.** Groups 1-2 are done on kind (records `benchmarks/measurements/2026-10-02-k8s-01-profile/`
|
||||
|
||||
@@ -684,7 +684,7 @@ Preserve all completed task evidence below.
|
||||
- [ ] 18.1 Advisory suspects from the driver
|
||||
- The hook consumes the driver's ordered suspects for the pushed change (`dspy-driver` D5) through the consumer contract of the core; each line names the location, the family and what the trace shows; the count per push is bounded and the bound is stated
|
||||
- Done when a push on a development-pool repository prints the suspects, and a push with the driver unavailable prints one operational notice and no suspect
|
||||
- [ ] 18.2 A demonstrated finding in the hook output
|
||||
- [ ] 18.2 A demonstrated finding in the hook output (waits for the follow-up proof spec; second decision of 2026-11-30)
|
||||
- The hook prints the artifact of `search-with-proof` 7.2 in one bounded block; BLOCK is offered only for a demonstration, and only where the user chose blocking
|
||||
- Done when the packaged vulnerable push shows the demonstration, and the fixed and the benign push show none
|
||||
- [ ] 18.3 Decide the deadline for the model and the search
|
||||
|
||||
@@ -20,5 +20,5 @@
|
||||
},
|
||||
"ready_for_implementation": false,
|
||||
"summary": "OpenCode-MCP proof-authoring arm for search-with-proof: abliterated/GLM proof model, DSPy-optimized from OpenObserve traces; trust-domain decision (A scoped-key-in-cluster vs B brain-on-VM) must be resolved first. Creds in .env by name.",
|
||||
"roadmap_state_2026_11_30": "active, line 2, with search-with-proof"
|
||||
"roadmap_state_2026_11_30": "deferred; a follow-up spec opens once dspy-driver E1 is read; Docker on a dedicated runner, no external sandbox"
|
||||
}
|
||||
|
||||
@@ -26,5 +26,5 @@
|
||||
"false_proofs": 0,
|
||||
"exit_remaining": "path family >=5 demonstrations / 0 false proofs (Req 6.2), then >=73-negative BLOCK qualification (Req 6.3)"
|
||||
},
|
||||
"roadmap_state_2026_11_30": "active, line 2 (proof shows them); group 7 added"
|
||||
"roadmap_state_2026_11_30": "deferred; a follow-up spec opens once dspy-driver E1 is read; Docker on a dedicated runner, no external sandbox"
|
||||
}
|
||||
|
||||
@@ -1,3 +1,11 @@
|
||||
> **DEFERRED 2026-11-30** (maintainer decision; `.kiro/steering/roadmap.md`, "Second decision of
|
||||
> 2026-11-30"). No work lands here now. Proof becomes a follow-up spec once the driver's baseline
|
||||
> (`dspy-driver`, E1) is read. It will run in Docker on a dedicated runner, with no external sandbox: no AX
|
||||
> task, no gVisor, no cluster. This spec and the code under `src/openultrasast/search/` are its input. Of
|
||||
> the open tasks, 1.1, 1.2, 3.2, 3.3 and 5.3 name the cluster and are dropped; 3.1, 6.2 to 6.4 and group 7
|
||||
> are carried to the follow-up. The amendment of the same morning further down ("the proof arm is active")
|
||||
> is withdrawn by this notice.
|
||||
|
||||
# Implementation Plan
|
||||
|
||||
Scope: infrastructure probe and feasibility pilot only (Req 6.1-6.2). BLOCK qualification (6.3), the unseen-pool arm
|
||||
|
||||
Reference in New Issue
Block a user