Repository navigation
/cso reports every security finding the code supports instead of dropping most of them (GST-3588) - #4739
Merged
Conversation
…ository On 52 real advisories /cso named 3 of 51 against 12 for a plain audit. The skill now retries a refused start with --paths, lists and searches the whole inventory through the helper, and lists findings with an open question as low-confidence candidates instead of dropping them. (GST-3588) Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
|
😎 This pull request was merged. |
Review-Finding: p1/specialist-batched#1 reader=red-team Review-Finding: p1/specialist-batched#2 reader=testing Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
Adds gstack-cso search, which checks the snapshot once, prints path:line:text for every match and names any file it could not search. Daily runs now accept low-confidence hypotheses and report.md lists them under Hypotheses (unconfirmed). The skill reads the run ID with jq instead of through tail. Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
… unchanged The search command could stall on a long minified line, and editing contracts.ts changes the runtime images' source hash. Search and a daily report.md hypotheses section move to a follow-up change. Daily hypotheses are still saved in report.json. Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
This was referenced Nov 23, 2026
capy-ai Bot
added a commit
that referenced
this pull request
Nov 23, 2026
… reports (GST-3624) (#4753) The release gate's /cso diff-mode check now accepts the low-confidence hypotheses /cso reports since #4739, which turns the gate green again so the stable release can go out. Why: the check still required every finding in a daily report to be confirmed, so it failed every run (release gate 45216872389, twice at the same line). Nothing to do: this changes tests only. Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com> Review-Finding: p1/outside-voice#1 reader=outside-voice Review-Finding: p1/outside-voice#2 reader=outside-voice
Merged
capy-ai Bot
added a commit
that referenced
this pull request
Nov 24, 2026
- `/ship` now tells you what to change when GitHub refuses a push for email privacy. (#4748) - The release gate's /cso check accepts the low-confidence hypotheses /cso now reports. (#4753) - /cso reports every security finding the code supports instead of dropping most of them. (#4739) - /cso can search the whole repository in one call, and a daily report now lists its low-confidence hypotheses. (#4742) - A first version's plan and try-it message now open with the owner's own words, and the build is tried the same way he will try it before he is asked. (#4759) - A first version's public export now keeps out the owner's short quotes and his reasons to leave something out, and a phone first-use check installs a build the cloud phone can actually run. (#4772) - Three intermittent test failures are fixed. (#4745) - Free Tests runs its shards on 8-core runners again. (#4749) - A land that waits on an earlier CI run now decides on what that run actually did. (#4763) - Landing a PR no longer starts a new CI run when one for the same merged code is already running or has passed. (#4760) - /ship no longer misses a file-mode change from main on files whose names start with `:`. (#4774) - make-pdf keeps quotes in alt text, link titles and raw HTML attributes inside the attribute, so a Markdown file can no longer add an `onerror`, `onload` or `javascript:` link that runs in the print browser. (#4761) - Posting a PR body that lists earlier /ship runs no longer stops for a phone number that isn't there. (#4747) - A first version's public export now catches a short owner quote whose padding or quote marks are encoded. (#4778) - A first version's public export now also keeps out a short owner quote written with spaces just inside its quote marks. (#4776) - Posting a PR body that lists earlier /ship runs no longer stops for a card number that isn't there. (#4751) - /ship no longer asks for an extra reader when you merge the base branch next to code that was already reviewed. (#4754) - /ship no longer plans narrow re-checks after a fix. (#4741) - /ship can't quietly gain new refusals. (#4740) - `gstack-upgrade` no longer refuses to run after you disable skills. (#4743) - The free test suite splits its shards from this week's recorded test times. (#4744) - gstack now writes up a failed or shelved attempt before closing it. (#4735) Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
/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
/csorun uses it; the before-and-after rerun on the same 52 advisories is planned separately.What changed
report.json;report.mdstill lists them only for comprehensive runs.start | tail -80. The skill now savesstartandinspectoutput to private files, reads the ID withjq -r .runId, lists every file withjq -r '.manifest.entries[].path', and tells the model to read every attacker-reachable file in full rather than narrowing by file name.startagain", so a refused start ended the audit. A refused start holds no run, so the skill now applies the correction it names and starts again, with at most 32--pathsprefixes (1024 characters) when the 64 MiB source cap refuses.Why
--pathsretries hit the same refusal or the 32-prefix limit. That was already fixed on main by /cso audits repositories that track symlinks, without following them (#4540) #4567 and /cso never looks through a symlinked folder, and Capy release and triage steps stop writing to GitHub as the owner (GST-3344) #4592: 10 of those 12 repositories now start with no flags, and the other 2 are over the 64 MiB cap. This PR only removes the skill's "never retry" rule.tailcut the ID off. Fixed by thejqinstruction above.inspect's file list sitting past the first 30,000 characters caused none of the recorded sessions; they show up only in a replay of the 52 repositories.Blast radius
Only the /cso skill text and one helper check change. The helper no longer refuses a low-confidence hypothesis in a daily run (two deleted lines in
lib/cso/cli.ts); hypotheses still can't be verified, reproduced or counted as supported, becauseverifyandrecord-reviewrequire supported evidence (read atlib/cso/cli.ts, and confirmed by the review).lib/cso/contracts.ts, the launcher, setup and the runtime images are unchanged, so every existing safety rule (helper-only reads, redaction, private control files, proof labels) still holds and the existing /cso tests pass.Pre-Landing Review
The final review of this head (specialists with the red-team checklist, a native adversarial pass and a second-model review) found no blocking issue in my judgment or the native reviewers'. The second-model review marked five items as blocking; the owner ruled all five below the floor and they ship as notes, listed in the Agent notes. Notes kept for the follow-up: daily
report.mdlists only supported findings whilereport.jsonkeeps the hypotheses; thejqfile list prints in one shell result; eachreadre-checks the whole snapshot. An earlier head carried a whole-snapshot search command that could stall on a long line; it was removed from this change and moves to a follow-up with a hard time limit.Documentation
Status: current. No documentation edits were needed.
Scope: 5 committed files from 8143a91 to ae964ea (
cso/SKILL.md.tmpl, generatedcso/SKILL.md,lib/cso/cli.ts,test/cso-recall.test.ts,changelog.d/cso-reports-every-supported-finding.md). No staged, unstaged or new candidate files. I reviewed the /cso docs: README.md, docs/skills.md, docs/cso-release-qualification.md, docs/cso-scanners.md and cso/sections/audit-phases.md.tmpl.Documentation health:
Coverage debt: Two behaviors are covered only in cso/SKILL.md: daily runs now keep low-confidence hypotheses in a separate Hypotheses (unconfirmed) table, and a library's public API now counts as an attacker entry point. The user-facing /cso summaries in README.md and docs/skills.md do not mention either one. This is a common gap with no how-to or explanation, and filling it would be a security-prose edit for a human to approve.
Diagram drift: none. No diagram references the changed code.
Tests
bun test test/cso-recall.test.ts: 4 pass, 0 fail (all 4 fail on main)Agent notes
Refs GST-3588, gstack-evals#443, gstack-evals#444
Approvals
Approved: yes (record r-458b75d13a79). The full approval record stays private.
Plan: exempt: bug fix with failing-first tests (R65)
Plan check: exempt bug fix
REVIEW_LOOP: passes=3 blocking_found=15 deferred=0 noted=22 fixed=2 scope=frozen open=15 ledgers_read=5 fix_checks=1 dispatches=12
Gate edits: none detected (GATE_SCAN: tagged=0 head=ae964eab7bb5)
Ruled note: lib/cso/cli.ts:1471:correctness at ae964ea ruled by Captain GStack Minder (GSTA-36) (relayed from GSTA-823:01M843QZ529HZ6BBM0VE12BQYE) at 2026-11-23T11:48:34.539Z: a later daily hypothesis with the same root cause replaces a supported finding; report.json keeps it (C1) (approval a-acd347280e8f)
Ruled note: cso/SKILL.md.tmpl:157:correctness at ae964ea ruled by Captain GStack Minder (GSTA-36) (relayed from GSTA-823:01M843QZ529HZ6BBM0VE12BQYE) at 2026-11-23T11:48:34.663Z: daily report.md omits saved hypotheses, the consequence ruling B3 chose (approval a-34c5b8ab3d18)
Ruled note: cso/SKILL.md.tmpl:98:correctness at ae964ea ruled by Captain GStack Minder (GSTA-36) (relayed from GSTA-823:01M843QZ529HZ6BBM0VE12BQYE) at 2026-11-23T11:48:34.748Z: a start failing after report.json is written can strand a run that expires in 7 days (C1) (approval a-c300547b8083)
Ruled note: cso/SKILL.md.tmpl:102:correctness at ae964ea ruled by Captain GStack Minder (GSTA-36) (relayed from GSTA-823:01M843QZ529HZ6BBM0VE12BQYE) at 2026-11-23T11:48:34.821Z: the jq path list prints in one shell result; paging moves to the search follow-up (approval a-8b63ce3967ba)
Ruled note: cso/SKILL.md.tmpl:108:performance at ae964ea ruled by Captain GStack Minder (GSTA-36) (relayed from GSTA-823:01M843QZ529HZ6BBM0VE12BQYE) at 2026-11-23T11:48:34.893Z: one snapshot re-hash per read; the search follow-up targets this reading limit (approval a-8a6da3d7afa1)
Ruled note: redacted at b095639 ruled by Captain GStack Minder (GSTA-36) (relayed from GSTA-823:01M842KBJX650XJ0RP2MJ45Z0N) at 2026-11-23T12:00:37.957Z: security finding, details recorded privately (approval a-05e105e1b0c3)
Ruled note: redacted at b095639 ruled by Captain GStack Minder (GSTA-36) (relayed from GSTA-823:01M842KBJX650XJ0RP2MJ45Z0N) at 2026-11-23T12:00:38.036Z: security finding, details recorded privately (approval a-ddfe2c522297)
Ruled note: lib/cso/cli.ts:1472:correctness at b095639 ruled by Captain GStack Minder (GSTA-36) (relayed from GSTA-823:01M842KBJX650XJ0RP2MJ45Z0N) at 2026-11-23T12:00:38.109Z: a later hypothesis replaces a supported finding with the same root cause; ships as a note (C1) (approval a-3c741b30f7e2)
Ruled note: lib/cso/cli.ts:1467:correctness at b095639 ruled by Captain GStack Minder (GSTA-36) (relayed from GSTA-823:01M842KBJX650XJ0RP2MJ45Z0N) at 2026-11-23T12:00:38.201Z: hypotheses share the 1 MiB report cap with supported findings, as comprehensive runs already do; ships as a note (C1) (approval a-4e998660c2e6)
Ruled note: cso/SKILL.md.tmpl:99:correctness at b095639 ruled by Captain GStack Minder (GSTA-36) (relayed from GSTA-823:01M842KBJX650XJ0RP2MJ45Z0N) at 2026-11-23T12:00:38.282Z: a start failing after report.json is written can strand a run that expires in 7 days; ships as a note (C1) (approval a-3aa7b75b79b1)
Ruled note: cso/SKILL.md.tmpl:103:correctness at b095639 ruled by Captain GStack Minder (GSTA-36) (relayed from GSTA-823:01M842KBJX650XJ0RP2MJ45Z0N) at 2026-11-23T12:00:38.372Z: a failed helper rebuild keeps the old helper; search is gone, and an old helper refusing a daily hypothesis stops loudly; ships as a note (C1) (approval a-f670a7b396e2)
Ruled note: cso/SKILL.md.tmpl:102:performance at 3c22576 ruled by Captain GStack Minder (GSTA-36) (relayed from GSTA-823:01M844FQHB06MDN9RJR9MS9AXP) at 2026-11-23T12:01:10.251Z: superseded: b095639 removed the per-file read loop; the remaining read limit is D1 item 5 (approval a-da475d20736d)
Ruled note: cso/SKILL.md.tmpl:136:correctness at 3c22576 ruled by Captain GStack Minder (GSTA-36) (relayed from GSTA-823:01M844FQHB06MDN9RJR9MS9AXP) at 2026-11-23T12:01:10.389Z: fixed: daily hypotheses are saved in report.json, covered by test/cso-recall.test.ts (approval a-6d298c6fbae3)
Diagnosis and session evidence: reports/GSTA-823.md in the GStack Minder drive.