docs/spec/implementation/requirements/reviewer.md
Requirements
Section titled “Requirements”The Reviewer
Section titled “The Reviewer”-
Operates under the same one-shot constraint as the Implementer (requirement 21): no resumption, no background notification. It waits for slow commands — installs, builds,
gh pr checks --watch— in the foreground within the same session rather than ending its turn early. -
Reviews the PR against the work order’s item and acceptance notes, and against the target repo’s own standards and conventions; re-runs the repo’s checks, and re-runs requirement 24a’s preview check rather than trusting the Implementer’s — a preview deployment is per head SHA, and any fix this stage pushes mints a new one. 29a. A large test suite is run in pieces, never as one invocation (agent-ops#734). The Bash tool this stage’s own tool-calling harness provides enforces a fixed 10-minute ceiling per command: a command still running there is killed and returns no output at all, not even what had already completed, so a suite that mostly passed behind a slow batch is indistinguishable, from the outside, from one that never ran. This repo’s own
test/suite (well over a hundred files) run through a singlescripts/run-tests.shinvocation risks exactly that wall, so requirement 29’s re-run lists the selected tests first (scripts/run-tests.sh --list, host-side, no Docker, returns instantly), splits that list into groups sized to finish comfortably inside the ceiling, and invokesscripts/run-tests.shonce per group — each group’s ownPASS/FAILlines are read before the next group runs, so a group that never finishes costs only itself, not the whole suite’s evidence. A Reviewer instead retried the same unbatched invocation three times, losing 30 of its 90-minute budget to three identical 10-minute kills, then spent the rest re-batching ad hoc and still did not finish before the session’s own final message came due — the entire review, its already-completed findings included, was recorded as a failed attempt with nothing to show for it (requirement 30a exists for the same reason, on the findings’ side; this is the same failure on the test-evidence side). -
Where it finds a problem it can fix with confidence, it fixes it directly on the branch — committing, rebasing onto the current default branch, or force-pushing as it judges best, always with
--force-with-lease(permitted only onbranch_prefixbranches, per “The Landing Gate”). Where it cannot fix with confidence, it leaves a PR review comment describing the problem for the Human Reviewer. Acomplexity:*label (requirement 26a) plainly wrong for the diff counts as such a problem: having just read the whole diff, the Reviewer is better placed than the author, and corrects the label in either direction — the label endures for later finishing rounds (requirement 8a) and for the human. The ordinary pull request stays a draft throughout, which GitHub does not allow to be queued, so no merge-queue check applies to it here; thereview-feedbacksource is the one case where it does, since that pull request is never a draft during the Reviewer’s session (requirement 38f). 30a. Emits as it goes, not only at the end. Requirement 23a’s counterpart for the Reviewer, and it binds harder here: an Implementer that is killed at least leaves the branch it has been building, whereas a review exists only as commits and comments that have reached GitHub. Everything else is in an ephemeral clone and in a stage that may not finish. So each fix under requirement 30 is pushed when it is made rather than held for requirement 31’s confirmation push, and each finding is posted when it is formed rather than batched into a closing pass. Comments carrylib/pipeline-marker.sh’s invisible marker, so requirement 3e’s activity clock already discounts them (TD26072605) and there is no cost to posting more of them. This is what lets an interrupted review’s successor start from what has already been established rather than from the diff — and, where nothing supersedes them, lets the findings a killed stage did reach still travel to the human.The failure it closes is total, not partial. On agent-ops#205 a Reviewer ran for the whole of its 45-minute cap and was killed; it left no commit, no review and no comment, so 45 minutes of Opus review produced nothing that outlived the clone. A stage cannot be stopped from dying mid-review, but it can be stopped from dying with everything still inside it. 30b. Reports completion, unconditionally. Every run posts exactly one more comment beyond requirement 30a’s findings: a completion comment stating the review has finished and what it concluded, posted whether or not requirement 30 found anything — a clean PR is otherwise indistinguishable from one no Reviewer has looked at yet, since every write lands under the same account a human also comments as (requirement 9d). It is a separate
gh pr commentcall, never folded into a findings comment and never filed as a review (gh pr review --comment), carrying the same header and marker as every other pipeline comment (requirements 9d, 3e) plus four facts: the outcome (handed to the human, or left in draft and why), the CI state, the fixes requirement 30 pushed (or none), and the number of concerns requirement 30a raised (or none, stated plainly when the PR was otherwise green). Requirement 32’scomments_leftstill counts only requirement 30a’s findings comments — this one is never among them.On the
readypath it is the last act, posted after requirement 31’s hand-off and requirement 31b’s re-request, so it can state the true final state; on theblockedpath, which never reaches requirement 31, it is posted immediately before requirement 32’s final JSON. A post that fails does not become ablockedoutcome — a comment that could not be written is not a review that did not happen — the Reviewer carries on and reports its verdict as normal. 30c. Reconciles every standing human comment before marking a pull request ready (requirement 31c, agent-ops#533). A human cannot leave a formalREQUEST_CHANGESreview on this system’s own pull requests — every pipeline write and every human comment on them land under the same GitHub account, and GitHub refuses that review type from a pull request’s own author regardless of who is actually typing — so a plain PR comment, often paired with converting the pull request back to draft, is the change-request signal here (PR #512). Before requirement 31’s hand-off, the Reviewer reads every general PR comment from a non-Bot account whose body carries no pipeline marker, posted since the pull request’s most recentready_for_reviewtimeline event as it found it — one that was not itself later undone by aconvert_to_draftevent — or its own creation time, when no such surviving event exists, and answers each — implementing it under requirement 30, or explicitly contesting it in the completion comment’s own prose — never leaving one unmentioned. “As it found it” is what makes this read possible at all: requirement 31’s owngh pr ready, run later in the same session, mints a freshready_for_reviewevent, so a Reviewer that read the anchor afterwards would find its own flip and no standing comment at all. The undone-event exclusion matters here for a second reason, not merely a subtler restatement of the first: a previous round can have left aready_for_reviewevent on this pull request that this pipeline itself later reverted (requirement 31c’s own gate, on adirtyverdict, agent-ops#539) — GitHub keeps that event on the timeline regardless — and reading “most recent” without excluding it finds that stale flip instead, reading a still-unreconciled comment as ancient history one round after the round that refused it. This is the same trap requirement 31c’s gate, which runs later still, answers by bounding its read at the cycle’s start and skipping any undone flip within that bound. It cites every one it answers with its own<!-- agent-ops:reconciles comment=<id> -->line in that same completion comment,<id>the comment’s own issue-comment id: a citation, because whether a diff actually answers a human’s words is a judgement only the Reviewer can make, and the mechanism past this point can only confirm one was attempted, never judge it. Requirement 31c’s own reconciliation gate reads this pull request’s comments independently before acting on areadyverdict, refuses the hand-off for any standing comment it finds uncited, and — unlike the Reviewer’s own read above — also puts the pull request back in draft when it does. 30d. Filing deferred work inline, and the scope carve-out that goes with it (agent-ops#631). Like the Implementer (requirement 24b), the Reviewer may notice genuine deferred work that does not belong in this pull request — a design gap in code the diff merely touches, something worth a human’s attention that isn’t itself a defect to fix under requirement 30. Rather than lose it to a step-32 comment nothing later sweeps for unfiled debt, it is filed the same way: dedup-search (gh issue list --label pw::type:tech-debt --search "<working title>") first, thengh issue createlabelledpw::type:tech-debt(or an unlabelled one, for a question rather than a scoped fix) plus aDefers: #<n>line added to the pull request’s own body — riding along whether the Implementer or the Reviewer is the one who added it. ADefers:-linked issue with no accompanying code change is, for both stages, never itself grounds to flag a defect, correct thecomplexity:*label upward, or read the diff as having grown beyond its scope. 30e. Verifying everyDefers:link (D15 as revised, #869/#875/#879). ADefers: #<n>line the Implementer (or an earlier Reviewer pass) added is a claim that issue#<n>exists and carriespw::type:tech-debt— the label is what makes it selectable as this band’s own work later, and a typo’d number or a missing label leaves it invisible to both a human andscripts/gather-tech-debt.shalike. The Reviewer confirms both (gh issue view <n> --json state,labels) for everyDefers:line the pull request body carries, fixing what it can — the number, or the label on an issue that is genuinely a debt item simply filed without it — under requirement 30, and flagging the rest under requirement 32. ADefers:line is never also a closing keyword for the sameN: a body caught both resolving and deferring the same number is a defect in the body, fixed by keeping whichever the diff actually does. -
Confirms CI is passing — every one of the target repo’s branch-ruleset required status checks green at the pull request’s current head commit (
gh pr checks --required), the same subset requirement 31c independently re-verifies — and the PR is mergeable, then marks it ready for review (gh pr ready), and where a human’s review is what blocks it, requests a fresh one from them (requirement 31b). A status check outside that required subset failing is never, by itself, grounds forblocked: it is named in thecifield instead (requirement 32) rather than hidden behind a barepassing. Reading any failing check, required or not, as the trigger forblockedconflates the two and has produced both errors in practice: a barepassingreported over a red non-required check (PR #2176, masking it from the Approver), andblockedreported over a pull request every required check had already cleared, for the identical red non-required check (PR #2170, agent-ops#2179). It never approves and never merges. Areadyverdict is itself re-verified against GitHub before any of this runs (requirement 31c) — the Reviewer’s own confirmation is a model’s, and the Script’s is not. 31a. The handoff is verified, not reported. Requirement 31 is the pipeline’s only irreversible outward act, and requirement 32 has the Reviewer describe it — two different things. Before recordingpr-readythe Script asks GitHub whether the pull request is a draft (gh pr view --json isDraft), and:- not a draft — log
pr-readywithhandoff: "reviewer". The ordinary path, one field on one PR; - still a draft — run
gh pr readyitself, re-read the flag, and on success log awarningnaming the PR and thenpr-readywithhandoff: "script". The judgement is the expensive half and the Reviewer has made it; the flip is mechanism, and mechanism the Script can perform deterministically. It completes rather than fails, so a certified PR is never put in front of a human as a problem; - still a draft after that, or the flag unreadable — requirement 32a.
Fail towards the state something else will look at: “could not ask” must never resolve to “not a draft”, which is the defect itself with an API outage standing in for the Reviewer. One definition, in
lib/handoff.sh, shared with requirement 32b (requirement 34a).The defect this exists to prevent shipped. A Reviewer returned
{"status": "ready", "ci": "passing"}for a complete, green pull request, never rangh pr ready, and the Script logged a successful handoff from the report alone. The PR stayed a draft: invisible to the human, who watches for review requests, and invisible to the log, which agreed with the Reviewer. Three hours later the abandoned-drafts source (requirement 3e) correctly re-detected a stalled draft, at a fresh head SHA and so under a fresh ref no block covers, and paid an Implementer and a Reviewer to finish finished work — which it would have gone on doing hourly, each round looking productive. No component could have noticed: the Reviewer believed it had handed off, the Script believed the Reviewer, and only GitHub disagreed. 31b. The second half of the handoff: the re-request. Requirement 31a’s flip is the whole handoff exactly once per pull request. Every round after the first begins with a PR that is already ready — a review round the Implementer has just answered, above all — sogh pr readyis truthfully a no-op, and nothing is left that puts the pull request in front of the human. Their review request was consumed the moment they submitted the review that asked for the changes; the author cannot clearCHANGES_REQUESTED(requirement 26b); and so the PR sits with changes requested, no review requested of anyone, and a completed handoff in the log.So on the
readypath, after the draft flip, the Script asks GitHub the second question too: does a human’s review block this pull request, and has a fresh review been requested of them? The blocking set is computed the way GitHub computesreviewDecision— the last APPROVED or CHANGES_REQUESTED review per reviewer, bots excluded — so a human who requested changes and later added aCOMMENTEDreview is still blocking, and one who later approved is not. A blocking review from a GitHub App is therefore never in this set — GitHub’srequested_reviewersholds users and teams, not App identities, so there is no requestconfirm_review_ requestedcould make of one — and a pull request whose onlyCHANGES_REQUESTEDreview is an App’s yieldsnonehere, neverfailed;ensure_human_reviewerreaches the human instead. Then:- nobody blocking — nothing to do. The answer on every first-round pull
request, at the cost of one API read, and the reason the check is
unconditional rather than gated on
source == "review-feedback": the question is answerable from the pull request itself, and gating it on the Co-Ordinator’s classification would make a mislabelled source an unnotified human; - blocking, and a re-review already pending from each —
already. Whoever got there first (normally the Implementer, requirement 26b) did it; - blocking, none pending —
POST …/pulls/<n>/requested_reviewersfor the ones not yet asked, then re-read the pending list: as withgh pr ready, the call’s exit status is not the answer.pr-readythen carriesreview_requestedand thereviewersnamed; - it did not take, or GitHub could not be asked — a
warningnaming the PR and the reviewers, andreview_requested: "failed"on thepr-readyevent. Not anattempt-failed: the pull request is finished, green and visible, and only a notification is missing — the Implementer’s own reply comment mentions the reviewer, which notifies them too. Recording a handback here would put a certified PR in front of the Enabler as a problem, which is what requirement 31a exists to avoid.
This does not clear the block, and must not appear to. Re-requesting review leaves
reviewDecisionatCHANGES_REQUESTEDandmergeable_stateatblocked— verified against GitHub on poetic-fiddle #200, before and after — so “The Landing Gate” holds unchanged: the PR still needs an approving review from a code owner that this system cannot give itself. All the re-request does is return the PR to the queue the human actually reads.The defect this exists to prevent shipped, and is why requirement 31a’s lesson needed a second telling. poetic-fiddle #200 was reviewed at 10:18 with one requested change, answered and pushed at 21:33, and replied to at 21:44 with a comment saying so. Every actor did its job; the Implementer prompt has carried “then re-request review from the reviewer” since the review-feedback source existed, as best-effort prose that nothing verified. It was skipped, the log recorded a clean
pr-ready, and the human found the pull request only by going to look for it. The report is not the deed — so the model may still do it, the Script asks GitHub whether it happened, and where it did not the Script does it. One definition, inlib/handoff.sh(requirement 34a). 31c. Areadyverdict is confirmed against GitHub before it is acted on, not trusted from the Reviewer — and the same confirmation binds every path that can flip a draft to ready, not the Reviewer’s own handoff alone (agent-ops#440). poetic-fiddle #216 reachedreviewDecision: APPROVEDwhile a CodeQL high-severity alert (“clear-text logging of sensitive information”) sat open, hidden inside an otherwise 15/16-green check list — the Reviewer’s own instruction to confirm CI is green (requirement 30) is a model reading a check list and judging it, and that judgement is exactly what missed this one. So before any pull request is taken out of draft, the Script asks GitHub directly, throughlib/handoff.sh’shandoff_complete_review— the one gate-and-flip implementation both the Reviewer’s own handoff below and the Enabler’scomplete_handoffrecovery path (requirement 32b) call, so the gate binds on both by construction rather than by each path remembering to run it. (PR #433: an Enablercomplete_handoffflipped a pull request to ready whose Implementer had failed and whose Reviewer had therefore never run at all — the gate below simply was not part of that path yet.)handoff_complete_reviewrunslib/review-gate.sh’sreview_gate_verdict(component 20) first:- every required status check green at the pull request’s current head
commit (
gh pr checks --required, asked fresh rather than reused from anything read earlier in the engagement, so a check still catching up to a fix just pushed is never mistaken for one that passed). A pull request reporting no required checks at all is treated as failing, never as a vacuous pass — poetic-fiddle #190, a CONFLICTING pull request, reports no required checks, which is the conflicting-PR-runs-no-CI trap this guards against — and so is a required check that is real and not green; - no code-scanning alert carrying a security severity that this pull request’s branch carries and the default branch does not — a default branch that already lives with an accepted alert must not freeze every future pull request over debt that is not theirs, so the default branch’s own open alerts are read and subtracted before anything is judged “introduced” by this pull request.
clean— requirement 31 proceeds exactly as before.dirty— the handoff never runs at all; this is recorded as a Reviewer handback (requirement 32a) naming what the gate found, exactly as though the Reviewer itself had reportedblocked, and nogh pr readyis attempted.unknowncovers two distinct facts, told apart byreview_gate_verdict’s exit status rather than by the word alone (TD-PPagop-26081305):gh pr checks --requiredfailing to answer at all — a 502, a transient auth failure, a rate limit — is a fact about this node or GitHub’s availability, not this pull request, but it is not evidence of “nothing wrong” either, so it still refuses the handoff (a non-zero exit) exactly likedirtydoes. That failure is told apart from the trap above by the diagnosisghwrites to stderr and not by the shape of its answer, becauseghreports a pull request with no required checks as an error too —no required checks reported on the '<branch>' branch, returned before the--jsonpayload is ever written — so both arrive with empty stdout and a non-zero exit, and a split on stdout alone would file every conflicting pull request as a degraded node. An unrecognised diagnosis isunknown: both words refuse the handoff, so aghthat rewords its message costs attribution and never safety. The Script records the node case as its own node-levelwarning— naming the node, not the pull request — carrying anunblock_conditionthat says to retry once a node can read GitHub again, not the generic “fix your required checks” wording a real failure earns, so an Enabler reading a queue of these does not mistake a degraded node for N unrelated broken pull requests.A
ghdegraded enough to fail this read is rarely wrong only once (TD-PPagop-26081404): the Script logs areview-gate-checks-readbookkeeping event —{ok: true}or{ok: false}— on every evaluation of this gate regardless of outcome, and passes this node’s own slice of its log tolib/review-gate.sh’sreview_gate_unknown_streak_verdict, which reuseslib/crash-loop.sh’s consecutive-run-resets-on-success shape (requirement 2.7) scoped to one node rather than the whole fleet — a peer’s successful read must never reset this node’s own streak, and a successful read of its own does. Success here isreview_gate_verdictexiting anything but 2, its required-checks-read-failed signal (component 20), never the printed word: a genuinely dirty alert outranks an unreadable required-check list for the word and the handback, and reading the word would let exactly that combination — the degraded-ghruns this streak exists to catch are when the sub-checks disagree — falsely reset the count. Once this node’s own run of consecutive required-checks-unreadable events reaches three, the per-itemwarningabove is replaced by onereview-gate-checks-degradedevent naming the node, the gate and the streak’s count — one event per streak, not one per item past the threshold:review_gate_degraded_sincekeys on the run’s ownfirst_tsexactly ascrash_loop_escalated_sincededups requirement 2.7’s issue, so further items degrading in an already-escalated run log neither the warning nor a repeat (their bookkeeping event and unchanged handback are their whole record), and a new streak, after any successful read, escalates afresh. The streak is read from this node’s own cumulative log, so it spans cycles — this path ends its cycle after the one item, so consecutive items are necessarily consecutive cycles — and the escalation lands inline at the evaluation that crosses the threshold, not at cycle end. It is not filed as an issue, unlike requirement 2.7’s crash loop, since this is a pattern worth a human’s attention in the log, not (yet) worth paging one over — but it is echoed to stderr so it is visible incron.logas well as the union log. The handback itself is unchanged either way: an unread required-check list still refuses the handoff exactly like a genuinely failing one. A code- scanning read that could not be asked at all (nosecurity_eventspermission on this token, code scanning not enabled, an unreachable API) is the otherunknown, unrelated to the node’s ability to read required checks: it exits 0, so the handoff proceeds and a plainwarningis logged instead — the same “could not check is not a failure” contract requirement 24a’s Vercel preview check already keeps, applied here so a token missing one permission cannot silently freeze every pull request’s handoff fleet-wide. Adirtyverdict from either check always wins over anunknownfrom the other; required checks are asked first and gate on their own.One further check shares this gate: requirement 25a’s script-side closing-keyword gate (
lib/closing-keyword-gate.sh, component 17a) is asked here too, insidehandoff_complete_review, afterreview_gate_verdictand before either path’s draft flip, and adirtyverdict from it is recorded as the same requirement 32a handback on the Reviewer’s own path (awarningnaming the finding, on the Enabler’s — requirement 32b); anunknownone warns and proceeds, exactly as the non-blocking alertsunknownabove does — a required-check list unreadable enough to matter already refused the handoff atreview_gate_verdict, so by the time this gate runs the node is known able to read GitHub. It is asked again here rather than trusted from the pass it made when the pull request was raised, for the same reason the checks above are read fresh: a body can be edited between the two — and because that earlier call only tells the Reviewer, so this is the only point at which the closing keyword is actually enforced.A third check shares this gate too: the reconciliation gate (
lib/reconciliation-gate.sh, component 20a, agent-ops#533), asked here after the closing-keyword gate and before either path’s draft flip. PR #512: a human requested three changes in a plain PR comment and flipped the pull request back to draft, stating that the comment-plus-draft-flip is the change-request signal — a formalREQUEST_CHANGESreview is unavailable on this system’s own pull requests to begin with, since every pipeline write and every human comment on them land under the same GitHub account (lib/pipeline-marker.sh’s own header). The next Reviewer round answered one of the three points and declared the pull request ready without ever mentioning the other two, one of which it directly contradicted.review_gate_verdictand the closing-keyword gate had nothing to say about this — CI was green, the closing keyword intact, no alert introduced — because the defect was never in the diff; it was in what the Reviewer’s own completion comment failed to address. The gate reads every general PR comment posted since the pull request’s most recentready_for_reviewtimeline event that was not itself later undone by aconvert_to_draftevent at or before the same bound (or its own creation time, when no such surviving event exists — never having left draft, on a first round, or everyready_for_reviewon record having eventually been undone) from a non-Bot account whose body carries no pipeline marker — a human’s own words, on this system’s shared-account terms — and refuses the flip,dirty, naming the permalink of any whose id is not cited by a<!-- agent-ops:reconciles comment=<id> -->line in some pipeline comment since — a permalink rather than a count, because that string is the whole of what reaches the handback and the next round’s Reviewer, and a refusal that does not say which comment to answer is a loop rather than a gate. The anchor is bounded by the cycle’s own start time, whichagent-cycle.shpasses tohandoff_complete_reviewat both call sites: the Reviewer runsgh pr readyitself at requirement 31, so an unbounded search would take that flip — made inside this very round — as “when the pull request last left draft” and filter out every comment the round existed to answer. Adirtyverdict is recorded as the same requirement 32a handback on the Reviewer’s own path (awarningnaming the finding, on the Enabler’s — requirement 32b), exactly like the closing-keyword gate’s own; anunknown— the timeline, the creation-time fallback or the comment list failing to read at all — warns and proceeds, on the same non-blocking terms. The one new convention this adds is on the Reviewer’s own side, not the human’s:prompts/reviewer.md’s completion comment (step 8) cites one such line per human comment it has answered, whether by implementing the request (step 4) or by explicitly contesting it in the comment’s own prose — “cite”, because whether a diff actually answers a human’s words is a judgement no script can make, only confirm was attempted.What “refuses the flip” means differs by path, and the difference is shared with the closing-keyword gate rather than particular to this one. On the Enabler’s
complete_handoffrecovery path the pull request is still a draft, so the refusal is literal:confirm_pr_readynever runs and the pull request stays in draft. On the Reviewer’s own path the Reviewer has already rungh pr readyitself during its session, so what the gate refuses is this pipeline’s completion of the handoff — the requirement 32a handback is recorded, nopr-readyevent is logged, and the re-request and reviewer nudge never run, leaving the item blocked for the Enabler rather than recorded as handed off.A
dirtyverdict also converts the pull request back to draft on both paths (agent-ops#539). This was not always so, and its absence was itself a defect the gate above did not survive its own second round against: the first refusal on PR #512’s real timeline was correctlydirty, but with nothing converting the pull request back to draft, the Reviewer’s own step-7 flip from that round survived untouched — GitHub does not delete aready_for_reviewevent, a laterconvert_to_draftmerely follows it on the timeline — and that surviving flip became the very next round’s anchor. The standing comment the gate had just refused to let through fell before it and read as reconciled, permanently: on the one path that matters, the Reviewer’s own, this gate could refuse a pull request exactly once per unreconciled comment, never twice.handoff_complete_reviewnow callsconfirm_pr_drafton everydirtyreconciliation verdict — the same “confirm against GitHub, don’t trust the call’s own exit status” shapeconfirm_pr_readyalready applies in the forward direction — printingreverted(gh pr ready … --undoran and GitHub now agrees it is a draft),already-draft(nothing to undo: the Enabler’scomplete_handoffpath, whose block never flipped this pull request ready to begin with), orfailed(still ready after the attempt, or unreadable). This word is carried inhandoff_complete_review’s ownrevertfield so each call site can act on it, and afailedrevert earns its ownwarningdistinct from the ordinarydirtyhandback — the pull request is not merely carrying an unanswered comment at that point, it is still ready, so a human could merge it without ever seeing that the comment stands. The anchor’s own undone-event exclusion above is what makes this revert worth performing at all: without it, theconvert_to_draftevent this call produces has no effect on the next round’s read, and the defect reproduces one round later regardless of how faithfully the pull request is put back in draft.#216 itself: the human resolved it directly on the pull request (renaming the flagged constant, commit
8e62ff6) before this requirement existed to check it, which is itself the confirmation that a script-side gate would have found nothing further to do once that fix landed. 31d. A pull request that already merged is not handed off, not reviewed by the Approver, and not landed against — the Script’s own read decides, never the Reviewer verdict’s word (agent-ops#916, escalation #922).lib/handoff.sh’spr_merge_stateis the one helper both reads share: fail-closed at the handoff — ahead ofconfirm_pr_ready’s own isDraft read, ahead of the Reviewer stage’s own failure exit, and before$rev_statusis even parsed, so a Reviewer that never noticed the merge ("status": "ready"), one that did ("status": "blocked", naming it), and one that produced no parseable verdict at all — a crash, a timeout, an API refusal, an unparseable final message (agent-ops#1063) — are all caught the same way — and advisory at the Reviewer’s own stage-start, so a whole engagement is never spent on a pull request already gone (an unreadable answer there simply runs the stage, since the fail-closed read afterward still guards whatever it produces). A confirmed merge is requirement 32c’s completion, not requirement 32a’sattempt-failed; a merge GitHub does not confirm — a Reviewer claiming one the Script’s own read denies — is a model error and falls through requirement 32a unchanged, since nothing distinguishes it from any other unparseable or false claim.Live instance: cycle
20260828T013721Z-ockham-2-16721, PR #883 — merged at 02:38:28Z, 21 minutes into a Reviewer engagement that ran another 24 minutes never asking. The Reviewer opened a replacement pull request (#891), reported only in prose; nothing machine-readable ever named it, and it sat with zero reviews for 9.4 hours until a human found it by hand. Requirement 32c is what that pull request’s leftovers become instead —file_debt/file_issueon the Reviewer’s own verdict, filed by the Script — andprompts/reviewer.md’s own “When this pull request merges while you are still reviewing it” is the instruction that replaces the improvisation: no replacement pull request, ever. - not a draft — log
31e. A merge-conflicts item’s rebase-only push carries the standing
Reviewer verdict forward instead of paying for the engagement again
(agent-ops#1806). Resolving a conflict costs three stage runs in the
ordinary path — Implementer, Reviewer, Approver — because the push moves
the head, and a moved head is what the Reviewer stage keys on
unconditionally. Most of those pushes change nothing about the pull
request’s own diff: a clean rebase, or a conflict resolved by keeping
both sides of a hunk, reproduces the same net content on the moved base.
Requirement 46a’s restale sweep already answers this question for its
own, independent recovery path; this requirement is the same answer
applied where the cost is actually paid — inside the cycle that just ran
the Implementer.
Captured just ahead of the Implementer stage (step 6b), while`$selected_branch` still names the pull request's pre-push head: for a`merge-conflicts` work order that does not carry `"takeover": true` (atakeover names Dependabot's own pull request, ordinary fresh workrequirement 3s already excludes from this treatment), the branch's andthe work order's own `base`'s current tip SHAs, read with `gitls-remote` — no clone of their own, since the cycle's own clone has notyet been pointed at the pull request's branch at this point. `base` isthe gathered entry's own `baseRefName` (`scripts/gather-merge-conflicts.sh`),carried onto the work order by both producers exactly as a `dequeued`entry's `base` already is — `mk`'s `mc_cands` composition(`lib/stage-attempt.sh`) for the deterministic fallback, and theCo-Ordinator's own "For a `merge-conflicts` entry" instruction(`prompts/coordinator.md`) for a model-selected one — so the capture'sguard above (an absent `base` skipping the capture) is never live inpractice; a takeover carries the field too, and is turned away by thetakeover test above before its `base` is ever read.
Compared at the Reviewer stage's own start, immediately after theexisting merge-state advisory read (requirement 31d) and before thereviewer tier is computed: `rebase_only_push` (`lib/rebase-only.sh`)diffs the pre-push head against the pre-push base and the post-push headagainst the base's current tip, and reports whether the two diffs are`git patch-id --stable`-identical — never authored dates, which aconflict-resolution commit moves just like any other. Both heads arefetched by name from the forge, from the repository's own`https://github.com/<slug>.git`, symmetrically: the question iswhether the *push* changed the diff, and the clone's own working treewould instead answer whether the Implementer's edits did — true even ofan Implementer that reported `complete` having pushed nothing. Bothcomparisons run in a bare repository the Script makes for them, never inthe Implementer's clone, which by then is the stage's (requirement 45e):before the Implementer stage, `rebase_only_forge_capture` fetches thepre-push pair into it, commits only (`--filter=tree:0`), and computes thepre-push patch-id there and then, while the forge still serves that headas a branch tip; at the Reviewer's start, `rebase_only_forge_check`fetches the post-push pair into the same repository, compares, andremoves it. Nothing asks the forge for the pre-push head after theImplementer's force-push has made it unreachable. A headthat did not move at all is therefore not a rebase-only push but no push,and takes the full path. Advisory exactly like requirement 31d's ownread: an unreadable ref at either point (the fetch of the pre-push SHAsfailed, either head could not be resolved) runs the Reviewer engagementas normal, never guessed at as rebase-only.
A confirmed rebase-only push skips the Reviewer **engagement** —`stage_budget_apply` and the `run_model_stage` call alone — and logs`reviewer-carried-forward` (`repo`, `item`, `pr_url`, `old_head`,`new_head`, `rebase_only: true`) for D23's cost accounting to read, inplace of the `stage-end` event no stage run produced. The cycle thencontinues through the `ready` path below under a synthesised Reviewerverdict (`status: "ready"`, `fixes_applied: []`, `comments_left: 0`, `ci`naming this requirement) exactly as a real `ready` would: requirement31c's handoff gate, the Approver engagement (requirement 8b) and thearming step (requirement 8d) all run unchanged.
The asymmetry is deliberate, and is the whole of what may be carriedforward. The Reviewer's verdict is this pipeline's own state, so a pushthat changed no net content leaves it as true as it was. The Approver'sverdict is a GitHub artefact, and every repository this pipeline may acton is required to set `dismiss_stale_reviews_on_push: true` (D18 Stage 3below, `docs/records/PULLWRIGHT-DAY-ONE-AUTONOMY.md` §1a) — a rule that keys onthe head SHA moving and knows nothing of patch-id identity, so a`merge-conflicts` push, necessarily a force-push, dismisses the standingapproval whether or not the diff changed. `run_approver_stage` is theonly thing that mints a replacement, and the acceptance check 8u landing-retrysweep cannot recover one it never finds: `_landing_retry_sweep_repo`requires a currently standing approval and excludes `complexity:high`outright. Ending the cycle at this point would therefore leave the pullrequest un-approved and un-armed until requirement 46's unreviewedtrigger reached it hours later — a larger cost than the engagement itsaved, not a smaller one.
Falling through also satisfies agent-ops#1806's own "provided therequired checks pass on the new head" proviso without a check of itsown: `handoff_complete_review` calls `review_gate_verdict`, which readsthe required checks fresh at the current head, so a diff that ispatch-id-identical against a base that *moved* — a semantic conflict, thedefault branch renaming something the unchanged diff still calls — iscaught there rather than carried forward.
Anything else — a resolution that changed the diff, a follow-up fix — runsthe engagement below unchanged.31f. The Implementer’s own stage-start pays the same advisory merge check
requirement 31d already gives the Reviewer, for the same five finishing
sources whose work order hands it a subject pull request before it ever
runs (agent-ops#1062). review-feedback, merge-conflicts (less a
takeover, whose pr_url names Dependabot’s own pull request, not a
subject this stage can retire), dequeued, landing-refusals and
abandoned-drafts — preflight_existing_branch_source’s own set — each
claim a pr_url the Co-Ordinator never minted and the Implementer did not
just raise, so it can be stale the same way the Reviewer’s own subject
can: merged in the gap between the cycle’s gather and this stage’s
launch. Requirement 34m’s own pre-flight already asks a related question
earlier in the same cycle (preflight_branch_merged_reason, gated to the
same five sources), but against an ancestry compare and a source_states_ json digest both sampled before the Co-Ordinator engagement — exactly
the window a merge can land inside. This requirement is the live
counterpart, immediately ahead of the stage it would otherwise waste: one
pr_merge_state (requirement 31d) read against the work order’s own
pr_url, run just ahead of step 7’s own engagement (after step 6b’s
rebase-only pre-capture, before stage_budget_apply implementer is ever
called).
`merged` reaches requirement 32c's completion exactly as the Reviewer'sown stage-start catch does — `reviewer_merge_observed` is the oneimplementation all three call sites share, logging `stage:"implementer-stage-start"` — and additionally releases the item-keyedclaim (`release_claim no-pr`), which the Reviewer's own two call sitesnever have to: by the time either of those runs, the Implementer hasalready raised `pr-raised` and dropped the item-keyed claim in its ownfavour (step 7's "have-pr-pending"), but this read runs before theImplementer stage exists to do that, so the item-keyed claim this cycle'sown claim loop won is still live and must be released here instead. Everyother result (`open`, or an unreadable `failed`) is advisory only andsimply runs the Implementer stage as normal — nothing about a mergecaught here is irreversible the way a draft flip, an Approver review or alanding attempt is, and the Reviewer's own handoff-time read (requirement31d) still guards whatever this stage goes on to produce regardless.-
review_gate_required_checksalso compares the base branch’s own ruleset against what actually ran, so a required context with no run at all is caught, not read as a vacuous pass (issue #1543).gh pr checks --requiredlists check runs; a branch that deletes the workflow, or removes or renames the job, producing one of the base branch’s required contexts leaves that context with no run at all on the head commit — which is not a failing entry, it is simply absent, so requirement 31c’s ownall(.bucket == "pass")test is vacuously true for it. The live instance: PR #1503 (issue #882) deleted.github/workflows/tech-debt-register.yml, whoseregisterjob ruleset 18857310 required; every check that did run was green,mergeStateStatussatBLOCKED, and nothing surfaced the cause until an unrelated item (#1529) happened to block on this one 6+ hours later and #1540 escalated it only then.review_gate_required_checks(lib/review-gate.sh) takes an optional second argument, the base branch, and — only once the check-runs list it already read comes back all-pass— asksrepos/<slug>/rules/branches/<base>for the branch’s own active rules, collects everyrequired_status_checksrule’scontexts, and compares that list against thenames the check-runs list actually carried. Any context present in the ruleset and absent from the runs isdirty, naming the missing context, distinct from both requirement 31c’s existingdirtyreasons (a real failing check, or the empty-list trap) and itsunknown. A base branch whose ruleset itself cannot be read —gh apifailing outright, norequired_status_checksrule on it at all — skips the backstop exactly as if it had found nothing, the same non-blocking conventionreview_gate_security_alertsalready applies to an alerts API it cannot reach: a ruleset this call could not ask is a fact about this node or GitHub’s availability, not proof the branch is missing a check, and costs nothing beyond the one comparison this call already makes. Omitting the base branch — every caller that predates this — skips the backstop identically, soreview_gate_required_checks("$url")alone is unchanged.review_gate_verdict(and thereforehandoff_complete_reviewandlanding_arm, its two live callers) already passes its owndefault_branchargument through toreview_gate_required_checks, so both of requirement 31c’s own gates — the Reviewer’sreadyhandoff and the landing gate — get the backstop with no call-site change of their own.This is the backstop half of a two-seam fix; requirement 56 is the earlier, deterministic half, run once at pull-request time rather than waiting for this backstop to catch it at handoff.
-
A required context reported more than once against the same head commit, with at least one of those runs already green, is repaired rather than read as a real failure (agent-ops#1978). A duplicate
pull_requestwebhook delivery for one push starts every triggered workflow twice against the same head commit. A workflow with no concurrency group simply runs, and passes, twice — harmless, and invisible to requirement 31c’sall(.bucket == "pass")test either way. One that cancels a superseded run of itself (cancel-in-progress, as “Build the node image” does) leaves that run’s check runsCANCELLEDbeside the surviving run’s ownSUCCESSones for the same context names —gh pr checks --requiredreports both entries under the onename, so requirement 31c’s own all-passtest fails even though the head commit is already proven fine. The live instance:agent/1950’s push of18a0e699b3started everypull_requestworkflow on this repository twice at 2026-09-29T17:04:1x, and “Build the node image”’s concurrency group cancelledWork out what changedandWork out the version stampon the older of the two runs — both required contexts — while every other workflow’s duplicate ran harmlessly to completion. GitHub’s own rollup counted the cancellation; the pull request satmergeStateStatus: BLOCKEDfrom 17:04 until a human pushed a new commit at 08:30 the next day, despite a standing Approver approval reached at 17:44 on the strength ofreview_gate_verdictreading the same checks as clean.Before
review_gate_required_checks(lib/review-gate.sh) settles ondirtyfor a non-empty check-runs list that is not allpass, it calls_review_gate_repair_duplicate_runs: for every entry whosebucketis notpassbut whose ownnamealso carries apassentry elsewhere in the same read — a required context superseded by a passing sibling run — it reruns the superseded run (gh run rerun, its id pulled from the entry’s ownlink, an Actions job URL) and re-reads the required checks, up toREVIEW_GATE_RERUN_ATTEMPTStimes (default 10)REVIEW_GATE_RERUN_INTERVALseconds apart (default 15), stopping the moment a re-read comes back all-pass.gh run rerunreplays the original event without a new push, so a standing Approver approval is never dismissed by the repair the way a corrective commit would dismiss it. A context whose only non-passentries have no passing sibling — a genuine failure — is untouched by this and still reachesdirtyfrom requirement 31c exactly as before.Not every superseded run clears on a rerun: a check that reads the pull request’s description (or any other mutable field) from the triggering event rather than through the API replays that same stale value and fails again — the shape a description edit produces on
#1981, whosechangelog-sectionrun failed against the old text and passed against the new one at the same head commit, both counted by the rollup even thoughchangelog-sectionis not itself required. Where a repair attempt exhausts every re-read still short of all-pass, the context reachesdirtyexactly as a genuine failure would — the ordinary repair path (a human, or a future push) still owns it; this requirement’s own rerun is a best-effort clearing of a duplicate, not a guarantee.No code change removes the duplicate delivery itself: this repository’s own trigger configuration (
.github/workflows/*.yml) declares no duplicatepull_requesttrigger, and every push this pipeline makes is a singlegit push, so the doubled delivery in the live instance above originated on GitHub’s side, outside this repository’s control — the repair exists because a future duplicate delivery cannot be ruled out either way, exactly asreview_gate_verdict’s existingunknownalready treats aghfailure as a fact about the platform rather than the pull request. -
A repository that configures no CI at all is
clean, not requirement 31c’s conflicting-PR-runs-no-CI trap (agent-ops#2194).gh pr checks --requiredreports both “checks were expected on this pull request and are absent” (poetic-fiddle #190’s trap) and “this repository runs no CI at all, so nothing was ever going to be reported” in the identical shape — empty stdout, non-zero exit. Poetic-Poems/poetic-fiddle#465 hit the second case directly: its pull request was againstPullwright/.agent, a repository with no.github/workflowsandactions/workflowsreportingtotal_count: 0, and the trap refused it anyway, with anunblock_conditionnaming a security-severity code-scanning alert that was never identified — code scanning is not even enabled on that repository._review_gate_no_ci_configured(lib/review-gate.sh) is asked before either no-required-checks shape inreview_gate_required_checkssettles ondirty. Branch protection and rulesets are not readable on a private repository on the free plan (403 Resource not accessible by integration), so “which checks are required here” cannot be asked directly; two signals stand in for it instead —GET /repos/{slug}/actions/workflowsreportingtotal_count == 0and the pull request’s head commit carrying no commit statuses at all (GET /repos/{slug}/commits/{sha}/status,total_count == 0). Only once both read zero does the verdict becomeclean, with a line on stderr naming why; a repository with workflows configured that simply reported nothing for this head commit, or one with no workflows but a legacy commit-status integration still posting to it, stays on thedirtytrap exactly as before — the regression poetic-fiddle #190 itself guards against.The
unblock_conditionadirtyverdict’s requirement 32a handback carries (lib/coordinator-phase.sh) is chosen from which of requirement 31c’s two sub-checks actually produced the reason: it names the security-severity code-scanning alert only when the gate’s own reason names one, never as a blanket addition to a required-checks failure that never implicated one. -
Ends with a single JSON object:
{"status": "ready" | "blocked", "pr_url": …, "fixes_applied": […], "comments_left": n, "ci": "passing" | …}, plusreason— one line naming what is wrong — onblocked, which becomes the block’s owndetailunder requirement 32a.blockedis the only spelling that means anything; requirement 32a’s!= readyfall-through already routes every other ending — an unparseable status included — down the sameattempt-failedpath, so no synonym was ever needed to provide tolerance for one.ci: "passing"means every one of requirement 31’s required checks is green — nothing about a non-required check. Where a non-required check is red,cienumerates it by name instead of a barepassing, e.g."ci": "required passing; non-required failing: docs"— this is orthogonal tostatus, which staysreadyon this shape exactly as it would with every check green, since only a required check failing bears onstatusat all (requirement 31).Additive to a
readyverdict, absent or empty on the overwhelming majority of rounds:"open_questions": [{"question": …, "why_this_actor_cannot_settle_it": …, "comment_url": …}](D18, agent-ops#668) — a narrow, structured companion for the one casecomments_left’s plain findings comments do not fit: nothing in the diff is wrong, so there is nothing to fix or flag as a defect, but a question about the work order or its scope needs a decision the Reviewer is not the right actor to make. It is deliberately not a third status alongsideready/blocked: the pull request still hands off exactly as it always has, and an unresolved entry holds only unattended landing, through the gate requirement 8f adds — never the handoff itself, and never anything a defect or an impediment already has a channel for.Additive on the one ending requirement 31d describes, absent everywhere else:
"file_debt"/"file_issue"({title, body, default_fix, owner_decision}each — the Approver’s own field shape, requirement 42a), carrying what a pass had already found when its subject merged out from under it. There is no live pull request left to hold aDefers:line or a replacement pull request of the Reviewer’s own (requirement 31d forbids one), so the verdict field is the record: requirement 32c’s completion path files whatever it names, and nothing else the Reviewer writes that round survives. 32a. A Reviewer that cannot hand off hands back, not out. Any ending other than a pull request the human can see —blocked, an unparseable status, or areadywhose handoff requirement 31a could not make true — is recorded as anattempt-failedagainst the item, carrying thepr_url. That is a blocked item by requirement 34 and Enabler-eligible by requirement 35a, so the Enabler re-examines it with the whole history in front of it and either clears it (requirement 32b) or escalates it to a human by issue (requirement 36).The promise this keeps: a pull request that is not ready for review is the pipeline’s problem until an Enabler says otherwise. A human is never expected to discover work by noticing a draft. Recording the verdict as a bare
stage-end— which is what it was — named no item, so it pinned no state, appeared in no blocked list, reached no Enabler, and left the PR to be swept up hours later by abandoned-drafts as though the Reviewer had never run.The Script leaves no comment of its own on the PR here. The Reviewer has already stated its concerns there in its own words (requirement 30) and that is the record the Enabler reads; a second comment would add nothing — marking it (requirement 3e) would keep it from resetting the staleness clock, but there is still nothing for it to say that the thread does not already contain. Where the Script does comment on a stage failure it says the item is recorded blocked and that the Enabler will re-examine it — never that the PR has been left for a human, which under this requirement is not true. 32b.
complete_handoff. An Enablerunblockedverdict may carrycomplete_handoff: trueon an item whosepr_urlis set (requirement 35a), meaning: this block is an unfinished handoff — an open draft this system raised, checks green, work done, no unanswered concern — take it out of draft. The Enabler establishes it; the Script performs it, throughhandoff_complete_review(requirement 31c) — the same gate-and-flip implementation the Reviewer’s own handoff calls, run here in full rather than skipped — and on a clean verdict logspr-readywithhandoff: "enabler". The division is requirement 36’s: the Script is the only writer of the pipeline’s outward acts, which is why it and not the Enabler also files the escalation issue. Acomplete_handoffon an item with nopr_urlis ignored — there is nothing to hand off.The Script refuses
complete_handoffoutright — logging awarningnaming the reason, never the flip — when the item’s most recently recorded failure is at or before the Implementer stage (agent-ops#440, PR #433): the block acomplete_handoffrecovers must itself be a Reviewer’s, or nothing has ever confirmed the pull request is safe to hand off, and every one of the four preconditions above can read as satisfied only because none of them was ever actually asked. This is checked beforehandoff_complete_reviewruns at all — a Reviewer verdict is a precondition for asking the gate, not a substitute for it — and reads the block’s ownstagefield (the same onehandle_stage_failure/log_reviewer_handbackstamp on everyattempt-failed, requirement 35a):"reviewer"and the recovery proceeds; anything else ("implementer","coordinator","", …) and it is refused. On PR #433 the Implementer had failed, the Reviewer block never ran, and acomplete_handoffstill flipped the pull request to ready — the gate did not exist on this path at all yet, so nothing caught it. A refusedcomplete_handoffdoes not undo the item’s ownunblockedverdict, which still stands: the underlying impediment the Enabler diagnosed is still cleared, and the stalled pull request is left for a Reviewer to actually examine — which is what theabandoned-draftssource (requirement 3e) does once the draft goes stale, handing it to a fresh Implementer-then-Reviewer pass.That recovery is structural, not configurational. The item never finds its own way back: the draft’s branch is the claim the item was taken under, so every later claim on it 422s and the Co-Ordinator’s exclusion reads “claimed, skip” — requirement 17b’s mechanism, in precisely the state that requirement’s sweep exists to convert into this one — and the other three finishing sources exclude drafts by construction (requirements 3c, 3g, 3z), because a draft is the Implementer’s own claim marker rather than work awaiting a human. That is why
abandoned-draftsis a required member of every repository’ssources(requirement 3e; agent-ops#472’s decision): a repository able to omit it would leave this draft for a human, along with every other stalled draft it ever raises, whatever stalled it. The refusal can therefore count on requirement 3e re-detecting the draft — and it stays a refusal either way, since the alternative is flipping to ready a pull request nothing has reviewed.Once a Reviewer verdict is on record,
handoff_complete_review’s own gate still applies exactly as requirement 31c describes it:dirty(either sub-check, or the closing-keyword gate) or an unreadable required-check list refuses the flip with awarningnaming what the gate found — never a Reviewer handback, since there is no Reviewer engagement to hand back to — andcomplete_handoffis recorded on the resultingenabler-examinedevent as"failed"rather than a flip word, so a reader can tell “the gate refused it” apart from “there was nothing to hand off” and from an actual flip. An unreadable required-check list also runs requirement 31c’s own node-health streak (TD-PPagop-26081404) here, through the samereview_gate_escalate_unreadable_streakhelper the Reviewer’s own handoff calls (TD-PPagop-26081603): a run of consecutive unreadable-checks failures escalates to onereview-gate-checks-degradedevent whether it lands on this path or that one, rather than only the latter.Requirement 31b runs on this path too, and it is not decoration here: an
alreadyis exactly what a stalled review round answers, because that PR was never a draft. Completing only the flip would clear the block, log a handoff, and leave the human as unasked as before. Both handoff paths run both halves, or the one that recovers a failure is the one that recovers it incompletely. 32c. A subject that merges mid-stage is a completion, not a hand-back (agent-ops#916, escalation #922). Requirement 31d’spr_merge_stateread confirmingmerged— at the Reviewer’s own stage-start or at the handoff, ahead of the stage-failure exit and$rev_status’s own branch alike — ends the cycle here instead:merge-observedis logged (repo, item,pr_url, the merge commit when GitHub reports one, and which of the two reads caught it), whatever the Reviewer’s own verdict asked to be filed underfile_debt/file_issueis filed under the ordinary pipeline login — the Reviewer carries no App identity of its own, the same reason the Enabler’s own use of the two fields (requirement 36c) always omits a token too — and the PR-keyed claim is released. Nopr-ready, no Approver engagement (requirement 8b), no landing attempt: the item retires the waylib/work-gone.shretires one whose issue closed underneath it (requirement 34i), never as requirement 32a’sattempt-failed, because the work this pipeline was asked to hand off is not missing — it is already ondefault_branch, merged by whoever merged it, and there is nothing left for an Enabler to re-examine.lib/merge-observed.sh’sreviewer_merge_observedis the one implementation all three call sites run: both stage-start calls pass it an empty verdict ({}— no stage ran yet, so there is nothing to have asked for filed); the handoff call passes the Reviewer’s own parsed JSON,file_debt/file_issueincluded wherever its own"status": "blocked"ending set them (prompts/reviewer.md’s “When this pull request merges while you are still reviewing it”), or that same empty verdict where the stage produced no parseable JSON to carry them. Requirement 31f’s own call — the Implementer’s own stage-start, ahead of a finishing source’s pre-existing subject — is the third: it reaches this same completion for an item the Implementer stage never even launched for, additionally releasing the item-keyed claim its own header explains (release_claim no-pr, sincereviewer_merge_observeditself only ever held the PR-keyed one).A merged subject retires the item; it says nothing about the node. So on that no-parseable-verdict path the handoff call site still takes the usage-limit read the stage-failure exit it now precedes would have taken (
detect_and_log_limit_hit, requirement 32a’s ownhandle_stage_failure), and takes it nowhere else: a Reviewer stopped the moment the account refused is the fact requirement 35’s Enabler guard and the fleet’s own stand-down (requirement 2.1b) both key on, so a usage limit that happened to coincide with a merge would otherwise go unrecorded — and the Enabler, the fleet’s most expensive model, would engage moments after it and simply re-hit it.