Repository navigation
/ship counts a clean recheck of granted fixes even when its brief was written just before the review started (GST-3523) - #4698
Merged
Conversation
… written just before the review started (GST-3523) The review pass writes the recheck's brief, which records the hunks its reader gets, and only then takes the review's start token. The row only attached records written after that start, so finish did not count a clean recheck. Recording the start now re-dates that record, but only while its digest still matches the hunks file. Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
|
😎 This pull request was merged. |
Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
fixListNames kept only ledger ids and path:line:category fingerprints, so a grant naming approval ids recorded an empty fix list and closed nothing (gbrain#10063). Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
Review-Finding: p1/specialist-batched#1 reader=red-team Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
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.
When an owner grants one recheck of a fix and it reads the fix clean, /ship now counts it, even when the review pass wrote the recheck's brief a moment before it took the review's start token.
Why: /ship only accepted the record of what the reviewer read if it was written after that start, so a clean recheck was not counted and the PR needed an owner's exception to finish (gbrain#10057).
Nothing to do.
What changed
gstack-review-dispatch mark --log-startrecords that start, it now re-dates the brief's hunks record, but only while the record's digest still matches the hunks file. So a record for hunks the reader never got is never attached.FIX_CHECK_HUNKS: restampedornot restampedso the pass shows what happened. An unreadable hunks file printsnot restamped (hunks file unreadable)and still records the start instead of failing.a-…). It used to keep only reader finding ids andpath:line:categoryfingerprints, so a grant naming ruled notes recorded an empty fix list and closed nothing (gbrain#10063).Why
Two runs on gbrain hit this: gbrain#10057, where the brief was written about two seconds before the start token, and gbrain#10063, where the same timing plus the dropped approval ids left a granted recheck closing nothing.
Blast radius
Only the recheck's hunks record in
lib/review-evidence.tsand the start-recording step inbin/gstack-review-dispatch. A record is re-dated only when its digest matches the hunks file at the moment the start is recorded; a clearing still needs the grant, the fix list and exactly one open blocker to agree on the same id, so approval ids can't close anything a grant didn't name.Tests
test/fix-check-hunks-restamp.test.ts(new; Windows-curated like the other dispatch-bin tests):Each case fails without its fix. CI's full free suite passed at this tree (run 45024757519).
Review notes
Below the blocking floor (advisory, informational, test-gap or wording items); recorded here and not fixed in this PR.
sf-7060f709df5fsecurity finding, details recorded privatelysf-a45a04086dfesecurity finding, details recorded privatelyAgent notes
GST-3523, same class as GST-3501 (#4691). Reported by GBRA-741 on gbrain#10057 (run ship4, grant a-6a2d74ebde72: hunks record 10:17:04.406Z, REVIEW_LOG_START 10:17:06.199Z) and gbrain#10063 (grant a-b306fda9cc20: render 12:29:07.561Z, row start 12:29:11.373Z). Pass 1's one red-team note (an unreadable hunks file failed the start) is fixed in 72dfa82. Evals: none affected (no prompt, template or judge changed). Coverage audit: no new test needed beyond the four cases above.
Documentation (Step 14.5 audit docs-4698b-1, inserted unchanged):
Status: updated. One factual edit, no blockers.
Scope: base 9055979 to head 72dfa82 (bin/gstack-review-dispatch, lib/review-evidence.ts, scripts/lib/windows-curation.ts, test/fix-check-hunks-restamp.test.ts, changelog.d/recheck-record-before-review-start.md). The worktree was clean before the audit. I searched the authored docs and templates for fix-check hunks, fix-list and render-record contracts.
Documentation health:
a-…approval idsCoverage debt: the
FIX_CHECK_HUNKS:line thatgstack-review-dispatch mark --log-startprints is not documented, because no doc lists mark's output lines. Diagram drift: none.Approvals
Plan: exempt: bug fix (merge-check correctness, GST-3523)