docs/spec/implementation/requirements/logging-and-state-02.md
Requirements
Section titled “Requirements”Logging and state — requirements, continued (part 2 of 2; 34i–34p: A block whose work is gone is cleared without asking anyone…)
Section titled “Logging and state — requirements, continued (part 2 of 2; 34i–34p: A block whose work is gone is cleared without asking anyone…)”34i. A block whose work is gone is cleared without asking anyone. The
common way a block ends is not that the impediment lifts — it is that
somebody finishes the work: the issue is closed, the pull request merged,
the register entry flipped to resolved. None of that emits an event, and
both readers requirement 34 relies on are blind to it in the same place. The
Co-Ordinator never revisits the item, because a finished item is offered by
no source and so never reaches its candidates; the Enabler does, but only
after enabler_recheck_hours, and it pays a full engagement to learn what
one read of state the cycle already holds would have said. Until then the
item is reported as blocked, and the count an operator reads at a glance
says the pipeline is stuck on work that is done.
So, in the same pre-extract window as requirements 34f and 34g, and againstthe *open* blocked set (34h — a void item needs no unblocking), the Scriptanswers one question per item class and logs `unblocked` with`by: "work-gone"` and a `detail` naming the fact that decided it:
- **an issue** (a bare number) — the number is not in that repo's open-issue digest (requirement 3b — paged to completion, precisely because this test reads absence as closed);- **a pull request** (`pr-<n>-abandoned-…`, `-conflict-…`, `-superseded-…`, `-review-…` — `WORK_GONE_PR_RE` reads the number off any `pr-<n>-…` shape, which is what keeps this rule indifferent to which source minted it) — the number is not in that repo's open-PR digest;- **a register item** (`TD<date><nn>` or `TD-<scope>-<date><nn>`) — the item's own file on the default branch says `status: resolved` or `status: not-debt`, read by `scripts/gather-register-status.sh` for the blocked ids and no others, so a fleet with no blocked register items pays nothing and the read is bounded by the backlog rather than the register. It sits above the no-op skip of requirement 3b, like the rest of this window, so an item that stays *genuinely* blocked does cost a listing and a file read every cycle. Deciding whether to reconcile only after deciding whether to run is the cycle-late failure 34f and 34g are placed here to avoid, and two reads is a small price beside the Enabler engagements that item is already earning;- **a project-review recommendation** (`review-<date>-R-NN`) — either of two signals, both read by `scripts/gather-review-status.sh` for the blocked refs and no others: a *merged* pull request on the default branch names that ref, against the repo's 100 most-recently-closed pull requests (this is the same test requirement 16 already applies when deciding whether to offer the recommendation as a candidate at all — the review folder is a point-in-time record no stage ever edits to say a recommendation is done (requirement 25), so the merged PR's own text naming the ref, put there by the Implementer that closed the recommendation out, is the one fact anywhere that answers "is this done?"); or every tracking id the recommendation's own "Tech-debt item(s): …" line names (one bare `#NNN`, several "and"-joined, or every backtick-quoted register id the line carries, so a line naming two of them is answered only once both are; a bare id counts only standalone, an `owner/repo#NNN`-prefixed reference naming another repository's issue rather than one of this repo's) is itself already closed or resolved — satisfied by owner action outside this pipeline entirely (closing the named issue(s) by hand, or flipping a register file's frontmatter directly), which never produces a pull request naming the ref, so the first signal alone would leave such a recommendation blocked forever. The second signal is decided only from digests this same cycle already holds for the repo — its open-issue digest (requirement 3b) for a bare id, the register read just above for a register id — never a fresh fetch per tracking id, so it follows the same "unknown is not gone" rule as every other class here: an id absent from, or unresolvable in, either digest leaves the *whole* recommendation blocked, and so does a digest that cannot be read as the shape it should be — a malformed or non-array open-issue digest answers nothing about an id, which is a different fact from a digest read cleanly and found not to carry it. `work_gone_clearances` reads the two signals as distinct status strings (`"merged"`, `"tracked-closed"`) in the same map, each with its own `detail` wording;- **an implementation-plan task** (e.g. `W10-breach-handling`) — the task's own checkbox, in the repo's `implementation_plan_path` document on the default branch, is checked (`- [x]`), read by `scripts/gather-plan-status.sh` for the blocked ids and no others. This is certain only when exactly one task-list line in the document names the id as a whole word; two such lines, or none, decide nothing.
Four properties make this safe enough to run unattended:
- **Unknown is never gone.** A repo missing from the digest, a digest carrying `ok: false`, an id no register file claims by `id` or `legacy-id`, a review ref no merged pull request's title or body names and whose own tracking id(s) are not every one confirmed closed or resolved in the open-issue/register digests already in hand, a plan id no task-list line names (or that two of them do), all decide nothing and leave the item blocked. The failure is a delayed clearance, which costs a cycle; the other direction clears a block out from under work that is still real, which costs a cycle an hour until someone notices.- **A renamed repo's digest is still found.** For the issue and pull-request classes above only, the block's `repo` is resolved through `config_repo_slug_aliases`' `{old_slug: current_slug}` map (built from every configured repo's own `previous_slugs`, agent-ops#2064) before the digest lookup, since SOURCE_STATES_JSON is always keyed by a repo's *current* configured `slug` — without this, a block recorded under a slug the repository no longer has would read exactly like "a repo missing from the digest" above, forever rather than merely until the recheck window. BLOCKED_JSON's own `.repo` already arrives canonical by the time it reaches this function — `open_blocked_items` resolves it through the same map before emitting it (agent-ops#2548) — so this is a second, harmless application to an already-canonical value, not the one that does the work of surviving the rename; the aggregate's own canonicalization is. The register/review/plan status maps are looked up by the block's own `repo` unresolved, since each is already keyed by whatever repo its own blocked-id grouping was given, not by this digest.- **The findings sources are excluded, and that is not an oversight.** `gather-findings.sh` degrades to `[]` on an API error by design (requirement 3), because a Co-Ordinator that sees no findings declines and the two agree. Read as a clearing signal the same `[]` says "every alert is fixed", so one 403 would clear every alert block on the fleet. A human-visibility item (`human-visibility-<hash>` — requirement 38e) is excluded for the plainer reason that it has no completion signal to read at all — GitHub's own live pull-request state *is* the item, and its own re-derivation is what `gather-human-visibility-hygiene.sh` itself repairs. It remains the Enabler's, exactly as before.- **It clears, it never voids.** The event is `unblocked`, which requirement 34 calls the safe direction — a wrongly cleared item becomes a candidate again, is offered by no source, and nothing happens. A void is terminal (34c) and must be corroborated (34d), and neither is what a deterministic tidy-up has earned.
The rule has one implementation, `work_gone_clearances` in`lib/work-gone.sh`, which is pure: it decides from the blocked set, thedigests and the three side-channel status maps (register, review, plan) itis handed, and reads nothing itself.34j. A structured dependency is held, and released, by code — never by a
model re-reading prose. Blocked-by: #195 (same repo) or
Blocked-by: owner/repo#195 (a repo this pipeline also walks), one or
more comma- or whitespace-separated references on their own line in a
GitHub issue’s body or any comment in its thread, names a specific item
whose live open/closed state — not a narrative account of it — decides
the block. This exists because prose did not survive being re-judged: a
note like “hold until #195 is merged” is only ever a description of a
moment, and the moment it describes can pass without the note changing.
Four issues (#196–#199) recorded exactly that — the initial re-check
correctly cleared them within 43 minutes of #195 actually merging, and
the same stale sentence then re-blocked more than one of them again,
each false block costing a full Enabler engagement to undo, because the
only reader of the note was a Co-Ordinator asked to re-examine it
(requirement 18a) from nothing but the paragraph itself. A reference is
immune to this by construction: nothing here ever trusts what a
Blocked-by: line asserts happened, only what re-checking the number it
names says now — so a stale line naming an already-closed item is
inert, not wrong, and never needs to be edited out for the mechanism to
stay correct (contrast the Enabler’s own remedy below, which is about
the next dependency, not this one).
Two deterministic mechanisms apply it, both reusing data the cyclealready holds and asking no model anything:
- **Holding.** `scripts/gather-issues.sh` drops a candidate whose thread names a `Blocked-by:` reference that is not closed — checked live, per reference, the moment its whole thread is in hand — the same way it already drops an assigned or `blocked`-labelled issue (requirement 3j). An item newly declaring a dependency therefore never reaches the Co-Ordinator and never earns an `attempt-failed`: the dependency holds it before the pipeline's own notion of "blocked" is ever written, at zero cost beyond the one `gh` read per reference the candidate would otherwise have spent a full evaluation on anyway. That holding is as recent as the band it filtered only for the `Blocked-by:` reference itself: requirement 48 runs this gatherer for one repository per cycle per node, so a dependency that a repository's thread gained *after* its last turn does not hold its candidate out of that node's digest until the repository's next turn comes round — resolving it needs the whole thread and a live per-reference check, the expensive work requirement 48 exists to skip on a replayed repository's off cycles. An assignment or a `blocked` label gained in that same window does not wait that long: 3j's own assigned/`blocked`-label drops are re-applied to a replayed band too, every cycle, from `gather_source_state`'s own already-sampled labels and assignee (`issue_state_reapply`, lib/candidate-select.sh), which costs no further GitHub read (agent-ops#1095).- **Releasing.** Against the *open* blocked set (34h), in the same pre-extract window as 34f, 34g and 34i, the Script reshapes this cycle's own freshly gathered `issues` *and* `tech_debt` candidates (agent-ops#2604) to a single `repo → item → thread` map, keyed by each candidate's own number, and clears any blocked issue or tech-debt item found there whose thread still carries a `Blocked-by:` line: presence in that map, on its own, already proves gather-issues.sh's or gather-tech-debt.sh's holding check found every reference resolved this same cycle, so the release asks no second question of GitHub — it reads the holding check's own verdict rather than re-deriving one. The two bands are concatenated before keying, `tech_debt` last — they partition a repo's open issues by the `pw::type:tech-debt` label (gather-issues.sh excludes it, gather-tech-debt.sh keeps only it), so a number legitimately appearing in both never happens; the ordering only decides which entry would win if that partition were ever violated, not a case this reshape expects to hit. An item excluded from this cycle's candidates for *any* reason — a reference still open, an assignment, the `blocked` label, or simply a repo this cycle did not walk — is absent from the map and decides nothing, the same "unknown is never gone" rule requirement 34i's clearances observe. A repository whose `issues`/`tech_debt` band requirement 48 replayed from this node's expensive-gather cache rather than reading fresh counts as one this cycle did not walk, and is narrowed out of the map before the reshape: its bands carry the holding check's verdict from whenever its own last turn was, which is not the proof this release reads. Logged `unblocked` with `by: "dependency-resolved"` and a `detail` naming the reference(s) that resolved.
The rule has one implementation, `dependency_clearances` in`lib/dependency-gate.sh`, alongside the parser, `dependency_refs`, thatboth mechanisms share.
**GitHub's own native Issue Dependencies feature (agent-ops#2422) ishonoured the same way, as a second signal alongside the `Blocked-by:`text convention — never a replacement for it.** `dependency_native_open_ref`(`lib/dependency-gate.sh`) reads the REST `issues/<n>/dependencies/blocked_by`endpoint live, and reports the first still-open issue it names (same- orcross-repository, displayed the same `#195`/`owner/repo#195` way a textreference is) — or nothing, when it names none, or every one it names isalready closed. A read that fails names nothing, so nothing is held:`dependency_native_blocked_by` prints `[]` rather than assume a block onan API hiccup, the same direction an unreadable *thread* takes for thetext convention. A dependency the payload does name but gives no `state`for counts as still-open instead — the fail-safe direction anunverifiable `Blocked-by:` reference alreadytakes. `issue_blocked_by_ref` (`lib/issue-prefetch.sh`), the one call siteboth gatherers' holding check already made, tries the text conventionfirst and falls through to the native check only when the thread names nostill-open `Blocked-by:` reference — none at all, or every one it namesalready closed — so an open text reference, where both conventions nameone, decides the block exactly as it already did. Holdingapplies identically either way: a candidate naming an open nativedependency never reaches the Co-Ordinator, on the same terms as 3j/3t'sown text-based drop above.
**The live native read is made only for an issue that has a nativedependency to read.** The endpoint answers about one issue at a time andboth gatherers' candidate loops are uncapped, so a read per candidatewould cost one REST call for every candidate the holding check does notdrop — the one-call-per-surviving-candidate shape requirement 3j's ownGraphQL listing walk (agent-ops#1085) exists to have removed. GitHubreports each issue's own dependency counts on that same listing page, atno further call, page or rate-limit point: `issue_prefetch_open_issues`carries them through as `issue_dependencies_summary`, and`issue_prefetch_native_dep_skip_set` (`lib/issue-prefetch.sh`) names theissues whose counts say there is nothing to find, which each gathererskips the native read for by passing `issue_blocked_by_ref` the emptynumber it already reads as "check the text convention alone". Thepre-filter is stated as what may be skipped, so every way of not knowing— a summary absent, null or non-numeric, an issue the array does notdescribe, the computation itself failing — falls back to making the read,and no change in what GitHub returns can quietly switch native blockingoff.
**Releasing is not symmetric with holding.** This requirement's ownrelease mechanism reshapes a cycle's freshly gathered `issues` and`tech_debt` candidates into a `repo → item → thread` map and reads a`Blocked-by:` *line* out of that thread, so an item whose dependency wasdeclared natively only — no text line anywhere in its thread — yields noclearance, and therefore no `unblocked` event. The gatherer-level hold isunaffected either way: an item merely dropped by the holding check above,never recorded blocked, reappears as a candidate the moment the nativedependency closes, because nothing persisted that drop. A block that didreach the log stays there until an Enabler engagement clears it: the onere-fetch outside the gatherer — requirement 35g's own live re-check of astale-gather candidate (`lib/eligibility.sh`) — reads the nativedependency through the same `issue_blocked_by_ref`, but only ever to*hold* the item out of Enabler eligibility, never to release a block.Recorded as tech debt inagent-ops#2459 rather than fixed here; the Implementer is instructed torecord a dependency both ways (`prompts/implementer.md`), so an item thispipeline blocks itself carries the text line the release reads.
This binds to GitHub issues only, for the same reason requirement 18adoes: they are the one blocked-item shape with a thread the cyclealready reads whole — a tech-debt item is one of these, being simply aGitHub issue carrying `pw::type:tech-debt` (D15 as revised). It does notneed requirement 3b's fingerprint extended to cover it: a same-reporeference's state is already part of that repo's `issues` digest (openissues) or claim signal (open PRs), and a cross-repo reference needs itsown repo configured and walked for the same reason 34i's register/review/plan reads do — so the reference resolving always changes the`issues` array gather-issues.sh hands the Co-Ordinator, or the`tech_debt` array gather-tech-debt.sh does for a tech-debt item (eitherway, a previously excluded candidate now appears), which requirement 3balready fingerprints verbatim, waking the fleet within the hour withouta dedicated projection.
A model's part in this is deliberately narrow. Nothing here edits anissue's body — an agent rewriting a human's own text is a cost thisconvention does not need paid, since a stale reference is inert ratherthan misleading. The Enabler, examining a blocked or refinement-classitem and recognising an unstructured dependency note it cannot itselfact on, may post one comment naming the structured form the pipelinecan read (requirement 36's existing "one concise comment" power,spending nothing new); the comment becomes part of the thread thisconvention already reads, so a human — or the Co-Ordinator, next time itis asked to select this item — can adopt it verbatim.34k. Act on void: close the GitHub object a void names. A void (requirement 34c) already stops the item being selected again, but nothing before this touched the object it is about — an obsolete draft pull request or a superseded issue stayed open on GitHub, visible to every human and to every tool that reads the repository rather than this pipeline’s own log, and kept being re-derived void by cycle after cycle with nothing ever said to it (issue #240; poetic-fiddle #190/#214 were re-derived void on 7+ separate cycles and never closed). Void tombstones are private state, and the world they describe was never corrected.
So, in the same pre-extract window as 34f/34g/34i, against `void_json`(the full void set — an already-void item needs no unblocking, but itstill names an object that may need closing), the Script asks`scripts/close-void-github-items.sh` to close it, for the two id shapesthat name a GitHub object at all (the same shapes requirement 34i's ownwork-gone rule reads, from the one definition in `lib/work-gone.sh`):
- **an issue** (a bare number) — closed, with a comment carrying the void's own `detail` (the reason) and `evidence`, iff GitHub still reports it open;- **a pull request** (`pr-<n>-abandoned-…`, `-review-…`, `-superseded-…`) — closed the same way, iff still open.
**The `-conflict-`, `-dequeued-` and `-landing-refusal-` shapes areexcluded from the pull-request caseabove.** `pr-<n>-conflict-<head-sha>` names the pull request only to saythe *conflict* on it resolved — the void is about the conflict, not aboutthe pull request, which stays a live, ready PR of ours the moment theshape is voided. Closing it here would discard exactly the workrequirement 34's `merge-conflicts` source exists to protect, and did, forreal: pull request #264 — the first raising of the branch that became#273, carrying a human `CHANGES_REQUESTED` review round — was closedunmerged when the unrelated item `pr-264-conflict-…` was voided after itsconflict resolved, and both the PR and the review round were lost(TD-PPagop-26080901). `pr-<n>-dequeued-<head-sha>` (requirement 3z) makesthe identical shape of claim about a dequeue rather than a conflict — thepull request stays live and ready, waiting on the human's own re-queue —so it is excluded on the same reasoning (TD-PPagop-26081409).`pr-<n>-landing-refusal-<ids>` (requirement 53, issue #979) makes theidentical shape of claim about a comment-reconciliation refusal instead —the pull request stays live and ready, waiting on nothing but the answera landing-refusals Implementer round already gave it — scoped to theunreconciled comment ids exactly as `-conflict-`/`-dequeued-` are scopedto a head SHA, so it is excluded on the same reasoning. So a void of anyof the three shapes closes nothing: it is leftexactly like a void shape that names no GitHub object at all, below. Theexclusion is decided before the per-call action cap, exactly as the`stage` gate below is: these shapes are never actionable on any cycle, sothey must neither consume one of the three slots nor be counted in theoverflow the cap reports — a deferred count naming work nothing will everdo would have the Script log that warning every cycle in perpetuity,since a shape this never closes never earns the `void-object-closed`that would retire it under requirement 34n.
**`pr-<n>-superseded-<head-sha>` is not excluded.** A Dependabot bump anewer open bump has made moot (requirement 3s) mints this sibling shapeinstead of `-conflict-`, and its void makes the opposite claim — the pullrequest itself is moot, not merely its conflict — so closing it discardsnothing (TD-PPagop-26081304). It closes through the ordinarypull-request branch above, with requirement 34d's own live corroboration(author still Dependabot, a newer open bump of the same family stillopen) standing in the same place #264's empty-diff test does for`-abandoned-`/`-review-`. Distinguishing the two shapes at the id, ratherthan reading the void's reason, is what lets this close resume withoutre-admitting the `-conflict-` shape #264 cost this pipeline: the twoclaims never share an id again.
**Which obsolete pull requests this can actually reach.** The close abovefires on a *corroborated* void, and requirement 34d corroborates the twoclosing shapes strictly for this reason: a `pr-<n>-abandoned-…` or`pr-<n>-review-…` void whose pull request is still open, still changesfiles against its base, and does not carry the human-applied `obsolete`label is refused, so an open draft that is obsolete rather thanalready-landed reaches this close only once a human has said so. Absentthe label, it is escalated to a human instead — the Enabler adjudicatesthrough the same guard, refuses it for the same reason, and raises theissue. That is the deliberate trade #264 bought: "this draft is no longerwanted" is a judgement no API call corroborates on its own, and apipeline that closes live branches on an uncorroborated judgementdestroys work. The `obsolete` label (TD-PPagop-26081308) is thecorroborable form of that judgement — applied only by a human, never by apipeline stage — so the leading example above, the obsolete draft thatstayed open, is reachable by this close once the human who knows it isunwanted says so on the pull request itself, alongside the cases the APIcan confirm outright: the pull request already closed, or its diffalready empty against the base. The close comment names the label wheneverthe closed pull request carries it (`scripts/close-void-github-items.sh`)— its presence re-checked live, presence being all the sweep can know —so the action stays auditable from the comment alone. And because theprohibition on a stage applying the label is only as strong as the namesthe config may take, `scripts/doctor.sh` fails a config that gives anyconfigurable label key the name `obsolete`, case-insensitively as theguard reads it: `pr_label` alone is projected onto every draft theImplementer raises, so one configured name would hand this close everylive draft at once — the same key-level guard the issue-side label keysalready carry against `blocked`.
Every other void shape — a tech-debt register id, a project-review ref,an implementation-plan task id — names something that is not a GitHubobject to close, and requirement 34k does nothing with it; a register idis instead requirement 34n's own register-status signal's concern,below.
**Only a corroborated void — the three stage writers, and the delegatemandate's own act.** `void_json` holds the unresolved `item-void` eventsof all three stage writers (Co-Ordinator, Enabler, Implementer), andrequirement 34d's guard corroborates every one of them before it islogged (issue #243), so each is eligible here. `stage: "decision"` — thevoid requirement 36f's `corroborate-void` act writes — is eligible too,on its own corroboration rather than the guard's: a decision taken underthe delegate mandate, filed as a closed `pw::decision` issue, and leftun-reopened for the whole of `decision_veto_window_hours`. That is whatthis close was always waiting for on a `pr-<n>-abandoned-…` or`pr-<n>-review-…` draft that still changes files — the judgement, not themachinery — so nothing else here changes to admit it: the one-shot rule,the action cap, the `-conflict-`/`-dequeued-` exclusion and a human'splain re-open each apply to it exactly as to any other corroborated void.`void_json` also holds the Script's own pre-flight voids (requirement34m), and the `stage` gate below excludes them: a pre-flight void closesno GitHub object, so a finishing-source item it voids leaves its pullrequest open for a human, or for a later corroborated void, to close. Each candidate still carries its event's `stage`, and`close-void-github-items.sh` still gates on it — an uncorroborated`item-void` must never reach this point, but if one somehow did (a futurewriter that bypassed the guard, a malformed or stageless entry), the gateis what stops it closing a live issue on an unexamined claim. Anineligible void is left exactly as a register id is — unprocessed andunmarked, so nothing stops a later pass acting on it once it iscorroborated. The one-shot rule immediately below is the second,independent bound — recovery rather than precondition — and a human'splain re-open wins permanently.
**Acted on at most once, ever — deliberately not tied to the voidclearing.** `void_object_closed_items` (`lib/cycle-state.sh`) is the setof `{repo, item}` pairs a `void-object-closed` event already names; theScript excludes them from every future pass, regardless of what happensto the object afterwards. This is not the same safety margin as 34d'scorroboration — it exists because closing is an action with a visible,somewhat blunt side effect (a comment on someone's issue), and a humanwho simply reopens the object, without going through the sanctioned`unvoid_label` route (34f) that actually clears the void, must not haveit closed on them again next cycle. `unvoid_label` remains the only wayto make the *void* itself go away; this only ever runs once regardless.
Bounded and idempotent: three actions per repo per cycle (the overflowreported, never silent, same as every other sweep here), and a `gh` readbefore every close means the worst outcome of two nodes racing is bothfinding nothing left to do. Skipped on `--dry-run`.34m. A freshly claimed item gets the same gone-work check, before the
Implementer runs, not inside it. 34i clears a blocked item’s void
without asking anyone, from digests the cycle already gathered; a
candidate this cycle just won the claim on has never been blocked, but
the question — is this item’s work already done? — is identical, and
just as often the answer (TD-PPpfid-26072801: merged and register-flipped
15 minutes before the review window this fixed opened, then re-selected
and re-implemented 21 hours later — a full Implementer engagement to
learn what one gh read already sitting in the cycle’s own gathered
state would have said). So, immediately after the claim loop of
requirement 17a wins and before the workspace clone, the Script runs
lib/preflight.sh’s preflight_done_reason against the winning
candidate alone: source_states_json (requirement 3, gathered for every
repo the cycle walked, well before the claim) answers it for an issues
item (closed) and for a finishing source’s item (its pull request closed
or merged). A register-shaped ref would additionally cost one fresh
gather-register-status.sh read, scoped to the one item, because a
freshly claimed item was never a member of the blocked set
register_status_json is otherwise scoped to — but no currently-live
source claims a register-shaped ref (the tech-debt band moved to
pw::type:tech-debt-labelled issues, agent-ops#875), so the Script passes
an empty register map for every source; gather-register-status.sh and
the register map parameter it feeds remain for a repository that has not
migrated off register-shaped refs, and for register_status_json’s own
blocked-set pass (requirement 34i). Every other source is left
to the Implementer, exactly as before — this is the three done-signals
34i already reads deterministically, reused, not a new one invented for
the occasion.
One more done-signal runs alongside `preflight_done_reason`, cheapenough to cost no clone of its own: **the claimed branch is alreadymerged into `default_branch`**(`lib/preflight.sh`'s `preflight_branch_merged_reason`): one live`gh api repos/<slug>/compare/<default_branch>...<branch>` call —`identical` or `behind` means every commit on the branch is already anancestor of `default_branch`, so the draft's work landed some other waywhile it sat. Run only for `review-feedback`, `merge-conflicts`,`dequeued`, `landing-refusals` and`abandoned-drafts` — the five sources whose branch and pull requestpredate the claim (`lib/preflight.sh`'s`preflight_existing_branch_source`) — and never for an ordinary`issues`/`tech-debt` claim, whose branch the Script has just created at`default_branch`'s own head: comparing it against that same head themoment the claim is won would always read `identical` and void everyordinary claim on its first tick. Under squash-merge — the configuredrepositories' merge mode — a merged branch reads `diverged`, so thissignal actually catches only a true merge, a fast-forward, or a branchcarrying nothing of its own; the narrowing is false-negative-only (amissed hit costs an Implementer engagement that discovers the samething, never a wrong void).
A third done-signal runs alongside the other two, scoped narrower still:**the claimed item's own blocking review has already been superseded**(`lib/preflight.sh`'s `preflight_review_feedback_reason`, issue #1360).`work_gone_clearances`'s PR-shaped clearance answers "is the pullrequest itself closed or merged?" for every `pr-<n>-…` shape alike, a`review-feedback` item's `pr-<n>-review-<id>` included — but a reviewround can be answered, and the same reviewer's `CHANGES_REQUESTED`superseded by their own later `APPROVED`, with the pull request stayingopen throughout, so that clearance never fires for it. Run only for`review-feedback`, the one source whose item names a specific review:one live `gh api repos/<slug>/pulls/<n>/reviews` call, recomputing"the review currently blocking" via `lib/handoff.sh`'s `handoff_latest_positions` — the same call `scripts/gather-review-feedback.sh` makes whendeciding whether to offer the candidate at all (requirement 34a's oneshared definition — the same standing-position-per-reviewer rule,deliberately called without a bot filter here too, since a botreviewer's own `APPROVED` is exactly the signal that answers its`CHANGES_REQUESTED` in the first place) — a hit is the ref's own reviewid no longer matching that recomputed blocking review, whether becauseit now stands answered or because a newer round from another reviewerhas taken its place. This exists because the Script's own gather can gostale between when a round is answered and when the item is dispatched:requirement 48's `expensive-gather` cache reads `review_feedback` freshfor only one configured repository per cycle, per node, and every otherrepository/node replays its own last-cached raw gather unverified —`work_gone_clearances` and requirement 34j's dependency reconciliationboth already narrow to the repos a cycle read fresh for exactly thisreason, but a `review-feedback` item is never a member of the *blocked*set either narrowing operates over, so neither one ever saw it. This onelive call, paid once per claim, closes that gap at the point closest tothe engagement it would otherwise waste, regardless of which cache orrace produced the stale ref.
A fourth done-signal runs alongside the other three, scoped to`abandoned-drafts` alone: **the claimed item's own pull request hasstopped being a draft** (`lib/preflight.sh`'s`preflight_abandoned_draft_reason`, agent-ops#2840). `scripts/gather-abandoned-drafts.sh`'s own definition of a candidate is "open and is adraft — a draft is precisely the Implementer's own claim marker", so alive `isDraft: false` read is, on its own, the complete and correctsignal that the candidate has moved past "abandoned", whether becausesome other node already finished it, a human already un-drafted it, orit merged and reopened under another ref. `prompts/coordinator.md`'s owninstruction to read a non-fresh candidate live before selecting it is a*prompted* safeguard for the same fact, not a Script-enforced one, andthis deterministic check is the backstop for exactly the gap a promptedinstruction leaves open: PR #2838 was selected twice at a head alreadyopen, non-draft and CI-green, each selection costing a full Implementerengagement to rediscover that fact. One live `gh api repos/<slug>/pulls/<n>` call, reading `.draft`, using the `pr_number` the claimedcandidate already carries (requirement 3v's `pr_number_for_candidate`) —run only for `abandoned-drafts`, the one source whose claim marker isspecifically "is a draft".
A hit from any of the four done-signals logs `item-void` (stage`preflight`) with the reason `work_gone_clearances`,`preflight_branch_merged_reason`, `preflight_review_feedback_reason` or`preflight_abandoned_draft_reason`gives, releases the claim (requirement 17a's release rules) and ends thecycle — no Implementer engagement spent. None needs a corroborationguard of its own (requirement 34d exists to catch a model's fabricatedcitation, and there is no model in this path to fabricate one): theevidence is read directly off `gh`/the register file/the cycle's ownpre-claim digest, the same ground truth requirement 34d's guard checks acitation against. The first three are safe to make terminal for thesame reason the 34i signals are: each fact, once true, stays true — thestaleness of a pre-claim digest can only delay such a fact's arrival,never assert one that later becomes false.
`preflight_abandoned_draft_reason` is the exception: draft status isreversible in this system's own vocabulary (`convert_to_draft`, modelledby `lib/reconciliation-gate.sh`'s own anchor logic and performed by thedecision-veto sweep itself, `lib/decision-veto.sh`), so a pull requestthis signal voided for leaving draft can later be converted back todraft at the same head, with no new commits, and re-abandoned. Because`scripts/gather-abandoned-drafts.sh` scopes its candidate ref to thehead SHA alone (`pr-<n>-abandoned-<head-sha>`; see that script's own"Why the ref is scoped to the head SHA" section), the re-abandoned pullrequest re-mints the identical ref by design, and the terminal void(requirement 34h) suppresses it — indefinitely, because`scripts/close-void-github-items.sh`'s stage gate actions only `stage`values `coordinator`, `enabler`, `implementer` and `decision`, never`preflight`, so this void never closes the pull request itself andrequirement 34n's retirement criterion (actioned *and* old) never firesfor it. Recovery is a human's hand-appended `unvoided` label(requirement 34c), or any new commit landing on the branch, which movesthe head SHA and lets the next gather mint a fresh, unvoided refinstead of the suppressed one. The signal still voids rather thandefers (`preflight_defer_reason`, below): the defer path would re-paythis same live read and re-release the claim every cycle the stale refis reoffered, whereas this void is paid once — once a new commit movesthe head, the next fresh gather does not re-mint the voided ref at all,so nothing is lost by leaving the narrower re-draft-at-the-same-headedge to the slower, human-mediated recovery routes above. Either waythis fails safe: the consequence is a stalled, recoverable draftcandidate left void longer than necessary, never live work silentlydiscarded.
**An open pull request already carrying the just-claimed branch defersthe claim instead of voiding it** (`preflight_defer_reason`, agent-ops#279) — checked for every item whose id is not a finishing source's own`pr-<n>-…` shape (that shape is already answered by`work_gone_clearances`), read from the same pre-claim digest's`open_prs[].h`. It is the one pre-flight fact that can become falseagain — the pull request it names may close unmerged tomorrow — and itsusual cause is narrower still: the digest is sampled before theCo-Ordinator engagement, and a branch claim is create-only (requirement17a), so winning the claim proves the ref did not exist at claim timeand the digest's pull request is very likely already gone. A void isterminal (requirement 34h: never re-selected, never re-examined, clearedonly by a human) — voiding on a reversible, probably-stale fact wouldretire live items silently, with nothing to prompt the human who alonecould unvoid them. So a hit logs a `warning` naming the repo, item andreason, releases the claim, and ends the cycle: the item is free againthe next cycle, judged against a fresh digest. The check is nearlyunreachable by construction (the create-only claim excludes a live PR'sbranch, and `scripts/sweep-orphan-branches.sh` refuses to delete a refwith an open pull request) and is kept as defence in depth: it is cheap,pure, and the state it names — however it arose — is one this cycle mustnot spend an Implementer on either way.34n. A void that is both actioned and old retires from the extract.
Requirement 34c’s only exit from void is a human’s hand-appended
unvoided — deliberately, since nothing else may reason its way out of a
terminal state — so the set nothing ever leaves grows by one entry for
every item ever voided, forever. On 2026-08-12 it reached 122 entries and
133,615 bytes, past MAX_ARG_STRLEN (131,072 bytes): every node’s cycle
died at execve with Argument list too long, before the Co-Ordinator
ever ran, for roughly two hours across the fleet (issue #309). Requirement
4g’s stdin-only delivery is what stops that failure recurring; this is
what stops the growth that caused it, by retiring an entry once holding
onto it no longer buys anything.
An entry retires once it is both:
- **actioned** — one of seven signals, one per class of void shape, none of them a model's judgement:
- an issue or pull request GitHub itself reports closed (`void_object_closed_items`, the set requirement 34k's sweep already maintains) — the bare-issue shape and the non-`-conflict-` `pr-<n>-…` shapes 34k's sweep itself acts on; - a tech-debt register row whose own file on the default branch says `status: resolved` or `status: not-debt` — requirement 34i's own "the work is gone" statuses, read for the still-unretired void register ids (a `TD<date><nn>`/`TD-<scope>-<date><nn>` shape) by a further `scripts/gather-register-status.sh` call per repo, alongside the one requirement 34i already makes for that repo's blocked ones; - **liveness**, for the five shapes the cycle already gathers as structured data each cycle (TD-PPagop-26081303, extended by TD-PPagop-26081409 and agent-ops#646): a `dependabot-alert-<n>`/`code-scanning-alert-<n>`, a `human-visibility-<hash>`, either merge-conflicts shape (`pr-<n>-conflict-<head-sha>`, which 34k deliberately excludes from its own close, and `pr-<n>-superseded-<head-sha>`, which it closes — both come from the same gather, so the same absent-from-it test decides both, redundantly for the second, which also earns a `void-object-closed` once that close lands), a `pr-<n>-dequeued-<head-sha>` (requirement 3z, excluded from 34k's own close for the same reason the conflict shape is), or a `failed-run-<…>` is actioned once its id is (a) absent from this cycle's own gather for its source, decided only when that source's gather succeeded this cycle, and (b) nothing else — liveness is not itself the age test, which the second half of this rule still applies uniformly. Age-only retirement for these five shapes was considered and rejected: a void whose id is *still being gathered* — a still-open alert, a workflow still failing, a PR still conflicted or dequeued — is doing live suppression work every cycle, and retiring it on age alone would re-expose the item to be rediscovered void all over again, the exact rediscovery churn requirement 34k exists to stop. "This cycle's own gather" is, for the first four, the same array the Co-Ordinator's runtime input already carries for that repo — read from the tee files `gather_findings`/ `gather_merge_conflicts`/`gather_dequeued`/ `gather_human_visibility_hygiene` already write during the repo walk, before claim exclusion narrows them (a claimed alert is still an open one), so this costs no further `gh` call; "that source's gather succeeded" is a `.ok` marker each of those four functions writes *only* alongside its tee file — never on its own, since a marker with no array beside it reads downstream as "gathered, found nothing", the one sentence it exists to stop the cycle saying — and only when that read also succeeded: gather-findings.sh's own exit code for the alert shape, stderr emptiness for the other two, which never signal failure via exit code by design (see their own headers). The merge-conflicts shape is the one whose id is minted per occurrence rather than per object — a fresh `<head-sha>` mints a fresh id, so no two ever coalesce — which makes it the fastest-growing member of this class; it needs nothing beyond the ordinary liveness rule, since `scripts/gather-merge-conflicts.sh` re-gathers the source on that repository's own turn (requirement 48 — every cycle before it, one cycle in `repositories` since) and stops yielding the id the moment the conflict resolves. The narrowing costs a rotation, never a wrong answer: a cycle that replays the band writes no `merge-conflicts-<repo>.ok` marker, and the liveness pass reads an absent marker as "unsampled", so the void is held to that repository's next turn rather than retired on a stale array.
The `human-visibility-<hash>` shape (agent-ops#646) joins on the same rule and needs one thing none of the others do. Its ref is a digest of the surviving violations' own `pr_url|detail` pairs, so — unlike every `pr-<n>-…` shape — a violation set that merely *changes* mints a different ref rather than dropping this one, and the void of the superseded ref is dead weight from that moment on; the absent-from-this-cycle's-gather test is exactly right for it. What differs is the walk. The human-visibility band is built only for repos the union-log reduction found a live violation for, so a repo whose violations have all cleared — the precise state in which its void residue *should* retire — was walked by nobody, left no `.ok` marker, and was read as ungathered for ever. So the walk additionally covers any repo carrying unretired void residue of this shape, bounded the same way requirement 34n's own `failed-run` fetch is (usually no repos at all) and free where it applies: with no violations handed to it, `scripts/gather-human-visibility-hygiene.sh` re-verifies nothing, makes no `gh` call, and prints the `[]` that is the definite answer the rule was missing. Its marker condition is that printed array itself — every failure path in that script leaves stdout empty or unparseable — and an unreadable reduction walks no repo at all, since `[]` handed to the gatherer on evidence we never read would be the one way a marker could assert an emptiness nothing established. `failed-run-<…>` is the one shape not read straight off a tee file: `scripts/gather-source-state.sh`'s own `workflows` digest names each still-failing workflow by id, not by the basename the item id is minted from (requirement 19), so `scripts/gather-workflow-basenames.sh` maps id to basename, called once per repo that still carries unretired `failed-run-` void residue (usually none) — bounded the same way the register-status read is; - a *merged* pull request, for a project-review ref (`review-<date>-R-NN`), or a checked task-list box, for an implementation-plan task id — the same on-demand readers requirement 34i already calls for the blocked set (`scripts/gather-review-status.sh`, `scripts/gather-plan-status.sh`), called here for the void residue of those two shapes instead, since neither is pre-fetched as structured data at all; - a project-review ref whose review folder is no longer the repository's current one (`by: "review-superseded"`, TD-PPagop-26082309) — the residue `review-merged` can never reach, because a `review-<date>-R-NN` ref is voided precisely when the work was found already done and so no Implementer ran, which means no merged pull request ever named it: the signal above is defined for exactly the population that never gets voided. A recommendation lives in a point-in-time review document, and `scripts/gather-project-review.sh` (and the Co-Ordinator's own live read) only ever reads the *latest* review folder under the repository's own resolved `report_directory` (requirement 3k), so a ref minted by a superseded folder is never offered again by anything and retiring its void costs nothing — the same reasoning `void_config_actioned`'s `source-dropped` rule already rests on. `scripts/gather-project- review.sh --current-date` reads only that directory's own listing (never the recommendation/prompt files) and reports the current folder's own date, one call per repo already walked for review-shaped void residue: `{"ok": true, "date": "2026-08-10"}` when a folder resolves, `{"ok": true, "date": ""}` when the listing succeeds and offers none at all (including a clean 404 on that directory's own static prefix — a definite fact), or `{"ok": false}` for any other failure, which decides nothing, the same "unknown is not gone" rule every liveness shape above observes. A ref's own embedded date (the `YYYY-MM-DD` between `review-` and `-R-`) that disagrees with the repo's current folder's date is actioned; one that agrees is not, and a repo the `--current-date` read could not resolve actions no ref in it either; and - **the configuration itself**, for the residue none of the five above can reach (`void_config_actioned`, decided on PR #340's review, 2026-08-13). Liveness decides nothing without the source's own successful gather, and a source is gathered only for a repo whose `sources` still list it — so a repo that drops `merge-conflicts` (or `security`) freezes every void of that shape it had already minted, and a repo dropped from `repos` altogether freezes every shape but the closed-object one. Before either test, the void's own `repo` is resolved through `config_repo_slug_aliases`' `{old_slug: current_slug}` map (built from every configured repo's own `previous_slugs`, agent-ops#2064), the same resolution requirement 34i's digest lookup above makes — without it, a void recorded under a slug its repository has since been renamed away from reads as `repo-dropped` forever, even though the repository is still configured, under its current slug (agent-ops#2455). An entry is actioned when the resolved repo is absent from the configured repo set (`by: "repo-dropped"`, any shape — nothing in a repo the config does not name can be offered by any source), or when its item is shaped like a source's own id and that source is absent from the resolved repo's `sources` (`by: "source-dropped"`); the emitted entry still names the void's own unresolved `repo`, since that is what identifies it among `VOID_JSON`'s own pairs downstream. The shape -> source map is the inverse of the repo walk's own gating, one entry per shape — the alert shape alone has two, `security` and `code-quality`, because `scripts/gather-findings.sh` serves both and either alone keeps its voids live. The `source-dropped` half is deliberately confined to the shapes whose id *form* names the source that mints them: a bare issue number or a `pr-<n>-…` shaped neither `-conflict-` nor `-superseded-` is offered by several sources (`issues:<band>`, `review-feedback`, `abandoned-drafts`), so no inverse exists and no verdict can be read off the id — those keep the closed-object signal they already had. `human-visibility` was listed among them until agent-ops#646 and is not one: it mints exactly one id shape, its own `human-visibility-<hash>` ref, so the inverse is as well defined for it as for the other mapped shapes and it carries a `source-dropped` verdict like them.
This is **not** a weakening of requirement 34i's "unknown is not gone". That rule is about a *failed read*, which is indistinguishable from absence; a source missing from `sources` is a definite fact the cycle reads locally for free, and the two were conflated only because a missing `.ok` marker meant both "the gather failed" and "the gather never ran". What a void buys is suppression of a candidate the Co-Ordinator would otherwise be offered; an ungathered source offers nothing, so the void buys nothing. Nor does the rediscovery-churn objection that killed age-only retirement reach it: churn needs the item to be re-offered, which needs a human to re-add the source or the repo, at which point one rediscovery pass is the correct behaviour of a newly-enabled source and is bounded by what is still live at that moment. The array read is `all_repos_json`, the **unnarrowed** one straight off `cfg_json '.repos'`, and that is load-bearing twice over: `repos_json` carries `--repo`'s own filter, under which every other repo would read as dropped, and `ordered_repos_json`'s `sources` are rewritten by back-pressure (requirement 2.2a) down to the four finishing sources, which would mint a spurious `source-dropped` for `security` on every back-pressured cycle. A `repos` array that is empty or unreadable decides nothing rather than retiring the whole extract at once. The decision is config-derived and so is only as fleet-consistent as the config: a node running a stale image can retire on a repo a newer config still names, which costs the same bounded rediscovery a wrong retirement always costs, never a clearance;
`lib/void-liveness.sh`'s `void_liveness_actioned` (the four structured-gather shapes), `void_review_plan_actioned` (the on-demand-reader shapes, plus the review-superseded signal alongside them) and `void_config_actioned` (the config residue) are the three pure functions this cycle folds into the actioned set alongside `void_object_closed_items` and the register-status read, all five concatenated before `retire_void_items` ever sees them. A void naming no repo (the hand-appended form requirement 34c allows) matches none of the seven signals — the config rule skips an empty repo explicitly, and `void_review_plan_actioned`'s fourth input skips a repo absent from its own map — so it is left, as it always was, for a human to retract. Both sides of the `{repo, item}` match resolve through `config_repo_slug_aliases`' `{old_slug: current_slug}` map first (`retire_void_items`'s own `aliases_json`, the same way requirement 34's own set/clear match already does, agent-ops#2359, extended here by agent-ops#2393), since every actioned pair the seven signals above build is drawn from a live read or register row and so always names a repo's current slug: without it, a void entry logged under a slug the repository had before a rename could never match an actioned pair naming the renamed slug, and would carry in the extract forever; and- **old** — its `item-void` event's own `ts` is at least `void_retire_after_days` old (default 30; `0` disables retirement outright).
A retirement, once decided, is **recorded**: a `void-retired` event perentry — `{repo, item, void_ts, by}`, `by` naming the actioned signal(`object-closed`, `register-resolved`, `liveness-<shape>`,`review-merged`, `review-superseded`, `plan-task-done`, `source-dropped`or `repo-dropped`) — a fact rather than a state,exactly as requirement 34k's `void-object-closed` is: nothing clears it.The next cycle reads the recorded set back (`void_retired_items`,`lib/cycle-state.sh`) and subtracts it from the extract(`subtract_retired_voids`) the moment `void_items` has produced it —before the 34k sweep, the register-status read, and this requirement's ownevidence-gathering. `subtract_retired_voids` resolves the same alias mapon both sides of its own `{repo, item}` match (its own `aliases_json`,agent-ops#2393) for symmetry with `retire_void_items` above, though inpractice it self-heals without one: a `void-retired` event alwaysrecords the entry's own repo, set at the moment of retirement ratherthan read back from a possibly-renamed slug. Two bounds follow thatre-deciding retirement from scratch each cycle would not give: theper-cycle GitHub cost is proportional to the *unretired residue*, neverto every void ever filed — an id whose retirement is on the log isnever asked about again — and the extract stays bounded even on acycle whose register read fails, because the subtraction needs nothingbut the log. The subtraction is ts-orderedlike every clearing rule here: a `void-retired` event masks only an`item-void` older than itself, so an item voided afresh after itsretirement re-enters the extract on the new verdict's own terms. On`--dry-run` nothing is recorded — the mark is durable state, like the34k sweep it mirrors — while the in-memory narrowing still applies, so adry run sees the extract a real cycle would.
`retire_void_items` (`lib/cycle-state.sh`) is the one implementation,called once, immediately after the register-status readand before anything downstream reads `void_json`: the Script reassigns`void_json` to its answer rather than introducing a second name, so theRefiner's candidate filter, the no-op fingerprint and the Co-Ordinator'sown input all see the bounded set with nothing to remember. Every earlierreader this same cycle — the 34k sweep and the register-status read,both running against the extract with recorded retirements alreadysubtracted, and `unvoid_clearances_json`, which reads `void_items`directly and so still reaches a retired-but-void item — needs nothingfrom the narrower set this call produces: 34k's own closed-object gatealready skips a closed item on its own account, and the register-statusread has nothing left to do once a row already reads `resolved`/`not-debt`, whichis a precondition retirement itself requires. (Narrowing before theregister-status read isalso what stops a repo whose void register ids have all retired paying aregister fetch every cycle forever.)
**This changes what one cycle hands somebody, never what counts asvoid.** Requirement 34c is untouched, and so is every internal readerthat recomputes void straight off the log instead of calling`void_items` — `open_blocked_items` (34h), `enabler_eligible_items`(35a), `refinements_map` (3h), and the monitoring dashboard's own voidtable — each its own copy of the shared `LATEST_UNRESOLVED_JQ` rule(requirement 34a), unbounded and unaffected. A retired item thereforenever resurfaces as blocked (open_blocked_items still subtracts it fromthe raw, ever-growing void set) and the dashboard's void count isunchanged; only the payload this one cycle goes on to hand theCo-Ordinator, the Refiner and the no-op fingerprint shrinks. A retiredentry's only remaining trace is the `item-void` event itself, still onthe log forever, and the closed GitHub object or resolved register rowthe retirement rule required before it would act — which is also why ahuman reopening that object later behaves exactly as intended evenwithout the `unvoid_label` route of requirement 34f: 34f's own rule bindsa clearance to "void recorded *before* the label", and a retired voidhas nothing left in the extract for a label to clear — the reopenedobject simply becomes a fresh, ordinary candidate the next time a sourcegathers it, the same outcome a genuine `unvoided` would have produced.
Fails safe in the direction requirement 34d already established for voiditself: `void_retire_after_days` of `0`, or unset, disables retirementand every entry stays — and takes the register read with it, so aninstallation that has switched retirement off pays nothing for theevidence retirement would have needed; an `item-void` event with noparseable `ts`, or a malformed `void_json`/actioned set of any kind, isnever retired. `0` also stops the recorded subtraction: the`void-retired` facts stay on the log but stop masking, so the extractreturns to the full raw set while retirement is off — an operator's killswitch if retirement ever misbehaves — and resumes masking, with nothingre-queried, when it is switched back on. Thefailure mode this leaves is one more cycle carrying an entry that wasready to go — never a void quietly reopened.
As defence in depth alongside requirement 4g's stdin delivery — which iswhat actually keeps this from reaching `MAX_ARG_STRLEN` again, sinceretirement only bounds the steady state and stdin removed the argv limitentirely — the Script logs a `warning` naming the byte size and entrycount whenever `void_json` is still over 100,000 bytes after retirement:a live signal that retirement itself has fallen behind (a burst of newvoids, `void_retire_after_days` set too high, or 34k failing toaction items), well before any cap could bite.34o. A refined specification is exactly what a needs-refinement block was
waiting for, and clears it deterministically, whoever originally recorded
it (agent-ops#2477). The common way a refinement block ends is that
somebody writes the missing specification — a human comment on the
issue’s thread, the Enabler’s own unblocked verdict (requirement 36b),
or, now that the item is a candidate again, a fresh Refiner pass. Until
the Enabler next examines it (requirement 35a’s threshold) or a human
notices, the item is reported as blocked even though its specification
already exists.
The clearance cannot live in the Refiner's own `refined` verdict path,which is where the block's own answer is written and so the obvious placeto look for it. `blocked_json` — this cycle's snapshot of the open blocks,taken before the Refiner runs — is also `refiner_candidate_items`' ownexclusion set (requirement 39a), so every item that path processes is, byconstruction, *absent* from the one snapshot a check there could consult:the condition is unsatisfiable, and only a reader of the open blocked setitself can see the block the refinement has just answered.
So, in the same pre-extract window as requirements 34f, 34g and 34i, andagainst the *open* `needs-refinement` blocks only (34h — a void itemneeds no unblocking, and a block of any other kind has no refinement toanswer it), the Script compares each block's own `ts` against`refinements_map`'s entry for the same repo+item (requirement 3h,`lib/cycle-state.sh`) — the latest non-phantom `item-refined`, alreadyresolved through `repo_slug_aliases_json` and already skipping a`comment_url` that names no real comment (TD-PPagop-26082819) — and logs`unblocked` with `by: "refined"` for every block whose refinementpostdates it, releasing the block's `needs_refinement_label`/`blocked`/`blocked:needs-refinement` labels (requirement 38b) through`release_refinement_label`, the same call the Co-Ordinator's own`unblocked` (requirement 18) and the Enabler's clearances (requirement36b) make. A blockwhose refinement predates it (a genuine re-block after the specificationwas found wanting) is left alone, as is a block with no refinement atall — the same "unknown is not gone" discipline requirement 34i's ownclearances observe, applied here to "unrefined is not cleared."
This is not a second pass at the same disagreement, so`refinement_second_pass_refused`'s thrash guard (requirement 36b) neversees it: that guard governs a fresh `unblocked` *verdict* asked of theEnabler, never this deterministic sweep, which reads a fact already onthe log rather than asking anyone to re-decide anything.34p. A void void_guard_reason refuses twice in a row, with nothing clearing
it in between, is escalated once and then left alone (issue #2789).
A refused void is recorded blocked (requirement 32a) so it gets the
ordinary re-check every other block does — on the theory that the
refusal was itself mistaken, or that corroborating evidence will
eventually appear. Neither is true of an item whose underlying work
landed by a route that can never again produce a checkable citation — a
direct commit predating a required-PR policy, work folded into an
unrelated pull request, a GitHub settings act — so the re-check reaches
the identical “already done” verdict forever, and void_guard_reason
refuses it for the identical reason forever: the “Done-ness inferred
from one channel” gotcha (docs/spec/implementation/gotchas.md), live
because nothing ever proves the refusal wrong. Poetic-Poems/poetic#297
paid for this three times before anything noticed the shape rather than
the individual attempt.
This is a circuit breaker on top of `void_guard_reason`'s owncorroboration bar, never a change to it — loosening what counts ascorroboration is a trust-boundary decision for a human, not something atech-debt item settles on its own authority.
**Detection.** `void_refusal_streaks` (`lib/cycle-state.sh`) walks thelog for the most recent run of consecutive `attempt-failed` eventswhose `detail` carries the literal `void refused (` prefix every refusalsite writes (`lib/coordinator-phase.sh`'s Implementer-sourced refusal,`lib/candidate-select.sh`'s Co-Ordinator-sourced one, `lib/enabler.sh`'sEnabler-sourced one), for one repo+item, with no `unblocked` or`item-void` event breaking the run — the identical set/clear disciplinerequirement 34a's `_latest_unresolved` already applies to`blocked`/`void`, extended here to count a run's length rather than onlyits latest member. An ordinary block (a red check, an unmergeddependency) never joins a run: only a `detail` carrying that literalprefix does, so every other block keeps its ordinary re-check untouched.A clearing event that names no repo breaks the run in *every* repo —requirement 34a's own over-clearing rule, applied here for the reason itexists there: the Co-Ordinator's own `unblocked` report carries a bareitem id and no repo (requirement 18), and so does a human's hand-appended`unblocked`/`item-void` (requirements 34, 34c), so matching a clearagainst a run's repo alone would leave this requirement's own escapehatch (below) unreachable. `void_refusal_escalation_candidates THRESHOLD`narrows that to the runs whose own count has reached THRESHOLD — fixed at2, "before paying for a 3rd wasted engagement": a run of one is still theordinary case.
**Exclusion.** An item whose run has reached the threshold is droppedfrom both actors' eligible sets — never returned by a later re-check,including requirement 18a's own mandatory live re-read for a GitHubissue, since this item's own repeated history is exactly what proves afresh thread will never settle it — but only when `enabler_assignee` isconfigured (issue #2806). The exclusion and the escalation below sharethe one gate the escalation filer already needed(`[[ -n "$enabler_assignee" && -s "$union_log" ]]`), so anEnabler-less installation — one with nowhere to send the escalation thiscircuit breaker depends on to end the exclusion — never excludes an itemwith no human ever asked about it; such an item instead gets theordinary re-check every other block gets, exactly as if this requirementdid not exist. With `enabler_assignee` configured, the exclusion appliesunconditionally, as below:
- `exclude_blocked_or_void_items` and `exclude_blocked_or_void_issues` (`lib/candidate-select.sh`) each take a fifth, optional `escalated` array (default `[]`, so every existing caller is unaffected) and drop a matching candidate the identical way they already drop a `void` one — unconditionally, before `exclude_blocked_or_void_issues`'s own block-is-stale/block-is-fresh test ever runs. `coordinator_eligible_ items` takes the same array as a third argument and excludes it from the `issues` band's own eligible count the identical way it already excludes `blocked`, so a verdict is never asked to account for an item neither function ever offered.- `compute_enabler_eligible_set` (`lib/eligibility.sh`) drops the identical set from `enabler_eligible_json` after its existing stale-ref and open-`Blocked-by:` passes, logging `enabler-void-refusal-escalated-skipped` — without this, an item every Co-Ordinator band already excludes would still reach the Enabler on requirement 35a's own schedule, and a fresh Enabler engagement re-deriving "already done" and being refused by the identical corroboration bar is the same wasted engagement this requirement exists to stop paying for, just paid by the more expensive stage instead of the cheaper one.
Both the Co-Ordinator's and the Enabler's exclusion read the identical`void_refusal_escalation_candidates 2` computation(`lib/eligibility.sh`'s `compute_band_eligibility`, and independently`agent-cycle.sh`'s own pre-gather-phase block below, over the same`$union_log` snapshot) — a deterministic function of the log, socomputing it twice in one cycle never disagrees with itself.
**Escalation.** `agent-cycle.sh` runs this detection early in the cycle— before `run_gather_phase`, the same reason the requirement 2.7 crash-loop block above it does: a cycle that stands down or no-ops inside thegather phase must not skip the one escalation that would have stoppedit no-opping on a stale verdict forever. For every candidate at or pastthe threshold, `void_refusal_escalate` (`lib/enabler.sh`) files oneescalation issue in the item's own repository — never a fleet-wide "home"repository, since this is a fact about one item, not about the fleet'shealth — through `create_escalation_issue`, the same dedup-guarded filerevery other escalation route in this codebase uses, never a second,independent `gh issue create` call. The body quotes the most recentrefusal's own words, names the "Done-ness inferred from one channel"gotcha, and asks the human to do exactly one of two things: close theitem directly if the repeated "already done" reading is right, or saywhy it is not. Filing is idempotent two ways: `void_refusal_escalated_since` (`lib/cycle-state.sh`) checks this cycle's own `$union_log` for a`void-refusal-escalated` event keyed on the run's own `first_ts`, so analready-escalated run costs no `gh` call at all; `create_escalation_issue`'s own open-issue dedup is the second, live layer for the gapbetween a peer's filing and its own event reaching this node's log. Arun that recurs long after its escalation issue closed gets a fresh`first_ts` and so escalates afresh, rather than reading as alreadyhandled forever.
**What ends the exclusion.** Nothing automatic — by design, the same"only a human clears a void" asymmetry requirement 34c already statesfor the state this circuit breaker sits on top of. A human closing theitem directly resolves it outright (the item, and so the escalation'sown premise, is gone). A human who instead appends `unblocked` or`item-void` by hand — the same hand-appended convention every otherclearing event in this file already allows — breaks the run exactly asan automatic one would, and the item is eligible again from the nextcycle on; nothing about this requirement makes that path harder to usethan it already was for an ordinary block.