Skip to content

v1.91.367.0 fix(ship): collect never counts a non-review as clean, and a severity word used as a word is no finding (GST-434, GST-435) - #3677

Merged
capy-ai[bot] merged 11 commits into
mainfrom
gsta-167-nonreview
Oct 31, 2026
Merged

capy-ai[bot] merged 11 commits into
mainfrom
gsta-167-nonreview

Conversation

@garrytan

@garrytan garrytan commented Oct 31, 2026 •

Copy link
Copy Markdown
Owner
{
  "schema_version": 1,
  "pr": 3677,
  "head": "6a5ed5401989a995f4441983723b412b55785e01",
  "version": "1.91.362.0",
  "base": "main",
  "session_kind": "unattended",
  "head_tree": "6502b04ac2a8b71cbd23cb99b67527cf4f2c0233",
  "product_patch_id": "85db06bf3466a345d0d507bc69f72086f4c076d9",
  "gstack_version": "1.91.363.0",
  "review_depth": {
    "depth": "standard",
    "class": "code",
    "runtime_lines": 125,
    "rules": "150435b0a543019a",
    "base": "088bfc5914f8001a3d49b3a0c35d6f7cb800268c",
    "registry": "088bfc5914f8001a3d49b3a0c35d6f7cb800268c",
    "gate_scan": {
      "tagged": 0,
      "head": "6a5ed5401989a995f4441983723b412b55785e01"
    },
    "reasons": [
      "runtime=125>50"
    ]
  },
  "pregate": "requires-remote cleared @6502b04ac2a8 (1 checks, current for 6a5ed5401989)",
  "requires_remote": [
    "free-tests.yml/macos-named-regressions: https://github.com/garrytan/gstack/actions/runs/41196365482",
    "windows-free-tests.yml/windows-free-shard: https://github.com/garrytan/gstack/actions/runs/41196365389",
    "pregate.json/remote_gate: remote-gate tree=6502b04ac2a8 tests=3335"
  ],
  "docs": {
    "status": "updated",
    "scope": "docs/review-policy.md, changelog.d/gsta-167-nonreview.md, bin/gstack-review-dispatch help"
  },
  "review_loop": {
    "passes": 1,
    "blocking_found": 1,
    "deferred": 0,
    "noted": 4,
    "fixed": 1,
    "scope": "frozen",
    "fix_checks": 6
  },
  "review_targeted": {
    "classes": [
      "money",
      "gate"
    ],
    "rules": "baeb8f7ef7da92d0",
    "brief_sha": "7f92a0d0a8319c3c0e076fb3b1a4689c45120b2be2c14dfc7d4cb03aafa9d6a5",
    "product_patch_id": "85db06bf3466a345d0d507bc69f72086f4c076d9",
    "status": "done",
    "findings": 1,
    "raised_by": "targeted"
  }
}

Pre-Landing Review: REVIEW_LOOP: passes=1 blocking_found=1 deferred=0 noted=4 fixed=1 scope=frozen fix_checks=6. Six fix-checks against a cap of one: GStack Minder approved going over it and the GST-435 split. The pass-1 review-log row is missing, a known gap.

What this fixes

A reviewer that says it could not review counted as clean (GST-434, S1). In the GSTA-196 replay the batched specialist replied in prose that the diff base did not exist: "I'm not returning NO FINDINGS, because that would claim a clean diff I never saw." collect parsed that to zero findings and verify marked the brief collected, so VERIFY would have read clean from a reader that never saw the diff.

Now a reply with no finding must carry the clean marker its own brief asks for. Without one, collect records review: false, prints COLLECT_NOT_REVIEWED and exits 1. verify then reports that brief NOT_COLLECTED and the output NOT_REVIEWED, so VERIFY is dirty. A refusal isn't a dead end: re-send the brief verbatim and collect a real review, and verify marks the refusal VOIDED. The outside voice may fail without blocking, so collect --unavailable '<reason>' records its failure as missing coverage (UNAVAILABLE, unavailable=N). That flag is refused for every other reader, for an empty reason, and for an output that holds findings.

This PR also fixes one GSTA-196 over-split. The native adversarial voice wrote 4 findings, each a bold paragraph, then unlabeled bullets, then Severity: …. Each bullet closed the open finding, so each Severity: line opened a phantom: 8 findings. An unnumbered, unlabeled bullet with no file:line under a paragraph finding whose fields haven't come yet is now that finding's detail, so the sample collects as 4.

Split. On GStack Minder's ruling, this PR carries GST-434 only. Every label and negation change to parseFindings (GST-435) is reverted to main. Those changes and their tests are on branch gsta-435-seed (4dccba2) for the follow-up, which comes after #3670's replay.

The clean markers, from the sections' current text

Reader Marker Where the brief says it
specialist, specialist-batched NO FINDINGS alone on a line ship/sections/review-army.md:405 (review/sections/review-army.md:104); review/specialists/*.md:7
targeted NO FINDINGS review/specialists/targeted.md:7, plus the specialist body at ship/sections/review-army.md:405
red-team NO FINDINGS ship/sections/review-army.md:582 (review/sections/review-army.md:276); review/specialists/red-team.md:7
fix-check NO FINDINGS scripts/resolvers/fix-check.ts:20 ("the two words NO FINDINGS")
adversarial-native NO FINDINGS or the Recommendation: line ship/sections/adversarial.md:105 and :107 (review/sections/adversarial.md:99)
outside-voice the Recommendation: line ship/sections/adversarial.md:121 and :123 (review/sections/adversarial.md:113)

A marker counts only on its own line, with optional backticks or bold around it. A marker named inside a sentence doesn't count: the GSTA-196 refusal names NO FINDINGS in a sentence and is still a non-review. For a ledger written before this change, verify checks the marker again in the output file when the file still hashes to the recorded sha. Otherwise it falls back to collect's review field, so a legacy ledger with neither fails closed.

Proof (head 6a5ed54, main 71af16c)

  • Labels are unchanged from main. split-proof.ts runs main's parseFindings and this head's over 25 raw reader outputs (GSTA-189 and GSTA-196 baselines) and 2,172 finding records (arms C6, L6, A3668 u14 and 14pr, G1, L). It exits 1 on any difference other than a merge of fragments. Result: {"units":2197,"identical_units":2196,"old_findings":1405,"new_findings":1401,"fragment_merges":4,"other_differences":0}. The one changed unit is the GSTA-196 native sample, which has 4 merges and lowers no label: INVESTIGATE+High→High, CRITICAL+Low→CRITICAL, CRITICAL+Low→CRITICAL, INVESTIGATE+Low→Low (Low ranks above INVESTIGATE). As a negative control, the same script run against the GST-435 parser (4dccba2) exits 1 with 4 other differences.
  • Failing-first tests (test/review-dispatch.test.ts). On main, 5 fail and 28 pass. At this head, 33 of 33 pass. Fixtures: the GSTA-196 refusal (sha256 7150c3b9…, which matches the replay ledger's output), an empty reply, an "I could not access the diff" reply, a clean NO FINDINGS reply that still collects and verifies clean, a findings reply that is unchanged, a per-role marker matrix, the void and --unavailable paths, and the GSTA-196 native sample (8 findings on main, 4 here).
  • Reviewer briefs are byte-identical. gstack-review-dispatch render gives the same hash at main 71af16c and at this head for all 14 briefs, with the same slots. No section, checklist, resolver or lib/review-brief.ts byte changed.
  • Baseline ledgers verify the same as on main. The GSTA-189 combined ledger gives VERIFY: clean briefs=16 outputs=16 voided=1 on both. All six of its zero-finding outputs carry their marker. GSTA-196 p1b and fc are clean on both. The abandoned GSTA-196 p1 now names the refusal (OUTPUT specialist-batched NOT_REVIEWED).
  • Remote pregate: PREGATE_REMOTE: tree=6502b04ac2a8 tests=3335 failed=0 spent=0.05. The VM was destroyed (left=0 owner=gsta167).

Sibling PR #3665

#3665 merged first as v1.91.362.0. This branch merges main at c8e63c3 under GStack Minder's Rule 19 grant, and the one conflict was the ../lib/review-ledger import line, resolved as a union. #3665's fake host in test/review-pass.test.ts answered the outside voice with NO FINDINGS, which the outside prompt doesn't prescribe, so it now ends with a Recommendation: line (4dccba2).

Noted, not fixed (fix-check 6, below the floor)

  • An outside-voice refusal collected first without --unavailable (the Capy pass program does this) leaves its first output row NOT_REVIEWED even after the lead re-collects it as unavailable. Only a re-send followed by a review voids it, so VERIFY stays dirty until a fresh pass. This fails closed.
  • An output collected with --unavailable whose file has a Recommendation: line verifies as a review, not as UNAVAILABLE. No finding is lost. The targeted reader (money, gate) at this head raised the same point as its only finding, INFORMATIONAL.

Limits

  • A refusal that still writes its marker line counts as a review. Telling that apart from a real clean reply needs judgment, not a parser.
  • Prose severity words still collect exactly as on main, phantom findings included. That's GST-435, which ships separately.

Open in Capy

garrytan and others added 2 commits October 31, 2026 09:38
… as a non-review, never clean (GSTA-167)

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
… finding keeps its detail bullets (GST-435)

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

trunk-io Bot commented Oct 31, 2026 •

Copy link
Copy Markdown

😎 This pull request was merged.

garrytan and others added 9 commits October 31, 2026 10:03
…ct table rows keep their label; register the review-ledger fixtures (pre-landing review)

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…cker stays, detail bullets need no gap and no locus; a re-sent review voids a refusal and the outside voice can be collected unavailable (pre-landing review)

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
… phrase with and/or stays negated, table negation counts, --unavailable refuses an output with findings, VOIDED needs a re-send (fix-check)

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…cells, which ends a negated subject, and a negated subject never cancels a label on a file:line line (fix-check)

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…nding; "of which" stays inside a negated subject (fix-check)

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>

# Conflicts:
#	bin/gstack-review-dispatch
…dation: line, the marker its brief prescribes (#3665 integration)

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
… moves to its own PR (seed branch gsta-435-seed). Keeps the non-review rule and the detail-bullet merge (split)

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
@github-actions github-actions Bot changed the title fix(ship): collect never counts a non-review as clean, and a severity word used as a word is no finding (GST-434, GST-435) v1.91.367.0 fix(ship): collect never counts a non-review as clean, and a severity word used as a word is no finding (GST-434, GST-435) Oct 31, 2026
@capy-ai
capy-ai Bot merged commit 41a67b9 into main Oct 31, 2026
62 checks passed
garrytan added a commit that referenced this pull request Oct 31, 2026
…ew under GST-434's collect (main #3677)

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