Skip to content

Review read names the findings that owner rulings leave open (GST-3267) - #4553

Merged
capy-ai[bot] merged 3 commits into
mainfrom
fix/review-read-names-unruled-findings
Nov 20, 2026
Merged

capy-ai[bot] merged 3 commits into
mainfrom
fix/review-read-names-unruled-findings

Conversation

@garrytan

@garrytan garrytan commented Nov 20, 2026 •

Copy link
Copy Markdown
Owner

When owner rulings don't clear a stopped review, gstack-review-read now names each finding still missing a ruling (a noted CRITICAL included), and for a gate finding the gate_id its gate disposition needs.
Why: on harness-evals#498 all 22 rulings applied, yet both rows stayed unverified because 7 duplicates were logged noted at CRITICAL, and nothing said so.
Nothing to do: the review rules are unchanged; only the reason text gets more specific.

What changed

The unverified reason now names the findings still waiting on an owner ruling, and the gate disposition a gate finding needs

The unverified reason now names the findings still waiting on an owner ruling, and the gate disposition a gate finding needs.

  • lib/review-evidence.ts: new rulingGap explains a completed, stopped pass on unchanged content. It lists each finding that still holds the row open with no ruling, as <fingerprint> (<severity>, <action>), ten at most, or says the findings list fewer issues than the row claims. A gate finding also names its gate_id and says it needs a gate disposition, because a ruling never closes one. The ruling test is now one shared helper, so the listing and the clearing can't drift apart.
  • bin/gstack-review-read: appends that text to an UNVERIFIED reason. reviewFreshness and finish's FIX_CHECK lines are unchanged.
  • Docs: docs/ship-policy.md#ruled-notes and the open-findings entry in docs/troubleshooting.md say where the list appears, that a note never closes a CRITICAL, and what a gate finding needs.
Why

A stopped review that the owner's rulings did not clear said only "incomplete/nonconverged pass", so whoever was shipping could not tell which findings still needed a ruling. On harness-evals#498 that cost a round of guessing: the seven noted CRITICAL duplicates were invisible.

Blast radius

One reason string printed by gstack-review-read. No code compares that string, binding and refusal rules are unchanged, and only rows that already read UNVERIFIED get the longer text.

Test Coverage

Coverage audit (audit only): 7 of 10 changed paths have a test. Open gaps, below the blocking floor: a gate finding the owner already dispositioned, unfingerprinted or malformed labels, and the row-shape guards (fix-range, a moved tree, converged:true).

Pre-Landing Review

Pre-Landing Review: 2 issues — 2 auto-fixed, 0 asked, 0 deferred, 5 noted. A second reviewer read only the fix and found nothing blocking. A separate read of the whole change recommended shipping as is. Two rows the review tooling made out of that reader's scope bullets were ruled not findings by the owner.

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

Review notes

Below the blocking floor; recorded here and not fixed in this PR.

  • INFORMATIONAL lib/review-evidence.ts:385: the gate hint also shows for a gate finding logged deferred or noted, which a disposition cannot clear either.
  • INFORMATIONAL lib/review-evidence.ts:385: unfingerprinted findings are listed as if a ruling could clear them.
  • INFORMATIONAL lib/review-evidence.ts:373: the message points to a ruling even when a pass stopped because a reviewer timed out (existing binding policy).
  • INFORMATIONAL docs/ship-policy.md:1796: the docs say "any stopped review row"; fix-range, ship, derived and codex rows are skipped.
Exploratory QA

Four probes of rulingGap on owned fixtures: an unruled noted CRITICAL is named (pass), and a ruled gate finding is named with its gate_id (failed before the fix, passes after). The CLI path is covered by the tests, not probed separately.

Scope Drift

Scope Check: CLEAN. Intent: name the findings rulings leave open on a stopped review (GST-3267). Delivered: that, plus the gate-finding label a reviewer asked for.

Documentation

Status: current. The docs already match this change, so no edits were needed.

Scope: the committed diff a26529a..dc0ea33 (bin/gstack-review-read, lib/review-evidence.ts, docs/ship-policy.md, docs/troubleshooting.md, changelog.d fragment, one test). The candidate has no staged, unstaged or untracked files.

Documentation health:

  • docs/ship-policy.md: current. It already describes the new UNVERIFIED reason, which names unruled findings (at most ten), noted or deferred CRITICALs, and the gate_id a gate finding needs.
  • docs/troubleshooting.md: current. The new paragraph covers stopped final-review and native-reader rows, and the passage on re-checking a fix is still accurate.
  • changelog.d/review-read-names-unruled-findings.md: current and consistent with the code.
  • docs/standalone-binaries.md, docs/skills.md: current, because they describe gstack-review-read only in general terms.

Coverage debt: the new rulingGap reason has reference and how-to coverage in ship-policy and troubleshooting, and no tutorial. No critical gaps.

Diagram drift: none.

Tests
  • bun test --timeout=30000 test/ship-finish-ruled-notes.test.ts test/review-notes-only-pass.test.ts test/ship-gate-dispositions.test.ts (launch variables unset): 52 pass, 0 fail
  • CI free-tests run 44712099954 at dc0ea33: green
Agent notes

Lane GSTA-666, issue GST-3267. Follows #4552 (a26529a).

Approvals

Approved: yes (record r-513553f63311). The full approval record stays private.
Plan: exempt: bug fix with a failing-first test (R65)
Plan check: exempt bug fix

REVIEW_LOOP: passes=1 blocking_found=2 deferred=0 noted=5 fixed=2 scope=frozen open=2 ledgers_read=3 fix_checks=1 dispatches=4
Gate edits: none detected (1 listed, 0 read; patterns: RH-1,RH-3,RH-4,RH-12,RH-13,RH-14,RH-15,RH-16; unlisted idioms: none)
Ruled note: test/ship-finish-ruled-notes.test.ts:scope-list-1 at f680df6 ruled by Captain GStack Minder (GSTA-36) (relayed from GSTA-36:2026-11-20T09:27:57Z) at 2026-11-20T09:27:58.274Z: collector labelled the native reader's scope bullet CRITICAL; not a finding (approval a-a226e8195b1b)
Ruled note: test/ship-finish-ruled-notes.test.ts:scope-list-2 at f680df6 ruled by Captain GStack Minder (GSTA-36) (relayed from GSTA-36:2026-11-20T09:27:57Z) at 2026-11-20T09:27:58.361Z: collector labelled the native reader's scope bullet CRITICAL; not a finding (approval a-e16f41573ef7)

🤖 Generated with Claude Code

{
  "schema_version": 1,
  "pr": 4553,
  "head": "dc0ea33ce25955426b974dd85c982a0faae867bd",
  "version": "1.102.0.0",
  "base": "main",
  "gate": {
    "targeted": {
      "pass": 52,
      "fail": 0,
      "skip": 0
    }
  },
  "calls": 36,
  "session_kind": "unattended",
  "run": "/home/user/.capy/work/ship-4553",
  "head_tree": "6bab9d4da00adb64922cb3353da00018293a5464",
  "product_patch_id": "9237dac1ed5a9cc72f6ac0e1a430166bcef90518",
  "gstack_version": "1.102.0.0",
  "review_depth": {
    "depth": "light",
    "class": "code",
    "runtime_lines": 47,
    "rules": "3e7e9d5d0a0d8879",
    "base": "a26529ac8eb2c55a458058cbca428374318b370b",
    "registry": "a26529ac8eb2c55a458058cbca428374318b370b",
    "gate_scan": {
      "tagged": 0,
      "head": "dc0ea33ce25955426b974dd85c982a0faae867bd"
    },
    "reasons": [
      "runtime=47"
    ],
    "risk": [],
    "mode": "panel"
  },
  "pregate": "requires-remote cleared @6bab9d4da00a (8 checks, current for dc0ea33ce259)",
  "requires_remote": [
    "free-tests.yml/macos-named-regressions: https://github.com/garrytan/gstack/actions/runs/44712099954/attempts/1",
    "pregate.json/remote_gate: remote-gate tree=6bab9d4da00a tests=38503 skipped=73 runs=44712099954/1 profiles=ci-reuse/free-tests heads=dc0ea33ce259 verified=2026-11-20T09:48:17.430Z"
  ],
  "issues": {
    "fixes": [],
    "refs": [],
    "flakes": []
  },
  "docs": {
    "status": "current",
    "scope": "docs/ and README.md, against the diff a26529ac..dc0ea33c"
  },
  "review_loop": {
    "passes": 1,
    "blocking_found": 2,
    "deferred": 0,
    "noted": 5,
    "fixed": 2,
    "scope": "frozen",
    "fix_checks": 1,
    "rounds": 2,
    "ledgers_read": 3,
    "dispatches": {
      "specialist": 3,
      "red-team": 1
    }
  },
  "ruled_notes": [
    {
      "finding": "test/ship-finish-ruled-notes.test.ts:scope-list-1",
      "head": "f680df6d2f7a2e912cfd4b9d09cfdc05a8892d31",
      "by": "Captain GStack Minder (GSTA-36)",
      "reason": "collector labelled the native reader's scope bullet CRITICAL; not a finding",
      "at": "2026-11-20T09:27:58.274Z",
      "approval": "a-a226e8195b1b",
      "relayed": "GSTA-36:2026-11-20T09:27:57Z"
    },
    {
      "finding": "test/ship-finish-ruled-notes.test.ts:scope-list-2",
      "head": "f680df6d2f7a2e912cfd4b9d09cfdc05a8892d31",
      "by": "Captain GStack Minder (GSTA-36)",
      "reason": "collector labelled the native reader's scope bullet CRITICAL; not a finding",
      "at": "2026-11-20T09:27:58.361Z",
      "approval": "a-e16f41573ef7",
      "relayed": "GSTA-36:2026-11-20T09:27:57Z"
    }
  ],
  "gate_dispositions": []
}
{"head":"f680df6d2f7a2e912cfd4b9d09cfdc05a8892d31","run":"ship-4553","status":"started","review_loop":{"passes":1,"blocking_found":0,"deferred":0,"noted":0,"fixed":2,"scope":"frozen","rounds":1,"dispatches":{"specialist":3,"red-team":1}}}

Open in Capy

gstack-review-read's unverified reason now lists each finding still
missing a ruling, a noted CRITICAL included, or says the row lists
fewer findings than it claims (harness-evals#498, GST-3267).

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

trunk-io Bot commented Nov 20, 2026 •

Copy link
Copy Markdown

😎 This pull request was merged.

garrytan and others added 2 commits November 20, 2026 09:17
…test deferred and gate findings

Review-Finding: p1/specialist-batched#1 reader=specialist-batched
Review-Finding: p1/specialist-batched#2 reader=specialist-batched
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>
@capy-ai
capy-ai Bot merged commit bd04289 into main Nov 20, 2026
57 checks passed
@garrytan garrytan mentioned this pull request Nov 20, 2026
capy-ai Bot added a commit that referenced this pull request Nov 20, 2026
- Two /ship approval records stop needing workarounds. (#4549)
- For contributors: the paid auto-decide check counts a start step that ran while the skill loaded. (#4543)
- The destructive-command check closes three ways past its disk-wipe and force-push blocks. (#4534)
- A green CI run still counts when the repository's artifact storage is full. (#4536)
- `/cso` now audits repositories that track symlinks. (#4567)
- A doc-sync eval stops failing when the audit child drops one field from its result line. (#4555)
- The browse daemon no longer picks port 10080, which Chromium refuses to open. (#4554)
- Opted-in telemetry now says why a skill run ended, which coding agent and model family ran it, and whether an upgrade worked. (#4542)
- A preregistration with only its write-up and plain data now gets the write-up review: one reviewer, one round. (#4544)
- When owner rulings don't clear a stopped review, `gstack-review-read` now says which findings are left. (#4553)
- The prompt-routing hook now names your installed bug-fix skill on bug reports, alone, and never puts /verify ahead of it. (#4539)
- Owner rulings now close a stopped review whose findings were logged in a findings file. (#4568)
- /ship can finish after the owner accepts a stopped review's findings as open notes. (#4552)
- /ship no longer starts the full test suite on your machine when CI's earlier run can't be reused (GST-3277). (#4565)
- The prompt-routing hook no longer acts on words inside backticks. (#4566)
- In Claude Code, a gstack skill's start step now runs when the skill loads, so the model can't skip it. (#4509)
- gstack's telemetry backend only accepts writes through its own validated endpoint, and the community dashboard now counts real use. (#4537)
- gstack now says what it's adding before it adds a background job or a browser extension. (#4538)
- For contributors: every flaky pass in Free Tests is now recorded. (#4572)
- For contributors: Free Tests on pull requests starts its test shards one round of small jobs sooner. (#4570)
- Secret values written as `name=value` at the end of a path are now hidden. (#4571)

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