mirror of
https://github.com/norandom/OpenUltraSAST.git
synced 2026-12-03 18:28:19 +00:00
The maintainer's request of 2026-11-28, in chat: update the README for an adopter
with /cobesy; move the parts on the roadmap and on technical internals to docs;
index docs/ from the README; add a roadmap visualization with the present state
and the past milestones; then give the choices for the open items through the
menu. The menu had eleven questions, each answered with the option recommended.
Two answers govern this commit. "README first": the README work is committed with
the per-commit gate and a fresh reviewer, before the record commit for 5b and
item 5c. "Fix in this commit": the faults found while moving text are fixed here,
the wording shown first.
The wording of the two fixes was shown in chat and answered "Write it as shown
(Recommended)" and "Say why, in a comment (Recommended)". A third fault offered in
that menu, "five docs pages link README anchors that do not exist", was the
session's error: they are seven links, in four pages, to five anchors of
ops/ax/README.md and ops/README.md, and all five headings exist. Nothing was
repointed. The learning is in the handover, which is not tracked, with the
maintainer's approval.
What changed. Measured in /tmp/opencode/s10_rd1_diffcheck.out: five tracked files
changed (144 insertions, 328 deletions) and three files are new.
- README.md, 488 lines at HEAD and 296 now. It keeps the install of Tier 1 and
Tier 2, the scan modes, the run artifacts and the maintainer commands. It adds
"What you can run today", "Status and roadmap" (a Mermaid ladder of R0 to R6, a
table with each step's state on 2026-11-28, a table of past milestones) and
"Documentation", a table with one row for each of the 21 pages under docs/.
- docs/roadmap.md, new, 123 lines: the destination, the ladder with what must be
true to move on, the release milestones M1a to M5, the past milestones, the
status of 2026-11-06 as the README carried it, what changed after that day, and
the rules that bind every step.
- ops/ax/engine-traces.md, new, 80 lines: the README's section "Engine traces on
kube-ax" as it stood, with "s3://..." written "s3://<bucket>" and the link to
ops/ax/README.md written as a path and a section name. docs/ops/ax/engine-traces.md,
new, includes it from its line 3, as docs/ops/ax/README.md includes
ops/ax/README.md.
- mkdocs.yml: two entries in the nav, Roadmap and Engine traces on kube-ax.
- docs/evaluation.md: one paragraph with the gate's committed baseline
(benchmarks/measurements/2026-09-06-gate-baseline.txt: recall 93.62%, 44 of 47;
false positives 0.0%), the day the README quoted it (2026-10-02, bdabb97), and
that PHP is not in the gate.
- docs/examples.md: two sentences moved from the README, on the ledger block of
manifest.json and on the MCP tool openultrasast.benchmark. The sentence that
pointed to the README's "Scan modes" now points to architecture.md.
- docs/index.md: the state line, from 2026-10-02 to 2026-11-28, in the words that
were shown.
- The README's pull line: a comment says that 2.0.1 is the last full release and
that a prerelease is tagged with its version (.github/workflows/release.yml:93-95).
Left out of the README because another page already held it, each checked by grep
before the cut and then by the reviewer: Tier 3 and Tier 4, the plane, the memory
store, the decision engine, the token economics, the detection techniques, the
framework priors, and the details of the run directory, its retention and the
ledger (docs/examples.md, docs/architecture.md). The note on the retired HarnessX
keys is in RELEASE_NOTES.md, which the README links.
Checks, in files under /tmp/opencode/ that start with their command; s10_rd1_exits.txt
is the gates script's own output, ten exit codes.
- s10_rd1_pytest_docs.out: 30 passed in the five test files that read the README,
docs and ops (test_docs_site, with the strict build;
test_removed_plane_references; test_plane_literals; test_push_explain;
test_engine_queue), run after the last edit.
- s10_rd1_pytest_ops.out: 141 passed and 3 skipped in seven test files that touch
ops/ax or the hook install.
- s10_rd1_links.out: the relative links resolve, anchors included: 41 in the
README, 5 in docs/roadmap.md, 19 in docs/index.md, 3 in docs/evaluation.md, 2
in docs/examples.md. README.md and docs/roadmap.md hold one flowchart each, of
seven nodes, by the checks of test_docs_site. No file under docs/ contains
".kiro" or "kiro-".
- s10_rd1_diffcheck.out: the new text is ASCII; git diff --check exits 0.
- s10_rd1_gates_run.out and s10_rd1_exits.txt: the gates of label rd1 give ten
zeros.
Not verified: the README's Mermaid block in a browser.
Review.
Three rounds, read-only. The old README was split into 351 sentences and each was
traced in the README, docs/, ops/ and the release notes. Round one found a lost
sentence, now in docs/examples.md, four false states in README.md and docs/roadmap.md
(Docker, M4, the proof arm, "a human go") and three wrong counts in the message; all
are corrected. Round two found the rewording of a remark false at docs/roadmap.md:14.
Round three read every number of that page: its only detection figures are the two
recall counts of the status of 2026-11-06, as the page now says. Measured in round
three: 123 lines; 41 relative links of the README resolve, and 5, 19, 3 and 2 in the
changed pages; 21 rows for 21 pages; one flowchart of seven nodes in each of README.md
and docs/roadmap.md; a strict build with no ".kiro" or "kiro-"; 11 tests passed in
the three permitted files. The counts 30, 141 and 3 and the ten gate zeros were read
in the session's files, not re-run.
81 lines
4.6 KiB
Markdown
81 lines
4.6 KiB
Markdown
# Engine traces on kube-ax
|
|
|
|
`benchmarks/learn/engine_trace.py --executor ax` submits AX v0.3.1 Tasks with
|
|
`ax apply -f -` and removes them with `ax delete task NAME`. The operator supplies
|
|
kubeconfig and AX access; the dispatcher creates no Kubernetes resources or secrets.
|
|
The `ousast-engine-task` GHCR package **must be made Public once** in its package
|
|
settings so the actors can pull it without registry credentials.
|
|
|
|
The task image contains the current engine and worker code. Rebuild it after code
|
|
changes and pass its digest with `--image`; no analyzer download is needed. The host
|
|
prepares each pin as usual and uploads source and prepared questions under
|
|
`engine-queue/<run>/<pin>/`. Only object-scoped presigned URLs and deadline parameters
|
|
enter Task env. Credentials stay on the coordinator. Configure `OUSAST_MEMORY=s3://<bucket>`
|
|
and the store credentials in the coordinator's `.env` or environment, with
|
|
`S3_ENDPOINT=https://files.because-security.com`. Presigned links expire after the
|
|
pin deadline plus ten minutes. IP and HTTP endpoints are rejected: the operator's
|
|
actor EgressPolicy must allow files.because-security.com:443.
|
|
|
|
The result object marks completion, even while AX reports Running. Failed phases and
|
|
host deadlines produce explicit failure/timeout rows. Task and staging-object cleanup
|
|
runs on success and failure; cleanup failure stops further dispatch. Per-pin files,
|
|
`--rerun-status`, resume and `progress.json` retain the existing trace-runner behavior.
|
|
AX results include `executor: "ax"`, `worker_ip`, and the image digest. Placement is
|
|
random; `--parallel` defaults to two AX tasks and cannot exceed two.
|
|
|
|
AX workers use `--heap-profile cluster` with
|
|
`-Xms1700m -Xmx1700m -XX:MaxMetaspaceSize=256m -XX:ReservedCodeCacheSize=128m -XX:MaxDirectMemorySize=256m -Xss512k -XX:ActiveProcessorCount=1 -XX:+UseG1GC`
|
|
on every frontend/query JVM; instruments record the flags. A `JVM out of memory`
|
|
result is automatically re-queued to one local Docker lane with `--heap-profile vm`
|
|
(2560m), recording `fallback: "vm-oom"` and the AX attempt. `mixed-ax` also uses this
|
|
one Docker lane for overflow, prioritizing pending OOM fallbacks. Thus a mixed run has
|
|
up to two AX tasks plus one Docker container. Use `--docker-image` for the locally
|
|
available VM image; Docker never pulls it implicitly. A STOP file prevents new
|
|
launches; interrupted fallback queues are recovered on resume.
|
|
|
|
Coordinator commands, from this worktree (the AX binary and kubeconfig remain
|
|
configurable). Build the image of the Docker lane, then set `TASK_IMAGE` to the
|
|
`ousast-engine-task` reference the Engine image workflow printed:
|
|
|
|
```bash
|
|
cd /home/mc/Source/OpenUltraSAST/.claude/worktrees/engine-ax
|
|
export PATH=/home/mc/Source/OpenUltraSAST/.venv/bin:$PATH
|
|
export PYTHONPATH="$PWD/src"
|
|
OUSAST_VERSION=engine-ax docker compose build
|
|
# The ousast-engine-task reference the Engine image workflow printed, in its log and its summary:
|
|
export TASK_IMAGE="ghcr.io/norandom/ousast-engine-task@sha256:<digest>"
|
|
```
|
|
|
|
`docker compose build` takes the base from the defaults in `docker-compose.yml`,
|
|
which a test keeps equal to `plane/task-base.digest`; `OUSAST_VERSION` sets the tag
|
|
of the image, here `openultrasast:engine-ax`. The Engine image workflow also
|
|
builds/pushes both images and prints each digest; CI needs the changes published
|
|
before dispatch. When the workflow runs is the rebuild policy in `ops/ax/README.md`,
|
|
under "Image layers, publication and node cache budget". The Docker lane runs the local
|
|
image, committed or not; the AX lanes run the task image of the revision the workflow
|
|
built.
|
|
|
|
With `KUBECONFIG` pointing to the operator's kube-ax config and store settings in
|
|
`.env`, run a one-pin smoke using the default experiment units and local example
|
|
memory (or add `--examples /path/to/frozen-examples.jsonl`). Use the `ax` binary at
|
|
`$HOME/go/bin/ax`. `$HOME/.local/ax-v0.3.1/ax` hits the AX-lane dispatch blocker:
|
|
|
|
```bash
|
|
: "${KUBECONFIG:?Set KUBECONFIG to the operator kube-ax configuration}"
|
|
python benchmarks/learn/engine_trace.py --executor ax \
|
|
--ax-bin "$HOME/go/bin/ax" --kubeconfig "$KUBECONFIG" \
|
|
--atespace default --image "$TASK_IMAGE" --docker-image openultrasast:engine-ax \
|
|
--parallel 1 --limit 1 --deadline 900 \
|
|
--out "$HOME/ousast-results/plane/engine-ax-smoke"
|
|
```
|
|
|
|
Then run the mixed lanes (repeat to resume; defaults re-run failed/timeout pins):
|
|
|
|
```bash
|
|
python benchmarks/learn/engine_trace.py --executor mixed-ax \
|
|
--ax-bin "$HOME/go/bin/ax" --kubeconfig "$KUBECONFIG" \
|
|
--atespace default --image "$TASK_IMAGE" --docker-image openultrasast:engine-ax \
|
|
--parallel 2 --deadline 900 --rerun-status failed,timeout \
|
|
--out "$HOME/ousast-results/plane/engine-ax-mixed"
|
|
```
|