Repository navigation
A fix closes its review finding only after a finished full review, and a security finding never closes this way (GST-3260) - #4700
Merged
Conversation
…ed with the fix in range (GST-3260) Fixes the three open notes from the cross-family trail read of #4664, as GStack Minder ruled: the trailer route now needs a converged, verified full review whose range holds the fix; a raw security fingerprint never closes by grant or trailer, so its location cannot reach the PR body; and a fix-check row whose dispatch ledger cannot be read closes nothing. Each has a test that fails on #4664 at ac9163d. Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…ine never closes (GST-3260) The trailer route read a range_base of null, which every pass 1 logs, as a range that leaves the fix out, so a committed fix read clean by a new run's first pass no longer closed. And the security filter only caught fingerprints with a line number. Both clearing routes now use isSecurityFinding. Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
|
😎 This pull request was merged. |
Review-Finding: p1/specialist-batched#1 reader=testing Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
Merged
3 tasks done
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
A commit that says it fixes a review finding now closes that finding only after a full review that finished, made no fixes of its own, and read the fix. A security finding never closes this way, so its file and line can't reach the public PR body.
Why: three gaps on main let a finding close too easily: a review that was still fixing things, a security finding's location, and a follow-up check whose record of what it read was missing.
Nothing to do.
What changed
Review-Finding:trailer closes its finding only after a later full review that converged, was bound as verified, and whose range holds the fix commit. A first pass reads the whole pull request, so it still closes the finding.Why
These three gaps came from the second-model trail read of #4664, and #4696's last review found two more in the first fixes: a first pass's empty range was read as leaving the fix out, and a security fingerprint with no line slipped past the filter. Both are fixed here.
Blast radius
Only how /ship decides that a review finding is closed (
lib/fix-check-clearing.ts). Every change makes closing stricter or keeps it the same, except a first pass with an empty range, which closes a committed fix the way it did before #4664's follow-up work.Tests
test/fix-check-clearing.test.ts:range_base: nullstill closes.All four changed tests fail on main's
lib/fix-check-clearing.ts. CI's full free suite passed at this tree (run 45021799133).Review notes
Below the blocking floor (advisory, informational, test-gap or wording items); recorded here and not fixed in this PR.
sf-c3ba965832b8security finding, details recorded privatelysf-ef34bfd31835security finding, details recorded privatelysf-eb92cd996d77security finding, details recorded privatelylib/fix-check-clearing.ts:132a row with no range_base field reads as a first pass, as gate-dispositions.ts:211 does (INVESTIGATE, Low, Blocks: no)Agent notes
Split from #4696 by the owner's ruling (GSTA-36). #4696's routing of the final full review after a granted fix round waits for a design pass.
grantFixCheckedexists only on #4696's branch, so it is not in this PR. Evals: none affected (no prompt, template or judge changed). Coverage audit: 82% of paths (two below-floor gaps: an unresolvable range_base ref, a non-string range_base).Documentation (Step 14.5 audit docs-4700a-1, inserted unchanged):
Status: current. The documentation already matches this change, so no edits were made.
Scope: base 9055979..635da77 (3 commits): lib/fix-check-clearing.ts, test/fix-check-clearing.test.ts, docs/review-policy.md, plus a changelog.d fragment. Nothing was staged, unstaged or untracked.
Documentation health
Review-Finding:trailers.Coverage debt: none. There are no new commands, flags or settings, and the internal closing rules are documented in docs/review-policy.md.
Diagram drift: none.
Refs #4664
Approvals
Plan: exempt: bug fix (merge-check correctness, split from #4696 by GSTA-36)