Skip to content

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

Merged
capy-ai[bot] merged 3 commits into
mainfrom
owner-rulings-close-findings-file-reviews
Nov 20, 2026
Merged

capy-ai[bot] merged 3 commits into
mainfrom
owner-rulings-close-findings-file-reviews

Conversation

@garrytan

@garrytan garrytan commented Nov 20, 2026 •

Copy link
Copy Markdown
Owner

When /ship's final review is logged with --findings <file>, 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.

What changed

A stopped review logged with a findings file now reads CURRENT once the owner rules its blockers; before, the rulings had nothing to match

A stopped review logged with a findings file now reads CURRENT once the owner rules its blockers; before, the rulings had nothing to match.

Tests
  • CI free tests at eb38c60 (run 44804801877): green, 1719 test files.
  • bun test test/ship-finish-ruled-notes.test.ts test/review-log-findings.test.ts: green on the fixed tree (54 cases, none failing).
  • bun run typecheck: exit 0.
Before/after as text: A stopped review logged with a findings file now reads CURRENT once the owner rules its blockers; before, the rulings had nothing to match
--- Before · before.txt · captured output
+++ After · after.txt · captured output
 $ gstack-review-read   # stopped Step 9 row logged with --findings; owner ruled both blockers
+review_freshness: CURRENT (completed clean pass on unchanged content)
+ruled_notes: 2
+findings_from: <run dir>/p2-findings.jsonl
-review_freshness: UNVERIFIED (missing start capture or incomplete/nonconverged pass)
-ruled_notes: 0
 

The owner had ruled every blocker on harness-evals#515, CI was green, and /ship still stopped: the final review row kept its findings in a separate file and the native reader's row listed none, so the rulings had nothing to match. Now:

  • gstack-review-read shows a stopped row's findings from its findings file (findings_from names it), but only while the file still gives the counts the row recorded. A changed or missing file attaches nothing.
  • A native adversarial-review row that lists no findings shows the findings of the review row from the same pass, commit and tree, so its rulings must cover every blocker of that pass.
  • Rulings now apply to rows derived from a findings file, and clearing one zeroes its open counts.
  • A row that claims issues but lists no findings now says so and why, instead of the bare fallback reason.
  • gstack-review-log stores the findings file as an absolute path, so the review reads the same from any folder.
Why

"All 12 rulings recorded, CI green, and /ship still stops at Step 11.5" (harness-evals#515). Owner rulings are how a stopped review ships with its notes disclosed, so a review logged with a findings file now gets the same path as one with inline findings.

Blast radius

Only gstack-review-read's view of stored rows and the path gstack-review-log stores change. Every new path fails closed: an unreadable, changed or unmatched file attaches nothing and the row stays UNVERIFIED, which the negative-control tests and QA captures 006/008 show (script ran).

Test Coverage

Coverage audit (audit only, no tests generated): 13 of 18 changed paths have a test (72%). Gaps: an unreadable findings file, a native row with no matching review row, a malformed log line, and two guard orders; all fail closed.

Tests: 37 → 38 in test/ship-finish-ruled-notes.test.ts (+1 for the relative-path case, which fails without the fix and passes with it).
Tests ran: test 1719 files (CI run 44804801877).

Pre-Landing Review

One review pass (a batched specialist reader and the native adversarial reader), one fix, and one follow-up read of the fix.

  • Fixed: one finding from the batched reader (security finding, details recorded privately).
  • Skipped: re-reading a findings file treats its gate findings as unattended, so a row logged interactively with a kept gate finding reads as changed. It fails closed with a misleading reason; the fix needs a new stored field.
  • Follow-up read of the fix: no findings.
  • Native reader: five notes below the blocking floor (listed under Review notes) and one collected line that is not a finding, deferred below.
Deferred findings

Blocking findings in code this PR did not change (review scope: frozen). They stay on this PR and are not filed as issues.

  • Deferred: CRITICAL adversarial-native#1 Collected line '- A noted CRITICAL still needs its own ruling.' (the reader's list of new test cases; its verdict line says blocking=0).
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:397 Native-row fallback matches on pass, which the adversarial-review row template does not log; fails closed.
  • INFORMATIONAL lib/review-evidence.ts:396 A native row that lists no findings takes the Step 9 row's findings with no check that they include the native reader's own.
  • INFORMATIONAL lib/review-evidence.ts:384 Findings file is matched to its row by derived counts only, not by content hash.
  • INFORMATIONAL lib/review-evidence.ts:385 Stored findings path is read without an isFile or size check; a FIFO there would hang review-read.
  • INFORMATIONAL lib/review-evidence.ts:414 The lists-no-findings reason now also attaches to fix-range or non-converged rows that claim issues; gate unchanged, reason text wider.
Exploratory QA

Target: gstack-review-read and gstack-review-log on PR #4568 (functional CLI surface), isolated ship-bin fixtures under /tmp, no network, no production access.

Required smoke checks on current inputs (after the pre-landing fix):

  • Success: a stopped Step 9 row logged with an absolute --findings path reads CURRENT once both blockers are ruled ([checkpoint 010] (exploration-010.json)): pass.
  • Riskiest changed edge: a relative --findings path read from another directory ([checkpoint 009] (exploration-009.json)): pass after the fix; it failed closed (UNVERIFIED, ENOENT) before it ([checkpoint 006] (exploration-006.json), replay [checkpoint 008] (exploration-008.json)).

Evidence tool verdict: inconclusive, open only on superseded optional captures 002 and 005 (probe setup defects: a non-git log directory and a probe argument bug) and 007 (the relative-path control from the checkout root, not rerun after the fix). Every checkpoint: [002] (exploration-002.json) [003] (exploration-003.json) [004] (exploration-004.json) [005] (exploration-005.json) [006] (exploration-006.json) [007] (exploration-007.json) [008] (exploration-008.json) [009] (exploration-009.json) [010] (exploration-010.json).

Design Review

No frontend files changed — design review skipped.

Eval Results

No prompt-related files changed — evals skipped (the eval selector picked no probes or judges).

Review bot comments

No review bot comments.

Plan Completion

No plan file: bug fix, exempt from plan review.

TODOS

No TODO items completed in this PR.

Documentation

Status: updated. One factual correction in docs/ship-policy.md; no blockers.

Scope: base 6287c75..head 0393094 on owner-rulings-close-findings-file-reviews, 5 committed files and nothing staged, unstaged or untracked. The change is that owner rulings now close stopped reviews whose findings were logged with --findings, and an adversarial-review row that lists no findings takes the findings of the review row from the same pass (GST-3296).

Documentation health:

  • docs/ship-policy.md: Updated. The gate-disposition paragraph no longer says derived findings-file rows are never cleared; it now says they clear only through the file's findings that gstack-review-read shows on them. The new GST-3296 paragraph was checked against lib/review-evidence.ts.
  • changelog.d/ruled-notes-bind-findings-file-rows.md: Current. It was read only, because the parent owns changelog edits.
  • docs/troubleshooting.md: Current. No references were affected.

Coverage debt: withCollectedFindings and the findings_from and findings_unread fields are documented only as reference in ship-policy.md, with no troubleshooting entry for the new 'it lists no findings (fcount 0)' reason. This is a common gap.

Diagram drift: none.

Agent notes

GST-3296, lane GSTA-673 for GStack Minder. A replay of the real #515 rows (copied from HARN-108) through the new code reads both rows CURRENT with the recorded rulings.

Refs p1/specialist-batched#1

REVIEW_LOOP: passes=1 blocking_found=1 deferred=1 noted=5 fixed=1 scope=frozen ledgers_read=4 fix_checks=1 dispatches=2 est_input_tokens=9351
Pre-Landing Review: 8 issues — 1 auto-fixed, 1 asked and skipped, 1 deferred, 5 noted
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)
Deferred adversarial-native#1: a collector parse of the native reader's list of test cases ("A noted CRITICAL still needs its own ruling."); the reader's verdict line says blocking=0, and the judge step refuses lowering a list-item row.

Approvals

No approvals recorded for branch owner-rulings-close-findings-file-reviews.
Plan: exempt: bug fix (--kind fix) with a failing-first test, no plan review (R65)
Plan check: exempt bug fix

{
  "schema_version": 1,
  "pr": 4568,
  "head": "eb38c60a359dd74cc9e60cdc48ffa8bee04f979e",
  "version": "1.102.0.0",
  "base": "main",
  "gate": {
    "test": {
      "pass": 1719,
      "fail": 0,
      "skip": 0
    }
  },
  "ci_carried": [
    {
      "lane": "test",
      "run": 44804801877,
      "attempt": 1,
      "tree": "90a19794e9ad90913139820b8315ee12c355c6bf"
    }
  ],
  "calls": 41,
  "session_kind": "unattended",
  "run": "ship-4568",
  "head_tree": "90a19794e9ad90913139820b8315ee12c355c6bf",
  "product_patch_id": "9898d9f89e5a47673152b3ccb3a1bb25f5f087fc",
  "gstack_version": "1.102.0.0",
  "review_depth": {
    "depth": "light",
    "class": "code",
    "runtime_lines": 90,
    "rules": "3e7e9d5d0a0d8879",
    "base": "6287c75e2cd74392a5e601739f7d0d6e73f29df3",
    "registry": "6287c75e2cd74392a5e601739f7d0d6e73f29df3",
    "gate_scan": {
      "tagged": 0,
      "head": "eb38c60a359dd74cc9e60cdc48ffa8bee04f979e"
    },
    "reasons": [
      "runtime=90"
    ],
    "risk": [],
    "mode": "panel"
  },
  "pregate": "requires-remote cleared @90a19794e9ad (8 checks, current for eb38c60a359d)",
  "requires_remote": [
    "free-tests.yml/macos-named-regressions: https://github.com/garrytan/gstack/actions/runs/44804801877/attempts/1",
    "pregate.json/remote_gate: remote-gate tree=90a19794e9ad tests=38520 skipped=73 runs=44804801877/1 profiles=ci-reuse/free-tests heads=eb38c60a359d verified=2026-11-20T19:51:52.102Z"
  ],
  "issues": {
    "fixes": [],
    "refs": [],
    "flakes": []
  },
  "docs": {
    "status": "updated",
    "scope": "docs/, README.md, AGENTS.md, CLAUDE.md, CONTRIBUTING.md against base 6287c75 (153 docs files hashed); one correction in docs/ship-policy.md"
  },
  "review_loop": {
    "passes": 1,
    "blocking_found": 1,
    "deferred": 1,
    "noted": 5,
    "fixed": 1,
    "scope": "frozen",
    "fix_checks": 1,
    "rounds": 2,
    "est_input_tokens": 9351,
    "ledgers_read": 4,
    "dispatches": {
      "specialist-batched": 1,
      "fix-check": 1
    }
  },
  "gate_dispositions": []
}

Open in Capy

…findings file (GST-3296)

When /ship's final review is logged with --findings, or the native reader's
row lists no findings, gstack-review-read now matches the owner's rulings
against the collected findings, so Step 11.5 binds both rows
(harness-evals#515). A row that claims issues but lists none says so.

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 18:43
…s read from another folder

gstack-review-log now stores the findings file as an absolute path, so gstack-review-read finds it from any working directory.

Review-Finding: p1/specialist-batched#1 reader=specialist-batched
Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…on them

The gate-disposition paragraph still said a row derived from a findings file is never cleared; since GST-3296 it clears only through the findings gstack-review-read shows from that file.

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
@capy-ai
capy-ai Bot merged commit acb1f4e into main Nov 20, 2026
77 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