Repository navigation
review collect: a rating verb denies a severity like "is" does (GST-1628) - #4075
Merged
Merged
Conversation
…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>
|
😎 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>
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.
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.
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
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_foundcarried 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
closingSummaryandsummaryCandidateshare inlib/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.tspins 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
ledgerBlockerscounts 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.tspins 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) anddocs/review-policy.md(2 changed, 22 referencing) are covered by the targeted lane, including the newtest/review-negated-severity.test.tscorpus 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.
lib/review-ledger.ts:106clear 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.lib/review-ledger.ts:108intransitive rating verbs before 'the ' with no floor noun ('None of these rises to the CRITICAL.') no longer deny; main never denied them, uncommon phrasingreader-outputRed Team's lead-in sentence naming its rating (prose, not a separate finding)lib/review-ledger.ts:108the floor nouns widen the pre-GST-1628 is/are/at branch ('No CRITICAL level.' becomes a summary candidate)lib/review-ledger.ts:105INVESTIGATE: the rating-verb list is broader than the captured evidence (count, amount, escalate, climb, cross have no corpus example)reader-outputpass 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-severityagainstmainin edit mode, covering the review-ledger rating-verb change and its docs. The docs touched or affected weredocs/review-policy.md, thechangelog.dfragment and the doc comments inlib/review-ledger.ts. The only other docs that mentionsummary_candidateor the denial examples aredocs/review-policy.mdandCHANGELOG.md.Result: the branch already documents the new behavior.
docs/review-policy.mdadds 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🤖 Generated with Claude Code