## What forced this
The board stopped merging for roughly five hours with a fully approved
PR sitting in it. #112 had both verdicts, a green merge-gate, a current
branch and auto-merge armed, and would not merge. Three separate
mechanisms had to be cleared by hand before it did, and each one was
invisible from inside the repository.
## The call
Every brake in the cycle must be something a PR can clear by being
correct. `stalled` was not: it is the sweeper's diagnosis that a PR has
stopped moving, it counted as a merge blocker, and the hourly sweep
reapplied it to the PR it had just blocked. A reviewer that returns
without a verdict was not: the label is the contract, the exit code is
not, and a job that skipped silently was recorded as a passed
mission-critical gate. A code-scanning configuration that stops
reporting was not: it goes stale rather than away, and a path-skipped
scan produces "not found" rather than "skipped", so a docs-only PR could
arrive holding a neutral check nothing in the repository could see or
clear.
## What we deliberately didn't do
Did not restore `rust` to the CodeQL matrix, though the checklist
condition looked met once the workspace landed. The crates are 34 lines
of stubs, and a scan with nothing to analyse is the original failure — a
red rust scan on every PR is the same deadlock from the other side. Did
not give the settings audit any write capability, though the App now has
the scope: an agent that can rewrite the rules judging it undoes what
CODEOWNERS exists to enforce.
## Evidence
Clearing `stalled` alone took #112's merge-gate from failure to success
with no other change, and at the time every one of five open PRs carried
the label. The reviewer no-op is measured: 18.8s, two turns, zero tool
calls, no comment, no label, conclusion success. The stale
configurations were `language:rust` at `21a300aa` and a `python` entry
over a single prototype file, against `language:actions` scanned the
same hour.
## Surface touched
Five ADW workflows, two agent charters, and one new shared label source
under `.github/adw/`; closes #113 and #114.
## If this ages badly
If the label set needs a blocker back, it goes in
`.github/adw/gate-labels.sh` and both readers pick it up. If the verdict
assertion proves too strict — a reviewer legitimately ending without a
verdict — the case to add is a third accepted label, not removing the
check. The audit workflow is read-only and can be deleted without
consequence.
---------
Co-authored-by: Claude <noreply@anthropic.com>
75754. **Keep the board honest.** Fix cards stranded in the wrong column, milestones4. **Keep the board honest.** Fix cards stranded in the wrong column, milestones
7676 with stale membership, and `blocked` issues whose blocker already closed. with stale membership, and `blocked` issues whose blocker already closed.
7777 `sweeper` brakes runaways; you keep the *structure* true. `sweeper` brakes runaways; you keep the *structure* true.
86+ Clear the label only when the blocker was actually **satisfied** — an issue
87+ closed as completed, a PR merged. Closed is not the same as done: a PR closed
88+ unmerged or an issue closed as not-planned means the dependency was abandoned,
89+ and routing the dependent slice as buildable would send a builder at work
90+ whose premise no longer holds. Re-anchor or close that slice instead.
78915. **Re-sync the roadmap.** Refresh `docs/plans/*` tables to match the current5. **Re-sync the roadmap.** Refresh `docs/plans/*` tables to match the current
7992 spec, catching any a dropped `plan-spec` left stale. This re-syncs the roadmap spec, catching any a dropped `plan-spec` left stale. This re-syncs the roadmap
8093 doc; it does not by itself reopen a rework work-order for a modification-delta the doc; it does not by itself reopen a rework work-order for a modification-delta the
1717 to rebuild or close, so blocked PRs don't linger stale. to rebuild or close, so blocked PRs don't linger stale.
18183. Enforce limits: if too many PRs are in flight, hold new `ready`/`codex` work3. Enforce limits: if too many PRs are in flight, hold new `ready`/`codex` work
1919 (count both builders' queues); if an agent has looped or reopened the same PR (count both builders' queues); if an agent has looped or reopened the same PR
30306. **Gate readiness and scope.** Route to a builder (step 7) only a *single*,6. **Gate readiness and scope.** Route to a builder (step 7) only a *single*,
3131 unambiguous, spec-covered deliverable — one walking-skeleton slice with **no unambiguous, spec-covered deliverable — one walking-skeleton slice with **no
3232 hold label**. `ready`/`codex` are mutually exclusive with every hold — hold label**. `ready`/`codex` are mutually exclusive with every hold —
33- `blocked`, `needs:info`, `needs:spec`, `needs:breakdown` — because a builder
3435 fires on `ready`/`codex` alone and would launch work that isn't ready; a held fires on `ready`/`codex` alone and would launch work that isn't ready; a held
3536 issue gets its hold label and *no* builder label. If it is ambiguous, issue gets its hold label and *no* builder label. If it is ambiguous,
3637 `needs:info` with one specific question (and no `ready`/`codex`). If it is **multiple `needs:info` with one specific question (and no `ready`/`codex`). If it is **multiple
5859 specific file it changes — a vague "improve the workflows" is `needs:info`. specific file it changes — a vague "improve the workflows" is `needs:info`.
5960 A change to the **gate itself** (`.github/rulesets/**`, `CODEOWNERS`, A change to the **gate itself** (`.github/rulesets/**`, `CODEOWNERS`,
6061 `adw-gate.yml`, `adw-automerge.yml`, `.claude/settings.json`) is **owner-only**: `adw-gate.yml`, `adw-automerge.yml`, `.claude/settings.json`) is **owner-only**:
61- leave it unrouted and say so — no builder may edit the rules that judge it.
62+ no builder may edit the rules that judge it. Label it `blocked` and say in one
63+ line that the blocker is the owner. A note alone is not a route — nothing
64+ reads prose, so an unlabelled owner-only issue is the same silent void as an
65+ unrouted one, just with an explanation nobody consumes.
62668. File it into the **current** milestone if it fits the wave; otherwise leave it8. File it into the **current** milestone if it fits the wave; otherwise leave it
6367 unmilestoned for `planner`. Never create a milestone — that is `planner`'s unmilestoned for `planner`. Never create a milestone — that is `planner`'s
6468 alone. Place the card on the board. alone. Place the card on the board.
69+9. **Exit with a route, always.** Every issue you finish carries exactly one of:
70+ a builder route (`ready`/`codex`), a hold naming what it waits on
6780The **Issue** (labels, a short restated acceptance checklist, links) and itsThe **Issue** (labels, a short restated acceptance checklist, links) and its
66# Green iff BOTH review verdicts are in (`reviewed` + `security-cleared`) AND no# Green iff BOTH review verdicts are in (`reviewed` + `security-cleared`) AND no
77# blocking label is present. Re-runs on every label change so the gate re-decides# blocking label is present. Re-runs on every label change so the gate re-decides
88# the moment a reviewer posts its verdict.# the moment a reviewer posts its verdict.
4683 if [ -n "$held" ]; then echo "::error::merge held by label(s):$held"; exit 1; fi if [ -n "$held" ]; then echo "::error::merge held by label(s):$held"; exit 1; fi
88# The reset job strips stale verdict labels first (except sticky `risk:high`), so# The reset job strips stale verdict labels first (except sticky `risk:high`), so
99# a new push can't inherit a prior review's pass — the reviewers re-earn it on the# a new push can't inherit a prior review's pass — the reviewers re-earn it on the
88171injection, supply chain. Do not merge.injection, supply chain. Do not merge.
89172Post ONE terse PR comment: only real findings as one-line bulletsPost ONE terse PR comment: only real findings as one-line bullets
90173(file:line — the risk), most severe first; a clean pass is one line.(file:line — the risk), most severe first; a clean pass is one line.
174+The comment's FIRST LINE must begin with exactly
175+ `Security review: ${{ github.event.pull_request.head.sha }}` — the
176+workflow proves this job reviewed THIS commit by finding that prefix
177+and that sha, and a comment without both reads as if you never posted.
91178Then apply your verdict: if nothing high-severity add `security-cleared`;Then apply your verdict: if nothing high-severity add `security-cleared`;
92179on a high finding add `risk:high` and ensure `security-cleared` ison a high finding add `risk:high` and ensure `security-cleared` is
93180absent (holds the merge for the owner).absent (holds the merge for the owner).
94181You are a mission-critical gate.You are a mission-critical gate.
95182claude_args: --model claude-opus-4-8 --effort high --dangerously-skip-permissionsclaude_args: --model claude-opus-4-8 --effort high --dangerously-skip-permissions
281-| CI is red | CI gates | `sweeper` (hourly) | re-kicks `builder` to self-heal; brakes `stalled` if no progress |
281+| CI is red | CI gates | `sweeper` (hourly) | re-kicks `builder` to self-heal; `blocked` if no progress — `stalled` reports a stall, it does not hold the gate |
282282| review requests changes | `reviewer` | `builder` via `adw-revise` | revise on the same branch → re-review on push || review requests changes | `reviewer` | `builder` via `adw-revise` | revise on the same branch → re-review on push |
283283| PR green but unmerged / conflicted / `ready` with no branch | schedule | `sweeper` | re-kick if tractable, else label `stalled` with why || PR green but unmerged / conflicted / `ready` with no branch | schedule | `sweeper` | re-kick if tractable, else label `stalled` with why |
284284| change is high-risk / high-severity | `security-reviewer` | owner | `risk:high` → **touchpoint 3**; never auto-merges || change is high-risk / high-severity | `security-reviewer` | owner | `risk:high` → **touchpoint 3**; never auto-merges |
334334 job that reads the PR's labels and is green only when both review verdicts are job that reads the PR's labels and is green only when both review verdicts are
335335 in (`reviewed` + `security-cleared`) and no blocking label in (`reviewed` + `security-cleared`) and no blocking label
3393493. The reviewers cast their verdict **as labels**, not approvals — deliberately.3. The reviewers cast their verdict **as labels**, not approvals — deliberately.
340350 `builder`, `reviewer`, and `security-reviewer` are one GitHub identity (the `builder`, `reviewer`, and `security-reviewer` are one GitHub identity (the
341351 App), and GitHub forbids approving your own PR, so a required *approval* could App), and GitHub forbids approving your own PR, so a required *approval* could