Changelog
All notable changes to this project are documented in this file.
The format is based on Keep a Changelog.
[Unreleased]
Section titled “[Unreleased]”- A stage-health verdict for the repository-review pipeline (issue #996,
the symmetric gap #662 left open for
review-cycle.sh).lib/stage- health.sh’sstage_health_verdicts/stage_health_write_statusare generalized to take the stage-end/attempt-failed event names and the output filename as parameters, with no behaviour change for the implementation pipeline’s own callers.review-cycle.shcomputes its ownproject-reviewerverdict fromreview-log.jsonl’sreview-stage-end/review-attempt-failedevents at the end of every run, into its ownstate_dir/.review-stage-health.json, folded into the heartbeat asreview_stage_health— a field of its own besidestage_health, never merged into it — and rendered as a new “Review stage health” dashboard panel with its own page-top banner and fleet-strip badge, independent of the implementation pipeline’s. - The heartbeat’s mirror-rebuild verdict on the dashboard (issue #997,
TD-PPagop-26082606).
scripts/state-sync.shhas stampedheartbeat.jsonwith amirrorfield since #604 —nulluntil a node’s state-sync push has had to discard and rebuild its mirror, else{status, count, last_rebuilt_at}— but nothing carried it onto the page anyone actually reads: a repeat rebuild on one node is a failing-disk symptom, and a human learned of it only by runningjqover a peer’sheartbeat.jsondirectly, having first thought to suspect it.scripts/publish-dashboard.shnow carriesmirrorintofleet.nodes[]alongsidecompose/image/switch/stage_health, anddashboard/index.htmlrenders it as an amber mirror rebuilt badge naming the count and, where known, how long ago the most recent rebuild was — nothing when the verdict isnull. - A non-public, per-node source for the notify webhook credential
(issue #991, TD-PPagop-26082516).
notify_webhook_url’s value is a bearer secret, and its only previous source,config.json, is both fleet-wide and tracked in this public repository — so setting it as documented meant committing a live secret to public history. The newNOTIFY_WEBHOOK_URLenvironment variable wins over bothnotify_webhook_urland its deprecatedescalation_webhook_urlalias whenever it is set (lib/notify.sh’snotify_resolve_webhook_url), the same per-node, environment-sourced shape every other credential in this system already uses (GH_TOKEN,PULLWRIGHT_APPROVER_APP_ID). Plumbed throughdeploy/docker/compose.yaml’s shared environment block; validated at read time (agent-cycle.sh,scripts/publish-dashboard.sh) and byscripts/doctor.sh, which rejects a non-https://value and warns whenconfig.jsonstill carries a value the environment has overridden. - Price the fleet and the tokens: a per-node fleet-sizing figure and a
spend account split by fate (D21/D14, issue #612). Two new dashboard
panels, both stated per the lever rule (D21) — every figure names the
decision it informs, or “no action indicated”/“insufficient evidence.”
Fleet sizing (
lib/fleet-sizing.sh) folds each node’s own idle-without-demand time, its share of the fleet-wide pool of contendedclaim-lostevents (the duplicate-work measurescripts/pickup- metrics.shalready computes, now also reported per node via a newcontention_by_nodefield), and its exclusive landings — items it claimed and delivered with no competing claim from any peer — into a per-node verdict, willing to recommend removing a node when all three cross their own threshold at once. Spend by fate (lib/fleet-pricing.sh) maps everycost_rows[]row onto one of six buckets — delivered, rework, discarded, overhead, defect-driven, unaccounted — reusing the rework panel’s own cycle classification (D23) and each item’s terminal fate, reconciled tototal_usdto the cent with an explicitunaccountedremainder for a row not yet resolved rather than one dropped or guessed into a bucket. A new Turns per landed item panel reportsnum_turnsper stage and model over landed items, the companion figure to the existing prompt-cache-ratio panel (issue #594) for the same “where do the tokens go” question. - Health, readiness and liveness endpoints, and structured node metrics
beside them (issue #608, Phase 2).
scripts/node-health.sh [--live|--ready|--health|--metrics]answers three distinct, separately correct verdicts for a node — live (is supercronic still firing jobs, evidenced by a dedicated once-a-minute crontab marker, never the cycle lock), ready (could a cycle start now: credentials,ghauth, disk, the two GitHub budgets, the node/fleet switches, a usage-limit freeze — every unmet condition named by its own code) and health (is this node’s own state reaching the fleet and running the version the installation intends, composed from #602’s outbound-publication verdict and #603’s updater status alongside the existing image-drift verdict; a component whose source does not exist yet readsunknown, neverok) — plus--metrics, a structured JSON object of node identity, all three verdicts and cycle/ container counters, documented underdocs/METERING-SCHEMA.md’s stability policy. The scheduler container carries ahealthcheck:running the identical CLI in-container, usable verbatim as a Kubernetesexecprobe; a new opt-innode-healthcompose profile serves the same four verdicts over HTTP (/livez,/readyz,/healthz,/metrics) on the host’s own loopback for a reader that can only speak HTTP. Read-only throughout, makes no network call beyond one cached, TTL-bounded/rate_limitread. - The dashboard surfaces the token and gap series
lib/metering.shalready records (D21, issue #594).counts.cost_rows[]now carries each model’s owntokens_input/tokens_output/tokens_cache_creation/tokens_cache_read, and a newcounts.stage_gapsroll-up states the per-stage stall profile over its own window. The dashboard renders two new panels — token totals and the prompt-cache ratio, by stage and by model, riding the cost charts’ own time-frame selector; and the stall profile, compared against each stage’s own watchdog backstop — each naming the decision it informs, or “no action indicated”/“insufficient evidence” per the lever rule. - Per-container resource usage is measured and compared against a budget
(D14, issue #606).
scripts/collect-resource-usage.shself-samples CPU, memory and network from insidescheduler,dashboardanddashboard-local(both cgroup v1 and v2), plus disk usage ofworkspace_root/state_dir;config.schema.json’s newresourceskey states a budget for each.scripts/doctor.shwarns when a windowed figure crosses its budget, and the dashboard renders aresource budgetbadge from the same comparison, published per node inheartbeat.json. #755 gave every container amem_limit/cpusenforcement ceiling; this is the measured, reported half D14 also asks for, for the two resources (disk, bandwidth) this substrate cannot enforce at all. prompt_overridestakes a per-repository layer for the Implementer and Reviewer stages (issue #588,docs/ROADMAP.mdPhase 1). Those two stages already run against a single known repository each cycle, unlike the Co-Ordinator, which runs once per cycle across every configured repository together — sorepos[].prompt_overrides(config.schema.json’srepoPromptOverrides), keyed onlyimplementer/reviewer, lets one repository add or replace its own operating-prompt house rules without reaching into the installation-wideprompt_overrideskey that would otherwise apply to every repository at once. Resolved on the same precedencestage_timeoutsandmerge_autonomyalready give a repository-level override: a repository’s own stage entry wins outright (the whole{extend, replace}object, not a field-by-field merge) when present, the installation-wide entry for that stage otherwise —lib/prompt-overrides.sh’s newprompt_overrides_json_for_reporesolves this beforestage_prompt_text/stage_prompt_shaever run, so neither function gained any per-repository knowledge of its own. A repository naming any other stage (coordinator,enabler,refinerormonitor— none of which yet has a per-invocation home to scope an override to) is a schema error at validation time, not a silently ignored key.
Removed
Section titled “Removed”- Requirement 17g’s trimmed-item fabrication check (issue #1156,
resolving TD-PPagop-26090604), now that requirement 17h composes every
issues/tech-debtcandidate’scontext/acceptance/titleitself, from a live read, before the claim loop ever sees a model’s paste to check.item_text_fault,item_text_supply,item_live_textand_span_is_quotable(lib/candidate-select.sh), their call sites, thefab_faultscounter and thecause: "fabricated"stand-down branch (agent-cycle.sh) are gone;test/item-text-fabrication.test.shis retired. A stand-down over every candidate’s traceability now always readsuntraceable, whether requirement 17f’s own check or requirement 17h’s compose step produced the fault. Requirement 17f’s and 17h’s own fail-closed refusals are unchanged.
-
check-closing-keyword.sh’s already-resolved-on-base amnesty no longer excuses a destructive edit to a frozen tech-debt record (issue #1795, noticed while approving PR #1492). The amnesty (issue #1493) skips the record-flip demand when a named register file already carries a terminalstatus:on the pull request’s base branch — meant to cover a pure body append, PR #1492’s own case — but it read only the base copy’s status and never the shape of the patch, so it passed a diff that deleted or rewrote the record’s frozen lines, or de-flipped its status back to a non-terminal value, identically to a harmless append. It now grants the amnesty only for a patch with no-deletion line against the record and no+status:line setting a non-terminal value; the untouched-record (empty-patch) amnesty is unchanged. -
A retried
escalateverdict with no filable title or body no longer piles up identical “no escalation issue was filed” comments on a needs-refinement item’s own thread (issue #998, TD-PPagop-26082607).escalation_thread_reconcile’sescalation-failedarm (lib/enabler.sh, agent-ops#815) now checks, via the newescalation_thread_failed_already_posted, whether this same correcting comment is already the thread’s single most recent comment — matched on the fixed prose plus the pipeline marker’sactor=script/actor=enablerfield, ignoring itscycle=id — and skips posting when it is, since requirement 35a deliberately does not countescalation-failedas an examination and every retry until the item clears used to post another identical comment. Checking only the literal most recent comment keeps this conservative: any other comment landing on the thread since — human or Script — breaks the streak, so a genuinely new failure still posts. -
Requirement 1c’s “required refinement source with nothing to refine it” guard now covers all three spellings of that configuration, not just an empty
refiner_model(issue #1003, TD-PPagop-26082704; the split follows the owner’s decision on #924). Two configurations reached the same unrefinable state and passed the guard, then stalled in the quietest way this pipeline has — a source that simply stops producing work, with no label, no block record and nothing on the dashboard to say why.lib/config-schema.shnow answers them separately, because they are not the same kind of fault:config_required_failed_runs_sourcerefuses a"required"failed-runspolicy outright, whatever else is set, since that source has no candidate array at all for the Refiner’s own candidate gathering to ever reach;config_refinement_sources_paused_by_capwarns, every cycle the condition holds, whenrefiner_max_per_engagementis0withrefiner_modelset —0is documented as a deliberate, temporary pause of a stage that still exists, so refusing to start would force an operator pausing refinement to flip every"required"policy back as well. Both are shared betweenagent-cycle.sh’s startup guard andscripts/doctor.sh(which gains therefiner_max_per_engagementread it never had), so the refusal, thewarningevent and the doctor’sfail/warncannot drift. The standing principle the decision states for future cases: a configuration contradictory by construction is refused at startup; one merely idle by an operator’s temporary choice is warned about, every cycle, and never refused. -
The
firing-missedandidle-with-demandpager invariants no longer page on a standby node (issues #1686, #1708). Both read “active” as “heartbeat fresh”, so a node demoted to standby — which keeps publishing its heartbeat but, by requirement 2.4, never writes acycle-startor acycle-skippedagain — was measured against events from before its demotion.firing-missedpaged on ockham-2 repeatedly for as long as it stayed standby (#1674, #1676, #1681, #1685, #1705, #1768 over five days, the last at 7,970 minutes);idle-with-demandcarried the same fault in a sharper form, since no later cycle can ever break a frozen streak. Both now judge only the nodes the fleet expects to be cycling — a fresh heartbeat and a published role that is not a standby’s — through one shared predicate rather than a copy each, andupdater-stuck’s header, which claimed the same test while its code tested freshness alone, now says what it does and why that is right: every node runs its own updater. A standby is exempt outright rather than given a wider window, because its ticks leave nothing in the union log to judge it by in either direction. What that costs is now stated rather than assumed: a standby whose scheduler alone has stopped keeps publishing its heartbeat, so it is invisible to the pager until it is promoted, which is #1788. -
A node’s published role is now normalised, and an undeclared one is published as
unknownrather than asstandby(issue #1686). The role the fleet acts on has to mean what requirement 2.4’s guard means:AGENT_OPS_ROLE=Activeruns unattended cycles, butscripts/state-sync.shpublished the raw string, so a peer comparing it againstactivewould have exempted a node that was cycling — and, because each node evaluates alternate five-minute windows, the node’s own row and its peers’ would have disagreed and cleared each other’s candidate, filing nothing at all. Both publishers now uselib/role.sh’s newrole_declared, which normalises without the guard’s fail-closed default. A process handed no role publishesunknown: Compose hands the variable to every scheduled process, so an empty one is a hand run ofpublish-dashboard.shorstate-sync.shon the host, andstandbyinferred from that silence would have been a claim nobody made — one that, now that a standby is exempt, would have closed a real open page. The invariants readunknown, an absent field and an empty one alike as no evidence either way, and judge the node exactly as they did before this release. -
A promotion out of standby no longer files a
firing-missedpage (issue #1686). A node whose role turnsactivehas a newest cycle event as old as its demotion, so the invariant fires the instant the promotion publishes and goes on firing until the node’s first tick, which is up to a wholeschedule.cycle_interval_minutesaway.firing-missedis now registered with a filing window of that interval plus fifteen minutes for replication (MIN_FIRING_MINUTES_OVERRIDE, the mechanismnode-stalealready used), so the firstcycle-startclears the candidate before a page is written, while a scheduler that has really dropped a firing holds the fact across the window and is filed as before. Demotion is the mirror image and is now documented as such: demoting a node the fleet was paging for closes its page as cleared, with the evidence kept in the closed issue. -
check-closing-keyword.sh’s “Filed as” record path is matched against the register’s own ID charset, not any run of non-backticks (issue #1764).[A-Za-z0-9._-]+is the grammardocs/TECH-DEBT-REGISTER.mdinPoetic-Poems/poeticdefines and all 221 records in the frozentech-debt/archive already satisfy, so no real record path is newly rejected; a path outside it now matches nothing and demands nothing, exactly as an issue with no “Filed as” line does. This is the live guard on a real interpolation, not hardening ahead of the need — besides thejq --argbinding and the three messages naming it, the captured path is interpolated unescaped into the contents-API URL that reads the record from the base branch (contents/<path>?ref=<that>), where an injected?or&would alter the query string — taken because the path is read from an issue body and the register’s own grammar is far narrower than the pattern was. -
Requirement 2.0c’s pre-clone stand-down now reads
state_diras well asworkspace_root, so a shortstate_dirstands the cycle down instead of only ever warning indoctor.sh(issue #992, TD-PPagop-26082517).scripts/doctor.sh’s advisory warning has always looped over both directories againstmin_free_workspace_bytes, but the gate itself (lib/standdown.sh) readworkspace_rootalone — so astate_dirrunning short, the half of the ockham incident (#604) that left zero-length git objects and permanently disabledgit gc, could still be started into.lib/disk-space.shgainsdisk_space_same_filesystem, so the gate takes onedfreading where the two directories share a filesystem (the common case) and one reading per directory where they don’t (the shippeddeploy/docker/compose.yaml, which mountsstate:andworkspaces:as two separate volumes); it stands the cycle down when either reads below the floor, naming whichever has less free space in the loggedstand-downevent when both do.scripts/doctor.sh’s own warning is unchanged. -
racedMarkersPossible()no longer counts a stale peer’s last-knownrole: "active"toward the dashboard’s “more than one active node” gate (issue #1005). Both race badges (issue #829) already withhold↻ racedand “recovered race ×N” when at most one node currently carriesrole: "active", but the count itself readrolealone, so a peer that had gone dark for longer than the staleness threshold (heartbeat_age_s > 1800s) still counted on the strength of a heartbeat it stopped sending — a node that stale could not have contended for the claim any more than one correctly excluded already.racedMarkersPossible()(dashboard/index.html) now filters onrole === "active" && !n.stale, the same staleness checknodeUnknown()already applies. A fixture mirroringraced-single-active- node.jsonwith one stale peer added confirms neither badge renders. -
The cyclerows-cache miss branch can no longer leave a key file vouching for rows it failed to persist (issue #1760).
scripts/publish- dashboard.sh’s cache-miss branch (added in #1751) wrote the rows copy and the key file as two independent best-effort operations, so acpthat failed or was truncated partway could still be followed by a successful key write — leaving the key vouching for stale or partial rows, served on every subsequent unchanged tick until some unrelated input moved the key. The key is now written only when the rows copy succeeds; when it fails, both cache files are removed so the next tick’s-s/-fguard fails and it rebuilds from a fresh glob instead. -
scripts/check-closing-keyword.sh’s tech-debt record-flip check no longer demands a no-op rewrite of a record already resolved on the base branch (issue #1493). Apw::type:tech-debtissue naming a “Filed as” register file requires the closing pull request’s diff to flip that file’s frontmatter to a terminal status — but when an earlier, unrelated pull request already did so, there is no truthful+status:line left to add, and the register’s own append-only convention (TECH-DEBT.md “Resolution and history”: never flip a resolved item back) forbids rewriting it again just to satisfy the check. The check now reads the named record from the pull request’s base branch (.base.ref, with.base.shaonly as a fallback — the commit is the base’s head at the pull request’s last sync, not its head now, so a long-lived branch would read a base from before the flip and fail again) before failing either an untouched file or one touched without a status line, and passes either shape when the base copy is alreadyresolvedornot-debt. A base-branch read that cannot be made leaves the ordinary failure standing, rather than warning and skipping as the issue and changed-files reads do: it decides whether to excuse a pull request, not whether to accuse one. That base-branchstatus:read is bounded to the record’s own frontmatter block (issue #1764), so a still-openrecord whose body later quotes another record’sstatus: resolvedline at column 0 — a fenced code block, a “Resolution and history” note pasting another item’s frontmatter — is not mistaken for a terminal record of its own. -
A configured notify-webhook URL is now masked before it reaches the state-mirror repository or the dashboard, instead of passing every redaction pass unmatched (issue #1721).
lib/redact.sh’s pattern set matches token shapes (gh*_,github_pat_,sk-,Bearer …), none of which catch a bearer secret carried in a URL path, the shape a Slack/ Discord/Teams/PagerDuty webhook URL takes (https://hooks.slack.com/services/T…/B…/…) — so oncenotify_webhook_urlbecame a genuine per-node secret (issue #991) rather than a value already public inconfig.json, nothing stopped it from reaching either destination unredacted the first time a future diagnostic printed the resolved value.lib/redact.shgainsredact_add_literal(), additive to the existing shape rules, for masking one runtime-supplied value exactly rather than chasing an open-ended list of provider URL shapes;scripts/state-sync.shandscripts/publish-dashboard.shboth resolve the configured value (notify_resolve_webhook_url, the same alias resolutionagent-cycle.shuses) and register it before their own redaction pass runs. With no webhook configured, behaviour is unchanged. -
A newline-bearing
notify_webhook_urlnow warns on stderr instead of silently going unredacted (issue #1730).redact_add_literal(issue #1721, above) correctly refuses to register a value containing an embedded newline — a singlesedrule cannot span one, and registering it anyway would break every rule in the shared pattern set for the whole redaction pass — but the refusal was silent.scripts/state-sync.shandscripts/publish-dashboard.shnow print a warning naming the gap before making the same call;lib/redact.shitself is unchanged, so every other caller’s behaviour is unchanged too. -
An escalation’s duplicate guard can no longer be fooled by one item reference being a string prefix of another (issue #1694). Since issue #1630 gave the crash-loop detector per-repository item references (
crash-loop:coordinator:<owner>/<name>), the surviving repo-less fallback referencecrash-loop:coordinatorhas been a strict prefix of every one of them — andcreate_escalation_issue’s open-issue dedup andescalation_recent_close’s closed-issue search (bothlib/enabler.sh) matched with a barecontains, so a fallback-group filing could rebind onto a per-repository issue that had never been about it, and the per-close re-filing guard (escalation_refile_after_hours) could read a per-repository issue’s close as the fallback group’s own. Both filters now match the backtick-delimited token`<item>`instead: no item reference this system mints contains a backtick, so the closing delimiter can only fall at the reference’s own end, and no prefix pair can collide.crash_loop_escalate’s own body footer moves from its one-offref: <item>line to theItem: `<item>`form every other escalation route —lib/approver.sh,lib/landing.sh,lib/merge-budget.sh,lib/standdown.sh,lib/required-check-preflight.shand the Enabler’s own template — already carried, it having been the only body that did not carry the anchor the guard now needs. An escalation issue left open across this change still carries the old footer and is invisible to the narrowed guard until its footer is migrated (#1744). -
The dashboard’s spend-by-fate account no longer computes a confident, reconciled figure over a
rework_panel_buildoutage, andrework_cyclesno longer ridesjq’s argv unbounded into that account (issue #1691).scripts/publish-dashboard.shused to coalescerework_panel_build’s own outage shape (rework_cycles: null— a fold that aborted) to[]before handing it tofleet_pricing_spend_fate, so an upstream outage silently reclassified every rework-bearing row into delivered/discarded/defect_driven instead of propagating the outage the Rework panel itself was already showing.fleet_pricing_spend_fate(lib/fleet-pricing.sh) now takesrework_cyclesas a spooled$work_tmpfile read via--slurpfile— the same conventioncounts.cost_rows[]already uses in the same block, rather than an--argjsonvalue unbounded by configuration (requirement 4g’s own class, the 2026-08-14MAX_ARG_STRLENoutage) — and passes anullfile through to its own all-null outage shape rather than computing against an empty rework set. -
A single repository’s own deterministic Co-Ordinator failure now reaches the crash-loop escalation rung instead of being reset every cycle by a sibling repository’s success (issue #1630). Since issue #587 split selection into one engagement per configured repository,
crash_loop_verdict(lib/crash-loop.sh) still counted consecutive same-detail Co-Ordinator failures across the whole fleet and reset that count on any Co-Ordinator success — so a repository failing deterministically every cycle, while every other repository succeeded, could never reachcrash_loop_afterand was silently starved of selection with no escalation at all, which is the exact failure class requirement 2.7 exists to catch. The reduction is now grouped by therepofield those per-repository engagements already carry, and prints one JSON-Lines verdict per independently crash-looping repository rather than at most one for the fleet;agent-cycle.shescalates each under its own item ref (crash-loop:coordinator:<repo>), so two repositories crash-looping at once get an issue each. The dedup, deferral, re-verify, retirement and flap-guard readers are all repository-aware to match, so two repositories that happen to share a generic detail (both sayingcoordinator exited 1, say) can no longer dedup, defer or retire against each other’s run. An event carrying norepo— history from before #587, or any future Co-Ordinator caller that legitimately has none — falls back to one fleet-wide group reduced exactly as the whole stream used to be, and an escalation filed before this change is still retired by, and still flap-guarded against, the whole fleet’s Co-Ordinator events, since every success logged since #587 carries a repository and a repo-less run would otherwise have no nameable clearing success at all.crash_loop_preselection_verdictstays fleet-wide and exit-code-grouped: it fires before selection has assigned a repository to anything. The dashboard’s provider unreachable badge names the repository a transient run belongs to, and shows the first such run when more than one repository is transient at once (issue #1624 tracks showing them all). -
A blocked marker keyed to a retired pre-migration tech-debt register ref no longer sits
enabler_eligibleforever (issue #1699). The Enabler’s eligible-set staleness filter (compute_enabler_eligible_set,lib/eligibility.sh, requirement 35e) already dropped a stale merge-conflict/abandoned-draft ref before it reached eligibility by testing it against this cycle’s own fresh gather, but exempted every other blocked item kind on the grounds that none had a re-detectable “current” state to compare against. That was true of a live tech-debt id but not of aTD-<scope>-<id>register ref: since D15 as revised (#875) moved the tech-debt band ontopw::type:tech-debtissues,TECH-DEBT.md’s frozen archive means such a ref can never appear in a live gather again, so a marker keyed to one (TD-PPagop-26082416, the retired key for #972) was re-examined at full engagement cost on every recheck window — nine times over 2026-08-28 through 2026-09-19 — with no push, resolution or human action ever able to clear it. The filter now tests aTD-<scope>-<id>ref against this cycle’s own freshtech_debtgather the same way, and drops it as stale when absent, logged through the sameenabler-stale-refs-skippedevent. -
A file
redact_filecannot rewrite no longer reaches the state repository unredacted (issue #1703, the owner’s ruling on the question issue #1698 left open).redact_mirror_files(scripts/state-sync.sh) now cascades on a redaction failure instead of committing the file as it stands:rm -fit out of the mirror first; where the file resists removal too — typically a directorysed -i’s own rewrite could not write into either — truncate it in place instead, which needs only the file’s own write permission; and only where the file resists redaction, removal and truncation alike does the push abandon, through the samestate_sync_push_failedpath a redaction-loop deadline (#1679) already uses. A skipped or emptied file costs this node one push interval of its own visibility in a peer’s union or fleet strip; the alternative was aghp_…-shaped string reaching a private repository that is never rotated. -
A
state-sync.sh pushwedged in the redaction loop no longer holds the mirror lock indefinitely, and a long hold is now named as a possible wedge rather than reported as an ordinary one (issue #1679). On 2026-09-18 a push wedged for almost seven hours holdingmirror_lock: aredact_filefailure on one file used to abort the whole redaction loop underset -ebeforefind’s process substitution reached EOF, deadlocking the unwinding shell against its own unread pipe, while every fetch read “another state-sync holds the mirror” as if it were an ordinary slow one. A failed redaction is now a warning and a skip; the redaction pass runs under a deadline (one push interval by default) that kills its whole process tree and releases the lock if it is still running past that bound, loggingstate-sync-push-failedregardless of cause; and both the losing side of a lock contention and--status’spublished:line now name how long the current holder has been running, calling out a hold older than one push interval as a possible wedge. -
A dead peers-fetch cron, and a fetch outage’s own length, are now visible instead of silently trusted (issues #990, #1001). The peers directory’s freshness marker (
fleet_mark_peers, #693) now carries alast_ok_tsa failure preserves rather than overwrites — so a reader can tell a five-minute outage from a three-day one — and stops rewriting the file at all once it already readsok: false, closing the once-per-fetch- attempt dashboard-rebuild churn a sustained outage used to cost.fleet_logs_healthy(requirement 38b’s live blocked-label reconciliation) now also treats a stale-but-ok: truemarker as unhealthy, catching a fetch cron that has stopped running altogether rather than only one that runs and fails. The dashboard’s fleet strip gains one amber badge across the whole strip — “peer view stale — last successful fetch<time>, failing since<time>”, or “peer view stale — fetch not running since<time>” — naming the cause as “this node cannot see the fleet” rather than “the fleet is down”. -
state-sync.sh pushno longer lets a full disk stand a node down without first reclaiming derived files it can safely drop (issue #1678).state_local_streams_retained‘s count-based prune of.fleet-log.jsonl/*.stream.jsonlonly ever rises (requirement 1d’s floor-never-ceiling contract), so at this installation’s 15-minute cadence it filled both poetic nodes’ shared host to zero free bytes on 2026-09-18 — 200 retained snapshots at 45 MB apiece, ~7.3–7.4 GB per node, regrowing at ~4.3 GB/node/day (the measured figures requirement 1d’s own extended notes carry now, closing #1025’s ask for a real baseline) — and stood both nodes down for disk before either had pruned a byte of them.pushnow readsstate_dir’s free space againstmin_free_workspace_bytes(the same floor and functions the pre-clone stand-down uses) immediately after the count-based prune, and strips further under pressure — oldest cycle first, stopping at the floor or the newest cycle’s derived files, whichever comes first. Safe regardless of the configured count: a snapshot is read only by the cycle that wrote it, so every retained copy but the newest already exists purely for after-the-fact diagnosis.state_local_streams_retained’s own derivation and floor-never-ceiling contract are unchanged. -
min_free_workspace_bytesnow normalises a non-numeric value to0at the read, before the disk-pressure prune’s arithmetic test (issue #1729). The prune above (#1678) reads this key straight into(( min_free_workspace_bytes > 0 )), with no numeric guard; a schema-valid config can’t hit it, but a hand-editedconfig.json(or a badSTATE_SYNC_MIN_FREE_WORKSPACE_BYTESoverride) carrying a non-numeric value —"2GiB", say — reached that test with the raw string. The read now falls back to0— the same “floor off”disk_space_verdictalready extends to a non-numeric floor argument — so every consumer of the variable sees a clean value and no arithmetic-error noise reaches stderr. -
memory_cgroup_verdictno longer reports a falseparented [ ok ]for a parentmemory.maxthat sits above the child’s own but too far above itsmemory.high(issue #1643). A parent’smemory.maxgenuinely above this cgroup’s ownmemory.maxis necessary but not sufficient: when the parent’smemory.highsits more than ~25% below this cgroup’s ownmemory.max, the kernel’s reclaim undermemory.highthrottles too severely across that wide a band for the workload ever to reach either kill point — the same livelockmemory_cgroup_verdictalready caught for a coincident or absent parentmemory.max(issue #1620), extrapolated to a parentmemory.maxthat does add headroom on paper. A band narrower than that threshold, such as the interimockham-containerremedy’s own (parentmemory.high1400 MiB against amemory.maxof 1536 MiB), still readsparented. -
The stall profile’s Decision cell no longer hides a near-backstop
worst_run_maxbehind the minimum-sample gate (issue #1590). The Stall profile panel (D21, issue #594) checkedrow.runs < TOKEN_MIN_SAMPLEbefore comparingworst_run_maxagainst the stage’s own backstop, so a stage with fewer than five measured runs whose single worst silence already sat at or aboveSTALL_NEAR_BACKSTOP_RATIOof its own watchdog backstop read “insufficient evidence” instead of naming the lever — exactly the reading the panel exists to surface before a healthy run is killed.worst_run_maxis a max of maxima, not a rate, so it is exact at any sample size;stallVerdictnow checks the near-backstop condition first, independently ofrow.runs, and falls back to the sample-size gate only below that ratio. -
The token-economics panel’s by-model breakdown no longer undercounts
nwhen several actors in one cycle share a model (issue #1591).aggregateTokenRowsdeduped its sample count bycyclealone, exact for the by-stage table (each of its groups is already one actor) but not for the by-model one: a cycle whose coordinator, implementer and reviewer all ran the same model contributed three transcripts but counted asn: 1, delaying a cache-ratio reading pastTOKEN_MIN_SAMPLElonger than the real sample warranted. It now dedups by(cycle, actor), the transcript’s real identity. -
The
node-healthsidecar’s/readyzforge read now leaves through the same D24 egress path a cycle uses (issue #1587). Thenode-healthcompose service inherited the default network and none of the scheduler’s proxy variables, so its one outbound call (gh api rate_limit) left the node directly while the cycle whose readiness it reports would leave only throughegress-proxy— a broken allowlist, a wedged proxy or a downegressnetwork read as200 readyover a route no cycle could actually take. The service now carries the scheduler’s ownHTTPS_PROXY/HTTP_PROXYvariables (both spellings) and sits ondefaultandegressboth, matchingegress-proxy’s own placement, while keeping its published loopback port unchanged. -
scripts/publish-dashboard.shno longer holds the whole fleet-wide event log in a bash variable, andscripts/lint-shell.sh’s-xsteering no longer shares a knob with the parent cgroup’smemory.high(issue #1620). Both ockham schedulers spent most of 2026-09-16 livelocked undermemory.highthrottling: the Publisher’s real working set scales withlog.jsonl, which is never rotated by design, and every full-log consumer read it through a bash string ($ALL_EVENTS) that every subshell the rest of the script forked afterwards carried its own copy of — measured at five nested subshells holding 219 MiB apiece on a node with a mature log — while the parent ceiling tuned to keep that in bounds (768 MiB) was simultaneously the numberlint-shell.shread to decide which files to follow with-x, leaving no single value able to serve both. Every full-build consumer now reads$events_jsonl(or the merged$review_events_union) directly, as a jq file argument or a library function’s ownLOG_FILEparameter, andlint-shell.shgets its own explicitLINT_SHELL_BUDGET_MIBinstead of reading the parent’smemory.highat all — so the parent ceiling can be sized for the Publisher’s own working set without narrowing or widening whatlint-shell.shfollows. That variable is named indeploy/docker/compose.yaml’s shared environment block, so a node sets it in its own.env; like every other variable there it arrives only when a human updates that node’scompose.yamland.envand runsdocker compose up -d, never on an image roll. The same whole-log bash copy survived one level down (agent-ops#1638):lib/rework-panel.sh’srework_panel_build,lib/item-lifecycle.sh’sitem_lifecycle_foldandlib/node-time-state.sh’snode_time_state_foldeach read a real file path straight through — building a full-sizeall_jsonbash string from it, and (the first two) a here-string to pass that same copy to a nested call — so the Publisher’s working set still scaled withlog.jsonlon the full path even once its own top-level$ALL_EVENTSwas gone. All three now write the parsed array straight to a temp file and feed it tojqas a file argument (or a nested library call’s ownLOG_FILEparameter) instead — and so do the log-scale derivatives those folds pass between themselves, which is where the last of the copies lived:item_lifecycle_fold’s own result carries onerecords[]entry per item the log has ever seen (36 MB on a 43 MB log), and it was captured into a bash string byrework_panel_buildand handed on through a here-string, as werevoid_items/blocked_items/draft_obsolete_flags’s results insideitem_lifecycle_fold. Every one of those is now spooled to a temp file and passed tojqas a file argument, anditem_lifecycle_foldstreams its own result rather than capturing it, so what these functions hold in bash is now a constant few MB rather than a multiple of the log: measured on a 43 MB log,rework_panel_build’s peak bash RSS falls from 653 MB to 6 MB and its peak process-group RSS from 730 MB to 435 MB, the remainder beingjq‘s own cost of holding the parsed array. The"-"stdin path every existing caller still uses is unchanged, and all three folds’ output is byte-for-byte what it was.lib/memory.sh’smemory_cgroup_verdictalso no longer reportsparented [ ok ]for a parentmemory.maxthat merely coincides with (or sits below) the child’s own — the exact shape that read[ ok ]throughout this incident — reportinglivelockedinstead, the same as an unbounded parentmemory.maxalready does. -
config.stage_backstopscan now carry aproject-reviewerentry (issue #1586).scripts/publish-dashboard.shfed the stage-budget fold only$ALL_EVENTS(thelog.jsonlunion), neverreview-log.jsonl, so areview-stage-endevent — whichlib/stage-budget.sh’sstage_budget_observationsalready maps to actorproject-reviewer— was never seen, and the review pipeline’s real cap (review_backstop_min) never reached the publishedconfig.stage_backstopsfallback any reader keyed on that actor name could compare against. The stage-budget fold now reads the samereview_log_unionthe constraint panel already unions in, at no extra fetch cost. -
The orphaned
.dashboard-td.jsoncache file is cleaned up on any node that ran the pre-#881 Publisher (issue #1555). PR #1553 (#881) removed everything that read or wrote this tech-debt metadata cache but never deleted the file itself, leaving it a permanent orphan instate_dir— and, sincescripts/state-sync.sh’s exclusion list never covered it, along for every state sync too.scripts/publish-dashboard.shnowrm -fs it once alongside the other cache declarations; safe to run indefinitely, sincerm -fon a missing file is a silent no-op. -
serve-dashboard.sh’s resource-sampling loop dies with the server it samples for (requirement 55, follow-up to #1564). The loop forked before theexecslept its whole interval blind, so a server killed by anything but the container stopping left it running for ever — six on poetic-2’s scheduler on 2026-09-15, two per run oftest/dashboard-exposure.test.sh, each still calling the collector every five minutes. It now polls the server’s pid every ten seconds and exits when it is gone; the test unsetsAGENT_OPS_SERVICEfor its spawn and asserts the lifetime directly. -
A stage refused for want of a valid Claude login is named as such, and
--statusshows a failing stage’s detail (2026-09-15). A node whose subscription OAuth credential lapsed while it stood down recordsterminal_reason: "api_error"with no HTTP status andresult: "Failed to authenticate: OAuth session expired and could not be refreshed";stage_api_refusalkeyed on a numeric status alone, so six consecutive cycles on ockham-2 readcoordinator exited 1, indistinguishable from any other failure. The shape — the runner’sapi_errorreason together with an authentication message — is now the refusalauthentication_failed, classifiedrefused(no retry clears it), and thestages:block of--statusfollows a failing stage’s line with an indentedlast:line carrying the streak’s detail, socheck-nodes.shshows the reason beside the count. -
scripts/doctor.shfails tworepos[]entries sharing aslug(issue #1570).config.schema.jsonstates no uniqueness constraint onreposat all, and auniqueItemsthere would reject only byte-identical whole entries, so two entries naming the same repository but differing elsewhere passed silently — and the per-repo resolvers (lib/prompt-overrides.sh,lib/escalation-autonomy.sh,lib/preview-config.sh,agent-cycle.sh’smerge_autonomylookup) then disagreed about which entry governs.lib/config-schema.sh’s newconfig_duplicate_repos_slugs, doctor-only, mirrors the existingproject_review.reposduplicate-slug check for the top-level array. -
agent-cycle.shrefuses to start on a duplicaterepos[]slug, the same asproject_review.reposalready does (issue #1576, follow-up to #1570 above). Doctor could already report the condition; nothing yet stopped a cycle from running on it, solib/prompt-overrides.sh’sprompt_overrides_json_for_repo— the one resolver of the group with nohead -1/firstguard — could still emit a multi-line, unparseable overrides string to its caller.agent-cycle.shnow calls the sameconfig_duplicate_repos_slugsdoctor already used, refusing to start and naming the duplicated slug(s), mirroringconfig_duplicate_project_review_slugs’s own startup refusal inreview-cycle.sh.scripts/doctor.sh’sfailfor the same condition names that refusal too, so the operator reads the consequence the cycle will enforce rather than only the silent disagreement it avoids. -
state-sync.sh pushclears an orphanedindex.lockand names a push that fails (issue #1377). A.git/index.locka dead git left in the mirror used to fail every later push at its first index write, silently: 27 hours on poetic-1 and three days on poetic-2 with the node cycling,--statusreading every stageok, and only the doctor’s hourly publication check saying anything, into a file nothing surfaced. The push now clears such a lock when it is older than one push interval and no git process is working in the mirror (never a lock a live git may hold), loggingstate-sync-lock-clearedwith its age; every writing git command runs throughmirror_write, which on failure logsstate-sync-push-failedwith the step and git’s firstfatal:line and still exits non-zero.--statusgainspublished:(this node’s own publication verdict, the same one the doctor and the dashboard derive) anddoctor:(the last unattended pass’s verdict, age and first failing check), socheck-nodes.shshows both. -
The state-sync mirror’s own garbage collection can no longer be the thing that fails, and a
gc.lognow fails its integrity check (#604’s second clause, 2026-09-15).scripts/state-sync.sh pushamends one rolling commit and force-pushes it every few minutes; under git’s defaults the reflog kept every superseded snapshot for thirty days, so each node’s mirror grew to 1.0–2.0 GB of loose objects, and thegc --autothat eventually fired ranpack-objectswith a thread per CPU inside the scheduler’s 1536m ceiling — where the kernel killed it, leaving a.git/gc.logthat declined every later gc whilefsckstayed clean.mirror_initnow applies a bounded configuration to the mirror on every push and fetch (lib/mirror-integrity.sh’smirror_configure_store: no reflog and the existing reflog files removed, prune at once, gc in the foreground under the mirror lock, a lower loose trigger, consolidation at two packs, a single-threaded window-bounded repack), so the store settles at one pack of the current snapshot and at most the one before it; andmirror_integrity_oktreats a non-emptygc.logas the failed check it is, triggering the same recorded rebuild a corrupt object does. -
TOKEN_EXPIRY_WARN_DAYSno longer reads an environment override (issue #989).lib/token-expiry.shdeclared it as${TOKEN_EXPIRY_WARN_DAYS:-7}whiledashboard/index.htmlhardcodes the same threshold as a plain7; setting the env var on a node would have moveddoctor.sh’s warn/ok split andagent-cycle.sh’s escalation off the dashboard’s amber band with no warning. It is now a plain fixed literal, consistent with the decision already recorded in #789/#694 to keep this threshold a constant rather than a config key.
Changed
Section titled “Changed”-
The Co-Ordinator now runs once per configured repository instead of once fleet-wide, each cycle (issue #587). Selection used to happen in a single completion that saw every configured repository’s own candidates at once; it now runs one engagement per repository, each scoped to that repository’s own data, in the same effective-age walk order as before. The six cross-repository priority tiers
prompts/coordinator.md’s “Selection algorithm” states (security, urgent issues, review-feedback, merge-conflicts, dequeued, abandoned-drafts) — which a single completion used to judge directly — are now reconciled by the Script itself (coordinator_merge_candidates,lib/stage-attempt.sh) once every repository’s own engagement has answered, andcandidates_maxis now a cap the Script enforces on that merged, reordered result rather than an instruction trusted to one completion.max_open_agent_prsand the no-op fingerprint short-circuit are both unchanged — both already ran fleet-wide and once per cycle, ahead of the Co-Ordinator, before this split. A corroboration-rejected verdict no longer buys a same-cycle model retry (dropped as a cost this split’s own N-fold invocation increase does not buy back): the mechanical fallback (fallback_select_candidate, unchanged) is now reached directly once a repository’s own rejected verdict leaves an eligible item unaccounted for and nothing else this cycle selected. Each engagement writes its own stage transcript,coordinator-<slug>.outin the cycle directory with the slug’s/flattened to-, in place of the singlecoordinator.out. An engagement that produces no verdict at all costs only its own repository’s opportunity — the cycle carries on to the next repository — but never lets the cycle overclaim: where every engagement failed the cycle exits exactly where the single fleet-wide attempt did, and where some did, thenone-selectedevent omits the fingerprint that would otherwise stand the next cycle down (requirement 15y) and recordsengagements_failedinstead. Requirement 20’s single-selection grace shape — a work order carrying the candidate fields at the top level rather than acandidatesarray — is still accepted, per repository.docs/IMPLEMENTATION-PIPELINE-SPEC.md’s requirements 15/15y/15a-15g/3v/3w are updated to match. -
The dashboard’s tech-debt ledger panel now reads a
pw::type:tech-debtlabel search instead of the frozentech-debt/register (issue #881, following D15 as revised, #869). Every register in the fleet is now frozen (#880, Poetic-Poems/poetic#199, Poetic-Poems/poetic-fiddle#349), so thecontents/tech-debtlistingscripts/publish-dashboard.shused to read each tick had quietly stopped answering the live ledger — it still returned 200, just against an archive that no longer grows. The panel now reads the same open-issue search the Co-Ordinator itself does (scripts/gather-tech-debt.sh’s own source), one call per repo, which also retires the per-tick miss budget and the blob-SHA-keyed metadata cache (.dashboard-td.json) the old listing needed — a label search answers every row it can show, and the total behind its own 40-row cap, in that one call.docs/DASHBOARD-SPEC.md’stech_debtroster contract is updated to match; the answered/failed degrade semantics are unchanged, though the register-specificanswered_404state no longer occurs (a label search with no matches is an ordinary emptyanswered, not a distinct absence).scripts/gather-register-status.shwas considered for retirement alongside this change but left untouched: it answers a different question (legacyBlocked-by:register-id clearance, implementation-pipeline-spec requirement 34i) for a caller unrelated to this panel.
Removed
Section titled “Removed”-
The one-time
.dashboard-td.jsoncleanup shim (issue #1610, follow-up to #1555/#1585). PR #1585 added an unconditionalrm -ffor the retired tech-debt metadata cache #881 orphaned, safe to run forever but only useful until every node in the fleet had run the post-#881 Publisher at least once; that has now happened, so therm -fline, its comment, the matching sentence indocs/DASHBOARD-SPEC.md’s #881 design-decision bullet, and the orphan-cleanup test intest/publish-dashboard.test.share gone. -
The tech-debt register machinery (issue #882), now that every register in the fleet is frozen (#880, Poetic-Poems/poetic#199, Poetic-Poems/poetic-fiddle#349) and tech debt lives entirely as
pw::type:tech-debt-labelled GitHub issues (D15 as revised, #869/#874/ #875). Removed: the register CI workflows (.github/workflows/tech-debt-register.yml,td-tooling-drift.yml,release-td-branch.yml) and the seven vendored perl/shell tools they ran (td-check.pl,next-tech-debt-id.pl,reserve-tech-debt-id.pl,get-tech-debt-record.pl,check-tech-debt-open-rewrites.pl,find-similar-tech-debt.sh,release-td-branch.sh); the deprecatedtech_debt_branch_prefixconfig key and thetd/claim-branch namespace it enabled (tech-debt now claimsagent/<item-ref>like every other source); theregister-hygienework source end to end (scripts/gather-register-hygiene.shand its wiring throughlib/candidate-select.sh,lib/candidate-gather.sh,lib/void-liveness.sh,lib/eligibility.sh,lib/noop-skip.sh,lib/refinement.sh,lib/stage-attempt.sh,scripts/doctor.sh,lib/landing.shandscripts/detect-classifier-escapes.sh’s default fallbacks, and the schema).scripts/is-docs-only.shdrops itstech-debt/*allowlist entry, since the frozen register no longer rides in PRs.TECH-DEBT.mdbecomes a short pointer to the frozen archive and the labelled-issue policy; thetdskill retargets at issue lookup. The frozentech-debt/directory itself is untouched — every record it holds stays in place as a permanent archive.
-
The fleet-wide pull-request sweeps no longer act on a pull request a peer node is working right now (issue #987, TD-PPagop-26082509). The 2.1e landing-retry sweep (
_landing_retry_sweep_repo,lib/landing.sh) and the stale trigger of the requirement-46 restale sweep (_approver_restale_sweep_repo,lib/approver.sh) both act across every node’s work rather than a single cycle’s own claimed item, yet neither consulted the fleet-widepr-<n>claim (lib/claim.sh) that exists to keep two nodes off one pull request — so the landing-retry sweep could arm an auto-merge on a pull request a peer was mid-fix on, and the restale sweep could spend a fullrun_approver_stageengagement re-reviewing a pull request already under review. The compounding case ran both in the one cycle, in the order the code deliberately chose: the restale sweep re-reviews and approves, and the landing-retry sweep immediately after finds exactly the standing-APPROVEDcandidate it looks for. Both call sites now read_approver_sweep_claimed_pr_numbers— the same helper the unreviewed trigger already used — once per repository per sweep pass, lazily, and skip a claimed candidate rather than failing it, logginglanding-retry-sweep-skipped-claimed/approver-restale-sweep-skipped-claimedso the skip is visible; both sweeps are idempotent, so an unclaimed retry next cycle still finds it. Inside_approver_restale_sweep_repothe stale and unreviewed triggers share the one listing rather than fetching it twice. Giving the sweeps a claim of their own stays out of scope (this is a read-only guard), as does capping the restale sweep to one re-review per cycle (issue #988). -
A pull request that deletes, or edits away, the workflow job producing a required status check now names the ruleset edit as an owner-act prerequisite at pull-request time, and the ready-gate now catches the same fact as a backstop (issue #1543).
gh pr checks --requiredlists check runs; a required context with no run at all — the shape a branch leaves behind when it deletes the producing workflow or removes/renames the job — is not a failing entry, it is simply absent, soreview_gate_required_checks’s ownall(.bucket == "pass")test read it as a vacuous pass (the trap PR #1503/#1540 hit: every check that ran was green,mergeStateStatussatBLOCKED, and nothing named the cause until an unrelated item happened to block on it 6+ hours later).review_gate_required_checks(lib/review-gate.sh) now takes the base branch and compares its ownrequired_status_checksruleset against what actually ran, reportingdirtyand naming the missing context when the two disagree.lib/required-check-preflight.shis the earlier, deterministic half: right after the Implementer’s pull request is raised, it reads the diff for a deleted or edited-away workflow job matching a required context and — when it finds one — files an owner-act escalation issue and comments on the pull request naming it, rather than waiting for a downstream item to happen to block.docs/STANDING-DECISIONS.mdrecords the converse of the 2026-08-22#648decision: the ruleset edit is a prerequisite, and doing it early is harmless, so it always precedes the merge. -
An already-settled open question no longer resurfaces in a later adjudication pass or escalation issue body (issue #984).
landing_open_question_latest(lib/landing.sh) carried everyopen-question-raisedevent forward forever, deduplicated by question text but with no filter at the pull request’s own lastsettled-verdictopen-question-adjudicationevent. Once question A settled and its label was released, a later Reviewer round raising question B handed the next adjudication pass — and any escalation issue — both A and B, which could drag a pass to escalate and list a question as open that a human had already answered.landing_open_question_latestnow filters to a high-water mark: onlyopen-question-raisedevents at or after the most recent settled adjudication survive; the union/dedup behaviour above that mark is unchanged. The adjudication prompt’s own description of whatquestionscontains, and the label-release-failure warning (which wrongly claimed the question “will settle again next round”), are corrected to match. -
A
labels-mintedevent now names the item ref, whichever stage emitted it (issue #1293, requirement 6c)._refiner_apply_labels(lib/refinement.sh) received only the backing issue number and logged that as the event’sitem, while the Implementer-side emitter (agent-cycle.sh) logged the work order’s own item ref and every sibling per-item event (refiner-examined,issue-prioritised,item-refined) did the same. For a tech-debt item, whose ref is not its issue number, the two disagreed: reconstructing that item’s trail by greppinglog.jsonlfor its ref silently skipped itslabels-mintedevents. The function now takese_itemalongsidee_repo/e_number— matching_refiner_apply_priority’s own signature — and logs it asitemin both branches, theengagement-caprefusal included, whilelabels_mintand theghwrite underneath still receive the real issue number. Nothing reads these events to decide anything (requirement 6c’s inertness invariant), so this changes the diagnostic trail alone. -
The host-facts record’s filename now derives from the same node-name rule every reader applies (issue #1344).
lib/host-facts.sh’shost_facts_node_name()returnedNODE_NAME(or thehostnamefallback) raw, while every consumer sanitizes its own copy with${name//[^A-Za-z0-9._-]/-}before building a path from it —scripts/publish-dashboard.sh’s self card,scripts/doctor.sh’s host-budget and egress-MTU checks,lib/monitor-digest.sh’s self row,lib/standdown.sh’s host-budget gate, and the peer directoriesscripts/state-sync.shpublishes under. ANODE_NAMEcarrying any other character therefore hadscripts/collect-host-facts.shwritehost-facts/<raw>.jsonwhile all of them readhost-facts/<sanitized>.json, so each readnullfor ever without saying so — a silently absent host card, and a host-budget stand-down gate with no evidence to judge.host_facts_node_name()now applies that character class itself, leaving one rule shared by the writer and every reader. -
The per-stage health verdict no longer misses an exit-0 stage failure (issue #983).
stage_health_verdicts(lib/stage-health.sh) derivedconsecutive_failurespurely fromstage-endevents’ ownexit_code, so a stage attempt that exits 0 while nonetheless failing — the Script logs anattempt-failedfor it, e.g. “unparseable final message” — read as a success: it neither incremented the streak nor was counted, and it reset any streak already in progress. Measured against a real node’slog.jsonlthis exit-0 failure mode was the majority of recorded stage failures, and an alternating mix of it with genuine non-zero exits never reachedTHRESHOLD, so a stage failing every cycle could reportokthroughout.stage-endandattempt-failedare now joined on their shared cycle id (cyclefor the implementation pipeline’s ownlog.jsonl,monitorfor the Monitor’smonitor-log.jsonl) plusstage, so either a non-zero exit or a matchingattempt-failedcounts as a failed attempt, andlast_detailis derived from the same join so it never shows a detail from an already-cleared streak. -
The per-stage health verdict no longer counts the Co-Ordinator’s own per-item block records as coordinator stage failures (issue #1498). Since #983’s join above,
stage_health_verdictscounted astage-endas failed whenever a matchingattempt-failedexisted for the same cycle and stage — butattempt-failedwithstage: "coordinator"is also how the Co-Ordinator pins a per-item block: a needs-refinement block and a hand-flag (lib/candidate-select.sh,lib/candidate-gather.sh), and a void refusal (lib/candidate-select.sh), all logged in cycles where the coordinator stage itself succeeded. A sweep that blocks or hand-flags several items across successive cycles, with no block-free success between, incrementedconsecutive_failureson every one and reset none of them, readingfailingfor a coordinator that never actually failed once. Each of those three call sites now carries akindon itsattempt-failed("needs-refinement", already present for an unrelated reason, or the new"item-block"for a void refusal) — see the next entry for howstage_health_verdicts’ own join is kept from counting it. -
The per-stage health verdict no longer misreads a freshly blocked item as a stage failure (issue #1511). Issue #983’s own fix, above, joined
stage-endandattempt-failedon cycle + stage so a stage that exits 0 while nonetheless failing still counts as a failed attempt — butattempt-failedis also requirement 34’s item-block record: a needs-refinement block, a void-refusal, a hand-flagged-label block, a Reviewer hand-back, or an Implementer’s ownblocked/void-refusedreport all log one for a stage that ran to completion and reported truthfully on the item, never on itself, with its ownstage-endfor that cycle carryingexit_code: 0regardless. The join had no way to tell the two apart, so three consecutive, genuinely successful cycles that each freshly blocked a different item flipped the stage’s verdict tofailingon the dashboard and in the monitor digest’s failing-stages column, withlast_detailshowing the item’s block reason as though it were the stage’s own. Every genuine stage-attempt failure now carriesstage_failure: true—log_attempt_failed’s own callers inagent-cycle.sh,handle_stage_failureand the coordinator’s unparseable-message path inlib/stage-attempt.sh, and both ofmonitor-cycle.sh’s own failure writers — and the join now requires that field rather than readingkind(above), leaving every item-verdictattempt-failedcorrectly out of the count regardless of which call site logged it.kindremains, unchanged, for its other readers (lib/refinement.sh,lib/enabler.sh, the dashboard). -
The tech-debt record-flip check’s keyword harvest is now markdown-aware (issue #1463).
scripts/check-closing-keyword.sh’s record-flip half harvested a closing keyword via a rawgrepover the pull request body, so a keyword written inside a fenced code block, an inline code span, or a blockquote line — quoting the convention, or someone else’s PR body, rather than using it — was harvested exactly as a real closing keyword, demanding a record flip GitHub itself never asked for. PR #1396’s body is the concrete case:`Closes #1083`written inside an inline code span, discussing why that issue is deliberately left open — had #1083 been a migrated tech-debt issue, that PR would have failed the requiredclosing-keywordcheck over a reference GitHub itself ignored. The harvest now runs against a copy of the body with fenced code blocks, inline code spans, and blockquote lines stripped first; the marker/keyword half stays on the raw body, unaffected. -
The doctor’s write-access check no longer reads a field GitHub does not populate for a GitHub App (issue #1397).
check_repo_accessdecided whether a token could push fromGET /repos/<slug>’s.permissions.push. Asked with an App installation token that object comes back present with every member false —pull: falseon a read that has just succeeded is the tell — whatever the installation was actually granted. Since the forge authoring App went live (#1396) the forge-auth seam leavesGH_TOKENempty in every cron child, so each unattended pass readpush == falsefor every repository and reported seven failures a node, on all four nodes at once, against a token that was authoring pull requests throughout (page #1398). Under an App identity the check now reads the installation’s own record instead — itscontentsgrant, and whether its repository selection covers the repository — and fails only when one of those is genuinely missing, which is an owner act in either case; either read being unreachable is askip, never afail. The PAT path is unchanged, and an explicitGH_TOKENstill selects it, becauselib/gh-shim.shpasses a caller’s own token through without minting. The identity line no longer printsGET /user’s 403 body as the login either: under an App it reports the App’s own login, whichGET /appanswers. -
A fleet-wide
doctor.verdict=failpage now names the check that failed (issue #1397).scripts/state-sync.shfolded only{timestamp, verdict}from.doctor-status.jsoninto each node’sheartbeat.json, sopager_eval_verdict_unanimouscould say only that every node’s doctor was unhappy — which cost a hand search of four nodes’ status files to learn they were all failing the same check (#1398). The heartbeat now carries the failing checks as well, bounded to the first three and each truncated, which is the reason the array stayed local until now: the whole fleet re-fetches that file everyschedule.state_sync_fetch_minutes, and unbounded diagnostic prose there is a cost with no ceiling. The invariant’s evidence names the checks common to every active node; nodes failing genuinely different checks, or a peer still publishing the older{timestamp, verdict}shape, yield no clause rather than a wrong one, and thestage_healthandupdaterbranches are unchanged. -
The prompts that tell a stage to read a target repository’s own instructions now name
AGENTS.mdfirst (issue #1470). Eight locations acrossprompts/implementer.md,prompts/reviewer.md,prompts/project-reviewer.md,prompts/approver.md,prompts/coordinator.mdandprompts/enabler.mdtold a stage to read the target repo’sCLAUDE.mdat its root; as target repositories migrate their instructions intoAGENTS.mdwithCLAUDE.mdreduced to a one-line@AGENTS.mdimport, a stage that opensCLAUDE.mddirectly with a Read tool (rather than starting in the clone, where Claude Code expands the import as project memory) would see only that one line. Each location now namesAGENTS.mdas the file to read, withCLAUDE.mdas the fallback for a repository that has not migrated.docs/IMPLEMENTATION-PIPELINE-SPEC.mdanddocs/REVIEW-PIPELINE-SPEC.mdare updated to match.
-
The dashboard leads its analytics region with the constraint statement (D21,
docs/ROADMAP.md; issue #609): one sentence, computed from the node time-state account (lib/node-time-state.sh, issue #597), naming what is limiting this installation’s throughput right now, over what share of the window, and what to do about it.lib/constraint.sh’sconstraint_classifyranks four candidates the account attributes directly — cron latency, the back-pressure cap, node count (folding both peer-claimed contention and idle-without-demand, so a shrink recommendation competes on equal footing with the three grow-side candidates), and model capacity (isolated from the account’s other sevenexternally-blockedcauses via the newexternally_blocked_by_causesplit) — and names two more, the human merge gate and the pipeline’s own defect rate, that are structurally never evaluable from a time account alone and always report why (#574, #596). Below a stated minimum share and minimum sample the statement reads “insufficient evidence” naming what is missing, rather than naming the largest bucket regardless of size.scripts/constraint.shis the read-only CLI (constraint_min_share/constraint_min_sample_seconds,config.schema.json);scripts/publish-dashboard.shcomputes it once per full build — never on a fast tick, where it would pay for a second fleet-wide log union (review-log.jsonl) for a value the fast payload carries forward from the cache instead — anddashboard/index.htmlrenders the sentence with the account’s own breakdown by state beneath it as evidence. -
--fetchoutput states its own provenance, so a stage reads it as untrusted data rather than as instructions (issue #599, D19’s served tier).scripts/preview-deploy.shwraps each fetched route’s status, headers and body between--- fetched: <url> ---/--- end fetched: <url> ---delimiters that name it as content the pull request under review made the preview serve.prompts/implementer.mdstep 4a andprompts/reviewer.md’s preview paragraph both carry the identical rule where they describe reading that output — “no matter how it is phrased inside the page or its headers” — so any imperative text a diff’s own response contains is reported as evidence, never followed as a command, the same rule D19 already states for a rendered page applied one tier earlier. -
Event-driven dispatch: a wake-poll cron line wakes an idle node between ordinary cycle firings (issue #613, requirement 54). Pickup latency for a source-relevant event previously had a floor of one
schedule.cycle_interval_minutes— the next cron firing, whatever happened in the meantime.scripts/wake-poll.sh, on its own crontab line (schedule.wake_poll_minutes, default 2m), does one conditional GET (If-None-Match) per configured repository against a small, fixed set of endpoints chosen to union-coverlib/noop-skip.sh’s own fingerprint table, and invokesagent-cycle.sh— the identical entry point the ordinary cron line uses, so a woken node takes the same lock, the same claims and the same back-pressure cap as a cron-fired one — the moment any of them shows a real change rather than a304. A poller, not a webhook receiver: nodes have no public ingress, and a webhook needs an owner-only act a poller does not.abandoned-draftsandmerge-conflictsstay cron-only, since neither moves any forge event a poll can see;security/code-qualityare also left to cron, since this deployment’s own token cannot read the Dependabot-alerts endpoint.scripts/pickup-metrics.shgains a second, forge-created_at-anchored pickup-latency measure (pickup_latency_forge_anchored), since a poll-drivenfirst-seencannot honestly measure a poll-driven pickup-latency improvement. -
A
landing-refusalswork source (issue #979, requirement 53). Gate 4 of_landing_stage_attempt(lib/landing.sh) refuses to arm a pull request over an unreconciled human comment (reconciliation-unanswered:) or a comment-reconciliation read it could not make (reconciliation-unreadable:) — correctly, since that is the human veto D18 promises, but with no route back to work:gather-review-feedback.shcannot see a plain comment carrying no formalCHANGES_REQUESTED, andgather-abandoned-drafts.shonly ever sees drafts, while the pull request stays Ready. The refusal cost one log line per cycle, indefinitely, that nothing read.scripts/gather-landing-refusals.shis the route back: keyed on the fleet-wide union log’s most recentlanding-refusedevent per pull request (landing_latest_refusal_reason) plus a live re-check throughlib/reconciliation-gate.sh’s newreconciliation_unreconciled_comments, it offers the pull request as a candidate carrying every unreconciled comment verbatim, and the Implementer answers each and cites it with its own<!-- agent-ops:reconciles comment=<id> -->line. Wired into the ordinary candidate machinery exactly asdequeuedis —sourcesgating, the expensive-gather cache, claim exclusion and the file-claim/PR-keyed-claim dispatch, first-seen emission, the no-op fingerprint, the Refiner’s own candidate walk, andclose-void-github-items.sh’s pull-request-close exclusion. Added toPullwright/agent-ops’s ownsources, the only configured repo atmerge_autonomy: agent-merges-routineor above, since gate 4 never runs below that level. Back-pressure/drain and void-guard parity with the other four finishing sources is deliberately out of scope and tracked separately (issue #1481). -
The idle nudge now names a standing landing refusal (issue #979, requirement 38c).
scripts/sweep-human-visibility.shtakes an optional fourth argument, the fleet-wide union log; where a pull request otherwise due the nudge is one gate 4 is currently refusing to arm, the comment names that reason instead of telling the assignee it “is waiting on a merge click”, which is false of exactly that pull request. Live-reconfirmed before substitution, so an already-answered refusal falls back to the ordinary text. Same<!-- agent-ops:human-nudge -->suppression as before — this changes the wording, never how often the nudge fires. -
docs/DATA-HANDLING.md(issue #975): a data-handling inventory stating what the pipeline reads (public GitHub usernames, issue/PR/comment/review text, repository metadata), what it stores and where (cycle logs and dashboard data understate_dirand its replicated mirror), and the retention keys that bound it (cycles_retained,state_local_cycles_retained,log_retained_bytes) — ahead of onboarding any non-Poetic-Poems installation. Linked from README.md’s Installation section. -
A per-repository
previewconfig block (issue #586, D19 Phase 1, requirement 24a).scripts/preview-deploy.sh’s preview-deployment check was Vercel-shaped and Poetic-shaped at once — the Implementer’s and Reviewer’s prompts namedpoetic-fiddledirectly, so an adopting repository inherited Poetic’s preview arrangement whether or not it had one.repos[].previewinconfig.schema.jsonnow states, per repository, whether it has a preview deployment at all (provider: "none", the default) and, where it does, which provider ("vercel", the only one implemented) and — since one node may run more than one Vercel-deployed repository — which environment variables carry its bypass-secret and API-token credentials (vercel.bypass_secret_env/vercel.token_env, defaulting to the two fixed names every node already used).lib/preview-config.shresolves the block and remaps those credentials onto the fixed namesscripts/preview-deploy.shitself still reads, so that script needs no change;agent-cycle.shstamps the resolved block onto every work order’s ownpreviewfield, mechanically, before either stage’s prompt is assembled. Neitherprompts/implementer.mdnorprompts/reviewer.mdnames a repository any more — both read the work order’spreviewfield, and a repository configured"none"(poetic and agent-ops today) gets no preview step and no warning about a missing one.scripts/doctor.shvalidates the credential named by a"vercel"-configured repository is actually present on the node — a warning, never a failure, on the same terms the check itself already treats a missing credential.
- The dashboard’s cost-window
<select>is now programmatically associated with its label (issue #975).costWindowControl()built the<label>as a plain sibling of the<select class="costwindow">, with nofor/idpair — unlike the auto-refresh checkbox elsewhere in the same file, correctly nested. The select is now wrapped inside the label, the same shape the checkbox already uses; same text, same classes, sameonchangehandler.
-
scripts/lint-shell.shcan lint a named subset of files instead of always sweeping the whole repository (issue #1448). One or more arguments that each name a file which actually exists now select those files to check instead — through the same one-process-per-file loop, so the size guard and the confined SC1091/SC2154/SC2034 handling still apply to a selected file exactly as to a swept one. Argless invocation is unchanged (the full sweep), and any argument that does not name an existing file is still forwarded to shellcheck as an option, exactly as before. PR #1447’s Implementer had no way to lint only the files it touched, and substituted a rawshellcheck -x— silently losing the size guard and the confined SC1091 handling — when the full sweep OOM-killed in a memory-constrained container. -
The Pipeline Monitor promotes a repeat finding into a pager invariant, autonomously (issue #1285, part 6 of the #1126 findings). Once a finding key has been carried by
monitor_promote_after(default 2) or more of the fleet’s ownmonitor-report-writtenreports,monitor-cycle.sh— never the model — files onepager: add invariant <key>pw::type:tech-debtissue intopager_repo(falling back tocrash_loop_repo), carrying the detection rule and every report’s own evidence, and logsmonitor-promoted {key, issue}.lib/monitor-digest.shgains a Promoted-findings section naming every promoted-but-not-yet-retired key, so the model has a reason not to restate it; once the invariant it named actually exists — apager-fired/pager-clearedtransition for the key, orlib/pager-invariants.sh’s own registration — the key retires from the digest and is filtered out of the stage’s own findings before the report ever sees it.monitor_promote_after: 0disables promotion outright. -
CI now enforces the tech-debt record-file flip a closing pull request owes (issue #1363, extended by #1438).
scripts/check-closing-keyword.shtakes a repo slug and the pull request’s own number as two further, optional arguments; given both, it reads every issue the pull request closes — the ones its marker/agent/<N>-branch resolution yields, and the ones the body cites via a bare GitHub closing keyword carrying neither anchor, a human’s pull request or an interactive agent’s (issue #1438) — and, where the issue ispw::type:tech-debt-labelled and its body’s last non-blank line names a permanent register file (the “Filed astech-debt/<id>.md,.” phrase left by #1039’s migration or an earlier direct filing), requires this pull request’s own changed-files listing to add a status: resolvedline for that file, failing and naming both the issue and the file when it does not. Until now the rule lived only in prose (CLAUDE.md,TECH-DEBT.md“Resolution and history”,prompts/implementer.md,prompts/reviewer.md) pluslib/work-gone.sh’s after-the-fact runtime signal: PR #1355’s first round closed its issue and lefttech-debt/TD-PPagop-26082412.mdatstatus: open, wrong onmainuntil a later round caught it by hand..github/workflows/closing-keyword.ymlpasses the two new arguments and carriesissues: read/pull-requests: readfor them; aghcall that cannot be made at all warns rather than failing the check, since the marker/keyword half never depended on the network.lib/closing-keyword-gate.shpasses neither argument, sopoeticandpoetic-fiddle— which carry notech-debt/register of their own — keep the marker/keyword behaviour unchanged. -
A per-owner installation map for the forge authoring App (
PULLWRIGHT_AUTHOR_INSTALLATION_IDS), the shape agent-ops#913/#921 already gave the Pullwright Approver. A GitHub App installation is per account, and since the 2026-09-07 re-homing this fleet’s repositories sit in two of them —repos[]onPoetic-PoemsandPullwright,state_repoonPoetic-Poems,crash_loop_repoonPullwright— so the single scalarPULLWRIGHT_AUTHOR_INSTALLATION_IDD25 shipped with could not have covered them: provisioning the App (#1083) would have put one organisation’s token intoGH_TOKENfor every call, and the PAT was reached for only when a mint failed, never when a perfectly good token simply did not cover the target.lib/author-token.shgainsauthor_token_installation_for_owner/author_token_any_installation_idand an optional owner onauthor_token_get/_credential_present/_identity_login, resolving map → scalar → nothing, case-insensitively, with one cache file per installation.lib/gh-shim.shrecovers the owner from the invocation itself (gh_shim_target_owner), because this identity’s call site isgh— aPATHshim in front of a binary whose argv five model-driven stages write. In order: a bufferedgh auth git-credentialrequest’spath=attribute,-R/--repo, agh apirepos/orgs/userspath (or a graphqlowner=field, or arepository(owner: "…")literal), a positional github.com URL — plus, only undergh repo <subcommand>, a bareOWNER/REPO— and finally the work tree’s ownoriginremote. Thegh reporestriction is what keeps a branch from being read as a repository: every branch this fleet creates carries a slash, andgh pr checkout agent/1051inside aPoetic-Poemsclone must resolve toPoetic-Poems, never toagent. A flag’s value is never read as an owner either.gh_shim_resolve_tokenthen mints for that owner’s installation; an owner neither the map nor the scalar names degrades toPW_GH_DEGRADE_TOKEN(the PAT) rather than presenting a token GitHub would 404; an invocation naming no owner takes the scalar default. “Explicit wins; empty resolves” is unchanged — a non-emptyGH_TOKENis never touched.For
gitto say which repository it is pushing to,deploy/docker/entrypoint.shnow also setscredential.https://github.com.useHttpPath truebeside the helper wiring, and the shim buffers that one invocation’s stdin before feeding it to the real binary unchanged.scripts/doctor.shfails, by name and naming both variables, for any owner acrossrepos[],state_repo,crash_loop_repoandpager_repothat resolves to no installation, and mints once per distinct installation, reporting the App’s login per owner. -
A fourth
escalation_autonomyrung,decide-with-veto(PR #1389, requirement 36f), answering recommendation 3 ofdocs/reviews/2026-09-11-escalation-autonomy-review.md. The same decide pass, at the same tier, over the same escalations, under a wider delegate mandate its runtime input now names (mandate:tacticalatdecide-tactical,delegatehere). The mandate adds exactly two reaches to requirement 36a’s owner-only boundary and nothing else: accepting a residual exposure or risk in a repository the installation itself owns where the filer named a## Defaultand no credential, ruleset, permission, App or account is touched (the agent-ops#1310/#1298 case, which the owner then accepted exactly as the filer’s default proposed); and supplying the human corroboration of a void for the three pull-request shapes requirement 34k closes —pr-<n>-abandoned-…,pr-<n>-review-…,pr-<n>-superseded-…— through adecideverdict carryingact: {"kind": "corroborate-void"}. Never the-conflict-or-dequeued-shapes, which 34k excludes by construction. Atdecide-tacticala verdict carrying an act is out of mandate and escalates, with the evidence naming the act. The veto moves in front of the act. A decision that carries one is recordeddecision-takenwithact/act_afterand does not unblock the item; itspw::decisionlog issue says what the act is and when it becomes due; and a new per-cycle sweep,run_pending_decision_acts(lib/decision-veto.sh), performs it only afterdecision_veto_window_hours(new key, default 24,0meaning the next cycle) have passed and a live re-read finds the log issue still closed. A reopen before then cancels the act, recorded asdecision-actedwithoutcome: "cancelled"; an unreadable log issue refuses the act rather than taking it; and a pending act whose log issue could not be filed at all is abandoned and escalated, because an act nobody could veto is the one thing this rung must never take. Performingcorroborate-voidwrites the item’s ordinaryitem-voidwithstage: "decision", and requirement 34k’s existing close does the rest — the void record and the close already existed; the corroboration was what was missing. A decision carrying no act (a pure acceptance) unblocks immediately, exactly as atdecide-tactical. The dashboard’s Decisions panel gains apending actbadge for a decision still inside its window. The product default staysalways-escalate; the Poetic fleet’s ownconfig.jsonopts in. -
The Pipeline Monitor (issue #1284,
docs/MONITOR-PIPELINE-SPEC.md): a third pipeline, sibling toagent-cycle.shandreview-cycle.sh, whose subject is the pipelines themselves.monitor-cycle.shcarries its own lock (monitor-lock.json), its own stream (monitor-log.jsonl), the shared switch, theactiverole guard and the sharedlimit-hitsignal, and defers to a live implementation or review cycle. Its cadence is one hourly crontab line plus a due gate: the run is owed once a day atschedule.monitor_hour, and again within the hour after anypager-firedevent — a trigger no crontab line can express, because it is a fact about the fleet’s own log. Exactly one node takes a given slot, through alib/claim.shfile claim underclaims/monitor/.The model never reads a primary record:
lib/monitor-digest.shassembles a deterministic digest — 24 h of the union log grouped by event class with counts and up to three samples each, everypager-fired/pager-clearedand every openpw::pagerissue, every node’s heartbeat verdicts and its host-facts record, selections per work band, the Co-Ordinator fit’s rung histogram and the day’s verbatimnone-selectedreasons, the escalation repository’s own last 24 h, and the specs’## Gotchassections — bounded tomonitor_max_input_bytesby a stated drop ladder that sheds samples and gotcha prose before it ever truncates.A run produces a dated report in the state store (
monitor/<date>/report.md) and at mostmonitor_max_filings_per_run(default 3) filings, each carrying a stablefinding_keyand the provenance lineMonitor: monitor/<date> M-<nn>, deduplicated search-first against every open issue already carrying that key. Filing is the Script’s, never the stage’s: mechanical findings becomepw::type:tech-debtissues the implementation pipeline then works; tactical ones are proposed in the report and moved only for keys inmonitor_tactical_keys(empty by default) as apw::decisionwith the #937 veto; strategic ones become oneenabler-escalationassigned toenabler_assignee, options written out — the only path to the owner.The Monitor is also the consumer of pager pages: every open
pw::pagerissue gets a triage verdict in the report, a mechanical one gets the tech-debt issue filed and one comment on the page linking it, and no page is ever closed by the Monitor — the pager’s transition-only lifecycle (pager-cleared,page-outlived-item) owns that, and a close from anywhere else would leave the union log sayingfiredfor ever.Its stage-health verdict ships from day one rather than as a later issue (the gap #996 records for the review pipeline):
stage_health_write_statusgains a stage-name parameter and now merges rather than overwrites, soagent-cycle.shandmonitor-cycle.sheach refresh only their own stages in.stage-health.json, and themonitorrow reaches the heartbeat and the dashboard’s Stage health panel, fleet badge and banner with no render change. New keys:monitor_model(defaultclaude-sonnet-5; empty disables the pipeline),monitor_max_input_bytes,monitor_max_filings_per_run,monitor_tactical_keys,schedule.monitor_hour,schedule.monitor_offset_minutesandprompt_overrides.monitor. Deferred and recorded:tech-debt/TD-PPagop-26091101.md(the report is not surfaced on the dashboard),tech-debt/TD-PPagop-26091102.md(the Monitor writes nonode-statetransition) andtech-debt/TD-PPagop-26091105.md(its filings do not reach requirement 2m’s push channel, which landed while this was in flight). -
The dashboard’s cycle rows, void-item rows and fleet-node cards are now keyboard-reachable (issue #970). These three
.clickablewidgets were plain<tr>/<div>elements with no keyboard behaviour of their own — the page’s only other interactive widget, the pull-request-reference card, is built on native<a>anchors and got keyboard support for free. Each now carriestabindex="0",role="button", anaria-labelnaming what it does, and akeydownhandler firing on Enter or Space in place of a click, and shows the page’s ordinary accent-coloured:focus-visibleoutline on focus. -
The host-facts collector (issue #1283, requirement 36a):
scripts/collect-host-facts.shwrites one record per node,state_dir/host-facts/<node>.json, of facts no container running the pipeline can read for itself, because the runtime deliberately holds neither the Docker socket nor the Kubernetes API (the agent-ops#603 property, unchanged). Two drivers share one envelope (lib/host-facts.sh) and each add their own vantage-specific section (lib/host-facts-compose.sh,lib/host-facts-kubernetes.sh):composereads the Docker Engine over a read-only socket mount — container state, restart counts, cgroup memory figures, and running-versus-registry image digest, one entry per container;kubernetesreads the cluster over a read-only Role — pods, rollout stalls, CronJob scheduling, node-pressure conditions and PVC identity. Both also read the host’s own disk/memory/load, the host’s egress MTU against the configuredDOCKER_MTU, the watchtower ledger tail and last session, and run the viewer-vantage probe (agent-ops#1286) — fetching every peer’s own dashboarddata.jsto confirm it actually serves, the self-certification gap the 2026-08-08 four-day silent outage burned this installation on once already. The record is as-built atdocs/HOST-FACTS-SCHEMA.mdand carried to the rest of the fleet by the ordinarystate-sync.shpush/fetch, no dedicated sync code needed. Ships as acollectorcompose service (deploy/docker/compose.yaml) and a sample Kubernetes CronJob manifest (deploy/kubernetes/collector-cronjob.yaml);scripts/doctor.sh’s Egress section now surfaces an MTU mismatch this node’s own container could never detect on its own, and the dashboard’s node card gains ahostline folding in this node’s own record and each peer’s. Requirement 36a’s “The owner-only boundary” is narrowed to match, andprompts/enabler.md’s ownescalateverdict with it: anescalateunder condition 7 (an external account) or condition 8 (information only in someone’s head) is refused when this record already answers the fact being asked for — everything else the boundary reserves still escalates exactly as before. Thecollectorservice joins the host’s docker group (DOCKER_GIDin.env, defaulting to 999) so it can actually open the read-only socket it mounts, and carries the workspaces volume so the viewer-vantage probe can enumerate this node’s peers. -
Host-budget stand-down (issue #757, requirement 2.0g): per-container ceilings (D14, #606) bound one container’s blast radius, but Docker reserves nothing, so nothing before this checked whether the sum of every container’s ceiling still fit the host it shares with its siblings — the two-Compose-projects-per-host layout
deploy/docker/compose.yaml’s own D14 comment already reasons about by hand. The host-facts record now also publishes the host’s own total memory and CPU count, and the compose driver’s record gains abudgetsection summing every running container’s declaredmemory.max_bytes/cpu.limit_nanosfrom the same Docker socket the collector already reads (lib/host-budget.sh,docs/HOST-FACTS-SCHEMA.md).lib/ standdown.shstands a cycle down withcause: "host-overcommit", arithmetic included in thereason, when the declared sum overcommits the host — gated by the newhost_budget_enforceconfig key (falseby default: advisory only, the figures still published and visible, nothing refused, until an operator opts in) and two configured reserve margins (host_budget_reserved_memory_bytes,host_budget_reserved_cpus).scripts/doctor.shgains a matching advisory “Host budget” section reading the same record. -
Overrun-slot skips (issue #1287, requirement 11a): supercronic drops a firing silently when the previous cycle’s job is still running, logging only to a container log the fleet never reads — a cycle running long lost its node a whole schedule slot, or several, with no event of any kind and a
--status/dashboard reading of plainRUNNINGthe whole time. At cleanup, before the lock releases,agent-cycle.shnow computes which of its own schedule’s slots fell strictly inside its own run and logs onecycle-skipped {reason: "overlap", slot_ts, held_by, elapsed_s}per slot — for the cron-fired original alone, since a chained continuation or a--once/--dry-runrun is not supercronic’s running job, so its slots really did fire and the contending tick already recorded them.scripts/publish-dashboard.sh’snoop_ticksgains anoverlapcount (never folded intototal, since the cycle logging one kept its own row by running real stages), and--statusgains anoverrun: N firing(s) overrun in the last 24hline, whichcheck-nodes.shinherits for free. -
escalation_webhook_urlpromoted to the installation’s one push-notification channel (issue #1279, requirement 2m):lib/notify.sh’snotify_postPOSTs one compact JSON body —{event, key, title, url, repo, node, ts, detail}— tonotify_webhook_urlfor every escalation issue filed or auto-closed, everypager-fired/pager-cleared(#1278), and every fleet-wide stand-down beginning or ending (a usage-limit cooldown, the fleet switch, the merge-autonomy kill switch), gated per class bynotify_events(default all three:escalation,pager,fleet-standdown) and coalesced per(event, key)pair bynotify_min_interval_seconds(default 600s) so a burst of the same fact repeating arrives as one message and a count, while theendof a transition never disappears behind thebeginthat shares its key.escalation_webhook_url— previously only a filing-failure fallback — is accepted as an alias fornotify_webhook_urlfor one release;scripts/doctor.shwarns on the old name and gains a live reachability check of the resolved webhook host through the egress fence. New config:notify_webhook_url,notify_events,notify_min_interval_seconds.The alias preserves the URL, not the body. An installation already pointing
escalation_webhook_urlat a receiver keeps delivering to the same endpoint, but the JSON it delivers has changed: the old filing-failure body was{reason, detail, repo, item, node, cycle}and there is noreason,itemorcyclein the new one. A receiver that reads those fields needs updating —reasonis nowtitle,itemis folded intokey(as<repo>#<item>), and the filing failure that used to be the only thing this channel sent is now theescalation-unfiledevent rather than every message on it. -
The pager: fleet-level invariant evaluation, filing and auto-close (issue #1278, requirement 51):
lib/pager.sh, a registry of named invariants evaluated once per Publisher GitHub tick, each a function over facts every node already holds fleet-wide (the union log, every peer’s heartbeat, this node’s own doctor verdict). A firing invariant claims its evaluation window throughlib/claim.sh, waits outpager_min_firing_ minutes’ hysteresis, then files one dedupedpw::pager-labelled issue inpager_repo(default: falls back tocrash_loop_repo) — a pipeline-act remedy performs the fix directly and records it, a config-lever remedy additionally files apw::decisionrecord underescalation_autonomy: decide-tactical, an owner-only remedy assigns the issue toenabler_assignee— and auto-closes it with a one-line comment the moment the fact clears. Ships with two invariants (lib/pager-invariants.sh):verdict-unanimous(the #1071 signature — the identical failing verdict on every active node at once, almost always the reader being wrong rather than a real fleet-wide failure; files apw::type:tech-debtissue against this pipeline’s own repository), andpage-outlived-item(closes an open page whose own linked PR or issue has already gone terminal, generalising #1215’sapprover_escalation_retireto every page this framework or the Enabler files)..doctor-status.json’s own verdict now folds into every heartbeat, the same waystage_health’s does, soverdict-unanimouscan see a peer’s doctor verdict, not only its own. New config:pager_enabled(defaulttrue),pager_repo,pager_min_firing_minutes(default 15). The dashboard gains apager-firingpage-top banner and a node-card badge naming a firing invariant on the node(s) its evidence names. -
The dashboard polls a stamp instead of re-downloading
data.jsevery tick (issue #1288): every open dashboard tab was re-fetching the whole payload — 2.7–2.9 MB measured on real nodes — unconditionally on everydashboard_refresh_secondstick, whether or not anything had changed; about 45 GB/day per tab left open, and over a slow enough path a single tick took longer than the interval it was fired at, so a tab there never caught up.scripts/publish-dashboard.shnow writes astamp.jssibling besidedata.json every run —window.DASHBOARD_STAMP = {generated_at, fingerprint}, a few dozen bytes, atomically, from the same no-op-skip fingerprint that already governs whetherdata.jsitself gets rewritten.dashboard/index.htmlfetchesstamp.jsevery tick anddata.jsonly when itsfingerprintno longer matches the one last loaded;generated_atstill ticks the header’s staleness clock every tick regardless. With unchanged data a tick now costs bytes, not megabytes. -
The pager: fleet liveness from a peer’s vantage (issue #1282, part 3c of #1126’s findings, requirement 51): five more built-in invariants (
lib/pager-invariants.sh), allowner-only— the class where every signal a node emitted was one it also consumed, so only another node evaluating it can catch the gap.firing-missed(an active node’s newestcycle-startorcycle-skippedolder than 2×schedule.cycle_interval_ minuteswhile its heartbeat is fresh and it holds no lock — caught purely from the union log, sincelock.jsonis never published; a long cycle whose scheduler keeps ticking and skipping around it never counts as missed).node-stale(publication age past 2×node_stale_after_minutes; files only after the newpager_stale_file_after_minutes, default 180 min — a per-key override of the framework’s own filing hysteresis,pager_register‘s new fifth argument).updater-stuck(updater.status == "stuck"for over 2×updater_stuck_after_minutes, reading.updater.seconds’ own elapsed time directly).review-pipeline-failing(review-log.jsonl’s streak of failed review runs at 3 or more with no completed review between — runs, not events, becausereview-cycle.shwritesreview-endon every run whatever happened, so a failed run’s ownreview-endstill reportsexit_code: 0; the interim reader pending #996’s own heartbeat verdict).dashboard-unreadable(a node’sdata.jsslower than the newpager_dashboard_fetch_seconds, default 30 s, or unparseable, from a viewer’s vantage — reads thedashboard_fetchfield #1283’s own viewer-vantage probe is expected to fold intofleet_nodes_json; never fires until that lands). New config:pager_stale_file_after_minutes(default 180),pager_dashboard_fetch_seconds(default 30). -
The pager: selection and ledger invariants (issue #1281, part 3b of #1126’s findings, requirement 51): seven more built-in invariants (
lib/pager-invariants.sh) — the class that wedged or starved the fleet in August and September, this time read from the Co-Ordinator’s own selection/fit machinery and from the block/escalation ledger.idle-with-demand(owner-only; an active node’s lastpager_idle_cycles, default 6, cycles — each read from its own lastnode-stateevent, since several are logged per cycle — all endedidle-with-demandwith a cause other thanback-pressure— evidence carries the node’s own most recentnone-selectedreason andcoordinator-input-fitteddetail).fit-ladder-pinned(owner-only;coordinator-input-fittedpinned in the ladder’s own entry-dropping segment — rung 9 or tighter, where #1128’s own evidence sat — with entries dropped on every fitted cycle for 24h).work-order-repaired-rate(owner-only; more thanpager_repair_rate_ percent, default 20, of a trailing 24h’s selections needed a work-order-repaired repair — #821’s own signature).blocked-label- orphaned(pipeline-act; a liveblocked:needs-refinement/blockedlabel with no open block behind it — the remedy calls requirement 38b’s own release path,refinement_label_remove, directly, never a reimplementation).claim-unreconciled(pipeline-act; an Enabler escalate verdict in the trailing 24h with no matchingescalated/tech-debt-filedevent in the same cycle — #815’s own signature recurring; the remedy posts one correction comment naming what could not be confirmed).escalation-burst(owner-only; more thanpager_escalation_burst, default 10, escalations filed fleet-wide in 24h, or the same re-flag reason paging the same item twice inside that window — fingerprinted withescalation_autonomy_decide_reason_key, reused from requirement 36d).digest-truncated(pipeline-act; a repo’ssource-state-digestundercounting a live paginated total this invariant fetches itself — #1165’s own signature recurring; the remedy vetoes that repo’s digest for the affected cycle via a newdigest-truncation-vetoeventlib/candidate-gather.shnow checks before trusting a digest, then files). New config:pager_idle_cycles(default 6),pager_repair_rate_percent(default 20),pager_escalation_burst(default 10). -
The pager: landing and approval invariants (issue #1280, part 3a of #1126’s findings, requirement 51): three more built-in invariants (
lib/pager-invariants.sh) — the class where a pull request sits ready, or a whole repository stops landing, with nothing any existing invariant reads catching it.landing-never-armed(pipeline-act; a repository configured atmerge_autonomyagent-merges-routineor above withlanding-refusedactivity but nolanding-armedevent in the trailingpager_landing_armed_within_days, default 7 — #718’s own signature: six days of refusals and zero armings, becauselanding_protected_paths_hit’sgh api … -Fwas 404ing on every call; the remedy files apw::type:tech-debtissue naming the repo’s own refusal-class histogram).landing-refused-unknown(pipeline-act;landing-refusedevents of classunknown—lib/landing.sh’s own fail-closed vocabulary for a live GitHub read that could not even be attempted — at or above half of a trailing 24h’s refusals fleet-wide, with at least five; the same #718 incident was 72 of 115).pr-unreviewed(pipeline-act; a ready, non-draft,pr_labelpull request older thanapprover_unreviewed_engage_after_hourswith no standing review, noapprover-verdict, no Approver warning and noapprover-unreviewed-engagedevent at all — requirement 46’s own unreviewed trigger never having run for it even once, the #1081 signature that stranded PR #1059; the remedy logs the identicalapprover-unreviewed-engagedevent the ordinary sweep would,result: "unavailable", which starts that sweep’s own escalate clock for a pull request it had never started for at all). New config:pager_landing_armed_within_days(default 7). -
Labels a stage asks for (issue #714, requirement 6c): the Refiner’s per-item verdict and the Implementer’s summary may each name up to 3 descriptive labels of their own —
{name, colour?, description?}— for the Script to create and apply, the same create-only safetylabels_ensure_onealready gives the catalogue’s own labels. A name is refused, silently to the stage and logged as alabels-mintedevent for a human, when it is empty, over 50 characters, carries a comma, or collides with a name this pipeline itself reads to decide something (blocked,blocked:*,obsolete,complexity:*,pw::type:tech-debt,pw::owner-decision,pw::decision,open-question, or any of this installation’s own configured control labels) — a minted label is inert by design: nothing anywhere in this pipeline ever reads one back to decide anything. The Refiner’s own suggestions across one engagement share a further pool of 10, since only it processes more than one item per engagement.scripts/doctor.sh’s existing reserved-name check now refuses a configured label claiming the wholeblocked:*namespace, not only the exact wordblocked. -
doctor.shwarns when an emptymerge_autonomy_protected_pathsdisarms gate 4 for a routine-tier repository (issue #963, TD-PPagop-26082403): a resolvedmerge_autonomy_protected_pathsof[]— schema-valid, since neither the top-level key nor therepos[]override carries aminItems— was silently disabling the protected-path landing gate for any repository trusted atagent-merges-routineor above, with nothing reporting it was off.scripts/doctor.shnow warns, naming the repository and its configured level, on the model of its neighbouringlanding_cool_off_hours 0warning. -
Analytics retention policy (issue #598, D21): a new
analytics_retained_daysconfig key states thatlog.jsonl/review-log.jsonl’s analytics content — the per-stage metering record, the rework record, and the events the item-lifecycle fold reads — is retained independently ofscripts/rotate-logs.sh’s size-based rotation andscripts/state-sync.sh’s pruning ofcycles//reviews/, neither of which has ever reached either file. Default0(retain indefinitely) preserves today’s behaviour; nothing yet enforces an expiry against a non-zero value.docs/IMPLEMENTATION-PIPELINE-SPEC.mdrequirement 2.6d also generalises the fleet-wide de-duplication ruledocs/FLOW-SCHEMA.md’s rework record already used (first-wins-by-tson a record’s own stable identity) to bind every analytics record this policy retains, proved for the item-lifecycle fold by a new two-node fixture intest/item-lifecycle.test.sh. Corrects a since-inaccurate claim, repeated indocs/DASHBOARD-SPEC.md,docs/METERING-SCHEMA.mdandscripts/publish-dashboard.sh’s own comments, thatlog.jsonlrotates or can “rotate out of” the union — it never has:log.jsonlandreview-log.jsonlhave always been excluded from rotation (requirement 2.6). -
Per-close re-filing rate limit for escalation issues (issue #779, decided on #784 as behaviour (b)): a human closing an escalation issue without performing the releasing act (removing the
open-questionlabel for requirement 8f, reviewing and merging for requirement 8c) no longer gets a fresh escalation issue on every subsequent refusing round.open_question_escalate(lib/landing.sh) andapprover_escalate(lib/approver.sh) both now read the most recently closed escalation issue for the item live (escalation_recent_close,lib/enabler.sh) and suppress a re-filing within the newescalation_refile_after_hourswindow (default 24h, pure comparatorescalation_refile_suppressed,lib/escalation-autonomy.sh) — unless it is the one immediate re-escalation a failed post-close adjudication owes (escalation_event_logged_since), which always files regardless of the window.escalation_refile_after_hours: 0disables the guard outright. -
Node time-state record (issue #597, D21): a
node-statetransition event, logged the instant a node’s own state changes, classifying every node-second into one of six states — producing, overhead, externally-blocked, idle-with-demand, idle-without-demand, down — with idle-with-demand split by cause (awaiting-tick,back-pressure,peer-claimed,coordinator-declined). Emitted at every stage-start/ stage-end, everystand-down(now carrying acausefrom a closed fourteen-token vocabulary at the sites that previously carried none), every genuinely-nothing-selectednone-selected,limit-hit/limit-cleared, and cycle-start/cycle-end, in bothagent-cycle.shandreview-cycle.sh.lib/node-time-state.sh’snode_time_state_fold(behind the read-onlyscripts/node-time-state.sh) reconstructs seconds per state from these events alone, asserting the invariant (states sum to node-count x window) rather than merely trusting it. Documented underdocs/FLOW-SCHEMA.md’s new “Node time-state record” section, alongside the rework and item-lifecycle records it joins. -
Tech-debt close-guard (issue #877; D15 as revised, #869/#875/#879): a new
.github/workflows/tech-debt-close-guard.ymlposts one advisory comment when apw::type:tech-debtissue closes with neither a linked pull request/commit nor an explanatory comment —completedwithout either, ornot_planned/duplicatewithout a reason. Purely advisory: it never reopens the issue, never relabels it, and never fails its own run. -
Per-repository review instructions and context (issue #589, D7): three new
project_review.defaults/repos[]keys, resolved on requirement 342’s usual rule, give a review the repository it is reviewing rather than the same five facts everywhere.review_instructionsandreview_contextare arrays of installation-held paths, resolved againststate_direxactly likeprompt_overrides’extend, and reach the Reviewer-Agent’s runtime input asinstructions/context; a configured path that does not resolve to a readable file is a fail-fast error at cycle start and atscripts/doctor.sh, not the silent skip aprompt_overridespath earns, because this text changes how strictly a review judges.repo_context_fileadditionally admits one file from the repository under review’s own clone — context only, never instruction: text a reviewed repository’s contributors can edit is trustworthy only as far as a pull request into that repository is, so it reaches the model attributed"source": "repository"and the prompt tells it to read that as evidence rather than obey it. Unset by default, and absent from the clone is simply absent.review-stage-startrecords every resolved source and a sha256 of the text sent, never the text, so a past review’s inputs are reconstructable from the log. Closes D7’s open question — both layered, configuration winning. -
--now <iso8601>onscripts/publish-dashboard.sh(issue #957): overrides the single instant every rolling window in the script measures from —day_cut/today/recent_cutand the WI-8 landing digest’sin_window/stale()cutoffs alike — mirroring the seamscripts/publish-revert-rate.shandscripts/autonomy-stage-report.shalready provide, so a test can pin a fixed calendar date instead of computing fixture timestamps as offsets from the real clock. Fixes two latent bugs found in the process:day_cut/today/recent_cutread the real clock independently ofnow_isorather than deriving from it (no production effect without--now, since both were always the real clock anyway, but it meant--nowcould not reach them), and the no-op short-circuit’s fingerprint (#787) did not account for--now, so two ticks over unchanged on-disk state but a different pinned instant would have incorrectly served a stale page. Omitted, behaviour is unchanged. -
Actor and model scorecards (issue #610, D22): one dashboard card per actor with a model choice (coordinator, implementer, reviewer, enabler, refiner), one row per model and tier, graded on outcome — attempts and how many ended cleanly, terminal fate (landed unchanged / landed after rework / voided / abandoned), first-pass yield, cost and wall-clock per landed item, and each actor’s own measure (the Co-Ordinator’s corroboration rate and whether its picks landed, the Reviewer’s escape rate, the Enabler’s unblock success, the Refiner’s refinement-hold rate). Every row states its stratum and sample size and reads “insufficient evidence” below the minimum sample rather than ranking on too little data. Supersedes the Co-Ordinator verdict-quality panel (issue #319, folded into the Co-Ordinator card’s own measure) and retires the two “model used” pies (issue #529, folded into every row’s own
attempts). -
The item lifecycle record additively flags a
landeditem that was reworked afterwards (requirement 49, agent-ops#1181): areworked_after_landed: {since, event}field, naming the earliest item-scoped event later than the item’s own earliest landing evidence — a reopened or re-worked item, e.g. a secondpr-raisedfor another pull request — and omitted entirely, neverfalse/null, when no such later event exists. Further landing evidence itself (a secondmerge-observed/issue-closed-post-merge) does not count as rework. The fate priority order and every existing fate’s assignment rule are unchanged;docs/FLOW-SCHEMA.md’slandedrow and requirement 49’s acceptance check indocs/IMPLEMENTATION-PIPELINE-SPEC.mddocument the new field. -
A Rework panel on the monitoring dashboard (D23, issue #611), answering exactly three questions from the rework record and the item lifecycle record (
docs/FLOW-SCHEMA.md) and nothing else: how much — rework’s share of tokens and of elapsed time against first-pass yield; whose — repetitions grouped byattributed_stage, with an explicit “not attributed” bucket for the seven classes the record’s own attribution rule leavesnull; how far did it get — the escape ladder, one row per detection stage (agent review, the human gate, post-merge) with each rung’s population, catch count, escape rate and the measured cost of catching one at the next rung. Never presents rework as a quantity to minimise (D23):caughtandescape_rateare reported as two separate figures on the same row precisely so a falling catch count alongside a rising escape rate — the signature of a Reviewer waving work through — stays legible as a regression rather than reading as an improvement. States its own limits on the panel’s face: the rework share is cycle-granular (a cycle carrying any rework record counts in full, so the share is an upper bound rather than a measured split), and the human-gate rung only catches what the reconciliation gate observes at the Reviewer’s own ready handoff (TD-PPagop-26082919). Newlib/rework-panel.sh, wired intoscripts/publish-dashboard.shanddashboard/index.html. -
A
--drainmode (agent-ops#865, requirements 2.2c/2.3d/2.9): a thirddisabled.jsonmode, alongside the switch’s original"stop", that stops new work being picked up while letting the four finishing sources (review-feedback, merge-conflicts, dequeued, abandoned-drafts) keep landing until every configured repo has nothing left to finish, then rests there rather than exiting.agent-cycle.sh --drain '<reason>' [--for|--until] [--this-node], mirroring--disable’s own TTL/scope handling;--enableclears either mode. A--disableissued over an active drain tightens it to a full stop immediately; a--drainissued over an active stop is a usage error (--enablefirst), whether that stop is this node’s own record or a fleet-wide one a peer set; a--drainover a--drainextends it, same as re-issuing--disable.review-cycle.shstands down under either mode unchanged.--status, the dashboard badge and the heartbeat report draining/drained with the finishing-source items still outstanding, and log a single deduplicateddrainedevent once a drain reaches rest. Renames the roadmap’s existing Phase 2 Graceful drain item — a single node finishing its own in-flight cycle before exiting — to Graceful shutdown, freeing the name for this unrelated, operator-issued mode. -
D15-as-revised’s durable-ledger mitigation gains its archive mirror (issue #878, following #869/#875/#879): a new daily
scripts/publish-tech-debt-archive.sh, on its own crontab line (schedule.tech_debt_archive_hour/tech_debt_archive_offset_minutes), mirrors everypw::type:tech-debt-labelled issue, per configured repository, into the state repository as one JSON file per issue (tech-debt-archive/<owner>/<repo>/<number>.json—{number, title, state, state_reason, author, labels, created_at, updated_at, closed_at, body}). The working store is a mutable GitHub issue; this mirror’s guarantee lives in the state repository’s own git history instead, since the script only ever adds or updates a file, never deletes one — an issue that is later edited, closed, deleted or relabelled away still has its last-archived state on record. Costs one label search and one open-pull-request listing per repository per run, whatever the archive’s size; every further call is bounded by what changed since the last run, tracked in a small per-repository index file. Also audits (and logs, never fixes) two shapes of gap: a labelled issue with an empty body, and an open pull request already filed the pre-migration way (lib/tech-debt-file.sh’stechdebt_file_debt, never labelledpw::type:tech-debtby construction) that is therefore invisible to this archive. -
A decision log and veto for
decide-tactical(D18, agent-ops#937): everydecideverdict now files a closed, unassignedpw::decisionissue — the decision, the rationale, the options considered — as a durable record a human can scan in one place, alongside a one-click way to undo it. Reopening that issue vetoes the decision:scripts/sweep-decision-vetoes.sh(wired via the newlib/decision-veto.sh) re-blocks a non-terminal item with a freshneeds-refinement, comments on its thread, flips any open pull request for it back to draft, and, for a terminal item, files a fresh “revisit: …” issue quoting the veto’s own comment. The dashboard’s new Decisions panel lists every decision taken in the last 7 days, vetoed ones marked as such, andagent-cycle.sh --statuscarries a one-line count of decisions taken in the last 24h. -
A free-memory stand-down before every cycle (requirement 2.0f), the memory counterpart of requirement 2.0c’s free-disk gate and deliberately the same shape.
lib/memory.shis the one place free host memory is read and judged —memory_available_kb(MemAvailable, not MemFree, and the host’s rather than this cgroup’s, since/proc/meminfois not namespaced),memory_verdict,memory_describe— soagent-cycle.sh’s gate andscripts/doctor.sh’s advisory warning cannot disagree about what “low” means. Below the newmin_free_memory_bytesfloor (default 512 MiB;0turns it off) the cycle stands down withcause: "memory-low", carrying both the available and the total KiB, before any stage the host cannot hold ever runs. An unreadable/proc/meminfofalls through rather than standing down on a guess, the same “no evidence” reasoning requirement 2.0’sunknownrests on.The gap this closes: requirement 2.0c refuses to start a cycle into a host with no room to finish it, and nothing refused to start one into a host with no memory to run it. On the ockham WSL2 host — a VM capped at 6 GiB running two nodes whose cycles overlap for most of every hour — that is the half that kept freezing the machine.
-
scripts/doctor.shgains a Memory section: the host’s available memory against the samemin_free_memory_bytesfloor the gate uses, and whether anything reclaims this container’s own memory before its hard ceiling (memory_cgroup_verdict, reading cgroup v2 read-only). A cgroup with a realmemory.maxbutmemory.highunset reportsunbounded— it ratchets up to its ceiling and returns memory only under pressure — and points at the operator recipe now documented indeploy/docker/compose.yaml. The pipeline cannot fix this itself: Docker exposes nomemory.highsetting and a container can read its cgroup but never write it, so detection is the whole of what this repository can contribute. -
The item lifecycle record (D21 of
docs/ROADMAP.md, requirement 49, issue #595): one durable record per work item, derived rather than emitted —lib/item-lifecycle.sh’sitem_lifecycle_fold, behind the read-onlyscripts/item-lifecycle.sh— folding the union log’s own item-scoped events into an explicit terminal fate (landed,voided,superseded,blocked,abandonedoropen), with a checked flow invariant and anunaccountedbucket for whatever the fold cannot resolve automatically rather than dropping it. Two genuine gaps are filled to make the fold possible: achecks-greenevent where nothing before named a required-checks read that actually came back clean, and amerge-observedevent atlib/landing.sh’s own arm site andscripts/sweep-closed- issues.sh’s periodic sweep — the two merge-observation points issue #916’s ownmerge-observedevent had not yet reached.{repo, item}is added, additive, to every item-scoped event the fold needs that lacked it (stage-start,stage-end,pr-raised,pr-ready,landing-armed,landing-refused,approver-verdict,review-gate-checks-read,issue-closed-post-merge).docs/FLOW-SCHEMA.md’s “The item lifecycle record” section is the field-by-field contract, sibling to the rework record above it under the same stability policy.scripts/pickup-metrics.sh’s own first-seen/ selection pairing is generalised onto the same fold rather than left duplicating it, with its CLI contract and output unchanged;scripts/mine-merge-history.shis explicitly out of this item’s scope (escalation #827) and is untouched.
Changed
Section titled “Changed”-
A hung test in CI now fails in ten minutes instead of spinning for six hours, and the nine slowest test files spawn far fewer real subprocesses (agent-ops#969).
.github/workflows/build-image.yml‘s test-suite loop carries the same per-testtimeout 600scripts/run-tests.shhas always applied, and its build job carriestimeout-minutes: 90; between them, the one environment that actually gates a merge stops relying on Actions’ implicit six-hour default — the gap that would have let a watchdog-kill regression sit as an unexplained, spinning step. The nine runtime outliers the item named now reach the same assertions through fewer real entry-point invocations:doctor.test.sh,toggle.test.sh,config-schema.test.sh,review-claim.test.shandstate-sync.test.shconsolidate fixtures that differed only in configuration into single multi-repository runs (or, forconfig-schema.test.sh, reuse a prior run’s output for a byte-identical fixture),toggle.test.shwrites state directly throughlib/toggle.shwhere arun_nodecall was pure setup for a later assertion, andcoordinator-input-wiring.test.shdrops one re-invocation that recomputed a byte count it already had. Every file keeps at least one genuine subprocess-based assertion;review-not-before.test.shandrole.test.share unchanged, each of their invocations having been confirmed to prove a distinct branch. Two of those files were also making real, unstubbedghcalls against this repository’s own live GitHub state —publish-dashboard.test.sh’s launcher-exit-status section andstate-sync.test.sh’s--disable/--enablepair, both now pointed at the existingDASHBOARD_GH_CMDseam. README.md’s “Running the tests” states what a full run actually costs, measured against CI’s own history rather than a developer host’s. -
san(),expand_home/cfg/cfg_json, andlog_event’s envelope logic are each defined once instead of copy-pasted (agent-ops#967).san()(the claim-path sanitizer) now lives inlib/claim-key.sh, sourced by bothlib/claim.shandscripts/sweep-orphan-branches.shin place of their own identical copies — the correctness-risk case, since a drift here would have letsweep-orphan-branches.sh’s registry lookups silently miss a real claim and delete a branch a peer node still owns.expand_home/cfg/cfg_jsonnow live inlib/config-access.sh, sourced by bothagent-cycle.shandreview-cycle.sh.log_event’s envelope logic (the issue #361/#458 FIELDS contract) now lives inlib/log-event.sh‘slog_event_append, taking the one genuine difference between the two cycles’ copies — the envelope’s id field and the target log file — as arguments; each cycle keeps its own one-linelog_eventwrapper. Pure refactor, no behavioural change. -
maybe_run_refineris decomposed into named helpers (agent-ops#964, continuing agent-ops#771’s split). The Refiner stage’s 322-line function inlib/refinement.shis now a 23-line orchestration-only sequence of calls into eleven_refiner_*helpers split along its existing guard-clause and verdict-branch structure —_refiner_guards_pass,_refiner_engagement_json,_refiner_fleet_limit_active,_refiner_claim_eligible,_refiner_expire_claims,_refiner_run_engagement,_refiner_process_one_verdict,_refiner_apply_priority,_refiner_apply_verdicts,_refiner_warn_unclaimedand the shared_refiner_json_length— matchinglib/handoff.sh’s style. Pure refactor, no behavioural change: the two tests that lift the function out viaawknow lift the helper carrying the marker each one checks for, with their assertions untouched._refiner_run_engagementreturns through the globalrefiner_parsedand is called bare rather than in a command substitution, because the stage it runs sets three globals its caller’s own shell must see —stage_pidandstage_namefor requirement 9c’s signal handler, andlimit_hit_this_cycle— and writes the--oncestage dump to stdout. The remaining five pieces of agent-ops#964 (agent-cycle.sh’s top-level script and four larger functions) are tracked as agent-ops#1253-#1257. -
A failed Priority write now names why it failed (agent-ops#960, requirement 39g).
issue_priority_apply(lib/issue-priority.sh) sent itssetIssueFieldValuemutation with>/dev/null 2>&1and collapsed any rejection to a baremutation-failed, so GitHub’s own explanation was discarded at the pipe. It now captures the mutation’s stderr, and amutation-failedresult carries anerrorkey — the first line of that text, always present on this reason and empty rather than omitted when the mutation produced no stderr at all, so a caller can log it unconditionally.maybe_run_refiner’s (lib/refinement.sh) warning appends— error: <text>when it is non-empty, alongside the repo, item and band(s) it already named. The four documented reasons, therequestedkey and theapplied/reasonshape are all unchanged; this is additive. What the silence cost: the one-token schema mismatch fixed in agent-ops#737 —$optionIddeclaredString!against an argument GitHub typesID— rejected every Priority write in the fleet for three days behind 14 identical, unactionable warnings, and the rejection itself named the defect precisely the first time it was sent. -
The Approver’s and Enabler’s
file_debtverdict — and the Reviewer’s own leftover filing when its subject merges mid-pass — now files apw::type:tech-debt-labelled GitHub issue, not a register pull request (agent-ops#874, D15 as revised #869):techdebt_file_debt()(lib/tech-debt-file.sh) dedups first against the target repository’s own openpw::type:tech-debtissues by normalised title — every one of them, since that search states its own page cap rather than inheritinggh issue list’s default of 30 — commenting new evidence onto a match rather than filing a duplicate, and otherwise creates a fresh labelled issue — retrying unlabelled where a fresh repository has not had the label ensured yet. The id-reservation branch (scripts/reserve-tech-debt-id.pl), thetd-record/<id>filing branch, the filing pull request, and their rollback (_techdebt_unfile) are retired along with it: a single issue create either lands or degrades, with nothing left to half-finish. This is the same labelled-issue move PR #919 (review-sourced debt) and PR #923 (the Co-Ordinator’stech-debtband) already made for their own paths;file_debtwas the one caller D15’s revision had not yet reached.TECHDEBT_RECORD_BRANCH_PREFIXstays defined inlib/tech-debt-file.sh— unused there now, but still sourced byscripts/sweep-orphan-branches.shandscripts/publish-tech-debt-archive.shto recognise and drain anytd-record/<id>branch a pre-#874 filing already left behind. -
The test suite no longer expects any particular value from
config.json. Changing a configured value — a threshold, a cadence, an autonomy rung, a repository added or removed — is a configuration change, and now touches no test. The shipped file is still asserted to be valid (it matchesconfig.schema.json, andscripts/doctor.shpasses it), andscripts/render-config-table.sh --checkstill gates the documentation regeneration; what is gone is every assertion that quoted a value it happens to carry.test/config-schema.test.shnow mutates a newtest/fixtures/config-base.json— a configuration the suite owns, asserted valid in its own right, naming nomerge_autonomyorapprover_*key at all — instead of the shipped file, which retiresDOCTOR_NEUTRAL_MUTATIONand the per-key normalisations that had accreted around the same failure (TD-PPagop-26081801, TD-PPagop-26082201, TD-PPagop-26082302, agent-ops#546, agent-ops#560).test/doctor.test.shpins its ownschedulein the single-target-repo fixture, andtest/render-crontab.test.shderives every expectation for the shipped config from the file itself, throughconfig_defaults— the renderer’s own resolution — rather than repeating its minutes, and gives its explicit-CYCLE_MINUTEand excluded-minute cases schedules of their own.test/publish-dashboard.test.shderives its repository counts, so “15 calls across 3 repos” follows the file rather than pinning it. The rule is now written down in both pipelines’ Acceptance checks preambles, so a new check inherits it;TD-PPagop-26090610records the two couplings this change does not reach — ten suites still spell out the shippedstate_dirpath, and two repository slugs are still written intopublish-dashboard’s GitHub stubs. -
The Script, not the Co-Ordinator, now composes a work order’s
context,acceptanceandtitle(requirement 17h,compose_selected_candidate_textinlib/candidate-select.sh) — agent-ops#769, resolving the escalation at agent-ops#844 with the owner’s decision for option (b). For the ten sources the Script already gathers as structured data (security,code-quality,review-feedback,merge-conflicts,dequeued,abandoned-drafts,human-visibility,register-hygiene,tech-debt,issues) the Co-Ordinator now selects{repo, source, item}and nothing else: the Script builds the three text fields itself immediately before the claim, from a freshgh issue viewforissues/tech-debt— the only two bands the fit ladder (requirement 4i) ever trims — and from the never-trimmed pre-fetched band entry for the other eight, using the same per-source templatefallback_select_candidate(requirement 3v) already used. The recorded refinement is spliced in unconditionally rather than checked for, generalising agent-ops#767. A failed live read, or a candidate naming an item this cycle’s own gather no longer holds, is a fail-closed skip under requirement 17f’s existinguntraceablecause — never a fallback to a trimmed or stale entry.coordinator_modelstaysclaude-haiku-4-5-20251001; its job narrows to selection.The arrangement this ends: the cheapest model in the fleet was asked to reproduce kilobytes of text verbatim out of input its own fit ladder had already trimmed, and requirements 17f/17g could only ever catch that failing after the fact — agent-ops#821 measured one work order whose
contextreproduced an issue to the truncation point and then continued into a section that appears nowhere in the issue. The three sources the Co-Ordinator still derives itself live —project-review,failed-runs,implementation-plan— are unaffected: they have no pre-fetched band to compose from and were never subject to the trimming.
-
The
closing-keywordcheck no longer fails a pull request that spells its closing keyword the way GitHub’s own linked-issue syntax also allows (issue #1460).scripts/check-closing-keyword.shmatched a closing keyword only when it was immediately followed by#N, but GitHub honoursKEYWORD GH-NandKEYWORD OWNER/REPOSITORY#Ntoo and closes the referenced issue on merge for all three — so a body readingFixes Pullwright/agent-ops#198orFixes GH-198alongside itsagent-ops:closes-issuemarker turned a required status check red over a pull request that had done nothing wrong, and could not go green without rewording the body. The keyword list is now one shared pattern both of the script’s halves match on, and the marker check’s issue reference accepts all three spellings; the repo-qualified form satisfies that half whatever itsowner/reporeads, since it is only ever asked whether a closing keyword for the marked number exists — never in which repository — and it runs where no repo slug was passed to it at all (lib/closing-keyword-gate.sh). The(^|[^[:alnum:]])word-of-its-own boundary and the trailing non-digit guard are unchanged and cover the new spellings too, sounclosed GH-198anddiscloses owner/repo#77still close nothing, exactly asunclosed #198already did. -
A tech-debt issue closed by the
GH-Norowner/repo#Nspelling no longer escapes the record-flip check (issue #1460). The keyword harvest that pulls a markerlessFixes #Nintocheck-closing-keyword.sh’s record-flip loop — the dragnet added for issue #1438, so a human’s or an interactive agent’s pull request cannot close apw::type:tech-debtissue and leave itstech-debt/<id>.mdatstatus: open— read only the#Nspelling, so the same close writtenFixes GH-1438harvested nothing and the record stayed open: the PR #1355 miss again, through a third path. The harvest now reads all three spellings, with one deliberate asymmetry against the marker check above: the repo-qualified form counts only where itsowner/repois this repository’s own, matched case-insensitively, becauseFixes otherowner/otherrepo#5closes someone else’s issue and must not demand a flip of our record for it. The issue number is read from the end of each match rather than its first digit run, a repository name being free to carry digits of its own (acme/widgets2#198harvests 198, not 2). -
test/gh-shim-auth.test.sh’s “nothing configured” fixture no longer leaks a host’s ambientPW_GH_DEGRADE_TOKENinto its assertion (agent-ops#1432).gh_shim_resolve_tokenfalls back toPW_GH_DEGRADE_TOKENwhenever it is non-empty, and the fixture namedGH_TOKEN=explicitly but neverPW_GH_DEGRADE_TOKEN=— so on any node that provisionsPW_GH_DEGRADE_TOKENin its own operational shell (every node in this fleet does, for realghcalls made outside this test), that ambient credential reached the stub and failed the “the call still reaches the real binary, with an empty token” assertion, byte-identically on a pristine checkout. The fixture now namesPW_GH_DEGRADE_TOKEN=explicitly too, mirroringGH_TOKEN=’s existing idiom. -
scripts/render-toc.shno longer silently passes a target file whose<!-- toc:start -->/<!-- toc:end -->marker pair is missing, unpaired, or reversed (issue #1402). The awk pass only rewrote content already between the markers, so a file with neither marker, only one of the pair, or more than one of either, was copied through unchanged — regeneration was a no-op and--checkexited 0 even though the ToC region was gone, the one case.github/workflows/toc.ymlcould not catch. A file with exactly one of each but withtoc:endappearing beforetoc:startwas worse: the awk pass would read past the reversed end marker looking for one that came after the start marker, silently discarding every line in between. Each target file is now checked for exactly one correctly ordered marker pair before rendering, in both the plain and--checkinvocations, matchingrender-config-table.sh’s existing precedent of hard-failing on a malformed region. -
A review-feedback item whose blocking review has already been answered no longer burns a full Implementer/Reviewer/Approver round (issue #1360).
lib/work-gone.sh’s PR-shaped clearance only asked whether apr-<n>-review-<id>item’s pull request was closed or merged, never whether the specific review the ref names was still the reviewer’s standing position — so once aCHANGES_REQUESTEDreview was answered and superseded by anAPPROVEDfrom the same reviewer (bot or human), the pull request stayed open throughout and that clearance never fired, leaving a stale ref dispatchable for as long as a non-selected node kept replaying its own last-cachedreview_feedbackband (requirement 48’sexpensive-gathercache is refreshed for only one repository per cycle, per node).lib/preflight.sh’s newpreflight_review_feedback_reasonadds a third pre-flight done-signal, scoped toreview-feedbackclaims alone: one live re-check of the pull request’s reviews, recomputing “the review currently blocking” exactly asscripts/gather-review-feedback.shalready does when deciding whether to offer the candidate at all, run immediately before the Implementer engagement it would otherwise waste. -
digest-truncated’s live GitHub search no longer false-positives on a digest that is merely a few minutes old (issue #1348). The invariant (pager_eval_digest_truncated,lib/pager-invariants.sh) compared each repo’s most recentsource-state-digestevent against a freshly fetched, unbounded “right now”gh api search/issuestotal, even though the digest event’s owntswas already available — so a repository that creates issues/PRs quickly enough between the digest’s capture and the invariant’s next evaluation (this pipeline’s own traffic, several per cycle) always read as truncated, vetoing that cycle’s work-gone clearances for no real reason. The live query now carries acreated:<=<ts>qualifier bound to the matched digest event’s ownts, so it only ever compares like for like. -
A fractional
approver_unreviewed_engage_after_hoursorapprover_restale_escalate_after_hoursno longer silently disables requirement 46’s sweep and thepr-unreviewedpager invariant (issue #1353). Both keys are schema-legalnumbers, but every cutoff derived from one was computed with GNU date’s relative parser (date -u -d "${hours} hours ago"), which rejects a fractional value like1.5outright —lib/approver.sh’s_approver_restale_sweep_repo(three sites: stale-review escalate, unreviewed-engage, unreviewed-escalate) andlib/pager-invariants.sh’s_pager_ready_pr_candidateseach failed safe to an empty cutoff and quietly never fired, with no warning logged anywhere — so one schema-legal config value could disable the watchdog and the invariant that watches it at once. All four sites now compute the cutoff with jq arithmetic (now - hours*3600 | strftime(...)), which honours the schema’s declarednumbertype instead of narrowing it and produces the identical%Y-%m-%dT%H:%M:%SZUTC string every downstream comparison already expects. -
The same four cutoff guards now log a warning when the computed cutoff comes out empty, instead of failing silently (issue #1366, following on from #1353/#1365 above). Narrowing the trigger to schema-illegal values did not remove “no warning logged anywhere”: a jq failure for any other reason — a non-numeric value reaching
tonumber, or a schema-legal but extreme one overflowingstrftime— still emptied the cutoff and disabled requirement 46’s sweep and thepr-unreviewedpager invariant the same way, with nothing in the cycle log to distinguish it from “nothing to do”.lib/approver.sh’s three sites now calllog_event(its own establishedwarningchannel) andlib/pager-invariants.sh’s_pager_ready_pr_candidatescallspager_log_event, each naming the config key, the raw value that failed to produce a cutoff, and the function it fired from, before falling back to the unchanged continue/return behaviour. -
A
pr-unreviewedcutoff rejected by the invariant’s own numeric-format guard now warns there too, rather than only at the guard downstream of it (issue #1403, following on from #1366 above). #1366’s warning covers the case where the cutoff computation itself fails, and lives in_pager_ready_pr_candidates— butlib/pager-invariants.sh’s_pager_pr_unreviewed_candidates, its only caller, turns a value that is not a plain number away at its own upstream guard, and returned silently when it did. It now logs the identical warning shape itself at that guard, naming the config key, the raw value and its own function name, before falling back to the unchangedreturn 0. Note that this states the function’s contract rather than closing a live silence: the pipeline’s own evaluation site,scripts/publish-dashboard.sh, already substitutes the schema default (2) for anapprover_unreviewed_engage_after_hoursfailing that same regex before the pager ever sees it — which is its own, separate silence, filed as issue #1416. -
Two hand-flag gather scripts no longer read a garbage
labelled_atoff a timeline past one page (issue #1000, TD-PPagop-26082701).gh api --paginate --jqre-runs its filter once per page and prints each page’s own result as its own document (TD-PPagop-26081306);gather-unvoid- requests.shandgather-hand-flagged-refinements.shstill took their “latest labeled event” aggregate inside the filter, so an issue whose timeline runs past thirty events with the label applied, removed and re-applied across a page boundary resolved to a multi-line, unparseable stamp rather than the single ISO-8601 one downstream code compares against block and cycle timestamps to decide whether a request is fresh enough to act on. Both now stream one stamp (or{at, by}object) per line across every page and pick the latest outside the filter —sort | tail -1/jq -s 'sort_by(.at) | last'— the same fixlib/candidate-gather.sh’s own timeline read already applied (PR #823). -
deploy/docker/Dockerfilepins theclaude-codeCLI install instead of floating onlatest(issue #968, TD-PPagop-26082412). The image already pinned and checksum-verifiedsupercronicandshellcheck— binaries with no package-manager-provided integrity check — but installed@anthropic-ai/claude-codeviaARG CLAUDE_CODE_VERSION=latest, on the reasoning that CI rebuilds the image on every merge. That left two builds of the same commit, days apart, able to produce different images if Anthropic published a new release in between, andclaude-codeis the dependency with the deepest reach on a node — the same tool/token access the pipeline itself has — so a bad release would have reached every subsequently-built node with no local pin to fall back to. TheARGnow pins a specific version (2.1.267), bumped deliberately in its own PR. The OS-package layer below it (jq,curl,python3,perl,git, …) is left floating on Ubuntu’s own apt repository by design — documented in a comment besideFROM ubuntu:24.04— since it carries none of supercronic/shellcheck’s risk and a floating layer picks up security updates within a rebuild cycle rather than sitting stale behind a pin. -
The cgroupfs reboot hook no longer leaves a cgroup path Docker can poison (issue #1347). On
ockham-container, an unclean restart left the node unable to start any memory-limited container — including sidecars with nocgroup_parent— withruncreportingopenat2 /sys/fs/cgroup/docker/<id>/memory.max: no such file or directory.Two faults composed.
scripts/cgroup-parent-setup.sh’s@reboothook ranmkdirand then redirected intomemory.high, but at boot thememorycontroller is not yet delegated in the root’scgroup.subtree_control, so the interface files do not exist and cgroupfs will not let a redirect create them: the hook half-succeeded silently, leaving a controller-less cgroup.compose.yamlthen bind-mounted those paths, and Docker creates a missing bind source as a directory — inside the cgroup filesystem a directory is a cgroup, somemory.highbecame one, occupying the name the controller needs. #1316 had extended the hook to writememory.maxandmemory.swap.maxtoo, so a failed boot could poison four paths rather than one.The script now delegates
memorydown every ancestor of the parent before writing anything, removes any interface path it finds existing as a directory (announcing the repair), and — the invariant that makes this recoverable — removes the parent it created if it cannot finish, so there is no bare directory left for Docker to mount over. A parent that already existed is never removed, since it may hold containers. The reboot persistence is now a generated script rewritten on each run rather than an inline&&chain, and installing it replaces any earlier entry for the same parent, so the old form does not survive an upgrade.The systemd path was never affected:
poetic-1andpoetic-2came through the same period untouched, because systemd creates the slice with controllers already delegated andBefore=docker.serviceholds the directory open from boot. The parent-cgroup design is sound; the cgroupfs boot hook was the weak part. -
The forge authoring App’s token is now minted on demand, not once per cycle (issue #1021, TD-PPagop-26082833).
lib/standdown.shused to resolve the App’s installation token once, at stand-down, and export it asGH_TOKENfor the rest of the cycle’s process — but the token carries GitHub’s ~1 h lifetime, and a cycle routinely outlives that (the Implementer alone budgets 150 minutes), so a long-running stage’sgit push/gh pr createcould present an expired credential after all its work was already paid for.lib/gh-shim.sh’sghtransport shim now mints (or reuses a cached token) immediately before everyghcall, and the same shim, reached throughgit’s own credential helper (deploy/docker/entrypoint.sh), does the same for plaingit— both minting only whenGH_TOKENis already empty, so an explicit token (a human’s own, or the Approver’s) always passes through untouched. -
The livelock band between a parent cgroup’s
memory.highand an unboundedmemory.maxno longer has no escape (issue #1305, following #1296). A parent ceiling that only setsmemory.high, withmemory.maxleft atmax, throttles the whole hierarchy without ever disengaging: the cgroup sits above the soft ceiling and below both cgroups’ hard ones, nothing anywhere reclaims past or kills, and every allocating task parks in uninterruptibleDstate.ockham-containerwedged 75 minutes in exactly this band on 2026-09-09 — 2,788,595 throttle events climbing at ~96/second,docker execitself hanging — whiledoctor.sh’sparentedverdict reported it[ ok ]throughout.scripts/cgroup-parent-setup.shnow also sets the parent’smemory.max(--max, default1536m, the sum of what runs under it) andmemory.swap.max(--swap, default0— the same incident took 100% of host swap on a memory-capped VM), and--checkexits 2 for a parent whosememory.highis set but whosememory.maxis not. Two new read-only mounts (AGENT_OPS_SCHEDULER_CGROUP_MAX,AGENT_OPS_SCHEDULER_CGROUP_EVENTS) letlib/memory.sh’smemory_cgroup_verdicttell a closed band (parented) apart from an open one (livelocked) or an unmeasured one (unconfirmed, never guessed asparented), and letdoctor.shwarn on a rising delta in the parent’s ownmemory.eventshighcounter — a signal that fires even on alivelockedorunconfirmednode, since it needs no ceiling correctly configured first. Separately,scripts/lint-shell.sh’s memory budget now reads the parent cgroup window too and costs every file’s estimatedshellcheck -xmemory against it, not only files above a fixed line-count threshold. A line count picked to isolate one file says nothing about what a node can afford:scripts/doctor.sh’s 9,367-line union sat under the old 10,000-line gate and so followed its sources unconditionally, at an estimated 772 MiB against the 768 MiB a parented node actually has — a ceiling its own container-only budget reading never saw. On such a nodeagent-cycle.sh,scripts/publish-dashboard.shandscripts/doctor.share now skipped rather than linted, which is the announced trade: CI has the memory and still checks all three in full.scripts/publish-dashboard-launcher.sh’s pacing backoff is now clamped to what its window has left, so a tick costing minutes rather than seconds — this incident’s own symptom of the wedge — cannot compute or log a backoff of hours. -
state-sync.shnow redacts tokens and home paths before pushing state (issue #966): its push committedlog.jsonl,review-log.jsonl, cron logs, and cycle/review transcripts to the private state-mirror repository — deliberately never rotated — with no redaction pass, even thoughpublish-dashboard.shalready strips token-shaped strings and home-directory paths from its own (lower-risk) published payload as defence-in-depth. The pattern set is now shared (lib/redact.sh) and applied to every file the push stages before it commits. -
A scheduler’s memory ceiling now survives being recreated (TD-PPagop-26090401, following issue #1266).
memory.high— the soft ceiling that has the kernel reclaim a ratcheting cgroup instead of OOM-killing whatever stage reaches the hard limit — was previously written onto the container itself by an operator recipe, and everydocker compose up -d, watchtower roll and reboot wiped it. Measured across this fleet on 2026-09-08, after the recipe was applied by hand to all four schedulers: three had lost it again within 90 minutes to ordinary rolls, and one had hit its hard ceiling 23,995 times in the 92 minutes since being recreated. The register item filed against this in September predicted it; what was new was the half-life — and, on asystemd-driver host, that “until the next recreation” was itself optimistic: anysystemctl daemon-reloaderases a container-levelmemory.highon a live container, nothing recreated and nothing restarted, because systemd re-applies the properties a unit declares and adocker-<id>.scopedeclares noMemoryHigh. A package upgrade touching any unit on the host is enough.The ceiling now goes on the scheduler’s parent cgroup, selected with Compose’s
cgroup_parent, because the parent is not what gets recreated.scripts/cgroup-parent-setup.shcreates it and prints the two.envlines that put it to use —AGENT_OPS_SCHEDULER_CGROUP_PARENTandAGENT_OPS_SCHEDULER_CGROUP_HIGH. Both are unset by default and both are genuinely inert unset: Compose renders nocgroup_parentkey at all, and the parent window mounts/dev/null, so a node that has not opted in behaves exactly as before. Under thesystemddriver the parent is a slice unit, so systemd re-appliesMemoryHigh=on every start and reboots are covered — and, because a slice unit does declare the property, adaemon-reloadre-asserts the ceiling rather than clearing it, the same mechanism read the other way round; undercgroupfsthe directory survives recreation but not a reboot, so the script installs a boot hook — a unit where systemd is PID 1, a root@rebootcrontab entry where it is not, which on the ockham node it is not.Nothing here is a hardcoded path, which is the lesson #1266 paid for. The driver comes from
docker info; the slice path is derived from systemd’s own naming rule and cross-checked againstsystemctl show, because systemd reads-in a slice name as a hierarchy separator and so putsagentops-1.sliceunderagentops.slice— one level deeper than its name suggests, and the same class of wrong assumption as #1266’s, one layer up.doctor.sh’s “container memory” line changes with it. A ceiling on the parent is the newparentedverdict and reads[ ok ]; a ceiling on the container itself still readsboundedbut now warns, naming itself as something the next roll will wipe — a state that is correct today and gone tomorrow should not report as healthy. The parent’s ceiling cannot be inferred from inside a cgroup namespace (verified on the poetic node: a container held to 64 MiB by its parent read its ownmemory.highasmaxand its ownmemory.eventshighas0while the parent counted 250 reclaim events), so it is bind-mounted read-only as a single file — a measurement rather than an inference, and narrower than giving the egress-fenced scheduler a view of the host’s whole cgroup tree. -
The
memory.highoperator recipe now works on a host whose Docker uses thesystemdcgroup driver (issue #1266). The recipe indeploy/docker/compose.yaml’sscheduler:block — the documented remedy for a scheduler cgroup that ratchets page cache to its hard ceiling and is then OOM-killed — hardcoded/sys/fs/cgroup/docker/<id>/memory.high, the path Docker’scgroupfsdriver uses. The poetic host runs thesystemddriver, where the cgroup is/sys/fs/cgroup/system.slice/docker-<id>.scopeinstead, so the recipe failed there withNo such file or directory, wrote nothing, and left both schedulers unbounded — which is what was killing every Implementer stage onpoetic-1with exit 137. The recipe now derives the cgroup from/proc/<pid>/cgrouprather than assuming a layout, which resolves correctly under either driver (verified on both this fleet’scgroupfsandsystemdhosts), and the comment states the difference and how to tell which driver a host is on. Detection is unaffected:lib/memory.shreads the container’s own/sys/fs/cgroup, which is the same path inside the container under either driver. -
dashboard/index.html’skv()helper no longer builds markup by string-concatenating intoinnerHTML(issue #965, TD-PPagop-26082409): itsesc()helper performed no HTML-entity escaping despite its name, andkv()trusted it to escape a value (g.model,g.terminal_reason, …) before splicing it into aninnerHTMLstring. No live XSS existed — every value passed through it today is pipeline-internal — but the broken abstraction invited a future stored-XSS regression the moment a call site trustedesc()’s name with attacker-influenced content.kv()now builds its<span class="kv">viael()-based DOM construction (a<b>element with atext:child) instead ofinnerHTML, and the tech-debt/security- findings count-summary site now renders viatext:instead ofhtml:(it never actually carried markup). Nohtml:attribute use remains indashboard/index.html. -
review-cycle.sh’s five pre-lock stand-down sites now suppress their node-state transition against a live peer review run, not just a live implementation cycle (issue #1275). An operator config change (--disable, orproject_review.defaults.not_before) landing while a peerreview-cycle.shwas mid-Reviewer let the next tick’s terminaldown/idle-without-demandtransition overwrite that live run’s ownproducingon the shared per-node timeline —suppress_node_state_if_peer_owns_nodeprobed onlylock.json(a liveagent-cycle.sh), neverreview-lock.json. It now also probesreview-lock.jsonfor a live peer pid, on the same “err toward not-running” terms as the existing probe. -
Recent cycles no longer reads as an idle fleet when the Publisher could not render it (the 2026-08-29 blackout). Every dashboard in the fleet reported “No substantive cycles in the fleet window” for ten days while all four nodes worked normally.
scripts/publish-revert-rate.shemits its post-merge-revertreworkrows withcycle: nullby design (they are mined outside any cycle); the detail window grouped the fleet’s event union by.cyclewithout filtering those out, and a null group makes jq build{(null): …}, which is a fatal error rather than a null row. Because that one program renders every cycle in the window, the first such row cost the whole panel, and the per-cycle cache then drained as the window slid over cycles that were never rendered.scripts/publish-dashboard.shnow filters cycle-less events before the group, as the file’s three othergroup_by(.cycle)readers already did.The ten days are the other half of the fix. That jq’s stderr went to
/dev/null, the guard’s only action was to leave the cache alone, and the publish then reported a successful write — so a page saying the fleet had done nothing was the sole evidence, and it was indistinguishable from a fleet that had. A failed render now writes jq’s reason to the Publisher’s log, carriescycle_render: {ok, error}inDASHBOARD_DATA, and withholds the state fingerprint so the next tick rebuilds instead of skipping;dashboard/index.htmlrenders that verdict as a red banner naming the Publisher’s own failure, which outranks every other empty-state message. The publish itself still completes — one broken panel must not cost the other twenty. -
The Implementer no longer risks losing its own test evidence to the Bash tool’s 10-minute ceiling (issue #962, extending agent-ops#734’s Reviewer- side fix). Requirement 24’s “Verify like CI does” step runs the identical 140-odd-file
test/*.test.shsuite as the Reviewer, through the identicalscripts/run-tests.sh, under the identical one-shot, no-resumption constraint (requirement 21), whenever the repo under work is agent-ops itself — so a single unbatched invocation risked the same silent loss of test evidence #734 fixed for the Reviewer, and nothing in the Implementer’s own prompt or the spec said so.prompts/implementer.md’s “Long-running commands” section now documents the ceiling in the same termsprompts/reviewer.mdalready does, and step 4 now directs the Implementer to list this repo’s own suite viascripts/run-tests.sh --listand batch it into groups sized to clear the ceiling, instead of one unbatched call or a hand-rolled loop — the same discipline requirement 29a already requires of the Reviewer.docs/IMPLEMENTATION-PIPELINE-SPEC.mdgains requirement 24c, mirroring 29a. No change toprompts/reviewer.md, requirement 29a, orscripts/run-tests.shitself. -
The PAT-expiry warning no longer implies classic tokens are exempt from it (issue #1233).
lib/token-expiry.shand its callers described theGitHub-Authentication-Token-Expirationresponse header as absent for “a classic PAT” alongside an installation token — false: GitHub sends the header for any personal access token, classic or fine-grained, that has an expiry set, and has done since the header was introduced for classic PATs in 2021. The mechanism itself never gated on token type and needed no code change; only the wrong claim, and the “fine-grained” label the warning’s own user-facing text and comments carried, are corrected — this node’s PAT expires in N day(s) atscripts/doctor.sh’s warn/ok lines andagent-cycle.sh’s escalation issue heading, and README.md’s own description. Matters now rather than eventually: #912 moves every node’sGH_TOKENto a classic PAT, and a reader of the old wording would have concluded the warning goes dark at that cutover and needed a manual stand-in — it does not, and never did. -
Both by-number callers of
landing_protected_paths_hitnow fail closed on an exit code outside its documented contract (issue #1232). That classifier’s contract is exits 0/1/2/3, but its two callers that branch on the number defaulted the other way — toward a pass — for anything else (e.g.128+n, the command substitution’s own subshell being signal-killed mid-gate).landing_eligible(lib/landing.sh) handled 0, 2 and 3 explicitly and then fell through toeligible, which is right for the legitimate 1 and a silent pass for everything unrecognised;lib/approver.sh’s protected-path-forces-Critical check enumerated== 0 || == 2 || == 3, so an unrecognised code skipped the forced critical tier — the same fail-open shape pointing at the cheaper tier. Each call site now names only the legitimate exit 1 (no protected path touched) as its explicit exemption and routes every other code to the fail-closed side:landing_eligiblereturnsunknown:naming the out-of-contract code, and the Approver forces the critical tier. Nothing changes for the documented codes 0, 1, 2 and 3, andlanding_protected_paths_hit’s own contract is untouched; the fix is to the default arm alone, on the gatelib/landing.sh’s own header calls the deadliest landing class. -
landing_eligible’sunknown:diagnostic now names which oflanding_protected_paths_hit’s two refusal causes actually fired (issue #961).landing_protected_paths_hit(lib/landing.sh) returned a single exit 2 for both an unreadable or truncated changed-file list and — since TD-PPagop-26082320 — amerge_autonomy_protected_pathsentry it cannot evaluate against a changed path at all, andlanding_eligibleprinted the same “could not establish …’s changed-file list” wording for either, so a malformed protected-paths override sent whoever debugged it toghand pagination rather than to their ownconfig.json(agent-ops#718 held D18 arming shut for five days on exactly this wording, for the changed-file-list cause). The unevaluable-list cause is now its own exit 3, andlanding_eligiblenames the protected-paths list explicitly for it, mirroringscripts/detect-classifier-escapes.sh’s own wording for the same cause.lib/approver.sh’s protected-path-forces-Critical check — the one other caller that branches on this exit code by number rather than through a catch-all — now also treats exit 3 the same fail-closed way it already treated exit 2; the split would otherwise have made a malformed protected-paths list silently skip the critical tier there. Diagnostics only: no change to which pull requestslanding_eligibleadmits or blocks. -
An adjudication
refusenaming a concrete, unanswered defect no longer pages the owner (agent-ops#1214).prompts/approver.mdgives the model three adjudication verdicts —land(resolved),refuse(something real the pull request still gets wrong) andescalate(a genuine judgement call neither side is equipped to settle alone) — butlib/approver.sh’s adjudicatingrefuse)branch escalated unconditionally, so a verdict that explicitly disclaimed escalation paged a human anyway, under anapprover_escalatebody that misstated what the engagement had concluded (“could not resolve the disagreement”). Arefusenow postsREQUEST_CHANGESand returns toreview-feedbacknext cycle like any ordinary refusal, escalating only once it keeps recurring — the third consecutive adjudicationrefuseon the same pull request — and the escalation issue’s body now names which of the three conditions (escalate, an unparseable/failed verdict, or a recurringrefuse) actually triggered it, instead of one fixed sentence for all three. -
An Approver-adjudication escalation issue is now retired when the pipeline itself resolves the disagreement it was raised for (issue #1215). Nothing previously read a
pr-<n>-approver-adjudicationescalation back onceapprover_escalatefiled it, so it stayed open long after the disagreement ended without a human — issue #1202 sat open for eight hours after its own adjudicationlanded and merged, still asking a human to review and merge a pull request that was already merged, until they closed it by hand.approver_escalation_retire(lib/approver.sh) now closes it, logging anapprover-escalation-retiredevent (cause: "land"or"merged"), from either of the two places the disagreement can end without the human:run_approver_stage’s ownlandbranch, once itsAPPROVEactually reaches GitHub, andscripts/sweep-closed-issues.sh’s fleet-wide merged-pull-request listing, for a pull request that merges some other way — a human’s own click, a later automatic landing, or a merge queue resolving after the fact. Neither path touches an escalation somebody reopened after a retirement: a human’s own re-open wins, the same answer every other close this system performs already gives. -
prompts/implementer.mdandprompts/reviewer.mdno longer tell a stage to POST a GitHub App’s login for a review-feedback re-request (agent-ops#959). Both prompts said<login>was “whoever’s review blocks the PR” without saying that GitHub’srequested_reviewersholds only users and teams — so on this installation, wherepullwright-approver-poetic[bot]is the account that submitsCHANGES_REQUESTED, a stage following the instruction literally POSTed a bot login, got a 200, and found it silently absent fromrequested_reviewerson the very next read (PR #713). Both prompts now say<login>must be a human or team account and that there is nothing to POST when the only blocking review is an App’s; requirement 31b indocs/IMPLEMENTATION-PIPELINE-SPEC.mdstates the same consequence explicitly — a blocking App review yieldsnone, neverfailed, andensure_human_reviewerreaches the human instead. No script or library change:lib/handoff.shalready excluded bots from its blocking set (#194/#257). -
The claim loop (
agent-cycle.sh) now stamps the configuredpr_labelonto every claimed work order, alongsidebranch, unconditionally — overriding whatever value the candidate already carried, including none (agent-ops#956). Previously a claimed work order’spr_labelcame only from the Co-Ordinator’s own copy of its runtime input, or fromfallback_select_candidate’s composition on the mechanical-selection path (PR #715): a Co-Ordinator whose model output omitted or mistyped the field raised a pull request no gatherer —gather-review-feedback.sh,gather-abandoned-drafts.sh,gather-merge-conflicts.sh,gather-dequeued.sh,gather-human-visibility-hygiene.sh,scripts/sweep-closed-issues.sh,lib/merge-budget.sh— could ever find again, and requirement 2.2’s back-pressure count silently missed it. The Co-Ordinator’s own copy and the mechanical fallback’s composition are now belt-and-braces rather than load-bearing. -
NUL byte runs in the pipeline’s JSONL logs are now repaired, and what a read still drops is counted rather than silently dropped (agent-ops#794).
scripts/publish-dashboard-launcher.sh‘srepair_log()— which stripped NUL runs fromdashboard.logonly, left by a container killed mid-append — is generalised intofleet_repair_log(lib/fleet.sh) and now also runs once per launcher window onlog.jsonl,review-log.jsonlandrevert-rate.jsonl; a.jsonltarget gets a JSON repair record (log-repaired,dropped_nul_bytes,dropped_lines) rather than the plain-text line everyfromjson? // emptyreader would otherwise silently drop, and the run itself becomes the line break it destroyed — so the record it truncated goes and is counted, the intact record it ran into is recovered, andjq -sreads the whole file again rather than aborting over the splice the NUL bytes’ removal would otherwise leave.agent-cycle.shandreview-cycle.shapply the same repair to their own per-cycle/ per-review.fleet-log.jsonlunion snapshot immediately after building it, since a peer that has not deployed this repair yet can still hand a NUL-holed line to an otherwise-clean node.scripts/publish-dashboard.shnow counts what its own reads oflog.jsonlandrevert-rate.jsonldrop and carries it aslog_repairin the payload; the dashboard folds a non-zero count into the affected panel’s own title. -
scripts/gather-source-state.shnow pages its open-issue and open-PR listings to completion (api_json_paged). A singlegh apicall returns one page, and requirement 34i’s work-gone sweep reads a blocked item’s absence from these two lists as “the work is closed” — so on a repository holding more open issues than one page carries (agent-ops passed 100 open issues in early September), every issue past the first page read as closed, and the sweep cleared real blocks the moment they formed. This is what falsely unblocked #874 on 2026-09-04T14:13Z — returning the phantom-refined item to the Co-Ordinator’s pool and handing the fleet-wide stand-down its trigger — and what cleared the hand-appliedneeds-refinementblocks on #874/#877/#878 eleven seconds after they formed later the same day, defeating the one human lever for routing an item back to the Refiner. A page that fails mid-walk fails the whole sample intook: false(deciding nothing), and no output at all is a failed sample rather than an empty digest, so the fail-safe direction is unchanged. The test suite’s stubghnow emulates GitHub’s real page semantics — one page without--paginate, every page with it — so a gatherer that forgets to paginate loses data in the suite exactly as it does against GitHub, instead of passing by stub accident. The workflow-runs window deliberately stays a single page; nothing reads absence from it. -
refinements_mapanddecisions_map(lib/cycle-state.sh) now skip a phantomitem-refinedevent —comment_urlpresent but naming no comment, the pre-TD-PPagop-26082819 shape — on the samerefinement_comment_url_validtermsenabler_eligible_itemsalready applied. PR #950 fixed the recording seam and the thrash-guard’srefined_beforederivation but left these two extracts trusting the raw event, so a phantom already on the union log split the pipeline against itself: the map said the item was refined (the Co-Ordinator kept proposing it,refiner_candidate_itemskept excluding it from a fresh specification), while requirement 17f’s traceability gate could never resolve the recorded URL — every claim faulteduntraceable, and once Co-Ordinator variance answered “nothing to do”, the no-op fingerprint (whose refinements projection the phantom sat inside, unchanging) held the whole fleet in stand-down indefinitely. That is exactly how #874’s 2026-08-28 phantom idled all four nodes from 2026-09-04T17:15Z: cycles ran, every one stood down, and nothing on the log’s own terms could repair it. With the skip, the phantom items read unrefined (the Refiner owes them a genuine specification), the traceability gate has nothing unresolvable to fault, the dropped entries change the fingerprint’s refinements projection so the fix itself wakes the fleet, and a phantom never supersedes a pending tactical decision. Requirement 3h states the rule; requirement 35a now names all three reading seams. -
deploy/docker/compose.yaml‘s schedulermem_limitcomment claimed the 1.5 GiB ceiling was “~5x the observed peak”. It is not. That 2026-08-24 figure wasdocker stats’, which reportsmemory.currentminusinactive_fileand so excludes most of the page cache the cgroup actually holds, whilemem_limitbounds the total. Re-measured 2026-09-04 againstmemory.currentitself across live cycles, the two schedulers peaked at 1423 MiB and 1326 MiB against the 1536 MiB ceiling — 7% and 14% below it, or ~1.05x rather than ~5x. The comment now states the meter alongside the measurement, and records that the OOM-kill exchange it describes does not actually happen on a host wheredocker infowarns “No swap limit support”:memory.swap.maxstaysmaxthere, so a container over its ceiling swaps instead of dying, which on a memory-capped VM is what freezes the host. -
A GitHub API budget dashboard card (issue #1090), the first section on the page: the latest readable rate-limit reading (core/graphql used, remaining, reset countdown), a trailing-24h per-hour table of peak core usage alongside refusal and requirement-2.0 stand-down counts, and two badges — about to bind (the latest reading is below its configured floor) and meter gone quiet (no readable reading in the last two cycle intervals) — answering whether the shared rate-limit bucket is about to bind before the first
guard-degradedrefusal, not after. Folded entirely from the fleet’s existinggithub-budgetlog events (requirement 2.0d); the publish tick spends no newghcall for it. -
Four of the hottest per-pull-request and per-repository GitHub reads move from the REST
corepool onto the idlegraphqlpool (agent-ops#1085):lib/handoff.sh’s review/reviewer/author/pending-review-request reads collapse onto one shared GraphQL query;lib/candidate-gather.sh’s per-repository default-branch/tip-commit poll becomes one GraphQL call per repository;scripts/gather-human-visibility-hygiene.sh’scould_not_read_reviewsre-check folds into its own existing GraphQL read, now that both share the same surface; andlib/issue-prefetch.shgainsissue_prefetch_open_issues, a paginated GraphQL walk replacingscripts/gather-issues.sh’s andscripts/gather-tech-debt.sh’s REST issue listing plus one REST call per surviving issue for its comments — which, as a side effect, also fixes those two gatherers silently missing every open issue past their REST listing’s own uncontrolled first 100-issue page. Each new query validates against GitHub’s live schema via the existingscripts/check-graphql-drift.sh, discovered automatically with no workflow changes. -
A
ghtransport shim, installed onPATHahead of the real binary (requirement 2.0e, agent-ops#1084), so everyghcall — this repository’s own scripts and a model-driven stage’s baregh …alike — passes through it. A plaingh apiGET is conditioned on a storedETagand served from cache on a304, which GitHub’s own guidance says does not count against the primary rate limit; a primary-limit403or a5xx, with a fresh-enough cached body, is served last-known-good with aPW_GH_CACHE=stalemarker; a successful write invalidates the cache entries its own path feeds. Writes,graphql,--input, a caller already reading its own headers, and a--paginate/--slurpread are always passed through unmodified — the last of those because-ichanges the shape of the documentghprints for a paginated call rather than merely prepending headers to it, though such a read is still stored and still served last-known-good. Every call is ledgered (state_dir/gh-shim/ledger.ndjson) and a cacheable GET’s ratelimit headers update a per-identitybudget.json;scripts/github-budget-report.shsums the ledger by cache outcome andscripts/rotate-logs.shbounds its size. -
New
min_prs_between_reviewsskip-guard for the review pipeline (agent-ops#1079), analogous to the existingmin_days_between_reviews: a repository whose default branch has had fewer than this many pull requests merged since its last review is skipped this run, independent of the day-count guard (a review needs both enough elapsed days and enough merged PRs). Configurable atproject_review.defaults.min_prs_between_reviewsand per-repository asproject_review.repos[].min_prs_between_reviews; absent everywhere, a code-level default of5applies, the same patternreport_directoryalready uses.review-cycle.sh’sskip_reason()gains amin_prsparameter and amerged_pr_count_sincehelper, fail-open to “proceed” on anyghread it can’t verify, and only evaluated once a repository has a most-recent review date to count PRs since. -
Expensive per-repository gather — issue threads with comments, the tech-debt register, PR review reads, merge-conflict/dequeued/register- hygiene walks — runs for one configured repository per cycle, not every one of them (requirement 48, agent-ops#1086):
lib/expensive-gather- cache.shpicks whichever configured repository this node has gone longest without reading and caches its raw gather understate_dir, so every other repository reuses its own last read (with this cycle’s claim exclusion andsourcesgating re-applied fresh) instead of paying another full GitHub read. Every repository entry gainsexpensive_gather: {fresh, gathered_at};prompts/coordinator.mdrequires a live re-check before selecting from a non-fresh entry, and requirement 34j’s dependency release reads only the repositories this cycle actually gathered, so no block is cleared on a replayed band’s stale proof. Cheap fleet-wide probes (repo ordering,gather_source_state, label-ensure, unvoid/hand-flagged-refinement scans) are unaffected and still run for every configured repository every cycle.scripts/github-budget-report.shgains aper_cyclebreakdown (core/ graphql spend per cycle, node named) to measure the reduction. -
The GitHub API budget is recorded (requirement 2.0d, agent-ops#1087): a
github-budgetevent at cycle start, after every model stage and at cycle end carries both pools’limit/used/remaining/resetandsince_previous, the bucket’s movement since the process’s last reading, read from thex-ratelimit-*headers of one meteredGET /metaand the GraphQLrateLimitobject (github_budget_record,lib/github-limit.sh). Newscripts/github-budget-report.shsums the events across the fleet’s logs — per hour (peak used, minimum remaining, refusals, budget stand-downs), per stage (the bucket’s movement during the stage) and per node — as Markdown plus a JSON block. This is the measurement D25 names as the trigger for a per-node authoring App: while every node authenticates as one user the movement is the bucket’s, an upper bound on any one segment’s own spend. -
The expensive per-repository gather’s rotation (requirement 48, agent-ops#1086) is offset per node (agent-ops#1106): a tie among a node’s own candidates — most often every configured repository uncached — now breaks on
_expensive_gather_node_offset, a stable hash ofnode_namereduced modulo the repository count, instead of slug ascending. Without this every node ties the same way and reads the same repository fresh in the same cycles, leaving every other one unread for the nextrepositories-1 cycles; with it, nodes whose names hash to different offsets read different repositories in the same interval. A hash spreads a fleet without coordination but does not make it cover: node names that collide on an offset stay aligned with each other, and a repository whose offset no node holds is still read by none of them that interval. Assigning offsets so that they cover is fleet coordination (agent-ops#1092), not this change. -
escalation_autonomygains a third rung,decide-tactical(agent-ops#936): one bounded Enabler decide pass (prompts/enabler-decide.md) runs before anyescalateverdict is filed as a human escalation — not only a refinement disagreement,adjudicate-first’s own narrower scope — reachingsettle(nothing needed deciding),decide(a tactical trade-off the pipeline may answer on its own authority, posted as a comment where the item is a GitHub issue and logged asdecision-taken), orescalate(still a human’s call). What counts as tactical versus owner-only is a single, exhaustive nine-point boundary (requirement 36a’s own “The owner-only boundary” indocs/IMPLEMENTATION-PIPELINE-SPEC.md), referenced rather than restated byprompts/enabler-decide.md,prompts/enabler.mdandprompts/refiner.md. Bounded per distinct reason rather than once per item, capped by the newescalation_adjudication_max_passes(default3). Bothadjudicate-first’s anddecide-tactical’s passes now run at the newenabler_model_critical(falling back toenabler_model), the Enabler’s first critical tier. Poetic’s ownconfig.jsonopts in:escalation_autonomy: "decide-tactical",enabler_model_critical: "claude-fable-5". Adecideverdict on a non-issue item that already carried a refinement now reaches the next Refiner engagement rather than being lost: theitem-refinedthis path re-records to preserverefinements_mapis markedunchanged: true,decisions_map(lib/cycle-state.sh) no longer reads that marked re-record as having carried the decision forward, andrefiner_candidate_items(lib/refinement.sh) offers such an item as a full candidate for as long as its decision stays pending (agent-ops#1049). -
Per-owner Approver App installation resolution (agent-ops#913):
PULLWRIGHT_APPROVER_INSTALLATION_IDS, a JSON object mapping repository owner to installation id, so a fleet whoserepos[]span more than one GitHub owner mints the right installation token for each — a scalarPULLWRIGHT_APPROVER_INSTALLATION_IDalone could no longer do this oncerepos[]spans two accounts. Falls back to that scalar for an owner the map does not name; a single-owner fleet needs no configuration change.scripts/doctor.sh’s Approver installation-permissions and repository-selection checks now run once per distinct installation and name the owner in every verdict, and fail naming the owner and both variables when a configured repository’s owner resolves to neither — fromagent-approvesupward only (agent-ops#1060): a repository atmerge_autonomy: humannever mints an Approver token, so it is skipped before its owner is even resolved, costing neither afailfor an installation nothing will use nor a live GitHub read on one. Resolution is fail-closed on a malformed map value and on an empty repository slug — neither falls back to the fleet-wide scalar, which in a multi-owner fleet would mint one owner’s installation token for another owner’s repository — and an installationpermissionspayload doctor cannot compare at all is reported as unreadable rather than as the exact-match all-clear (agent-ops#575). -
New
scripts/migrate-tech-debt-register.sh(agent-ops#880), a reusable per-repo migration script that closes the gap agent-ops#875 above deliberately accepted: for everystatus: open/status: in-progresstech-debt/<id>.mdrecord in a checkout, it creates apw::type:tech-debt-labelled GitHub issue carrying the record’s title and body, then appends aMigrated to <issue url>.line to the record’s body —status:untouched, sotd-check.pland the append-only open-item-body rule both still pass. Idempotent: a record already carrying aMigrated toline is left alone, so re-running it against a checkout that already reflects a prior run is a no-op. Run once against this repository’s own register: every open record now has its issue, and the 44 stale reservation-onlytd/<id>branches (a singlechore(tech-debt): reservecommit, no filed record, no pull request) that had accumulated on origin were released. -
The Approver’s and the Enabler’s
file_debt/file_issueverdicts gain two fields,default_fixandowner_decision(agent-ops#938):default_fixnames the option the filer would take when the body enumerates more than one way to fix it, andowner_decision: truereserves the choice under requirement 36a’s owner-only boundary instead.lib/tech-debt-file.shwrites either into the filed body as a## Default: <fix>heading (## Default: not stated, logged as a warning, when a filing enumerates options and sets neither), plus anOwner decision: yesline beside it in a tech-debt record or the newpw::owner-decisionlabel on a filed issue. The Refiner now specifies to a stated default instead of declining withneeds-refinementmerely because alternatives exist, escalating only a genuine owner-only marker or an unmarked, operator-visible fork — closing the pattern behind four 2026-08-28 decision escalations that each took three Co-Ordinator cycles and an Enabler engagement to confirm a default the filing itself had already argued for. -
A nightly check now asks GitHub whether the GraphQL documents this repository sends still mean anything to its schema (TD-PPagop-26082930).
scripts/check-graphql-drift.shdiscovers every document by walking the tree for-f query='at an argv token boundary, wraps each operation’s selection set in... @skip(if:true) { … }— GraphQL validates a document in full before executing any of it, so every field is checked while nothing is collected, which is what lets theenqueuePullRequestandsetIssueFieldValuemutations be validated without being run — and posts it as a{query, variables}body, which has no reserved key for a document’s own$queryvariable to collide with. It fails on anything GitHub no longer recognises, and equally on anything it could not check: no document found, a document that opens and never closes, a document whose shape it cannot read, or a file that callsapi graphqland yields no document at all — the last being how a call site written in a different but equally idiomatic form would otherwise stay invisible to the check meant to cover it. Drift and “could not check” are separate verdicts and the second wins, so a run never claims a survey it did not finish..github/workflows/graphql-drift.ymlruns it daily, deliberately off the pull-request path: the failure it catches arrives without a commit, as it did when GitHub movedmergeMethodandmergingStrategyoffMergeQueueand took every autonomous landing down with them for six days while the suite stayed green (#953). A red run reaches the pipeline as afailed-run-graphql-driftcandidate only while it is still inside the unpaginated 100-run page the Co-Ordinator reads — about seven hours on this repository, measured — which TD-PPagop-26082936 records. -
The update mechanism’s own verdict now leaves the updater (agent-ops#603):
deploy/docker/watchtower-pre-update.shrecords every invocation, one line per poll, to a durable ledger understate_dir(updater-ledger/ <hostname>.jsonl, keyed by the container’s own$HOSTNAMEand tagged with its compose service, excluded from state-sync replication like.image-drift-cache.json), and a newlib/updater-health.shreads it back asrolled(the ordinary case, no badge — scoped to the reading container’s own service, so a stuck sibling of a different service sharing this ledger cannot masquerade as evidence of a healthy roll),deferring(grey, resolves itself, bounded by how long any lock the hook honours could still legitimately be held) orstuck(amber, a fault only a human clears — either the container the hook allowed to roll is still the one running, or a defer streak has itself outlasted that same bound). The verdict travels in every node’s heartbeat asupdater, a sibling ofcompose/image/switch/stage_health, and the dashboard’s fleet strip renders it as a third badge beneath compose and image; a peer heartbeat predating the field, or carrying a status this page does not recognise, reads as unknown, never as healthy. Newupdater_stuck_after_minutesconfig key (default 20 minutes), followingimage_behind_grace_hours’ shape: the threshold lives one layer above the library, never as a literal inside it. On 2026-08-14 a node stayed on its previous image through a whole fleet roll while every existing signal on the dashboard still read healthy, because none of them read the update mechanism’s own verdict, only the drift it eventually causes. -
The product-managed
pw::type:tech-debtlabel is now part of thetargetrole’s catalogue (agent-ops#872), so the pipeline creates it in every repository it gathers data for, at most once perlabels_ensure_interval_hours, the same create-only, never-fatal way as every other catalogue entry. It is D15’s (revised 2026-08-28) store for tech debt filed as a GitHub issue rather than an in-repo register record, and its name is fixed rather than configurable because it is D24’s trust anchor: only a collaborator with triage can apply a label, which is what makes an issue’s membership of thetech-debtwork band trustable even though its body stays untrusted data. The issue-backed band itself is agent-ops#875, below. -
A tech-debt filing a human declines no longer leaves its branches behind for good (TD-PPagop-26082310).
scripts/sweep-orphan-branches.shnow sweeps a third prefix,td-record/*— unconditionally, sincetechdebt_file_debtmints a filing’s record branch there whatevertech_debt_branch_prefixsays — and treats it as delete-only, never recovered: where the branch’s own filing pull request was closed without merging, a recovery draft would hand the human back exactly the record they declined, so the sweep deletestd-record/<id>outright (released,reason: "filing-declined") and then, only once it has confirmedtech-debt/<id>.mdnever reached the default branch some other way, releases the pairedtd/<id>reservation too — reserving headroom for both actions up front against the sweep’s per-run cap, so a run one action short of the cap defers the whole pair rather than deleting the record and stranding the reservation release. A merged filing, and one with no pull request at all, are unaffected; the issue #545 exemption that leaves a baretd/<ID>lock alone is unchanged for every reservation with notd-record/sibling.TECH-DEBT.mddocuments the same two-branch cleanup as the by-hand fallback. -
The
tech-debtwork band now selects from open GitHub issues labelledpw::type:tech-debtinstead of the in-repo register (agent-ops#875, D15 as revised #869):scripts/gather-tech-debt.shfetches those issues, sharingscripts/gather-issues.sh’s deterministic exclusions (assigned, labelledblocked, an unresolvedBlocked-by:reference) via newlib/issue-prefetch.sh, andgather-issues.shitself now excludespw::type:tech-debt-labelled issues so the two bands stay disjoint. Between this landing and a repository’s own register migration, that repository’s unmigrated register items are invisible to the band — a low-urgency, deliberately accepted gap the migrations (agent-ops#880 and siblings) close. -
New
project_review.defaults.report_directoryandproject_review.repos[].report_directoryconfig keys (agent-ops#761): a GNUdate(1) format string, resolved withdate -urelative to the repository root, naming where the review pipeline writes its report set and reads past ones from. Absent everywhere, resolution falls back toreviews/project-review-%Y-%m-%d— today’s layout, unchanged — so an installation configuring neither key is unaffected.review-cycle.shresolves this per repository (requirement 342’s rule) and passes it to the Reviewer-Agent asreport_dir; the skip-guard and the implementation pipeline’sproject-reviewRefiner source (gather-project-review.sh, requirement 3y) discover past instances of an arbitrary format string through the same sharedlib/report-directory.sh, rather than the fixed-layout listing either used before. The write path is resolved for the run’s own pinnedreview_date, so the folder, the branch, the claim and the PR title still name the same day when a sequential run crosses midnight UTC; a format string must be day-granular (date-level specifiers and literal text only), because discovery probes one calendar day at a time.Poetic-Poems/agent-ops’s ownproject_review.repos[]entry now setsreport_directorytodocs/reviews/project-review-%Y-%m-%d, matching where #762 already moved its most recent review — without this, the next scheduled review of this repository would have written back into the pre-#762 location. -
Node host hygiene for
.env(agent-ops#696): the deploy runbook (deploy/docker/README.md,deploy/docker/.env.example) now states.envmust bechmod 600, the same protection the Approver App’s private key already gets, and that token rotation must edit.envin place or swap in a0600temp file rather than leave a dated backup beside it.scripts/check-node-compose.shflags, host-side and without touching anything, a.envthat is not0600and any.env.bak*/*.env.oldsibling found beside it. -
The BYO API-key model-credential path (D4’s primary, agent-ops#684) is now documented alongside subscription OAuth (the existing, self-hosted alternative) rather than the deployment covering only the latter:
deploy/docker/.env.example,compose.yamlandREADME.mdnameANTHROPIC_API_KEYas the first-class path, with OAuth’s constraints (interactive login per node; own-use only) stated for the alternative.scripts/doctor.sh’s Claude section now reports on whichever of the two paths a node actually carries — a well-shapedANTHROPIC_API_KEYisokand OAuth is not consulted, a badly-shaped one iswarn, and OAuth status is read (as before) only when no key is present — instead of always reading OAuth status and skipping the other path; the stream-flush probe gates on either credential rather than OAuth alone. No default or running configuration changes:ANTHROPIC_API_KEYis unset unless an operator sets it, same as every other credential incompose.yaml’s environment block. -
A second GitHub App identity, the forge authoring App, distinct from the Pullwright Approver (D25, agent-ops#607): every authoring act — clone, push, comment, open a pull request or issue — runs under its short-lived installation tokens once an owner provisions it (
PULLWRIGHT_AUTHOR_APP_ID/_INSTALLATION_ID/_PRIVATE_KEY_PATHin.env), degrading silently to the node’s ownGH_TOKENwhen unset, unreadable, or a mint fails — never bricking a node.lib/approver-token.sh’s GitHub App token-minting mechanics are generalised into a sharedlib/github-app-token.shcore so the two identities share one implementation;lib/forge-auth.shresolves which credential a cycle authenticates with, ahead of every GitHub call including the startup credential probe.scripts/doctor.shreports the new identity’s presence, key readability and a live mint attempt. Landed with the App’s own values unset — provisioning it is an owner act. -
New
label_prefixconfig key (defaultpw::, agent-ops#840) andlib/labels.sh’slabels_reconcile/labels_reconcile_role: full CRUD — create, reconcile colour/description drift, and delete once no longer catalogued — for any label whose name starts with the prefix, further colons and all. Every label outside that namespace keepslabels_ensure’s own create-only, never-touch treatment, so an operator’s own recolouring is still never undone; empty disables reconciliation and deletion entirely. Deletion is scoped tolabels_reconcile_role’stargetrole, the one catalogue call that is a repository’s complete desired label set;reviewandescalationreconcile drift without ever deleting, since each is a partial subset whose own deletion pass would remove labels the other role still wants. No call site uses either function yet — every call site still goes throughlabels_ensure_role/labels_ensure_stamped, sopw::type:tech-debt, the one catalogue entry that carries the prefix, takes the same create-only path as the rest until a call site is wired across; that migration is recorded as TD-PPagop-26082809. -
An abandoned tech-debt reservation branch is no longer left orphaned for good when its own release attempt fails (TD-PPagop-26082427). A
td/<id>ortd-record/<id>branchlib/tech-debt-file.sh’s_techdebt_unfilecould not delete — the same GitHub API whose failure put it on that path is the same window most likely to fail theDELETEmeant to undo it — now writes a durable marker into the state repository’sreservation-releases/tree instead of only logging and swallowing the failure. Newscripts/release-pending-reservations.shretries every pending marker each cycle (lib/standdown.shstep 2.1g) until the branch is confirmed gone, clearing its own marker once it is. Observed for real on this repository: fourteen consecutive reservations orphaned in a seventy-second window on 2026-08-23, none of which any existing sweep would ever have released. -
New
tech_debt_branch_prefixconfig key (defaulttd/, agent-ops#655): the human tech-debt-claim protocol’s (TECH-DEBT.md) own branch prefix was a bare"td/"literal inlib/claim.sh, the fourgather-*.shsources andsweep-orphan-branches.sh, with no way for an adopting repository that does not follow that convention to change or disable it. All six sites now read the new key instead; left unset, it defaults totd/and behaviour is unchanged. Empty disables the tech-debt namespace, so those scripts then match onlybranch_prefix. -
A trimmed Co-Ordinator candidate’s
acceptanceis now checked against the item’s own live text before it is claimed, not just against its recorded refinement (requirement 17g, issue #821, decided agent-ops#830 option (c)):item_text_fault(lib/candidate-select.sh) re-fetches an issue’s full thread or a tech-debt item’s register file fresh and faults anacceptancebacktick-quoted specific that text does not support — reproducing and closing the #815 incident, where a Co-Ordinator whose input had been trimmed to fit its model’s window invented anacceptancein full, and requirement 17f’s own repair logged the result a success.contextis not checked: the work-order schema requires it to carry the Co-Ordinator’s own framing prose alongside the entry’s verbatim paste, with no marker for where the paste ends, so a check faulting unrecognised paragraphs faulted that mandated framing on ordinary honest work orders (TD-PPagop-26082801 tracks the deferred detection gap against #769). Unlike a missing refinement, anacceptancefabrication fault is never repaired — it is a hard skip, logged with its owncause: "fabricated", distinct fromuntraceable. A trimmed candidate that clears the check is still unconditionally supplied the item’s live text viaitem_text_supply(a no-op once it is already there), so “the live read demonstrably happened, or the Script supplies the full text itself” holds either way. -
Requirement 4i’s
warningevents (both the allowance-exhausted warning and the warning logged when a fit still does not fit at one entry per band) and thecoordinator-input-fittedevent now carry atermsobject breaking the measured overhead down by band —prompt,blocked,refinements,claimed,scaffold— so aprompt_too_longrefusal names which half of the document was actually too big directly off the cycle log, rather than requiring a live shell into the container to re-derive each band by hand (issue #645). -
A
blocked/blocked:needs-refinementpair whose block has cleared now comes off the issue even when nothing in the shared log can prove the pipeline applied it (requirement 38b, agent-ops#816, TD-PPagop-26082602). The existing reconciliation sweep keys on a loggedown-label-action addwith no laterremove, which two real cases never have: a labelscripts/sweep-legacy-refinement-assignees.shapplied, since it runs outside a cycle and has no log of its own to append to, and one whose block cleared before that logging existed at all. Both left the issue excluded byscripts/gather-issues.sh’s deterministicblocked-label filter for good, invisibly — twelve high-priority issues inPoetic-Poems/agent-opswere sitting in exactly that state, cleared by hand on 2026-08-26. Newrefinement_blocked_label_orphaned(lib/refinement.sh) proves the same fact from live GitHub state instead of from history —blocked:<reason>is never a name a human reaches for, so its presence on an open issue with no open block behind it is proof enough on its own.lib/candidate-gather.shruns it once per repo per cycle, ahead of the issue gather, so a freed issue re-enters candidacy the same cycle rather than the next one. A bareblockedwith no reason label beside it is never touched, so a label a human applied for their own reasons is as safe as it was before; the residue that leaves — a legacy-swept issue whose reason label was released successfully, keeping itsblockedfor good — is recorded as TD-PPagop-26082608.Three guards keep that live read from over-acting, all added on PR #823’s own review. The generic
blockedrides along only when the issue’s own block history — a modernattempt-failedevent’sblocked_labelfield, or the absence of one at all — actually says this pipeline put it there; a modern event that recorded findingblockedalready present (a human’s own hand) leaves it alone even though the reason label still comes off. The whole reconciliation is skipped for a cycle whose fleet-wide log looks degraded — an empty union, or a peers directory whose own fetch marker reports failure (lib/fleet.sh’s newfleet_logs_healthy) — rather than reading that silence as proof no block exists. And a label applied too recently for its own block record to plausibly have reached this node yet (withinLABEL_OWN_GRACE_SECONDSofunion_log_horizon, the same tolerance requirement 39f already measures peer label writes with) is deferred to a later cycle rather than stripped. -
A model-tier floor (requirement 1c, issue #822):
lib/model-id.shnow ranks the fleet’s models by capability (claude-haiku-4-5-20251001<claude-sonnet-5<claude-opus-5<claude-fable-5), andscripts/doctor.sh/agent-cycle.shrefuse a configuration whererefiner_modelorenabler_model— the two stages that can author a work order’scontext/acceptancedirectly — ranks belowimplementer_model_default/implementer_model_trivial, or where arefinement_policysource is"required"with norefiner_modelconfigured to ever refine it.refinement_policy’s shipped default now namestech-debtalongsideissuesas"preferred", and this installation’s ownconfig.jsonsets both to"required", closing the gap #815 (fixed by #819) and #821 both traced to a cheaper model authoring a specification for a more capable Implementer. -
scripts/state-sync.sh’s mirror is no longer trusted just because its.git/directory still exists (requirement 2.5, issue #604):mirror_initnow runsgit fsck --connectivity-onlyagainst a mirror that already existed, and on any failure discards it and rebuilds it from source instead of continuing to read from and publish a corrupted checkout — the behaviour observed on ockham-container from 2026-08-08 and ockham-2 on 2026-08-24, where an unclean shutdown left truncated loose objects andgit gcfailed at repair for four days with no visible failure anywhere. A rebuild is recorded durably understate_dirand published as the heartbeat’s newmirrorfield, alongside the existingcompose/image/switchverdicts, so a repeat rebuild reads as a repeat rather than one more indistinguishable line. -
Every escalation route now reaches an operator even when GitHub itself rejects the node’s own credential (requirement 2m, TD-PPagop-26082304): a new optional
escalation_webhook_urlconfig key, POSTed to from insidecreate_escalation_issue(lib/enabler.sh) on every failure to file — most often the same deadGH_TOKENrequirement 2.0b’s auth-failure check has just detected, which previously left the escalation issue itself unable to file,warning-and-retry the only trace, and nobody outside the node told. The fallback lives inside the sharedcreate_escalation_issuerather than at each of its call sites, so 2.0b’s auth-failure escalation, 1c’s usage-limit freeze escalation and requirement 2.7’s crash loop all pick it up identically. Unset (the default) is a no-op: an installation that configures none of this behaves exactly as before. Switching it on is two edits per node rather than one — the key is fleet-wide (config.jsonships in the image), while the webhook’s host has to be named in each node’s ownEGRESS_EXTRA_ALLOW, since the scheduler reaches the internet only through the default-deny egress fence (D24) and an unlisted host turns every POST into a proxy403, which in the log is indistinguishable from a webhook that is down. -
A pull request the Approver refused no longer relies on the same cycle that fixed it to also re-review it (requirement 46, agent-ops#682): a new fleet-wide restale sweep (
_approver_restale_sweep_repo,lib/approver.sh) detects a standing ApproverCHANGES_REQUESTEDwhosecommit_idno longer matches the pull request’s head — never GitHub’srequested_reviewers, which silently no-ops for the Approver’s own Bot identity — and, where a commit was genuinely authored since the review (never a rebase alone, which cannot move an authored date), triggers a real re-review by reusingrun_approver_stageitself, falling back to a self-dismissal (PUT .../reviews/{id}/dismissals) only when that re-review could not even be attempted. A rebase-only-stale review — the head moved, but nothing was authored since — is left alone until the newapprover_restale_escalate_after_hoursconfig key (default 24) elapses, then escalated toenabler_assigneeinstead of retried forever. Closes the gap that left PR #621 blocked for 13.5 hours on a fix nobody re-reviewed. -
A fine-grained PAT’s own expiry is now read and acted on before it arrives (agent-ops#694, agent-ops#691’s own postmortem): GitHub states it on every authenticated API response (
GitHub-Authentication-Token-Expiration), andscripts/doctor.sh --unattended’s existing hourly pass now reads it — the same free/rate_limitcall requirement 2.0 already reads — recording{expires_at, days_remaining}in.doctor-status.json. The dashboard’s Doctor panel shows the day count alongside the existing fail/warn table, amber under a 7-day threshold.agent-cycle.shescalates once per expiry timestamp — through the same fleet-scoped, deduplicated route the crash-loop and dead-credential (agent-ops#691) checks already use — when a node’s own token falls under that threshold, so a rotation is never again the fleet’s only warning that its credentials are about to lapse. -
A Reviewer that finds a pull request otherwise green and finished, but carrying a question about the work order or its scope it is not the right actor to settle, can now say so structurally (requirement 32/8f, D18, agent-ops#668): an
open_questionsentry alongside areadyverdict. The landing gate refuses unattended landing while one stands (open-question:-classed, grouped by the Autonomous landings panel with no dashboard change needed) and requirement 8u’s retry sweep holds it across cycles through the identical gate. It resolves through theescalation_autonomyladder: atalways-escalate, one escalation issue per pull request; atadjudicate-first, one bounded adjudication pass at the Approver’s own critical tier (prompts/approver-adjudicate-open- question.md) settles it with a posted answer or escalates — distinct from both the Approver’s own refuse-streak adjudication (requirement 8c) and the Enabler’s refinement-disagreement one (requirement 36b). A new head commit never clears it; only a settled adjudication or a human’s own act does. -
A per-stage health verdict (agent-ops#662), for the incident a
RUNNINGcycle and a clean fleet check both stayed silent about on 2026-08-21: every stage failed for 10.5 hours and nothing readstage-end’s ownexit_codeto say so.lib/stage-health.shderives, per stage on each node,last_success, aconsecutive_failuresstreak (reset by any success), the most recent failure’s own detail, and a verdict (idle/ok/failingonce three consecutive whole-cycle failures accumulate). Written atomically tostate_dir/.stage-health.jsonat the end of every cycle (write_unattended_status’s own precedent), it now surfaces as a newstages:section inagent-cycle.sh --status(and so incheck-nodes.sh, which already prints--statusper node), and — folded into the fleet heartbeat alongside the compose/image/switch verdicts — as a Stage health dashboard section plus a fleet-strip badge naming which stage(s) are failing, independent of that node’s own running/idle state. -
The scheduler’s egress is fenced (agent-ops#760; roadmap D24 stage two, review F-SEC-01,
TD-PPagop-26082407/TD-PPagop-26082429): it now sits on an internal-only Docker network — no gateway, so the fence is topology rather than convention — and reaches the internet solely through a newegress-proxyservice, squid on the same agent-ops image, permitting only HTTPS CONNECT to the domains indeploy/docker/egress-allowlist.txt(every entry commented with the code that needs it, several reachable only via redirects no grep would find) plus a node’s ownEGRESS_EXTRA_ALLOW. Claude Code’s optional traffic — update checks, telemetry, error reporting, claude.ai connectors — is disabled in the scheduler’s environment rather than allowlisted. Being compose-level, the fence reaches an existing node only by hand (README.md, “The egress fence”); until then the node self-reports compose drift, andscripts/doctor.sh’s new Egress section probes the live fence’s three failure shapes — path broken, allowlist not enforcing, direct egress still open — on every unattended run.test/egress-fence.test.shpins the static shape, and the image build refuses a squid config or an empty allowlist rather than shipping either to a node. -
Every stage prompt now states its untrusted-content stance explicitly: a canonical
## Untrusted external contentblock — byte-identical across all eight prompts, stated canonically inIMPLEMENTATION-PIPELINE-SPEC.md’s new requirement 45 (R18 inREVIEW-PIPELINE-SPEC.mdfor the project reviewer) — frames forge-authored free text (issue and pull-request titles and bodies, comments, review text, commit messages — embedded in a stage’s input or fetched mid-run) as data about the work, never instructions to the stage (agent-ops#759; roadmap D24 stage one, review F-SEC-01,TD-PPagop-26082407). The line it draws: such text may define what the work is, and can never change how the stage operates — nor authenticate anyone, since apipeline:stamp in a comment body can be typed by any account.test/prompt-untrusted-framing.test.shpins every copy to the spec’s canonical one at run time, so the one containment that is only words cannot quietly become different words. -
The routine landing class’s protected-path list — the whole-path prefixes a routine-tier landing must touch none of before it can land unattended — is now a config key,
merge_autonomy_protected_paths, with a per-repositoryrepos[]override on the same precedencemerge_autonomy_routine_sourcesuses (agent-ops#724, D18 Stage 3 preparation). It defaults to agent-ops’s own nine paths byte-for-byte, so nothing changes for any repository until it names its own list — a repository whose gate code lives elsewhere (a productlib/that is ordinary code, a release script underscripts/) can now declare the paths that actually gate its release rather than inherit a list written for agent-ops.scripts/detect-classifier-escapes.shresolves the same configured list, from its own independent reimplementation, so the post-hoc audit can never disagree with the gate about what counts as protected. -
The
agent-merges-routine/agent-merges-allcomplexity ceiling is now configurable,merge_autonomy_routine_complexity(default["low", "medium"], arepos[]entry may override it per repository, the same precedencemerge_autonomy_routine_sourcesuses), rather than hard-codedlow/mediuminlanding_eligible(D18 Stage 3, agent-ops#725).scripts/detect-classifier-escapes.shreads the same effective list when recomputing whether a landed pull request was actually eligible. Widening it to admithighis a bigger step than it looks: requirement 26a already forces that grade onto anything touching concurrency/locking, security, CI/workflow machinery or shared library code, so admittinghighhere routes exactly that class of diff through automatic landing — the protected-path gate stays in force regardless. -
scripts/doctor.sh’s D18 autonomy-readiness verdict now checks that the Approver App installation can actually see each configured repository, not only that its permissions are right (agent-ops#721). The installation isrepository_selection: "selected", so a repository can sit atagent-approvesor above and simply not be in the selection — and the verdict would have read “fully supported by its forge configuration” over an App that could neither review nor land there. A repository the installation does not cover is now afailnaming the owner act that fixes it, fromagent-approvesupward — the same rung the permissions check binds at, since posting a review is what needs the App to see the repository at all.lib/approver-token.shgainsapprover_token_installation_repositories, an installation-token-signedGET /installation/repositories: the JWT read behind the permissions check reportsrepository_selectionbut never the list, so the two questions need the two identities. Arepository_selectionofallcovers everything by construction, and a listing that could not be read whole — a page shorter than its owntotal_count, a non-200, an unreachable API — reportsunconfirmedfor every repository rather than “does not cover”, so no read failure can mint afailthat reads as an owner act. -
pr_labelnow reaches the Implementer, so an installation can change the label its implementation pipeline puts on the pull requests it raises without forkingprompts/implementer.md(agent-ops#654). The Co-Ordinator’s runtime input carries the configured value, its work order carries it on to the Implementer aspr_label— as does a mechanical fallback pick (requirement 3v), which composes its own work order — and the Implementer labels its draft with that field instead of the literalautonomous-agentthe prompt used to name. Nothing changes for an installation that has not setpr_label: it still defaults toautonomous-agent, which every gatherer and the back-pressure limit already find pull requests by. -
A rejected GitHub credential is now caught before the Co-Ordinator ever runs, instead of being spent on and misreported as an outage (agent-ops#691).
github_auth_probe(lib/github-limit.sh) reuses the same free/rate_limitcall requirement 2.0’s budget check already makes, but classifies an HTTP 401 apart from every other failure. A new, unconditional stand-down check (requirement 2.0b) runs it ahead of the Co-Ordinator: an expired or revokedGH_TOKENnow stands the cycle down immediately withGitHub authentication failed (HTTP 401) — GH_TOKEN is invalid or expired, rather than costing a full Co-Ordinator engagement every cycle only to have every claim fail with the misleading “this is an outage, not contention”. It also escalates — once, deduplicated — through the samecreate_escalation_issueroute requirement 1c’s usage-limit freeze and requirement 2.7’s crash loop already use, filed incrash_loop_repo. -
A durable landing audit record (requirement 8x, D18, agent-ops#578):
_landing_stage_attempt(agent-cycle.sh) now logslanding-audit-recordonce, alongsidelanding-armed, at the exact moment it arms a pull request — the pull request’s own number and head SHA, the effectivemerge_autonomylevel and whether it came from a repository’s own override or the top-level key (merge_autonomy_resolution_source,lib/merge-autonomy.sh), the work source and complexity label, the protected-path verdict and the protected paths it hit, the Approver’s tier/model/verdict/adjudication and this pull request’s full adjudication history (landing_approver_adjudication_history,lib/landing.sh), every deterministic gate this attempt passed with its own evidence, the merge budget’s decision object, and the landing mechanism. What justified an autonomous landing was previously spread across a cycle record, a dashboard digest row, a GitHub review and a log line, joined by whoever asked; now it is assembled once, at arming time, and never reconstructed.scripts/publish-dashboard.sh’s WI-8 autonomous-landing digest reads this record instead of re-joiningapprover-verdictevents againstlanding-armedby timestamp, and reports a landing with no matching record as its own anomaly rather than rendering silent nulls — the older verdict join lives on only to explain the tier and verdict of alanding-armedfrom before this record existed, which stays an anomaly either way;dashboard/index.html’s landings panel gained a Record column (ok/missing) and a summary line for any such anomaly. -
Any pipeline stage can now log deferred work it notices — a
tech-debt/<id>.mdrecord or a plain GitHub issue — riding along in the PR or output it is already producing, instead of losing the finding to a review body or deferring it to a separate round trip (agent-ops#631).TECH-DEBT.mddocuments the reserve-then-file-on-current-branch variant (“Filing alongside other work”) as generally available, with a dedup helper (scripts/find-similar-tech-debt.sh) and an automatic release of thetd/<id>reservation branch once its record lands onmainvia any pull request (.github/workflows/release-td-branch.yml,scripts/release-td-branch.sh) — manual branch deletion is now a fallback, not the only path. The Implementer and Reviewer may file inline on their own branch; the Approver and Enabler, which must never write to GitHub themselves, gain structuredfile_debt/file_issueoutput fields the Script fulfils on their behalf (lib/tech-debt-file.sh), under the Approver’s own App token where one applies. The first record filed under this workflow istech-debt/TD-PPagop-26082202.md— the single-slot ownership recordlib/issue-priority.shwas already carrying, found on PR #618 and previously unfileable because it could not land in that pull request. -
D18’s Stage 2 exit criterion (“revert rate ≤ baseline”) is now measured continuously rather than only by hand (agent-ops#579): a new daily
scripts/publish-revert-rate.sh, on its own crontab line (schedule.revert_rate_hour/revert_rate_offset_minutes), runsscripts/mine-merge-history.sh— which gains a--since ISO8601flag to bound the mined population — over three bounded windows per repository and appends a rolling-window (14 days, excluding the last 48 hours, floored at 10 samples), cumulative-since-baseline, and stored-baseline revert-or-follow-up rate torevert-rate.jsonlinstate_dir, replicated fleet-wide exactly likelog.jsonl. The Stage 0 baseline figures (docs/reviews/2026-08-15-merge-autonomy-baseline.md) are copied intoconfig.json’s newrevert_rate_baselineas a fixed reference rather than re-derived at runtime. The dashboard gains a “Revert rate by repository” panel beneath Autonomous landings, showing all three figures per configured repository and badging whether the cumulative rate sits at or below the stored baseline. -
D18’s fleet-wide
merge_autonomykill switch (WI-2, agent-ops#405) is now exercised end to end against the landing path (agent-ops#576): gate 1 of_landing_stage_attempt(agent-cycle.sh) asksmerge_autonomy_kill_statea second, independent,FRESHtime whenever the effective level does not qualify, andlanding_autonomy_refusal_reason(lib/landing.sh) tags the refusalkill-switch:when the switch is the actual cause — distinguishable in thelanding-refusedlog, and inscripts/publish-dashboard.sh’s landings digest, from a repository that has simply never had its level raised, which keeps the plain “effective level is …” wording. One test case permerge_autonomyrung (test/landing-kill-switch-wiring.test.sh) proves the collapse tohumanthrough the real landing path with nothing armed. The dashboard now also surfaces the switch’s own position — sourced the same wayscripts/doctor.shalready does — as its own banner, separate from the fleet-wide disable banner since cycles keep running while only landing collapses tohuman. -
A per-repository autonomy-readiness verdict in
scripts/doctor.sh(agent-ops#575, D18 Stage 3 prerequisite): one line per repository saying whether its configuredmerge_autonomyis something the forge configuration can actually support right now, naming every unmet precondition and tagging each as an owner act (a ruleset, repository or App-installation setting only an admin can change) or a configuration error (this fleet’s ownconfig.json). Configured above what the forge supports is afail, never awarn; a precondition this run could not read is named separately as unconfirmed and downgrades the verdict to askiprather than failing for something nobody got to check. Three of the preconditions are new checks — the default-branch ruleset’sdismiss_stale_reviews_on_push, its ownbypass_actors, and the Approver App installation’s live granted permissions, diffed against exactlycontents: write,metadata: readandpull_requests: writerather than assumed fromapprover_app_id. The rest (the ruleset’s approving-review count and code-owner requirement, the merge-queue/allow_auto_merge/allow_squash_mergepath,approver_app_id/approver_model_default) were already checked singly and are gathered rather than reimplemented, so the verdict costs no API call beyond what those checks already made. Reading a repository’s ruleset by hand was previously the only way to answer this, which is how agent-ops#518 came to be filed against conditions that did not yet exist. -
approver_token_installation_permissionsinlib/approver-token.sh: the Approver App installation’s live.permissionsobject, from a JWT-signedGET /app/installations/<id>— an installation access token can act as the installation but cannot ask GitHub what it is itself entitled to. Read by the readiness verdict above; an installation’s granted permissions are whatever the organisation owner last approved through GitHub’s own consent screen, entirely outsideconfig.json, and can be narrowed there at any time with nothing in this repository the wiser. -
scripts/run-tests.sh: run thetest/suite the way CI runs it — the working tree copied into a throwawaydocker runcontainer from the image, with nothing of the host or of any running node reaching it. The suite will start anywhere and only pass in the environment CI uses, and both ways of getting that wrong fail on an untouchedmainwhile naming something other than their own cause: from the checkout, the host’sjq(1.6 and 1.7 disagree about enough for roughly nine files to fail); throughdocker execinto a running node, that container’sPULLWRIGHT_APPROVER_APP_ID, whichdoctor.shreconciles againstapprover_app_id— so a fixture deleting the config key builds “an Approver the config does not declare” instead of “no Approver”, and three assertions intest/config-schema.test.shinvert.README.md’s “Running the tests” recommended the first of those and now documents both. -
D18 Stage 4’s protected-path compensating controls (agent-ops#415): a pull request touching a protected path (
.github/,deploy/,prompts/,lib/,config.schema.json,config.json,agent-cycle.sh,review-cycle.sh,CODEOWNERS) now routes to the Approver’s critical tier regardless of its complexity grade, includingcomplexity:low(which otherwise short-circuits to a deterministic, model-free approval); theapprover-verdictevent’s owncritical_reasonfield (protected-path/refuse-streak) distinguishes the two causes a critical engagement can have. Atagent-merges-all, a protected-path pull request is now eligible to land automatically — the one relaxation Stage 4 makes — but only once the approving engagement ran at that critical tier and a newlanding_cool_off_hoursconfig key (default 24, per-repo override,0disables) has elapsed since the standing review’s own timestamp; a fresh push restarts the wait, since the standing review’s owncommit_idno longer matches the pull request’s current head and nothing here dismisses a stale review on push. Both controls are re-read fresh at every arming attempt, including a landing-retry sweep re-arm outside the round that first approved the pull request. Belowagent-merges-alla protected path stays ineligible exactly as before. -
lib/verdict-fate.shandscripts/verdict-fate-report.sh(D18, agent-ops#573): a durable, per-pull-request record of the Approver’s verdict against that pull request’s eventual GitHub fate — landed by the Script, landed by a human, closed unmerged, still open, or a humanCHANGES_REQUESTEDstanding after an agent approval, its own fate, never collapsed into “closed unmerged” even once the pull request is later fixed and lands anyway, including across a later re-approval (agent-ops#661).agent-cycle.sh’srun_approver_stagenow logsrepo,modelandposted(whether the review it describes actually reached GitHub) on everyapprover-verdictevent, written live as the verdict happens;lib/verdict-fate.shjoins that record against each pull request’s live state and reports agreement, divergence and sample size, declining to state a rate below a stated minimum sample and reporting the rateunavailable, nevermet, over a partial read.scripts/autonomy-stage-report.sh’s Stage 1divergencecriterion (previously alwaysunavailable, agent-ops#571) now consumes this join rather than a placeholder. -
docs/reviews/2026-08-14-autonomy-investigation.md§6.1, a dated verification record for the Stage 1 exit check (agent-ops#518): what the App-approval mechanism has actually demonstrated (the ruleset amendment applied; six pull requests merged on the App’s review alone; token authority to callenqueuePullRequestestablished only negatively) and what it has not (no enqueue under the App token has ever succeeded, and no merge has ever been performed by the App — every merge to date is a human account). Corrects a premise conflated earlier in the issue’s own thread: “merged with only the App’s approval” and “merged by the App” are different facts. -
scripts/autonomy-stage-report.sh(D18, agent-ops#571): a read-only operator report answering “has this repository met its current D18 rollout-stage exit criteria?” — itsmerge_autonomylevel, the stage (agent-ops#402) that level corresponds to, that stage’s exit criteria, the measured value of each, and a closingmet/not-met (criterion: …)/insufficient-evidenceverdict. One criterion, classifier escapes, has no detector yet (agent-ops#572) and is always reportedunavailable, never a guessed0, so a promotion decision is never made to look ready on missing data. -
coordinator_prompt_max_bytesconfig key (agent-ops#641), andlib/coordinator-input.shbehind it: a bound on the assembled Co-Ordinator prompt, so it can no longer grow past its model’s context window unnoticed. The Script measures the rendered base prompt, subtracts it and the rest of the runtime-input document, and trims the two bands that carry a whole document each — an issue’s entire thread, a tech-debt item’s entire file — into what is left, along an eight-rung ladder walked only as far as the allowance requires. Prose is shed and candidacy is not: every entry keeps itsref,url,title,priorityandupdated_at, so a trimmed item is ranked and selected exactly as an untrimmed one, and every cut ends in…[Script: elided N of M bytes … read it whole at <url>]— whichprompts/coordinator.mdnow obliges the Co-Ordinator to follow before it may select that entry, so the fetch is paid once for the item picked rather than for every item considered. Dropping whole entries is the last rung only, keeps the highest-Priorityand freshest first, and is counted on the repo entry and in the union log. Trimming logscoordinator-input-fitted; a prompt that still does not fit logs awarningbefore the API refuses it.0disables the bound, which is how every release before this key behaved. -
escalation_autonomyconfig key (D18, agent-ops#627):always-escalate(the default, today’s behaviour byte-for-byte) oradjudicate-first, which runs one bounded Enabler adjudication pass — a fresh, narrower engagement over one item alone, atenabler_model— before the Script files an escalation issue for a refinement disagreement (requirement 36b’s thrash guard: aneeds-refinementblock that was already refined once and has since been re-flagged). The pass either confirms the existing refinement (recorded exactly as an ordinaryunblockedrefinement, no issue ever filed) or escalates exactly asalways-escalatealready does, logged either way as anenabler-adjudicationevent carrying its verdict and evidence. Bounded, not a loop: one pass per item, per human touch — an item that has already had one escalates without a second, the one exemption being a human having acted on an escalation about it since.scripts/doctor.shwarns whenadjudicate-firstis configured with noenabler_modelto run the pass with. Poetic’s ownconfig.jsonsetsadjudicate-first. -
scripts/doctor.shwarns when a key documented as installed —x-docs.valuediffering from its own schemadefault— resolves, from the liveconfig.json, to something else (agent-ops#567):refiner_modeldocumented asclaude-haiku-4-5-20251001while the key had never once been set inconfig.json(silently running the Refiner off) went undetected for eight days, and nothing before this compared what the configuration tables claimed against what the config actually had. A key whosex-docs.valueequals its owndefault— describing the product’s shipped behaviour, not an installation’s choice — is never checked, and neither is one with nox-docs.valueat all or one keyedreadme/spec. -
Two dashboard pie charts, Model used — Implementer and Model used — Reviewer (issue #529): which model each stage was asked to run, not spend attribution — a single Implementer stage on Sonnet still emits Haiku
modelUsagerows for the subagents its own invocation spawns, so a ratio built fromcost_rowswould have reported Haiku for most Implementer runs (the #536 failure this issue was asked not to repeat). Backed by a newcounts.stage_modelsPublisher aggregate, read fromstage-endevents’ ownmodelfield; every stage-end counts once, including a failed run or a retry, and one with no readable model lands under “unknown” rather than being dropped. Appended to the existing cost section, sharing its time-frame selector, with a muted caption naming the aggregate’s own retained-log window — which can be shorter than the cost charts’ — sincelog.jsonlis rotated independently ofCOST_SCAN_DAYS. -
counts.cost_rows[]entries now carryrepo,item,source,outcomeandattributed(issue #593, D21) — previously the total spend was visible but the item dimension left this question unanswerable: what was spent on work that never landed. Joined bycycleagainst the same fleet-wide event unioncycles[]renders from, not againstcycles[]itself: the union is bounded bylog_retained_bytes, independent ofcycles[]’s ownMAX_CYCLEScap, so the join reaches back over the wholeCOST_SCAN_DAYSspan the cost roll-ups already cover.attributed:true, with the other four fields populated, only for a coordinator/implementer/reviewer row whose own cycle has events in that union; every other row — enabler/refiner/limit-probe (which share their triggering cycle’s id but spent on a different item than the one that cycle selected), project-reviewer (whose review id never reacheslog.jsonl), or a coordinator/implementer/reviewer row whose cycle has rotated out of the union — carries all four asnullandattributed:false, never dropping the row itself. -
The dashboard’s autonomous-landing digest reports the merge budget’s own state per repository (issue #574, D18 §5.4): the effective cap, what the governor’s rolling-24-hour count last read against it, the repository’s status (
ok/held/frozen), and — held or frozen — the oldest pull request the cap is making wait, with afrozenrow also naming why. The numbers come from the governor itself rather than a counter the dashboard keeps of its own:landing-armednow carries thecap/countmerge_budget_decideread at the moment it granted that arm, andmerge-budget-frozencarries the freeze’sreasonand the samewaiting_backlogits pairedmerge-budget-holdlogs, so the latest of those three events for a repository is its state as of that last decision — not a live read, and of unbounded age — with no live read of the freeze flag or the waiting backlog on a dashboard tick. A held row ages back took, and anokrow’s consumption back to unmeasured, once the event behind it falls outside the digest window — both are rolling-24h facts, so neither is carried forward under a status that gives no sign of its age; a frozen row never ages back, since a freeze stands until a human clears it. A repository’s recorded cap does outlive that window, standing until its next gate-5 decision refreshes it rather than being re-read fromconfig.jsoneach tick. Every held or frozen row carries the source event’s own timestamp (as_of) so the page can render its age (held · as of 2d ago). An unlimited (0) repository, which the governor never counts at all, reports the plain count of landings this digest’s own window saw, rather than always reading0/∞. A held or frozen repository renders as its own badged row, never folded into the quietconsumed/capline an unheld repository gets and never counted as an eligibility refusal: “the fleet is idle because the governor closed” and “the fleet is idle because there is no work” no longer read alike. -
An hourly, unattended
scripts/doctor.sh --unattendedpass (agent-ops#543), on its owndeploy/docker/crontab.tmplline: the same Configuration and GitHub checks an operator runs by hand, run unprompted, so a configuration gap that only shows up against a live repository — a repository’sPriorityfield missing one ofUrgent/High/Medium/Low, above all — is no longer invisible on a node nobody happens to run the command on. Skips only the two checks that spend (the Claude-credentials check and the stream-flushing probe), each with its own reason, distinct from--offline’s; the GitHub section runs in full, since every call there is a GET. Its verdict — the summary, and everywarn/failline with a timestamp — reaches the dashboard as a new Doctor section and a page-top banner (red for a failure, amber for a warning), read fromstate_dir/.doctor-status.jsonrather than recomputed on the dashboard’s own 5-minute heartbeat. -
The autonomous-landing digest (D18 WI-8, agent-ops#411): a new Autonomous landings dashboard section reporting, over a rolling 24 h window, every pull request the Script landed without a human — when, which repository and pull request, its title, the work source, the complexity it was armed at, the
enqueued/auto-mergemethod used, the node that armed it, and the Approver tier and verdict that authorised it. This is the asynchronous audit D18 accepts unattended merging in exchange for (risk 6 ofdocs/reviews/2026-08-14-autonomy-investigation.md), and is permanent rather than rollout scaffolding: atagent-merges-allit is the only routine account of what merged.Built from the fleet-wide event union, so a landing armed on any node shows on every node’s page. The verdict join takes the newest
approver-verdictfor that pull request at or before the arm, never a later re-review — an Approver may review the same pull request across several cycles, and only the verdict the arming stage could have seen explains the landing. A landing whose verdict cannot be located still renders, markedunknown, since an unexplained landing is the most important row the panel can carry.Alongside the landings it reports what would otherwise mislead by omission: refusals over the same window grouped by reason class (two landings beside forty refusals is a classifier holding the line; two beside none may be a gate that is not running), and each repository’s
merge_budget_per_daycap against what the window consumed, with an unlimited repository reading as∞rather than a cap of zero. A payload the Publisher could not assemble renders as “could not be assembled this tick”, explicitly distinguished from a quiet night — an empty list is a reportable nothing,nullis an outage, and the two must not look alike. -
The landing-retry sweep (requirement 8u, TD-PPagop-26081701): once per cycle, fleet-wide, for every repository at
merge_autonomy: agent-merges-routineoragent-merges-all, re-enters the arming step’s own six gates for every open pull request whose Approver review is genuinely standingAPPROVEDon GitHub right now — closing the gap the original arming step (D18 WI-7) left, where a refusal whose reason could change on its own (the merge budget resetting, the kill switch or a per-repo freeze lifting, amerge_autonomy/merge_autonomy_routine_sourcesconfig change, a transient unreadable, a required check going green) was never revisited and a human had to notice and merge by hand. Reuseslanding_eligiblerather than a second copy of it, so a protected-path hit, acomplexity:highpull request, or a source outside the routine list is never armed here either.landing-armed/landing-refusedevents from the sweep carryretry: true. Neither the sweep nor this round’s own arming step ever arms more of a repository’s stranded pull requests, between them, than its remaining merge budget —merge_budget_per_dayless what it has already landed in the rolling window:merge_budget_decide(lib/merge-budget.sh) discounts a running, cycle-scoped tally (shared by both call sites) from the live merged-PR count, since GitHub’s own record only shows a pull request as merged once the merge has actually landed, never the moment either arms it — without the bound, every stranded candidate offered in the same cycle read the same not-yet-merged count and all of them armed regardless of the cap. Neither call site ever re-arms a pull request GitHub’s merge queue has already removed once and nobody has re-queued since — a maintainer’s own deliberate removal is never reversed, and a checks-failure removal is left forscripts/gather-dequeued.sh’s owndequeuedsource to diagnose and fix before a human re-queues, rather than blindly re-running the same failing merge group every cycle. -
The classifier-escape audit (requirement 8e, D18 Stage 2 exit criterion “zero classifier escapes”; agent-ops#572):
scripts/detect-classifier- escapes.sh, run once per cycle for every configured repository, is an independent, read-only, post-hoc check that every pull request which actually landed under the Approver identity really was eligible — never callinglanding_eligible, and never sourcinglib/landing.shat all (the protected-path list and the routine-sources resolution are each reimplemented from scratch, so a bug shared between the classifier and its own auditor cannot pass unnoticed by both agreeing). For every merged,pr_label-carrying pull request whosemerged_byis the Approver App’s own login, it recomputes the protected-path hit from the merge commit’s own file list and the complexity from the pull request’s labelled/unlabelled timeline as it stood atmerged_at, and reads back the work source and the effectivemerge_autonomylevel the landing was armed under —landing_eligible’s own first gate — from the fleet log’s ownlanding-armedevent, the two inputs nothing can reconstruct after the fact — the arming step now records that effective level (kill switch and per-repo merge-budget freeze already folded in) on the event, since the moment it resolves it is the only moment anything knows it. The protected-path hit is itself level-dependent, matchinglanding_eligible’s own gate: belowagent-merges-allit disagrees unconditionally, but atagent-merges-allthe classifier defers it to the WI-12 compensating controls (landing_protected_path_controls_ok) — facts this post-hoc detector cannot recompute — so that case reportsunverifiable, neverescape, unless some other, genuinely reconstructable input already disagrees on its own. Any input that cannot be reconstructed reportsunverifiable, neverclean; a disagreement is a first-classclassifier-escapeevent, loud rather than a row nobody reads. Each merged pull request is looked at most once, ever; one merged by anyone other than the Approver identity is not an audit finding, but that fact too is recorded once (its ownlanding-audit-skipevent, kept out of the scoreboard below), so the read that discovers it is never repeated on a later cycle. Surfaces as a newaudit/audit_reasoncolumn on the autonomous-landings digest’s own rows, and as an all-timecounts.escape_auditsscoreboard (checked/clean/escapes/unverifiable) on the dashboard, never windowed like the digest above it — an escape is a permanent fact about one merged pull request. A landing armed beforelanding-armedcarried a level reportsunverifiablefor that input rather than being judged against today’s configuration — an operator diallingmerge_autonomyback must never retroactively manufacture a classifier escape out of a landing that was correct when it happened. The sweep runs under a 120-second budget per repository per cycle and reads its candidates oldest-first, so on a repository whose candidate list costs more than that to walk in one pass it converges over as many cycles as it takes rather than stalling at a permanent frontier: the scoreboard is a floor on what has been checked at any given moment, not a final coverage statement (requirement 8e records the size of that backlog as of the day this landed). -
The deterministic eligibility classifier and the arming/enqueue step (D18 WI-7, requirement 8d; agent-ops#410): at
merge_autonomy: agent-merges-routineoragent-merges-all, once the Approver’s own engagement reaches an explicit, non-adjudicating approval,run_landing_stagere-reads every gate fresh — the effective level,complexity:low/medium, the work order’ssourceagainst the newmerge_autonomy_routine_sourcesconfig key, no protected path touched (.github/,deploy/,prompts/,lib/,config.schema.json,CODEOWNERS), the required checks and security-alert delta, no standing humanCHANGES_REQUESTED, the merge budget, and the merge queue — and lands the pull request itself:enqueuePullRequestwhere the base branch has an active merge queue,gh pr merge --auto --squashwhere it does not, both under the Approver App’s own minted token. Any unreadable gate refuses arming (landing-refused), never a pass. Ships dormant —merge_autonomyishumanfleet-wide by default, so nothing arms until an installation explicitly raises a repository’s level (D16, §6). D17’s rule that the product never enqueues a pull request is repealed at those two levels, and requirement 38f, requirement 3g’sdequeuedparagraph and three operating prompts now say so; nothing in this pipeline re-queues a dequeued pull request at any level, since the arming step arms only on the round the Approver approves (tech-debt/TD-PPagop-26081701.md). -
Priority triage (D18 WI-11, requirement 39g; agent-ops#414): the Refiner now bands every open issue whose
Priorityfield is unset, so the owner never has to set it by hand.gather-issues.shemits a newpriority_setboolean alongsidepriority, an unbanded-but-already-refined issue is offered to the Refiner solely for its band (triage_only: true) — and aneeds-refinementdecline of such an item is refused rather than recorded, so banding an already-refined issue can never block it — andlib/issue-priority.shenforces a one-way ratchet: a band is written only when the issue currently has none, or the Refiner’s verdict strictly outranks the current one, re-read live immediately before writing.scripts/doctor.shwarns when a configured repository’sPriorityfield cannot be resolved. -
merge_budget_per_day(D18 §5.4, requirement 2.3c): a rolling-24-hour cap, per repository, on pull requests this pipeline may land, with arepos[]override on the same precedencemerge_autonomyuses. Default8,0unlimited. Landing more than the cap in a window — a counting anomaly a correct governor should never observe — freezes the repository’smerge_autonomy_effective_levelatagent-approvesand escalates to that repository.max_open_agent_prs’s back-pressure exclusion is now level- aware: atagent-merges-routineand above, a ready pull request counts toward the cap even when it is notCHANGES_REQUESTED, since there is no human queue for it to be parked in at that level. Enforced at the arming step (D18 WI-7, above). -
The Approver’s own backstop and watchdog overrides (TD-PPagop-26081601, agent-ops#473):
timeout_approverandinactivity_approverfleet-wide, andapproverunder arepos[]entry’sstage_timeouts/stage_inactivity, completing requirement 4f’s precedence for the one implementation actor that had none. The Approver stage (D18 WI-5) shipped with its ownstage_budget_applycall but no configuration to reach it, so an installation could not pin either cap for that stage while it could for every other. Omitting them stays the normal case — both caps still derive themselves. The derivedlock_stale_afteraccordingly sums six actors rather than five, widening the default cycle lock by the Approver’s 30 min prior, andscripts/doctor.sh’s pinned-cap warning now covers both new keys at every level of the precedence (TD-PPagop-26081802). -
A cycle no longer starts work the host has no room to finish (requirement 2.0c, agent-ops#756): before the clone, and free like the GitHub-budget and credential checks ahead of it, the Script now reads
workspace_root’s free space and stands down (cause: "disk-full"or"disk-low") below a new config key,min_free_workspace_bytes(default 2 GiB;0turns it off).scripts/doctor.shhad warned about the same shortfall since before this key existed, but only a human running it by hand ever saw the warning — the cycle itself cloned into whatever room was actually left, which is what let a disk-full ockham node disablegit gc(#604) and leave 4.2 GB of orphaned clones behind (#605).lib/disk-space.shis the one place free space is now read and judged, shared by the gate and bydoctor.sh’s own warning so the two cannot disagree about what “low” means. -
The rework record (D23 of
docs/ROADMAP.md, requirement 47, issue #596): onereworkevent per repetition, emitted by the detector that already exists for it — a review round-trip, a human change request the reconciliation gate catches, a required-checks read failure, a merge conflict or abandoned draft resumed, a stage killed by requirement 4e’s backstop caps or an escalated crash loop, a claim lost to healthy contention, a needs-refinement block on an already-refined item, or a post-merge revert/follow-up fix — never inferred after the fact and never classified by a model.lib/rework.sh’srework_fieldsand its nine per-class helpers are the one shaping layer every site calls;docs/FLOW- SCHEMA.mdis the field-by-field contract, sibling todocs/METERING- SCHEMA.mdunder the same stability policy.docs/FLOW-SCHEMA.mdalso states agent-ops#533’s real, current state — closed 2026-08-20, caught bylib/reconciliation-gate.shat the Reviewer’s own handoff — and the residual coverage that fix does not reach, rather than the blind spot’s own now-stale framing.
-
scripts/github-budget-report.shrendered a null figure as an empty tab-separated field, whichread -runder a tab IFS collapses, so every column after it shifted left — on the first live run an hour with refusals but no readings printed its refusal count under “core peak used”. Nulls are now rendered as em dashes inside jq, before@tsv. -
A
human-visibilityviolation logged as “could not read the pull request’s state — skipping its review-state checks” no longer survives forever once the underlying read starts working again (requirement 38e; agent-ops#1127). This is the read that gates every downstream checkscripts/sweep-human-visibility.shmakes for a pull request, so it previously fell through as an unrecognised warning shape inscripts/gather-human-visibility-hygiene.sh’s own live re-check — kept indefinitely for as long as the pull request stayed open, since that catch-all has no live signal of its own to test. It now has its owncould_not_read_stateclass there: the live re-check re-runs the sweep’s own broadgh pr view --json reviewDecision,mergeable,mergeStateStatus, statusCheckRollup,reviews,commentscall verbatim — the narrowergh pr viewthis function already opened with proves nothing about it, since it omitsstatusCheckRollupentirely — and drops the violation only once that call succeeds again. -
The Approver stage skipped a ready pull request silently whenever the merge-autonomy kill switch’s own read failed closed with no cached copy (TD-PPagop-26081507) — a lone rate-limited refusal, the everyday cause, read exactly like a genuinely configured or manually killed
human(agent-ops#1081): no App review, and nowarninglogging why, breaking requirement 8b’s own contract that every other way this stage cannot run says so.run_approver_stagenow asksmerge_autonomy_kill_statedirectly, ahead ofmerge_autonomy_effective_level, with a newRETRYargument: on a fail-closed read it classifies whatever was left in the kill flag’s own$cache.errviagithub_limit_kindand, only when the cause was rate-limiting, waits outgithub_limit_wait_plan’s existing wait/backoff and asks once more before giving up. A still-fail-closed read now logs awarningnaming the pull request, the flag, and the cause, distinguishable from a genuinely configuredhuman(which stays silent, unchanged) — leaving the pull request exactly the shape issue #890’s own recovery sweep is built to recover, once it lands. -
A blocked
merge-conflicts,dequeuedorabandoned-draftsref could never reach the Enabler — the only stage that can clear such a block — because requirement 35e’s stale-ref filter judged it against a set the blocked/void subtraction had already emptied of exactly the refs it was being asked about (agent-ops#1119).compute_enabler_eligible_set(lib/eligibility.sh) derived its live set ofpr-<n>-conflict-<sha>/-superseded-/-dequeued-/-abandoned-refs fromordered_repos_jsonaftercompute_band_eligibilityhad run requirements 3t/3u’sexclude_blocked_or_void_itemsover those same three bands, and since the Enabler is only ever eligible for items that are blocked, every such ref was missing from the set by construction: judged superseded, loggedenabler-stale-refs-skipped, and dropped — every cycle, forever. It was true of 24 distinct refs across two repositories and roughly 1000 skip events since 2026-08-14, the morning after #329 generalised the blocked/void exclusion fromtech_debt(which #253’s filter had been written against) to every pre-fetched band butissues, silently invalidating that filter’s premise.compute_band_eligibilitynow snapshotslive_pr_refs_jsonfrom the fresh gather at its own start, before its subtraction loop runs, andcompute_enabler_eligible_setconsumes that snapshot. The staleness comparison itself is unchanged — a ref whose head has genuinely moved is still dropped, and a failed derivation still leaves the eligible set unfiltered — and the Co-Ordinator’s own band eligibility is untouched: it never reads the snapshot, and still never sees a blocked candidate.test/pr-claim-exclusion.test.sh’s “live conflict ref survives” case now builds its state through the realcompute_band_eligibilitywith a ref that is both live and blocked — the only shape that can tell the fix from the bug, and the reason the hand-built fixture it replaces passed throughout. -
The expensive-gather cache (requirement 48 above) wrote a 0-byte file for any repository whose raw bands outgrew
MAX_ARG_STRLEN, so the fleet’s busiest repository was invisible to each node two cycles in three (agent-ops#1107).lib/candidate-gather.shbuilt the cache document with all nine raw bands in argv (jq --argjson) — the shape requirement 4g forbids — and agent-ops’s own raw tech-debt band, 421,622 bytes, put it past the 131072-byte cap:jqdied atexecveinside$(…), the substitution yielded""without trippingset -e, and the save wrote that faithfully, so every node’sPoetic-Poems_agent-ops.jsonwas empty and every non-selected cycle replayed the repository with no issues, no tech debt, no review feedback and no findings, indistinguishable in the log and the digest from a repository with genuinely nothing to do. The nine values now reachjqon stdin, one document per line, bound positionally withinput as $name, matching the per-repo entry build beside it. The same failure can no longer be silent if it recurs:expensive_gather_cache_saverefuses (non-zero, no write) an empty or non-object document, so the caller’s existing|| log_event "warning"fires;expensive_gather_cache_loadtreats a zero-byte or unparseable cache file as absent rather than{}and logs awarningnaming the slug; andexpensive_gather_pick_repotreats that same file as never-cached (epoch 0), so an affected repository is re-read on the very next cycle instead of waiting out a full rotation — which is also what heals the caches already on disk. -
Three GitHub REST budget call sites logged a 403 rate-limit refusal the same as any other failure, so an operator could not tell “no human was notified because the owner’s shared budget was gone” from a genuine fault (agent-ops#1082):
ensure_human_reviewer’s review-request read (lib/handoff.sh) now reportsfailed-rate-limiteddistinctly from a barefailed, and all three sites that read that answer — the Reviewer’s own handoff, the Enabler’scomplete_handoffand the human-visibility sweep — name the rate limit in the warning they already logged rather than falling silent on the new state; the pull request/reviews read behindsweep-human-visibility.sh’s idle-nudge check names the cause in its warning; andapprover_post_or_warn’s review write (lib/approver.sh) does too, and now retries once throughgithub_limit_wait_plan’s existing wait/backoff (lib/github-limit.sh) instead of dropping the verdict outright when the cause was rate-limiting. -
A healthy node running long or chained cycles could stay behind the registry’s newest image for hours — two images behind, on the 2026-08-30 evidence (agent-ops#1096) — because
deploy/docker/ watchtower-pre-update.shdeferred the roll whenever a cycle held the lock, and a node whose next cycle starts before watchtower’s next five-minute poll never presented a gap to poll into: every individual deferral stayed correctly bounded bylock_stale_after, but the sequence of them was not, and nothing about the node was actually wedged.agent-cycle.sh’scleanup()now checks, at every cycle boundary, whether the running image has fallen behind (lib/image-drift.sh’simage_drift_status, the same verdict the heartbeat’simagefield already publishes — no second signal); if so it declines a chain it would otherwise take and writes$state_dir/roll-pending.json, which the hook now honours as an unconditional allow againstlock.jsonalone — neverreview-lock.json, which never wrote the marker and never yielded anything (agent-ops#1102) — until the window it names expires, or until the cycle that next reacquireslock.jsonclears it itself, at its own start, once the image is no longer “behind” (also agent-ops#1102: the window is a fixed clock offset from cycle-end, not “until the next cycle would have started”, so without this a reacquired lock could otherwise run its own stages underneath a marker still authorising an override of it). The bound is now two-part: one cycle’s length for a node that is merely busy,lock_stale_afteronly for one that is actually wedged. An allow the marker granted says so as it signs off, rather than reporting the idle path’s “no cycle in flight” over the in-flight line the same run printed a few checks earlier — that log is what an operator reads after losing a cycle to a roll, and is the whole reason this machinery is legible. -
test/updater-health.test.shread the clock twice for one fixture — once writing the ledger entry, once as the assertion’s expected value — so a second boundary falling between the two reads failed “a defer in between ends the run” by one second; it did on CI’s arm64 leg on 2026-08-30 and failed the image build of a merge commit the merge queue had just passed. The timestamp is now read once, as the neighbouringstreak_startfixture already did. -
Requirement 2.0’s budget gate read
GET /rate_limit, whose body — read cold, as the first call of every cycle — is an empty window (5000/5000, reset exactly an hour from now) rather than a reading; it answeredokthrough 95 recorded refusals in 48 hours (agent-ops#1087). The snapshot now comes from thex-ratelimit-*headers of a metered call and the GraphQLrateLimitobject, which describe the bucket GitHub enforces — the user’s aggregate, so the gate is fleet-aware without any per-node arithmetic — and a body that carries the empty-window signature is classifiedunknown, neverok(github_limit_resource_pristine). The wrapper’s own reset lookup under a primary refusal reads the same headers off the refusal. -
An unreachable provider no longer escalates as a deterministic crash loop (agent-ops#1073, escalation #1070).
stage_api_refusalnarrows every API refusal to one stable token so requirement 2.7’s ladder can group across cycles whose messages differ (requirement 4i), and that narrowing discarded the one fact separating two classes with opposite handling: the API refusing a request it considered (400,prompt_too_long,invalid_request_error— deterministic, will not clear by retrying) and the API being unreachable (a 5xx, a dropped connection — external, and self-clearing). Between 2026-08-29T22:21Z and 2026-08-30T02:15Z the Ockham host lost outbound network, the Co-Ordinator failed 16 consecutive times on both nodes withapi_error_status: 503on every record, and the escalation that produced told a human the fault was “almost certainly deterministic … no amount of retrying will clear it” — false on its own evidence, and gone the moment the network returned.lib/stage-attempt.sh’s newstage_api_refusal_classreads that status (and a named connection-levelterminal_reason) as a sibling of the stable token, answeringtransientorrefused, andhandle_stage_failurecarries it on theattempt-failedevent asapi_refusal_class;detailitself is byte-identical to what it was, so nothing about the grouping changes.crash_loop_verdictnow returns anescalatefield,falseonly when every failure the run counted was classifiedtransient, andagent-cycle.shlogsprovider-unreachableinstead of filing an issue in that case — the run is still counted and still resets on a Co-Ordinator success. A sustained transient run is not thereby invisible:scripts/publish-dashboard.shre-runs the same verdict over the fleet union log anddashboard/index.htmlrenders a provider unreachable badge on every node the run names, beside the updater and image verdicts, which is where a node-health fact nothing in this repository can fix belongs. -
lib/updater-health.sh’supdater_statusno longer reads a stale ledger as a permanent updater stuck alarm (agent-ops#1071, deciding agent-ops#1053, resolvingTD-PPagop-26082913). Before branching on a container’s own most recent invocation, it now checks that entry’s own timestamp againstupdater_stuck_after_minutesfirst: older than that and it readsnulloutright, whatever theallow/deferstreak underneath would have said, since nothing has polled the container recently enough to answer for the present. Without this gate, a multi-hour network outage left every node’s ledger trailing a stale entry and the whole fleet readupdater stuckat once, though every node was healthy; a node deliberately taken down after its last allowed roll would have readstuckforever.rolledis unaffected — it is a claim about the past and already carries its own age. -
lib/updater-health.sh’sallowarm no longer reads a rolled container’s own creation as proof it never rolled (agent-ops#1072). Watchtower clonesConfig.Hostnameforward when it recreates a container, so a roll’s replacement inherits its predecessor’s hostname and keeps appending to the very same ledger file — measured across the fleet on 2026-08-30, no scheduler’s$HOSTNAMEnames its own container id.deploy/docker/ watchtower-pre-update.sh’srecord_verdictnow stamps each ledger line with the writing container’s own PID 1 start time (started, best-effort — field 22 of/proc/1/stat, in clock ticks since the host booted, which is fixed for the life of the process, unlikestat -c %Y /proc/1, whose procfs inode mtime records when that inode was last instantiated);updater_statusreportsreason: "allow"only when a container’s own reading of that value matches the ledger’s trailing entry, reads a mismatch asrolledinstead, and theallowstreak scan itself stops at astartedchange as well as a verdict change — closing the residual false-positive class agent-ops#1071’s liveness fix could not reach on its own: a container rolled repeatedly insideupdater_stuck_after_minutes, each roll’s own genuineallowpreviously read as one streak spanning several successful rolls. An entry with nostartedfield supports no identity verdict and never producesstuckon a hostname match alone. -
A subject pull request that merges mid-Reviewer-pass is now caught and retired as a completion, instead of running the rest of the cycle against a pull request no longer there (agent-ops#916, escalation #922). Nothing on the handoff path used to ask GitHub whether
$impl_pr_urlwas still open, so a Reviewer whose subject merged part-way through improvised: it opened a replacement pull request reported only in prose, invisible to every machine-readable record the pipeline keeps for one it raises, while the cycle’s own tail (pr-ready, an Approver engagement, a landing attempt) ran against the pull request that had already merged.lib/handoff.sh’s newpr_merge_stateis the one fail-closed read both call sites share: at the handoff, ahead ofconfirm_pr_ready’s own isDraft read, and, advisory, at the Reviewer’s own stage-start, so a whole engagement is never spent on a pull request already gone. A confirmed merge now logsmerge-observed(lib/merge-observed.sh) and retires the item as a completion — neverpr-ready, never an Approver engagement, neverattempt-failed— filing whatever the Reviewer’s own verdict found underfile_debt/file_issue(the Approver’s own field shape) rather than aDefers:line, since there is no live pull request left to add one to.prompts/reviewer.mdnow says plainly that the Reviewer may not open a replacement pull request when its subject merges mid-pass. -
scripts/run-tests.sh --helpno longer stops mid-sentence. Itsusageprinted the header block withsed -n '3,/^# Exit status/p', which stops on the line it matches, so the paragraph explaining what--list’s exit status means — the part a caller reading--helpmost needs — was never printed. Noticed in review ofscripts/check-graphql-drift.sh, which had copied the idiom and truncated its own exit-code contract the same way; both now print the block whole. -
Back-pressure no longer counts a ready pull request the pipeline is barred from landing as pipeline-owed (#946). At
agent-merges-routineor above,lib/standdown.sh’s level-aware exclusion (D18 WI-6) zeroed the human-queue count for every ready pull request in a repository, without asking whether the pipeline could actually land it — so acomplexity:highpull request sat in a human’s queue by construction (landing_eligiblerefuses anything outsidemerge_autonomy_routine_complexity) while still occupying amax_open_agent_prsslot nothing in the fleet could free, and the composition string it logs (… plus N waiting on human) reportedNas lower than the true figure. The exclusion now askslanding_routine_eligible(lib/landing.sh, the complexity-and-source subset oflanding_eligible’s own gates, factored out so the two can never drift) per ready, non-CHANGES_REQUESTEDpull request — aCHANGES_REQUESTEDone is owed a change by the pipeline at every level whatever its grade or source, so the narrowing never reaches it and can never hold fewer pull requests against the cap than the un-narrowed rule did — complexity from the same listing already fetched, source read back from the fleet’s union log vialanding_retry_source, the same primitive the 2.1e landing-retry sweep already uses. A pull request whose source cannot be resolved this way counts toward the cap rather than being excluded from it (fail-closed), logged as awarningnaming the repository and the pull request.counted_prs_array(and theclaim.sh countexclusion it feeds) now agree with the same otherwise-eligible verdict, and the dashboard’s back-pressure card (scripts/publish-dashboard.sh,dashboard/index.html) mirrors it on the complexity half, approximated from each repository’s configuredmerge_autonomylevel rather than the live effective one, to avoid a per-repository merge-budget-freeze read on every publish tick. -
Requirement 1a’s model-key enumeration (
docs/IMPLEMENTATION-PIPELINE-SPEC.md) named six of the eleven model keysagent-cycle.shactually resolves throughresolve_model_id(agent-ops#1002):refiner_modelandapprover_model_default/_complex/_criticalwere all resolved by the code and named nowhere in the requirement that governs the resolution. The list now carries every key,enabler_model_criticalincluded. -
A Refiner (or Enabler) verdict whose
comments_posted[0]/comment_urlis a bare issue URL — no#issuecomment-anchor, so it cannot name any comment at all — is no longer recorded as a genuine refinement (TD-PPagop-26082819, #935).refinement_record_fields(lib/refinement.sh) now validates the URL’s shape (an#issuecomment-<n>anchor or a REST API comment URL, via the new sharedrefinement_comment_url_valid/_id) before extractingcomment_url; an invalid shape is treated exactly as absent, falling into the existingrefined-uncorroboratedwarning path instead of arming requirement 36b’s thrash guard on a specification that was never written.enabler_eligible_items(lib/cycle-state.sh) applies the same check when derivingrefined_before, so the two phantomitem-refinedevents already on the fleet log (agent-ops#818, #874) stop blocking their items with no edit to history, and logs a warning naming any phantom it skips. Folds in TD-PPagop-26082603 in the same change:refinement_traceability_fault(lib/candidate-select.sh) now recognises the REST API comment-URL shape too, via the same shared predicate, rather than silently testing nothing for it. -
The Approver stage (
lib/approver.sh) no longer spends a stale installation token on its post-engagement GitHub writes (#945). It used to mint the token once, before launching the model engagement, and spend that same value afterwards on the tech-debt/issue filings and the review post; an installation token lives about an hour, and an engagement lasting close to that long — a 749 s critical-tier round on PR #929 among them — spent a token already too near expiry, losing a recordedapproveverdict and its filed tech-debt record to a silent401. The pre-engagement read is now a gate only (“is the credential even readable”); a fresh token is minted once the engagement returns and spent across the whole write block, with a distinct warning (and, mid-adjudication, an escalation) if that re-mint itself fails.approver_post_review’s own refusals now land inapprover-post.errinstead of/dev/null, the same disciplinetechdebt_file_debt’s own error log already applies, so a future refusal is diagnosable without depending on a sibling call’s error file. -
The Co-Ordinator’s fit-exemption gate (
agent-cycle.sh) now reads its own fit report correctly, restoring requirement 34e’s fourth refusal, requirement 3x’s trimmed exemption and requirement 17g’s fabrication check on every fitted cycle (TD-PPagop-26082816, #933). The gate read${coordinator_fit_report_json:-{}}; bash’s${parameter:-word}closes on the first unquoted}, so the default word was{with a literal}appended after it — on every cycle the fit actually ran, that stray brace corrupted the report into invalid JSON, and the gate silently read it as “fit did not run”.coordinator_fit_trimmed_jsonwas therefore permanently[]andcoordinator_fit_rungpermanently0, and a context-tight Co-Ordinator’sneeds_refinementreports against already-trimmed items went unrefused.coordinator_fit_report_jsonis now initialised to'{}'ahead of the guard instead, removing the parameter-expansion default (and the trap) entirely. -
The stand-down classifier’s own documentation now names all five causes it can report —
raced,unreachable,pre-claimed,untraceableandfabricated— rather than describing a “three-way distinction” and reasoning about chaining for onlyunreachable/pre-claimed(TD-PPagop-26082313).agent-cycle.sh’s own comment above thechain_eligibletest, and requirement 17a’s and requirement 39’s accounts indocs/IMPLEMENTATION-PIPELINE-SPEC.md, now giveuntraceableandfabricatedtheir own reason for never chaining: both are the Script’s own construction-time checks refusing to hand a candidate on, with no peer’s claim or absence involved either way, so a fresh cycle would spend its chain budget re-composing the same broken work order rather than routing around anyone. Thestand-downevent itself now carriestrace_faults/fab_faults, when non-zero, the same wayclaim_skipsalready is, so anuntraceableorfabricatedstand-down’s own fault count is visible without cross-referencingclaim-skippedlines. No change to which causes chain — onlyraceddoes, as before. -
A
human-visibilityviolation logged as “could not read the pull request’s reviews — skipping the idle-nudge check” no longer survives forever once the underlying read starts working again (requirement 38e)._handoff_pr_approved’s own reviews-read failure, inside the idle-nudge check alone, previously fell through as an unrecognised warning shape — cleared, in the log-union reduction, by any unrelated success for the same pull request, and, inscripts/gather-human-visibility-hygiene.sh’s live re-check, kept indefinitely with no live signal of its own to test. It now has its own class in both: the log-union reduction only clears it on a later nudge, and the live re-check drops it only once a fresh_handoff_pr_approvedcall — the same REST read that failed, not the unrelated GraphQLgh pr viewthis script already re-checks with — succeeds in its own right. -
A voided
review-<date>-R-NNproject-review ref now retires instead of sitting in the void extract for ever (TD-PPagop-26082309). Requirement 34n’s only actioned signal for that shape wasreview-merged, which needs a merged pull request naming the ref — and such a ref is voided precisely when a stage finds the work already done, so no Implementer ran and no merged pull request ever named it: the signal was defined for exactly the population that never gets voided. On 2026-08-23 the only four entries in the whole 135-entry extract pastvoid_retire_after_dayswere of this one shape. A second signal,review-superseded, now reaches them: a ref whose review folder is no longer the repository’s current one. Retiring it costs nothing, becausescripts/gather-project-review.sh(and the Co-Ordinator’s own live read) only ever reads the latest folder, so a recommendation from a superseded one is never offered again by anything — the same reasoningvoid_config_actioned’ssource-droppedrule already rests on. That script gains a--current-datemode reporting the current folder’s own date, called once per repository already walked for review-shaped void residue, so a repository carrying none pays nothing;void_review_plan_actioned(lib/void-liveness.sh) reads it back as a fourth stdin input. A read that fails decides nothing rather than retiring — including the case where the script’s own listing succeeds butlib/report-directory.sh’s second call over the same path does not, which the library degrades to the same silence an empty listing produces. Requirement 34n’s retirements are facts nothing clears, so that distinction is what keeps a rate limit from minting areview-supersededno later cycle could take back. -
A Reviewer round that raised an open question against a repository where the
open-questionlabel could not be projected no longer kills the cycle before the Approver ever runs (agent-ops#889).landing_open_ question_label_project(lib/landing.sh) documents exit 1 for its ownunrecordedandfailedwords as ordinary outcomes, butagent-cycle.shassigned its output unguarded underset -euo pipefail, so that exit status ended the cycle at requirement 8f — six fleet cycles hit this for real, each stranding a green, ready pull request with no Approver review and no landing arming. Both call sites now guard the assignment with|| true, so a projection failure costs only the landing gate’s label-based hold, never the round itself. -
The landing audit record’s adjudication history (
approver.history, requirement 8x) now carries everyapprover-verdictevent a pull request received, including a peer node’s refusal (TD-PPagop-26082308).landing_approver_adjudication_history(lib/landing.sh) previously read$log_filealone on the round that first approves a pull request and$union_logalone on a 2.1e landing-retry re-arm — never both — so a refuse streak whose earlier rounds ran on a peer node left those refusals out of a first-approval round’s own history. It now reads the deduplicated union of both on either round. -
labels_catalogue’s (lib/labels.sh)obsoleteandopen-questionentries carried 148-character descriptions against GitHub’s 100-character limit on a label’sdescriptionfield (issue #888), so the create call was refused outright andlabels_ensurereportedfailedfor both, on every cycle, in every repository, indefinitely — neither label could ever be created by the pipeline. Both descriptions are now within the limit;test/labels.test.shasserts every role’s catalogue descriptions stay under it, readinglabels_catalogue’s own output rather than a fixture list, so a future entry that regresses past the limit is caught the same way. -
The Autonomous landings panel’s refusal-reason grouping no longer garbles a whole family of
landing-refusedreasons into one-off groups keyed on a fragment of a pull request URL (TD-PPagop-26082502). The panel groups by thereasontext before its first:(byReason,dashboard/index.html); several of_landing_stage_attempt’s (lib/landing.sh) sentence-form refusals embedded$pr_url— itself ahttps://…string carrying its own scheme colon — before any stable word boundary, so two pull requests hitting the identical underlying failure (e.g. the Approver’s review list becoming unreadable) never accumulated into one visible count. Every refusal reason that carries a:at all now carries it behind a class word, in the sameclass:detailshape the classifier-driven refusals (ineligible:,kill-switch:,open-question:) already used — including the App-approval gate’s own refusal, whose(state: …)parenthetical grouped it under a sentence cut off mid-clause rather than under the gate that refused. -
The dashboard’s “GitHub data unavailable” banner (
scripts/publish-dashboard.sh) now classifies and collapsesgh_fail_msgsby cause instead of concatenating every raw failure (agent-ops#695). During the 2026-08-22 token expiry the banner carried fifteen semicolon-joined “Bad credentials” bodies — one per source per repo — with the one fact that mattered, the token being dead, stated nowhere in the text. Each failure is now classified as auth (401/“Bad credentials”), rate-limit (403 or a rate-limit phrase), network (a connection/timeout string) or other, and same-cause failures collapse into one line with a call/repo count; a tick that fails more than one way gets one line per cause. The full raw list still reachesdashboard.log, which the collapsed banner now names. -
techdebt_file_debt(lib/tech-debt-file.sh) now labels the pull request it opens to file a tech-debt record with the fleet’s configuredpr_label, rather than opening it unlabelled (TD-PPagop-26082426). Every gatherer that finds this pipeline’s own pull requests filters on that label —gather-review-feedback.sh,gather-abandoned-drafts.sh,gather-merge-conflicts.sh,gather-dequeued.sh,gather-human-visibility-hygiene.sh— so an unlabelled filing pull request was invisible to all of them at once: nothing would ever review it, notice it going stale, or notice it conflicting, while the call itself still reported success. The Approver and the Enabler, its only two callers, each resolvepr_labelfromDEFAULTED_CONFIGat their own call site (neither having it otherwise in hand) and pass it through. -
The dashboard’s “Live claims” table no longer shows a discarded Enabler/ Refiner tombstone as held for tens of thousands of days (agent-ops#839).
lib/claim.sh’sdo_expire()deliberately backdates such a claim’ststo the fixed sentinel1970-01-01T00:00:01Zsogc’s next TTL sweep retires it (issue #237, requirement 35c) — correct and intentional. The claims panel had no notion of this sentinel and rendered it straight throughfmtAgo, producing a fabricated ~56.65-year age.claimsPanel()(dashboard/index.html) now recognises the sentinel and renders “expired — pending cleanup” instead; every other caller offmtAgois unchanged. -
The dashboard no longer badges a cycle
↻ raced/“recovered race ×N” when at most one node is currently active (agent-ops#829). Per-item claims only arbitrate contention between concurrently active nodes (lib/role.sh) — a standby never attempts one — so withfleet.nodespresent and at most one node carryingrole: "active", no peer could have held the claim a cycle’sraced/race_lossesfields describe, and the badge previously named contention that could not have happened. The underlying log fields are unchanged; only their rendering is gated, indashboard/index.html’s newracedMarkersPossible(). Fleet-less data (nofleetkey at all) is not evidence of a single node and renders exactly as before. -
github_auth_probe(lib/github-limit.sh, requirement 2.0b) no longer classifies a missingGH_TOKEN/GITHUB_TOKENasunreachable(TD-PPagop-26082306). Before, only an HTTP 401 GitHub itself answered was read asunauthorized; an unset or empty token with nogh auth loginsession either makesghrefuse locally, in a shape that matched neither that pattern nor anything else, so requirement 2.0b’s stand-down fell through and the cycle proceeded to a full Co-Ordinator engagement every time — the same indefinite per-cycle burn agent-ops#691 was filed about, in a different failure mode of the same fault. The probe now recognisesgh’s own no-credentials refusal too and reports it asunauthorized, withdetailleading “no token present” rather than an HTTP status; the stand-down reason and the escalation issue’s title and body (lib/standdown.sh) now say so plainly instead of claiming a rejected token (“HTTP 401”, “invalid or expired”) that never happened. -
refinement_traceability_fault(requirement 17f,lib/candidate-select.sh) no longer faults a compliant work order on ordinary paste drift, and no longer assumes a refinement is present when it cannot check (TD-PPagop-26082307). The comparison against a candidate’scontext/acceptancenow normalizes whitespace (collapses runs, trims both ends) on both sides before testing containment, so a model’s reflowed line or collapsed spacing no longer defeats a verbatim match — the check still faults a passage that is genuinely missing or different. A failedgh apiread of the actual refinement comment is now itself a fault (untraceable, retried next cycle) rather than a silent pass, reported viaguard_warninstead of swallowed — previously a degraded token, a narrowed scope or a sustained rate limit could disarm the whole gate indefinitely while it kept reading as a passing check.TRACEABILITY_DEBUG=1logs the normalized comparison to stderr for diagnosing a real drift-tolerance edge case. -
The Enabler’s escalation comment on a
needs-refinementissue no longer asserts an escalation exists before the Script has decided whether one actually does (agent-ops#815). The Enabler’s own turn ends beforeadjudicate-first’s adjudication pass runs, beforecreate_escalation_issueis called, and before that call’s own result is known, so its comment can no longer claim the escalation issue’s number — three items escalated in the same cycle (#604, #613, #640) each carried that claim, uncorrected, when the filing never happened or was superseded.escalation_thread_reconcile(lib/enabler.sh) now posts the Script’s own follow-up once the outcome is known: a completingBlocked-by: #<n>comment naming the issue actually filed, or, whenadjudicate-firstsettled the disagreement asadequateinstead or the filing itself failed, a correcting comment saying plainly that no escalation was raised. -
state-sync.sh fetchno longer reports a real failure — dead credentials, a network outage, a corrupt mirror — as the benign “the state repository has no node branches yet” bootstrap case (agent-ops#693). During the 2026-08-22 token expiry the fetch failed with HTTP 401, and the discarded stderr and the swallowed non-zero exit meant nothing recorded why: the step logged the bootstrap line and exited 0 regardless.do_fetchnow probes withgit ls-remote --heads origin 'refs/heads/nodes/*'before fetching — a non-zero exit is a real failure, logged from git’s own stderr and returned non-zero so the scheduler surfaces it; a zero exit with empty output is the genuine bootstrap case, still a silent no-op. While a real failure is in force,fleet_mark_peers(lib/fleet.sh) marks the peers directory stale (.last-fetch.json,{"ok": false, "ts": …}) rather than leaving it looking as fresh as a directory a successful fetch just materialised, so a union reader can tell frozen peer state from current state. -
A context-tight Co-Ordinator cycle no longer mass-flags its whole backlog
needs-refinement(agent-ops#683). On 2026-08-21 the fit ladder (requirement 4i) reached its bottom rung, every candidate’s body was cut to a title-level fragment, and the Co-Ordinator — correctly following its own prompt’s “if you cannot tell what done would mean, report needs_refinement” — reported exactly that for its entire visible backlog; requirement 3x’s completeness bar then obliged the Script to record every one as a block, so nine items, most of them refined within the preceding day, were flagged in 68 seconds. Neither rule was wrong on its own, and the outcome recurred on every context-tight cycle that selected nothing.record_needs_refinement_blocknow refuses a Co-Ordinator report naming an item this cycle’s fit actually trimmed — Script-side and deterministic, logged as awarningnaming the item and the rung, writing no label, block or assignment, and scoped to the Co-Ordinator alone, since the Refiner and Implementer read the repository live.unaccounted_itemscarries the matching exemption, so declining to write the block does not itself read as an unaccounted verdict and simply relocate the mass-flag into a retry loop over the same trimmed input; the count of candidates that went unassessed is logged ascoordinator-input-fit-unassessableinstead. An entry counts as trimmed on any of the three marksfit_entryleaves — a clipped body, a clipped comment body, or a cut comment list — so the ordinary shape here, a short issue whose acceptance criteria live in a Refiner’s comment, is covered by a middle rung as well as by the bottom one. The ladder itself is unchanged:0:0:1000stays a trim rather than becoming a drop, reasoned in requirement 4i, because the refusal removes the harm that made dropping tempting while a trimmed entry still buys the Co-Ordinator something to rank and, if worth it, live-read. -
A human’s plain comment now vetoes an autonomous landing however late it arrives, not only if it arrives before the pull request goes Ready (agent-ops#672, part of #402). The landing gate’s human-veto check (
_landing_stage_attempt’s gate 4,agent-cycle.sh) read only formal reviews — and a human cannot leave a formalREQUEST_CHANGESreview on this system’s own pull requests at all, since GitHub refuses that review type from a pull request’s own author and every pipeline write and human comment here land under the same account, so an ordinary comment is their only instrument.lib/reconciliation-gate.sh(agent-ops#533) already closed that gap at the Reviewer’s own ready-flip, but it runs once, at hand-off: a comment posted in the window between a pull request going Ready and a later cycle’s arming step was seen by neither check, and the pull request could land with it never consulted. Gate 4 now callsreconciliation_gateitself, a second time and unbounded — this stage never flips the pull request out of draft, so the raw “last left draft, and stayed left” anchor is the one this read needs. Adirtyverdict refuses to arm, naming the unreconciled comments as permalinks; anything else that is notclean— an unreadable timeline or comment list, or no answer at all — refuses too (agent-ops#746, ruled in agent-ops#753), naming the pull request and what could not be confirmed, so the veto holds whether or not the read succeeds rather than only when it does. The refusal is unconditional, and draws no distinction between anunknowna read genuinely returned and the empty word a call that never executed leaves behind: neither passes a safety gate. Only the exact wordcleanreaches the arm, and rides in the landing audit record (requirement 8x) as its owncomment-reconciliationgate entry. The refusal is not terminal — the landing-retry sweep re-offers the pull request next cycle, so a transient read failure costs a delayed landing rather than a lost one. -
An
adjudicate-firstescalation now carries the adjudicator’s own finding, not just the Enabler’s pre-adjudication verdict (agent-ops#681). Whererun_enabler_adjudicationreturnedinadequate— or any other reason the pass could not settle the disagreement — the Script filed the escalation issue with the body the Enabler wrote before adjudication ran; the adjudication’s ownevidencereached theenabler-adjudicationlog event and nowhere else, leaving the human to start the escalation with no idea why an adjudicator’s answer was missing, even though theadequatebranch already threaded the same evidence into its ownunblockedevent’s reason. The escalate branch inagent-cycle.shnow appends the evidence under an## Adjudication attemptedheading to the issue body before filing, whenever the pass actually ran. -
The Refiner’s Priority ratchet now writes at all: every
setIssueFieldValuemutation it has ever sent was rejected before reaching the resolver, so no issue in any repository has been banded by the pipeline (agent-ops#737).issue_priority_apply(lib/issue-priority.sh) declared the mutation’s$optionIdvariable asString!while GitHub types thesingleSelectOptionIdargument asID, and GraphQL rejects that pairing outright —Type mismatch on variable $optionId and argument singleSelectOptionId (String! / ID). The call discards stderr, so the caller saw only a baremutation-failed:ockham-container’s retainedlog.jsonlcarries 14refiner: could not set Priority …warnings between 2026-08-20 and 2026-08-23 and not oneissue-prioritisedevent. The variable is nowID!, matching the two id variables either side of it. The suite could not have caught this — the stubbedghintest/refiner-priority-triage.test.shmatches on*setIssueFieldValue*and never parses the query, so a declaration GitHub rejects looks identical to a correct one — so section (B2) of that test now asserts the declared types against the source directly. Requirement 39g is unchanged: the spec always described this behaviour, and the code now does it.TD-PPagop-26082322records the swallowed stderr that hid it. -
The Reviewer stage no longer burns its budget retrying a test run it cannot finish (agent-ops#734). Its own Bash tool kills any single command still running at 10 minutes and returns nothing for it — not even the output of whatever had already passed — and re-running
test/*.test.sh(140 files) as one invocation risked exactly that wall. On PR #729 a Reviewer lost 30 of its 90-minute budget to three identical 10-minute kills against that one unbatched run, then spent the rest re-batching by hand and still did not finish before its final message came due, discarding a review whose findings had already been complete after the first 13 minutes.scripts/run-tests.shgains--list: no Docker, no container, just the selected basenames printed one per line, so a caller can list the suite once and split it into groups sized to clear the ceiling before running any of them.prompts/reviewer.mdnow documents the ceiling explicitly and directs the Reviewer to batch this repo’s own suite through--listrather than one unbatched call or a hand-rolled loop, and to post its diff findings before starting the test run so a batch that exhausts the remaining budget costs only the test evidence, not the review itself (requirement 29a,docs/IMPLEMENTATION-PIPELINE-SPEC.md’s Gotchas table). -
The protected-path classifier no longer fails open on a malformed
merge_autonomy_protected_paths(TD-PPagop-26082320)._landing_is_protected(lib/landing.sh) and its deliberate twin_escape_audit_is_protected(scripts/detect-classifier-escapes.sh) compare each changed path against the configured list with a jq program that raises —jq -e’s own exit 5 — rather than returning false, when an entry is not a string; the caller could not tell that apart from “no match” (exit 1), so a list like[123, "lib/*"]would have read as “nothing protected was touched” for every path in the diff.landing_protected_paths_hitnow returns its own “could not be established” exit 2 for the raising case, exactly as it already does for an unreadable or truncated changed-file listing, andlanding_eligiblereads that asunknown, nevereligible. Not reachable through a schema-validatedconfig.json—config.schema.jsonalready constrains everymerge_autonomy_protected_pathsentry to a non-empty string — butscripts/detect-classifier-escapes.shreads its own--configfile with no such gate, so this closes a latent contract defect rather than a live hole. -
D18 arming now works at all: the changed-file read behind the protected-path gate had been failing on every single call since Stage 2 was entered, so the pipeline has never autonomously landed a pull request (agent-ops#718).
landing_protected_paths_hit(lib/landing.sh) asked forrepos/…/pulls/N/fileswith-F per_page=100and no--method GET, andgh apisends a request carrying-f/-Ffields as a POST unless told otherwise — a 404 on that path. The gate did exactly what it should with an unreadable list and refused to arm, so nothing looked broken: 72 of the 115landing-refusedevents across the fleet between 2026-08-17 and 2026-08-23 readunknown:could not establish …'s changed-file list, and nolanding-armedevent exists in any node’s log. The read is now an explicit GET; the stubbedghintest/landing.test.shmodelsgh api’s own method selection, so a field-carrying request that forgets--method GETnow 404s in the test suite exactly as it did in production; anddocs/IMPLEMENTATION-PIPELINE-SPEC.md’s Gotchas table carries the trap — a fail-closed gate that fails every time is indistinguishable from a working one. -
The D18 stage report’s “zero classifier escapes” criterion now measures something. It was hard-coded
unavailablewith the reason “no classifier-escape detector yet (agent-ops#572)” — true when the report landed, and stale from the moment the detector did (requirement 8e,scripts/detect-classifier-escapes.sh), whichagent-cycle.shhas been running every cycle since. Because a criterion is never reportedmetfrom missing data, that left Stage 2’s exit unsignable-off from the report even once landings started.crit_classifier_escapes(scripts/autonomy-stage-report.sh) now reads the audit’s own events: aclassifier-escapefails the bar and names the pull request; alanding-auditwithoutcome: "clean"is evidence toward the zero; anunverifiableaudit is named separately rather than counted; and a repository whose audit has recomputed nothing yet still reportsunavailable, because zero escapes out of zero audits is an absence of evidence, not evidence of absence. -
The pipeline’s own labels are now created in every configured repository it gathers data for, not only the one a cycle happens to select for work (requirement 6a, agent-ops#687). A repository the Co-Ordinator had not yet selected work in got no ensure at all, so its own
needs_refinement/blockedblock projection and the Refiner’srefined_labelprojection silently failed there until some later cycle selected it — andblocked,obsoleteandunvoid_label, the human-only controls no stage ever applies itself, were simply absent from that repository in the meantime.labels_ensure_stamped(lib/labels.sh) rate-limits the new per-gathered-repository ensure via a stamp file understate_dir(labels_ensure_interval_hours, default 24h, new config key — whole hours, a fractional value being refused at configuration time), used byagent-cycle.sh’s gather loop; the same repository’s own selected-work listing inagent-cycle.sh’s step 6a, andreview-cycle.sh’s per-repository ensure, both call the unstampedlabels_ensure_roledirectly instead, immediately before the point that needs the label to exist.refinement_label_addadditionally self-heals a failed projection once, through the newlabels_ensure_oneprimitive. -
A
human-visibility-<hash>void now retires like every other shape the cycle gathers as structured data, instead of sitting in the void extract for ever (agent-ops#646). Requirement 34n’s liveness rule knew five shapes; this sixth one — the content digestscripts/gather-human-visibility-hygiene.shmints over its surviving violations — was in none of them, is not a GitHub object 34k can close and is not a register row 34l can resolve, so nothing could ever mark it actioned. Four such entries had accumulated in a 135-entry, 156,454-byte extract, three of them describing pull requests merged days earlier.lib/void-liveness.shnow carries the shape in both of its maps —void_liveness_actioned’s (asliveness-human-visibility) andvoid_config_actioned’s source inverse, wherehuman-visibilityhad been listed among the sources nosource-droppedverdict can be read off despite minting exactly one id shape of its own.gather_human_visibility_hygienewrites the.okmarker the rule reads back, and the walk that calls it now also covers a repo carrying unretired residue of this shape but no live violation — the state in which such a void should retire, and the one that previously produced no marker at all. Costs no additionalghcall: with no violations handed to it that gatherer re-verifies nothing and prints the[]the rule was missing.The same measurement showed the extract’s remaining stall is not a defect but the age gate: 131 of the 135 entries were younger than
void_retire_after_days, and 91 already carriedvoid-object-closed, so requirements 34k and 34l are actioning items and the extract simply has the 8–10 August void burst to age out. The one shape that is stuck for a structural reason is filed rather than fixed here —tech-debt/TD-PPagop-26082309.md, a voidedreview-<date>-R-NNref, whosereview-mergedsignal needs a merged pull request naming the ref and so is defined for exactly the population that never gets voided. All four entries in the extract already past the age gate are of that shape. -
techdebt_file_debtno longer orphans atd-record/<id>branch or itstd/<id>reservation when a filing stops part way through (TD-PPagop-26082203). It reserves the id, then writes the branch and the record commit purely through the API, then callsgh pr create; if any of those steps failed, whatever it had already written was left behind with no pull request ever pointing at it —td-record/isn’t a prefixscripts/sweep-orphan-branches.shsweeps, and a baretd/<id>is one it deliberately leaves alone (issue #545), so neither was ever found again. Every failure past the reservation now best-effort deletes the record branch and then releases the reservation before returning. -
A
tailnetnode with noTS_AUTHKEYno longer thrashesdashboardonce the sidecar it shares a network namespace with has stopped (TD-PPagop-26082303). PR #698 boundedtailscale’s ownrestartso it settles after five attempts instead of retrying forever, but leftdashboardon the sharedunless-stoppedpolicy; since it cannot join the network namespace of a container that is not running, it retried indefinitely at Docker’s capped backoff oncetailscalehad already given up — the loop issue #644 was fixing moved to a different container rather than ending.dashboardnow carriesrestart: on-failure:5too, so it settles on the same schedule as the dependency it cannot run without. -
lib/issue-priority.sh’s cache-directory ownership record now tracks every directory this process has created, not only the most recent (TD-PPagop-26082202).ISSUE_PRIORITY_CACHE_DIR_OWNED_PATHheld a single path, so a process that made the library create a second directory in the same run — by repointingISSUE_PRIORITY_CACHE_DIRand re-sourcing, or unsetting it and re-sourcing — orphaned the first one permanently:issue_priority_cache_cleanuponly ever knew about the most recent record.ISSUE_PRIORITY_CACHE_DIR_OWNED_PATHS, an array, replaces it, and cleanup now removes every directory this process owns while still leaving a caller-supplied directory untouched. Because bash cannot export an array, a parent process exportingISSUE_PRIORITY_CACHE_DIR_OWNED_PATHSnecessarily exports it as a scalar, and the source-time branch that creates a fresh directory now resets the array rather than appending to it whenever the inheritedISSUE_PRIORITY_CACHE_DIR_OWNER_PIDdoes not match this process’s own$$— appending would have silently upgraded the inherited scalar into element 0 of this process’s own array, reopening agent-ops#552 against the array form: a child process could be talked into folding a parent-supplied path into its own ownership record andrm -rf-ing it on cleanup. -
A
tailnetnode with noTS_AUTHKEYno longer registers a fresh Tailscale node key once a minute forever (agent-ops#644). The profile’s documented precondition was enforced by nothing, sotailscaledstarted anyway, asked for an interactive login it had no way to complete and exited 0 — having already generated and registered a new node key — andrestart: unless-stoppeddid it again, 1,421 times over nine days on one node. Thetailscaleservice’sentrypointnow checksTS_AUTHKEYbefore handing control to the image’scontainerboot, logging one line to stderr and exiting 1 when it is empty, and that service alone carriesrestart: on-failure:5so the failure stops rather than loops.TS_AUTHKEYis now required at every start of the sidecar, not only its first: a node whose identity already lives in thetailscale-statevolume must still keep the variable set. Merging this deploys nothing — each node needs itscompose.yamlre-fetched anddocker compose up -d. -
The own-label grace period (requirement 39f) is now measured against the union-log snapshot’s own horizon, not wall clock (agent-ops#670). A long cycle used to read a peer node’s
own-label-actionrecord, already present in the snapshot it took at cycle start, againstdate -uread back however much later that cycle’s requirement-39f read-back actually ran — so once the cycle ran longer thanLABEL_OWN_GRACE_SECONDS(1800s), the peer’s own write misattributed to a human, restarting aneeds-refinementblock nobody asked for. Two items, agent-ops#597/#602 and #598, cycled indefinitely on exactly this before a human intervened by hand each time.lib/label-marker.sh’s newlog_latest_tsextract — the newest.tsacrossunion_log, captured once immediately after the snapshot and before that cycle appends any of its own events into it — is now passed as the explicitNOWto bothlabel_filter_own_applicationsandlabel_own_stale_applications. -
A work order’s
acceptance/contextcan no longer carry a different item’s refinement content past a claim (requirement 17f, agent-ops#626). Issue #571’s work order was assembled carrying issue #529’s own refinement comment — a Co-Ordinator engagement composing several candidates’ work orders at once produced a response that was syntactically fine and each candidate individually plausible, so nothing detected the cross-item swap until the Implementer, handed nothing but the mismatched work order, found it incoherent and burned the item’s one refinement-per-human-touch allowance re-flagging a fault the item never had — stalling #571 for a full human round trip (Enabler escalation #625) over a defect in assembly, not in the item.refinement_traceability_fault(agent-cycle.sh) now checks every ranked candidate before its claim is attempted: aspec-carrying refinement must be present in the candidate’s owncontext; acomment_url-carrying refinement must name the candidate’s own issue and (fetched live) be present in its owncontextoracceptance. A candidate that fails either check is skipped without a claim attempt, logged asclaim-skippedwithcause: "untraceable", and never reaches an Implementer. The check is scoped to a model-composed work order: the Script’s own fallback pick (requirement 3v) buildscontextin jq from the band entry it names, so it cannot cross-contaminate, and it draws on the item’s own record rather than onrefinements, so checking it would fault every spec-refined mechanical pick and leave that cycle nothing to claim. -
The Co-Ordinator’s
refinementsinput is scoped to candidacy (agent-ops#643).refinementsis a ledger that is never retired, and an entry for an item type with no thread to hold it carries the whole specification in markdown. By 2026-08-21 it had reached 237,339 bytes, 24specpayloads accounting for 219,175 of them, and the Co-Ordinator’s prompt text plus the unsheddable half of its input came to 387,840 bytes against a 350,000-byte maximum before any candidate was added — so the allowancecoordinator_prompt_max_bytescomputes came out negative, the fit ladder was never walked, and the API refused the stage on every node of the fleet for eleven consecutive cycles with no work selected anywhere.coordinator_refinements_viewnow keeps aspeconly for an item some band of the cycle actually offers, and keepsts/cycle/comment_urlfor every item as before.prompts/coordinator.mdgives a spec exactly one use — pasted verbatim into the work order of an item being selected — so a spec for a non-candidate was prose the model paid to read and could never act on. On the cycle that found the outage this took the band from 237,339 bytes to 29,304, and the unsheddable overhead from 387,840 to 179,629. -
A Co-Ordinator allowance that comes out at or below zero now sheds as much as the ladder can rather than nothing at all (agent-ops#643). The branch added with
coordinator_prompt_max_byteswarned and then fell past the fit entirely, sending the candidate bands whole — which is how a 350,052-byteissuesextract went into a prompt that was already over the window without it. The allowance is now clamped to 1 before the ladder is walked: 0 or less means “bound off” tocoordinator_fit_bandsand returns the array unchanged, while 1 fails every rung and lands in its final branch, which returns the smallest array the ladder can build withfits: false. The warning still says the prompt may be refused regardless; the cycle just no longer makes that more likely on its way out. -
The Co-Ordinator no longer takes the fleet down by outgrowing its model’s context window (agent-ops#641). On 2026-08-21 the assembled prompt reached ~226580 tokens against a 200000-token window and the API refused four consecutive cycles on every node; nothing had broken, the
issuesband had simply grown one comment at a time past a limit nothing measured. Seecoordinator_prompt_max_bytesunder Added for the bound. -
A stage the API refuses outright now says which refusal it was (agent-ops#641). The whole record of those four lost cycles was
coordinator exited 1, and the crash-loop escalation sent its reader tocoordinator.out.stderr— which an API refusal leaves empty, because the refusal is aresultwithis_error: trueincoordinator.out. Theattempt-faileddetail is now “was refused by the API before it could run: ”, with the API’s own message beside it on the event as api_message; the two are kept apart deliberately, since the crash-loop ladder groups on the detail and the message carries a token count that moves every cycle. The escalation’s hint namescoordinator.outfirst. -
A cycle with
refiner_modelempty (no Refiner) no longer pays for the Refiner’striage_onlypre-flight (agent-ops#567): candidate computation itself is unconditional, so a repository contributing a triage-only candidate still cost aPriority-field GraphQL read, and could still log arefiner:warning about candidates it dropped, for a stage that could never engage. The pre-flight now runs only when this installation has a Refiner — unchanged, including under--dry-run, for one that does. -
A Co-Ordinator
needs_refinementreport for an issue can no longer re-assert aBlocked-by:dependency the Script’s own gate already resolved (agent-ops#566). Requirement 3j drops any issue naming an unresolved dependency before the Co-Ordinator ever sees it, but a stale sentence can still sit in an otherwise-selectable issue’s thread after the reference it named has closed — one cycle read that sentence for five separate issues and reported eachneeds_refinement, even though the dependency gate had already cleared all five.record_needs_refinement_blocknow refuses, with a logged warning and no block, label, or assignment, anysource: "issues"entry whose ownreason/missing/evidencenames — by issue number — a dependency this cycle’s own gathered thread already proves resolved (dependency_refusal_reason,lib/dependency-gate.sh); a genuine under-specification or question/discussion decline on the same item is untouched.prompts/coordinator.mdnow states plainly, ahead of restating the mechanics, that this exclusion’s dependency half is never the Co-Ordinator’s to re-derive, and thatevidencemay never assert the live state of an item outside this cycle’s own runtime input. -
lib/issue-priority.sh’s cache-dir ownership record could be talked into removing a directory it never created (agent-ops#552, follow-up to #548/#541). The record was trusted straight from the environment with no check that it came from this process, so an inheritedISSUE_PRIORITY_CACHE_DIR_OWNED=1let a child process treat a caller’s own directory as its own andrm -rfit; a newISSUE_PRIORITY_CACHE_DIR_OWNER_PID, stamped with the creating process’s own$$, is now required to match before a record is trusted. A stale record also outlived the directory it named — a source following a cleanup could keep trusting a directory that no longer existed, leaving field-id caching dead for the rest of that process — fixed by checking the directory still exists independently of cleanup’s own record-clearing (which does not reach a caller invoking it through a command substitution), and by keyingissue_priority_cache_cleanupon the owned path itself rather than the currentISSUE_PRIORITY_CACHE_DIR, so a directory this file created is never abandoned when a caller later repointsISSUE_PRIORITY_CACHE_DIRelsewhere. -
merge_autonomy_routine_sourcescan now name issue work at all (agent-ops#558). The key shared onesourceTokenenum withrepos[].sources, but the two are matched against different things: asourcestoken is compared against a candidate, while a routine-list token is compared against a finished work order’s ownsource, whichscripts/gather-issues.shhas by then collapsed fromissues:<band>to the plain wordissues. The shared enum therefore offered exactly the four spellings landing can never match and withheld the only one it can, so an installation widening its routine list to include issues got a config that validated and not one issue ever armed. agent-ops#519 caught the silence and added a doctor warn whose remedy — “listissuesitself” — the same enum then rejected, leaving issue work with no writable spelling at all. The key now takes its ownlandingSourceTokenenum (bareissues, no bands), a banded entry is a schema error rather than a silent never-match, andscripts/doctor.shreads a bareissuesin the routine list as gathered whenever the repository’s ownsourcescarry anyissues:<band>— without which following its own advice would simply trade one warning for another. Banding remains a gathering-time rank that landing cannot see, now stated plainly in the schema rather than buried as a disclosed limitation:issuesis all-or-nothing at the arming step, and an installation wanting only its low-band issues landed narrows what it gathers, not what it arms. -
landing_eligible‘s routine-source membership test no longer inverts on jq 1.6 (agent-ops#558).jq -eexits 0 on empty input under jq 1.6 and 4 under jq 1.7, and both_landing_routine_sources’ array probes and the membership test itself fed possibly-empty strings tojq -e: on a 1.6 host the routine list resolved empty instead of falling through to the shipped default, and the membership test then admitted every source the gate exists to refuse. The container image pins jq 1.7 (ubuntu:24.04), which is the only reason this was never a live fail-open on the fleet — an argument from a pinned dependency rather than from the gate’s own code, which is the wrong thing to rest an arming decision on. All three call sites now test for emptiness explicitly before consultingjq -e. The threetest/landing.test.shassertions that failed on any jq 1.6 host — and passed in CI purely because CI runs inside the image — now pass everywhere. -
scripts/doctor.shnow also warns when a repository’s effectivemerge_autonomy_routine_sourcesnames a bandedissues:<band>token (agent-ops#519): the existing “does this repository’s ownsourceslist gather it” check (agent-ops#512) passes cleanly, since the banded token typically is present there too, but everyissues:<band>work order’s ownsourcecollapses to the plain wordissuesbeforelanding_eligible’s exact-string comparison ever runs (lib/landing.sh’s own header) — a known, disclosed limitation — so the entry could validate clean and still never match a work order. The new warn names the offending token and suggests listingissuesitself. -
scripts/doctor.shnow checks that a repository configured atmerge_autonomy: agent-merges-routineor above can actually land a pull request the waylanding_armwould (agent-ops#532): where its default branch carries no merge queue, the arming step falls back togh pr merge --auto --squash, a call that needs both the repository’s ownallow_auto_mergeand itsallow_squash_mergeand which GitHub refuses outright when either is off — settings nothing inmerge_autonomy’s own validation looked at, so the combination passed every gate, reached the one write, and failed it on every otherwise-eligible pull request indefinitely. The checkfails that pairing naming which of the two is off and both fixes (enable it, or adopt a merge queue), isokfor an active queue regardless of either setting,skips whatever it cannot read — including arepos/{slug}that returns neither key, the pair GitHub withholds from a token without admin visibility of the repository’s merge settings — and stays silent below the routine tier. A setting read as a definitefalseoutranks an unreported sibling, so an unreadable one never masks a setting doctor did read as off.--offlineskips it with the rest of the GitHub section. -
landing_arm(lib/landing.sh) now returns a distinguishable exit status for each of its own failure points rather than a bare non-zero, andrun_landing_stagefolds_landing_arm_failure_reason’s text into itslanding-refusedreason — so the log names which step failed (the pull request read, the merge-queue read, the enqueue mutation, its partial-write case, or the fallback merge) instead of one generic “could not enqueue or auto-merge” shared by all of them. -
The Reviewer can no longer flip a draft pull request ready while a standing human comment goes unanswered (requirement 31c, agent-ops#533, PR #512): a human cannot leave a formal
REQUEST_CHANGESreview on this system’s own pull requests, so a plain PR comment — often paired with converting the pull request back to draft — is the change-request signal here, and nothing previously refused a hand-off that silently dropped one.lib/reconciliation-gate.sh’s new gate reads every general PR comment posted since the pull request’s most recentready_for_reviewtimeline event as the round found it — bounded by the cycle’s own start time, since the Reviewer runsgh pr readyitself and an unbounded search would take that flip as the anchor and filter out every comment the round existed to answer — and refuses the flip, on the same terms as the existing closing-keyword gate, unless a pipeline comment since cites it with<!-- agent-ops:reconciles comment=<id> -->. A refusal names each unanswered comment by permalink, so the next round can act on it rather than re-deriving it.prompts/reviewer.md’s completion comment now carries that citation for every human comment it answers. -
The reconciliation gate above (requirement 31c, agent-ops#533) could refuse a pull request exactly once per unreconciled comment, never twice (agent-ops#539). A
dirtyverdict left the pull request exactly as the Reviewer’s own step-7gh pr readyhad just left it — ready, not draft — so that flip survived the round it was refused in, and because GitHub keeps aready_for_reviewevent rather than deleting it when a laterconvert_to_draftsupersedes it, that surviving flip became the very next round’s reconciliation anchor: the standing comment the gate had just named fell before it and read as reconciled, permanently, one round after the refusal.handoff_complete_review(lib/handoff.sh) now 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 — converting the pull request back to draft on both the Reviewer’s own handoff and the Enabler’scomplete_handoffrecovery path, and_reconciliation_gate_anchor(lib/reconciliation-gate.sh) now skips anyready_for_reviewevent that has aconvert_to_draftevent after it at or before the bound, so a reverted flip cannot win the anchor either. A revert that itself fails to take logs its own warning, distinct from the ordinary refusal, since the pull request is at that point not merely carrying an unanswered comment but still ready for a human to merge.prompts/reviewer.md’s own anchor instructions (step 6) now carry the same undone-event exclusion, since the Reviewer’s live read of “most recentready_for_reviewevent” was open to the identical trap. -
merge_budget_oldest_waiting’swaiting_backlog(the pull request amerge-budget-holdevent names as the one waiting longest) now sorts GitHub’s own listing oldest-first before paging, so a repository with more thanGITHUB_PR_LIST_LIMITopen, labelled pull requests names the true oldest rather than the oldest of whatever page happened to come back. Its search now also excludes drafts server-side (draft:false), so a repository whose oldest page is entirely drafts still names its true oldest non-draft instead of reporting no backlog at all. -
lib/issue-priority.sh’s field-resolution cache directory (issue #510) is now removed by the process that created it, rather than left behind once per sourcing process — a directory per cycle in a long-lived node container, and one perscripts/doctor.shrun, which had no exit trap at all.issue_priority_cache_cleanupis idempotent and removes only a directory the library itself created, never a caller-suppliedISSUE_PRIORITY_CACHE_DIR;agent-cycle.shcalls it from itscleanup()EXIT trap, after the Refiner that is the cache’s main consumer, anddoctor.shfrom a new EXIT trap of its own. -
lib/issue-priority.sh’s cache-directory ownership (issue #541, a follow-up to #510) is now a property of the directory rather than of the most recent source: a process that sources the library twice used to see, on the second source,ISSUE_PRIORITY_CACHE_DIRalready set to the directory the first source created and read it as caller-supplied, soissue_priority_cache_cleanupdeclined to remove the very directory the library made.ISSUE_PRIORITY_CACHE_DIR_OWNED_PATHnow records the path the library created for itself, so a re-source with that same path still marks it owned. -
The per-process fleet-flag memo (issue #502) is now keyed by mode as well as by flag and
state_dir, so a default-modeclearanswer can never be served to a laterprobe-404read of the same flag, and reads it into a variable rather than testing-then-reading the memo file, so a file that vanishes or is empty mid-write falls through to a live fetch instead of being served as an (incorrectly) confirmed answer.run_approver_stage’s own read of the merge-autonomy kill switch now always bypasses the memo, so an operator’s mid-cycle kill stops the stage at its own boundary rather than waiting for the next cycle’s process to notice. -
approver_escalate’s “could not settle, and the escalation issue could not be filed” warning event now carriespr_urland adetailnaming it — a pre-existing bug (a bash string interpolation, not the intended jq--arg) silently emptied both fields underset -u. -
The dashboard’s switch banner for a node stood down with
agent-cycle.sh --this-node --disable(issue #514) now reads “This node is disabled” rather than “Pipeline disabled” — the old wording read as a fleet-wide stand-down even though only the one node had stopped. Its re-enable advice now names--enable --this-nodefor a genuine node-scoped disable, rather than the bare--enableit shared with the fleet-wide banner and the orphaned-mirror case (agent-cycle.sh’s own--statusreport and the fleet-strip badge already drew this distinction; the banner did not) — the bare command clears the fleet switch, not this node’s own record, and would have left the node down after an operator followed it. -
The Priority triage ratchet (requirement 39g) no longer overwrites a band outside the four names it ranks (issue #509).
issue_priority_currentused to parse onlyUrgent/High/Medium/Low, so an organisation-added fifth option read back as no band at all and the ratchet’s skip guard never fired; it now reads the raw option name, andissue_priority_applyskips such a band (skipped-unrankable, logged like any other ordinary skip) instead of silently replacing it.gather-issues.sh’spriority_setis now true whenever any option is set on the field, not only one of the four recognised names, so a fifth-band issue is no longer offered to the Refiner’s triage duty as if nobody had triaged it. -
A repository whose
Priorityfield this token cannot resolve at all no longer re-engages the Refiner forever for band-only (triage_only) candidates it can never actually band (issue #511). A pre-flight (refiner_filter_unbandable_triage,agent-cycle.sh) now resolves each contributing repository’s field once per cycle before any candidate is claimed, drops that repository’striage_onlycandidates when the field cannot be resolved — every other candidate, from that repository or any other, is unaffected — and logs onewarningper affected repository naming it and how many candidates were dropped. Previously such a repository’striage_onlycandidates re-entered the candidate set every cycle with no possible progress, andrefiner_engagement_set’s alphabetical cap meant an early-sorting repository in this state could fill the entire engagement set, starving refinement everywhere else. -
gather-issues.sh’spriority_set(issue #527, a follow-up to #509/#522) no longer readstruefor aPriorityfield value that carries nosingle_select_optionat all — GitHub’s field-value union also includes text and date shapes, which an admin retyping the field can produce, and the raw option name it contributed wasnullrather than nothing. Such an issue read as triaged and never reached the Refiner’s triage duty again; it now agrees withissue_priority_current’s own verdict and readspriority_set: false, same as an unset field. -
The dashboard’s
by_modelchart andcost_rows[](issue #536) no longer credit a transcript’s wholetotal_cost_usdto whichever model(.modelUsage | keys)[0]named — jq’skeyssorts, so a transcript that spent on more than one model (routine, since a subagent call inside a stage often reaches for a cheaper one) always credited its entire cost to the alphabetically-first model touched, systematically Haiku ahead of Opus and Sonnet. Measured on poetic-node-1 on 2026-08-17, this credited Haiku 98.7% of the fleet’s spend against its true 12.4% share, and Opus did not appear at all.scripts/publish-dashboard.sh‘s cost scan now reads eachmodelUsageentry’s owncostUSDand sums them independently per model, reproducingtotal_cost_usdto the cent;by_dayandby_actorare unaffected, still counting one row per transcript.cost_rows[]— which the model/actor charts’ own time-frame selector (issue #334) re-aggregates client-side — now carries one row per (transcript × model) rather than one per transcript, and without a way to tell those rows back apart the windowedby_actorfigure would have double-counted any transcript that spent on two models;cost_rows[]rows now also carry the transcript’s owncycleid so the client can dedupe on it and count transcripts, not rows. -
The own-label read-back (requirement 39f) no longer misattributes its own
needs-refinementlabel writes to a human when the reading node’s clock runs behind GitHub’s, or when a peer node’sown-label-actionrecord has not yet reached this node’s union log (issue #526).lib/label-marker.sh’s comparison now matches any recordedaddwithin a skew tolerance of GitHub’s ownlabelled_at, in either direction, rather than requiring ours to be no later — which the RC4-style recurrence measured failing in the trailing-clock direction — and now scans every recordedadd, not only the latest action, so an add that matches followed by aremovethat silently failed is still recognised as ours. A label applied within a 30-minute grace period with no own record yet is deferred rather than read as a human’s, since the record may simply not have propagated over the fleet’s periodic state-sync — neither reported as a hand-flag nor offered up for a stale-removal retry until the grace period passes. -
issue_priority_apply(issue #534, a narrower follow-up to #511/#528) no longer fails a band write outright when a repository’sPriorityfield resolves but is missing one or more of the four band options — previously indistinguishable from a field that cannot be resolved at all (field-unresolvable), which left the Refiner re-offered the same unwritable band, and re-spent, on the sametriage_onlyissue forever. It now falls back to the nearest band the field actually has an option for — preferring the next lower band, tying upward only when no lower option exists at all — applies the ratchet against that band instead, and names the band actually requested in a newrequestedfield wherever it differs. A field with none of the four names writable at all is reported as a new, distinct reason,band-option-missing, rather than reusingfield-unresolvablefor a different failure. -
maybe_run_refiner’smutation-failedwarning (issue #551, a follow-up to #538/#534) now names the band actually attempted, not the band the verdict asked for, when a fallback ran: previously the warning always named the verdict’s own band even though the failed write targeted a different, fallback band, so an operator reading it could not tell which band the pipeline actually tried to set. It now also names the requested band alongside the attempted one whenever the failed result carries arequestedfield; amutation-failedwith no fallback, and the other three failure reasons (field-unresolvable,band-option-missing,issue-unreadable), keep their existing wording unchanged, since nothing was attempted on those paths. -
refiner_filter_unbandable_triage’s pre-flight (issue #542, the degenerate case between #511 and #534) now also drops a repository’striage_onlycandidates when itsPriorityfield resolves cleanly but carries none ofUrgent/High/Medium/Lowat all — an organisation that renamed every option, e.g. toP0…P3. Previously such a repository passed the pre-flight (its field does resolve), paid the Refiner’s spend every cycle, and then hitissue_priority_apply’sband-option-missingwith nothing to fall back to, leaving everytriage_onlyissue in that repository — not just those with one band missing — re-entering the candidate set forever: #511’s starvation shape again, at #511’s own blast radius. The new check reuses the field lookup the pre-flight already made (issue_priority_options_any,lib/issue-priority.sh), so it costs no additional GraphQL call, and logs a warning worded distinctly from the existing “Priority field unresolvable” one. A repository missing only some of the four names is unaffected —issue_priority_apply’s own per-issue fallback (#534, above) still bands it. -
The Refiner no longer manufactures a block only a human can clear when it finds an item already adequately specified (agent-ops#670 Part 2, TD-PPagop-26082305). Its prompt’s “never write a second specification” rule left
needs-refinementas the only verdict for that case, and the resulting block’s ownunblock_condition— “a human must remove the hand-applied label” — named a state the Script’s own requirement 34e projection was about to create three seconds later: a deadlock the pipeline built for itself and could not exit under its own power (agent-ops#597, #598, #660, #666). Requirement 39c’srefinedverdict now covers re-affirmation: an item the Refiner judges already carries an adequate, unchanged specification — its own, the Enabler’s, or a human’s — isrefined, citing the existing specification’s URL (or reproducing its existing text) rather than declined. The Script’s recording needed no change —refinement_record_fieldsnever required the specification to be this cycle’s own write — so the fix is confined toprompts/refiner.mdand the spec; disagreeing with an existing specification is unaffected and still declinesneeds-refinement, escalating rather than being settled here. -
The Enabler’s
issue-closedeligibility (requirement 35a) no longer strands a human’s close when aneeds-refinementre-flag lands between the raise and the next Enabler pass (TD-PPagop-26082901). The reason was granted only when the item’s latest escalation was raised after its latest block, so a fresh re-flag — cheap and frequent (agent-ops#683) — moved the block past the escalation and left the close unable to satisfy eitherissue-closed(keyed on the raise) orthreshold(requirement 36b’s thrash guard refuses a second refinement without a human touch); the only exit was a second escalation asking the human to say again what they had already said (#849 → #905, #784 → #906, #813 → #910).ENABLER_ELIGIBLE_JQ(lib/cycle-state.sh) now also grantsissue-closedwhen the current block is aneeds-refinementre-flag raised after the escalation and noitem-refinedevent has landed since — the re-flag disputes the same, unchanged specification the escalation was about, so the human’s close answers it too. The exemption still only grants an examination, not an unblock:prompts/enabler.mdalready has the engagement verify the closed issue’s claim against reality either way. -
Dequeue diagnosis on a fenced node could not read a failed job’s log (agent-ops#1091):
gh run view --log-failedand the per-job.../actions/jobs/<job-id>/logsroute both resolve toproductionresultssa*.blob.core.windows.net, which the D24 egress fence blocks by design, leaving the Implementer’s merge-group diagnosis (and the Enabler’s own log reads) to infer a cause rather than read it. Bothprompts/implementer.mdandprompts/enabler.mdnow read the run-level endpoint instead —gh api repos/<owner>/<repo>/actions/runs/<run-id>/logs, which stays onapi.github.comand returns every job’s log as one zip — and name aForbiddennamingblob.core.windows.netas the fence itself rather than a credentials problem.deploy/docker/egress-allowlist.txt’s “Not here, deliberately” paragraph now records the Azure Blob hosts as a deliberate omission with this endpoint as the supported route, so the gap is not re-proposed as a widening of the allowlist. -
A crash-loop escalation retried after a failed filing could file a false alarm the instant the fault it described had already cleared (agent-ops#1074): the 2026-08-29/30 Ockham outage filed agent-ops#1070 six minutes after the network recovered, in the very cycle whose own Co-Ordinator attempt then succeeded — the retry’s verdict was computed before that attempt ran and so could never see the recovery it was about to produce.
crash_loop_escalate_or_defer(lib/enabler.sh) now files a verdict never before attempted immediately, exactly as before, but queues a deferred retry (or a fresh attempt that itself failed to file) forcrash_loop_refile_pendingto re-verify fromcleanup(), once every stage the cycle might run — Co-Ordinator included — has had its chance; a run a fresh union-log read then shows broken is dropped (crash-loop-dropped) rather than filed.crash_loop_retire_resolvedcloses the other half of the same gap, retiring an already-open Co-Ordinator-class escalation once its run has broken, with a comment naming the success that cleared it. Step 1b now runscrash_loop_retire_ resolvedbefore either filing call, and the function itself now also checks for a same-detail run already active anywhere in the union log regardless of its ownfirst_ts— both close a collision where a resolved run’s still-open issue gets rebound (viacreate_escalation_ issue’s live open-issue dedup) to a new same-detail run and is then retired out from under it, closing the alarm for that run’s entire remaining life. -
A node’s freshness is now a fact about what it has published, never about its own clock (agent-ops#602): on 2026-08-08 both laptop nodes reported themselves fresh for four days while
state-sync.sh pushwas failing the whole time, because the dashboard’s self row was built fromdateand a hardcodedfalserather than read back from anywhere.state-sync.sh fetchnow reads back this node’s own branch — already brought down by the same fetch that materialises every peer’s — into a local cache,.state-sync-published.json;lib/fleet.sh’s newfleet_publication_statusapplies the identical verdict (fresh/stale/ unknown) to that cache for self and to a peer’sheartbeat.jsonalike, so the two can never disagree. The threshold is nownode_stale_after_minutes(default 30) rather than a literal1800buried in the dashboard script.scripts/doctor.shgains a matching check:warnwhen this node has never confirmed a publication yet (not itself a fault),failonce a once-confirmed publication has gone stale — distinct from a genuinely idle node, which still publishes a heartbeat on its own schedule regardless of whether it has run a cycle.
Changed
Section titled “Changed”-
The implementation pipeline claims, resolves and defers tech debt as issues rather than as register files (agent-ops#879; D15 as revised #869, on top of the issue-backed band #875).
lib/candidate-select.sh’sclaim_branch_fordrops its tech-debt special case: a tech-debt selection’s item is a bare issue number like anyissuesone, so it claims and names its branchagent/<item-ref>the same way, andtech_debt_branch_prefixis deprecated — read only solib/claim.shand the gatherer/sweep scripts still recognise a repository’s pre-migration human tech-debt-claim branch, or atd/<ID>minted before this change, as not their own agent’s fresh claim. Resolving a debt item now means a real closing keyword plus a fencedtd-recordblock (issue,title,filed,summary,resolution) in the pull request body, which the squash merge writes intomain’s own immutable history — the permanent record that replaces the register file’s line in it. Deferring a shortcut noticed mid-implementation means a dedup-searched,pw::type:tech-debt-labelled issue plus aDefers: #nline in the same body, never a closing keyword; the Reviewer verifies eachDefers:link exists and still carries the label (requirement 30e).prompts/implementer.md,prompts/reviewer.mdand requirements 17a, 23, 24b, 25, 25a, 30d and 30e move with it. Neither thetd/namespace nor the frozentech-debt/directory is removed here; both retire with the register machinery (agent-ops#882). -
The landing audit record’s
head_shafield is renamedreview_commit_sha(requirement 8x, TD-PPagop-26082312): the value is unchanged — still the Approver’s standing review’s owncommit_id— but the old name read as the commit that landed, which it is not on every path. The record’shuman-vetogate entry is now derived from_handoff_blocking_reviewers’s own return (empty on every arm) rather than a hardcoded"clear"literal, and carries that list as a newblocking_reviewersfield beside its verdict, the same way theprotected_pathfield already names the paths it examined. The observable verdict does not change on any arm. -
The repository-review pipeline now files the debt it surfaces as
pw::type:tech-debt-labelled GitHub issues in the repository under review, rather than astech-debt/*.mdregister files committed inside the review pull request (agent-ops#876; D15 as revised 2026-08-28). Each issue is dedup-searched before it is filed (gh issue list --label pw::type:tech-debt --search …) and, where it mirrors a recommendation’s whole Intended end state, names that recommendation’sR-NNand the review folder in its body — the cross-reference the Co-Ordinator’sproject-reviewdedup reads (requirement 16). The review pull request lists every issue filed under aDefers:section instead of carrying a register diff, so it adds notech-debt/file at all; the only register edit it may still carry is an existing item’s frontmatter flip where the review found that item already resolved. The debt therefore reaches the implementation pipeline’sissuessource as soon as it is filed, instead of waiting for the review pull request to merge, and thetd/<id>reservation bookkeeping the review used to do disappears with it.docs/REVIEW-PIPELINE-SPEC.mdR12/R12a/R13 and acceptance checks 5, 7 and 8,prompts/project-reviewer.mdand the vendoredproject-reviewskill all move together. -
Seven timings sized against a once-an-hour cycle now derive from
schedule.cycle_interval_minutesinstead (requirement 1d, agent-ops#591):claim_ttl_hours,abandoned_draft_after_hours,disable_default_ttlandnone_selected_recheck_hoursre-express their old “a few cycles” intent against the actual cadence (accounting forschedule.cycle_hoursandexcluded_minutestoo, since either can widen the real gap between cycles past the bare interval), andcycles_retained,state_local_cycles_retainedandstate_local_streams_retainedhold their wall-clock retention window constant as that cadence moves rather than quietly shrinking it. The four thresholds take the worst-case gap between firings, since each has to outlast a quiet stretch; the three retention counts take the mean gap, since a cycle directory is written per firing — a distinction that matters only wherecycle_hoursorexcluded_minutesrestrict the schedule, and there it is the difference between a9-17, 15-minute installation keeping the 300 cycle directories its ~8.3-day window means and keeping 14.crash_loop_after’s intent is a literal count of consecutive failures, not a span of history, so it is unaffected and keeps its plain default. None of the seven carries a schemadefaultany more — absent, each is derived; a configured value is a floor under the derivation, never a ceiling, the same shapelock_stale_afteralready uses.claim_ttl_hoursandabandoned_draft_after_hourscarry a second floor beyond the cadence one (TD-PPagop-26082829): each also bounds a cycle’s own worst-case runtime, not only the gap between cycle starts —do_gcsweeps a claim (and its still-untouched, PR-less branch) pastclaim_ttl_hoursregardless of whether the cycle holding it is still running, andgather-abandoned-drafts.sh’s own candidacy race presumes that claim has not already been swept — so a fast cadence can raise either key’s cadence term but can no longer derive either below requirement 4f’s own stage-backstop quantity (stage_budget_lock_seconds, the onelock_stale_afteralready derives). On Poetic’s own 15-minute installation the cadence term alone would putclaim_ttl_hoursat 2 h andabandoned_draft_after_hoursat 1 h — both well under a cycle’s own worst-case runtime — so the runtime floor is what actually governs there: both derive to 7 h, higher than either key’s original flat default (6 h, 4 h), which is the fix working as intended rather than a regression.cycles_retainedgrows from 200 to 800 on the same installation to hold the same ~8.3 days of mirror history it always meant to, andstate_local_cycles_retained/state_local_streams_retainedgrow 1000 → 4000 and 50 → 200 the same way (TD-PPagop-26082830) — the last of which is the one whose retained volume is worth an order-of-magnitude estimate rather than only a ratio: roughly low hundreds of megabytes on a busy repository, comfortably insidemin_free_workspace_bytes’s 2 GiB pre-clone floor. -
The Co-Ordinator no longer treats a documentation-only item as a separate, lower-priority track (agent-ops#582, owner decision S1 on agent-ops#633).
prompts/coordinator.mdnow states plainly, beside the existingmodels.trivialmodel-routing rule, that a documentation-only item is ordinary selectable work — unparking #590, #600 and #601, none of which should have been held back on that premise. -
agent-cycle.shis no longer one 10,000-line file (agent-ops#771, discharging the cause of #770). Its ninety-six functions and the top-level blocks around them now live inlib/*.shbeside the modules they already worked with —lib/stage-attempt.sh(the Co-Ordinator stage-attempt sequence and the failure handling every stage shares),lib/approver.sh,lib/landing.sh,lib/enabler.shandlib/refinement.sh(their stages),lib/candidate-gather.shandlib/candidate-select.sh(the repo-ordering and gather loop, the claim loop and candidate selection),lib/standdown.sh(the stand-down reason ladder),lib/eligibility.sh(what this cycle is allowed to act on) andlib/manage.sh(--status,--disable,--enableand the rest) — leaving the file at 2,865 lines carrying the cycle’s spine and nothing else: argument handling, the lock, the ordered sequence of phases, and the exit path. Pure moves, landed one seam at a time with the affected tests green at each, and no behavioural change: every test that lifted a function out ofagent-cycle.shnow lifts it from its new home, and the implementation spec’s component list moves with the code. -
scripts/lint-shell.sh’s size guard now measures the union-xactually parses — a file plus everything it sources, transitively — rather than the file’s own length, which after #771 no longer says anything about what a lint costs:agent-cycle.shfell from 10,136 lines to 2,865 while the 26,262 lines-xre-inlines for it, and the more than 4.5 GiB they cost, did not move. It also suppresses SC2154 and SC2034 alongside SC1091 when it does drop-x, all three being artefacts of not following the sources rather than findings about the code, and still checked in full in CI, where the guard is switched off outright. The split does show up where it counts: linted without-x,agent-cycle.shnow completes in 634 MiB against a scheduler container’s 1,536 MiB ceiling, so the file that used to be skipped outright on a node is now checked on every one. -
The pipeline no longer names a human as the destination of an escalation or a landing where
escalation_autonomyormerge_autonomychooses that destination (agent-ops#679, discharging the debt #668 declared). Since #627 landedescalation_autonomy, “needs a human” and “the human gate” had been false atadjudicate-firstand at everymerge_autonomyrung abovehuman— and the wording is read by the actors themselves, so a stage told the destination is a person could not reason about the ladder it was actually standing on. Every line in the repository mentioning a human was read and placed in one of three bands: reworded where configuration now chooses (the escalation act is named, its target is not, and where the sentence must say where it goes it names the key), kept where it is a person’s at every setting — owner-only acts, a humanCHANGES_REQUESTED, hand-applied labels, thehuman-visibilitynotification cluster — and left alone where it is historical record.lib/refinement.sh’s runtime refusal string and theenabler-escalationlabel’s description (updated live on every repository the fleet has already created it in, not only inlib/labels.sh) are now true at both settings. Requirement 36a states the distinction outright: every escalation it names is owner-only at every rung, and requirement 36b’s refinement disagreement is the only one the key gates. Requirement 38’s opening sentence states its membership test as a consequence of the configured ladder rather than as a universal, naming #668 as the trigger to revisit it. No identifier changed, so there is no migration and no compatibility window;docs/VOCABULARY-SWEEP-679-AUDIT.mdrecords the band placement for every pattern found. -
Requirement 32 no longer promises
needs-humanas a synonym for the Reviewer’sblockedstatus (agent-ops#679). The synonym was never implemented — no code path ever parsed it — and requirement 32a’s!= readyfall-through already routes every non-readyending, an unparseable status included, down the sameattempt-failedpath, which is the tolerance the synonym claimed to provide. Nothing behavioural changes; the sentence promising it is gone from the spec and fromprompts/reviewer.md. -
Requirement 38b no longer assigns a Co-Ordinator-, Refiner- or Implementer-recorded refinement block’s issue to
enabler_assignee(agent-ops#639): it projectsblockedandblocked:needs-refinementlabels instead, mirroring the same lifecycle assignment used to. Assignment now means only “a human must personally act” — an actual Enabler escalation (requirement 36a) — never the pipeline’s own bookkeeping, so it can no longer be confused with the two. The Enabler’s escalation-link comment (requirement 36b, posted on the work item’s own issue) now carries a structuredBlocked-by: #<n>line naming the escalation issue, which requirement 34j’s existing parser already excludes the work item on — deterministic, rather than merely readable prose. Newscripts/sweep-legacy-refinement-assignees.shclears the assignments the old mechanism left behind on every still-open block that recorded one (21 cleared by hand on 2026-08-21 ahead of this fix; 14 more had accumulated inPoetic-Poems/agent-opsby the time this landed) — idempotent, safe to re-run against any repository at any time.blocked— unlike its reason label — is also a human’s own, hand-applied control, so it is projected through a read-before-write (refinement_label_project) rather than an unconditional add, the same guard the deletedrefinement_assignee_projectgave the assignment this replaced — in both the fresh path and the migration sweep — and a removal that silently fails when a block clears is retried every cycle by a new reconciliation sweep (refinement_blocked_label_stale), so a stuckblocked/blocked:needs-refinementno longer needs a human to notice it. Because the migration sweep has no event of its own to record whether a given run actually addedblockedor found it already there, a legacy block never offers the genericblockedup for release at all — only its reason label does — so a legacy-swept issue’sblockedis over-held rather than guessed at, and comes off only by a human’s own hand. -
Every
item-voida Co-Ordinator, Enabler or Implementer writes must now cite evidence in one of two checkable forms — a structured{ref, path, expect, pattern}shape, or a PR/commit citation naming the item — or, for a finishing-source item, corroborate directly against its own pull request’s live state; prose citing neither is refused rather than accepted on being merely non-empty (issue #413, WI-10). Also adds a machine-checkable alternative to the humanobsoletelabel: atmerge_autonomy_effective_levelagent-merges-all, an Enabler’sflag_obsoleteverdict on a stalled draft can be corroborated by a later, independent Enabler engagement’s own void, at least 24 hours apart, both citing structured evidence.unvoidedis untouched and gains no machine path. -
Every fleet flag (the fleet switch, the usage-limit flag, the merge-autonomy kill switch and a repository’s merge-budget freeze) is now read from GitHub at most once per flag per process, rather than once per reader: a cycle that resolves
merge_autonomy_effective_levelfor each repository spends one contents-API read on the kill switch instead of one per repository. A flag set or cleared elsewhere is therefore picked up by the next cycle rather than part-way through the running one; a flag this process itself writes or deletes is picked up immediately. -
Breaking:
config.json’sreviewblock is renamedproject_reviewand restructured: every tunable now lives underproject_review.defaults(installation-wide) and may be overridden per repository onproject_review.repos[]— each entry{"slug": "owner/name", ...}— rather than the old flat, installation-wide-only block. An installation with its ownconfig.jsonoutside this fleet must migrate itsreviewblock to the new shape before upgrading; seedocs/REVIEW-PIPELINE-SPEC.md’s Configuration section for the resolution rule and an example. -
docs/ROADMAP.md’s D18 row now documents thatlanding_arm’s no-queue fallback (gh pr merge --auto --squash) merges as soon as every required check is green, without waiting for a non-required check still running, and that an adopter who wants a check to hold a merge must mark it required (TD-PPagop-26082101, closednot-debt: documentation only, no behaviour change). -
config.schema.json’s entries forcycles_retained,state_local_cycles_retainedandstate_local_streams_retainednow say that a configured value below requirement 1d’s derivation is inert, and why: the floor preserves the span of history the base count was sized for at this installation’s own cadence, disk is bounded separately bymin_free_workspace_bytes(requirement 2.0c) and its own derivation (#904, still open), and theSTATE_SYNC_*overrides two of the three keys have are test-only, never an operator lever —cycles_retainedhas no such override, so a configured value is its only lever (owner decision, escalation #918: floor-never-ceiling stands for the count keys too; no behaviour change, requirement 1d’s contract paragraph unchanged; #901).