fleet-supervisor · git:20260815.8340a30 · 2026-08-15 · sha256 ba7085da7e55ce70
fleet-supervisor git:20260815.8340a30A
Immutable. This exact content is served forever at /api/v1/blob/ba7085da7e55ce70.
---
name: fleet-supervisor
description: How to start, check, and kill fleet-sprints via the supervisor HTTP API only (POST /api/sprints on localhost:8787). Never call the fleet-sprint CLI directly. Trigger whenever asked to start/launch/check/stop/kill a sprint.
---
# fleet-supervisor (supervisor API)
Sprints are started, checked, and killed through the supervisor's HTTP API.
Default port: **8787**. Never invoke `apra-fleet workflow fleet-sprint` or
`bin/cli.mjs` directly -- always go through this API.
## 0. Before you launch
1. If you just created/edited beads locally, push them first:
`bd dolt commit` then `bd dolt push`. Members pull their own copy; a
sprint launched before the push works from stale scope.
2. Check no conflicting sprint is already running: `GET /api/sprints`.
3. Multi-member sprints need all members on the SAME git HEAD, or the
launch crashes immediately with a topology error. If unsure, use ONE
member. Don't guess a member list -- ask, or default to one.
## 1. Start a sprint
```bash
curl -s -X POST http://localhost:8787/api/sprints \
-H "Content-Type: application/json" \
-d '{
"issue": "<id[,id2,...]>",
"branch": "<new-or-existing-branch>",
"base": "<base-branch>",
"members": ["<member-name>"],
"goal": "P1/P2"
}'
```
Field names, exactly as the API expects them:
| Field | Required | Notes |
|---|---|---|
| `issue` | yes | comma-separated bead root IDs (parent/epic OR a standalone leaf bead). Alias: `target_issue`. |
| `branch` | yes | created from `base` if it doesn't exist yet. |
| `base` | yes | alias: `base_branch`. This is what the sprint branches FROM -- pass the branch you actually want, not always `main`. |
| `members` | yes | array of registered member names. One member = safest default. |
| `goal` | no | `P1`, `P1/P2` (default), or `P1/P2/P3`. |
| `maxCycles` | no | default 5. |
| `allowMissingMembers` | no | bool. |
| `requirementsFile` | no | path. |
| `roleMap` | no | `{"doer":["m1","m2"], "reviewer":["m3"]}`. |
| `budget` | no | USD cap. |
| `overrideRelaunchGate` | no | bool. See below. |
Response has `sprintId`, `pid`, `port` (its own dashboard), `logPath`.
**A 201 response does NOT mean the sprint is alive** -- it can crash in the
first few seconds (bad topology, bad member, etc). Always verify (step 2)
a few seconds after launch.
## 2. Check status
All live sprints:
```bash
curl -s http://localhost:8787/api/sprints
```
Empty `sprints: []` after a launch = it already died. Check its `logPath`.
One sprint (live state, or its terminal record if it finished/crashed):
```bash
curl -s http://localhost:8787/api/sprints/<sprintId>
```
Sprint-scoped dashboard (per-role activity, bead DAG, cost, PR link):
`http://localhost:<port>` (the `port` from the launch response).
## 3. Kill a sprint
```bash
curl -s -X POST http://localhost:8787/api/sprints/<sprintId>/stop
```
## Relaunch gate
If a prior run of the SAME issue root ended in a deterministic, unaddressed
failure (crash, sync conflict, etc), a relaunch is refused with a 409. Once
you understand and have actually fixed the cause, retry with
`"overrideRelaunchGate": true` in the body. This is not a silent bypass --
only use it once you know why the prior run died.
## Common launch-time crashes
- **Topology mismatch**: members are on different git commits. Fix: use one
member, or align them first (`git fetch && git checkout <branch>` on
each), or pass whatever sync option the engine currently exposes -- check
`docs/architecture.md` "Multi-member topology" section, don't guess.
- **Unregistered member**: `GET /api/members` to see valid names.
- **Stale LLM auth**: dispatch fails with `empty_response`. Re-run
`provision_llm_auth` for that member.
## Member layout: isolate deploy/test roles from dev roles
For projects where the deployed software runs and is verified LOCALLY on the
member, give `deployer`, `integ-test-runner`, and `regression-test-runner` a
dedicated member with its own independent git clone (not a worktree),
separate from `planner`/`plan-reviewer`/`doer`/`reviewer`, via `roleMap`:
`{"deployer": ["<deploy-member>"], "integ-test-runner": ["<deploy-member>"],
"regression-test-runner": ["<deploy-member>"], "doer": ["<dev-member>"], ...}`.
Dev roles can all safely share one generic member.