Repository navigation
Conversation
Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
|
Merging to
After your PR is submitted to the merge queue, this comment will be automatically updated with its status. If the PR fails, failure details will also be posted here |
Merged
2 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 a docs-only commit sits between the reviewed commit and a granted fix-check,
gstack-ship-release finishnow counts that fix-check instead of refusing it. This unblocks crew PRs whose Step 14.5 docs commit landed before the owner granted the fix-check, so the fix-check's range started at the docs commit (harness-evals#361 is the live case). It serves the shipping goal: a reviewed, granted fix should reach a receipt without a third review round.What changed
fixCheckedinlib/ship-release.tsrequired the oldest fix-check'srange_baseto hold the reviewed tree, or to be an earlier fix-check's commit. Anything else printedFIX_CHECK: not counted (range_base <sha> does not hold the reviewed tree)and the fixed code routed as unreviewed behavior. Now, at exactly that gap, finish walksrange_base's first parents (off the base) back to the nearest commit holding the reviewed tree. It accepts the range only when every commit after that one,range_baseincluded, has a single parent and touches only paths finish already routes as release metadata or authored docs (not test code, not bookkeeping). It printsFIX_CHECK_DOCS_BRIDGE: range_base <sha12> follows the reviewed commit <sha12> by docs or release metadata only (<commits>). Those docs paths still take the docs route and its recheck, because they sit outside the fix-check's read.range_basethat the reviewed commit descends from (sorange_basecomes before it), and arange_baseon another branch. The equal-tree case is unchanged. No other part offixCheckedchanged: grants, freshness, ruled notes, the chain walk through earlier rows and the per-path read test are as before.docs/ship-policy.md#fix-check-docs-bridgedescribes the rule and says to pass--reviewed-treeas the tree the bound review read, never the fix-check's own tree.docs/review-policy.mdlinks it.Why
Three parked PRs printed the same refusal. Only one of them needs this change. The diagnosis for each:
ROUTE: … docs=2)ROUTE: … docs=1 metadata=1)The #4267 and #4270 refusals came from the arguments, not the rule. Their last finish runs passed
--reviewed-treeas the fix-check's own tree (7c0a53dd at 94ecf9c, and 08c09c25 at ddf1918; both printROUTE: reviewed=<x> current=<x>). With that argument,range_baseis an ancestor of the "reviewed" commit, and this change correctly keeps refusing. Rerun with the bound review's tree (f3f3352d40fad4d06919a63bda078f868a1b2bcd for #4267, 9adf2a8d4f83c63eac02a1069cbfa03104063a0e for #4270). Nothing wider is needed for #4270:range_baseholds the reviewed tree exactly.Blast radius
Only the
range_basegap clause of finish's fix-check walk. A chain that counted before still counts with the same line. A chain that refused before now counts only in the docs-only shape. GST-2274 (a nullrange_baseon round-1 fix-checks) is unaffected: a null or off-branchrange_baseexits the walk before the bridge runs, so those rows still refuse withthe row names no range_base commit on this branch.Agent notes
test/ship-finish-fixed-links.test.ts(one docs commit, a docs commit plus a CHANGELOG stamp) failed on main at 6afe390 with an emptyFIX_CHECK_DOCS_BRIDGEline. The negative, non-descendant, merge, other-branch and equal-tree cases pass on main and after, as guards. The whole file passes 20 of 20 after the fix.gstack-approvals liston Warn when a branch-only run hides a red PR check, and make ready refuse when its note or base is missing (GST-2205) #4270's /ship machine shows no review_loop_grant row, so Warn when a branch-only run hides a red PR check, and make ready refuse when its note or base is missing (GST-2205) #4270 will next refuse withno approved review_loop_grant names a stop head inside its range_base..commituntil that grant is recorded.