Skip to content

A granted follow-up check that confirmed its blockers fixed now counts once the rest are ruled (GST-3501) - #4691

Merged
capy-ai[bot] merged 3 commits into
mainfrom
fixed-findings-no-longer-block-the-follow-up-check
Nov 22, 2026
Merged

capy-ai[bot] merged 3 commits into
mainfrom
fixed-findings-no-longer-block-the-follow-up-check

Conversation

@garrytan

@garrytan garrytan commented Nov 22, 2026 •

Copy link
Copy Markdown
Owner

/ship's finish now accepts a granted follow-up check that confirmed its blocking findings fixed (or auto-fixed), once the findings left over have been ruled.
Why: gbrain#10036 stalled at the review limit with every finding either fixed or ruled, because finish kept printing "FIX_CHECK: not counted".
Nothing to do. A stuck PR reruns finish at the same head after upgrading gstack; no new review round is needed.

What changed

The new test fails on main and passes on this branch: a ruled follow-up check with fixed or auto-fixed blockers now reads CURRENT

The new test fails on main and passes on this branch. A ruled follow-up check with fixed or auto-fixed blockers now reads CURRENT.

Before/after as text: The new test fails on main and passes on this branch: a ruled follow-up check with fixed or auto-fixed blockers now reads CURRENT
--- Before · before.txt · captured output
+++ After · after.txt · captured output
+(pass) a fixed blocker no longer holds a ruled fix-check row open (GST-3501) > GBRA-732's fix-check row reads CURRENT once its two deferred blockers are ruled [0.57ms]
+(pass) a fixed blocker no longer holds a ruled fix-check row open (GST-3501) > an unruled deferred blocker still holds the row open, and an open or skipped blocker still needs a ruling [0.14ms]
+ 2 pass
+ 0 fail
-(fail) a fixed blocker no longer holds a ruled fix-check row open (GST-3501) > GBRA-732's fix-check row reads CURRENT once its two deferred blockers are ruled [3.91ms]
-(fail) a fixed blocker no longer holds a ruled fix-check row open (GST-3501) > an unruled deferred blocker still holds the row open, and an open or skipped blocker still needs a ruling [1.30ms]
- 0 pass
- 2 fail
 

A PR whose follow-up check fixed its blockers and whose owner ruled the rest still could not finish, because finish said the check had unresolved findings. Owner rulings can clear a follow-up check's row, but the rule for what a ruling must cover counted every finding the reviewer had marked blocking, whatever its action, including the fixed ones. A fixed finding can't be ruled, so the row never cleared. Now holdsOpen in lib/review-evidence.ts skips a blocking finding recorded fixed or auto-fixed, the two actions the rest of the code already treats as resolved. Blocking findings that are open, deferred, noted or skipped still need a ruling. The policy docs (docs/ship-policy.md, docs/troubleshooting.md) now say the same.

Why

"FIX_CHECK: not counted (review has unresolved findings or did not finish clean)" kept printing on gbrain#10036 after every finding was fixed or ruled, so the PR sat at the review limit with nothing left to do. A row with no rulings already reads a fixed finding as resolved; rows with rulings now agree.

Blast radius

holdsOpen has three callers: withoutRuledNotes and rulingGap in lib/review-evidence.ts, and the rulable list in lib/ship-release.ts:360, which checks RULABLE first and so is unchanged (file:line read). Gate findings are unaffected because stampGateFindings never leaves a gate finding fixed; the 154 focused tests and the full CI run pass.

Pre-Landing Review

One finding, below the blocking floor: the first version exempted only fixed, but auto-fixed deadlocked the same way (reproduced with a probe). Fixed in f2b1a70, and the follow-up check of that fix found nothing.

Exploratory QA

Functional smoke on holdsOpen and reviewFreshness: the success path passed; the auto-fixed edge failed before the fix and passed after. Verdict: pass.

Tests
  • bun test on the new test plus 7 neighbouring files (review-loop-binding, review-log-findings, review-fix-range, ship-finish-ruled-notes, ship-gate-dispositions, review-plan-cli, pr-round-cli): 154 pass, 0 fail
  • The new test file fails on main (0 pass, 2 fail) and passes here (2 pass, 0 fail)
  • Full free suite in CI run 44998631665 at 4dc6c51: green
Agent notes

Agent notes

  • Refs GST-3501, gbrain#10036.
  • Source: GBRA-732's finish3.log at gbrain 8e0159ab (gstack 1.102.2.0) printed FIX_CHECK: not counted with all four findings ruled, because withoutRuledNotes returned the row unchanged while holdsOpen held the two fixed blockers. That's a reading of the code; finish wasn't rerun on GBRA-732's machine.
  • Post-review docs edit to docs/ship-policy.md read by one scoped reader: clean.
  • REVIEW_LOOP: passes=1 blocking_found=0 deferred=0 noted=2 fixed=1 scope=frozen 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)
{
  "schema_version": 1,
  "pr": 4691,
  "head": "4dc6c51548ac7ff145025f4ec7fd736a71bc2dfa",
  "version": "1.102.2.0",
  "base": "main",
  "gate": {
    "focused": {
      "pass": 154,
      "fail": 0,
      "skip": 0
    },
    "test": {
      "pass": 1746,
      "fail": 0,
      "skip": 0
    }
  },
  "ci_carried": [
    {
      "lane": "test",
      "run": 44998631665,
      "attempt": 1,
      "tree": "9f1e0e8fc4814a40a5771035e3f6020afd9ffc2c"
    }
  ],
  "calls": 41,
  "session_kind": "unattended",
  "run": "ship-4691",
  "head_tree": "9f1e0e8fc4814a40a5771035e3f6020afd9ffc2c",
  "product_patch_id": "fd361a963d99d2e6518553ac82d54a67d7bc1080",
  "gstack_version": "1.102.2.0",
  "review_depth": {
    "depth": "light",
    "class": "code",
    "runtime_lines": 15,
    "rules": "630fd3101899e28e",
    "base": "9cfbbb94fdc336548d28ba9347acdc9d3d1e994f",
    "registry": "9cfbbb94fdc336548d28ba9347acdc9d3d1e994f",
    "gate_scan": {
      "tagged": 0,
      "head": "4dc6c51548ac7ff145025f4ec7fd736a71bc2dfa"
    },
    "reasons": [
      "runtime=15"
    ],
    "risk": [],
    "mode": "panel"
  },
  "pregate": "requires-remote cleared @9f1e0e8fc481 (8 checks, current for 4dc6c51548ac)",
  "requires_remote": [
    "free-tests.yml/macos-named-regressions: https://github.com/garrytan/gstack/actions/runs/44998619335/attempts/1",
    "pregate.json/remote_gate: remote-gate tree=9f1e0e8fc481 tests=38830 skipped=69 runs=44998631665/1 profiles=ci-reuse/free-tests heads=4dc6c51548ac verified=2026-11-22T07:56:31.865Z"
  ],
  "issues": {
    "fixes": [],
    "refs": [],
    "flakes": []
  },
  "docs": {
    "status": "updated",
    "scope": "README.md, AGENTS.md, CLAUDE.md, CONTRIBUTING.md and docs/ (fix-check ruling contract)"
  },
  "review_loop": {
    "passes": 1,
    "blocking_found": 0,
    "deferred": 0,
    "noted": 2,
    "fixed": 1,
    "scope": "frozen",
    "fix_checks": 1,
    "rounds": 1,
    "dispatches": {
      "specialist": 3,
      "red-team": 1
    }
  },
  "gate_dispositions": []
}

Documentation

Status: updated. Two policy docs corrected to match the new fix-check ruling rule.

Scope: base 9cfbbb9 to f2b1a70 plus staged/unstaged changelog.d fragment: lib/review-evidence.ts (holdsOpen exempts blockers recorded fixed/auto-fixed), new test test/review-fixed-finding-ruled-row.test.ts, changelog fragment. Docs on fix-check rulings searched across docs/.

Documentation health

  • docs/ship-policy.md: Updated. Fix-check binding and Step 11 native-row rulings no longer require rulings for blockers recorded fixed or auto-fixed.
  • docs/troubleshooting.md: Updated. FIX_CHECK_OPEN meaning notes fixed/auto-fixed blockers never hold the row open.
  • docs/review-policy.md: Current.
  • changelog.d/fixed-findings-no-longer-block-the-follow-up-check.md: Current (parent-owned).

Coverage debt: none; internal rule change with reference coverage in ship-policy and troubleshooting. Diagram drift: none.

Review notes

Below the blocking floor (advisory, informational, test-gap or wording items); recorded here and not fixed in this PR.

  • INFORMATIONAL lib/review-evidence.ts:347 A non-gate blocking finding with action kept or restored still holds a ruled row open; RULABLE excludes both, so a ruling cannot clear it (same class as fixed). Reachability for non-gate findings unknown; the PR makes nothing worse. Severity: Low. Blocks: no.
  • INFORMATIONAL lib/review-evidence.ts:347 The exemption trusts a reader's fixed claim on a stopped fix-check row whose tree did not change; a later edit makes the row STALE and the same trust already applies to rows whose findings are all fixed. Severity: Low. Blocks: no.

Approvals

No approvals recorded for branch fixed-findings-no-longer-block-the-follow-up-check.
Plan: exempt: bug fix (failing-first test, GST-3501)
Plan check: exempt bug fix

{
  "schema_version": 1,
  "pr": 4691,
  "head": "4dc6c51548ac7ff145025f4ec7fd736a71bc2dfa",
  "version": "1.102.2.0",
  "base": "main",
  "gate": {
    "focused": {
      "pass": 154,
      "fail": 0,
      "skip": 0
    },
    "test": {
      "pass": 1746,
      "fail": 0,
      "skip": 0
    }
  },
  "ci_carried": [
    {
      "lane": "test",
      "run": 44998631665,
      "attempt": 1,
      "tree": "9f1e0e8fc4814a40a5771035e3f6020afd9ffc2c"
    }
  ],
  "calls": 41,
  "session_kind": "unattended",
  "run": "ship-4691",
  "head_tree": "9f1e0e8fc4814a40a5771035e3f6020afd9ffc2c",
  "product_patch_id": "fd361a963d99d2e6518553ac82d54a67d7bc1080",
  "gstack_version": "1.102.2.0",
  "review_depth": {
    "depth": "light",
    "class": "code",
    "runtime_lines": 15,
    "rules": "630fd3101899e28e",
    "base": "9cfbbb94fdc336548d28ba9347acdc9d3d1e994f",
    "registry": "9cfbbb94fdc336548d28ba9347acdc9d3d1e994f",
    "gate_scan": {
      "tagged": 0,
      "head": "4dc6c51548ac7ff145025f4ec7fd736a71bc2dfa"
    },
    "reasons": [
      "runtime=15"
    ],
    "risk": [],
    "mode": "panel"
  },
  "pregate": "requires-remote cleared @9f1e0e8fc481 (8 checks, current for 4dc6c51548ac)",
  "requires_remote": [
    "free-tests.yml/macos-named-regressions: https://github.com/garrytan/gstack/actions/runs/44998619335/attempts/1",
    "pregate.json/remote_gate: remote-gate tree=9f1e0e8fc481 tests=38830 skipped=69 runs=44998631665/1 profiles=ci-reuse/free-tests heads=4dc6c51548ac verified=2026-11-22T07:56:31.865Z"
  ],
  "issues": {
    "fixes": [],
    "refs": [],
    "flakes": []
  },
  "docs": {
    "status": "updated",
    "scope": "README.md, AGENTS.md, CLAUDE.md, CONTRIBUTING.md and docs/ (fix-check ruling contract)"
  },
  "review_loop": {
    "passes": 1,
    "blocking_found": 0,
    "deferred": 0,
    "noted": 2,
    "fixed": 1,
    "scope": "frozen",
    "fix_checks": 1,
    "rounds": 1,
    "dispatches": {
      "specialist": 3,
      "red-team": 1
    }
  },
  "gate_dispositions": []
}

… the rest are ruled (GST-3501)

holdsOpen kept a blocking finding open whatever its action, so a fix-check row that listed the blockers it confirmed fixed could never be cleared by rulings, and a fixed finding cannot be ruled (gbrain#10036). A blocking finding recorded as fixed no longer holds the row open.

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

trunk-io Bot commented Nov 22, 2026 •

Copy link
Copy Markdown

😎 This pull request was merged.

garrytan and others added 2 commits November 22, 2026 06:39
Review-Finding: p1/specialist-batched#1 reader=red-team
Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…policy docs (GST-3501)

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