Skip to content

review collect: a rating verb denies a severity like "is" does (GST-1628) - #4075

Merged
capy-ai[bot] merged 2 commits into
mainfrom
gst-1628-negated-severity
Nov 6, 2026
Merged

capy-ai[bot] merged 2 commits into
mainfrom
gst-1628-negated-severity

Conversation

@garrytan

@garrytan garrytan commented Nov 6, 2026 •

Copy link
Copy Markdown
Owner
{
  "schema_version": 1,
  "pr": 4075,
  "head": "f0fee83dd1b84041253dcd978111b6ddb89ccf97",
  "version": "1.96.0.0",
  "base": "main",
  "gate": {
    "targeted": {
      "pass": 55,
      "fail": 0,
      "skip": 0
    },
    "test": {
      "pass": 1611,
      "fail": 0,
      "skip": 0
    }
  },
  "ci_carried": [
    {
      "lane": "test",
      "run": 42239376325,
      "attempt": 1,
      "tree": "8125ad9f1df094eec4485256959ba148a9d01db0"
    }
  ],
  "session_kind": "unattended",
  "head_tree": "8125ad9f1df094eec4485256959ba148a9d01db0",
  "product_patch_id": "fe5892e59f6d37927123d5987108bba3d48172d1",
  "gstack_version": "1.96.0.0",
  "review_depth": {
    "depth": "full",
    "class": "code",
    "runtime_lines": 22,
    "rules": "70895942bb8a8ee2",
    "base": "648b33459049c25b87daf1217b90d2da7310de9f",
    "registry": "648b33459049c25b87daf1217b90d2da7310de9f",
    "gate_scan": {
      "tagged": 0,
      "head": "f0fee83dd1b84041253dcd978111b6ddb89ccf97"
    },
    "reasons": [
      "risk:money",
      "runtime=22"
    ],
    "risk": [
      "money"
    ],
    "mode": "panel"
  },
  "pregate": "requires-remote cleared @8125ad9f1df0 (7 checks, current for f0fee83dd1b8)",
  "requires_remote": [
    "free-tests.yml/macos-named-regressions: https://github.com/garrytan/gstack/actions/runs/42239376325/attempts/1",
    "pregate.json/remote_gate: remote-gate tree=8125ad9f1df0 tests=35937 skipped=92 runs=42239376325/1 profiles=ci-reuse/free-tests heads=f0fee83dd1b8 verified=2026-11-06T15:14:03.760Z"
  ],
  "issues": {
    "fixes": [],
    "refs": [
      4055
    ],
    "flakes": []
  },
  "docs": {
    "status": "current",
    "scope": "docs/, README.md, CLAUDE.md, AGENTS.md, changelog.d/ against main 1a06afd (review-ledger rating-verb change)"
  },
  "review_loop": {
    "passes": 2,
    "blocking_found": 2,
    "deferred": 0,
    "noted": 6,
    "fixed": 2,
    "scope": "frozen",
    "rounds": 2,
    "est_input_tokens": 27472,
    "ledgers_read": 5,
    "dispatches": {
      "specialist-batched": 1,
      "red-team": 2,
      "specialist": 3
    }
  },
  "review_targeted": {
    "classes": [
      "money"
    ],
    "rules": "30e6bce187be0d59",
    "brief_sha": "7f92a0d0a8319c3c0e076fb3b1a4689c45120b2be2c14dfc7d4cb03aafa9d6a5",
    "product_patch_id": "fe5892e59f6d37927123d5987108bba3d48172d1",
    "status": "done",
    "findings": 0,
    "raised_by": "targeted"
  }
}

What changed

parseFindings labels at main (before) and this branch (after): the two rating-verb denials no longer collect as CRITICAL; 'clears' and a real CRITICAL are unchanged

parseFindings labels at main (before) and this branch (after): the two rating-verb denials no longer collect as CRITICAL; 'clears' and a real CRITICAL are unchanged.

Before/after as text: parseFindings labels at main (before) and this branch (after): the two rating-verb denials no longer collect as CRITICAL; 'clears' and a real CRITICAL are unchanged
--- Before · before.txt · captured output
+++ After · after.txt · captured output
+"None of these rises to CRITICAL."                             -> (none)
+"Nothing reaches the CRITICAL floor."                          -> (none)
-"None of these rises to CRITICAL."                             -> CRITICAL
-"Nothing reaches the CRITICAL floor."                          -> CRITICAL
 "Nothing clears the CRITICAL bar."                             -> CRITICAL
 "CRITICAL: lib/pay.ts:42 charges the card twice on retry."     -> CRITICAL
 

Why

A reader wrote "None of these rises to CRITICAL." (gstack-evals#247) and another wrote "Nothing reaches the CRITICAL floor." (#4055), and the review collector filed both as CRITICAL findings, so blocking_found carried a phantom that lead judgment was not allowed to lower. The collector's denial grammar now treats a short, closed list of rating verbs (rises to, reaches, meets, qualifies as, would rise to) the way it already treated "is", so those closing sentences no longer block a ship.

Blast radius

The change sits in the denial patterns that closingSummary and summaryCandidate share in lib/review-ledger.ts, which every /ship and /review collect reads, so a mistake here could silently drop a real blocker. That did not happen on any captured output: test/review-negated-severity.test.ts pins 12 captured reader outputs holding 16 real CRITICALs plus both phantoms, and a replay over 296 captured reader outputs (874 role x class comparisons, 524 CRITICAL records on main; handoffs/GST-1628/noloss-result.txt) moved only the two phantoms, and the same replay rerun on f0fee83 gave the same result (script ran).

Approvals

No approvals recorded for branch gst-1628-negated-severity.

Summary

A reader's closing sentence that denies CRITICAL with a rating verb no longer counts as a blocker. Gstack-evals#247's sentence now collects at INFORMATIONAL inside its reader output. #4055's line also names file:line places, so under the GST-435 rule for findings that cite code it keeps its label but becomes a summary candidate that lead judgment may lower with a reason, after which ledgerBlockers counts nothing. The pre-landing review found two real holes in the first version of the pattern, and commit f0fee83 closes both: "clears" was dropped from the verb list because "Neither fix clears the P0." states a surviving blocker, and the floor nouns (floor, bar, threshold, level) now need word boundaries, so "no CRITICAL barrier between tenants" still blocks.

No-loss evidence: test/review-negated-severity.test.ts pins 12 captured reader outputs with 16 real CRITICALs (JSON, inline and line Severity/Blocks, native FIXABLE, path-led and fenced shapes) plus both phantoms. A replay over 296 captured reader outputs (874 role x class comparisons, 524 CRITICAL records on main; ~/.capy/drive/captain-gstack-minder/handoffs/GST-1628/noloss-result.txt) moved only the two phantoms, and the replay rerun on f0fee83 gave the same result.

Test Coverage

Coverage: deterministic. lib/review-ledger.ts (13 changed tests, 19 referencing tests) and docs/review-policy.md (2 changed, 22 referencing) are covered by the targeted lane, including the new test/review-negated-severity.test.ts corpus test.

Tests ran: targeted 55
Tests ran: test 1611 (test files, carried from Free Tests run 42239376325 at tree 8125ad9f1df0)

Pre-Landing Review

Pre-Landing Review: 8 issues — 2 auto-fixed, 0 asked, 0 deferred, 6 noted

REVIEW_LOOP: passes=2 blocking_found=2 deferred=0 noted=6 fixed=2 scope=frozen ledgers_read=5 dispatches=6 est_input_tokens=27472

Gate edits: none detected (13 listed, 0 read; patterns: RH-1,RH-3,RH-4,RH-12,RH-13,RH-14,RH-15,RH-16; unlisted idioms: none)

Fixed in f0fee83 (pass 1 voices, both CRITICAL at 049c0fb):

  • lib/review-ledger.ts:105 (v1/adversarial-native#1): an object-taking verb ("Neither fix clears the P0.", "Nothing clears the CRITICAL.") read as a denial, so a fix-check reader's surviving blocker collected nothing. "clear" is out of the verb list.
  • lib/review-ledger.ts:108 (v1/outside-voice#1): floor|bar|threshold|level matched without word boundaries, so "no CRITICAL barrier between tenants" became a dismissible summary candidate. The nouns now need boundaries.

Outside review: openai/gpt-6.1-sol (high) at 049c0fb, one CRITICAL, fixed in f0fee83. Targeted reader (money class) at f0fee83: done, 0 findings. Pass 2 (full, on the 049c0fb..f0fee83 range) at f0fee83: clean, three notes below. Reviewed tree 8125ad9f1df0 (f0fee83), base 1a06afd.

Review notes

Below the blocking floor (advisory, informational, test-gap or wording items); recorded here and not fixed in this PR.

  • INFORMATIONAL lib/review-ledger.ts:106 clear was removed from RATE_VERB, so 'Nothing clears the CRITICAL bar.' collects CRITICAL again (main's behavior; reader rated it CRITICAL). lead judgment: below the floor. These sentences ('Nothing clears the CRITICAL bar.') collect CRITICAL exactly as on main, so no blocker is lost and nothing in production changes; the cost is a phantom fold. Restoring clear as proposed would re-open the bare 'Neither fix clears P0.' denial that drops a real blocker.
  • INFORMATIONAL lib/review-ledger.ts:108 intransitive rating verbs before 'the ' with no floor noun ('None of these rises to the CRITICAL.') no longer deny; main never denied them, uncommon phrasing
  • INFORMATIONAL reader-output Red Team's lead-in sentence naming its rating (prose, not a separate finding)
  • INFORMATIONAL lib/review-ledger.ts:108 the floor nouns widen the pre-GST-1628 is/are/at branch ('No CRITICAL level.' becomes a summary candidate)
  • INFORMATIONAL lib/review-ledger.ts:105 INVESTIGATE: the rating-verb list is broader than the captured evidence (count, amount, escalate, climb, cross have no corpus example)
  • INFORMATIONAL reader-output pass 1 Red Team: three coverage-prose lines collected at CRITICAL while the reader returned NO FINDINGS (p1/red-team#1-3). This is a separate phantom shape (coverage prose with no code locus, not a rating-verb denial) and is out of scope for this PR.

Exploratory QA

Exploratory QA: pass. Charters 001-003 ran at 049c0fb; 004-006 were revalidated at f0fee83 after the fix.

Design Review

No frontend files changed — design review skipped.

Eval Results

No prompt-related files changed — evals skipped.

Review bot comments

No review bot comments.

Scope Drift

Scope Check: CLEAN

Issues

Refs #4055
Refs v1/adversarial-native#1
Refs v1/outside-voice#1

TODOS

No TODO items completed in this PR.

Documentation

Scope: I audited the branch diff of gst-1628-negated-severity against main in edit mode, covering the review-ledger rating-verb change and its docs. The docs touched or affected were docs/review-policy.md, the changelog.d fragment and the doc comments in lib/review-ledger.ts. The only other docs that mention summary_candidate or the denial examples are docs/review-policy.md and CHANGELOG.md.

Result: the branch already documents the new behavior. docs/review-policy.md adds the rating-verb denial examples ("None of these rises to CRITICAL.", "Nothing reaches the CRITICAL floor.") and the summary-candidate example. The code comments and the changelog fragment match the implementation. I made no edits.

Debt: none found.

Test plan

  • bun test --timeout=30000 test/review-negated-severity.test.ts test/review-closing-summary.test.ts test/review-ledger-invariant.test.ts test/review-ledger-verdict-line.test.ts test/outside-review-severity.test.ts test/review-collect.test.ts: 55 tests passed, exit 0 (tree 8125ad9f1df0)
  • bun run test: carried from Free Tests run 42239376325 (workflow_dispatch at f0fee83, tree 8125ad9f1df0): 1611 test files green, macos-named-regressions green
  • No-loss replay over 296 captured reader outputs at f0fee83: only the two phantoms moved

🤖 Generated with Claude Code

…628)

A reader closing sentence such as "None of these rises to CRITICAL." (gstack-evals#247) or "Nothing reaches the CRITICAL floor." (#4055) collected as CRITICAL because the denial grammar only knew copulas. Rating verbs now deny in closingSummary and summaryCandidate; a regression corpus of 12 captured reader outputs pins 16 real CRITICALs and both phantoms.

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

trunk-io Bot commented Nov 6, 2026 •

Copy link
Copy Markdown

😎 This pull request was merged.

A rating verb no longer denies a severity it takes as its object ("Neither fix clears the P0."): "the <label>" rates only with a floor noun after it, and clear is no rating verb. The floor nouns apply only after a rating verb and end at a word boundary, so "no CRITICAL barrier" keeps its label and the pre-GST-1628 denial branch is unchanged.

Review-Finding: v1/adversarial-native#1 reader=adversarial-native
Review-Finding: v1/outside-voice#1 reader=outside-voice
Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
@capy-ai
capy-ai Bot merged commit 8a3d809 into main Nov 6, 2026
64 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