Commit Graph
13 Commits
Author SHA1 Message Date
Marius Ciepluch c10dc11a43 docs(readme): a system map above the documentation index; open parts link docs to the roadmap
The maintainer's request of 2026-11-28, in chat, after 6ef8381: use Archify to map the
system and add the map to the README, before the index that links each part to its
documentation; say which parts to document and which open parts the documentation
should link into the roadmap. Two menus followed, each answered with the option
recommended. Menu 3: all fourteen parts, in four groups; all nine open parts, listed
on the roadmap page and linked from the seven pages that describe them; a static SVG
in the README, the interactive HTML left out of the repository; the open parts show
the states as the records hold them today, not the decisions of the earlier menu.
Menu 4: the wording of the section and of the seven sentences, and the caption of the
image, each "Write it as shown (Recommended)".

Four places differ from that wording, each on a finding of the reviewer. The two
cells follow the answer that the section show the states as the records hold them
today: the row on graph reuse says "Not scheduled; no step owns it" where the wording
said R5, and the row on the proof arm says "R4, if it needs it" where it said R4.
The pre-push page gained a sentence in front of its link: "No pre-push capability is
admitted yet." And the box of the proof arm in the map names "Use case", the page
that describes the arm, where it named "Where we stand".

What changed. Measured in /tmp/opencode/s10_rd2_diffcheck.out and s10_rd2_svg.out:
nine tracked files changed (39 insertions, 4 deletions) and one file is new.
- docs/system-map.svg, new: 225,027 bytes, 922 by 936, exported by Archify 3.3.2
  from its checked HTML (four gates passed, no crossover). Fourteen components in
  four groups: what you call, inside a scan, maintainers only, how detection is
  measured. The second line of each component names its page in short. The
  candidate cites forty source ranges, read at 6ef8381. The labels are text. The
  file is ASCII: the exporter's hover titles hold a middle dot, replaced by a
  hyphen. It holds no digit in its text, no ".kiro", no "kiro-", and none of the
  five patterns that test_plane_literals forbids under docs.
- README.md, 301 lines: the image and one caption at the top of "Documentation",
  before the site paragraph and the table.
- docs/roadmap.md, 140 lines: a section "Open parts" before "Rules at every step",
  nine rows: the open part, its state today, the page that describes it, and the
  step that closes it. The words "on synthetic review batches" in the first row
  are the handover's, which is not tracked; the reviewer found them consistent
  with commits 825e680, 6d66501 and c2b5f5b.
- Seven pages, one linking sentence each, with a link to that section:
  docs/evaluation.md, docs/pre-push-for-developers.md,
  docs/detection-techniques.md, docs/architecture.md,
  docs/use-case-fix-and-reverify.md, docs/deployment.md and
  docs/decision-engine.md.

The map was drawn by a subagent with the Archify skill, from a list of fourteen
parts and fifteen relationships; it attached the sources. It was corrected twice,
after its reports and my reading of the captures. The arrow between the report and
the plane pointed from the report to the plane, which suggests that a scan sends
something to the plane. It now runs from the plane to the quick rules, "runs the
quick scan on both pins", on the call in src/openultrasast/plane/tasks/alerts.py
(lines 117 to 168, cited on the caller). The legend's "Frontend" became
"Entry point". Two arrows simplify the code, as the subagent reported: the overlay
asks the engine for a flow and merges it, and the engine's answers are graded on
the evidence ladder. I inspected the captures at 900 pixels: light and dark of the
first delivery, and light of the second and of the third; the third differs from the
second in one second line. The labels read. The title of the second group sits at
the top middle of its frame, above the arrow labelled "standard".

Checks, in files under /tmp/opencode/ that start with their command.
- s10_rd2_pytest_docs.out: 30 passed in the five test files that read the README,
  docs and ops, with the strict build, run after the last edit.
- s10_rd2_site.out: a strict build to /tmp/opencode/site-rd2-check copies the SVG
  into the site, and no page of that site contains ".kiro" or "kiro-".
- s10_rd2_links.out (script s10_rd2_links.py): the relative links resolve, anchors
  included: 42 in the README, 14 in docs/roadmap.md. The script names three
  anchors of docs/deployment.md that it cannot find; they lead into the pages that
  include ops/ax/README.md and ops/README.md, and the strict build accepts them.
- s10_rd2_svg.out: the size, the viewBox, 49 lines with a text element, and the
  counts above.
- s10_rd2_diffcheck.out: the added text is ASCII; git diff --check exits 0.
- s10_rd2_gates_run.out and s10_rd2_exits.txt: the gates of label rd2 give ten
  zeros. They ran before the last edits, which touch documentation only.
Not verified: the image through GitHub's proxy; the switch to the light theme was
seen in headless Chromium only. Not in the repository: the interactive HTML and the
candidate, which stay under /tmp/opencode/archify-system-map/.

Review.
Three rounds. Round one blocked on two points; rounds two and three checked the fixes and the
message. The graph reuse row (docs/roadmap.md:121) now says "Not scheduled; no step owns it",
as the records say; the Proof arm box of docs/system-map.svg names "Use case", the page that
describes the arm; the pre-push page gained a sentence in front of its link; the proof arm row
reads "R4, if it needs it" (roadmap.md:122). Round three found the tree as in round two: the
nine blobs and the SVG are those I approved. Measured: 225,027 bytes, 922 by 936, 49 text
lines, 14 boxes, 15 arrows (11 labelled), ASCII, no digit, none of the five patterns; 40 source
ranges inside files at 6ef8381; 42 and 14 relative links; six anchors in a strict build of my
own; 11 tests passed, again in round three; the captures of the three deliveries read at 900
pixels. Remark: line 88 of the pre-push page is 131 columns wide and line 89 is 91; the
page's other lines stop at 84.
2026-11-28 17:48:16 +01:00
Marius Ciepluch c5ec9a11d1 docs(independent): list population v4 among the independent populations
Population v4 (11 cases: 4 PHP with JavaScript, 4 TypeScript, 3 Python) was frozen on 2026-11-23 and is unscanned. The docs and steering that enumerate populations v1, v2 and v3-php now name it, with no result claimed.
2026-11-23 18:51:37 +01:00
Marius CiepluchandClaude Opus 5.5 6d9850578e learn: dry-run estimate from measured cached-response cost; docs: exp-004 result; tidy instrument check
The estimator priced all input at the full rate (\$5.58 estimated vs \$1.24
spent); it now uses the family mean billed cost of cached responses when usage
is recorded. Implemented with Codex.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-03 14:23:36 +02:00
Marius CiepluchandClaude Opus 5.5 8d14b0c13f learn: experiment fill -- fill a rule experiment's response cache with a hard ceiling, dry-run estimate
Implemented with Codex; review fix: the bounded client keeps the configured
thinking setting so a fill answers as the run would.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-03 12:35:27 +02:00
Marius CiepluchandClaude Opus 5.5 da91ef0dd9 exp-003: supplementary all-units replay after the cache fill; exp-004 registered
Supplementary analysis, not a new decision: exp-003's verdict stands.
The 142 units excluded for an uncached response were filled with the same
six incumbent programs, parameters and request keys, on exp-003's
937-example memory (the harvest's 196 rows and its 2026-10-03 embeddings
left out; a zero-cost replay first reproduced exp-003 exactly: 211
decided, 1056 replayed, $0.582876). Fill: MeteredClient, ceiling $0.99
under the approved $1.00, 697 client calls, $0.331759, no provider error.

Replay on all 353 units (244 paired, 146 groups): 0 client calls, $0.0,
1768 responses replayed; no arm flags any unit, the registered rule reads
inconclusive. Calibration holds only for untrusted destination (ECE
0.0454) and arm A still finds no BLOCK point there.
benchmarks/experiments/exp-003-precision-bound-blocking/result-complete-cache.json

exp-004 registered in s3://sast-memory (manifest 87fceb65..., pin
2ad9c1d, units pending): benchmarks/experiments/exp-004-pooled-block-gate/
registration.json. docs/decision-engine.md: both, briefly.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01EmM1j46qgKMh3zqD1QMwEo
2026-10-03 09:47:20 +02:00
Marius CiepluchandClaude Opus 5.5 b31c85678f exp-003: result -- inconclusive, no BLOCK rule flags a held-out unit
Zero-cost replay of the six slice-2 programs: meter 0 client calls, $0.0;
211 of 353 units scored, 142 excluded for an uncached response (path lost
all 39). Arm A (calibrated) fails calibration (ECE 0.077 access control,
0.1067 injection); arm B (Wilson LB >= 0.95, nested) chooses no threshold on
any fold, as the registration's power note predicted (73 clean flags needed,
38 paired injection positives); secondary arm C flags nothing either. The
instrument check shows real scores; the zero is the rule's.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01EmM1j46qgKMh3zqD1QMwEo
2026-10-03 08:15:22 +02:00
Marius CiepluchandClaude Opus 5.5 352f8c07aa docs: plain-language pass -- detection techniques, architecture, evaluation, decision engine
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01EmM1j46qgKMh3zqD1QMwEo
2026-10-02 21:03:24 +02:00
Marius CiepluchandClaude Fable 5.1 6b12546531 docs: where we stand -- capability, approach, ax integration, token economics, open items
One page, docs/where-we-stand.md, composed with the COBESY composition method (governing idea,
SCQA opener, MECE sections): the M4 gates and the state against them, the detection approach step
by step, ax on the server, token economics before and after, and the open items. Every figure is
quoted from a committed record whose path stands next to it.

decision-engine.md, evaluation.md and token-ergonomics.md link to the page where they repeated its
content (detail tables kept); decision-engine.md's Experiments section now records exp-002's
result instead of saying it has not run. Linked from the nav, the index and the README.

Co-Authored-By: Claude Fable 5.1 <[email protected]>
Claude-Session: https://claude.ai/code/session_01EmM1j46qgKMh3zqD1QMwEo
2026-10-02 19:18:54 +02:00
Marius CiepluchandClaude Fable 5.1 4c8c3ce1c4 merge(learn): A/B experiment runner; exp-001 and exp-002 registered (decision-engine task 7)
Co-Authored-By: Claude Fable 5.1 <[email protected]>
Claude-Session: https://claude.ai/code/session_01EmM1j46qgKMh3zqD1QMwEo
2026-10-02 16:37:57 +02:00
Marius CiepluchandClaude Fable 5.1 fbc3220bbe feat(learn): A/B experiment runner -- registered manifests, paired arms, bootstrap and McNemar (decision-engine task 7)
learn/experiments.py: YAML manifests under plane/experiments/<id>.yaml,
digest-checked at register, run and analyse time; `experiment`,
`arm_outcome` and `experiment_result` rows; paired arms in a seeded
repository order with a per-unit coin; arm A replay-only at $0; canary
replicates under a fresh cache salt; repository-cluster paired bootstrap,
exact McNemar, two O'Brien-Fleming looks, adopt/reject/equivalent/
inconclusive. `ousast learn experiment register|units|run|analyse`.
Program: `ProgramSpec.sampling = retrieval_ensemble` (k samples at
temperature 0 over k disjoint retrieved example sets; default unchanged);
`Caller.salt`; `retrieve(exclude=)`. verify: OUSAST_VERIFY_CALLERS=off.
Manifests exp-001-known-callers (plane arms, units pending) and
exp-002-retrieval-ensemble (slice-2 incumbents, ceiling $4) -- not run.
18 scripted tests; module audit regenerated (151 modules).

Co-Authored-By: Claude Fable 5.1 <[email protected]>
Claude-Session: https://claude.ai/code/session_01EmM1j46qgKMh3zqD1QMwEo
2026-10-02 16:04:33 +02:00
Marius CiepluchandClaude Fable 5.1 5aac7eac36 docs: audit against v2.0.0; deployment guide (local ax and a separate Kubernetes cluster)
Every README and docs page checked against ousast --help, the code and the committed records. New docs/deployment.md (in the nav): what runs where today, this host's setup (up.sh, doctor, smoke Run, footprint), step-by-step guidance for a separate Kubernetes cluster with implemented vs planned stated per item (no cluster deployment has been made; kube context and doctor's registry check are hard-coded in doctor.py, egress.py, router.py), and what the plane/ manifests need changed. Decision-engine pages state slice 2 (six families, pooled and within-pair AUC, BLOCK offered nowhere, canary below 0.9 for three families, positives-only inflation) and that the engine is not adopted; exp-002 registered, not run, no result quoted. Fixed: model/judge.py reference (now model/pipeline.py), missing-key behaviour, .env reference (OPENROUTER_EMBEDDING_MODEL, store variables), docs extra, plane memory-normalise and ousast index listed, ax README's cluster table made precise. RELEASE_NOTES gets an Unreleased entry.

Co-Authored-By: Claude Fable 5.1 <[email protected]>
Claude-Session: https://claude.ai/code/session_01EmM1j46qgKMh3zqD1QMwEo
2026-10-02 16:03:46 +02:00
Marius CiepluchandClaude Opus 5.5 95a252b89b docs: MkDocs site with flow diagrams; RustFS permissions
Material for MkDocs site (mkdocs.yml, optional extra `docs`) with Mermaid via
the superfences custom fence. New pages: overview, scanning (modes, quick
rules, Joern engine, priors, pre-push delta), the plane on ax (one task as a
sequence, golden snapshot, Run DAGs), memory (row kinds, write/read paths,
FileStore vs S3, verify at startup), memory and detection, and RustFS setup
(admin steps, complete agent policy, .env, refusal messages, Select limit).
The ops READMEs are included at build time; evaluation gains the population
lifecycle and the fold layout. tests/test_docs_site.py runs the strict build
when mkdocs is importable and checks Mermaid blocks and the RustFS page.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01EmM1j46qgKMh3zqD1QMwEo
2026-10-02 08:17:40 +02:00
Marius CiepluchandClaude Opus 5.5 32a2cb8bcf docs: describe the system as of 2026-10-02 (ax plane, AI decision engine, PHP, v3)
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01EmM1j46qgKMh3zqD1QMwEo
2026-10-02 07:08:44 +02:00