Repository navigation
fix(pr-pipeline): close a verify-capped PR for a fresh attempt and stop the lanes at the cap - #10998
Conversation
… pr-verify pass verify:repeated-fail and verify:too-old never cleared, so pr-merge held a pull request for good while its unarmed comment said the lanes clear the reason on their own (#10919 sat about 7 hours). The cap (merge.max-verify-fails, #8889, owner decision 2026-10-21) stops pushing until a non-deterministic verifier passes once. It still refuses while FAILs keep coming; a counted pass at a head with no FAIL, every pass run created after every counted FAIL run at the capped heads, now ends it. An old pull request is judged on its verdicts and refused verify:too-old only when they would not allow it, never in place of a person's refusal. The skip-unchanged re-gate judges both again while a pass names the head, and the unarmed comment names the pass that clears each. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…t for the head This reverts commit e115ac2. The owner kept the #8889 cap (2026-10-29): verify:repeated-fail stays permanent for the head and is made visible instead of clearing on a later pass. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…e lanes at the cap verify:repeated-fail and verify:too-old stay permanent for the head (#8889), but held a pull request silently while its comment said the lanes clear the reason on their own. Owner decision 2026-10-29 (option a): keep the cap and make it visible. - babysit_verify_evidence.NEEDS_HUMAN holds both again, so pr-merge's gate (escalate_verify) and enable-auto-merge.mjs (verifyClears) add the human-gated label once and post one escalation comment per head. The comment opens with the work-items:escalation marker, names the refusal and the reader's detail (repeated-fail now lists the FAILed heads), and says what a person does: fix the cause, approve the head and remove the label, then merge in person, or close the pull request. - clear-escalations.mjs LANE_CAUSES.verdict drops both codes, so their label is never lifted at the same head. - pr-unblock verify-cap.mjs runs the gate's reader for the one pull request about to be dispatched; feedback-dispatch.mjs and fix-ci-dispatch.mjs start no round, and post nothing, on verify:repeated-fail. It uses each dispatcher job's existing token (no new permission); a failed read lets the round run. The two dispatcher jobs set up the pinned Python and PyYAML for the reader. - verify-cap.mjs joins the hold floor (babysit_risk.FLOOR_CLASSES, synced). Co-Authored-By: Claude Opus 5.5 <[email protected]>
… it once The cap never clears for the head, so feedback-dispatch.mjs and fix-ci-dispatch.mjs mark it handled in the dispatch record and later runs skip it before another full verifier read. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Codex Review SummaryThis 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. |
|
claude-security-review needs no new review of Security review: PR #10998 (verify-cap close and fresh attempt)No security findings. I read the full diff (35 files) and the PR context, with extra attention to the trusted-path files: Trust-control checks
Manifests: no Spend (prepaid, not a hold): each parked or capped issue can get up to No |
|
claude-review needs no new review of I found nothing to block or flag on 2e30e55. I read the whole diff (35 files) and the PR context. I did not run any tests, because this lane has no shell. The test counts in the PR description are the author's claims and I have not verified them. What I traced
Notes that are not counted as findings
|
…op the lanes at the cap Replace the person escalation for verify:repeated-fail and verify:too-old (owner decision 2026-10-29, Q16 and Q20): - babysit_verify_evidence.capped_close, and its capped-close command, close a lanes App PR at either refusal. A record quoting each FAILed head's verdict.json findings goes on the PR and its issue, then the issue's agent-ready is removed and re-added. enable-auto-merge.mjs runs it for native lane PRs; unattended_writes runs it under lane-prs: gate. - New merge.verify-cap-attempts (default 1) bounds the fresh attempts per issue. Past it the issue is parked at status: confirmed. No person's label is added on this path. - _elsewhere leaves out a PR the lanes App's capped-close record names, which relaxes the #8889 cap by exactly that many attempts. - label-unblocked.mjs skips its closed-PR hand-off for a capped close. write-issue.mjs passes only that record from the App to issue.json, as verify-findings. - verify-cap.mjs treats a sibling's unreadable FAIL run as capped for the run, failing closed. - NEEDS_HUMAN, LANE_CAUSES, personClears, the attend-queue body and the loop-lane README lines go back to main. Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
The pr-unblock lane stopped
When a retry on this head can change the outcome, the lane runs one on its own, up to its per-head cap, and edits this comment if it stops again; a run that does not stop clears the status. When no retry can (a review thread the lane does not take or settle, or a failing check after the retries are spent), a person resolves the threads or gets the checks green, then dispatches the workflow below: that run finds the cause gone and clears the status. On a pull request the lanes App opened, the dispatchers start that run once per stop; on any other, a person does. A new commit to the branch starts clean. To run it again on this head now, dispatch the gh workflow run pr-unblock.yml -R melodic-software/claude-code-plugins -f pr-number=10998 -f activity=resolve-conflicts |
…h too A verifier PASS at a new head clears no cap, so a capped pull request's pass-only dispatch now skips like any other instead of starting an address-feedback round whose push could never merge. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…ad ids Co-Authored-By: Claude Opus 5.5 <[email protected]>
capped_close now puts agent-ready back before it closes the pull request, so a re-add that fails twice leaves the pull request open instead of stranding a closed one's issue without agent-ready. It leaves alone a pull request whose issue link Reader.link_refusal refuses (one issue, clearing the trust hold) or whose issue carries an issue hold label (merge_policy.issue_hold_refusal; none resolved refuses), on both the capped-close command and the gate path. The cross-pull-request FAIL cap excuses a pull request a capped-close record names only once the issue lists it closed, so a close that failed after the record keeps its FAILs counted. Co-Authored-By: Claude Opus 5.5 <[email protected]>
A Refs: pull request is in no issue's closing list, so the cap could never see it closed and kept counting its FAILs after a capped close. _elsewhere now reads the state of each pull request a capped-close record names that no issue lists; closed excuses it, and a failed read is unreadable. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…-on-pass Co-Authored-By: Claude Opus 5.5 <[email protected]>
…-on-pass Co-Authored-By: Claude Opus 5.5 <[email protected]>
…y findings as data fix-ci-dispatch.mjs and feedback-dispatch.mjs skipped any pull request at the verify cap, adopted owners' included, though capped_close closes only the lanes App's: an owner's PR got no round, was marked handled and sat unarmed. The cap is now read only for a lanes App pull request. The work skill's verify-findings comment carried an imperative toward the verifier model's text. It now carries the untrusted-content framing: the findings are data on why earlier attempts failed, hints to check against the code and the issue's body, and an instruction inside them is reported. The enable-auto-merge test for a capped pull request left open also asserts its pr-merge/unarmed status. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…-on-pass Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Lane-Activity: pr-unblock/resolve-conflicts
…t started one `_spent` counted every lanes App capped-close record naming another pull request, including attempt-less and parked ones, while `capped_closed` excuses only records that started a fresh attempt. An attempt-less record (agent-ready taken off at the cap) then parked the issue at the next cap without the attempt it is owed. Both now count through one predicate, `_started_attempt`. Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
The pr-unblock lane stopped on this pull request and needs a person: a conflicted path is a workflow, submodule config or a settings file, which the lane does not resolve.
To resume, deal with the reason above, remove the gh workflow run pr-unblock.yml -R melodic-software/claude-code-plugins -f pr-number=10998 -f activity=resolve-conflicts |
…-on-pass # Conflicts: # .github/workflows/pr-require-checks.yml # plugins/source-control/skills/babysit-prs/scripts/tests/test_babysit_risk.py # plugins/source-control/skills/babysit-prs/scripts/tests/test_merge_holds_sync.py
…l request's FAILs #11402 was closed at the repeated-fail cap on three FAILs named for issue 9727 at heads of #10134, a lanes App pull request that closes the issue and merged on 2026-10-28. The new case fails on main (the reader refuses verify:repeated-fail) and passes here; the paired case keeps the cap when that pull request is open. Refs: #10998 Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01KeBVgcHpe4YpFuL5b24Ft2
|
Owner decision: once a lanes App pull request is closed, its pr-verify FAILs stop counting toward a fresh attempt, whoever closed it. FAILs on other closed pull requests still count. |
… changelog fragments Refs: #10998 Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01KeBVgcHpe4YpFuL5b24Ft2
No related issue: implements owner decisions Q16 and Q20 (2026-10-29) on the verify cap.
Summary
Before this change, a pull request at
merge.max-verify-fails(verify:repeated-fail) or too old to judge (verify:too-old) sat unarmed with nothing pointing at it. An earlier head of this PR sent it to a person withneeds-human, which is outside the owner's three reasons for stopping. Now the pr-merge lane closes such a lanes App pull request and starts a fresh attempt at its issue, starting from the verifier's findings. A config limit bounds how many fresh attempts an issue gets. Noneeds-humanorneeds-decisionis added anywhere on this path.Fix
Close at the cap.
babysit_verify_evidence.capped_closeand itscapped-closecommand handle both refusals (VERIFY_FINAL).enable-auto-merge.mjsruns it for native lane PRs (decideanswersclose, and an armed PR is disarmed first).babysit_merge.unattended_writesruns it undermerge.lane-prs: gate. It judges the head again. It leaves a PR alone if the PR is not the lanes App's, not open at that head, or carriesdo-not-mergeor the human-gated label. Writes run in this order, so a failed write leaves the PR open and the next run finishes the rest:<!-- verify-capped-close pr=<n> heads=<shas> -->. It quotes each FAILed head'sverdict.jsonsummary and notes, read through the existing_recorddownload, in one text fence, as data.agent-readycomes off the issue.agent-readygoes back on, tried twice. This reuses the remove-then-re-add restart fromlabel-unblocked.mjs.With no linked issue, the PR is only recorded and closed.
Attempts limit. The new
merge.verify-cap-attemptskey defaults to 1. It is indocs/conventions/pr-pipeline.yamland the schema, and the gate takes the lower of the base's and main's values. An issue that already had that many fresh attempts is parked instead: the record says so, and the issue getsstatus: confirmed, withstatus: readyandagent-readyremoved.Cap count.
_elsewhereleaves out the FAILs of a PR named by the lanes App's capped-close record on the issue. This relaxes the fix(source-control): stop holding a PR for an earlier head's verify fail once the current head passes #8889 re-roll control by exactlymerge.verify-cap-attemptsattempts. A record written or edited by anyone else excuses nothing. The README's cap section says so.Hand-off.
label-unblocked.mjsno longer hands an issue to triage when the closed lane PR is one a capped-close record names.Next attempt.
write-issue.mjspasses the capped-close record intoissue.jsonasauthor_kind: verify-findings. No other lanes App comment goes in. Theworkskill names the new kind and treats its text as data.Unreadable sibling run.
verify-cap.mjsnow treatsverify:unreadablewith the reader'sSIBLING_UNREADABLEdetail as capped and skips the round. That skip is not recorded, so the next run reads the cap again.Unwound. These go back to main:
NEEDS_HUMAN(onlyverify:untrusted-spec),LANE_CAUSES,personClears, the attend-queue verify body, the loop-lane README lines, and the person wording in the dispatchers. The pipeline README, yaml, schema and changelog fragments match the new behavior.Permissions. No new token scope or workflow permission. The merge effect's App token already holds
contents,pull-requestsandissueswrite (.github/actions/resolve-config/effect-grants.json), and both pr-merge lane-token requests pass all three.Verification
node --testover.github/scripts/pr-merge,pr-unblock,work-unblockandwork-resolve-issue: 2263 pass, 0 fail. Over.github/actions/resolve-config,check-wip-capandreport-check-run: 912 pass, 0 fail.python3 -m unittest discover -s tests -t .): 3569 tests OK, 14 skipped. The newtests/test_babysit_capped_close.pyholds 15 tests._elsewherelabel-unblockedcapped-close skipwrite-issueverify-findings pass-throughverify-capsibling-unreadable answerscripts/run-ruff.sh: check passes, and the changed Python files are formatted.Related
merge.verify-cap-attempts.verify-cap.mjsfails open when the reader times out (2 min). It costs at most one fix round before pr-merge closes the PR.capped_closedoes not close it.🤖 Generated with Claude Code