Repository navigation
fix(source-control): bind lane reviews run after the newest retarget - #17703
Conversation
Claim commit: the changelog fragment. The fix follows. Refs: #15410 Co-Authored-By: Claude Opus 5.5 <[email protected]>
The merge gate passed base_changed=True for any pull request whose timeline held a base_ref_changed event, and bind() then unbound every lane for good. GitHub retargets each upper stack layer to main when the layer below merges, and nothing re-ran its reviews, so every such layer stayed held. bind() now takes retargeted_at, the newest retarget's time. A lane binds only on runs created after it, every link of its review chain included, and the main-run path applies the same cutoff to its binding verdict. A pre-retarget blocking finding still carries. An unreadable time unbinds as evidence-error. A lane unbound as base-retargeted requests one whole review under the existing caps, as a refused re-run does. Refs: #15410 Co-Authored-By: Claude Opus 5.5 <[email protected]>
The whole-review paragraph said no unbound reason but rerun-not-allowed requests one; base-retargeted now does too. Refs: #15410 Co-Authored-By: Claude Opus 5.5 <[email protected]>
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: bdf752e50b
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
|
claude-security-review reviewed Security review: PR #17703 (bind lane reviews run after the newest retarget)No security issues found. I read all 9 changed files in full. What I checkedThis PR narrows a merge hold in trusted-path modules:
Fail-closed pathsI checked each path that could let a PR through on bad input. All of them fail closed:
Whole-review request
Residual note (not counted as a finding)Binding rests on the run's SpendA retargeted PR may now trigger one more whole-review run of both review lanes. This uses subscription/API usage only; it is not a billing change. critical-findings: 0 |
|
claude-review reviewed Code review: bind lane reviews run after the newest retargetThe change replaces the I traced the following and found no correctness defect in them:
Blocking: the merge gate's review-evidence check now accepts more, and no spec allows it. This is the inline finding on No closing issue is in the PR context, so there were no acceptance criteria to check. The PR context, prior-findings and rule files held no embedded instructions to this lane. The author's claimed test runs (383 + 678 tests, Spend note: the new whole-review request draws on prepaid lane usage, at most one extra pair of review runs per retargeted head and two per pull request (the existing caps). It is not a hold. Loosened checks would be marked: fail (default: the prompt had no Verifier dropped 0 of 1 candidates. |
|
Held by session 971c6bd4 for the owner's decision. This changes what the merge gate trusts: a retargeted pull request's reviews count again once they run after the newest retarget. The claude-review thread on this pull request asks for owner text naming that change. The question is with the owner now. |
|
Hold lifted by session 971c6bd4. The owner decided Q116 A (row https://github.com/melodic-software/architecture/blob/6c602e74e88329895c98221aaefa8fef1f60d9a6/docs/owner-decisions.md#L282), so this pull request may merge. |
Refs: #15410
Summary
The babysit merge gate held every retargeted pull request forever as
evidence-unbound: base-retargeted.babysit_merge.pypassedbase_changed=Truewhen the timeline held anybase_ref_changedevent, andbind()then unbound every lane. GitHub retargets each upper stack layer tomainwhen the layer below merges, so every such layer stuck, and nothing re-ran the reviews: the review lanes do not run onedited, and the whole-review request fired only forrerun-not-allowed. This PR delivers the part of #15410's merge lane that lets a retargeted layer's reviews bind again.Fix
Design choice: retarget-time binding plus a whole-review request. The owner decided it (Q116 A). Owner, verbatim: "go w/ recommendations and then /session-flow:handoff". The row is at https://github.com/melodic-software/architecture/blob/6c602e74e88329895c98221aaefa8fef1f60d9a6/docs/owner-decisions.md#L282.
bind()takesretargeted_at, the newestbase_ref_changedtime, in place of the bool. A lane binds only on runs created after it, every link of the review chain included (a pre-retarget link reportsbase-retargeted, notincremental-gap). A review against the old base never counts; a re-run keeps its run's creation time, so it never counts as later. An unreadable event time unbinds asevidence-error._carried_blockingkeeps reading every run).babysit_whole_reviewrequests one whole review for a lane unbound asbase-retargeted, as forrerun-not-allowed, under the same caps: once per head,MAX_TOGGLESper pull request, one per sweep, and the running-jobs and rate-limit floors. The pr-pipeline convention's whole-review paragraph says so.Known limits: a head that already has a recorded whole-review request (for example for a refused re-run) gets no second one after a retarget; it waits for a push or a person, as the per-head cap intends. A lane-source pull request retargeted without a push stays held as
lane-source-changed, as it was held before (then asbase-retargeted):pr-review-main.yml's already-reviewed check calls_main_boundwithout the cutoff, so it skips the new review. Closing that needs the workflow to read the retarget time, a decision for the owner.Verification
Touched suites pass locally with
python3 -m unittest:test_babysit_review_evidence,test_babysit_whole_reviewandtest_babysit_lane_binding_wiring(383 tests), plustest_babysit_merge,test_babysit_verify_evidence,test_babysit_lane_reviewsandtest_babysit_gh_lane_run_carry(678 tests).scripts/check-affected.sh --tests: 18 checks passed;scripts/check-line-citations.pyclean. New tests cover a retarget then a later whole review binding, a pre-retarget run not binding, a pre-retarget chain root reportingbase-retargeted, a pre-retarget main-run verdict not binding, the carried blocking count, an unreadable time, the newest event's time reachingbind(), and the whole-review request firing forbase-retargetedunder its caps. The live timeline of melodic-software/pr-pipeline-sandbox#400 carriescreated_aton itsbase_ref_changedevent, the field the gate reads; lane runs come from the listing and main-run records fromactions/runs/{id}, both of which carrycreated_at.Left out: the shell and node suites
check-affected.sh --testsleft to CI past its 120-second budget.Related
Remaining
pr-review-main.yml's already-reviewed check needs the retarget cutoff (a follow-up under the same owner decision).🤖 Generated with Claude Code