From 09a9fcea96b3e95e365ec105e8b3b00109944fe7 Mon Sep 17 00:00:00 2001 From: Marius Ciepluch <11855163+norandom@users.noreply.github.com> Date: Wed, 25 Nov 2026 17:44:42 +0100 Subject: [PATCH] docs(contributor-scan): the user docs name the skipped runs directory and its notice (3.1, follow-up) By the maintainer's decision of 2026-11-25, as the handover records it: "One sentence in README.md and docs/examples.md, in its own docs commit: a scan does not read the files under its runs directory when it lies inside the scanned path. A notice chosen above would be documented in the same place." The sentence, the same in both files: "A scan does not read the files under its runs directory when that directory lies inside the scanned path; when this leaves source files out of the scan, `ousast` prints one `notice:` line naming the directory and how many." It closes the run-location paragraph of README.md and sits in the first paragraph of docs/examples.md, before the benchmark sentence. "when this leaves source files out of the scan" is the exact promise of `52c9afb`: the notice counts what the skip took out of the scan, so a source file that the target's root `.gitignore` or an ignored directory already keeps out brings none. "`ousast` prints" matches the retention sentence two lines up; `ousast scan` and `ousast benchmark` print the line, and the `openultrasast.scan` and `openultrasast.benchmark` tools return the same text among their notices instead (the independent reviewer's probes). The first clause keeps the maintainer's words: nothing under the runs directory becomes a file target, while the other readers of a scanned tree stay as they are by the decision "No, leave them"; a route manifest under the runs directory is still read. No code changes. The two documentation test files pass (8 passed). An independent reviewer approved the change in two rounds; its first round found that the first wording, "when source files are left out there", promised a notice for files the scan was not going to read anyway, which this wording closes. --- README.md | 4 +++- docs/examples.md | 9 ++++++--- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 7e7d27ef..bcb03a24 100644 --- a/README.md +++ b/README.md @@ -191,7 +191,9 @@ one is resolved against the current working directory, never against the directo After a scan writes its run to the default location, with no `OPENULTRASAST_RUNS_DIR` set, the runs there older than 30 days are removed, and `ousast` prints one `notice:` line when it removes any; `OPENULTRASAST_RUNS_RETENTION_DAYS` sets the number of days (`0` keeps every run), and nothing is -ever removed from a location chosen with `OPENULTRASAST_RUNS_DIR`. +ever removed from a location chosen with `OPENULTRASAST_RUNS_DIR`. A scan does not read the files +under its runs directory when that directory lies inside the scanned path; when this leaves source +files out of the scan, `ousast` prints one `notice:` line naming the directory and how many. `ousast benchmark` writes its run to the same runs directory, as `//` beside the scan runs, and prints that path diff --git a/docs/examples.md b/docs/examples.md index aab24931..350daa54 100644 --- a/docs/examples.md +++ b/docs/examples.md @@ -8,9 +8,12 @@ the current working directory, never against the target. Once a scan has written default location, with no `OPENULTRASAST_RUNS_DIR` set, the runs there that are older than 30 days are removed, and `ousast` prints one `notice:` line when it removes any; `OPENULTRASAST_RUNS_RETENTION_DAYS` sets the number of days (`0` keeps every run), and nothing is -ever removed from a location chosen with `OPENULTRASAST_RUNS_DIR`. `ousast benchmark` writes its -run to the same directory, as `//` beside the scan runs, and prints -that path (`benchmark_run_dir=`); run retention removes it like a scan run. +ever removed from a location chosen with `OPENULTRASAST_RUNS_DIR`. A scan does not read the files +under its runs directory when that directory lies inside the scanned path; when this leaves source +files out of the scan, `ousast` prints one `notice:` line naming the directory and how many. +`ousast benchmark` writes its run to the same directory, as `//` beside +the scan runs, and prints that path (`benchmark_run_dir=`); run retention removes it like a +scan run. A scan that rejects or holds a finding writes one file into the scanned tree, and only when that file's content would change: