Repository navigation
/ship keeps a PR's review after a main merge that only updates a shared harness pin, and warns when reviewers ran unlogged (GST-3463) - #4669
Merged
Conversation
…ed harness pin, and warns when reviewers ran unlogged (GST-3463) Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
|
😎 This pull request was merged. |
REVIEW_ROWS_MISSING now checks pass ledgers against review rows and fix-check ledgers against review-fix-check rows, so a logged Step 11 voice row no longer hides an unlogged pass. Review-Finding: p1/red-team#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>
… test helper change still needs a fresh review Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
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 pull request no longer needs a fresh /ship when merging main only updates a harness pin file it shares with another PR, and /ship's review summary now warns when reviewers produced output that the run never logged.
Why: #4652 paid for a full new review after such a merge, and a harness-evals run lost its granted follow-up review because nothing was logged.
Nothing to do.
What changed
A sibling PR that touched the same pinned harness file used to lose its saved review after a main merge and pay for a whole new review, even though the only change was a pin file recording the new contents of a file that was already compared. Now a harness pin file counts as generated output when, before and after the merge, it records exactly the pinned file's contents with the same reason, and the harness version and patterns did not change. The pinned file itself is still compared, so any real change still needs a new review.
The review summary also prints a warning line when a run's reviewers wrote output that no review-log row of the run records, so a run that skipped logging hears about it before the follow-up review it was granted fails to bind. Each review pass and each follow-up review is checked against its own kind of row, so a logged row of another kind no longer hides a missing one. The warning never changes the exit code. The Capy skill now says never to run a reviewer by hand, and the review policy lists the new warning.
Why
#4652 paid for a fresh review after a main merge that only re-recorded a shared harness pin, and harness-evals#507 lost its granted follow-up review because the run's reviewers were never logged.
Blast radius
The pin rule runs only when /ship decides whether a saved review still covers the new head (lib/ship-receipt-patch.ts productSpec) and fails closed: a missing or malformed harness manifest, a pin that is not an object, a changed reason or a moved harness version all count as a real change, as the four new tests show (one keeps the review, three refuse). The warning is stderr only in bin/gstack-review-scope summary; exit codes and the summary JSON are unchanged, which a negative-control test and the existing review-scope suites (129 tests) confirm.
Test Coverage
Coverage: 9 of 13 new code paths tested (69%). Gaps, all in fail-closed or diagnostic paths: manifest patterns changed at the same version, a missing or malformed pin or manifest, a rewritten-history re-pin, and a review row of another pass number beside first-pass reviewer output.
Tests ran: test 1745 (files, CI run 44997575097)
Pre-Landing Review
A final full review of this head ran read-only (no fix round): a batched testing, security and state-machines read, a red-team read, a money-focused read, an adversarial read and a second-model review. The second-model review repeated one finding: a harness pin turned into a symlink whose link text is the pin's JSON could pass the re-pin check, because the pin is read with
git showand its file mode is not compared. It was ruled below the blocking floor (see Agent notes); a file-mode check follows in a second PR. Everything else is below the floor and listed under Review notes.Review notes
Below the blocking floor; recorded here and not fixed in this PR.
sincefield, so it cannot prove the manifest version check on its own.blobfield for a file absent at both heads passes the blob comparison (other fields must still match).Exploratory QA
Two smoke checks on this head: the two new test files pass, and
gstack-review-scope summaryon this run's own records prints the new warning naming the unlogged pass before its row was logged. Verdict: pass. Evidence: ~/.capy/work/gstack/ship-4669-r4/qa/functional (checkpoint 002).Scope Drift
Scope Check: CLEAN. Intent: keep a review record across a base merge that only re-pins a shared harness file, and warn about unlogged reviewers. Delivered: exactly that, plus the policy rows for both.
Documentation
Status: current. The branch's own doc edits match the code, and nothing needed correcting. The full audit is in Agent notes.
Tests
Agent notes
Open notes:
REVIEW_ROWS_MISSINGalso counts voided pN ledgers, so it contradictsREVIEW_SCOPE_VOIDED(bin/gstack-review-scope:224-226; three readers).started: NaN) counts as this run and can raise a false warning.Ruled note: lib/ship-receipt-patch.ts:98:adversarial at 3c47078 ruled by GSTA-36 at 2026-11-22T07:16:29.551Z: Needs a committed symlink whose target name is the pin's JSON: a missing target turns CI red through readPins, and an existing one is a new product path the carry refuses. Mode check follows in PR 2. (approval a-1e8089baf227)
Ruled note: lib/ship-receipt-patch.ts:95:adversarial at 3c47078 ruled by GSTA-36 (relayed from GSTA-795:01M811N9FYXZ1WM5995GQ9MKR8) at 2026-11-22T07:40:31.039Z: Needs a committed symlink whose target name is the pin's JSON: a missing target turns CI red through readPins, and an existing one is a new product path the carry refuses. Mode check follows in PR 2. (approval a-aeeeea7dccf3)
Documentation audit (docs-r4a, read-only):
Status: current. The branch's own doc edits agree with the code, and no correction is needed.
Scope: 9 committed files from base c2b4f0d2 to head 3c47078, with no staged, unstaged or new files. Changed docs:
docs/ship-policy.md(carry-table row for harness-pin-only base merges),docs/review-policy.md(REVIEW_ROWS_MISSING:row),capy/skill/gstack/SKILL.md(never hand-run a reader; log every pass), plus the changelog.d fragment. Related docs cross-checked: TESTING_INTERNALS harness version, troubleshooting, unattended, pregate, test-audit.Documentation health
rederivedHarnessPin(pin blob matches the file blob at both heads, other fields unchanged, manifest version and patterns unchanged, pinned file must be product)REVIEW_ROWS_MISSING:row matches the stderr warning ingstack-review-scope summarygstack-review-log --start/--finishREVIEW_ROWS_MISSINGentry (debt)Coverage debt: the
REVIEW_ROWS_MISSING:warning has reference coverage only (review-policy table) and no how-to or troubleshooting entry. The harness-pin carry rule has reference coverage only (ship-policy table). No diagram drift: no diagrams name the changed modules.REVIEW_LOOP: passes=1 blocking_found=1 deferred=0 noted=7 fixed=0 scope=frozen open=1
Gate edits: none detected (2 listed, 0 read; patterns: RH-1,RH-3,RH-4,RH-12,RH-13,RH-14,RH-15,RH-16; unlisted idioms: none)
Approvals
Approved: yes (record r-78b755e1f6c1). The full approval record stays private.
Plan: exempt: bug fix with failing-first tests (GST-3463)
Plan check: exempt bug fix