mirror of
https://github.com/norandom/OpenUltraSAST.git
synced 2026-12-03 10:18:18 +00:00
7ecd60ec4ed8e82a5ae84a6c1f747e70638f31c5
784
Commits
| Author | SHA1 | Message | Date | |
|---|---|---|---|---|
|
|
f756099c9d |
fix(search-with-proof): a chromium failure names the first line of its output, where its cause is
The CI run on |
||
|
|
1721b58f93 |
test(search-with-proof): the probe test prints its whole record when the status is not ok
The CI run on |
||
|
|
734ab6ab58 |
fix(tests): the reviewed digest of tests/test_unseen_calibrate.py follows its import path
CI on main after the push of |
||
|
|
e2163a4fea |
feat(scan): an unwritable tree keeps a scan's learnings under the runs directory (item 5b)
The decision of the maintainer on the ninth session's menu, answer 9 (.kiro/handover.md,
untracked, 1340-1343 as it stood on 2026-11-27; the option as offered, 1451-1452):
> 9. The ledger in the image. Answer: "Decide the key now": a digest of the tree's files
> (the `fingerprint` of the `provenance` stage is no digest), one ledger per digest under
> the runs directory; a design note is shown to the maintainer before any code.
The design note (/tmp/opencode/s10_c10_design_note.md, 299 lines) was reviewed in five
rounds before it was shown, and shown to the maintainer whole on 2026-11-27 with its three
questions. The maintainer's answers came on 2026-11-28, through the question tool, each the
recommended option as offered: "Stand as written (Recommended)" on the note's rule of reading
and writing (its section 3.3), "With the runs, by last use (Recommended)" on how long a ledger
stays (section 3.5), and "Build it now (Recommended)". The dated note on task 3.1 of
.kiro/specs/contributor-scan/tasks.md (lines 459-502) carries the rule as approved.
The fault: the image mounts the target read-only, so the ledger a scan writes into the tree
(<target>/.openultrasast/calibration/false_positive_learnings.json) cannot be written there,
the scan records ledger_not_written, and the next scan in the image starts without the
learnings of the one before.
What changed
- src/openultrasast/tree_digest.py: tree_digest(target, runs_directory) (line 48), a sha256
over one entry per file in path order (the length of the path, a colon, the path, a tab,
the sha256 of the bytes), after a version line. Left out: links, the directories a scan
ignores (IGNORED_DIRS, so that the tree's ledger does not change its own key) and the runs
directory, whichever way it is reached (by device and inode). A file that cannot be read
and a directory that cannot be listed are named "unreadable"; a directory that can be
listed but not searched raises, as the scan's own reading of the tree does.
- src/openultrasast/digest_ledger.py: the ledger of a digest, calibration/<digest>.json under
the runs directory, in the JSON of the tree's ledger. read_digest_ledger (line 47) reads it
and marks it as used; settle_digest_ledger (line 65) applies the rule.
The tree took the write: the ledger is removed. The tree refused: the ledger is written
with its own entries and this scan's new ones, never one whose finding id the tree's
ledger has, only when that differs from its content, and removed when that would leave it
empty. No write: a ledger whose every entry the tree's ledger also has is removed. One that
could not be read (a file that is not a ledger, whatever its top level or its depth) is
taken for empty and goes, unless the tree refused and this scan wrote it. It is written
through a temporary file of the writer's own and a rename (line 112).
- src/openultrasast/cli.py: the stage tree_digest, before any stage reads the tree
(cli.py:603-605); _read_ledgers (cli.py:1085-1099), the tree's ledger and then the
digest's, the tree's entry winning by finding id; _persist_calibration_feedback
(cli.py:1101-1136), which writes the tree's ledger when its content would differ from what
it held, also when only the digest's entries are new to it; the manifest's ledger block
(cli.py:731-735); a notice when the digest's ledger could not be written or removed
(cli.py:755).
- src/openultrasast/run.py: prune_expired_ledgers (run.py:112), called by prune_scan_runs
(run.py:71-99). Under calibration/ of the same two locations as the runs, a ledger, or the
temporary file it was written through, last used OPENULTRASAST_RUNS_RETENTION_DAYS days
ago is removed; 0 keeps all. Files called something else, links and directories stay. A
removal that fails is said once and costs the scan nothing.
- src/openultrasast/reports.py: write_manifest takes ledger (reports.py:212, 254-255). The
ledger_not_written sentence names the digest's ledger when it holds the learnings
(reports.py:461-467, chosen at 479-483).
- README.md, docs/examples.md, docs/architecture.md and
.agents/skills/openultrasast-scan/SKILL.md say where the learnings of a read-only tree go,
and what removes them.
Two departures from recorded decisions, both put to the maintainer in the note and accepted
with it:
- The tree's ledger is written when a scan learns nothing new, because the digest's entries
are new to it. The decision of 2026-11-24 says it "is written only when a scan learns
something" (spec.json:68).
- A ledger of a digest is removed when it expires, and its time is changed when a scan reads
it. The decision of 2026-11-24 says "the scan's own run and anything not named like a run
are never touched" (spec.json:73), and dates a run by its id, where a ledger is dated by
its use.
Measured
- The built function gives the note's prototype's digest for the four-file subject
(915506a8...) and for libpng's copy (1dcd664f...): s10_c10_port.out.
- In the image, on the final code. A probe image of openultrasast:dev (3f959b31f2f2) with
the tree's package copied over it, built at 09:06:36Z and holding the tree's 297 .py files
(s10_c10_image_probe/03_probe_sources.out, s10_c10_sources_still_equal4.out). Standard
mode, no key, network none. The four C files of contrib/examples of libpng and their
README, copied fresh and mounted read-only at /target; a scratch runs directory mounted at
/reports with the wrapper's OPENULTRASAST_RUNS_DIR=/reports (s10_c10_image_probe.sh,
stamps 09:06:36Z to 09:09:14Z, 2026-11-28).
- The first scan learns four entries and keeps them in /reports/calibration/<digest>.json:
calibrations_applied=0, project_score 26, the manifest's ledger {digest_ledger: written,
learnings_read: {digest: 0, tree: 0}} (10_, 11_). The report names the file.
- The second scan of the same bytes reads them: calibrations_applied=2 on two files,
project_score 59, penalty_total 32.0, learnings_read 4 from the digest's ledger,
digest_ledger "left as it was" (20_, 21_). The file's time is that of the second scan's
read, 09:07:19Z (22_).
- The digest the scan took in the image equals the one taken on the host for the same
files (s10_c10_image_digest_host4.out). The target is unchanged
(s10_c10_image_target_same4.out).
- Three earlier runs of this probe and of the native run below, each on the code as it
stood before a later correction of the same rule (the value for a ledger that could not
be read; a ledger whose top level is not an object; one nested too deep), gave the same
numbers. Their stamps: 08:12:50Z to 08:17:31Z, 08:23:38Z to 08:27:42Z and 08:50:15Z to
08:54:17Z. They are kept as s10_c10_image_probe_run1, _run2, s10_c10_native_run1,
_run2 and _run3; of the third image run s10_c10_image_probe_run3.out and the host,
target and sources checks numbered 3 remain, since s10_c10_image_probe_run3 is empty.
Its files were read by the reviewer in round two.
- The shipped image, the control, on the same files: calibrations_applied=0 and
project_score 26 on both scans, no ledger block and no ledger (30_ to 42_).
- Natively, on a fresh copy of the same five files, the network off (s10_c10_native.sh,
09:09:14Z to 09:10:38Z): the first scan writes the tree's ledger (calibrations_applied=0,
project_score 26, digest_ledger none), the second reads it (calibrations_applied=2,
project_score 59, learnings_read 4 from the tree's ledger), and no ledger of a digest is
made (s10_c10_native/10_ to 22_).
- The probe left no container (2 before, 2 after: 00_, 91_) and its image is removed (90_,
92_).
Tests
- tests/test_tree_digest.py (7) and tests/test_digest_ledger.py (11, one over nine contents
a file may hold); seven tests in tests/test_scan_output_location.py, six through the scan
(three over two cases) and one on _read_ledgers; six in tests/test_run_pruning.py; one
sentence in tests/test_reports.py. The scan test of a refused write selects its run by
name now, since the runs directory holds calibration/ as well.
- RED on an archive of
|
||
|
|
efa311a112 |
fix(shell): the wrapper passes the retention days into the image (item 5b)
The maintainer's second decision on answer 7, taken on 2026-11-27 while the scan path change ( |
||
|
|
312c09bdbf |
fix(scan): a scan in the image prunes the wrapper's runs directory too (item 5b)
The maintainer's answer 7 of 2026-11-27 (the ninth session's menu). The label is in .kiro/specs/contributor-scan/spec.json ( |
||
|
|
d8b4cac023 |
fix(shell): the wrapper says so when it cannot make its runs directory (item 5b)
The maintainer's answer 4 of 2026-11-27, "Guard it" (.kiro/handover.md:1409-1413), as
offered: "a clear message when HOME is unset, and a failed mkdir stops the wrapper
with exit 1; a test first." The fault it answers, in the same words: "With HOME unset
the wrapper now fails ($HOME/.cache becomes /.cache), where it wrote ./.ousast
before; a failed mkdir is not checked, as before."
What changed
- ops/shell/ousast.sh, the container path: the wrapper returns 1 with "ousast: HOME is
not set, so there is no ~/.cache/openultrasast/runs to write the runs to" when HOME
is unset or empty, and with "ousast: cannot create <runs>, where the runs are
written" when mkdir -p fails (mkdir's own line comes first).
- The two lines that set `runs` and ran mkdir -p moved up to that place, from after the
build. The placement is the session's reading of "stops the wrapper": a cold build
pulls ~2 GB, and a run that cannot write its runs should say so before it waits.
- The native path names no HOME and is not touched.
Tests (tests/test_shell_wrapper.py)
- test_the_container_path_stops_when_home_is_not_set: exit 1, that one line on
stderr, nothing on stdout, so neither the build nor the container is started.
- test_a_runs_directory_that_cannot_be_made_stops_the_wrapper: a file where
$HOME/.cache should be; exit 1, the wrapper's line last on stderr, nothing on stdout.
- The helper `ousast` takes `without_home`. The docker stub answers `image inspect`
with exit 1, so the wrapper takes its build branch in each test that reaches the
build (the second and the third); before that, "nothing on stdout" said nothing
about the build.
- RED, on an archive of HEAD with the final test file (s10_c4_red5.out): 2 failed, 3
passed, each `assert 0 == 1`. For the reason of the fault: the wrapper builds, mkdir
is refused ("/.cache: Permission denied", run as uid 1000) or fails ("Not a
directory"), the wrapper goes on to the container (with reports=/.cache/... when
HOME is unset), and the exit status is 0.
- GREEN, on the working tree (s10_c4_green5.out): 5 passed.
- A mutant with the guard behind the build fails both new tests on the build's line
(/tmp/opencode/s10_c4_mutant.py, output s10_c4_mut.out), so the tests pin the
placement; with another shebang in STUB it fails the same way (s10_c4_nopin.out).
- Gates (s10_c4e_exits.txt): ten zeros; the three gate outputs equal the baseline's.
Measured outside the stubs (/tmp/opencode/s10_c4_probe.sh, output s10_c4_probe.out):
real bash on this machine, the native path switched off so that no probe can scan.
HOME unset, HOME empty, and bash under set -u with HOME unset each print the one line
and exit 1; a file at $HOME/.cache prints mkdir's line, then the wrapper's, exit 1.
By reading, not measured
- zsh can source the wrapper as well. The block uses `[ -z "${HOME:-}" ]`, `local`,
`if ! mkdir -p`, `echo ... >&2` and `return 1`; zsh is not installed here, so no
probe ran.
- A run as root with HOME unset had another shape on HEAD: mkdir -p /.cache succeeds
there, so the runs went to the filesystem root with no error. The guard closes it
the same way. This session's runs are as uid 1000.
Found and not fixed, for the maintainer
- The helper's second parameter is `executables`. The third test passes "scan" there
(tests/test_shell_wrapper.py:65, HEAD:63), which makes four stubs named s, c, a and
n beside docker's. Nothing calls them. The new tests pass an empty tuple.
- A runs directory that exists but cannot be written to passes the guard: mkdir -p
exits 0 on it (s10_c4_readonly_runs.out), and the wrapper goes on to docker. The
decision says "a failed mkdir".
- The container path reads $HOME/.cache alone and ignores XDG_CACHE_HOME, which the
native path honours (src/openultrasast/config.py:198-203); README.md:189-190 and
docs/examples.md:3-5 state the rule for every run. From before this commit.
- ops/shell/ousast.ps1:44-45 has the same shape, a New-Item whose result is not
checked, after the build. Read, not run: pwsh is not installed.
- The wrapper's message for an unset HOME (ops/shell/ousast.sh:53) describes the
container path, which reads $HOME alone. Without HOME, Python's Path.home() and
bash's `~` still give /home/mc on this machine (s10_c4_pathhome.out), and a native
scan's default runs directory comes from the former unless XDG_CACHE_HOME is set to
an absolute path (src/openultrasast/config.py:198-203 and :216-226). As decided.
Review
- Review: four rounds against
|
||
|
|
739688730f |
fix(push): the background child is started with -P, as the wrapper is (item 5b)
The maintainer's answer of 2026-11-27 to question 3 of the ninth session's menu, "Add -P there too", as offered: one line, a test first, a reviewer. src/openultrasast/push/background.py starts the detached replay of `ousast pre-push --engine background` with the interpreter, -m and openultrasast.cli, from the pushed repository. With -m alone the working directory is first on the interpreter's path, so a file of the pushed repository could stand in for a module the CLI imports. The wrapper's native path had the same fault and was fixed with -P in a6e8e26; the reviewer of that commit found this one and it was left alone. The child is now started with -P, which keeps that directory off the path. The flag needs Python 3.11, the project's floor (pyproject.toml). Measured by the new test, with a real child process: tests/test_push_background.py puts a json.py that exits into the pushed repository and starts the child. On a git archive of HEAD the child's log is "SHADOW-EXECUTED" and its artifact is never written (s10_c3_red2.out). With the change the artifact is written and the log does not hold that line, on this host's default PATH, where Joern is not found (the child ends in about 1 s), and with Joern 4.0.625 and its JavaScript frontend on PATH, where the child uses its whole deadline (s10_c3_green2.out, s10_c3_green3.out). The five push test files give 106 passed. ruff, mypy, the three gates and compileall pass, and the gates print what they printed before (s10_c3b_exits.txt). `git diff --check` exits 0. No whole-suite run: that is step 9. An independent reviewer blocked the first round on the test: its wait equalled the child's deadline, so it was red on a host where the engine can build a JavaScript graph (1 failed, 4 passed). The child's deadline is now 5 s. The second round approved the final diff. Found and not fixed, for the maintainer: - The container path has the fault too, by one probe. docker-compose.yml:37 sets the working directory to /work, and the wrapper's own comment (ops/shell/ousast.sh:13-16 and :34-35) says the container runs in the caller's directory. On the local openultrasast:dev image 3f959b31f2f2, network none, a tree that holds such a json.py mounted at /work: the image's own entrypoint (Dockerfile:46, python -m openultrasast.cli) prints SHADOW-EXECUTED for --help and exits 1; the same tree with -P prints the usage (s10_c3_container_probe.out). The wrapper and compose were not run, and the published image was not probed. - ops/ax/smoke-run.sh:9 and :12, ops/ax/up.sh:14 and ops/ax/probe-placement.sh:16 run this checkout's code with -m and without -P, in the caller's directory (by reading): the CLI at smoke-run.sh:12, openultrasast.plane.profile at the other three. - src/openultrasast/plane/runner.py:678 starts a task's module with -m from the task's first workspace (by reading). Whether a file of that workspace can stand in for a module the task imports was not measured. - The two launches in src/openultrasast/search/demo.py use -I, which keeps the directory off the path. |
||
|
|
f6b1406541 |
fix(model): a failed judge call is recorded and ends the asking (item 5b)
The maintainer's answer of 2026-11-27 to question 2 of the ninth session's menu, "Record and stop
asking", as offered: "a failed judge call adds a degradation to the manifest, with the count; the
report says those questions went unasked; after one transport failure the remaining questions are
not asked." Measured by the ninth session: with a key in the environment and no network, 16 judge
calls failed in one scan of a four-file subject, three attempts each, and each dropped its claim
as a "no" would (model/pipeline.py); the manifest counted model_calls 16 and recorded no failure,
and the report said less than that of a run without an endpoint.
What changed:
- model/scan.py, `_CountingClient`: a call that raises is counted in `failed` and ends the asking.
The calls left in the question being put are refused without reaching the client (`refused`),
and the driver withholds the judge from every question after it, as it does when the budget runs
out. An answer with no decision in it (empty, not JSON, no boolean `vulnerable`) is counted in
`failed` as well and does not end the asking. The graph still arbitrates every region.
- Two degradations, each with a sentence under "What could not be analysed" (reports.py) and a
line in the scan skill's list:
- `judge_calls_failed`, `count`: the judge calls that gave no decision.
- `judge_withheld`, `questions`: the judge calls refused after the failure in the question
being put. Of the questions after it the report says that none was put to the judge; they are
not counted, because some of them would have put nothing to the judge.
- model/pipeline.py: the parsing half of `_ask` is moved as it was into `judge_decision`, so the
driver reads a decision the way `_ask` does. `_ask` returns what it returned.
- The claim of every such question is still dropped, as before: "Keep the claim" was not chosen.
The session's two readings of the decision, open to correction:
- A transport failure is read as a judge call that raised, whatever the exception. The transport
has already made its three attempts for what is transient (provider/openrouter.py), so one
raised call ends the asking for the whole scan. That holds for a connection failure and for a
timeout, and also for a request the endpoint refuses with an error status, where the transport
makes one attempt: there the scan withholds every later question, where before it dropped that
claim alone and went on. The judge_withheld line says so in the report.
- A failed judge call is read as a call that raised or a call whose answer gave no decision. Both
are counted.
Measured on fresh copies of the four C files the ninth session used, with a placeholder key and
the network off (the scratch is /tmp/opencode/s10_c2_* and is not kept):
- Native, in a network namespace without routes: one "judge call failed" line, file_targets=4,
findings=15, exit 0, 45 s (s10_c2_native_key3.out). The ninth session's run of the same bytes:
16 lines, 68 s.
- In a probe image built from openultrasast:dev 3f959b31f2f2 with src copied over, network none:
one line, file_targets=4, findings=15, exit 0, 43 s (s10_c2_image_key3.out). The ninth
session's run: 16 lines, 65 s. The probe image is removed.
- Both manifests: model_calls 1, judge_calls_failed with count 1, judge_withheld with questions
7; report.md carries the two sentences (s10_c2_native_inspect3.out, s10_c2_image_inspect3.out).
The findings are the 15 the ninth session recorded with a key and without one.
Tests, one at a time, each red before its code:
- test_a_judge_that_cannot_be_reached_is_recorded_and_asked_no_further: on a git archive of
HEAD, assert 120 == 1; after, one call, model_calls 1, ten regions arbitrated, the two
degradations with count 1 and questions 5.
- test_a_judge_answer_with_no_decision_in_it_is_counted_and_the_rest_are_still_asked: red with
no degradation; after, count 120 and no judge_withheld.
- test_a_failed_judge_call_is_reported_as_unasked_and_not_as_a_no: red with the two bare
reasons; after, the two sentences. The three red runs, with the package imported from the
archive, are in s10_c2_red8.out: 3 failed, 1 passed.
- GREEN: 657 passed over the 39 test files that name degradations, scan_repository, model_calls
or write_markdown_report (s10_c2_green9.out); 214 passed over ten model, report and skill files
(s10_c2_green8.out). ruff, mypy, the three gates and compileall pass, and the gates print what
they printed before (s10_c2c_exits.txt). `git diff --check` exits 0. No whole-suite run: that is
step 9.
- The review took three rounds on one reviewer. Round one approved a first shape that counted the
withheld regions, and remarked that a region with several families was counted as withheld while
its first family had been put to the judge; its other remarks changed the second sentence,
`__all__` and a docstring. Round two blocked the sum that replaced that count: it added judge
calls to region-and-family questions under one name. The count is of judge calls now. Round
three approved this diff, on the condition that this message carry the measured numbers.
By reading, not measured: a pre-push run makes no judge call (push/runner.py and push/policy.py
pass no client and an execution budget), so the two reasons cannot arise there.
Found and not fixed, for the maintainer:
- .agents/skills/openultrasast-scan/SKILL.md:68-70 and docs/where-we-stand.md:349-350 say that
`learning_endpoint_unavailable` has no line in report.md. It has had one since
|
||
|
|
55583b34c3 |
fix(images): the replay entry leaves benchmarks/unseen, so the replay stage builds (item 5b)
The maintainer's answer of 2026-11-27 to question 1 of the ninth session's menu, "Move the file, fix now": the script leaves benchmarks/unseen for a path the build context keeps, and the four references follow. .dockerignore:32 has excluded benchmarks/unseen since |
||
|
|
d1f61fbe6f |
fix(contributor-scan): the wrapper writes its runs to the user cache (item 5a)
The shell wrapper wrote the runs of the image to ./.ousast, inside the repository it was scanning (the eighth session: three runs under it). It now creates ~/.cache/openultrasast/runs, mounts it at /reports, the one writable mount, and passes -e OPENULTRASAST_RUNS_DIR=/reports to its compose run, so nothing is written to the scanned directory. The override is the maintainer's choice of 2026-11-27, on a measurement. Answer 4 of the menu of 2026-11-26 was worded as the mount alone. Measured that day: compose sets OPENULTRASAST_RUNS_DIR=/reports/runs in the service, so the mount alone put the run on the host at ~/.cache/openultrasast/runs/runs/<run>, one level below a native run, and nothing prunes it there (prune_old_runs removes only run directories directly under the root whose names match the run id). With the override the run lands beside native runs. Two things the choice does not change: a scan in the image never prunes, so the wrapper's runs are removed by a later native scan on the default location; and the wrapper writes to ~/.cache/openultrasast/runs whether or not XDG_CACHE_HOME or OPENULTRASAST_RUNS_DIR moves a native run elsewhere. ops/shell/ousast.ps1 gets the same change, the maintainer's second choice: it writes %USERPROFILE%\.cache\openultrasast\runs and passes the same override. That file was edited by reading and WAS NOT RUN: there is no PowerShell on this machine. Tests: tests/test_shell_wrapper.py has a third test. It failed before the change (no runs directory under HOME) and again until the override was passed. After: 3 passed. Measured on 2026-11-27 through the shell wrapper with the real Docker, from a directory without .env, both API keys unset: `ousast scan examples --mode quick` on a copy of libpng's contrib/examples prints run_dir=/reports/<run>, the container prefix, with file_targets=4, findings=4, exit 0; the run is on the host directly under ~/.cache/openultrasast/runs, owned by the user; the scanned directory stays empty. The eight tests of tests/test_docs_site.py and tests/test_removed_plane_references.py pass, `mkdocs build --strict` exits 0, ruff format, ruff check, mypy, the three gates and compileall pass, and the gates print what they printed before the change. An independent reviewer approved the change in one round; its remarks on the README clause, on the test, on the evidence and on the width of one line are applied. Left as it is, for the maintainer: with HOME unset the shell wrapper now fails, where it wrote ./.ousast before ($HOME is empty, so the path is /.cache/openultrasast/runs, and a failed mkdir is not checked, as it was not before). |
||
|
|
5ad9e7781d |
fix(contributor-scan): compose refuses a target that does not exist (item 5a)
A mistyped TARGET read as a clean scan. The `/target` mount was in the short syntax, so
Docker created a path that does not exist as an empty directory owned by 0:0, and the
scan ended with exit 0 and no findings (the eighth session, 2026-11-26: file_targets=0,
findings=0, exit=0).
The mount is now in the long syntax with `create_host_path: false`, as `/reports` is
since
|
||
|
|
a6e8e2615a |
fix(contributor-scan): the wrapper's native path runs in the caller's directory (item 5a)
`ousast scan .` through ops/shell/ousast.sh with a native install scanned the wrong tree. The native path changed into the checkout before it passed the arguments on, so `.` was the OpenUltraSAST checkout and a relative file name was looked up there. The eighth session showed it with a stub interpreter in place of `.venv/bin/python` (`cwd=/tmp/opencode/s8_fakehome args=-m openultrasast.cli scan .`). The check also looked for `joern-parse` only, while the batch queries run `joern`: with `joern-parse` alone on PATH every batch query failed and a standard scan still exited 0 (2026-11-26, 14 findings where the working launcher gives 15). The native path now runs the checkout's interpreter by its absolute path, in the caller's directory, as the container path does, and it is taken only when `joern` is on PATH as well. So `.`, relative names and relative options mean the caller's files. The reviewer found, and a run confirmed, what dropping the `cd` brings: `-m` alone puts the working directory first on the interpreter's path, so a file of the scanned tree could stand in for a module the CLI imports (a `json.py` in the caller's directory: `ousast --help` printed SHADOW-EXECUTED and exited 3). The interpreter is started with `-P`, which keeps that directory off the path; the flag needs Python 3.11, the project's floor (pyproject.toml). Changes a caller sees, beyond the one the decision named: - The checkout's .env is no longer read on the native path; the CLI reads .env from the working directory, which is now the caller's. ops/README.md says so. - `ousast pairs` and `ousast repos` no longer find their defaults outside the checkout, because `benchmarks/` is read relative to the working directory. Measured for `pairs`: through the wrapper natively, and on the container path, `pairs --slice vibe-py` ends with "pair catalog is not a file: benchmarks/pairs/catalog.toml", exit 1, so the container path already behaved this way. `repos` by reading. Run from the checkout root they find their defaults again (by reading; not run). The header's `ousast pairs --slice vibe-py` example is removed. This is a reading the maintainer may correct. - The message for a machine without Docker names both executables. Tests: the new tests/test_shell_wrapper.py runs the wrapper by bash with a stub of the interpreter, `joern`, `joern-parse` and `docker` ahead of /usr/bin and /bin on PATH. Its two tests failed before the change (2 failed: the interpreter ran in the fake checkout, and the native path was taken without `joern`), and the first failed again until `-P` was passed (1 failed). With the real venv and Joern 4.0.625 on PATH, from a directory without .env: `ousast scan examples --mode quick` on a fresh copy of libpng's contrib/examples gives file_targets=4, findings=4, exit 0, before and after the flag, the figures of the eighth session. The eight tests of tests/test_docs_site.py and tests/test_removed_plane_references.py pass, `mkdocs build --strict` exits 0, ruff format, ruff check, mypy, the three gates and compileall pass, and the gates print what they printed before the change. An independent reviewer approved the change in the second round; its two findings of the first round led to the `-P` flag and to the removal of the header example. Found by the reviewer and left alone, outside this decision: the background child of `ousast pre-push` (src/openultrasast/push/background.py) starts the CLI with `-m` and without `-P`, from the pushed repository. |
||
|
|
88ea171dbe |
fix(contributor-scan): the release builds the scan image from the pinned base (3.2, part 2)
The `images` job of `.github/workflows/release.yml` built `Dockerfile` with no build arguments, so the file's own defaults applied: `TASK_BASE_TAG=base-unpublished` and an empty digest. The first `FROM` could not be resolved. The log of the `v2.1.0-alpha.1` tag's run (42229293910, job `images (openultrasast, Dockerfile)`, 2026-11-06T13:54:46Z) reads `ERROR: failed to build: failed to solve: failed to parse stage name "ghcr.io/norandom/ousast-task-base:base-unpublished@": invalid reference format`. Compose had the same defect, closed in |
||
|
|
9d53c320a5 |
fix(contributor-scan): compose leaves the reports directory to the user (3.2, part 2)
On a fresh checkout the documented command, `TARGET=/path/to/repo docker compose run
--rm ousast scan /target`, died before scanning. The `/reports` mount was in the short
syntax, so Docker created a missing `./reports` as root, and the image runs as uid 1000.
On 2026-11-26, from a copy of the compose file at
|
||
|
|
a706a7d811 |
build(image): the app layers name the runtime user, so the chown layer is gone
By the maintainer's decision of 2026-11-25, recorded in the handover. The option as offered: "Drop the duplicate chown layer", as offered: "`COPY --chown` on the app file layers instead of a final `chown -R`. Every file under `/app` stays owned by uid 1000, compared file by file in the rebuilt image." `RUN chown -R ousast /app` ran after the last COPY, so it copied every file of `/app` into a second layer: 194 MB beside the 189 MB `benchmarks` layer in the local image, and the build of 2026-11-25 spent 311 of its 470 seconds in it. The line is removed, and the copies it covered take `--chown=1000` as `benchmarks` already did: `pyproject.toml`, `README.md` and `LICENSE` in one, `src` in the other. Nothing after the last COPY writes under `/app`: the pip install runs with the uv_build backend and left nothing there in the image built on 2026-11-25. Two things are expected to change besides the layer. `/app` itself, which `WORKDIR` creates, is owned by root, where `chown -R` made it uid 1000. And the files that were gid 0 take gid 1000. No tracked use writes into `/app` as the runtime user: compose runs in `/work` and writes under `/reports`, the wrapper `ops/ousast-docker` works in the mounted repository, and the workflows build and push. Tests: the new `tests/test_task_images.py::test_app_layers_carry_their_owner` fails on a `RUN chown` in the final stage and on a `COPY` into it that does not start with `COPY --chown=1000 `. It failed before the change (1 failed, 15 passed) and passes after; with `tests/test_search_image.py`, 17 passed. On scratch copies it fails when the chown line is put back and when the flag is dropped from `COPY src ./src`. `test_digest_required_and_code_last` found its code line by `COPY src `; it accepts the new prefix, and its ordering check is unchanged. ruff, mypy, the three gates and compileall pass, and the gates print what they printed before the change. An independent reviewer approved the change in one round. Not claimed here: the rebuilt image. It follows in this step's next part, with the proof that every file under `/app` is owned by uid 1000 and that `/app` holds the tracked files only. |
||
|
|
005bffb677 |
build(image): the image leaves the search pilot's git-ignored working files out
By the maintainer's decision of 2026-11-25, recorded in the handover. The option as offered: "One line in `.dockerignore` names `benchmarks/search/private/`, with a test that pins it. The local image then holds what a checkout holds." `.gitignore` ignores `benchmarks/search/private/`, where the feasibility pilot keeps its local identities and working files. `.dockerignore` did not, so `COPY --chown=1000 benchmarks` baked the directory of a local tree, 49,961 files, into the local image `openultrasast:dev`; nothing under it is tracked. A checkout has none of these files, so an image built from one never held them. Nothing under `src/` names the directory: the pilot scripts, `benchmarks/search/pilot_run.py` and `pilot_select.py`, run on the host and take the image under test as an argument. Tests: `tests/test_task_images.py::test_search_pilot_files_stay_out_of_the_image` pins the pattern, and that no `!` line with its exact prefix, with or without the trailing slash, lets it back in. It failed before the change (1 failed, 14 deselected) and passes after; with `tests/test_search_image.py`, 16 passed. On scratch copies the test fails when the line is removed, and when `!benchmarks/search/private` or `!benchmarks/search/private/` is appended. ruff, mypy, the three gates and compileall pass, and the gates print what they printed before the change. An independent reviewer approved the change in one round; its remark on the re-include check is applied. Not claimed here: the rebuilt image. It follows in this step's next part, with the check that the directory is absent from it. |
||
|
|
91d305cd3c |
ci: keep the local .env out of the dagger upload
By the maintainer's decision of 2026-11-25, recorded in the handover: "dagger/ci.py syncs the
git-ignored .env into the local container when run locally, and step 9 runs that script locally
for the first time. I have not read how CI supplies what .env holds; that is checked first, so
CI keeps what it needs."
`.env` is the first entry of the exclude list of the one upload in dagger/ci.py,
`client.host().directory(".", exclude=[...])`. The script is CI's dagger job and the same
script run locally; the entry matches nothing in CI and removes the root `.env` of the tree
when the script runs on a machine that has one.
CI keeps what it needs, read before the change: `.github/workflows/ci.yml` (97 lines) sets two
literal variables (`UV_NO_SYNC`, `DAGGER_VERSION`), uses no `secrets.*` and no `vars.*`, and
has no step that creates or copies a `.env`; the container gets one variable, `UV_NO_SYNC=1`.
The names `.env.example` lists, the two API keys, the `VALID_BENCHMARK_*` S3 settings and the
two Discord values, are supplied by no workflow. A checkout has no `.env`, because the file is
git-ignored; `.env.example` is not matched and stays in the upload. No test reads a `.env` from
the tree.
That the pattern removes the root `.env` rests on reading, not on a run: the SDK passes the
list unchanged to the engine, whose filter matches a pattern without wildcards against the
whole relative path (the independent reviewer traced it at v0.21.7, the version CI pins, and
ran that filter over a scratch tree; no engine and no container was started).
Tests: the new tests/test_dagger_ci_upload.py parses dagger/ci.py as text, so it needs no
dagger engine, and asserts that the one exclude list holds `.env`. It failed before the change
(the list without the entry, 1 failed) and passes after; with the two test files that read the
workflow files, 16 passed. ruff, mypy, the three gates and compileall pass, and the gates print
what they printed before the change. An independent reviewer approved the change in one round;
its remarks on the wording of the comment and of the test, and on the failure message of the
test, are applied.
Left for the maintainer's menu, not decided: excluding `.env.*` files as well (a bare pattern
would also drop `.env.example`, which a test reads), an in-container check that fails the
pipeline if the file ever got in, and `__pycache__` directories, which a local run uploads.
|
||
|
|
8998697b4e |
fix(contributor-scan): the MCP server answers a tool that stops the CLI and stays up (3.1, follow-up)
By the maintainer's decision of 2026-11-25, recorded in the handover: "McpServer.handle catches Exception only, so a missing scan path raises SystemExit through it and ends the stdio loop; openultrasast.scan and openultrasast.benchmark both take that path. One bad call would become an error result for that call and the server would stay up." `McpServer.handle` in src/openultrasast/mcp.py catches `SystemExit` beside `Exception` and answers with the error it already builds for any exception a tool raises: `-32603` with `SystemExit: scan path is not a directory: <path>`. The stdio loop reads on, answers the next request and exits 0 at EOF; before, the process exited 1 with that message on stderr and nothing on stdout. `openultrasast.benchmark` takes the same clause when the manifest names a source path that does not exist. No other path changes: the notification return comes before the `try`, a line that does not parse is answered in `serve`, and `cli.py:588` is the only `SystemExit` a tool handler can reach (the independent reviewer's trace), raised before the configuration is loaded and before a run directory is created. "Error result" is read as that JSON-RPC error: the decision names `handle`, and the handover keeps this channel apart from `isError: true`, which `_call_tool` builds for `McpToolError`. A missing path therefore travels a different channel from a missing `path` argument or an unsupported mode; that is left for the maintainer's menu, with one pre-existing gap the reviewer found: a line that is valid JSON but not an object still ends the loop. Tests: through `serve`, a tools/call for `openultrasast.scan` with a missing path followed by a ping gives the error object and then the ping result, and `serve` returns 0; through `handle`, the same call gives that error object. Both failed on the code as it was, each with the `SystemExit` raised through the function it calls (the first in my run, the second in the reviewer's, on a copy of the code before the change); the second pins that the catch sits in `handle`, the public dispatch, where a catch in `serve` alone passes the first. The 23 test files around the scan path and the MCP server pass (242 passed before the second test was added, and `tests/test_mcp.py` 18 passed after); ruff, mypy, the three gates and compileall pass, and the gates print what they printed before the change. The real `ousast mcp` process, fed the same two lines, answered both and exited 0 with an empty stderr. An independent reviewer approved the change in one round and proposed the second test. |
||
|
|
52c9afb85f |
feat(contributor-scan): a scan says how many source files it left out under its runs directory (3.1, follow-up)
`56c4620` made a scan skip its runs directory when it lies inside the scanned path, and said nothing about it. By the maintainer's decision of 2026-11-25, recorded in the handover, the scan now prints one notice. The decision, as the handover records it: "When source files lie under the runs directory inside the scanned path, the scan prints one notice: line naming the path and the number left out, the way run retention does." The line is `notice: skipped <n> source files under the runs directory <path>` (`source file` at one). `ousast scan` prints it, the `openultrasast.scan` tool returns it among its notices, and `openultrasast.benchmark` returns the notices of the scan it runs. Nothing is added to the manifest or the report. The count follows the scanned tree's own rules, so it is the number the skip took: a source file that the target's root `.gitignore` already keeps out, or that lies under a directory the scan ignores, brings no notice, and a `.gitignore` inside the runs directory does not hide what was left out. To that end `enumerate_source_files` in src/openultrasast/preprocess.py and the new `count_skipped_source_files` share one private predicate, `_is_read_as_source`. The enumeration returns the lists it returned before (the skip test now comes first, so a path under the skipped directory is no longer stat'ed). The count is taken after the preprocess stage, so a tree whose ignore file cannot be read stops the scan inside that stage, as before. It costs one more read of the target's root `.gitignore` and, where there is one, one more `git ls-files`, and only when the runs directory lies inside the scanned path. Nothing is said when no source file is left out, when the runs directory lies outside the scanned path, or when it is the target or lies above it. Tests: the notice tests failed on the code as it was (6 failed) and pass after the change. Four more failed on a first cut that counted by the runs directory's own `.gitignore` and pass on this one: a `.gitignore` inside the runs directory does not hide what the scan left out, nothing is left out where the target already ignores the runs directory, nothing under a directory the scan ignores, and a directory named `.gitignore` costs the scan nothing. The test that a target inside the runs directory is read as it was now also pins that nothing is said; a count that covered that target failed it. The 23 test files around the change pass (241 passed); ruff, mypy, the three gates and compileall pass, and the gates print what they printed before the change. An independent reviewer approved the change in two rounds. Its first round found the count by the wrong rules, which this cut closes. Its second round named two things that are left open and recorded in the handover: were the target's root `.gitignore` to become unreadable between the preprocess stage and the count, the scan would stop with no failed stage recorded in its trace and no manifest; and no test pins that a tracked source file under an ignored runs directory is counted. |
||
|
|
56c4620087 |
feat(contributor-scan): a scan skips its runs directory when it lies inside the scanned path (3.1, follow-up)
Since part A a native scan writes its run under the user cache or wherever `OPENULTRASAST_RUNS_DIR` points. A scan of a path that contains that directory, a home directory or a tree with the runs directory set inside it, took the files under it for source: those of earlier runs and those of its own run. On the code as it was, a source file under the runs directory inside the target was read and its finding reported (`file_targets=3 findings=2` for a tree of two files and one such copy). By the maintainer's decision, recorded as step 2c of the handover, the scan skips the runs directory only: `config.runs_dir`, the default location or the override. The other directories under `~/.cache/openultrasast` are read as before, and so is every tree whose runs directory lies outside it. `preprocess_repository` and `enumerate_source_files` in src/openultrasast/preprocess.py take a `skip` directory, and the preprocess stage of a scan (`_map_scan_targets` in cli.py) passes `Path(config.runs_dir)`. The skip applies only where the runs directory lies inside the scanned path: a target that is the runs directory or lies inside it is read as it was, so a runs directory set to `.` does not silence a scan. Both paths are compared resolved, so a symlinked or relative name is found, and the excluded path is built under the root as the walk spells it, so a relative root works too. Every other caller of the two functions passes no `skip` and is unchanged. No run of this package keeps a source file today (the independent reviewer's count: a quick run holds 15 files, all `.json`, `.jsonl`, `.md` or `.sarif`; the two benchmark runs in the real cache hold `.json` and `.toml`). The copy in the tests is a constructed case. Tests: four tests failed on the code as it was and pass after the change: the runs directory inside the scanned path, by the override, by the default location and by the override through a symlink, and the rest of the cache still read. Two more pin the narrow reading, a target that is the runs directory or lies inside it is read as it was; they failed on a first cut that skipped more than was decided. A direct call with a relative root pins the path comparison. The nine test files around the change pass (113 passed), as do the 37 files that exercise the scan path (362 passed); ruff, mypy, the three gates and compileall pass. Runs of the real CLI on one scratch subject, the code at HEAD against this tree: with the runs directory inside the target the copy under it is no longer read (`file_targets=4 findings=3` for five source files); with the runs directory a parent of the target, or the target itself, both read the same five files and report the same four findings. An independent reviewer approved the change in three rounds; its first round found that the first cut also silenced a scan whose target lay inside the runs directory, which this cut narrows to the decided case. |
||
|
|
9e4983f465 |
feat(contributor-scan): benchmark runs go beside the scan runs (3.1, follow-up)
`ousast benchmark` and its MCP twin wrote a run to `<target>/.openultrasast/benchmarks/<id>/`, into the scanned tree, and no user document said so. By the maintainer decision of 2026-11-24 a benchmark run now goes to `<runs_dir>/<benchmark-run-id>/`, beside the scan runs, where run retention removes it like a scan run. `create_benchmark_run` in src/openultrasast/benchmark.py takes the runs directory instead of the target. The two `_benchmark` functions, in cli.py and in mcp.py, load the configuration the way `_run_scan` does and pass `config.runs_dir`, so a benchmark run follows `OPENULTRASAST_RUNS_DIR` like the scan it runs. Both create the run once the scan has returned. Created first, as it was, the run was under the scan's own retention while the scan ran, and a scan that outlasted the retention window took it for an old one: the scoreboard could not be written and the scan outcome was never printed. A failed scan now also leaves no empty run behind. README.md and docs/examples.md name where a benchmark run goes. Tests: the three location assertions failed before the change and pass after it. A new test pins that retention removes a benchmark run like a scan run, and another that a benchmark keeps its run when its scan outlasts the retention window. The nine test files around the change pass (120 passed); ruff, mypy, the three gates and compileall pass. A run of the real CLI printed `run_dir=` and `benchmark_run_dir=` as siblings under the runs directory and left only the calibration ledger in the scanned tree. An independent reviewer approved the change in two rounds; its first round found the retention window, which this cut closes. |
||
|
|
53a68907ea |
test(detection-core): give the measured seed budget headroom over its proxy workload
Forty-five tests in tests/test_detection_core_performance.py failed on the GitHub runner (run 45352669096) with "measured budget gate failed", for example 206ms>157ms. The seed budget is the slowest `_validate_work` sample, and it gates the complete consumer run, which also derives and encodes output. The two workloads scale differently per host: the complete run measured 0.78 of the seed on the development machine and 1.28 to 1.41 on the runner. Through the final gate's nested run this was also the run's eleventh failure. The seed is now doubled before it is used. The budget that the tests derive and assert is unchanged, and the gate keeps its teeth: with the gated run slowed by one second the module fails (1222ms>1146ms), with a quarter of a second it passes. No production code changes. |
||
|
|
7c707d61f9 |
test(search-with-proof): flush the disk-bound write inside the program
tests/test_search_worker.py::test_run_timeout_truncation_and_disk_bound failed on the ubuntu-26.04 runner (run 45352669096) with exit status 0, where it requires a non-zero status. The runner's Python 3.14 buffers 131072 bytes by default, so a 16 KiB write to an unclosed file is flushed only at interpreter exit, where the error is ignored. The program now closes its file, so ENOSPC surfaces on every Python version. |
||
|
|
c4720ba186 |
test(search-with-proof): skip by cause where the host refuses the browser sandbox, a private network namespace or node
GitHub CI's checks job failed nine search tests on the ubuntu-26.04 runner
(run 45352669096), which has chromium and bubblewrap. Three causes:
- chromium prints "No usable sandbox!" inside the bubblewrap user namespace
and does not exit. The browser test skips on that evidence in the launch
error's cause, as it already did on "Operation not permitted" and
"Permission denied"; an ordinary browser failure still fails.
- `unshare --user --map-root-user --net` is refused ("write failed
/proc/self/uid_map: Operation not permitted"). The ssrf differential and
the namespace handoff test probe that command first and skip when it
fails. The other three differential families do not need it.
- The six node fixture tests could not run their app on the runner. They
need /usr/bin/node, the path the demo launcher uses, and now skip when
it is not executable. The runner's log does not name the missing path;
hiding it locally reproduces the same six failures.
A present but broken node, or a browser that fails for its own reasons,
remains a failure.
|
||
|
|
17d46c0f93 |
feat(contributor-scan): remove scan runs older than 30 days from the default cache (3.1, run retention)
By maintainer decision. Since
|
||
|
|
6edae3a585 |
feat(contributor-scan): a scan writes its run to the user cache, and the ledger only when it learns (3.1, part A)
Where a scan writes. A native scan now creates its run under the user cache, ~/.cache/openultrasast/runs/<scan-id>/ by default ($XDG_CACHE_HOME when it is set and absolute), prints run_dir=<path> once, and no longer writes anything under the analysed tree. OPENULTRASAST_RUNS_DIR still wins: an absolute value is used as given, a relative one resolves against the working directory. Pre-push storage is unchanged. The calibration ledger, by maintainer decision: .openultrasast/calibration/ stays the store, and a scan writes the false-positive ledger into the tree only when its content would change. On a read-only tree the scan records ledger_not_written, with a sentence in the report, and completes; before, a read-only target with one rejected finding crashed before report.md existed. benchmarks/repos/measure.py follows the printed run directory. It read the run from under the scanned copy, which would have recorded every repository as failed, and it also read a stale run left in a copy. Tests: tests/test_scan_output_location.py drives the real CLI and compares the whole tree before and after; tests/test_repo_measure.py pins the measurement script; an autouse fixture keeps every test's scan runs out of the developer's cache; fourteen test files follow the run to its new place. README, docs/examples.md and the scan skill name the ledger as the one write a scan makes. _run_scan is touched by one line and stays over the complexity cap. Task 3.1 stays open for part B, the readable summary. |
||
|
|
90170380ec |
fix(docker): keep the reserved populations out of the image (contributor-scan 3.2)
The root image copies benchmarks/ (Dockerfile:43), and .dockerignore let benchmarks/valid and benchmarks/unseen through, about 18 MB of reserved-population material. RELEASE_NOTES.md says every version tag is pushed to ghcr.io/norandom/openultrasast. Decided by the maintainer on 2026-11-24: both stay out of the image. The scan path reads neither. The one run-time reader is the hunter's contamination report (hunt/contamination.py), which runs from a checkout: a missing pool contributes nothing to it, and it imports benchmarks.unseen.eligibility late, so inside the image that report has no eligibility module and fails at the import rather than silently. A test pins both patterns and fails if a later negation lets either back in. The built image is checked for their absence in task 3.2 part 2, when it is rebuilt. |
||
|
|
89d08e01d3 |
fix(contributor-scan): build the image from the pinned base and keep runs on the writable mount (3.2, part 1)
`docker compose build` has failed since
|
||
|
|
4c5b5d7932 |
test(contributor-scan): pin tier-zero pruning at the scan boundary (5.14)
Four regression tests for the mechanism that landed in |
||
|
|
28f160419a |
test(valid-detection-benchmark): add the opt-in full-scale rehearsal
One test runs the whole lifecycle at 840 inputs with every planned arm and the per-population review subject, so a correctly reviewed full-scale run completes for the first time. It is skipped unless OPENULTRASAST_FULL_SCALE_REHEARSAL=1 and records per-stage wall-clock seconds. The default path is unchanged: the new ScaleLifecycle arguments default to None and the timing wrapper always calls its stage. |
||
|
|
081adfc052 |
test(valid-detection-benchmark): route the harness spends through the production spend stage
The end-to-end and scale harnesses committed the shared custody spend by hand. They now bind the production stage (bind_case_adapter_spend_stage) through one shared helper that predicts the release review subject before the spend, so the harness exercises the same path the adapter replay binds. The failure-injection copy stays a raising fault injector so the failure matrix keeps its pinned outcomes. The sealed release the harness persists now has the production shape (schema version and review covered by the release digest); nothing pinned the old five-key payload. |
||
|
|
2951f7d53a |
fix(valid-detection-benchmark): refuse a wrong-typed stage product as an instrument failure
A run stage that returned None or a product of another type escaped the run command as a raw AttributeError, or was passed on to the next stage. The run command now type-checks every stage product against its declared type and persists an IMPAIRED outcome at that phase with reason INSTRUMENT_FAILURE; the spent flag stays what durable custody says. Seam refusals are still re-raised and the INTERRUPTED path is unchanged. |
||
|
|
f9d29aa6e8 |
fix(valid-detection-benchmark): bind a production spend stage for the adapter path
Add bind_case_adapter_spend_stage and export it from the run module: the stage derives the preparation from the adapter request and commits the shared spend through commit_preparation_spend_and_release, so a receipt minted on this path satisfies the core's shared-spend validation. The legacy release is refused on the same path (contrast test). The bound stage refuses a stage product that differs from the execution the request was validated for, before any custody read or write. |
||
|
|
5fdf65e02d |
fix(valid-detection-benchmark): mint the shared spend receipt from the preparation
Add commit_preparation_spend_and_release: the shared label spend mints its custody receipt from preparation.label_release_request, which is what the core's shared-spend validation requires (arm id and influenced artifact digest of the authority). commit_spend_and_release keeps its behaviour and its mint order; its receipts cannot satisfy a preparation and are refused by the replay, as a contrast test now pins. Closed refusals, all before any write unless stated: wrong preparation type, head unavailable or moved (no CAS), lost CAS, labels unreadable after the committed spend (labels_spent true). |
||
|
|
d9b7aaa6ac |
feat(pre-push-safety-net): exclude the memory family explicitly and document the scope line
- advisory-scope.json names the taxonomy family memory as excluded, with the registry-grounded reason and what a run does not tell - docs/scanning.md shows the Scope line exactly as the hook prints it - the loaded-scope guard moves into a helper, so __post_init__ keeps its complexity of 14 |
||
|
|
364b4c0777 |
test(valid-detection-benchmark): pin each fix-site key element and non-integer closure totals
- one sourcing-queue pair per fix-site key element (path-only, function-only), each proven red by dropping that key line alone - the closure decode test covers a self-consistent bool total next to the float total - the _request_order docstring names the two ties that remain open (fix revisions; shared candidate digest with another family or CWE) |
||
|
|
b82b52f976 |
feat(pre-push-safety-net): declare the provisional advisory scope and print it on every run
One packaged record (advisory-scope.json, shipped in the wheel beside eligibility.json) states the provisional scope, every exclusion with its reason, and what each exclusion leaves untold. The hook renders exactly one bounded Scope line per run in every state (provisional, with defects, record unavailable) and the artifact carries the record under advisory_scope. The record is provisional if and only if the shipped registry is NO-GO with no enabled declaration. Task 15.2. The task text cites a requirement 5.6 that does not exist, so this is implemented against 3.1, 5.1, 7.1 and 7.3. |
||
|
|
0d5aaeecca |
test(valid-detection-benchmark): cover a non-permissive license class behind an allowlisted expression
The license_class conjunct of the public-material partition had no mismatch fixture. NON_PERMISSIVE and UNCERTAIN sources with an allowlisted expression and an approval are now pinned to the private partition. |
||
|
|
67bc37cac6 |
fix(valid-detection-benchmark): break sourcing-queue ties on fix-site path and function
Candidates that differed only in fix-site path or function were selected by input order under the queue cap. Both scalars are now part of the request order, so cap selection no longer depends on input order for them. |
||
|
|
9e884e8342 |
fix(valid-detection-benchmark): require a strict integer for the accepted positive total
total_accepted_positives accepted floats and booleans on both the direct and the decode path. Both now fail closed with STATE_MISMATCH through one sibling helper that keeps _validate_closure within the complexity cap. |
||
|
|
60bb7f0bdd |
fix(valid-detection-benchmark): fail cohort selection closed on a malformed pending ledger
_ledger_facts accepted any pending_entries value and turned it into a set; a ledger outside the durable shape is now a STATE_MISMATCH on both selection rounds. The _pending_by_ecosystem docstring now states the conflicting-accepted-review corner accurately. |
||
|
|
7e6da2efae |
fix(valid-detection-benchmark): normalize mixed-case .git suffixes in reservation identity
A reference such as OWNER/REPO.GIT escaped the reserved-identity check at both reservation sites because the suffix was stripped case-sensitively. One shared strip now handles the suffix case-insensitively; identities without a mixed-case suffix are byte-identical. |
||
|
|
f2093a5380 |
fix(valid-detection-benchmark): floor scale runtimes at one millisecond
The 11.5 review noted that the scale validator accepted runtime_ms >= 0, so a sub-millisecond or frozen-clock reading could be recorded as 0 ms. Clamp every recorded runtime (per-arm, streaming, lane) to at least 1 ms and tighten the validator to > 0. A frozen-clock test proves all three floors; it fails against the previous source (0 ms receipts). |
||
|
|
f30a5d2cb2 |
style(valid-detection-benchmark): apply ruff format to 10.x/11.x test files
`ruff format --check src tests` failed on the 17 test files and helpers added by tasks 10.x and 11.x. Formatting only: the AST of every file is unchanged. |
||
|
|
a68796610a | feat(valid-detection-benchmark): 11.5 streaming scale bounded validation and back-pressure | ||
|
|
66ec3e1a31 | feat(valid-detection-benchmark): 11.4 spend-ordering crash and failure-visibility matrix | ||
|
|
da5323002e | feat(valid-detection-benchmark): 11.3 end-to-end lifecycle with case adapter and hostile-decode retrofit | ||
|
|
73c8a9d6b3 | feat(valid-detection-benchmark): 11.2 persistence custody and scratch-loss suites | ||
|
|
936835477a | feat(valid-detection-benchmark): 11.1 governance and confidentiality adversarial suites |