/cso searches the whole repository in one call with a hard time limit (GST-3588) (#4742)

/cso can now search every file in a repository with one helper call,
which stops at a hard time limit, and a daily report.md lists its
low-confidence hypotheses.

Why: audits that started never reached the vulnerable file because each
file took its own helper call inside a 10-minute budget
(gstack-evals#443).

Nothing to do: the next `/cso` run uses it.

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
This commit is contained in:
Garry Tanandcapy-ai[bot] authored and GitHub committed 2026-11-23 14:12:15 +00:00
1 parent 45b48f17d9
commit a3ecfd530d
9 files changed
+254 -18

No files matched your search

+3 -3
View File
@@ -183,7 +183,7 @@ cso_compile_bun() {
--no-compile-autoload-bunfig \
--no-compile-autoload-tsconfig \
--no-compile-autoload-package-json \
"$1" --outfile "$2"
"$1" "${@:3}" --outfile "$2"
chmod +x "$2"
}
cso_compile_watchdog() {
@@ -229,7 +229,7 @@ cso_build_evaluation_candidate() {
cp -R test/helpers "$source_root/test/"
cp "$candidate_catalog" "$source_root/lib/cso/runtime-catalog.json"
(cd "$source_root" && "$BUN_CMD" --no-env-file --config="${GSTACK_BUN_CONFIG:-/dev/null}" scripts/cso-runtime-promotion.ts check-evaluation lib/cso/runtime-catalog.json)
(cd "$source_root" && cso_compile_bun lib/cso/cli.ts "$CSO_EVALUATION_UNIT/gstack-cso-core")
(cd "$source_root" && cso_compile_bun lib/cso/cli.ts "$CSO_EVALUATION_UNIT/gstack-cso-core" lib/cso/search-worker.ts)
(cd "$source_root" && cso_compile_bun scripts/cso-eval-producer.ts "$CSO_EVALUATION_UNIT/cso-eval-producer")
cso_compile_watchdog "$CSO_EVALUATION_UNIT/gstack-cso-watchdog"
if [ "$(uname -s)" = Darwin ]; then
@@ -363,7 +363,7 @@ if [ -n "$CSO_EXE" ];then : > "$CSO_STAGE/.gstack-cso-generation.lock";fi
# These are compile-time switches. Bun otherwise discovers configuration in
# the audited working directory before the helper can apply its own policy.
cso_compile_bun lib/cso/cli.ts "$CSO_STAGE_CORE"
cso_compile_bun lib/cso/cli.ts "$CSO_STAGE_CORE" lib/cso/search-worker.ts
cso_checkpoint core
# POSIX process groups are required by the detached watchdog. Windows keeps