pi-gauntlet
v9.1.4
Published
Opinionated, gated workflow skills, subagent personas, and runtime extensions for the pi coding agent.
Downloads
21,560
Maintainers
Readme
pi-gauntlet
The gated workflow for the pi coding agent: brainstorm, plan, implement, verify, ship - each stage a gate the next can't open until it closes.
The problem
Point an agent at a task and let it loop until done - that's the easy 5%. LLMs are more a compressed library with a sampler on top than an independent mind: they produce fluent analysis faster than humans can audit it, and humans can't efficiently unravel that flood of output from the authenticity of a sound idea. So the agent quietly drifts from what you asked, and by the time you look, the diff is too big to honestly review.
It is a model problem - one-shotting an idea makes a great demo, not a product. But no better model fixes it on its own: Cursor, Claude Code, and Codex all drift the same way on long tasks, because nothing in a bare loop confronts output against original intent, and a model cannot audit itself - the same blind spot that wrote the bug will happily approve it. A weak generator needs a strong harness - because fluency is not correctness.
Why pi-gauntlet exists
pi-gauntlet is the scaffolding that makes the loop hold: brainstorm → plan → implement → verify → ship. Gates between phases are automated checks, not signatures to collect - a multi-model spec critique, an adversarial code review, and a closing conformance check that confronts the finished diff and docs against your original verbatim prompt, not the plan that got derived from it. The agent can't wave itself through a gate, and you're not rubber-stamping each step by hand.
Human judgment is spent on the two decisions that need it - what to build, up front, and how to land it, at the end. The middle runs without pausing for you. The spec and docs get committed to the repo, so the next change starts from ground truth, not a blank slate.
Part of the pi agent toolkit
Four independent extensions for the pi coding agent, each owning one concern of running agents seriously:
- pi-quiver - capabilities (ground-truth ingestion: fetch, doc conversion, session tools)
- pi-cohort - coordination (delegate to focused child agents)
- pi-condense - context economy (prune context, keep it recoverable)
- pi-gauntlet - process (this repo: the gated brainstorm→ship workflow)
pi-gauntlet's only hard dependency is pi-cohort - every gate that dispatches a reviewer or an implementer does it through pi-cohort's subagent(). pi-condense is not required, but a long gated run generates a lot of tool output; pruning it as you go is what keeps that run affordable.
What a run looks like
Concretely, one change through the gauntlet:
- (Optional) Before there's even a spec,
/skill:shape-ticketcan create one tracker issue or repair a comma/whitespace list of issue refs - shaping each into a Context/Problem/Idea/Acceptance Criteria ticket, grounded by a repository audit, an AC integrity check, and a cheap council roast. Repair finishes preparation for all tickets before presenting exact-diff confirmations sequentially in ref order; each approval writes that ticket before the next gate, and may include one optional gated comment for a Reporter note or overlap evidence. The audit checks factual claims, Idea fit, AC mechanisms against cited repo guidance, and already-stated observable legs in configured sibling checkouts. It reports in-motion work and attempts a best-effort scenario through authorized current-system reads, without promising reproduction or a fix; missing access or nothing to observe is reported, not a new approval gate. Implementer detail moves into the gated Reporter note; brainstorming reads that note with the ticket so the spec retains the detail. A failed roast is retried once, then surfaced inline at the gate if it fails again. It's a tool, not a phase: no worktree, no plan/phase tracker, runs from any repo state. The agent may start it on its own when the ask is "file a ticket" or another skill routes there; the write still waits for your yes on the presented diff. Similarly,/skill:chase-bugtriages a raw bug report into an evidenced verdict - and can hand off to shape-ticket, brainstorming, or a bounded hotfix - before any spec exists. - Opt in with
/skill:gauntletand describe the change. The command is the reliable discovery-and-entry path; explicit prose requesting brainstorming or the gauntlet also supplies consent when the skill is already loaded or an available instruction or route identifies it. An ordinary implementation request or an agent recommendation is not consent. A leading run of GitHub references (#N,owner/repo#N, or a/pull/Nor/issues/NURL), separated by whitespace or commas, resolves each reference as a PR first: related open, same-repository, non-fork PRs on one base form one rework subject, including drafts. Admission runs in listed order and relatedness is checked before provisioning; the first retained PR is home, whose existing branch rebases onto the fetched PR base by default, then member commits replay onto it in listed order. The first intent wordmerge-forwardopts out and keeps the merge path. An unresolved conflict after its scoped helper aborts that step and continues to the spec with the repair as Task 1. A single non-PR reference follows the ticket path. The first non-reference token starts intent text; mid-sentence references and other ticket/free-text subjects keep their existing paths. The combined code, PR-carried specs, claims, and review threads are the brainstorm input, with each PR's provenance retained; only home's bound ticket supplies acceptance criteria, while member tickets supply context. A single PR retains the same rework path without member replays or a close offer. The combined state is judged against constraints from the fetched current base HEAD, not the fork point or the PRs' proposed policy edits; see the PR-subject contract and PR-head worktree owner.brainstormingsets up an isolated worktree (on the existing branch for PR rework), explores the codebase, and turns the subject into a written spec - when its recon finds a cited case that the ask is the wrong change (misdiagnosed, wrong-sized, already solved, a band-aid, or cutting across a sound pattern - including a repo convention that is itself debt) and can name the alternative, question one is a framing question (as framed,pivot: <alternative>, orsmaller or none); otherwise it opens with one sentence naming what it checked, and every approach it proposes ends with aPattern:line naming what it follows or cuts across; when the run starts from a ticket, brainstorming applies the shared definition and carries acceptance rows verbatim with a disposition (in-scope,deviates:,deferred:,elsewhere:for a row another repo's part delivers). Scope cuts come only from your answer to a cut question and are listed at the gate. Conformance checks in-scope functionality;/skill:check-deliverychecks delivery against the configured target. A multi-model critique runs on it automatically. If the spec replaces a known prior spec, brainstorming marks the predecessor with a> **Superseded by:**banner under its title (default format, syntax overridable via.pi/gauntlet.md; candidates come from brainstorming's scout recon, never a mechanical sweep). You read and approve the spec - human gate 1. Rows 1/2 approve and pick the plan/loop engine respectively; row 3 explains the council audit; row 4 approves the content only: it writes**Engine:** deferredunder**Amend-grant:** none, pushes the branch, opens a draft PR carrying just the spec, prints the URL, and ends the flow - no plan, no loop, no handoff brief. For a coordinated spec, it first pushes every companion branch to origin, then opens one home draft PR; it creates no companion PRs. To continue, start a fresh session and run/skill:gauntlet #<N>with the draft PR number. For a coordinated spec, the run reconstructs the recorded companions from their origin branches before re-presenting the implementation gate; the publication and re-gate owner defines all-member preflight, recovery, and cleanup. After confirming the live remote and local branch match the worktree commit, cleanup removes an owned tree and conditionally deletes the local branch at that pinned commit. A host-owned checkout or failed remote check keeps tree and branch, with a per-repo reason. Row 4 is withheld on a PR subject (Withheld: draft PR - #N already exists) and when the branch's diff against the default branch is not spec-only. On re-entry, the run classifies the PR from its diff alone: one added spec carrying the marker plus banner-only predecessor edits re-presents the gate with 1/2 (3 only when the spec commit carries a council audit) and skips gather, questionary, council, and scout; a spec-only diff without the marker printsspec-only PR without the gate marker - running lint and counciland takes the normal brainstorm path with the carried spec as the draft; any other diff takes the rework path. Approval at that re-gate writes**Engine:**,**Amend-grant:**, and**PR:** <owner/repo#N>as a new commit on the PR branch and chains into planning or the loop as usual. Before approval, PR rework's sole write/run exception outside the spec directories permits only the base sync (rebase or merge), each member replay or merge, their conflict helpers' edits to the conflicted files, and their scoped conflict tests; other subjects have no implementation code yet. - Choosing the plan engine (row 1) runs
planning, which decomposes the approved spec into atomic, independently-verifiable tasks, grouped into parallel waves where they don't touch the same files. Choosing the loop engine (row 2) runsloop execution: the plan phase is skipped and a stamped acceptance-criteria ledger replaces the task plan. Both engine rows auto-apply amends by default;--amends-stopretains amendment review. Both engines test against a small hand-built input when the named data is missing but the repository shows its format. If the worker cannot build one, the run proposes cutting the row and applies the cut only with amend permission. An unnamed paid or outside-repository action still needs a human decision. Redraws still stop; at spent counters both engines take one more round while the last round made progress; an interrupted return recovers without a human turn with or without amend permission. See Loop engine operations. wave executionexecutes the plan in waves, with task implementers followed by one integratedwave-reviewerafter the scoped test gate passes. The reviewer checks anchored spec clauses and code quality together; repairs stay on the current tree and pass the same gate before re-review. TDD-locked: red, green, refactor. Independent implementation, review, and council batches remain parallel, but their dispatches are foreground: the orchestrator waits for terminal results before accepting work or advancing a phase. The loop alternative to step 3 runs one freshloop-implementerper seed or row iteration, without implement-phase reviewers. Each row starts with the shared allowance (default 4); approval replies such as2 --allowance=6override it for one run. With or without amend permission, attemptescalateAfter + 1(default 4), clamped to the last allowed attempt, escalates once per row onescalationLoop.implModel(the main-loop model when unset); later attempts use the ordinary worker model. Seed and exit-verification repairs also test for a stall at allowance; verification repairs use the same escalation model and count home repair commits plus an unmatchedpending: verifyreservation. Stagnation supplies a row-local hint, not an early stop. An interrupted return is one failed attempt: recovery is unconditional with or without amend permission, before checking allowance. The driver signals only identity-matching jobs, skips absent or mismatched jobs, deletes the jobs file, resets to the saved pre-dispatch HEAD and runsclean -fd, then restores the saved ledger and commits the failed attempt. Continue recovery even with a surviving job or remaining dirt. Wrong HEAD or an unwritten repair repeats reset and repair, counting each pass against the same allowance until the repair lands on the saved HEAD or the existing exhaustion stop fires. With no pending dispatch, a dirty entry or restored tree instead lists paths and asks for typeddiscardor Stop only; discard resets to HEAD, cleans and resumes the suspended entry or restore sequence before dispatch or verification. An admittedunreachable:target failure for a missing prerequisite becomes an audited scope cut under amend permission, never a passing row. At a row stop,retry <n> | <hint>adds one attempt to that row, whilerows +Nraises every row's allowance. Attempts never reset and there is no total iteration cap. Starting verify completes implement when every task is complete or skipped; verify step 1 runs the gate set: deduplicated (owning checkout, command) pairs from done rows' recorded checks, with ownership from the ledger. Gate output goes to logs; the driver compares failing test names or assertions in the last 20 log lines, not gate indices or timings. CI on push owns the full run.
Approval authorizes every paid or external action named in an AC or Design, with its runner and inputs, for the whole flow. A count or wording deferring it to later approval does not withhold authorization. The worker runs it whenever an attempt needs it without asking and reuses its output for local rechecks; evidence commands name local replay or fixtures. For unreachable: unnamed action, the driver asks whether to name the action in the spec or cut the row, even with amend permission.
These are the loop stops this recovery and authorization contract keeps or touches, not the driver's whole stop set. Missing capabilities or references, malformed grants, unresolved verification entrypoints, repeated-evidence amendment handling and ledger projection errors retain their own text. The driver renders only stops named in its skill and references; another failed dispatch consumes an attempt, not an invented menu or approval.
| Stop | Without amend permission (2 --amends-stop) | With amend permission (default 2) |
|---|---|---|
| Row stalls at effective allowance; seed repairs repeat the same reason at allowance; escalation model unavailable for a row's escalated round | States Problem: and Needs: without a menu; accepts retry, rows +N or an amendment request | Same |
| Verification repairs stall at allowance; escalation model unavailable for a verification repair | States Problem: and Needs: without a menu; accepts an amendment request only | Same |
| Conformance fix-round cap | Takes one round on progress; stops on a stall | Same |
| Unnamed paid or outside-repository action | Asks whether to name the action in the spec or cut the row | Same |
| Other spec amendment, including a missing-prerequisite cut | Reviewer applies evidence-backed factual corrections; other amendments stop for review | Applies with no human turn |
| Row reopened by an applied amendment during verify | Applies the row progress test at allowance, with verify active, then reruns step 1 | Same |
| A redraw | Stops | Stops |
| Run cannot start: missing checks:, allowance: or returned:, a cap: line, unavailable settings tool, or seed plan_check findings | Stops | Stops |
| Dirty tree with no dispatch pending; on resume, admission question or missing-history stops (unrecoverable pre-dispatch ledger/tuple, or unreadable child attribution with no tuple) | Stops | Stops |
| Dispatch returns an async handle despite async: false | Stops | Stops |
A budget reply does not supply a missing escalation model. A reopened row already at allowance takes the same row progress test with or without amend permission; verify stays active without a phase reset. Resume's admission question lists commits and dirt and explains that answering interrupted discards them through reset to the pre-dispatch HEAD and clean -fd. See loop stop boundaries for the reply and continuation details.
- verify: the parent first runs the plan's full verification command set for waves, or the ledger gate set for loop; only a passing result permits whole-diff code review, then the conformance gate. A review fix invalidates that result, so the parent reruns the same set before the next review or conformance gate. Loop conformance repairs and finish also use the gate set, never the ledger's full
verification:command. When the overrides file declares a happy path for the touched paths (see Project-specific overrides), the parent runs it once here, between code review and the conformance gate, and the reviewer reads its transcript as runtime evidence - a hang or a failed request shows up in the audit with the transcript quoted - as a gap when an origin clause ties to it, otherwise as ahappy-path: failed - unattributableline - never as a silent green. The conformance subagent reads the finished code and docs against your original words from step 1, not the plan, and reports per-requirement: delivered, partial, missing, drifted, or unauthorized. Unauthorized rows - shipped surface no human input asked for, whether it crept in or was laundered through the spec - follow their recommendation like every other row: a contained removal auto-runs, anything another requirement leans on is deferred with a plain-language "I'd cut it / I'd keep it" recommendation. Inside a brainstorming-entered flow this gate is machine-blocked from being skipped. Compatible executable recommendations auto-run through an isolated fix-and-re-audit loop with no prompt; anything still open surfaces as a numbered decision brief - one item per decision, the problem in plain words first, lettered options each with a one-line consequence, andRecommended: <letter> - <reason>orNo recommendation - pick one. Reply with one line per item (1. B), or bare1to take every recommendation (no-recommendation items are re-asked by number); a currentCONFORMS/ no-concerns result goes straight to the branch options with no extra conformance sign-off. ship: PR, draft PR, squash, keep, or discard; PR rework's row 1 offers a lease push of the rebased home branch to the existing PR (Base:records inmerge:form push non-force). A spec whose header carries**PR:**(approved at a spec-PR re-gate) and no## Rework recordreplaces the two create rows withPush to PR #N and mark it ready for reviewandPush to PR #N, keep it a draft(Push to PR #N (already ready for review)when the PR is already ready): both push without force after strip-and-seal, the first then runsgh pr ready, neither rewrites the PR body, and both are withheld when origin's branch head is no longer an ancestor of local HEAD. For coordinated specs, these header-linked rows 1/2 deliver companions in recorded order before one home seal carrying every companion PR URL, then push home and apply its readiness choice. Row 1 makes companion drafts ready too; row 2 creates drafts but never converts an already-ready PR back to draft. Companion URLs appear in the shipped summary, companions first and home last, not in the unchanged home PR body; keep that summary for cross-repo review because successful home delivery removes receipts. A spec still carrying**Engine:** deferredstops finishing andgauntlet-resumebefore any phase change, verification, or push. Finishing printsspec approved for handoff only - run /skill:gauntlet #N. If the**PR:**header or the session identifies draft PR #42, resume tells you to run/skill:gauntlet #42in a fresh session to reopen the gate. If the push succeeded but creating the draft PR failed, choose4 - retry opening the draft PRat the spec approval step that published the spec. If neither fact is known, supply the number of the draft PR that contains the spec. The PR-rework push appends a## Reworkblock naming absorbed PRs while retaining the original description bytes; the header-linked**PR:**push leaves the body untouched. Only after a successful rework push and home-description edit does one gated confirmation show the exact close comments and eligible member targets, linking home; declining or any other finish option leaves members open. Closing never deletes member branches, and finish posts no review-thread replies. ItsBefore:handle includes the full portable pre-rework SHA and the localrefs/gauntlet/pre-rework/pr-<N>ref in the rework checkout. The finishing owner defines the landing and body-update contract. Once a PR exists, run/skill:gatekeep-pr <pr>to verify it before merging - it judges the diff against the spec at the PR's head (the acceptance-criteria dispositions and Design you approved; the PR description when no spec applies) - rows the spec defers or deviates are settled, every other row needs its mechanism (code, tests, docs) - and against the rubric; whatever can be seen only after merge is left to step 6. Human gate 2 - the only other decision you make.- (Optional) Once the merge lands,
/skill:check-delivery <ref>(or/skill:check-delivery #12 #15in pi) can prove delivery - default-branch landing, delivery target, per-AC evidence - before the tracker status advances. Explicit ask only, no auto-chain: deploys commonly lag merges by minutes to hours, so an auto-run would routinely check too early.
Framework-run squash and merge-commit merges carry a composed landed message: a plain imperative subject, a short paragraph explaining the user-facing change, and up to five outcome bullets. Rebase passes no message flags; a merge queue owns the landing and does not guarantee the composed text.
The flow prints one line when the repo's squash_merge_commit_message is COMMIT_MESSAGES: the read-only squash-default note names PR_BODY and BLANK as settings that avoid pasting every branch commit into a GitHub-button merge. Finish's PR options and gatekeep apply this note; the flow prints nothing for other values or a failed read, and never writes a repo setting.
Gatekeep withholds merge while the assessed head's tree still holds the task plan paired by basename with its carried spec or that spec's loop ledger. The plan-free head precondition checks those exact paths in the assessed tree, not the PR diff; a failed lookup also withholds merge. With no carried spec, this precondition is skipped.
The machine-owned plan -> implement and verify -> ship handoffs each receive one branch-local nudge after an unexpected settled stop on hosts with agent_settled. During implementation, the tracker can also restart a main-session turn that ends normally with no visible gauntlet: marker line, provided a tracked task moved since the last user message, recovery message or marked stop. This restart uses agent_before_settle, yields to pending work and asks the session to honor a requested stop or unresolved decision before continuing authorized work. Hosts without that hook do not restart implementation.
flowchart LR
T["shape-ticket<br/>(optional)"]
R([explicit opt-in]) --> B[brainstorm<br/>+ spec]
T -.-> R
B --> G1{{human gate 1:<br/>approve spec}}
G1 --> P[plan]
G1 -.row 4.-> H[draft spec PR]
H -.brainstorming re-entry.-> G1
P --> I[implement<br/>waves + reviews]
I --> V[verify]
V --> M{{machine gate:<br/>conformance vs<br/>original words}}
M --> S[ship]
S --> G2{{human gate 2:<br/>merge / PR / discard}}
G2 --> D([done])
D -.optional.-> CD["/skill:check-delivery"]In create mode, shape-ticket runs one bounded overlap check after clarification, across active and finished work: at most 120 seconds, 6 search requests, and 5 detailed candidates. It recommends useful enrichment of the same concern, a justified new ticket, or no write; a finished ticket with compatible additions favors an evidence comment or no write, not a duplicate. Compatible requirements may extend a documented unstarted ticket's body; started, finished, or unknown workflows keep their bodies protected. The existing confirmation menu shows mutually exclusive enrichment, create-anyway, and no-write choices with exact payloads and coverage limits. Selecting an unchanged displayed write option approves only that changeset; advice alone never writes or changes status.
Use /skill:shape-ticket --skip-overlap <ask> to bypass discovery explicitly. Repair mode never discovers candidates. Bypass still retains source reads, known conflicts, integrity checks, roast, approval, and source revalidation. Incomplete search coverage is disclosed, not treated as proof of no overlap; independent sessions can still race, so this is not a uniqueness guarantee.
Between gate 1 and gate 2, both engines take recommended choices inside the approved spec and record what they chose and why in the commit body. A stalled run names the blocker and the input needed to continue, without offering a menu. The run asks before discarding uncommitted work, redrawing the spec, applying a correction under per-correction review, or taking a paid or outside-repository action the spec did not name. Both engines run one bounded escalated execution round before eligible stops; stalled rounds at spent allowances, admission failures, waves stagnation and redraws still stop, and budget-only grants supply no amend permission. Planning takes concrete baseline narrow or amend recommendations under that permission; fix-first enters ticket shaping's own gate. An implementer-evidenced text correction to a drafted AC is an amendment, not a redraw; ticket rows, row add/remove and problem or component boundary changes still require redraw approval. See execution continuation. Once gate 1 picks an engine, task breakdown, implementation and reviews proceed within those limits; row 4 parks the approved spec in a draft PR and planning starts only when someone runs /skill:gauntlet #<N> in a fresh session with the draft PR number and approves at the re-gate. Changing an approved spec later goes through brainstorming's Amending an approved spec: a fresh-context reviewer clears evidence-backed factual corrections on its own, escalations reach you as one readable batch, and only a redraw is a full stop - not a third numbered gate. That's the mechanism. What follows is the machinery behind it.
Multi-repo runs
A run has one home repository and one leg per selected repository. The home's - sibling: declarations in # shared under ## siblings define eligible companions, not automatic membership: the ask must select a declared companion by repo identifier, the declared clone URL's NAME, or the URL itself, or the ticket must select it through a matching repo-group heading. Unselected siblings are not resolved. Members are ordered home first, then selected siblings in declaration order. Every member gets its own worktree with the same full branch and shared creation NAME (branch with / replaced by -); a script or native tool can choose a different folder name.
The approved home spec records ## Legs, including each leg's scope, rules and resolved contract:. Keyed and built-in creators retain home:; flow-created script/native trees record portable create: and destroy: without home:, and a pre-existing host-owned tree without a keyed contract records neither home: nor destroy:. Script creation passes the shared NAME and explicit branch, while destruction uses the located folder's basename. Companion lookup selects the unique linked tree on the recorded branch and validates its checkout identity, rather than computing its location from home:. Each companion commits a leg file with the same filename in its own spec directory, carrying the home pointer, Problem, binding decisions and its own leg block. Plan and ledger stay home-owned; task Leg: selects the checkout for implementation and review. Committed artifacts use portable repo identifiers, not machine-local paths. See the membership and artifact contract.
Home overrides and settings govern flow policy. Each leg's own overrides and settings govern checkout operations, directories and verification; absent configuration uses defaults. Recorded contract: lines are authoritative for every spec with ## Legs, including one-member runs: amend the home block and affected companion file before using a changed contract. Finish does not replace them by rereading overrides. Legacy specs without ## Legs are home-only and retain the finish-time reread.
Row 4's draft-PR handle is one home draft PR plus companion branches on origin, with no brief, companion PRs or receipts. In a fresh session, /skill:gauntlet #<N> with the home draft PR number preflights every recorded companion before provisioning them from origin and re-gating under the publication and re-gate contract. Cleanup runs companions first, then home, removing owned trees and deleting local branches only after a live remote equality check and confirmed removal; each leg reports its read-back state even when another cleanup fails. This supersedes the kept-local-branch cleanup in the spec-only draft-PR design; a remote branch deleted after handoff now needs restoration from a clone that still has it, not the cleaned-up machine. PR lists still take the rework path. The separate gauntlet-handoff / gauntlet-resume route carries every member in the brief's legs: block. Resume starts only from the home primary, validates companion repository, branch and home pointer, and announces per-leg HEAD and dirty drift. On that route a missing companion worktree requires a live-validated completion receipt; draft-PR re-entry instead uses the published origin branch. The brief contract owns the brief grammar and admission rules.
One finish choice spans all legs. PR, draft PR and squash deliver companions in declaration order, then seal and deliver home; keep preserves all legs, and discard lists all legs before one confirmation. Verification and conformance run per leg; home's passing tests do not credit companions. Delivery failure stops without rollback and reports shipped and unshipped legs. A retry from the brief validates home-owned receipts and skips only proven deliveries; stale PR heads are updated, and failed post-squash verification reruns without another squash. See the delivery and recovery contract.
Architecture
A gatekeep-pr run after your newest submitted, non-dismissed review uses that review's commit as its baseline when it is an ancestor of the assessed head. The reviewer checks your posted items and only the intervening code delta; the report explains how many items were addressed in plain prose. Contract checks still judge the whole head. See the review task.
gatekeep-pr selects one course per run: assess posts open blockers as one review (request-changes on someone else's PR, comment on your own), posts nothing with zero blockers, and performs no repair or sync; deliver repairs blockers, syncs, pushes, watches CI, and re-reviews until readiness, an obstacle, or a cap exit. deliver with nits stores deliver-nits and authorizes current and later ordinary nits, but only the exact spec edits displayed when you pick it. A ready first report skips the course pick and renders the final menu directly. Delivery rebases your own non-bot branch with --force-with-lease unless its history contains merge commits; someone else's, bot-authored, and merge-containing heads merge base instead. Final merge and approve remain separate picks; approval is offered only on someone else's non-draft PR with zero blockers. See the course loop and three menus. In pi, /skill:gatekeep-pr 12 15 18 [--rebase [base]] gates a set of PR numbers or same-repository URLs, with one fresh pr-gatekeeper child and one worktree per PR. The parent shows a summary and unchanged per-PR menus in input order and queues every pick until the last menu. It runs terminal consequences in roster order from the primary checkout and dispatches nonterminal child work in parallel. The set must fit pi-cohort's parallel.maxTasks (default 8); it is never chunked. With --rebase, the parent asks once per set for eligible other-author or unreadable-author heads, excluding no-op heads and heads with merge commits. Multi-PR mode rejects positional issue references and is pi-only. An explicit no-argument invocation on either harness discovers other authors' open PRs in origin awaiting review from you or a team you belong to. To gate your own PR, type its number. It skips drafts and approved PRs. A PR with changes requested returns to the list when every remaining requester has been asked again or the last commit is newer than all outstanding change requests. Discovery sorts by additions plus deletions (then PR number) and shows one linked entry per match under a bold heading in the reply before gating, without waiting. Each entry gives the size, why the PR is listed, its ticket when known, and a short description of the change. With typed PR numbers, the same linked list appears in input order before provisioning; with one number, it appears before the CI, diff and comment reads. One match gates directly on the single-PR path; multiple matches enter pi's batch path, while Claude Code stops with the sorted discovered, smallest first: list. Each report opens with your role and names your teams asked to review, even when you are the author or are requested directly. If a team is requested and memberships cannot be read, the report says so and names the requested teams. See the parent-child contract.
Gatekeep uses three menus: action selects a course or continues after an obstacle, final offers merge, approval and remaining work, and post collects terminal follow-ups. An open approach blocker adds reject before work starts; its post-style menu previews the full saved note and offers posting it, closing the PR and cleanup separately or as a combination. Back withdraws rejection for the run; successful posting or closure settles as rejected. Reject queues as a parent-owned terminal action in a PR set. Row 1 is the judged recommendation, not a stable action number. Gatekeep recommends preserving the requirement when a proposed change would drop the intended outcome, even if the ticket asks for the change. Otherwise, Gatekeep backs the side that delivers what the reread ticket asks for. If the ticket is absent or silent, Gatekeep recommends a change only when the PR's goal requires it. In the first report, a departure that passes the same test is a smaller point ("the spec was not updated"), not a blocker. Gatekeep recommends stop when no available action can resolve an unchanged obstacle. Otherwise, your own PR defaults to deliver; an author decision favors assess on someone else's PR, a ready repair or pending-only check favors deliver, and readiness favors merge regardless of author. An unchanged assess result recommends stop. The report has three unlabeled parts: a two-sentence change/scope opening, standing and problems with concrete examples, and a separate recommendation immediately above the choices. Detailed row mappings, counters, raw checks and IDs stay under show evidence.
After merge, one post menu offers drafted replies, ticket and PR coverage, guarded checkout cleanup, PR-named steps and individual cleanup overrides. Row 1 combines runnable steps except duplicate PR coverage when ticket coverage is included; each step also has its own row. A comma-separated reply selects a set, expands combinations and collapses duplicates. The gate runs the set in step order, keeps nested skills' gates intact and ends without another menu, listing every unpicked, skipped or failed step with its command or payload path. Approved and closed PRs use the same menu with eligible steps; an approved/open reply retains its pre-write freshness read. In a set, each PR retires after its pick and shared overrides run at most once.
The course, target/scope baseline, repair and sync usage, and poll deadline live in <common git dir>/gauntlet/tmp/gate.XXXXXX/state, whose path appears in the tracker or checklist and show evidence. A multi-PR run keeps each record in pr-<N>/state under one parent run folder. Teardown validates ownership from the surviving primary, moves retained post bodies to unique OS-temp gate-kept.XXXXXX files, and deletes only that run folder; a valid record outside a run folder stays in place. Gatekeep initializes independent repair-round and sync budgets to 2 x closureReview.maxFixRounds (default 5, no-tool fallback 2 x 5). Only source-changing repair waves spend rounds; conflict-only syncs spend the separate sync budget, and description-only work, watches, and re-reviews spend neither. Obstacle deliver extends each cap by 2 x the resolved value without resetting usage; a timeout continuation instead opens one more watch window without extending caps. Only the gate's own push automatically renews the CI window (timeout minutes, default 15). The verify-phase runtime guard still uses 1 x the resolved value and can block a gatekeep dispatch earlier.
PR-body or head-spec instructions assigning the merger an after-merge action become post steps. Their commands come only from the merge-base overrides file, AGENTS.md, or documents it links directly: exactly one distinct documented command makes the step runnable and part of row 1. PR-supplied command text never supplies execution authority. Missing or ambiguous commands and unresolved tokens leave the action open in the menu and closing message with its source sentence. See PR-named steps.
Non-final stop removes an eligible tracked-clean, non-primary worktree, created or reused, with no unpushed commits and a matching configured home; otherwise it keeps the tree and reports why. It never deletes the branch, pulls base, or runs cleanup overrides. See the stop lifecycle. Missing or invalid state stops course work without resetting budgets. Terminal exit deletes the record; OS cleanup can remove it earlier, and a new session never discovers or resumes authority automatically. This is a skill protocol, not hard runtime enforcement.
pi-gauntlet ships three kinds of pieces, layered on top of pi-cohort's dispatch:
11 skills -
gauntlet,shape-ticket,gatekeep-pr,check-delivery,chase-bug,linear,forge-skill,housekeeping,gauntlet-handoff,gauntlet-resumeandgauntlet-performance.Five are model-visible:
shape-ticket(creates one tracker issue or repairs a comma/whitespace list of refs against a Context/Problem/Idea/Acceptance-Criteria template, with a grounded repo audit, an AC integrity check, a cheap council roast, and sequential per-ticket exact-diff write confirmations; model-invocable so other skills and commands can route "file a ticket" to it, the gate still needs your yes),gatekeep-pr(model-invocable on an explicit ask that names the PR and the verb; the gates still need your selection - is consent-gated pre-merge verification of a PR against the scope contract at its head - the approved spec's acceptance-criteria dispositions and Design when the PR carries one, else the PR's stated intent; the ticket is cross-checked, never judged here (check-deliveryowns it) - read-only gathering, verification evidence resolved CI-first (green checks on the exact assessed head count as evidence; a pending commit status that GitHub does not report as blocking the gating actor (mergeStateStatusnotBLOCKED) is not waited for - external-CI commit statuses included - while a running Actions check and an unknown merge state still withhold; a viewer GitHub reports as a ruleset bypass actor merges aBLOCKEDPR on the ordinarymergerow with CI evidence still binding and all other merge preconditions unchanged; false or unreadable bypass eligibility keepsBLOCKEDwithheld, and live non-admin bypass behavior remains unverified; the project's verification command runs only as fallback), a rubric-based review, a three-part plain-language report (change and scope, standing and problems, then recommendation) and action, final and post menus whose rows derive from the actor's permissions on the PR; nothing mutates (repairs, pushes, reviews, merges, tracker comments) until you pick a course or terminal row, except the opt-in--rebase [base]sync that rebases, reviews, and lease-pushes the head before verification, or holds the rebased head locally when a conflict stop's scoped tests fail, so a selected delivery course resolves it before the lease push; after your own merge one post menu offers drafted replies, ticket and PR copies ofAC coverage, guarded checkout cleanup and separate## cleanupitems; row 1 combines the runnable steps except duplicate PR coverage when ticket coverage is included, each step keeps its own row, and the run ends after the selected set finishes; approved and closed-PR states use the same post menu with their eligible steps - run it with/skill:gatekeep-pr [<pr>] [--rebase [base]](no argument: other authors' PRs awaiting your review)),check-delivery(model-invocable on an explicit ask that names the ticket and the verb; the gates still need your selection - is a post-merge detective control: proves an issue actually shipped (default-branch landing, delivery target, per-AC evidence) before its tracker status advances; it never writes a terminal status - run it with/skill:check-delivery <ref>or, in pi,/skill:check-delivery #12 #15for fresh parallel verification and one gate and write per ticket in turn),forge-skill,linear(reads/searches/comments on/manages Linear tickets via thelinearisCLI; owns all linearis mechanics and the## issue-trackerschema in# shared; tracker-facing skills route to it). Six more require explicit entry (disable-model-invocation: true):gauntletstarts the gated workflow on explicit consent - use/skill:gauntletfor reliable discovery, or opt in through reachable explicit prose or a human-selected handoff; after spec approval, downstream planning and implementation still chain automatically.chase-bugis human-only bug triage: read-only root-cause discovery to an evidenced verdict menu (real bug -> ticket/brainstorm/hotfix/respond; five negative verdicts), then a gated response to the reporter for addressable origins (GitHub issue / tracker ticket) and a rendered verdict summary otherwise - it never fixes during triage; the hotfix row hands off toskills/chase-bug/hotfix.mdafter the menu - run it with/skill:chase-bug.housekeepingchecks a directory, uncommitted files, unpushed commits, or a PR against repository rules. With no argument, it checks uncommitted files when the checkout has changes (including untracked files), otherwise files changed across commits ahead oforigin/<default>. A dirty run reports commits ahead of the unfetched local ref as not checked. A clean run fetches first and refuses divergent history, HEAD held by a remote-tracking ref, or a delivery receipt naming HEAD as its squash. It waits through one card per issue class before acting: directory fixes open separate PRs, uncommitted fixes stay in place, and PR fixes are committed and pushed to that PR; tickets are offered only for directory content findings. An unpushed run on a clean checkout folds accepted fixes into the last unpushed commit in the primary checkout, keeps its message unchanged, and pushes nothing. Spec and plan folders skip content checks; fully superseded specs get one Delete-or-Keep card, never Ticket - run/skill:housekeeping [<directory> | <pr>]in the primary checkout on the default branch with no gauntlet flow active.gauntlet-performancereads the committed run telemetry (current repo by default,--dir <path>adds others) through the parse-onlygauntlet-performanceCLI and answers with one example-led recommendation, 3-5 cornerstone numbers, ranked skill reads for each measured run, a council assessment when available, and a menu of at most three actions (render a report file, open the recommendation as a ticket viashape-ticket, drill into one run); it writes nothing unless you pick render - run it with/skill:gauntlet-performance [--dir <path>]... [--since <version>].gauntlet-handoffends a session whose flow a fresh session will continue: it invokes pi-cohort'shandoffskill (--out <path>or--key <name>, default key = the run worktree's branch with/flattened to-, default file<tmpdir>/pi-handoff/<key>.md), then appends the gauntlet process-state section (phase/plan tracker status) per the shared contractskills/gauntlet-resume/reference/brief-contract.md- run it with/skill:gauntlet-handoff [--out <path> | --key <name>].gauntlet-resumeis the only way back into an interrupted flow from a fresh session: it takes agauntlet-handoffbrief (a file path, pasted text, or - with no arguments - a pick from the briefs under<tmpdir>/pi-handoff/), a bare worktree that already holds a spec, or a spec tracked on main under a configured spec dir (a spec seed: it creates or reuses the worktree throughworktree setupand pins the spec), restores phase/plan tracker state through the legal arming sequence (start brainstorm,skipwithresume:reasons,plan_checkbefore implement-or-later), and never infers approval from artifacts - run it with/skill:gauntlet-resume [<brief-file> | <spec>.md | <worktree-name-or-path>].11 subagent personas - the specialized child agents the skills dispatch via pi-cohort:
implementer,loop-implementer,wave-reviewer,conformance-reviewer,spec-summarizer,plan-writer,spec-council-member,spec-council-synthesizer,spec-council-applier,pr-gatekeeper,delivery-checker. See doc/personas.md for what each one does and why its permissions are scoped the way they are.4 runtime extensions - the enforcement layer.
plan-trackerandphase-trackerare tools skills call to track progress (with a TUI widget);verify-before-shipis a hook that warns if you push or open a PR without a passing test run since your last edit (expected when a loop gate set does not match its patterns; the scopedVerification:line answers it, not a full local run); a phase-tracker flow guard reminds on implement-phase commits missing spec/code review. Both engines use the tracker: waves tasks start on dispatch, while the loop list redraws from the ledger at each dispatch and human stop, preserving conformance tasks. Starting verify completes implement when every task is complete or skipped; verify step 1 runs the ledger's gate set in the owning checkouts. In a brainstorming-entered flow, phase-tracker rejectsimplementorverifycompletion while tracker tasks remain pending or in progress; see its configuration reference. phase-tracker also registersplan_check, which verifies a plan against its spec and against the grammar in skills/gauntlet/plan/plan-contract.md, including that each task'sTests:commands are selective and never the full suite, and that every test command carries a passing base-commit result; a pass stamps the plan and spec content hashes for implementation and returns a bounded task manifest; see the manifest contract and size limit.telemetrypublishes YAML records on therefs/telemetry/recordsref, outside the product diff: one sealed brainstorming run plus one session leg per settledshape-ticket,gatekeep-prorcheck-deliveryinvocation. In-progress runs live in Git common-dir metadata;gauntlet-telemetry-sealpublishes before landing without changing checkout HEAD or index. Publication failure warns without blocking ship; plain jj keeps local metadata and reports no Git remote. A fetched shipped record blocks a brainstormwriteinto that spec. See the record layout, settings and migration guide. See doc/configuration.md for the settings each one reads.phase_tracker,plan_check, andplan_trackerare model-only (not callable from codemode scripts) because their state is rebuilt from transcript tool results, which nested calls do not persist.
pi-gauntlet is opinionated: it recommends this pipeline for non-trivial changes, but starts gauntlet only after explicit user consent. Enforcement is opt-in by entry, not ambient: once brainstorming starts a flow, the phase-tracker extension mechanically blocks a phase from closing before its gate runs, and warns once if the main loop writes code during implement (subagents own implement-phase edits). A change made without entering the flow (a typo, a formatting run, a dependency bump - see "When to use / when NOT to use") is not gated; the discipline of routing real work through the pipeline is a convention the tooling supports, not a trap it springs on every edit.
Worktree contract. pi runs in the primary checkout; the work happens in .worktrees/<branch>. Skills never cd there - the worktree path is a value from the worktree setup report (or the handoff brief on gauntlet-resume), carried as dispatch cwd: "<path>", as git -C <path>, or as (cd "<path>" && <cmd>) for other cwd-bound commands; the runtime extensions derive the checkout from the artifact path they act on. Requires git >= 2.31; a plain (non-colocated) jj workspace has no .git, so the resolver falls back to jj root there, reading primary-vs-workspace from .jj/repo (a directory in the primary checkout, a pointer file in added workspaces).
Stage scratch stays in each checkout's Git metadata at gauntlet/tmp; PR gate helpers and logs share their record's run folder under the common Git directory. Teardown removes only its owned run folder and preserves kept post drafts. See scratch storage for lifecycle, plain-jj fallback and Claude Code protected-path permissions.
Handoff and resume
/skill:gauntlet-handoff and /skill:gauntlet-resume are a pair: cohort's handoff skill writes the six flow-agnostic headings, gauntlet-handoff appends ## Process state, and gauntlet-resume reads the whole brief back. Both gauntlet skills read the brief grammar in skills/gauntlet-resume/reference/brief-contract.md; leg grammar and multi-repo admission live in skills/gauntlet-resume/reference/coordinated.md, read only for a brief with a legs: block or a run with more than one member. The repo validator (scripts/ci.mjs) fails if a grammar line appears anywhere else under skills/. Resume reads only the rules its route applies: reference/restore-loop.md for a ledger, reference/restore-plan.md for a task plan, and reference/plan-repair.md only after a plan_check failure. Without cohort's handoff skill, gauntlet-handoff stops before writing. A resume also reads the spec's **Amend-grant:** header line and prints Standing grant active: <sentence> or No standing grant. on the line after its closing line; the brief itself carries no grant. On a plan_check failure, resume repairs plan citation drift itself (moved anchors, changed literals, file rows that completed tasks deleted) and stops only when a task must change.
Smoke walkthrough (release-gated)
Run by a human before a pi-gauntlet release claims the pair works; record the outcome in the release commit body.
- Implement phase with tasks
complete/in_progress/pendingin a.worktrees/<branch>flow, session in the primary checkout:/skill:gauntlet-handoffwrites<tmpdir>/pi-handoff/<branch>.mdwith the six core headings then## Process statelast; a fresh session running/skill:gauntlet-resume <path>restores implement with the three statuses and endsGate history not restored; re-validating <task> before any stage advance. - Plan phase,
No plan active.: the brief keeps that line andActive task: none; resume restores phase-only with noplan_tracker init. - Hotfix context with non-pending trackers: the brief ends at
## Skills loaded; resume takes thechase-bugroute. - Fresh session, zero arguments: the listing shows the briefs from 1-3 and a pick restores;
/skill:gauntlet-resume /nonexistent.mdstops naming that path without listing anything. - Branch
hotfix/x: the default file ispi-handoff/hotfix-x.mdand appears in the zero-argument listing. - Primary session, idle trackers, spec tracked on main:
/skill:gauntlet-resume doc/specs/<x>.mdcreates the worktree and asks the approval question; approval leavesphase_trackerat plan in_progress with brainstorm⊘ (resume: ...). - Fresh idle session, same seed: the registered worktree is reused (no creation) and the question repeats. Run once on a consumer whose
## worktreesoverride lays worktrees out as sibling dirs, once on.worktrees/. - After planning commits the plan beside the seeded spec:
/skill:gauntlet-handoffthen a fresh/skill:gauntlet-resume <brief>restores plan phase; a fresh/skill:gauntlet-resume <worktree>reaches "Spec with plan" with task evidence from the plan commit. - Spec approved with
2, then/skill:gauntlet-handoffand a fresh/skill:gauntlet-resume <brief>: the closing line is followed byStanding grant active: <sentence>and the next amend batch applies without a menu. A spec approved with1 --amends-stopprintsNo standing grant.; a spec with two**Amend-grant:**lines stops before any tracker call, naming both lines. - Single-repo brief, one with a ledger and one with a task plan: the resume transcript's read calls name
SKILL.md,brief-contract.md,reconstruction.mdand one restore reference (restore-loop.mdorrestore-plan.md), and nevercoordinated.md.
Key concepts
| Term | Meaning |
|---|---|
| Gate | A machine-enforced checkpoint between phases (e.g. within a brainstorming-entered flow, complete verify is blocked until conformance review has run). Not a suggestion. |
| Spec council | Multi-model critique of the spec before you see it (spec council); members and chair return saved-file references, and a fresh applier inherits the main loop's model and thinking unless overridden, edits only the spec, and returns the audit. The main loop checks structure without ingesting member/chair findings, re-reads the spec, and hands it to the unchanged user gate to ratify or revert. Members flag unrelated extras or sufficient in-scope simplifications (over-spec); every member closes with a lean: line - "nothing to cut" is a first-class answer - and the chair tallies them (lean: <k> of <n> members found nothing to cut). Falls back to a single-model critique if no council is configured. |
| Conformance gate | The closing check: does the delivered code + docs match your original prompt, not the derived plan? Compatible executable recommendations auto-fix first; anything still open renders as a numbered decision brief - one item per decision, the problem in plain words first, lettered options each with a one-line consequence, and Recommended: <letter> - <reason> or No recommendation - pick one. Reply with one line per item (1. B), or bare 1 to take every recommendation (no-recommendation items are re-asked by number); a current CONFORMS / no-concerns handoff goes straight to branch options with no extra sign-off. |
| Integration entry | A source item carried under ## Integration rather than judged as a requirement. A listed entry never blocks delivery. The PR gate still offers a step assigned to the merger after merge; listing it does not authorize running it. |
| Wave | A batch of N >= 1 plan tasks with disjoint files, run through the one wave loop; N > 1 dispatches concurrently |
| Overrides file | .pi/gauntlet.md - where you put project-specific detail the generic skills don't know (CI command, worktree wrapper, routing rules). |
When to use / when NOT to use
Use it for any change with more than one moving part: a feature, a refactor across files, anything where "what did we actually agree to build" matters by the time it's done. Start with /skill:gauntlet; a request to implement the change alone does not opt you in.
Don't use it for a one-line fix, a typo, or a throwaway spike you're going to discard. The gates have real overhead - a spec, a plan, a conformance check - and that overhead isn't worth paying for a change trivial enough to just make. Between that carve-out and the full pipeline sits one middle tier: chase-bug's hotfix row - a small, evidenced, urgent fix implemented by loop-implementer with mandatory conformance and code review, landed as an unpushed squash, entered only through the triage verdict menu.
Requirements
- pi-coding-agent >= 1.5.0 - supports model-only tracker exposure and sequential tracker execution, so updates persist as transcript tool results rather than nested calls.
- pi-cohort >= 8.5.2 - required peer package, including binary-safe worktree patches; it also lets a persona with
subagentintools:start with inherited extensions (pi-cohort #26), which multi-PRgatekeep-prneeds. Gauntlet procedures and skills that dispatch agents callsubagent({}), which pi-cohort provides. pi-gauntlet does not vendor the dispatch tool; without pi-cohort those skills have nothing to call. Gauntlet execution dispatches explicitly useasync: false; do not enable pi-cohort's incompatibleforceTopLevelAsyncsetting. See pi-cohort's dispatch configuration for that setting's owner and semantics. A wave of N >= 1 tasks dispatches its implementers and first spec reviews as one chain call.wave executionstops before dispatch on unsupported installs; there is no older-runtime fallback.
Both packages must be listed in your .pi/settings.json#packages array (pi adds them automatically when you pi install). pi-gauntlet and pi-cohort are versioned independently but release together whenever dispatch semantics change - pin compatible versions of both. At each pi-gauntlet release, set the pi-cohort peer minimum and README floor together to the newest released pi-cohort version; /skill:release checks the registry before proceeding.
Install
Project scope (recommended - committable via the repo's .pi/settings.json; -l writes to project settings):
pi install -l npm:pi-cohort
pi install -l npm:pi-gauntletUser scope (all repos under your pi profile; the default target is user settings):
pi install npm:pi-cohort
pi install npm:pi-gauntletPin an exact release with npm:[email protected]. See doc/install-internals.md for what the postinstall step actually does (symlink vs copy, PI_GAUNTLET_AGENT_DIR, upgrading from the pre-rename package).
Spec search index
gauntlet-spec-index provides lexical search over two corpora in one per-worktree cache. From a repository worktree, run node <pi-gauntlet-package>/bin/gauntlet-spec-index.mjs --query "<text>" [--corpus specs|docs] [--limit N] [--exclude <repo-relative path>]...; it requires Node >=24.15.0 and refreshes its FTS5 index on every query. --corpus specs (the default) searches <spec dir>/*.md for each resolved flowGuards.specDirs entry (default doc/specs and docs/specs) at the repository root and one service level down and prints tab-separated score, path, service, title, status, shipped_at, state, files, and snippet columns. --corpus docs searches project documentation and prints score, path, title, and snippet; the snippet is the matched ##/### heading line when one holds a query term, else a body fragment. Docs candidates are the tracked and untracked, non-gitignored *.md files (git ls-files -co --exclude-standard, so nested repositories and submodules are not indexed) matching an include list - default **/doc/**/*.md, **/docs/**/*.md, README.md, AGENTS.md, where a slash-free entry also matches one service level down - minus the resolved spec and plan dirs (matched as literal path components), **/node_modules/**, .pi/gauntlet/**, .worktrees/**, symlinks, and files whose first line is the context-draft marker; ** never matches a dot directory, so .pi/*.md or .github/*.md is indexed only through an explicit include. A project replaces the include list with - docs: <glob> bullets under ## spec-index in the # shared block of gauntlet.md (see Project-specific overrides); the exclusions are not configurable through the overrides file; the spec and plan dir exclusions follow flowGuards.specDirs. Both corpora pass the same confidence rule before --limit applies: a query term is evidence when it occurs in fewer than half the rows of the queried table (stem variants of one word count once); query tokens split on word boundaries, so gauntlet-spec-index searches as three words; a row is returned only when it matches at least two distinct evidence terms in the corpus's strong fields - title or goal for specs, title or headings for docs - and rows scoring below half the best live row's score are dropped (every docs row is live). A query with no real match therefore prints the header only and exits 0 - and when the queried corpus has fewer than 10 documents, also writes one stderr line naming the corpus and its size (gauntlet-spec-index: docs corpus has 5 documents - too small for the confidence rule; no rows returned), so a small corpus and a genuine miss stay distinguishable; a corpus of two or fewer files never returns rows. --exclude (repeatable) removes a path before the rule runs, so the spec under review never sets the bar. state is superseded when a > **Superseded by:** ... - fully banner sits in the block directly under the title and live otherwise; named-section banners and consumer-defined banner syntaxes both read as live. Live rows sort before superseded rows, then by score. The files column is a ;-separated list of repo-relative paths the spec's shipped change modified and that still exist in the repository, the literal missing when the spec's telemetry record has no derived.modified_files list, or blank when there is no readable record or no recorded path remains. The cache lives at .pi/gauntlet/index.sqlite, and its first creation adds /.pi/gauntlet/index.sqlite* to Git's info/exclude so the database and SQLite sidecars stay out of git status. /skill:gauntlet queries the specs corpus twice - the scout at gather time from the request, and the main loop at spec-writing from the finished spec's title, goal, and headings, surfacing new live candidates at the review gate - and the scout queries the docs corpus once to render Docs touched: lines that round 2 weighs as documentation-impact candidates.
Performance digest
gauntlet-performance digests telemetry records without judging them: node <pi-gauntlet-package>/bin/gauntlet-performance.mjs [--dir <telemetry dir>]... [--since <version>] [--json] prints a corpus: line, one row per run (run_id, repo, spec, version, status - shipped* when the record has no ship phase - wall, per-phase minutes, tokens, cost, models, dispatches, disp/task, `coo
