## What forced this
Every merge gate is fail-closed: a red required check holds `merge-gate`
down. Right for one bad PR, catastrophic when the *check itself* breaks
(a green-tree CodeQL that finds no code fails on every PR) — then
nothing merges, no single PR is "wrong", and the hourly per-PR `sweeper`
never names it.
## The call
A deterministic, no-LLM board-wide scan (`adw-jam-detector`) calls a jam
when one required check is red on ≥2 open non-draft PRs, and escalates
through an ungated issue so the alert reaches the owner even when every
merge lane is wedged.
## What we deliberately didn't do
Dropped the single-PR "blocked too long" heuristic: one blocked PR is
the gate working correctly, so it can't distinguish a jam from normal
operation — only the cross-PR count can.
## Evidence
Tally logic unit-tested locally against check names with spaces (`CodeQL
Advanced`); caught and fixed a `paste -sd', '` cyclic-delimiter bug that
mis-joined the affected-PR list. Escalation is idempotent (one open
`pipeline-jammed` issue, auto-closed on the next clean scan);
`adw-doctor` is woken only on the transition into a confirmed jam, never
on re-scans.
## Surface touched
`.github/workflows/adw-jam-detector.yml` (new), the `pipeline-jammed`
label in `.github/labels.yml`, one unhappy-paths row + subsection in
`docs/plans/AGENTIC-DEVELOPMENT.md`.
## If this ages badly
The `workflow_run`/`check_suite` edges are best-effort (GitHub
suppresses some self-triggered check events); the `*/30` schedule is the
load-bearing floor. If jams are caught late, tighten the cron or add a
p35-style harness to confirm which edges actually fire. Revert the
workflow to disable.
---
_Generated by [Claude
Code](https://claude.ai/code/session_01LABEHeVpg74oyZNtWLUWpB)_
Co-authored-by: Claude <noreply@anthropic.com>
281281| a spec claim is unproven | `planner` / `surveyor` | `/pioneer` | `needs:prototype`; a prototype proves or disproves it || a spec claim is unproven | `planner` / `surveyor` | `/pioneer` | `needs:prototype`; a prototype proves or disproves it |
282282| a Dependabot bump is semver-incompatible / MSRV-raising | `dependency-manager` | owner | escalate as its own issue; the bump waits || a Dependabot bump is semver-incompatible / MSRV-raising | `dependency-manager` | owner | escalate as its own issue; the bump waits |
283283| the cycle floods (WIP exceeded) or an agent loops | schedule | `sweeper` | enforce WIP, brake the runaway — the circuit-breaker || the cycle floods (WIP exceeded) or an agent loops | schedule | `sweeper` | enforce WIP, brake the runaway — the circuit-breaker |
284+| a required check breaks systemically — same check red on ≥2 PRs, every lane wedged | `adw-jam-detector` (failure-events + 30-min floor) | owner + `adw-doctor` | un-gated `pipeline-jammed` issue; doctor dispatched once |
285286Two invariants hold across every row: an agent never fakes a green gate to move aTwo invariants hold across every row: an agent never fakes a green gate to move a
286287PR (PROJECT-INVARIANTS §5), and an agent never resolves ambiguity by guessing — itPR (PROJECT-INVARIANTS §5), and an agent never resolves ambiguity by guessing — it
287288routes to the human via one of `needs:spec`, `risk:high`, or `needs:info`.routes to the human via one of `needs:spec`, `risk:high`, or `needs:info`.
291308Nothing needs a bespoke merge robot. The close of the loop is **GitHub's nativeNothing needs a bespoke merge robot. The close of the loop is **GitHub's native