/gauntlet:address-followupsfrom gauntlet
Works Gauntlet's durable follow-up queue end-to-end: reproduces claims, authors fixes, opens PRs, and hands them to gauntlet:campaign for merging.
Ships in gauntlet. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Invocation: Claude Code /gauntlet:address-followups; Codex $gauntlet:address-followups.
../campaign/references/followups.md owns the follow-up lifecycle, the three-tier autonomy threshold,
the resume-by-state list, and every store transition. Read it before touching an entry, and read it
from <skill-dir>/../campaign/references/followups.md, not from memory. This skill is the on-demand
entry point to that loop: it works the queue when the user asks for it, rather than only when a
campaign heartbeat has spare capacity to spend on it. An invocation from here holds no lease and drives
no run, so two of that loop's steps cannot mean from here what they mean to a run's driver;
followups.md, "WORKING A FOLLOW-UP", names both deviations, and Steps 2 and 7 below are where this
file carries them.
NEVER reconstruct the threshold, the conditions, or the legal transitions from this file. It owns only what it says here: which entries get picked up, in what order, which worker runs each step, and what happens to the PRs at the end. Everything else is a pointer, deliberately.
<checkout> is an input this skill receives, never a constant it knows. It is the checkout the
user named with the invocation, and the repository the session is already running in when they named
none — the same convention the sibling skills state (../followups/SKILL.md and ../ledger/SKILL.md,
step 1 of each). Neither host supplies it in an environment variable, so NEVER read one for it. Step 0
resolves it to an absolute repository root once, and that one absolute result is what every later
<repo-root>, every path derived from it, and every subagent prompt carries. No worker re-resolves it,
and none is handed a relative path or left to infer one from its own working directory.gh call made under this skill NAMES the repository it is about — the driver's own calls and
those of the subagents it dispatches alike. gh given no repository
resolves in whatever checkout the process is standing in, which need not be <checkout> —
../campaign/references/ci-derivation-spec.md, "--repo IS NOT OPTIONAL", owns that rule and campaign's
own call sites obey it (../campaign/references/pr-adoption.md pins the working directory;
../campaign/scripts/label-mirror.py passes --repo). Step 0 resolves the repository's <owner>/<name>
once, as <repo-slug>, and every gh invocation this file tells an agent to run carries
--repo <repo-slug> — this rule covers a gh call added here later exactly as it covers the ones
written today. A subagent stands
in its own working directory and cannot resolve the slug for itself, so <repo-slug> travels as data
in the prompt of every worker this skill dispatches (Steps 3 and 5), and each of those prompts is bound
by this rule for whatever gh calls that worker's job requires. The single
exception is Step 0's own resolving call, which cannot name what it is resolving and is pinned by its
working directory instead.<skill-dir> from the actual path of this active SKILL.md. NEVER depend on
CLAUDE_PLUGIN_ROOT, PLUGIN_ROOT, the current working directory, or a repository-relative path.<skill-dir>/../campaign/scripts/; its references are
<skill-dir>/../campaign/references/. Resolve both to absolute paths and pass those absolute paths
to every subagent.python3 <abs-path>/followups.py …. NEVER invoke one bare (../campaign/SKILL.md, "Bundled Scripts", owns
the rule and why).../campaign/references/runtime-adapter.md,
"Model classes".followups.md, "The two subagents are the load-bearing part"); running either in the
driver's context removes it.Claude Code: /gauntlet:address-followups (no args) | --id fuN | --limit N
Codex: $gauntlet:address-followups (no args) | --id fuN | --limit N
These are distinct modes, not freely-composable flags — the same convention ../campaign/SKILL.md's
"Args" block states for its own modes.
--id fuN works exactly that entry and no other.--limit N selects at most the first N resumable entries, in the order Step 1 fixes. Selecting an
entry is not the same as working it: a selected entry can still finish unworked, and Step 6 reports it
when it does.An invocation carrying both --id and --limit is invalid: REJECT it, tell the user those two flags
conflict, and select nothing and work nothing. The combination has no useful meaning — --limit caps
an ordered list while --id reduces that list to a single entry, so a cap over it is either redundant or
turns the invocation into a no-op. Because the combination is rejected, this file states no precedence
between the two flags anywhere, and none is to be inferred.
That rejection is not an instance of "When a command refuses — one rule, for every step". That section governs a command this file told an agent to run; here the arguments are rejected before Step 0, so no command has run, there is no stderr to relay, and no entry has been selected to leave unworked.
These are the only flags. The checkout is an input rather than a flag, and the Runtime adapter's
<checkout> rule above owns where it comes from — this list is not the skill's full set of inputs.
Every command this file tells an agent to run — every git, every gh, and every followups.py
invocation, wherever it appears below and whether the driver or a subagent runs it — can refuse.
Refusing means a non-zero exit or output that cannot be used: empty, truncated, or not the shape
the step reads. This section is the only rule for all of them. No step below restates it, none
overrides it, and none is exempt.
On any refusal, always:
../followups/SKILL.md and ../ledger/SKILL.md, final step of each).merged among them — and a guessed one destroys work nothing can rebuild.How far the refusal stops the invocation then depends on which command refused:
open-pr refuses after its PR is already open → the PR exists and the store does not name it.
Report that PR ref next to the entry id in Step 6, because the driver's memory of the pair dies with
the driver's context. Do not close the PR and do not re-attempt the record here.<checkout> the Runtime adapter defines:
git -C <checkout> rev-parse --show-toplevel. Carry that result as <repo-root>; nothing below
re-runs it.<repo-slug>: gh repo view --json nameWithOwner --jq .nameWithOwner, run with its working directory pinned to <repo-root>. This is
the one gh call here that names no repository, because it is the call that produces the name —
deriving it from the checkout is what ../campaign/scripts/merge.py does before its own first
gh pr view. Nothing below re-resolves it, and every gh call below carries --repo <repo-slug>.
Tested claim about gh itself, gh 2.96.0: GH_REPO does not redirect this call. The commands
quoted in this paragraph are the probe that was run, not calls this skill makes, so the rule above does
not reach them. With GH_REPO=cli/cli exported,
gh repo view --json nameWithOwner still printed this repository's own slug, and the same command run
outside any git repository failed with "not a git repository" rather than falling back to the
environment value; gh pr list in that same shell did honour GH_REPO, so the negative result is
this command's behaviour and not an unset variable. Re-run those three commands to falsify it.
Independently of that, an explicit --repo beats GH_REPO, so every call below is pinned whatever the
environment holds.<repo-root>/.gauntlet/followups.jsonl. It is user-local and git-ignored; it is
never created here. If it does not exist, report that there is no follow-up store and stop — an
empty queue and an absent store are different answers, and inventing the file hides which one it was.python3 <abs>/followups.py --file <abs-store> table. Print its stdout as-is.Ask the store which entries are where:
python3 <abs>/followups.py --file <abs-store> list --where state=<state>
Which states are resumable, and what each one resumes at, is owned by followups.md, "WORKING A
FOLLOW-UP". python3 <abs>/followups.py --help prints each subcommand's exact from-set→to edge, which
is the authority on the legal store move. Read both; do not retype either here.
Work the resumable entries in this order, which is this file's own rule:
in-pr — a PR is already open for it and may be sitting outside the campaign gate. Finishing
that costs one reconcile and closes the largest hole; starting new work while it is open widens it.accepted, then self-accepted, then reopened — the decision is already made and only the PR is
missing.corroborated — investigated already, so it resumes at the ACT decision, not at another
investigation.candidate — the only state that starts with an investigation.refuted is not picked up. It is re-investigated only when new evidence may overturn it, and an
invocation of this skill supplies none. rejected is the user's terminal ruling and is never resumed.
held is not picked up either: its ACT decision is already recorded and it is waiting on the user, so
it is surfaced in Step 6 with its question and never re-decided here. The store enforces that rather
than trusting it — no edge from held opens a PR.
Surfacing one takes an enumeration of its own, because the work list above can never contain it. Run the same command for the state it is in:
python3 <abs>/followups.py --file <abs-store> list --where state=held
Carry the ids it prints as the surfacing list — a second list, never worked, never dispatched — and
fetch each entry with python3 <abs>/followups.py --file <abs-store> get --id fuN, which prints the
fields the hold edge wrote. Every entry on it is one no step of this invocation touches: at Step 1
the only way an entry can already be held is that an EARLIER invocation held it, since this
invocation's own hold happens later, at Step 4. Step 6 reports the surfacing list whether or not Step 4
ran at all, and an empty list is reported as none. --limit does not cap it — that flag caps the work
list — and --id fuN reduces it to that one entry when that entry is the held one.
At most one of --id and --limit can have reached this step — the Args block above owns which
invocations are legal. Apply whichever one was given after ordering, and say what was left unworked
and why. A skill that silently stops at a cap reads as "the queue is clear" when it is not.
A requested --id that reaches no work is a REPORTED result, never an empty run. --id names the one
entry the user asked for, so when the ordering above leaves it out, say so, and say which case it was:
there is no entry with that id, or the entry exists in a state this skill does not resume — name
that state. Neither case is a refusal — list prints nothing and exits 0 for both — so "When a command
refuses" never fires and nothing else here would ever mention it. Tell the two apart with list --where id=fuN, which exits 0 either way: no output means no such entry, and the id echoed back means the entry
exists, whereupon get --id fuN --field state names the state to report. This is not Step 6's
unworked list, which covers entries this skill selected and then left unworked; an id that never
entered the work list is a different case and is reported regardless.
Tested claim about this file's prose, not about the tool: the two commands in the paragraph above are
shorthand, expanded by ../campaign/SKILL.md, "Bundled Scripts". Pasted verbatim into a shell,
list --where id=fu1 and get --id fu1 --field state were each observed to exit 127 with command not found. Both full forms are written out in this file: list in the synopsis block at the head of this
step, and get in the surfacing-list paragraph just above. Re-run either paste to falsify this.
in-pr entry against its live PRAn in-pr entry names the PR addressing it, and that PR may have moved since the entry was written.
followups.md requires the move to be recorded in the turn that saw it, because the driver's memory
of it dies with the driver's context. Read the PR once —
gh pr view <ref> --repo <repo-slug> --json state,labels — and act on what it says. The four cases
below are the whole set of things a successful read can say; anything else — a non-zero exit, empty
output, output missing either field — is a refusal and is handled by "When a command refuses", not by
guessing which case it was:
python3 <abs>/followups.py --file <abs-store> merged --id fuN. Put that command's
output in Step 6's report.closed-unmerged --id fuN. The entry is then eligible for Step 5 in this
same invocation. Tested claim about this file's prose, not about the tool: that command is shorthand,
expanded by ../campaign/SKILL.md, "Bundled Scripts" — the merged bullet directly above shows the
expansion. Pasted verbatim into a shell, closed-unmerged --id fu1 was observed to exit 127 with
command not found. Argparse's exit 2 for a missing --file is reachable only by taking the
interpreter and script path from that convention while declining --file from the same convention.
Re-run both to falsify this.gauntlet-run-* label → no campaign owns it, so it is sitting outside the gate.
Add it to Step 7's hand-off.gauntlet-run-* label → a run already owns it. Touch nothing — not the PR,
not its labels, not the entry. Report it and move on. A run's PRs are its own
(../campaign/references/run-identity-and-lease.md, "Isolation invariant").For every selected entry whose state resumes at an investigation, dispatch one subagent per entry,
in the model class ../campaign/SKILL.md, "Worker Dispatch — logical model class", assigns the
Follow-up investigator. Read that class there; this file does not restate it.
Investigation is read-only with respect to the repository and the store's accessor locks its own writes, so these may be dispatched as one parallel batch. Nothing later in this skill may be.
Each prompt carries, as data:
<repo-slug>, which the worker never resolves for itself and which the Runtime adapter's
repository-naming rule requires on any gh call it makes;python3 <abs>/followups.py --file <abs-store> get --id fuN;followups.py path and the absolute --file store path;../campaign/references/followups.md, which the worker reads itself.Each worker's job is to reproduce the claim or show it cannot happen, and to record the outcome with
its evidence through corroborate or refute. It changes no tracked file, opens nothing, and publishes
nothing.
A refutation is the most valuable outcome, not a failure. A worker that can only ever confirm is a
rubber stamp with a longer runtime, and this repository has already spent review rounds "fixing" a bug
that was never real (AGENTS.md/CLAUDE.md, "Your OWN diagnosis is a claim too").
The driver NEVER investigates inline, and never skips from a claim straight to a fix.
Only a corroborated entry reaches this step. The other states arriving at Step 5 already carry a
decision, and re-deciding one would overwrite a ruling that was already made.
followups.md, "THE AUTONOMY THRESHOLD", owns the conditions and what each one does; the ACT edges refuse
the step when any is asserted without evidence, and refuse a verdict they are not the edge for. Read
them there and evidence each one. This file does not restate which conditions route and which one waits,
nor the form the verdict takes.
A corroborated entry is worked, not surfaced instead of worked. The default outcome of this step is
take-up followed by Step 5, and the report says what the fixer is doing. The one class the threshold
holds back waits for the user's ruling and is named in Step 6 with its question.
take-up, then Step 5.hold, which records the same evidence and leaves the entry
in held; then record the question for Step 6 and move to the next entry. Do not leave it silently
undone, and do not re-decide it on a later invocation without new evidence. Do not attempt Step 5 for
it — no edge from held opens a PR, so the store refuses that rather than relying on this line.accept. It is the user's edge and the only way into accepted.publish. There is no autonomous path to it, from any state.Four kinds of entry reach this step. Each already carries its decision, which is why only the first came through Step 4:
self-accepted);self-accepted entry that was already in the store — the driver took it up in an earlier session
and no PR exists yet;reopened entry — its PR died, so it resumes at opening the replacement PR;accepted entry whose ruling authorized a FIX. The entry records when the user decided and
not what they approved, so when it cannot be told whether the ruling was for a fix or for
publication, surface it and work the next entry. Publication is Tier 3 and is never this skill's
to do.None of them is looked up against an existing PR first: at this step there is no durable follow-up-to-PR
key to look one up by, so an interrupted earlier session can leave a duplicate PR here. That gap is a
known non-goal of the loop, owned by followups.md, "Same-run idempotency is a deliberate non-goal" —
do not invent a reconciliation for it.
For each, dispatch one subagent in the model class ../campaign/SKILL.md, "Worker
Dispatch — logical model class", assigns the Follow-up fixer for the state of the entry in hand —
that table splits the fixer by entry state, so match the row to this entry before dispatching rather than
reading the first row that names the worker. This file states no class of its own.
Strictly one at a time. Finish an entry's PR before starting the next entry's fix. One follow-up per PR, never a grab-bag: a PR bundling several is one no reviewer can reason about, and its partial rejection strands the rest.
../campaign/references/fix-subagent-contract.md. The follow-up fixer that opens a new PR is
outside that file's three materializer roles, so its prompt is assembled here rather than through
worker-prompt.py.<repo-slug> — plus the entry itself. It resolves none of them for itself. This worker runs gh (it
opens and labels the PR, below), so its prompt is one of those the Runtime adapter's repository-naming
rule binds; that rule is stated once, there, and is not restated here.followups.md, "APPLICABLE →
take-up, then a FIX SUBAGENT that opens a PR". Hand the worker a worktree branched from that base.gauntlet-authored label,
ensuring the label first with gh label create gauntlet-authored --repo <repo-slug> --force because
gh pr create --label fails without creating the PR when the label is absent (the same precondition
../review/SKILL.md states where it opens PRs).
Without it, adoption reads the PR as external and campaign's own later repair of the PR it authored
is blocked (../campaign/references/pr-adoption.md, pr_origin).followups.md, "APPLICABLE → take-up,
then a FIX SUBAGENT that opens a PR", owns that requirement and why nothing else can carry the value.
Everything downstream of the dispatch reads it: the record below, Step 6's report, and Step 7's
hand-off. A worker that returns without a usable reference leaves a PR the store cannot name — do not
guess one and do not go hunting for it; report it in Step 6 the way "When a command refuses" requires
an open-pr that never recorded its open PR to be reported.python3 <abs>/followups.py --file <abs-store> open-pr --id fuN --pr <ref>, with <ref> the value the
worker returned.Report before Step 7, because Step 7 ends this skill and anything unsaid is lost with it. For every entry touched, give its id, its title, and its outcome: reconciled, corroborated, refuted, taken up with its PR, or surfaced for a ruling.
Step 1's surfacing list is reported here too, and NOT ONE of its entries was touched. Every step
between Step 1 and here skips a held entry by design, so "every entry touched" reaches none of them and
this is the only line that does. Give each the same id, title, and outcome — surfaced for a ruling — from
what Step 1 fetched.
A taken-up entry carries its ACT disclosure in that outcome, never in the question bullet below — an
entry the threshold routes is disclosed and dispatched, so it raises no question for that bullet
to hold, and "taken up with its PR" on its own reads exactly like an entry every condition held for. What
that disclosure must say is followups.md, "Surfacing them" — stated once there, for this step and
campaign's final report, the only two reporting steps that owe it. Report it from there for every entry
disposed of on its own, whichever invocation disposed of it — the ones Step 4 took up, the ones Step 4
held, and every entry on Step 1's surfacing list, which an earlier invocation held in exactly the same
way; do not reconstruct it from this step.
Then:
--limit, an unresumable state, a dispatch that failed, a
command that refused and which one, a PR another run owns);held state is waiting on;Collect every PR this invocation opened, plus every open PR Step 2 found sitting outside the gate. As
the last action of the invocation, hand them to campaign in one invocation with bare #PR
arguments:
Claude Code: /gauntlet:campaign #<pr> #<pr> …
Codex: $gauntlet:campaign #<pr> #<pr> …
Campaign resolves its OWN checkout, so hand it <repo-root> as that checkout alongside those
arguments. It inherits nothing from Step 0: it re-resolves a checkout at every entry of its own
(../campaign/SKILL.md, "At every entry/resume"; ../campaign/references/run-identity-and-lease.md,
"Run identity and concurrency"). Handed only the PR numbers, it may therefore resolve a different
repository than Steps 0 through 6 worked — <checkout> is an input this skill receives, so the
repository it named need not be the one the session is standing in. Campaign's Args block has no
checkout operand, so <repo-root> is named in the invocation's text and is never added to the #PR
list.
Bare #PR arguments start a new run that adopts those PRs
(../campaign/references/run-identity-and-lease.md, "Resolving a heartbeat"). It therefore takes no
existing lease and cannot collide with a run another driver is already driving. Do not try to adopt
into a live run from here, and do not run pr-adopt.py directly.
Every PR then faces the same review gauntlet as any other. That is the point of self-accepted rather
than accepted: this skill may take a follow-up up on its own, but the PR it produces is judged by the
independent gate, never self-approved.
If there is nothing to hand over, invoke nothing and stop after Step 6. Invoking campaign ends this skill — the campaign drives its own loop from there.
accepted one anyway
would find the store offers no edge back to an investigation at all (followups.py --help owns each
subcommand's from-set)..gauntlet/followups.jsonl. followups.py is the only door; every concurrent run
writes that one file and nothing can rebuild a lost entry.accept for the user, and NEVER publish. An issue is a published claim made in the user's
name (followups.md, Tier 3)..gauntlet/. It is driver bookkeeping, not repository content. Stage
only the source files a fix touches, by explicit path.followups.py add — it is evidence for a future
entry, not a substitute for the work in hand.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub lestrrat-ai/claude-code-plugins --plugin gauntlet6 skills in this plugin
/campaignGates PRs to merge. A self-looping review-to-merge campaign: existing PRs are adopted into a run (pass PR numbers, or discover this run's labelled PRs), each PR is triaged to a review tier, and a per-PR review gauntlet (tier-dependent fresh, context-isolated SATISFIED verdicts on the whole PR diff, reviewed one at a time) plus event-driven CI monitoring gate an auto-merge. Multiple isolated runs (each keyed by a run-id, with a lease so only one agent drives each) can run concurrently in one repo. Drives its own loop through the active host's heartbeat or bounded-wait mechanism — invoke once. Campaign never writes fixes from scratch; to find issues first use gauntlet:review. Args (distinct modes): #PR... | --new #PR... | --run ID | no args/copilot-address-reviewsEvaluate and address GitHub Copilot PR review items for a GitHub pull request. Use when user provides a GitHub PR link and wants Copilot review comments checked, verified, fixed, committed, and summarized. Fetch review items with `gh`, verify each claim against source/tests before changing code, ask user before making subjective or constraint-driven changes, then work items one by one./followupsShow Gauntlet's durable follow-up queue through its existing read-only table command. Use when the user asks to list or inspect Gauntlet follow-ups, deferred work candidates, or hidden and rejected follow-up entries./ledgerShow a Gauntlet campaign ledger through its existing read-only table command. Use when the user asks for campaign status, a campaign ledger, PR state for a named or current campaign run, or hidden, merged, and aborted campaign entries./reviewReports findings; by default makes no changes. A two-pass adversarial code review focused on security, API consistency/symmetry, and user experience. Pass 1 is hostile (assume the worst, surface everything). Pass 2 is a neutral audit that confirms, adjusts, or refutes each finding. Use when the user asks for a hostile, skeptical, or hard review — not a friendly pass. After the report there is an opt-in handoff to gauntlet:campaign — it can open one PR per confirmed fix (implementing the fixes) and hand them to campaign to gate and merge; decline and it stays report-only, making no source/tracked-file or GitHub changes (it may write ephemeral `.gauntlet/tmp` review scratch).Other plugins' skills for the same job