diff --git a/.kiro/specs/ir-consolidation/brief.md b/.kiro/specs/ir-consolidation/brief.md index b996ff2d..005e0c82 100644 --- a/.kiro/specs/ir-consolidation/brief.md +++ b/.kiro/specs/ir-consolidation/brief.md @@ -4,6 +4,10 @@ **Status:** brief only, unapproved. +> **Overtaken 2026-11-24:** question 2 (the C arithmetic class and a second pipeline) is not pursued. The +> maintainer decided on contributor-scan task 4.1: "C memory-safety beyond string-function misuse is out of +> scope. Record that, and say so per corpus slice." Question 1 is not affected. + ## Why now > "we should make sure our code base here doesn't explode. for example we have a custom IR. maybe vine diff --git a/.kiro/specs/reachability-flow-model/design.md b/.kiro/specs/reachability-flow-model/design.md index 35055b8c..40be0102 100644 --- a/.kiro/specs/reachability-flow-model/design.md +++ b/.kiro/specs/reachability-flow-model/design.md @@ -359,7 +359,7 @@ A node dominates a path if every route from that path's entry to its sink passes ## Data Models -Artifacts under `.openultrasast/runs//`: `callgraph.json`, `paths.json`, `fixpoints.json`. Manifest additions: +Artifacts under the scan's run directory, `~/.cache/openultrasast/runs//` by default (`$XDG_CACHE_HOME/openultrasast/runs//` when that variable is set to an absolute path, and the directory `OPENULTRASAST_RUNS_DIR` names when it is set; the scan prints it as `run_dir=`; the old location `.openultrasast/runs//` ended on 2026-11-24): `callgraph.json`, `paths.json`, `fixpoints.json`. Manifest additions: ```json { diff --git a/.kiro/steering/overview.md b/.kiro/steering/overview.md index 487ed6bf..44a6963b 100644 --- a/.kiro/steering/overview.md +++ b/.kiro/steering/overview.md @@ -67,8 +67,9 @@ direction lives in `roadmap.md`, section of 2026-10-04 (phases G0-G5). measured yet; the unseen-repository pool (G0, spec `unseen-repo-evaluation`) comes first. - **Correction, 2026-10-04.** Infrastructure and engine work had drifted from that goal. It is now done only when it removes a bottleneck for those measurements. -- **Engine.** Joern runs on the operator's kube-ax cluster as AX Tasks, with a VM fallback lane; kind stays the - development profile. It is almost blind to fixes: paths differ between sides in 2 of 105 both-asked pairs. +- **Engine.** Joern runs on the operator's kube-ax cluster as AX Tasks, with a VM fallback lane; kind was the + development profile until its local cluster was stopped on 2026-11-24 (the code stays). It is almost blind + to fixes: paths differ between sides in 2 of 105 both-asked pairs. - **Decision engine.** Ranks but cannot block (exp-003 to exp-005 inconclusive; 710 fix pairs in memory). Fix mechanisms is one G2 arm, paused after mining until the pool exists. - **Hook.** `ousast pre-push` is operational and advisory on any repository; rollout stays NO-GO. diff --git a/.kiro/steering/roadmap.md b/.kiro/steering/roadmap.md index 5b9dd05f..99b05488 100644 --- a/.kiro/steering/roadmap.md +++ b/.kiro/steering/roadmap.md @@ -8,7 +8,7 @@ asked for: every open work stream led milestone by milestone to the narrow advis 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. -### Position (2026-11-20) +### Position (2026-11-20; refreshed 2026-11-25) - M1a/M1b met on fixtures (NodeGoat). M2 measured unmet (engine startup, 2026-09-17). M3 partial (PHP blocked by runtime). M4/M5 pending. @@ -18,11 +18,17 @@ acceptance profiles (`pre-push-safety-net/release-milestones.md`) and stop condi 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. -- Open work by spec (verified 2026-11-20): valid-detection-benchmark 27 subtasks; - contributor-scan 24; plane-on-kubernetes 22 (paused, re-plan); reachability-flow-model 16 +- **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 and authorization-obligations 18 (tasks-generated, not yet implementation-ready); - pre-push-safety-net 6; hunter-learning-loop 1 (model lane, proposal-only); detection-core 1 - (11.4, closing under R0). access-control-prover subtasks are complete. + 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. ### R0 -- Closure (2026-11-20) @@ -236,7 +242,8 @@ Each environment handles different parts of the work: No API keys and no store credentials in the cluster; tasks read and write through short-lived presigned links. - 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. -- **kind** stays the local development profile, with the same code and manifests. +- **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. ### The question everything answers @@ -257,7 +264,7 @@ Within-pair AUC on known fix pairs answers neither. It stays a development signa | 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` | -| Infrastructure | Engine runs on kube-ax as AX Tasks with a VM fallback; kind for development | memory `kube-ax-cluster` | +| 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 | 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 @@ -422,7 +429,7 @@ Population v4 (11 cases, frozen 2026-11-23) is the untouched population held for | --- | --- | --- | | `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 | -| `plane-on-kubernetes` | G4; the engine executors for kube-ax | Groups 1-2 done (kind); production path re-scoped to the operator's kube-ax (AX Tasks), groups 3-8 to re-plan | +| `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 | | `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 | diff --git a/README.md b/README.md index bcb03a24..d2be6e54 100644 --- a/README.md +++ b/README.md @@ -138,8 +138,9 @@ Keys and store settings live in `.env` in the working directory. The file is git ### Tier 3: the plane on ax (maintainers) -Tier 1 and 2 need none of this. The current profile is a single-node kind cluster on the maintainer's -host. +Tier 1 and 2 need none of this. The local profile is a single-node kind cluster on the maintainer's +host. That cluster is stopped since 2026-11-24: the code stays, `ops/ax/up.sh` recreates the +cluster, and whether the executor code is deleted is decided at the plane re-plan. - `ops/ax/up.sh` needs `docker`, `go`, `kubectl`, `kind`, `ko` and `ax` on the PATH. It refuses to start when one is missing. @@ -154,9 +155,9 @@ See [ops/ax/README.md](ops/ax/README.md) for bring-up and doctor instructions, a ### Tier 4: Kubernetes (k3s), planned -Nothing has been deployed to any cluster other than that kind cluster. The target is two profiles -of one code base: `kind` locally and `k3s` in production. The same `ousast plane run` would -submit a Run in a remote execution mode. It needs: +Nothing has been deployed to any cluster other than that kind cluster, stopped on 2026-11-24. The +target is two profiles of one code base: `kind` locally and `k3s` in production. The same `ousast +plane run` would submit a Run in a remote execution mode. It needs: - a kubeconfig context or the cluster's ingress (and an `imagePullSecret` on the worker ServiceAccount for a private package); diff --git a/docs/deployment.md b/docs/deployment.md index d6eebf59..17d5a28d 100644 --- a/docs/deployment.md +++ b/docs/deployment.md @@ -1,7 +1,8 @@ # Deployment -This page covers two things. First, how the agentic plane is deployed today. Second, what moving it to a -separate Kubernetes cluster would take. It describes the state as of 2026-10-02 (v2.0.0). +This page covers two things. First, how the agentic plane was deployed on the maintainer's host. Second, what +moving it to a separate Kubernetes cluster would take. It describes the state as of 2026-10-02 (v2.0.0), with +the stop of 2026-11-24 noted below. A scan needs none of this. `ousast scan` and `ousast pre-push` run from the Python package. Joern runs from the Docker image (see [Engine and pre-push](ops/README.md)). The plane is the maintainers' tool for @@ -17,7 +18,12 @@ This page uses two words strictly: been made.** Section B is guidance, not a record. (kind runs a Kubernetes cluster inside Docker containers on one machine.) -The kind profile runs on a 7.7 GB server VM. Observability is off by default +**The local kind cluster is stopped (2026-11-24).** The maintainer decided to stop it and to keep the code +until the plane is re-planned. It was torn down with `ops/ax/down.sh`; `ops/ax/up.sh` recreates the cluster, +and a cold bring-up has not been timed. Nothing on the product's main line used the cluster: a scan, +`ousast pre-push` and the MCP server run without it. + +The kind profile ran on a 7.7 GB server VM. Observability is off by default (`kind_observability = false` in `ops/k8s/profiles/kind.toml`). This saves the measured 930 MiB used by `otel-system`, about 40% of the cluster's 2.3 GB. The smoke Run still completes with those deployments stopped. To enable the stack, run @@ -32,7 +38,7 @@ collector endpoint and metric timing keys. On an existing cluster, `up.sh` scale observability deployments to zero, replaces the ConfigMap data and rolls its consumers when the configuration changes. Opting in restores the upstream ConfigMap and observability manifests. -## What runs where today (implemented) +## What runs where (implemented) ```mermaid flowchart LR @@ -371,10 +377,13 @@ This section answers the maintainer's questions from the code and the upstream c The decisions of 2026-10-02 set the target: **two profiles of one code base**. -- `kind` is this server VM. It stays a first-class local execution mode. Every change is proven here first. +- `kind` is this server VM. It was to be a first-class local execution mode, every change proven here first. + **Stopped 2026-11-24:** the local cluster is down and the code stays; whether the code is deleted is decided + at the plane re-plan. - `k3s` is production. (k3s is a small Kubernetes distribution.) -Everything marked **planned** is not built. The rest is what runs on this host today. +Everything marked **planned** is not built. The rest has run: the hook runs from the Python package, and the +kind profile ran on this host until 2026-11-24. ```mermaid flowchart LR @@ -501,9 +510,9 @@ Substrate ships two scaling aids: `ops/ax/up.sh` applies neither. The production profile's pool manifests and autoscaling rule are **planned**. -### The three components that are bound to the host today +### The three components that are bound to the host in the kind profile -| Component | Today (the kind profile) | Production (the k3s profile, planned) | +| Component | The kind profile (stopped 2026-11-24) | Production (the k3s profile, planned) | | --- | --- | --- | | Reconciler (`ousast plane run`, `src/openultrasast/plane/reconciler.py`) | a process on the operator's host; calls `ax` and `kubectl` against the profile's `kube_context`, holds the Run's state under `OUSAST_RESULTS` | **the reconciler stays the CLI.** An execution mode `local` or `remote`: in `remote`, the same `ousast plane run` from a laptop or a CI job submits the Run to ax-server in k3s (over the cluster's ingress or a kubeconfig), sends the start requests, then polls the store and prints the same `status` and attribution table. Credentials come from the caller's environment as today (CI secrets in a job; B.8's rule, no value in a manifest). An unattended in-cluster reconciler (a Deployment with a submit API, or a Job per Run) is a **later option**, not the first step | | Artifact receiver (`plane/egress.py`, the `Receiver` thread inside the reconciler) | reached through the Service `ousast-receiver.ax-system` whose EndpointSlice points at the kind gateway address on the host (`ops/ax/receiver-service.yaml.tmpl`) | **no receiver in remote mode.** Tasks deliver their artifacts and fetch their inputs through presigned URLs on the S3 memory store (B.5, path 3; the store's hostname enters each Task's EgressPolicy, B.7), and the CLI reads completion from the store. The kind profile keeps the receiver thread; an in-cluster receiver Deployment (B.5, path 2) is not the chosen direction | diff --git a/docs/plane.md b/docs/plane.md index a857824e..443868f1 100644 --- a/docs/plane.md +++ b/docs/plane.md @@ -11,15 +11,16 @@ Model-driven work over whole repositories runs on a separate agentic plane. The - A Task carries its own `budget: {usd, calls}`. ax is the only executor. It is google/ax, Google's controller that runs agent tasks, over Agent Substrate (its -sandboxed actor runtime). It runs in a single-node kind cluster (Kubernetes in Docker) on the maintainer's host. -There is no local subprocess path. +sandboxed actor runtime). It runs in a single-node kind cluster (Kubernetes in Docker) on the maintainer's +host. That cluster is stopped since 2026-11-24: the code stays, `ops/ax/up.sh` recreates the cluster, +and whether the executor code is deleted is decided at the plane re-plan. There is no local subprocess path. Where to read more: - Bring-up and the host's lessons are in [ax on this host](ops/ax/README.md). -- [Deployment](deployment.md) shows where each part runs today. The reconciler and the receiver run on the host. - The tasks run in gVisor (a sandboxing kernel) on Agent Substrate. It also covers what a separate Kubernetes - cluster would take (planned). +- [Deployment](deployment.md) shows where each part ran before the cluster was stopped. The reconciler and the + receiver run on the host. The tasks run in gVisor (a sandboxing kernel) on Agent Substrate. It also covers what + a separate Kubernetes cluster would take (planned). - This page draws the flow. Sources: `src/openultrasast/plane/reconciler.py`, `router.py`, `egress.py`, `runner.py`, @@ -140,7 +141,7 @@ flowchart LR ax is a Kubernetes application over Agent Substrate. Every Task runs the one runner image as an actor. Each actor occupies a whole worker. This code base targets two profiles: -- `kind` on a server VM (today). +- `kind` on a server VM. Its cluster on the maintainer's host is stopped since 2026-11-24; the code stays. - `k3s` in production (planned). There the same CLI submits Runs remotely, and the tasks deliver to the S3 store. [Production topology: ax on a Kubernetes cluster](deployment.md#production-topology-ax-on-a-kubernetes-cluster) diff --git a/ops/k8s/profiles/kind.toml b/ops/k8s/profiles/kind.toml index 58b22066..04307cd9 100644 --- a/ops/k8s/profiles/kind.toml +++ b/ops/k8s/profiles/kind.toml @@ -1,7 +1,8 @@ -# The kind profile: the plane on this server VM's single-node kind cluster, which ops/ax/up.sh creates and which is -# the development default (plane-on-kubernetes design section 1). Values only; a credential never goes here -# (keys stay in the environment or .env). Every field is overridable by OUSAST_ in the environment, a pool -# by OUSAST_POOL__. This file may name the kind cluster; the code must not (tests/test_plane_literals.py). +# The kind profile: the plane on this server VM's single-node kind cluster, which ops/ax/up.sh creates. That cluster +# is stopped since 2026-11-24 and its code stays until the plane re-plan decides whether that code is deleted +# (plane-on-kubernetes tasks, section of 2026-11-24). Values only; a credential never goes here (keys stay in +# environment or .env). Every field is overridable by OUSAST_ in the environment, a pool by +# OUSAST_POOL__. This file may name the kind cluster; the code must not (tests/test_plane_literals.py). kind_observability = false # opt in with OUSAST_KIND_OBSERVABILITY=1 exec = "local" # the reconciler runs on this host against the cluster below