Owner rulings close a stopped review whose findings were logged in a findings file (GST-3296) (#4568)

When /ship's final review is logged with `--findings `, or the native
reader's row lists no findings, the owner's `gstack-approvals rule` rows
now close those rows at Step 11.5.

Why: harness-evals#515 had all 12 rulings recorded and green CI, yet
/ship stopped at Step 11.5 because the rulings had nothing to match.

Nothing to do: rows that already work read the same, and an unruled
blocker, a noted CRITICAL or an unfinished pass still refuses.

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
Review-Finding: p1/specialist-batched#1 reader=specialist-batched
This commit is contained in:
Garry Tanandcapy-ai[bot] authored and GitHub committed 2026-11-20 19:59:55 +00:00
1 parent a529769efd
commit acb1f4ece9
5 files changed
+182 -14

No files matched your search

+11 -4
View File
@@ -12,7 +12,10 @@
# those approval ids (lib/gate-dispositions.ts). review_freshness counts the owner's
# gstack-approvals rule rows at a head in the row's range (ruledOn), and the row's `ruled_notes`
# lists their approval ids; values the row itself carried are discarded. When a stopped pass stays
# UNVERIFIED, its reason names the findings no ruling covers yet (rulingGap, GST-3267).
# UNVERIFIED, its reason names the findings no ruling covers yet (rulingGap, GST-3267), or says the row
# lists no findings at all. A stopped row logged with --findings shows that file's findings, and a native
# row that lists none shows its pass's review-row findings, with `findings_from` naming the source
# (withCollectedFindings, GST-3296).
set -euo pipefail
GSTACK_BUN_CONFIG=/dev/null; case "${OSTYPE:-}" in msys*|cygwin*) if command -v cygpath >/dev/null 2>&1; then GSTACK_BUN_CONFIG=NUL; fi ;; esac
SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)"
@@ -27,7 +30,7 @@ GSTACK_HOME="$_gstack_sr_root"
WTREE=$("$SCRIPT_DIR/gstack-wtree" --review 2>/dev/null || echo "unknown")
if [ -f "$GSTACK_HOME/projects/$SLUG/$BRANCH-reviews.jsonl" ]; then
GSTACK_REVIEW_LIB="$SCRIPT_DIR/../lib/review-evidence.ts" GSTACK_GATE_LIB="$SCRIPT_DIR/../lib/gate-dispositions.ts" GSTACK_RULED_LIB="$SCRIPT_DIR/../lib/ruled-notes.ts" GSTACK_REVIEW_WTREE="$WTREE" bun --no-env-file --config="${GSTACK_BUN_CONFIG:-/dev/null}" -e '
const { reviewFreshness, rulingGap } = await import(process.env.GSTACK_REVIEW_LIB);
const { reviewFreshness, rulingGap, withCollectedFindings } = await import(process.env.GSTACK_REVIEW_LIB);
const { dispositionedOn, gateKey, readGateDispositions, ruledOn, showDispositioned } = await import(process.env.GSTACK_GATE_LIB);
const { readRuledNotes } = await import(process.env.GSTACK_RULED_LIB);
let dispositions = [];
@@ -36,9 +39,13 @@ if [ -f "$GSTACK_HOME/projects/$SLUG/$BRANCH-reviews.jsonl" ]; then
let rulings = [];
try { rulings = readRuledNotes(process.cwd()); }
catch (e) { console.error("gstack-review-read: rulings unreadable, none applied: " + e.message); }
for (const line of (await Bun.stdin.text()).split("\n").filter(Boolean)) {
const recs = (await Bun.stdin.text()).split("\n").filter(Boolean).map(line => {
try { const rec = JSON.parse(line); return rec && typeof rec === "object" && !Array.isArray(rec) ? rec : null; } catch { return null; }
});
withCollectedFindings(recs.filter(Boolean));
for (const rec of recs) {
try {
const rec = JSON.parse(line);
if (!rec) throw new Error("malformed");
delete rec.review_freshness;
delete rec.gate_dispositions;
delete rec.ruled_notes;
@@ -0,0 +1 @@
- **Owner rulings now close a stopped review whose findings were logged in a findings file.** When /ship's final review was logged with `gstack-review-log --findings <file>`, or the native reader's row listed no findings, `gstack-review-read` had nothing to match the owner's `gstack-approvals rule` rows against, so Step 11.5 stayed unverified even with every blocker ruled (harness-evals#515). It now reads the file's findings onto the row while the file still matches the counts the row recorded, and gives a native row with no findings the same pass's review findings, so the existing rulings bind both rows at the tree they read. A noted CRITICAL still needs its own ruling, an unruled blocker or a pass that didn't complete still refuses, and a row that claims issues but lists no findings now says so in its reason.
+12 -1
View File
@@ -1814,6 +1814,15 @@ closed. So a final review or native reader that stopped on findings the owner th
ruled reads `CURRENT` at the one tree its `incomplete` binding names, while a ruling
on another branch, at another head, for another finding or by gstack itself
closes nothing (harness-evals#498).
A stopped Step 9 row logged with `--findings <file>` carries its findings in that
file, not on the row, so `gstack-review-read` shows the file's findings on the row
(`findings_from` names the file) while the file still derives the counts the row
recorded. A Step 11 native row that lists no findings shows the findings of the
Step 9 row of the same pass, commit and bound tree, because Step 9 carries Step
11's queued findings; rulings must then cover every blocker of that pass. A file
that is missing or changed attaches nothing, and any row that claims issues but
lists no findings reads `it lists no findings (fcount 0) but claims …` with the
cause (harness-evals#515, GST-3296).
<a id="security-findings-stay-private"></a>
**Security findings stay private (GST-3076).** A PR body keeps every earlier
@@ -1887,7 +1896,9 @@ finding as `kept` with `reason: owner disposition <id>: <reason>` and
row as if the findings were kept, so /ship's gate rules (`--blocking-open`,
`--gate-open`, the draft state, the `Gate edits:` counts) read them as kept once it
reads the row again. As with rulings, a row derived from a findings file
(`status_source: derived`) is not cleared. Nothing is hidden: finish prints each as
(`status_source: derived`) is cleared only through the file's findings
`gstack-review-read` shows on it, so a missing or changed file clears nothing
(GST-3296). Nothing is hidden: finish prints each as
`GATE_DISPOSITION: <fingerprint> [gate <gate_id>] at <head12> by <who> at <time>:
<reason> — "<words>" (approval <id>)`, ending `(… not applied)` when no review row's
range holds it; `gstack-approvals dispositions` prints one `Gate disposition: …`
+53 -9
View File
@@ -1,7 +1,7 @@
import { createHash } from 'node:crypto';
import { spawnSync } from './spawn-sync';
import { closeSync, constants, fstatSync, lstatSync, mkdirSync, openSync, readFileSync, unlinkSync, writeFileSync } from 'node:fs';
import { join } from 'node:path';
import { join, resolve } from 'node:path';
import { deriveReviewStatus, isCriticalFinding, isOpenByAction, readJsonl } from './headless-artifacts';
import { resultLine, type ResultCodeName } from './result-codes';
@@ -260,7 +260,7 @@ export function deriveFromFindings(rec: Record<string, any>, findingsPath: strin
if (mismatches.length) {
throw new ReviewLogError('REVIEW_STATUS_MISMATCH', `review-log: status mismatch: ${mismatches.join('; ')} (${derived.findings_open} open of ${derived.findings_total}) (REVIEW_STATUS_MISMATCH)`);
}
return { ...rec, ...derived, status_source: 'derived', findings_file: findingsPath };
return { ...rec, ...derived, status_source: 'derived', findings_file: resolve(findingsPath) };
}
export function bindReview(rec: Record<string, any>, token: string, env = process.env, findingsPath?: string): Record<string, any> {
@@ -343,7 +343,7 @@ export const RULABLE = new Set(['open', 'skipped', 'noted', 'deferred']);
export const holdsOpen = (f: unknown) => !record(f) || unresolvedFinding(f) || f.blocking === true;
/**
* GST-1537: the claimed row with each finding the owner ruled a disclosed note (`ruled`: fingerprints from approved
* 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
* `gstack-approvals rule` rows, lib/ruled-notes.ts, never from the row itself) taken out, and recorded clean when the
* rest leave nothing unresolved and the findings account for every claimed issue and critical; otherwise unchanged. An open
* finding is rulable too: a fix-check that finds a CRITICAL stops for the owner (review-army decision 3.5 sends it to decision 2)
@@ -357,25 +357,69 @@ const isRuledBy = (ruled: ReadonlySet<string>, gated: ReadonlySet<string>) => (f
function withoutRuledNotes(rec: Record<string, any>, ruled: ReadonlySet<string>, gated: ReadonlySet<string>): Record<string, any> {
const isRuled = isRuledBy(ruled, gated);
if ((!ruled.size && !gated.size) || rec.status_source === 'derived' || rec.completed !== true || !Array.isArray(rec.findings) ||
if ((!ruled.size && !gated.size) || rec.completed !== true || !Array.isArray(rec.findings) ||
!rec.findings.some(isRuled) || rec.findings.length < Number(rec.issues_found ?? 0) ||
rec.findings.filter(f => record(f) && isCriticalFinding(f)).length < Number(rec.critical ?? 0) ||
rec.findings.some(f => !isRuled(f) && holdsOpen(f))) return rec;
return { ...rec, status: 'clean', issues_found: 0, critical: 0, informational: 0, findings: rec.findings.filter(f => !isRuled(f)) };
return { ...rec, status: 'clean', issues_found: 0, critical: 0, informational: 0, findings: rec.findings.filter(f => !isRuled(f)),
...(rec.status_source === 'derived' ? { unresolved: 0, critical_gaps: 0, findings_open: 0 } : {}) };
}
const listsNone = (rec: Record<string, any>) => !Array.isArray(rec.findings) || rec.findings.length === 0;
const same = (a: unknown, b: unknown) => typeof a === 'string' && a === b;
/**
* GST-3296 (harness-evals#515): gstack-review-read's view of the findings rulings match on a stopped row that lists none
* inline. A Step 9 row logged with `--findings <file>` (status_source derived) takes that file's findings while the file still
* derives the counts the row recorded. An adversarial-review row that lists none takes the findings of the review row of the
* same pass, commit and bound tree, which carries Step 11's queued findings, so its rulings must cover that whole pass. A
* clean row is left alone, and a file that cannot be read or no longer matches attaches nothing and sets `findings_unread`.
*/
export function withCollectedFindings(rows: Record<string, any>[]): void {
for (const rec of rows) {
delete rec.findings_from;
delete rec.findings_unread;
if (rec.status_source !== 'derived' || rec.status === 'clean' || typeof rec.findings_file !== 'string' || !listsNone(rec)) continue;
let read;
try { read = readJsonl(rec.findings_file); }
catch (e: any) { rec.findings_unread = `its findings file ${rec.findings_file} is unreadable (${e.code ?? e.message})`; continue; }
stampGateFindings(read.rows, 'unattended');
const derived: Record<string, any> = deriveReviewStatus(read.rows);
if (read.errors.length || ([...DERIVED_KEYS, 'findings_total', 'findings_open'] as const).some(key => rec[key] !== derived[key])) {
rec.findings_unread = `its findings file ${rec.findings_file} no longer holds what the row recorded (${read.errors.length ? 'malformed' : `${derived.findings_open} open of ${derived.findings_total} now, ${rec.findings_open} of ${rec.findings_total} logged`})`;
continue;
}
rec.findings = read.rows;
rec.findings_from = rec.findings_file;
}
for (const rec of rows) {
if (rec.skill !== 'adversarial-review' || rec.status === 'clean' || !listsNone(rec)) continue;
const pass = rows.findLast(r => r.skill === 'review' && r.via === rec.via && r.pass === rec.pass && same(r.commit_full, rec.commit_full) &&
same(r.review_binding?.end_wtree, rec.review_binding?.end_wtree));
if (pass && !listsNone(pass)) {
rec.findings = structuredClone(pass.findings);
rec.findings_from = `the pass ${pass.pass} review row${pass.findings_from ? ` (${pass.findings_from})` : ''}`;
} else if (pass?.findings_unread) rec.findings_unread = `the pass ${pass.pass} review row's findings are unavailable: ${pass.findings_unread}`;
}
}
/**
* GST-3267 (harness-evals#498): why the rulings did not clear a completed pass that stopped (converged:false, bound
* `incomplete` on unchanged content). Names each finding that still holds the row open with no ruling, a `noted` or
* `deferred` CRITICAL included, and a gate finding with the gate_id its disposition needs, or says the findings list
* fewer issues than the row claims; undefined for any other row.
* fewer issues than the row claims; undefined for any other row. Any diff review row that claims issues but lists no
* findings says so, with why none were collected (GST-3296, harness-evals#515).
*/
export function rulingGap(rec: Record<string, any>, ruled: ReadonlySet<string>, gated: ReadonlySet<string>): string | undefined {
const binding = rec.review_binding;
if (!DIFF_REVIEWS.has(rec.skill) || rec.skill === 'ship' || rec.scope === 'fix-range' || rec.status_source === 'derived' ||
rec.completed !== true || rec.converged !== false || binding?.state !== 'incomplete' || !binding.start_wtree ||
binding.start_wtree !== binding.end_wtree || !Array.isArray(rec.findings)) return;
if (!DIFF_REVIEWS.has(rec.skill) || rec.skill === 'ship' || rec.skill === 'codex-review') return;
const issues = Number(rec.issues_found ?? 0), critical = Number(rec.critical ?? 0);
if (listsNone(rec) && (issues > 0 || critical > 0 || rec.status === 'issues_found' || rec.status === 'issues_open')) {
return `it lists no findings (fcount 0) but claims ${rec.issues_found ?? 'unspecified'} issue(s) and ${rec.critical ?? 'unspecified'} CRITICAL, so no ruling can match it: ${rec.findings_unread
?? (rec.skill === 'adversarial-review' ? 'no review row of the same pass, commit and tree lists that pass\'s findings either' : 'its findings were logged neither inline nor with --findings')}`;
}
if (rec.scope === 'fix-range' || rec.completed !== true || rec.converged !== false || binding?.state !== 'incomplete' || !binding.start_wtree ||
binding.start_wtree !== binding.end_wtree || !Array.isArray(rec.findings)) return;
const listedCritical = rec.findings.filter(f => record(f) && isCriticalFinding(f)).length;
if (rec.findings.length < issues || listedCritical < critical) {
return `its findings list ${rec.findings.length} issue(s) and ${listedCritical} CRITICAL, fewer than the ${issues} issue(s) and ${critical} CRITICAL it claims, so no ruling can cover the rest`;
+105
View File
@@ -681,3 +681,108 @@ describe('a stopped review names the findings its rulings leave open (harness-ev
expect(rowsAt(f)[0].review_freshness.reason).toBe(`${FALLBACK}: 2 finding(s) still need an owner ruling at this head: src/x.ts:1:dup (CRITICAL, deferred); ${gate.fingerprint} (CRITICAL, open; gate g-x3 needs a gate disposition, not a ruling) (a noted or deferred CRITICAL still counts as open)`);
});
});
// harness-evals#515 (HARN-108, 2026-11-20, 630a9903): round 2 stopped on 9 CRITICALs. The final Step 9 row was logged with
// `--findings p2/findings.jsonl` (status_source derived, no inline findings) and the in-host native row with no findings at
// all, so the 12 rulings (9 blockers plus 3 partial fixes from round 1) had nothing to match: both rows read UNVERIFIED with
// ruled_notes 0 and the bare fallback reason, and no supported command could attach the collected findings.
const HE515_OPEN = ['scripts/mcp-at-scale/run.ts:383:testing', 'scripts/mcp-at-scale/run.ts:699:state-matrix', 'scripts/mcp-at-scale/run-shard-vm.sh:175:testing',
'scripts/mcp-at-scale/analysis/analyze.ts:92:red-team', 'scripts/mcp-at-scale/run-shard-vm.sh:144:red-team', 'scripts/mcp-at-scale/run.ts:812:red-team',
'scripts/mcp-at-scale/run-shard-vm.sh:115:money', 'scripts/mcp-at-scale/run-shard-vm.sh:123:money', 'scripts/mcp-at-scale/run.ts:636:money'];
const HE515_RAISED = ['specialist-batched', 'specialist-batched', 'specialist-batched', 'red-team', 'red-team', 'red-team', 'targeted', 'targeted', 'adversarial-native'];
const HE515_NOTED = ['scripts/mcp-at-scale/run-shard-vm.sh:73:testing', 'scripts/mcp-at-scale/run-shard-vm.sh:124:data-loss', 'scripts/mcp-at-scale/analysis/interim.ts:137:functional-contract',
'scripts/mcp-at-scale/run.ts:380:functional-contract', 'scripts/mcp-at-scale/grade.py:88:functional-contract'];
const HE515_PARTIAL = ['scripts/mcp-at-scale/run-shard-vm.sh:56:money', 'scripts/mcp-at-scale/run-shard-vm.sh:56:red-team', 'scripts/mcp-at-scale/run-shard-vm.sh:59:gate'];
const HE515_FINDINGS = [
...HE515_OPEN.map((fingerprint, i) => ({ fingerprint, severity: 'CRITICAL', blocking: true, action: 'open', raised_by: HE515_RAISED[i], locus: 'diff' })),
...HE515_NOTED.map(fingerprint => ({ fingerprint, severity: 'INFORMATIONAL', blocking: false, action: 'noted', raised_by: 'outside-voice', locus: 'diff' })),
];
const HE515_STEP9 = { pass: 2, completed: true, converged: false, cycles: 1, critical: 9, informational: 5 };
const HE515_NATIVE = { pass: 2, source: 'in-host', host: 'capy', phase: 'adversarial', gate: 'issues_found', status: 'issues_found', completed: true, converged: false,
outside_provider: 'host-subagent', outside_status: 'completed' };
function he515(findings: Record<string, unknown>[] = HE515_FINDINGS, step9: Record<string, unknown> = {}, findingsArg?: string) {
const f = shipFixture({ 'src/x.ts': 'export const x = 1;\n' }, { 'src/x.ts': 'export const x = 2;\n' });
ships.push(f);
const file = path.join(path.dirname(f.state), 'p2-findings.jsonl');
fs.writeFileSync(file, findings.map(x => JSON.stringify(x)).join('\n') + '\n');
const range_base = f.git('merge-base', 'main', 'HEAD').stdout.trim();
const start = run(f, 'gstack-review-log', ['--start', 'review']);
expect(start.status, start.stderr).toBe(0);
const logged = run(f, 'gstack-review-log', [JSON.stringify({ skill: 'review', timestamp: '2026-11-20T16:57:40Z', via: 'ship', review_scope: 'frozen', range_base, ...HE515_STEP9, ...step9 }), '--finish', start.stdout.trim(), '--findings', findingsArg ?? file]);
expect(logged.status, logged.stderr).toBe(0);
logRow(f, 'adversarial-review', HE515_NATIVE);
return { f, file, head: f.git('rev-parse', 'HEAD').stdout.trim() };
}
const he515Rows = (f: ShipFx) => ['review', 'adversarial-review'].map(s => readRow(f, s));
const ruleAll = (f: ShipFx, head: string, fps: string[]) => fps.map(x => { const r = rule(f, x, head, 'HARN-1, 2026-11-20'); expect(r.status, r.stderr).toBe(0); return JSON.parse(r.stdout).added[0] as string; });
// Value: protects=harness-evals#515: the owner's rulings close a stopped Step 9 row whose findings live in its --findings file
// and the native row that lists none, and only when every blocker of that pass is ruled; fails_when=either row stays
// UNVERIFIED after all 9 rulings, reads CURRENT with a blocker unruled, a noted CRITICAL clears unruled, a completed:false
// row clears, a changed findings file still binds, or a findings-less row's reason does not say it lists no findings;
// seam=gstack-review-log --findings, gstack-approvals rule and gstack-review-read on the stored rows; no_claim=finish's
// fix-check chain and the receipt write
describe('rulings close a stopped review whose findings are in its findings file (harness-evals#515, GST-3296)', () => {
test('#515: both rows read UNVERIFIED with no ruling, then CURRENT on the tree they read once the 9 blockers are ruled', () => {
const { f, head } = he515();
const before = he515Rows(f);
expect(before.map(r => [r.review_freshness.status, r.review_binding.state, r.status_source])).toEqual([['UNVERIFIED', 'incomplete', 'derived'], ['UNVERIFIED', 'incomplete', 'claimed']]);
expect(before[0].review_freshness.reason).toStartWith(`${FALLBACK}: 9 finding(s) still need an owner ruling at this head: ${HE515_OPEN[0]} (CRITICAL, open)`);
const approvals = ruleAll(f, head, [...HE515_OPEN, ...HE515_PARTIAL]);
const [review, native] = he515Rows(f);
expect([review.review_freshness, native.review_freshness]).toEqual(Array(2).fill({ status: 'CURRENT', reason: 'completed clean pass on unchanged content' }));
expect([review.ruled_notes, native.ruled_notes]).toEqual([approvals.slice(0, 9), approvals.slice(0, 9)]);
expect([review.findings.length, native.findings.length, native.findings_from]).toEqual([14, 14, `the pass 2 review row (${review.findings_file})`]);
expect(review.review_binding.start_wtree).toBe(native.review_binding.end_wtree);
});
test('one blocker left unruled keeps both rows UNVERIFIED and names it', () => {
const { f, head } = he515();
ruleAll(f, head, HE515_OPEN.slice(0, 8));
const left = `${FALLBACK}: 1 finding(s) still need an owner ruling at this head: ${HE515_OPEN[8]} (CRITICAL, open) (a noted or deferred CRITICAL still counts as open)`;
expect(he515Rows(f).map(r => r.review_freshness)).toEqual(Array(2).fill({ status: 'UNVERIFIED', reason: left }));
});
test('a noted CRITICAL in the findings file still needs its own ruling', () => {
const dup = { fingerprint: 'scripts/mcp-at-scale/run.ts:637:money', severity: 'CRITICAL', blocking: false, action: 'noted', raised_by: 'adversarial-native', locus: 'diff' };
const { f, head } = he515([...HE515_FINDINGS, dup]);
ruleAll(f, head, HE515_OPEN);
expect(he515Rows(f)[0].review_freshness.reason).toBe(`${FALLBACK}: 1 finding(s) still need an owner ruling at this head: ${dup.fingerprint} (CRITICAL, noted) (a noted or deferred CRITICAL still counts as open)`);
});
test('a pass that did not complete stays UNVERIFIED after every ruling', () => {
const { f, head } = he515(HE515_FINDINGS, { completed: false });
ruleAll(f, head, HE515_OPEN);
expect(he515Rows(f)[0].review_freshness).toEqual({ status: 'UNVERIFIED', reason: FALLBACK });
});
test('a findings file changed after logging binds nothing, and both reasons say the rows list no findings', () => {
const { f, file, head } = he515();
fs.writeFileSync(file, HE515_FINDINGS.slice(1).map(x => JSON.stringify(x)).join('\n') + '\n');
ruleAll(f, head, HE515_OPEN);
const [review, native] = he515Rows(f);
const unread = `its findings file ${file} no longer holds what the row recorded (8 open of 13 now, 9 of 14 logged)`;
expect([review.ruled_notes, review.findings, native.findings]).toEqual([undefined, undefined, undefined]);
expect([review.review_freshness.reason, native.review_freshness.reason]).toEqual([
`${FALLBACK}: it lists no findings (fcount 0) but claims 14 issue(s) and 9 CRITICAL, so no ruling can match it: ${unread}`,
`${FALLBACK}: it lists no findings (fcount 0) but claims unspecified issue(s) and unspecified CRITICAL, so no ruling can match it: the pass 2 review row's findings are unavailable: ${unread}`,
]);
});
test('a relative --findings path still binds when the rows are read from another directory', () => {
const { f, file, head } = he515(HE515_FINDINGS, {}, '../p2-findings.jsonl');
ruleAll(f, head, HE515_OPEN);
const read = f.run('/bin/sh', ['-c', 'cd src && exec "$0"', path.join(BIN, 'gstack-review-read')], { GSTACK_APPROVALS_MIRROR: '0' });
const review = read.stdout.split('\n---CONFIG---')[0]!.split('\n').flatMap(l => { try { const v = JSON.parse(l); return v?.skill === 'review' ? [v] : []; } catch { return []; } }).at(-1);
expect([review.findings_file, review.review_freshness]).toEqual([file, { status: 'CURRENT', reason: 'completed clean pass on unchanged content' }]);
});
test('a claimed row that lists no findings says so', () => {
const f = shipFixture({ 'src/x.ts': 'export const x = 1;\n' }, { 'src/x.ts': 'export const x = 2;\n' });
ships.push(f);
logRow(f, 'review', { ...HE515_STEP9, status: 'issues_found', issues_found: 14 });
expect(rowsAt(f)[0].review_freshness.reason).toBe(`${FALLBACK}: it lists no findings (fcount 0) but claims 14 issue(s) and 9 CRITICAL, so no ruling can match it: its findings were logged neither inline nor with --findings`);
});
});