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

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

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
Review-Finding: p1/specialist-batched#1 reader=red-team
This commit is contained in:
Garry Tanandcapy-ai[bot] authored and GitHub committed 2026-11-22 09:31:55 +00:00
1 parent 540da9b5b1
commit 82cc62d829
5 files changed
+60 -5

No files matched your search

+6 -2
View File
@@ -339,8 +339,12 @@ export const unresolvedFinding = (f: unknown) => record(f) && (f.action === 'ope
((f.action === 'deferred' || f.action === 'noted') && (f.blocking === true || isCriticalFinding(f))) ||
(!f.gate && isCriticalFinding(f) && isOpenByAction(f)));
export const RULABLE = new Set(['open', 'skipped', 'noted', 'deferred']);
/** What a ruling must cover before rulings can clear a row: every unresolved finding and every one the reader marked blocking, whatever its action. */
export const holdsOpen = (f: unknown) => !record(f) || unresolvedFinding(f) || f.blocking === true;
/**
* What a ruling must cover before rulings can clear a row: every unresolved finding and every one the reader marked blocking,
* unless the reader recorded it fixed or auto-fixed. A fixed finding cannot be ruled, and a row with no rulings already reads it as resolved,
* so holding it open left a fix-check that confirmed its blockers fixed uncountable (GST-3501, gbrain#10036).
*/
export const holdsOpen = (f: unknown) => !record(f) || unresolvedFinding(f) || (f.blocking === true && f.action !== 'fixed' && f.action !== 'auto-fixed');
/**
* GST-1537: the row (claimed, or derived with its file's findings shown, GST-3296) with each finding the owner ruled a disclosed note (`ruled`: fingerprints from approved