Skip to content

The /cso release check accepts the low-confidence hypotheses /cso now reports (GST-3624) - #4753

Merged
capy-ai[bot] merged 3 commits into
mainfrom
cso-e2e-accepts-hypotheses
Nov 23, 2026
Merged

capy-ai[bot] merged 3 commits into
mainfrom
cso-e2e-accepts-hypotheses

Conversation

@garrytan

@garrytan garrytan commented Nov 23, 2026 •

Copy link
Copy Markdown
Owner

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.

What changed
  • test/helpers/cso-e2e-report.ts (new) holds the fixture and report checks the three /cso eval cases share. A daily finding may now be a hypothesis, but only at low confidence, and report.md must list hypotheses under "Hypotheses (unconfirmed)".
  • Each case still requires its main finding to be confirmed: the webhook's missing authentication (diff mode, named in the title or root cause), the cross-tenant read (full audit) and the comment-to-token workflow (infra scope).
  • test/cso-e2e-report-contract.test.ts (new, free) replays the failed run's two captured submissions through the real gstack-cso helper. It fails on the old check with the gate's exact error (Expected "supported", Received "hypothesis") and passes now. Its negative controls still reject a medium-confidence hypothesis, the main finding downgraded to a hypothesis, and a finding outside the diff.
  • Fixture git commits ignore the host's global and system Git configuration, so commit signing or hooks on a developer machine can't break them.
Why

#4739 (af6deb9) made /cso keep an unconfirmed candidate as a low-confidence hypothesis instead of dropping it, and removed the helper's rule that daily reports hold confirmed findings only. In release gate 45216872389 (main @ c4cfe6d) /cso did exactly that: it found the webhook forgery as High and confirmed, plus two more confirmed issues and one hypothesis (hard-coded session tokens). The e2e check at test/skill-e2e-cso.test.ts:77 still asserted that every finding was confirmed, so cso-diff-mode failed in attempt 1 and in its one rerun. That red holds the stable release, which owes users the upgrade fix #4743.

Blast radius

Tests only. The three /cso paid cases share the new helper; cso-full-audit and cso-infra-scope would have failed the same way on their next periodic run. The diff-mode check is slightly stricter than before: the webhook-authentication finding must name the defect in its title or root cause, so a supported side finding that only mentions it in its impact text no longer counts.

Documentation

Status: current. No documentation changes were needed.

Scope: base cb06a6d to head e06e118 on branch cso-e2e-accepts-hypotheses: 8 committed files, with nothing staged, unstaged or new. Seven are test files and fixtures: the /cso diff-mode report check moved into test/helpers/cso-e2e-report.ts, plus a free contract test with two captured-run fixtures and the matching touchfile and free-fixture entries. The eighth is the changelog.d fragment. I searched the docs, skill templates and nested Markdown for references to the changed tests and helpers.

Documentation health:

  • changelog.d/cso-e2e-accepts-hypotheses.md: current. It matches the change; ship-owned mode does not edit changelogs.
  • docs/evals/detector-inventory.md: current. It is a snapshot at HEAD cbcccf9, so its line numbers for test/skill-e2e-cso.test.ts are meant to point at that commit.

Coverage debt: none. The change adds no new user-facing commands, skill text or APIs.

Diagram drift: none.

Agent notes

Refs #4739

Plan: exempt: bug fix with a failing-first free regression (lane card: bug fixes skip plan review).
Triage: GSTA-829 for GStack Minder (GST-3624). review-exploratory-small-cli, the other red in the same run, was FLAKY under rule 16 (passed on its rerun); its detector defect is logged in the flaky ledger for the daily pass.

{
  "schema_version": 1,
  "pr": 4753,
  "head": "e06e1182903eb0f8c7b3399d02154d5bd896c05c",
  "version": "1.103.0.0",
  "base": "main",
  "calls": 36,
  "session_kind": "unattended",
  "head_tree": "1fecdc85309a9884e289c7dff90aa4648b303490",
  "product_patch_id": "none",
  "gstack_version": "1.103.0.0",
  "review_depth": {
    "depth": "light",
    "class": "tests",
    "runtime_lines": 0,
    "rules": "33831f8248a814fd",
    "base": "b5eb401e450bdf73059296c303cb5fc3391a060e",
    "registry": "b5eb401e450bdf73059296c303cb5fc3391a060e",
    "gate_scan": {
      "tagged": 0,
      "head": "e06e1182903eb0f8c7b3399d02154d5bd896c05c"
    },
    "reasons": [
      "runtime=0"
    ],
    "risk": [],
    "mode": "panel"
  },
  "pregate": "requires-remote cleared @1fecdc85309a (8 checks, current for e06e1182903e)",
  "requires_remote": [
    "free-tests.yml/macos-named-regressions: https://github.com/garrytan/gstack/actions/runs/45233364732/attempts/1",
    "pregate.json/remote_gate: remote-gate tree=1fecdc85309a tests=39254 skipped=70 runs=45233364732/1 profiles=ci-reuse/free-tests heads=e06e1182903e base_moved=b5eb401e450b verified=2026-11-23T19:00:07.674Z"
  ],
  "issues": {
    "fixes": [],
    "refs": [
      4739
    ],
    "flakes": []
  },
  "docs": {
    "status": "current",
    "scope": "docs/, README.md and CONTRIBUTING.md against the test-only diff"
  },
  "review_loop": {
    "passes": 3,
    "blocking_found": 2,
    "deferred": 0,
    "noted": 1,
    "fixed": 2,
    "scope": "frozen",
    "fix_checks": 1,
    "rounds": 3,
    "ledgers_read": 4,
    "dispatches": {
      "specialist": 2,
      "red-team": 2
    }
  },
  "gate_dispositions": []
}

garrytan and others added 3 commits November 23, 2026 17:37
…(GST-3624)

Release gate census 45216872389 failed cso-diff-mode twice because its report check still required every daily finding to be supported. Since #4739, /cso keeps an unconfirmed candidate as a low-confidence hypothesis, which is what the captured run did. The check now accepts low-confidence hypotheses and requires each case's target finding to be supported. A free replay of the captured run's submissions through the real helper fails on the old check and passes on the new one.

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
The diff-mode check names the webhook's missing authentication by its title or root cause, so a supported side finding that mentions it in its impact no longer passes, and fixture seed commits ignore the host's Git configuration.

Review-Finding: p1/outside-voice#1 reader=outside-voice
Review-Finding: p1/outside-voice#2 reader=outside-voice
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>
@trunk-io

trunk-io Bot commented Nov 23, 2026 •

Copy link
Copy Markdown

😎 This pull request was merged.

@capy-ai
capy-ai Bot merged commit a256d15 into main Nov 23, 2026
66 checks passed
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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant