Commit Graph
16 Commits
Author SHA1 Message Date
Marius Ciepluch 734ab6ab58 fix(tests): the reviewed digest of tests/test_unseen_calibrate.py follows its import path
CI on main after the push of d68280b (run 46182501224) failed six tests in the
checks job and the same six in the dagger job, all with one cause: "migrated test
successor module digest changed: tests/test_unseen_calibrate.py". Commit 55583b3
(2026-11-27) moved benchmarks/unseen/replay_entry.py to benchmarks/replay/ and
changed the import line of that test file. The file is a reviewed successor module:
tests/fixtures/detection_core/v1/consumer_terminal_evidence.json pins the digest
of its bytes. The named tests of 55583b3 did not include the migration gates.

What changed
- One line in that evidence file: the sha256 of tests/test_unseen_calibrate.py is
  now the digest of the file as it is since 55583b3. It was computed with
  review_successor_modules, the helper that tests/consumer_migration_evidence.py
  names for a human-reviewed manifest update. No entry and no other digest moved.
- Between the two digests the file changed in that one import line only: the
  diff of 55583b3^ against HEAD holds two changed lines for it
  (s10_ci1_diffcheck.out).

Checks
- s10_ci1_red.out: the four migration files at HEAD d68280b: 5 failed, 139 passed.
- s10_ci1_green.out: after the change, the nine files of the migration family:
  187 passed, 1 failed. s10_ci1_green_gate.out: tests/test_detection_core_final_gate.py
  alone, after that: 1 passed in 338 s. The one failure had a local cause that is
  not this commit's: compileall, a step of ci.yml and of the local gates, had left
  __pycache__ directories inside two fixture trees, which the source authority
  rejects as additional directories. After their removal the gate passes, and its
  own run writes none.
- s10_ci1_exits.txt: the gates with label ci1, ten zeros.
- The s10 files named above are under /tmp/opencode, outside the repository.

Not verified
- The run on GitHub after this commit.
- The seventh failure of the checks job,
  tests/test_search_probe.py::test_task_boundary_probe_executes_packaged_pairs[real]:
  it passes here (2 passed in 12 s, s10_ci1_probe_local.out), this commit does not
  touch it, and its cause on the runner is still unknown.

Review.
An independent reviewer agent read the change before this commit and approves
the tree and the message, with remarks that do not block. The only line that
differs between the two digests is tests/test_unseen_calibrate.py:82 (55583b3^
against HEAD); the new value is the sha256 of that file at HEAD and what
review_successor_modules returns. All 18 successor_modules digests match their
files, the entries are identical to HEAD, and the old digest is written
nowhere else. The eight migration files: 187 passed in 202 s; the test file
itself: 10 passed. Not run by the reviewer: the final gate, docker, CI.
2026-11-28 21:54:36 +01:00
Marius Ciepluch 4011d80c3d feat(detection-core): freeze representative V2 admission behavior 2026-11-06 16:08:41 +01:00
Marius Ciepluch 3c2f86bbc0 test(detection-core): verify bounded validation cost 2026-11-04 15:09:42 +01:00
Marius Ciepluch 62b1d90734 test(detection-core): validate end-to-end readiness paths 2026-11-04 10:53:09 +01:00
Marius Ciepluch 10e93e09b7 feat(detection-core): migrate test and operational consumers 2026-11-04 08:53:21 +01:00
Marius Ciepluch 11059c4cd4 feat(detection-core): migrate benchmark readiness and admission consumers 2026-11-03 18:37:44 +01:00
Marius Ciepluch e98d264f62 feat(detection-core): close production legacy consumers 2026-11-02 13:41:35 +01:00
Marius Ciepluch a6990e25af feat(detection-core): freeze v1 migration foundation 2026-11-02 10:23:58 +01:00
Marius Ciepluch 29030b38fc feat(access-control-prover): publish fact conformance handoff 2026-11-01 18:16:07 +01:00
Marius Ciepluch 4be22046a9 feat(detection-core): add unlike reference family conformance 2026-10-31 14:39:16 +01:00
Marius CiepluchandClaude Fable 5.1 062a7b780e refactor(p1): one source-facts module owns function ranges, callers, declaration tables and language aliases
src/openultrasast/source.py replaces the copies in semantic/functions.py,
plane/tasks/repo_facts.py, learn/features.py, learn/excerpt.py and
plane/tasks/verify.py. Two engines share one sentinel (<module>), one
DECLARATION/KEYWORDS/RESERVED set and one alias map: the parser engine
(ranges, enclosing, bounds, call_sites, callers_of, facts_for) for the
scorer, the overlay and the hunter's annotations; the line-pattern engine
(declared_functions, enclosing_at, function_span, function_bounds, the brace
matcher) that labels, features, roles, excerpts and plane facts were built
on. learn no longer imports plane.tasks. Frozen records that store the old
sentinel are mapped on read (module_function).

Gate: labels rebuilt before and after are identical, 7,921 rows, after
sentinel normalisation (benchmarks/measurements/2026-10-13-source-module-
label-diff/record.json). 490 targeted tests pass; 3,312 collect. Net: 657
lines deleted, 212 added. benchmarks/unseen keeps <global> for its own
frozen manifests.

Co-Authored-By: Claude Fable 5.1 <[email protected]>
2026-10-13 12:00:37 +02:00
Marius CiepluchandClaude Opus 5.5 0f74767db9 search-with-proof: probe harness (3.2) and agent worker (group 5)
Probe runs each oracle toy pair with a real demo and two gaming demos, records
image facts, RSS and disk, fails loudly if isolation is unavailable; dispatchable
as an AX task. Worker: reason step without tools, explore tool loop whose run tool
goes through the sandbox with a scrubbed env (model key absent), spend reserved
before each call. Host probe: 5/5 real demos demonstrated, 10/10 gaming demos
inconclusive. 89 tests.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-05 14:45:48 +02:00
Marius CiepluchandClaude Opus 5.5 742469d671 search-with-proof group 2: verifier with owned oracles and differential
The verifier, not the artefact, observes the effect: SQL, path, command and SSRF
oracles owned by the verifier (XSS needs a browser executor, else no_oracle);
artefact exit code and output ignored; immutable checkout and dependencies;
3 runs per side; one-sided build or readiness failure is inconclusive. An
isolation failure raises IsolationUnavailable instead of reading as
could_not_build (the NPROC limit now applies inside the user namespace).
35 tests, including gaming attempts and 300 host processes.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-05 14:09:48 +02:00
Marius CiepluchandClaude Opus 5.5 45d02ecf20 feat(plane): honest coverage in alerts; PHP alerts from the engine on the host
Quick mode has rules only for c/cpp, groovy, java, javascript/typescript and
python, so every PHP case's "0 alerts" read as clean. The `alerts` task now
records per language of the files read whether quick mode covers it
(derived from the bundled ruleset, not a list): coverage quick | none, with
file counts per pin, and `uncovered`. `remember` turns that into `coverage`
memory rows (a new kind; the Run passes the alerts summary.json as input),
loop-measure reports coverage per language, and improve/memory.py's M1/M2
skip a repository+pin whose coverage for the rule's language is only
`none` (counted under `coverage_none` in the proposal's excluded).

`ousast plane alerts-engine <Run.yaml> --source <frozen export>`
(plane/engine_alerts.py) does the alerts task on the host for cases whose
files include a language the engine covers but quick mode does not (PHP):
exports both pins from the case cache, runs the quick scan and the
openultrasast:dev engine container (finding_dump.py, --network none,
--memory 3g, one at a time, per-pin deadline), writes engine findings in
the alerts.jsonl row shape (rule_id engine:<family>, source engine,
in_fix_range from case.json) with a summary (files read, questions,
completed, seconds, degradations per pin), and marks the task done via
reconciler.mark_done. No result, no files read, or questions == 0 fails
loudly and leaves the run untouched. Refuses a git checkout as source.

Runner image rebuilt and re-pinned (sha256:ebb40a9a...); validation-46
regenerated (digest only). Live, recorded in
benchmarks/measurements/2026-09-30-php-engine-alerts/: froxlor 366 files,
130/130 questions per pin, 6 alerts per pin, 0 in the fix range; wp-gopay
19 files, 101/101 questions, 0 alerts. The loop: 32 run rows (coverage 8,
php=engine), 0 proposals, gate no_proposals, $0.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01EmM1j46qgKMh3zqD1QMwEo
2026-09-30 13:44:32 +02:00
Marius CiepluchandClaude Opus 5.5 52d28b5121 feat(plane): memory store (file and MinIO) and the remember task (harnessx-removal task 2)
plane/memory.py: the MemoryStore interface with FileStore (index.jsonl, facts by
content hash, repos/<host>__<owner>__<name>/<pin>.jsonl, idempotent ingest,
deterministic row ids, refusal below 1 GiB free naming the path) and MinioStore
(object metadata and tags, S3 Select pushdown probed once per process with a
logged local fallback, object version ids on every row read, versioning and
runs/ lifecycle helper, presigned URLs). OUSAST_MEMORY selects the backend;
MINIO_* settings come from .env; the minio SDK is the optional extra `minio`.

plane/tasks/remember.py: model-free rows (facts, verdict, unit_cost, alert)
from a case's artifacts; remember_run computes them on the host for a recorded
run without writing into it. reconciler.mark_done (477 lines total), seed
before and ingest after `ousast plane run`, `ousast plane remember <run>`.
The generator annotates each repo-facts Task with openultrasast.io/memory-key
(repo, pin, candidates digest, image digest) and the Run with its population
and split; plane/ regenerated.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01EmM1j46qgKMh3zqD1QMwEo
2026-09-30 11:10:28 +02:00
Marius CiepluchandClaude Opus 5.5 18b67cf942 fix(plane): ax field names verbatim; pins and bindings as stripped annotations
Requirement 1.1 (Task/Workspace/Model use only fields ax documents) and
Requirement 1.4 (no ax field repurposed) were violated: manifests accepted
metadata.namespace and a Workspace git `commit`, and the reconciler dumped
every git field into what `ax apply` receives.

Facts from ax's source (pkg/apis/v1alpha1/ax.proto, internal/workspace/setup.go):
- ObjectMeta is `name` and `atespace` (plus server-set creation_timestamp);
  no `namespace`, no `annotations`.
- GitRepo is `name`, `repo`, `branch`, `dir`, `depth`; no `commit`.
- The API server decodes with protojson.UnmarshalOptions{}: an unknown field
  is an error at `ax apply` (confirmed on the live cluster: a rendered
  Workspace+Model applied cleanly; the same Workspace with `commit` was
  refused with `unknown field "commit"`).
- ValidateModel checks only metadata; any spec.provider string is accepted.

Changes:
- manifests: metadata takes `name`, `atespace`, `annotations` (our extension,
  never sent to ax); git entries take exactly ax's five fields (depth int);
  `commit` in spec.git is rejected with a pointer to the new Workspace
  annotation `openultrasast.io/git-commits: "<git name>=<40-hex>,..."`,
  validated for unknown git names and non-hex shas.
- reconciler: rendered docs carry only ax fields; each bound Workspace's pins
  reach the Task as env OUSAST_GIT_PINS = {"<workspace>/<git name>": "<sha>"}.
  A test walks every rendered doc against ax's field lists.
- runner: pins come from OUSAST_GIT_PINS; git is fetched as setup.go does
  (init/remote/fetch with --depth when depth > 0/checkout FETCH_HEAD, default
  branch main, cloneDestination's dir and placeholder-name rules), then the
  pin is checked out. A pinned entry without a branch fetches the commit.
- workspaces: emits the annotation, `dir: repo` and `depth: 1` instead of
  `commit`, so generated case workspaces keep <path>/repo at depth 1.
- design.md: ax field names verbatim; pins and model binding as stripped
  openultrasast.io/* annotations carried to the task by env.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01EmM1j46qgKMh3zqD1QMwEo
2026-09-29 18:36:29 +02:00