/cso reports every security finding the code supports instead of dropping most of them (GST-3588) (#4739)

/cso now reports every security finding the code supports, with a
confidence level, and keeps low-confidence ones as labeled hypotheses
instead of dropping them.

Why: on 52 real GitHub security advisories, Opus 5.5 with /cso named the
published flaw in 3 of 51 audits, against 12 of 51 for a plain audit
request (gstack-evals#443).

Nothing to do: the next `/cso` run uses it; the before-and-after rerun
on the same 52 advisories is planned separately.

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
Review-Finding: p1/specialist-batched#1 reader=red-team
Review-Finding: p1/specialist-batched#2 reader=testing
This commit is contained in:
Garry Tanandcapy-ai[bot] authored and GitHub committed 2026-11-23 12:04:59 +00:00
1 parent 8143a91809
commit af6deb996e
5 files changed
+186 -52

No files matched your search

-2
View File
@@ -1463,8 +1463,6 @@ function acceptSubmission(dir: string, file: string) {
normalizedLocation = resolveSnapshotPath(manifest, f.location.path, false, 'Finding path', true);
if (normalizedLocation.path !== sourceLocation.path)
throw new CsoError('INVALID_SCHEMA', 'Finding path identity changed during redaction');
if (report.policy.mode === 'daily' && f.evidence === 'hypothesis')
throw new CsoError('INVALID_SCHEMA', 'Daily reports contain supported findings only');
const old = report.findings.findIndex((x) => x.fingerprint === f.fingerprint);
if (old < 0) {
report.findings.push(f);