Skip to content

v1.92.36.0 fix(review): keep every severity label, so a blocker after "no CRITICAL issues except" is no longer lost (GSTA-167 S1) - #3803

Merged
capy-ai[bot] merged 4 commits into
mainfrom
gsta-167-revert-negation-drop
Nov 1, 2026
Merged

capy-ai[bot] merged 4 commits into
mainfrom
gsta-167-revert-negation-drop

Conversation

@garrytan

@garrytan garrytan commented Nov 1, 2026 •

Copy link
Copy Markdown
Owner
{
  "schema_version": 1,
  "pr": 3803,
  "head": "6e6685f634b11046b2209ecbc72c0d0164b16393",
  "version": "1.92.30.0",
  "base": "main",
  "gate": {
    "review": {
      "pass": 210,
      "fail": 0,
      "skip": 0
    }
  },
  "session_kind": "unattended",
  "head_tree": "3f6a4cb379d2991e58287fdbaf87b9f9a3adf5f2",
  "product_patch_id": "0f079012780ad17ec219ea82aa081e94041e9ea2",
  "gstack_version": "1.92.30.0",
  "review_depth": {
    "depth": "light",
    "class": "code",
    "runtime_lines": 34,
    "rules": "150435b0a543019a",
    "base": "83ae96e086dede0235aa80139d93249f40b215e4",
    "registry": "83ae96e086dede0235aa80139d93249f40b215e4",
    "gate_scan": {
      "tagged": 0,
      "head": "6e6685f634b11046b2209ecbc72c0d0164b16393"
    },
    "reasons": [
      "runtime=34<=50"
    ]
  },
  "pregate": "requires-remote cleared @3f6a4cb379d2 (1 checks, current for 6e6685f634b1)",
  "requires_remote": [
    "free-tests.yml/macos-named-regressions: https://github.com/garrytan/gstack/actions/runs/41319297857",
    "windows-free-tests.yml/windows-free-shard: https://github.com/garrytan/gstack/actions/runs/41319298061",
    "pregate.json/remote_gate: remote-gate tree=3f6a4cb379d2 tests=3451"
  ],
  "issues": {
    "fixes": [],
    "refs": [
      3703
    ],
    "flakes": []
  },
  "docs": {
    "status": "current",
    "scope": "docs/, README.md, AGENTS.md against the branch diff (docs/review-policy.md collect step 3)"
  },
  "review_loop": {
    "passes": 1,
    "blocking_found": 0,
    "deferred": 0,
    "noted": 0,
    "fixed": 1,
    "scope": "frozen",
    "fix_checks": 1,
    "dispatches": {
      "specialist": 3,
      "red-team": 1
    }
  },
  "review_targeted": {
    "classes": [
      "money",
      "gate"
    ],
    "rules": "baeb8f7ef7da92d0",
    "brief_sha": "7f92a0d0a8319c3c0e076fb3b1a4689c45120b2be2c14dfc7d4cb03aafa9d6a5",
    "product_patch_id": "0f079012780ad17ec219ea82aa081e94041e9ea2",
    "status": "done",
    "findings": 0,
    "raised_by": "targeted"
  }
}

What changed

The six exception-clause blockers collected nothing on main; they collect CRITICAL again on this branch

The six exception-clause blockers collected nothing on main; they collect CRITICAL again on this branch.

Before/after as text: The six exception-clause blockers collected nothing on main; they collect CRITICAL again on this branch
--- Before · before.txt · captured output
+++ After · after.txt · captured output
+$ parseFindings at this branch (6e6685f6), reader outside-voice
+No CRITICAL issues except the token leak in log.ts:3  ->  ["CRITICAL"]
+There is no CRITICAL issue other than the SQL injection at db.ts:12  ->  ["CRITICAL"]
+Nothing CRITICAL apart from the auth bypass (auth.ts:9).  ->  ["CRITICAL"]
+No new CRITICAL findings, but the token leak in log.ts:3 still blocks.  ->  ["CRITICAL"]
+None CRITICAL besides the race in queue.ts:40, which loses writes.  ->  ["CRITICAL"]
+- **No CRITICAL** issues remain except F2 (store.ts:22 corrupts data).  ->  ["CRITICAL"]
+Label lists over 9 fixtures + 6 probes x 5 readers (75 rows): identical to 8cef24ce^
-$ parseFindings at main 8cef24ce (v1.92.29.0), reader outside-voice
-No CRITICAL issues except the token leak in log.ts:3  ->  []
-There is no CRITICAL issue other than the SQL injection at db.ts:12  ->  []
-Nothing CRITICAL apart from the auth bypass (auth.ts:9).  ->  []
-No new CRITICAL findings, but the token leak in log.ts:3 still blocks.  ->  []
-None CRITICAL besides the race in queue.ts:40, which loses writes.  ->  []
-- **No CRITICAL** issues remain except F2 (store.ts:22 corrupts data).  ->  []
 

Why

"No CRITICAL issues except the token leak in log.ts:3" collected nothing on main, so /ship's review gate never saw that blocker. v1.92.29.0 (#3787, GST-766) skipped any severity word a negation governs, to quiet closing lines like "found nothing CRITICAL", and that also dropped real blockers named in an exception clause. The collector now reads labels exactly as it did before v1.92.29.0, and the reviewer's stated Severity and Blocks are still recorded beside the label.

Blast radius

Only parseFindings in lib/review-ledger.ts changes behavior. Its body is now byte-identical to 8cef24c^ (checked by diffing the function at both revisions), and collect() still writes stated without touching the label. Every caller of collect and judge sees what it saw before v1.92.29.0. Evidence rung: script ran (label lists for 9 fixtures plus the 6 probes, each under 5 reader roles, are identical at 8cef24c^ and this head: 75 of 75 rows).

Approvals

No approvals recorded for branch gsta-167-revert-negation-drop.

The Captain (GStack Minder, GSTA-36) approved this as an S1 fix lane under GSTA-167: revert #3787's negation drop and keep its stated recording.

Summary

#3787 made the review collector skip a severity label when a negation word governed it. Every one of these collected nothing on main 8cef24c, where the collector before it collected CRITICAL:

  1. "No CRITICAL issues except the token leak in log.ts:3"
  2. "There is no CRITICAL issue other than the SQL injection at db.ts:12"
  3. "Nothing CRITICAL apart from the auth bypass (auth.ts:9)."
  4. "No new CRITICAL findings, but the token leak in log.ts:3 still blocks."
  5. "None CRITICAL besides the race in queue.ts:40, which loses writes."
  6. "- No CRITICAL issues remain except F2 (store.ts:22 corrupts data)."

This PR removes NEGATED, NEGATION_LIST, MARKUP, the asserted() filter and the rule that a line whose labels are all negated closes the open finding. It keeps #3787's Stated, stated(), MergedLine.stated and the code that writes them. The cost is the one gstack had before v1.92.29.0: a reviewer's closing summary ("Neither finding is CRITICAL.") collects at its label as a known phantom.

Tests changed or removed (with reasons)

No test was removed. One #3787 test encoded the behavior being reverted, so it now asserts the label is kept:

  • a negated severity word is not a finding: GEVA-92 fix-check#5 and its negated forms is renamed a negated severity word still collects at its label: GEVA-92 fix-check#5 and its negated forms are known phantoms, with the same inputs. Reason: each assertion expected a negated label to collect nothing or a weaker label, which is the drop this PR reverts. Each expectation now equals what 8cef24c^ collects:
    • GEVA-92 fix-check#5 collects INFORMATIONAL, INFORMATIONAL, CRITICAL (it was the two INFORMATIONAL lines only).
    • The 23 negated one-liners ("Found no CRITICAL issues…", "No P0/P1 issues.", "No HIGH-risk changes.", …) each collect their label (each was []).
    • "Not CRITICAL, but High: …", "No CRITICAL, High: …" and "Nothing CRITICAL / HIGH: …" collect CRITICAL (they were High or HIGH).
    • "1. auth.ts:3 LOW … / No CRITICAL issues remain." collects LOW, CRITICAL (it was LOW).
    • "Separately, nothing CRITICAL about b.ts:9 … / Severity: High" collects CRITICAL (it was High).
    • These are unchanged: the Makefile:7 Severity-field cases, "A CRITICAL race in queue.ts:78…", "A divide by zero CRITICAL bug" and the FIXABLE line.
  • v1.92.29.0 fix(ship): review collector skips negated severity words and records the reviewer's stated severity (GST-766) #3787's stated tests are unchanged (a finding keeps the severity and Blocks its reviewer stated beside the collected label in test/review-dispatch.test.ts, and the deferred-issue test in test/review-scope.test.ts).

Tests added

  • a blocker in an exception clause after a negated severity word collects at its label: the six probes above, each under the outside-voice, fix-check, red-team and adversarial-native readers, must collect CRITICAL.
  • test(ship): collect keeps every reviewer label; closing summaries are known phantoms (GST-435) #3703's (GST-435) label-preservation tests and their 7 fixtures (HARN-15, GEVA-77), carried over as text from gst-435-collect-labels: collect keeps every label at the strongest on its line: no wording drops a blocker, known phantoms: closing summaries keep their label until the summary_candidate follow-up and item layouts collect as on main; the later-paragraph split and indented label headings are known deferred shapes.

Test Coverage

All 4 changed code paths have ★★★ tests (Step 7 audit, audit-only).
Tests: 1611 → 1611 (+0 new files)
Coverage: 100% value-weighted (100% including 0 weakly covered paths)
Test value: 0 tests written, 0 rejected by the authoring gate, 0 existing tests extended, 0 paths weakly covered.

Failing first: at 43cdd9a (the new tests over main's collector) bun test test/review-dispatch.test.ts gives 41 pass, 4 fail (the six-probe test, the negated-forms test and two GST-435 tests). At 6e6685f it gives 45 pass, 0 fail.

Tests ran: typecheck count unavailable
Tests ran: review 210

Pre-Landing Review

Pass 1 found 1 issue. It was auto-fixed: the docs said lead judgment can fold a closing-summary phantom, but judge() only folds into a finding at least as severe, so the docs and changelog now say that.
REVIEW_LOOP: passes=1 blocking_found=0 deferred=0 noted=0 fixed=1 scope=frozen fix_checks=1 dispatches=4
Gate edits: none detected (gate scan tagged 10 hunks in lib/review-ledger.ts and docs/review-policy.md, read in full; the change restores 8cef24c^'s collector)

Cross-family fix-check (openai/gpt-6.1-sol), aimed at "does any line that collected a label at 8cef24c^ collect nothing or a weaker label now": NO FINDINGS. Targeted reader (money, gate): NO FINDINGS.

Outside review (openai/gpt-6.1-sol): one finding, Blocks: yes (collected CRITICAL), skipped on purpose. It says a clean reply holding only "There are no CRITICAL findings." now collects a CRITICAL that judge() cannot drop, and it asks for the summary-dismissal path to ship with this revert. That is the closing-summary phantom gstack had before v1.92.29.0, which the S1 brief chose to accept. Its fix is the deferred summary_candidate follow-up and is out of scope here. It is not a lost or lowered label. The native adversarial voice raised the same trade at Medium, Blocks: no.

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:100 INVESTIGATE (Medium, Blocks: no): a closing summary negating a severity word becomes a finding that judge() cannot drop; documented pre-v1.92.29.0 trade.

Exploratory QA

Smoke probes, run by the parent on the current tree: the six exception-clause probes at main (each collects nothing) and at this head (each collects CRITICAL), and the 75-row label diff against 8cef24c^ (identical). No required plan checks.

Design Review

No frontend files changed, so design review was skipped.

Eval Results

No prompt, template, judge or eval-harness file changed, so evals were skipped. The selector maps lib/review-ledger.ts to 264 dependent gate cases; the train gate runs them.

Rule 25 trial merges

Issues

Refs #3703

TODOS

No TODO items completed in this PR.

Documentation

Status: current. No documentation edits were needed.

Scope: the committed diff on gsta-167-revert-negation-drop (head 6e6685f6) against base 83ae96e0: lib/review-ledger.ts, docs/review-policy.md, changelog.d/gsta-167-revert-negation-drop.md, review-ledger fixtures and test/review-dispatch.test.ts. There was no staged, unstaged or new-file content. I searched every tracked and new file for references to the GST-766 negation drop.

Documentation health:

  • docs/review-policy.md: Current. The collect step 3 text, which this branch already updated, matches the reverted collector: a negated severity word collects at its label, and closing-summary phantoms stay in the judged set.
  • changelog.d/gsta-167-revert-negation-drop.md: Current. Reviewed only; it is owned by the parent.

Coverage debt: none found. Diagram drift: none.

Test plan

  • bun run typecheck: clean
  • bun test (10 files that import review-ledger or review-dispatch, plus changelog-fragments): 210 pass, 0 fail
  • Remote pregate on Ubicloud at tree 3f6a4cb3: 3451 tests, 0 failed, $0.06
  • Label diff against 8cef24c^: 75 of 75 rows identical

garrytan and others added 4 commits November 1, 2026 14:25
…ty word collects at its label (GSTA-167 S1, failing first)

Adds the six exception-clause probes that collect nothing on 8cef24c, GST-435's label-keeping probes and fixtures (PR #3703, read as text), and turns GST-766's negated-label test into a kept-label test.

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…l as before 8cef24c, stated stays (GSTA-167 S1)

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
… stays at its label in the judged set and folds only into a finding at least as severe)

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

trunk-io Bot commented Nov 1, 2026 •

Copy link
Copy Markdown

😎 This pull request was merged.

@github-actions github-actions Bot changed the title fix(review): keep every severity label, so a blocker after "no CRITICAL issues except" is no longer lost (GSTA-167 S1) v1.92.36.0 fix(review): keep every severity label, so a blocker after "no CRITICAL issues except" is no longer lost (GSTA-167 S1) Nov 1, 2026
@capy-ai
capy-ai Bot merged commit 216493f into main Nov 1, 2026
62 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