Project skill for running a bounded agent fleet on this repository. It stays
thin on purpose: the method -- doctrine, pipeline shape, the interview, the
pi-subagents ceilings and traps, scripts/, templates/ -- is the user-scope
high-throughput-programming skill, which is normative for method. This skill
carries only archie's facts and is normative for those.
What it carries: the seven invariants every lane call must repeat (fail-closed
control plane, the webui/workflow deletion gate, single ownership of
<db_path>-tasks.sqlite, no .beads/ commits, generated assets as LAW, scratch in
/tmp because CommitAll stages untracked files, and the cmd -> app -> {domain,
infrastructure} direction); the canonical gate-evidence.sh invocation and why it
must run the module build and the linter, not just a scoped test; the scoped
test-command shape for a lane plus the fact that task check is the serial full
gate the merge train owns; the agent-discovery trap (a lane worktree is a
sibling, so .pi/agents must be symlinked into it or children die with "Unknown
agent: cp-writer"); bd conventions; and that .pi/control-plane-run/ is
disposable run evidence, not documentation.
Also moves the September 2026 control-plane run out of the user-scope skill's
references/worked-example/ and into references/worked-example/ here, so exactly
one copy exists and it is committed. The user-scope skill's References table and
normative-copy paragraph now point at this repository, and note that a run in
another repository uses templates/ plus its own filled-in briefs. The moved
README gains the worktree agent-symlink fix and loses its stale "everything here
is gitignored" claim; its paths to scripts/ and templates/ now name the
user-scope skill explicitly. The scripts warning is unchanged: they are the
snapshot's and must not be copied.
Control-plane backlog run: how to drive it
This is the committed copy of a real run. Its originals lived in
/work/apps/archie-core/.pi/control-plane-run/, which is gitignored, disposable
run state whose live copies may have moved on since. Nothing here is load
bearing at runtime.
The method is not here. The pipeline shape, the concurrency ceilings, the
pi-subagents traps, and the scripts/ and templates/ this file names all live
in the user-scope skill ~/.agents/skills/high-throughput-programming/, and that
skill is normative for method. This copy is normative only for what the run
looked like on this repository; the archie-specific facts themselves live in the
parent archie-agent-fleet skill. A run in another repository uses that skill's
templates/ plus its own filled-in briefs.
Files
| File | What it is |
|---|---|
00-orchestrator.md |
The prompt you give pi. It owns the waves, the ceilings and the verification rules. |
| (the scripts) | This run's wave0.js, wave2.js, review.js and gate-evidence.sh are not copied here: they live on as templates/recon.js, templates/lanes.js, templates/review.js and scripts/gate-evidence.sh under ~/.agents/skills/high-throughput-programming/, which are normative. The snapshot's copies were stale, so they were deleted rather than duplicated. |
lanes.json |
Lane definitions: worktree paths, branches, beads, scoped test commands, briefs. Fill in the model id. |
prompts/wave1.md |
fwmp shape-first writer, and the xrux verdict probe. |
prompts/wave4-merge-train.md |
The serial merge procedure and the landing checks. |
prompts/wave5-eju6.md |
The end-to-end restart test. |
agents/cp-recon.md, agents/cp-writer.md, agents/cp-reviewer.md |
Project-scope agent definitions, as the run used them from .pi/agents/; these committed copies sit beside this file. |
Start it
cd /work/apps/archie-core
pi "$(cat .pi/control-plane-run/00-orchestrator.md)"
The .pi/control-plane-run/ path is the run's own state directory, not this
copy. Interactive is the right mode here: Checkpoint A after Wave 0 is a real
stop and wants you in the loop. /subagents-fleet opens the live inspector,
/subagents-doctor checks the install.
Before Wave 2
Create the durable worktrees yourself. Managed worktree: true children capture
a patch and then remove the worktree, which a resumed challenge stage cannot
edit, so the lanes use operator-created worktrees plus per-child cwd.
for lane in live recovery steps config
git -C /work/apps/archie-core worktree add ../cp-$lane -b cp/$lane
end
A lane worktree is a sibling of the repository, so .pi/agents/ inside the
repository is not discovered from it. Link it per worktree or the children fail
with Unknown agent: cp-writer:
for lane in live recovery steps config
mkdir -p /work/apps/cp-$lane/.pi
ln -sfn /work/apps/archie-core/.pi/agents /work/apps/cp-$lane/.pi/agents
end
Then fill model in lanes.json from what subagent({ action: "models" })
resolves, and pass it as args.
Ceilings worth knowing before you tune anything
This install is pi-subagents 0.70.0, matching your clone except for four
doc files. Two 0.69/0.70 features are load bearing here: typed gates
(gate: { command, output: "json" } turns a host command's JSON stdout into the
child's structuredOutput) and allowedAgents, which can stop a reviewer
launching a writer if you want separation of duties enforced rather than
instructed.
globalConcurrencyLimitdefaults to 20, not 64. Set it per top-level call.maxSubagentSpawnsPerRundefaults to 64 cumulative admissions per run tree, never refunded, so retries spend it. Each wave is a separate top-level run precisely so each gets its own budget.runs.lanescaps at 32 lanes, 16 stages per lane, 64 stages total.gateis rejected on a retainedresumeitem, which is why the challenge stage runs its tests throughbashinstead.- A typed gate cannot be combined with
outputSchemaon the same child, so the writer stages carry the gate and the reviewers carry the schema. - Host steps have no per-step
cwd, which is whygate-evidence.shtakes the worktree path as its first argument instead of relying on one.
Why the fleet is not 64 writers
64 concurrent children is comfortable for read-only work and pointless for writers here. Two limits bite first:
- Overlap. Merge cost scales with shared file overlap, not worker count. Seven beads reduce to four genuinely disjoint lanes plus one shared shape that has to land alone first. Five workers each adding a field to one struct cost eight cleanup commits on this repo in July.
- The machine. 16 cores, 117 Go packages, and
task checkalso runs the dashboard tests. One full gate saturates the host, so the gate is serialized into the merge train and writers run package-scoped tests.
The throughput comes from recon and review: 25 recon children, then a review pass after every wave at up to 36 children, all read-only, all cheap, all genuinely parallel. The writers stay at four because that is what the repository's coupling and the review pass can absorb. The measured literature is consistent that review, not generation, is where agent-heavy pipelines stall, so spare concurrency goes into checking rather than into more lanes.