Skip to content

Stop the review collector reading severity words in prose as findings (GST-2122) - #4218

Merged
capy-ai[bot] merged 4 commits into
mainfrom
stop-review-collector-reading-prose-severity
Nov 9, 2026
Merged

capy-ai[bot] merged 4 commits into
mainfrom
stop-review-collector-reading-prose-severity

Conversation

@garrytan

@garrytan garrytan commented Nov 9, 2026 •

Copy link
Copy Markdown
Owner

The review collector no longer stops /ship when a reader returns NO FINDINGS or writes a sentence that denies a severity. Prose outside a clean reply collects exactly as it did before.

What changed

The review collector (parseFindings in lib/review-ledger.ts, run by gstack-review-dispatch collect) no longer stops /ship on a reader's clean reply or on a sentence that denies a severity.

  • Before: Keep deferred review findings on the PR instead of filing issues #4208's pass-2 red team returned NO FINDINGS but quoted CRITICAL (the reviewer wrote …) in a coverage bullet, and it collected as p2/red-team#1 CRITICAL. An alphaclaw fix-check wrote "No fix introduced a CRITICAL defect", which collected as CRITICAL too. Judge may not drop or lower a collected finding, so gstack-review-plan printed NEXT: stop on both.
  • After:
    • Clean replies: a reply that says NO FINDINGS keeps only its structured findings, which still collect at their label. Those are JSON objects (malformed ones included), lead labels, label headings, numbered finding headings, Severity fields, Blocks: yes, the native voice's FIXABLE or INVESTIGATE tag, and anything naming a file:line. Its other prose collects nothing.
    • Denials: "No fix introduced a CRITICAL defect" and its variants (none of the fixes caused, added or left a High regression) are no-defect clauses, read by the existing GST-435 closing-summary grammar. That holds after a bold, unlabelled lead too, such as **1. Coverage:** … or - **Callers:** ….
    • Everything else: prose outside a clean reply collects exactly as before. A real prose blocker such as review collect: a rating verb denies a severity like "is" does (GST-1628) #4075's "Neither fix clears the P0." still blocks, and every earlier pinned expectation is unchanged.

Why

A reader reporting a clean result, or saying a fix introduced nothing severe, was enough to stop /ship. That stopped this repo's #4208 and garrytan/alphaclaw#385/#386 (GST-2122).

Blast radius

This changes only the collector's reading of clean replies, plus one new denial phrase class. Judge, the blocking count and reader briefs are unchanged. The one bypass is unstructured, unlocated prose inside a NO FINDINGS reply, which now collects nothing. test/review-prose-severity.test.ts pins it.

Tests

  • New test file: test/review-prose-severity.test.ts, written first. At this head it covers:
  • Focused checks at this head:
    • Parser and dispatch suites: 125 pass.
    • review-collect, review-scope and review-plan: 194 pass.
    • Parity-suite, module-size-ratchet and the spawnsync tripwire: 11 pass.
    • bun run typecheck is clean.

Documentation

Status: current. The docs already describe this branch's review-collector change, so I made no edits.

Scope: the diff from base bfa36fe to head fa6abab on stop-review-collector-reading-prose-severity. It touches lib/review-ledger.ts, docs/review-policy.md, a changelog.d fragment and tests. There were no staged, unstaged or new files.

Documentation health:

  • docs/review-policy.md: current. It describes how a NO FINDINGS reply keeps only its structured findings, the new denial clause and the bold-lead handling (GST-2122), and that wording matches the code.
  • docs/ship-policy.md, docs/unattended.md, ship/SKILL.md.tmpl, review/SKILL.md.tmpl: current. They mention NO FINDINGS but not how prose is parsed.

Coverage debt: none. Diagram drift: none.

Pre-Landing Review

/ship ran two full review rounds and one granted fix-check (a-efb05cd1606d).

  • Fixed in round 1 (d460378): the relaxed native parse fell out of line with the main parse under NO FINDINGS (p1/specialist-batched#1), and numbered finding headings lost their label (p1/red-team#2).
  • Fixed in the granted round (fa6abab): a numbered or bold-led heading that only denies a severity collected at it under NO FINDINGS (p2/adversarial-native#2, p2/red-team#1).
  • Open notes, none blocking:
    • p1/red-team#1: a NO FINDINGS line anywhere in a reply, including a batched section or a fenced quote, drops that reply's unshaped prose.
    • p1/red-team#3: a coverage note that quotes Severity:/Blocks: fields or cites a file:line still collects at its label beside NO FINDINGS.
    • p1/red-team#4: **NO FINDINGS** in bold is not read as the clean marker.
    • p3/fix-check#1: the bold-lead strip skips the lead's file:line, exception and Severity-field guards, so - **auth.ts:9:** No CRITICAL issues. and **Severity:** nothing CRITICAL. after a located finding now collect nothing.
    • p3/fix-check#2: the new denial clause accepts any short subject, so "No null check left a CRITICAL bug." reads as a denial.

REVIEW_LOOP: passes=2 blocking_found=2 deferred=0 noted=6 fixed=2 scope=frozen fix_checks=1 dispatches=8

Gate edits: none detected (gate scan tagged 0).

Plan: exempt: bug fix (--kind fix) with the failing-first test test/review-prose-severity.test.ts (4/6 failed on main bfa36fe)

Agent notes

Lane GSTA-444 for GST-2122. The fixture comes from GSTA-435 Subagent 1.7, the run1-p2 red-team reply. Round 2 follows the Captain's narrowing, under fix round grant a-efb05cd1606d (review_loop_grant dad0e32 on #4218). That grant restored the pins the first head had superseded.

Agent notes
{
  "schema_version": 1,
  "pr": 4218,
  "head": "fa6ababd1d8b1ae3f469bb3302321857572428f4",
  "version": "1.98.0.0",
  "base": "main",
  "gate": {
    "test": {
      "pass": 1654,
      "fail": 0,
      "skip": 6
    }
  },
  "ci_carried": [
    {
      "lane": "test",
      "run": 42628810478,
      "attempt": 1,
      "tree": "ee1a21b3c9adfde042614c6a97340e92ba5f967a"
    }
  ],
  "session_kind": "unattended",
  "head_tree": "ee1a21b3c9adfde042614c6a97340e92ba5f967a",
  "product_patch_id": "41d16a02a8d25bd4dca7e89007640766886e1296",
  "gstack_version": "1.98.0.0",
  "review_depth": {
    "depth": "full",
    "class": "code",
    "runtime_lines": 35,
    "rules": "66e5174161eecc2c",
    "base": "6473a17de47998b235bdcc67700695215e29f9f9",
    "registry": "6473a17de47998b235bdcc67700695215e29f9f9",
    "gate_scan": {
      "tagged": 0,
      "head": "fa6ababd1d8b1ae3f469bb3302321857572428f4"
    },
    "reasons": [
      "risk:money",
      "runtime=35"
    ],
    "risk": [
      "money"
    ],
    "mode": "panel"
  },
  "pregate": "requires-remote cleared @ee1a21b3c9ad (8 checks, current for fa6ababd1d8b)",
  "requires_remote": [
    "free-tests.yml/macos-named-regressions: https://github.com/garrytan/gstack/actions/runs/42628810478/attempts/1",
    "pregate.json/remote_gate: remote-gate tree=ee1a21b3c9ad tests=36841 skipped=89 runs=42628810478/1 profiles=ci-reuse/free-tests heads=fa6ababd1d8b verified=2026-11-09T13:57:20.532Z"
  ],
  "issues": {
    "fixes": [],
    "refs": [],
    "flakes": []
  },
  "docs": {
    "status": "current",
    "scope": "docs/, README.md, AGENTS.md, CLAUDE.md"
  },
  "review_loop": {
    "passes": 2,
    "blocking_found": 2,
    "deferred": 0,
    "noted": 6,
    "fixed": 2,
    "scope": "frozen",
    "fix_checks": 1,
    "rounds": 3,
    "dispatches": {
      "specialist": 6,
      "red-team": 2
    }
  },
  "review_targeted": {
    "classes": [
      "money"
    ],
    "rules": "8811fd300bf305f0",
    "brief_sha": "7f92a0d0a8319c3c0e076fb3b1a4689c45120b2be2c14dfc7d4cb03aafa9d6a5",
    "product_patch_id": "41d16a02a8d25bd4dca7e89007640766886e1296",
    "status": "done",
    "findings": 0,
    "raised_by": "targeted"
  }
}

… (GST-2122)

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
@trunk-io

trunk-io Bot commented Nov 9, 2026 •

Copy link
Copy Markdown

😎 This pull request was merged.

garrytan and others added 3 commits November 9, 2026 13:20
…collector drops prose (GST-2122)

Review-Finding: p1/specialist-batched#1 reader=testing
Review-Finding: p1/red-team#2 reader=red-team
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>
…ads (GST-2122)

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
@capy-ai
capy-ai Bot merged commit 324135d into main Nov 9, 2026
77 of 78 checks passed
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