Skip to content

v1.92.29.0 fix(ship): review collector skips negated severity words and records the reviewer's stated severity (GST-766) - #3787

Merged
capy-ai[bot] merged 14 commits into
mainfrom
gst-766-collector-negated-labels
Nov 1, 2026
Merged

capy-ai[bot] merged 14 commits into
mainfrom
gst-766-collector-negated-labels

Conversation

@garrytan

@garrytan garrytan commented Nov 1, 2026 •

Copy link
Copy Markdown
Owner
{
  "schema_version": 1,
  "pr": 3787,
  "head": "54af2d4133f8fcec3551d3a49cabfbed86a86015",
  "version": "1.92.19.0",
  "base": "main",
  "gate": {
    "focused": {
      "pass": 146,
      "fail": 0,
      "skip": 0
    }
  },
  "session_kind": "unattended",
  "head_tree": "589e629b27f9651abfc156e2bdf8f35656f1539b",
  "product_patch_id": "31fb494106513dc45e012d7cde23fa4edb3fc3ff",
  "gstack_version": "1.92.19.0",
  "review_depth": {
    "depth": "full",
    "class": "gate",
    "runtime_lines": 56,
    "rules": "150435b0a543019a",
    "base": "dcc1c51bfcfacc16efe0bdbc352970db5b84c9c2",
    "registry": "dcc1c51bfcfacc16efe0bdbc352970db5b84c9c2",
    "gate_scan": {
      "tagged": 0,
      "head": "54af2d4133f8fcec3551d3a49cabfbed86a86015"
    },
    "reasons": [
      "gate-class",
      "runtime=56>50"
    ]
  },
  "pregate": "requires-remote cleared @589e629b27f9 (1 checks, current for 54af2d4133f8)",
  "requires_remote": [
    "free-tests.yml/macos-named-regressions: https://github.com/garrytan/gstack/actions/runs/41294461201",
    "windows-free-tests.yml/windows-free-shard: https://github.com/garrytan/gstack/actions/runs/41294461341",
    "pregate.json/remote_gate: remote-gate tree=589e629b27f9 tests=5684"
  ],
  "issues": {
    "fixes": [],
    "refs": [],
    "flakes": []
  },
  "docs": {
    "status": "updated",
    "scope": "AGENTS.md, CLAUDE.md, CONTRIBUTING.md, README.md, capy/, docs/, ship/, review/ (re-audit a766-2 of c57b6c9; docs/review-policy.md updated)"
  },
  "review_loop": {
    "passes": 2,
    "blocking_found": 3,
    "deferred": 0,
    "noted": 4,
    "fixed": 7,
    "scope": "frozen",
    "fix_checks": 3,
    "dispatches": {
      "specialist": 6,
      "red-team": 2
    }
  },
  "review_targeted": {
    "classes": [
      "money",
      "gate"
    ],
    "rules": "baeb8f7ef7da92d0",
    "brief_sha": "7f92a0d0a8319c3c0e076fb3b1a4689c45120b2be2c14dfc7d4cb03aafa9d6a5",
    "product_patch_id": "31fb494106513dc45e012d7cde23fa4edb3fc3ff",
    "status": "done",
    "findings": 0,
    "raised_by": "targeted"
  }
}

Summary

/ship's review collector (parseFindings in lib/review-ledger.ts) no longer turns a severity word inside a negation into a finding. A label governed by no, nothing, not, none, zero, without or never is no finding. The negation word may be followed by new, remaining, other, further, additional, more or at, it reads through Markdown emphasis and brackets, and it carries to labels joined by a comma, slash, "or", "nor" or "and". A label that opens a field (High: …) is still collected, and "divide by zero CRITICAL bug" still is too. A line whose labels are all negated closes the open finding and heads the next one, so a finding worded around a negated label still arrives through its Severity or Blocks field.

Part (a): each prose finding in merged.jsonl now also carries stated: { severity, blocks }, the Severity and Blocks its reviewer wrote. It sits beside the collected label and never replaces it, and renderDeferredIssue shows it, as in "CRITICAL (the reviewer wrote Severity: Low, Blocks: no)". This lands as plumbing only. /ship's Step 9.4 doesn't copy stated into its findings file yet, because that instruction lives in ship/sections/review-army.md, a reviewer brief pinned to its no-loss replay. The Captain folded that wiring into part (b)'s replay. What blocks is unchanged.

GST-766 before/after: the GEVA-92 closing line and a merged.jsonl line

Why

GEVA-92's fix-check on gstack-evals #108 (gstack 1.92.17.0) closed with "…and found nothing CRITICAL." The collector recorded that line as a CRITICAL finding with no file or line. The judge refuses to drop or downgrade a collected finding, so the run carried a phantom blocker that could stop the review loop at its cap. HARN-1 (harness-evals#200) and GSTA-135 (GST-718) separately saw FIXABLE findings collected as CRITICAL while the reviewer's text said "Severity: Low. Blocks: no.", and nothing in the run showed the disagreement. That is part (a).

Proof, failing first. test/review-dispatch.test.ts, "a negated severity word is not a finding", replays GEVA-92's captured fix-check#5 output. The raw capture's SHA256SUMS were verified. On main dcc1c51 it collected an extra CRITICAL (d1a7800). Every row added after review failed before its fix and passed after it. "a finding keeps the severity and Blocks its reviewer stated" uses the GSTA-196 native-voice capture, where findings 2 and 3 are FIXABLE with "Severity: Low. Blocks: no.". It failed on 0398f28 before part (a) existed.

Blast radius

  • Code: parseFindings, collect and MergedLine in lib/review-ledger.ts, plus renderDeferredIssue and ScopeFinding in lib/review-scope.ts. No network calls, environment reads, permission changes, workflow edits or dependencies.
  • Behavior: only prose lines from the two Step 11 voices change. JSON findings (specialists, Red Team, fix-check, targeted) take the JSON branch first and are unchanged. A negated label no longer becomes a finding; a finding is never raised or lowered by stated.
  • Docs: docs/review-policy.md describes the negation rule, the closing line and stated, including the Step 9.4 gap.

Known limits

These were noted in review and not fixed. Each is below the floor, and none loses a CRITICAL label:

  • An indented explanation line or a detail bullet whose only label is negated splits a finding from its later Severity or Blocks field. The field opens a second finding, so the blocker survives but is separated from its subject (fix-check 2).
  • Severity: not Critical, High on a field line with no open finding collects nothing, because the negation carries over the comma (pass 2 adversarial).
  • A prose finding whose only label is negated and that has no Severity or Blocks field is dropped. Only a voice that ignores its brief writes that (pass 2 adversarial).
  • "Found no new Critical, High issues." keeps a phantom High: a comma is ambiguous between a list and a new finding, and a phantom is the safe direction (first-pass adversarial voice).
  • Reviewer phantoms: a severity word mentioned rather than negated still collects. In this PR's own review, a Red Team bullet saying a reply "used to record a phantom CRITICAL" and a fix-check's closing "every CRITICAL still reaches merged.jsonl" were each collected as CRITICAL by the installed collector. The judge kept them, and they are noted here. Part (b)'s plan covers the label-rule side.

Approvals

None needed for this PR. It's a bug fix assigned by GStack Minder (GSTA-36) under GST-766, with proof first, and part (a) was added to it by the Captain. Part (b) loosens a gate, so it has its own /autoplan plan waiting on Garry's word (run-20261101085234). Rule 23 grants from GSTA-36 covered pass 2, the fix-check after it, and the fix-check after the pin revert.

Pre-Landing Review

Pre-Landing Review: 11 issues — 7 fixed, 0 deferred, 4 noted

Gate edits: none detected

Review notes

  • Pass 1 (full; batched specialist, Red Team, adversarial, outside voice on GPT, targeted): every finding was below the floor. The comma carry, Markdown and quantifiers were fixed. The Step 11 tail-word and located-line rules were fixed, then replaced.
  • The pass 1 fix-check found two floor-level regressions from those Step 11 rules: phantoms came back for "Nothing CRITICAL to report." and for closing lines that cite a file:line. Fixed by returning to one rule: drop a negated label unless it opens a field.
  • Pass 2 (granted): the Red Team found one floor-level regression, a negated-only line that let the next finding's Severity merge into the previous finding. Fixed with a failing-first row. The adversarial pass fixed a stale head and noted two items. The outside voice and the targeted reader were clean.
  • The fix-check after pass 2 found two items below the floor, both listed under Known limits.
  • The remote pregate failed on test/review-packets-removed.test.ts. Part (a)'s one-clause Step 9.4 edit changed a pinned reviewer brief, so I reverted it. The granted fix-check on that range was clean.
  • Evals: bun run eval:select makes lib/review-ledger.ts a reference for 264 gate cases, which is the whole gate. As with v1.92.13.0 fix: /ship's preflight skips git merge when the base is already in HEAD (GST-691) #3774, the paid cases are left to the train's gstack/full-gate.

Documentation

Status: updated. One factual sentence added to docs/review-policy.md; no blockers.

Scope: the committed range dcc1c51..c57b6c9 (6 files: lib/review-ledger.ts, lib/review-scope.ts, docs/review-policy.md, the changelog.d fragment, two test files). Nothing staged, unstaged or untracked. Checked nested docs and the authored ship/review templates that mention merged.jsonl or the Severity/Blocks fields.

Documentation health

File Status
docs/review-policy.md Updated: the collector paragraph now says /ship's Step 9.4 does not copy stated into its findings file yet, so deferred issues show it only when the findings file carries it
changelog.d/gst-766-collector-negated-labels.md Current: matches the negation rules, the stated record and the Step 9.4 gap
ship/sections/review-army.md(.tmpl) Current: the brief was brought back to the base text in c57b6c9; no net change on the branch
ship/sections/adversarial.md, review/sections/adversarial.md, ship/DRIVER.md(.tmpl) Current: their Severity/Blocks and merged.jsonl statements still hold
README.md, CLAUDE.md, AGENTS.md, CONTRIBUTING.md Current: nothing in the diff affects them

Coverage debt: the negated-label rule and the stated field in merged.jsonl have reference coverage only (docs/review-policy.md, Verbatim dispatch step 3), a common gap for internal collector behavior. ScopeFinding.stated and the deferred-issue annotation have reference coverage only and are not wired up from /ship until the Step 9.4 brief changes. No diagram drift: no ASCII or Mermaid diagram names the collector or the deferred renderer.

Test plan

  • Focused lane (test/review-dispatch.test.ts, prose-voice-floor, review-targeted, review-pass, review-dispatch-origin-base, review-scope, review-packets-removed, with the GSTACK_* launch variables unset): 146 pass, 0 fail.
  • Remote gate (gstack-pregate --remote, Ubicloud) at tree 589e629: 5684 tests, 0 failed.
  • bun run typecheck: clean. test/parity-suite.test.ts and the skill size guard pass.
  • CI at 54af2d4: 44 passed, 0 failed. The Windows (run 41294461341) and macOS named-regression (run 41294461201) lanes cleared the pregate's requires-remote obligations.

garrytan and others added 14 commits November 1, 2026 08:06
…nding (GST-766, failing first)

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…sing prose like 'found nothing CRITICAL' is no finding (GST-766)

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>
…a or slash; quantifiers and Markdown between negation and label; a field label or a located line is kept)

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
… a negated label must end the clause or name a kind of finding; bounded windows)

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…les that brought phantoms back; carry negation over a comma or slash; numeric zero is no negation)

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…766 part a, failing first)

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…lected label (GST-766 part a)

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…closes the open finding, so the next finding's Severity field no longer attaches to the previous one)

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
… always heads the next finding, indented or not)

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…ST-766)

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…ays in merged.jsonl and the deferred renderer

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

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(ship): review collector skips negated severity words and records the reviewer's stated severity (GST-766) v1.92.29.0 fix(ship): review collector skips negated severity words and records the reviewer's stated severity (GST-766) Nov 1, 2026
@capy-ai
capy-ai Bot merged commit 8cef24c into main Nov 1, 2026
62 checks passed
capy-ai Bot added a commit that referenced this pull request Nov 4, 2026
…ed line in READY and lane reports (GST-805) (#3807)

* test(captain): pin the Unverified line and the postmortem template (GST-805, failing first)

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

* feat(captain): postmortem template and step; Unverified line in READY and lane reports (GST-805)

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

* fix: pre-landing review fixes (GST-805: the lane guide says the lane writes Evidence and Unverified, /ship items 1-4; rewrap the READY contract paragraph)

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

* docs: CREW template rules 6-7 and the rule map name the Unverified line (GST-805 docs audit a242-1)

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

* test(archaeology): allow the captain skill to name its postmortem template (GST-805)

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

* fix(captain): trim Reports and READY-options prose so the merged skill stays under its 6,551-token ceiling (GST-805)

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>
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