Fleet work guide

Use a Dev instance (devbox) for durable work, and a fleet when several instances need to implement and independently review one job. The toolkit is tools/devbox-fleet/; its CLI is bin/fleet, installed with the pitchstation-remote-work skill.

Dev instances · Dev instance guide · Markdown for agents

1. One instance or a fleet?

One instance is enough for independent trusted commands in a durable local queue. The single-instance supervisor bounds concurrency and keeps process and result evidence. Choose a fleet for work packages, dependencies, independent authors and checkers, review/fix rounds and integration of exact commits.

A fleet needs at least two instances. More instances help only when work can proceed independently. Keep one heavy job per instance at a time; review and report jobs have separate concurrency groups. A local queue is not a dependency graph.

Inspect the repository’s tools/devbox-fleet/README.md and docs/single-box.md inside that toolkit before choosing local mode. This tutorial exercises the fleet build recipe.

2. Prepare every instance

  • Runtime and tools: Python 3.9+, POSIX shell, Git, Node with compatible native module ABI, corepack/pnpm, tmux, timeout, and the project’s test tools. Add scope-specific system tools, such as pdftoppm for PDF rasterization.
  • Complete dependencies: use the target base’s package manifest and lockfile. Setup can reuse matching modules or install from the frozen pnpm lockfile. A directory named node_modules alone does not prove required modules load.
  • Browser and fonts: provide Chromium/Chrome for browser acceptance and the pinned font sources under vendor/font-sources/ for website-family work. The repository browser helper shares two Chrome slots. Preflight finding any font or a browser version does not prove the full font catalog or a passing browser test.
  • Agent login: Codex must be installed and authenticated on each instance. Record the requested model/effort and inspect observed evidence. A successful process exit alone does not prove acceptance.
  • GitHub access: each agent instance needs its own working repository credentials and access to the base and namespace branches. Agent instances exchange work through GitHub; they do not SSH into one another.
  • Coordinator: when publishing, install the existing share client there, with the intended account and audience. FLEET_SHARE_CLIENT can select its path. Remove both the plan’s share and alerts blocks to disable status/report and owner-alert publication. new creates a share block, so explicitly set --team @owner/your-team and inspect it.

Install or refresh from the repository with npm run skills:install. The installed toolkit is under ~/.claude/skills/pitchstation-remote-work/ and ~/.codex/skills/pitchstation-remote-work/. The checkout CLI also works directly.

Not verified in this release: readiness on real remote instances, SSH setup, real agent authentication and share delivery. The scratch tutorial uses fixture tools.

3. How work moves

Choose a unique namespace and immutable full base commit. <namespace>/plan contains the frozen cr/ bundle: plan, engine, briefs and boot script. Each instance owns one <namespace>/out-<BOX> branch with cr/out/<BOX>/results/ records and status.json heartbeats. Implementation, integration and merge branches also stay in that namespace.

The operator uses approved SSH paths for initial setup and diagnostics. Each boot loop fetches the whole plan bundle once a minute, finishes existing work, starts ready tasks, and publishes its own Git records. Reviewers consume recorded commit IDs. Integration consumes those exact IDs. Namespace hooks restrict worker pushes; main is landed separately.

Starting instances, executing workers, namespace commits/pushes, changing a plan, publishing reports or owner alerts, landing main and deploying each need authorization covering that action. A person or supervising session with the relevant approval handles these boundaries. A configured audience or a successful check supplies no such approval.

Environment files: the runner drops .env* from package commits and refuses integrations introducing them. Treat a reported drop as omitted work to review, never as a committed configuration change. The task result’s dropped_env_files, final Markdown and build lifecycle summaries name omitted environment files.

4. Build and code-review recipes

RecipeWork and rounds
buildDefine concrete requirements, acceptance and allowed paths per area. reviewer is the implementer; verifier is the independent reviewer. Records are fix → recheck → optional fix2 → recheck2, then integrate and report. There are two implementation/review rounds only.
code-reviewReview → independent verification and optional carried-over leads → aggregate → report, then up to two fix/recheck rounds and integration. The follow-up tracked-item cycle is not included.

The second round runs when the first recheck fails with unresolved high or medium findings. Skipped unnecessary rounds are distinct from passes. Published reports require the configured share client. Merge-main can be added after integration; an integration branch is not main.

An optional after starts a package from its predecessor’s final recorded commit. Independence also applies across dependency edges: the instance reviewing a predecessor must not build its dependent successor, or vice versa. Keep role assignments consistent along that chain or add another independent instance.

check rejects that dependency-role collision and names the conflicting tasks, instances and rule. CLI and HTML status show “waiting for independent author/checker assignments” for blocked idle tasks. Check and status apply saved coordinator moves.json assignments before explicit plan reassignments; they do not propose new moves.

5. Read the status and evidence

The CLI status fetches output branches without SSH and prints task totals, running/failed/skipped counts, heartbeat ages and the status URL. The HTML status adds phases, health, preflight freshness, model provenance and publisher health. A fresh heartbeat or report timestamp does not establish passing tests.

With authorized sharing configured, the coordinator replaces the same account-access status URL silently. Separate task success from publication success. With no share block, “not published yet” is expected.

Opt-in "alerts": {"to":"owner"} publishes owner-only alerts without a team for events such as completion, exhausted failure, silence, disk pressure or expired login; events are deduplicated for six hours. After publication, the toolkit requests notify ... --to owner and records notification.status as pending, requested or failed. A notification failure leaves successful page publication intact and is not retried within the event throttle; deduplicated alerts send no new request. If the share client cannot notify, alerts do not send mail. Not verified in this release: notification delivery. A requested notification means client acceptance, not proof that email arrived.

Use the private handoff artifact to retain source and patch hashes, evidence references, hosts, unresolved acceptance, report URL, permissions and next action. Inspect skipped records: in the scratch run, handoff lists expected skips as open items even after landing.

P6. Tests as jobs

Opt in with plan.test_jobs.enabled: true: add "test_jobs": {"enabled": true} to the trusted plan. The coordinator runs jobs outside agent sessions, with the requested commit’s repository profile and one box-wide lock under ~/.fleet/slots/. Without this setting, the existing workflow stays in place; a tree without a profile retains its legacy test command. P17 supplies pool transport separately.

Commit the source first, then use fleet test request --files … inside the task checkout. It queues that commit and prints the future record path without starting a worker or waiting. The remaining commands below are for the coordinator or an authorized standalone runner; REPO is the checkout and STATE its private I6 state directory. run executes outside an agent session. All commands accept --help.

fleet test request --files test/example.test.js
fleet test status --repo REPO --records-root STATE
fleet test run --repo REPO --records-root STATE
fleet test validate RECORD
fleet test convert SOURCE --commit COMMIT --tree TREE --provenance SOURCE_BRANCH:SOURCE_PATH --out CONVERTED
fleet test split --repo REPO --records-root STATE --commit COMMIT --base BASE --parts 2
fleet test join --repo REPO --records-root STATE --commit COMMIT --base BASE --parts 2

The local default is the run root’s test-jobs/; optional test_jobs.records_root selects a private absolute directory. A task queues requests in output/cr-scratch/fleet-test-requests/ for delivery through its output branch. Requests, records and logs are retained on the coordination branch <namespace>-sup/state under suite-records/<commit>/<selection>/, with record.json binding the commit, tree, profile, box/CPUs, times, pass totals, failures, reruns and logs. These private records reach the package’s next review task.

The engine files a merge check after each fix, using package tests and the merged profile’s test.join probes; integration still needs the complete profile gate. Failing files are rerun alone and compared with the base, with observations and verdicts in the record; reviewers retain severity and closure decisions. split fixes a file manifest and uses stable path hashes until durations are available. join reruns missing parts and proves from observed file results that every selected file ran once. A joined record has a separate selection and never satisfies the complete profile gate. Deployment runs its own coordinator gate.

Not verified in this run: real test-box execution, splitting or interruption/recovery on two real boxes, or rerunning the expensive historical suites. Local fixtures establish code behavior; the local historical-branch replay uses recorded command playback. The exact owner proof commands and remaining checks are in docs/platform/devbox-fleet-build/p6.md; the complete command contract is in tools/devbox-fleet/docs/test-jobs.md.

Before real pool use, the owner first configures the actual account CPU limit for P17, then the allowed pool and repository profile. After merge, use requires the platform deploy containing the test price class, npm run skills:install on the laptop, and the owner’s one-way grant from the coordinator pair to test boxes holding no login, key or token. Agent boxes stay on. P6 itself creates, stops, resizes or removes no box.

6. A worked tutorial: plan to landing

Run in the scratch run: two local instance roots, a local bare Git origin, two trivial packages, independent fixture review, real engine commits and merges, and a real fast-forward to that bare origin’s main. The model worker is a deterministic stub. No share block is used.

The reproducible driver and trimmed command/results evidence live in the repository at docs/platform/devbox-docs-2026-11-11/tutorial-run/. From this project’s root, use a fresh scratch name:

python3 docs/platform/devbox-docs-2026-11-11/tutorial-run/run.py --scratch tutorial-check

The driver creates only output/cr-scratch/fleet-guide/tutorial-check/, uses a file-only Git transport, refuses an existing scratch name and runs the commands below. REPO_DIR means the fixture clone, RUN its plan bundle, BASE its full base ID, and AUTHOR/CHECKER stand for its two synthetic instance roles. The recorded fixture aliases are lowercase. Hosts, repository and team below are placeholders.

Step A — scaffold and edit the plan

Run in the scratch run: new, plan/brief edits.

tools/devbox-fleet/bin/fleet new --namespace dev/tutorial/fleet-guide \
  --repo OWNER/REPO --boxes AUTHOR CHECKER --base "$BASE" \
  --recipe build --model fixture-stub --effort low --team @owner/your-team --out "$RUN"

Edit $RUN/cr/plan.json: remove share; set control to pause and paused to true; replace the example area with the two entries below. The driver also sets completion grace to zero and shortens polling through fixture-only PATH wrappers. Replace the copied cr/briefs/common.md with fixture-specific rules. A real project needs its own acceptance briefs and tests.

"areas": [
  {"id":"alpha", "title":"Alpha", "reviewer":"AUTHOR", "verifier":"CHECKER",
   "paths":["alpha.txt"], "requirements":[{"id":"alpha-1", "title":"Write alpha",
   "detail":"Create alpha.txt with one line alpha", "acceptance":"The fixture assertion passes", "severity":"high"}]},
  {"id":"beta", "title":"Beta", "reviewer":"AUTHOR", "verifier":"CHECKER",
   "paths":["beta.txt"], "requirements":[{"id":"beta-1", "title":"Write beta",
   "detail":"Create beta.txt with one line beta", "acceptance":"The fixture assertion passes", "severity":"high"}]}
]

Step B — check every prompt before launch

Run in the scratch run: an empty-record dry run, 11 decisions and 10 rendered prompts.

mkdir -p "$RUN/empty-records"
tools/devbox-fleet/bin/fleet check --plan "$RUN/cr/plan.json" --repo "$REPO_DIR" \
  --records "$RUN/empty-records" --out "$RUN/check"
tools/devbox-fleet/bin/fleet status --plan "$RUN/cr/plan.json" --repo "$REPO_DIR" \
  --records "$RUN/empty-records"

Read $RUN/check/status.html and the rendered prompts. Check does not launch workers or publish. Later prompts can use synthetic dependencies when real results do not yet exist; actual decisions still use the supplied records.

Step C — publish the plan and start the local loops

Run in the scratch run: launch pushes only to the fixture origin; the unchanged bundled boot script starts in separate local roots.

tools/devbox-fleet/bin/fleet launch --plan "$RUN/cr/plan.json" --repo "$REPO_DIR" \
  --records "$RUN/empty-records" --out "$RUN/launch-check"
sh "$RUN/cr/cr-boot.sh" AUTHOR dev/tutorial/fleet-guide "$SCRATCH/AUTHOR" &
sh "$RUN/cr/cr-boot.sh" CHECKER dev/tutorial/fleet-guide "$SCRATCH/CHECKER" &

The driver prepares each root’s clone and box.json, supplies a stub instead of Codex and verifies both loops saw the pause. This does not exercise real setup.

Not verified in this release: use of real hosts over SSH. After setup and namespace-write approval, the real-host variant is:

tools/devbox-fleet/bin/fleet launch --plan "$RUN/cr/plan.json" --repo "$REPO_DIR" --setup \
  --host AUTHOR=ubuntu@AUTHOR_HOST --host CHECKER=ubuntu@CHECKER_HOST \
  --root /RUN_ROOT --session FLEET_SESSION

Step D — steer, watch and hand off

Run in the scratch run: all five steering actions, status and JSON handoff. Pause/stop/rerun/reassign were exercised before work; reassign preserved the existing author. Resume then allowed both packages to finish.

tools/devbox-fleet/bin/fleet steer --plan "$RUN/cr/plan.json" --repo "$REPO_DIR" pause
tools/devbox-fleet/bin/fleet steer --plan "$RUN/cr/plan.json" --repo "$REPO_DIR" stop
tools/devbox-fleet/bin/fleet steer --plan "$RUN/cr/plan.json" --repo "$REPO_DIR" reassign fix:alpha=AUTHOR
tools/devbox-fleet/bin/fleet steer --plan "$RUN/cr/plan.json" --repo "$REPO_DIR" rerun fix:alpha \
  --reason 'Fixture before first attempt'
tools/devbox-fleet/bin/fleet steer --plan "$RUN/cr/plan.json" --repo "$REPO_DIR" pause
tools/devbox-fleet/bin/fleet steer --plan "$RUN/cr/plan.json" --repo "$REPO_DIR" resume
tools/devbox-fleet/bin/fleet status --plan "$RUN/cr/plan.json" --repo "$REPO_DIR"
tools/devbox-fleet/bin/fleet handoff --plan "$RUN/cr/plan.json" --repo "$REPO_DIR" --json

Not verified in this release: moving active work to a different real instance, a completed-result rerun and real model review quality.

Step E — review exact integration and request its merge

Run in the scratch run: the fixture reviewer checks each recorded package commit; integration runs two assertions. After it finishes, the driver reads the exact integration record and adds this merge request to the local plan:

"merge_main": {"main":"FULL_MAIN_COMMIT", "fixes":"FULL_INTEGRATION_COMMIT",
               "message":"Land tutorial [skip ci]"}
tools/devbox-fleet/bin/fleet check --plan "$RUN/cr/plan.json" --repo "$REPO_DIR" --out "$RUN/merge-check"
tools/devbox-fleet/bin/fleet launch --plan "$RUN/cr/plan.json" --repo "$REPO_DIR" --out "$RUN/merge-launch-check"

The driver restarts the same local boot loops to run the newly requested merge, waits for its completed record, and verifies its parents. Copy that record privately as MERGE_RECORD; use its actual branch as MERGE_BRANCH.

Step F — validate and land the fixture

Run in the scratch run: land without push, inspect its output, then land with push to the local bare origin only.

tools/devbox-fleet/bin/fleet land --plan "$RUN/cr/plan.json" --repo "$REPO_DIR" \
  --branch "$MERGE_BRANCH" --record "$MERGE_RECORD" --attestation "$SCRATCH/land-attestation.json"
tools/devbox-fleet/bin/fleet land --plan "$RUN/cr/plan.json" --repo "$REPO_DIR" \
  --branch "$MERGE_BRANCH" --record "$MERGE_RECORD" --attestation "$SCRATCH/land-attestation.json" --push
tools/devbox-fleet/bin/fleet status --plan "$RUN/cr/plan.json" --repo "$REPO_DIR"
tools/devbox-fleet/bin/fleet handoff --plan "$RUN/cr/plan.json" --repo "$REPO_DIR" --json

Observed result: 12 terminal records, seven done, five expected skips (four unnecessary second-round tasks and unconfigured publication), zero failed. Both landed-file assertions passed. Boot processes exited successfully. The evidence includes commands, plan, runtime records and the source-bound landing attestation.

Not verified in this release: landing a real repository, publishing status/alerts, production deployment, real-agent execution or reboot/disconnect recovery.

7. Steering a running job

P0: keep a runner open

Read in code (fleet/engine.py:709, bin/fleet_cli.py:302): set optional "keep_open": true in the plan to keep polling after tasks finish, then use fleet steer --plan PLAN --repo REPO close. Active work and required publication finish first. Omitting the setting preserves the completion grace.

Read in code (bin/fleet_check.py:20, fleet/recipes/build.py:139, bin/fleet_land.py:57): check rejects package/requirement paths the runner never commits, including .env.example; build prompts include optional package focus. Land reads the coordinator's output-branch merge record by default; --record FILE overrides it.

Read in code (scripts/deploy-gate.sh:84, briefs/build/implement.md:19, box/box-setup.sh:191): workers run affected tests with one test file at a time for every two CPUs, at least one, leaving the complete repository suite to integration. The gate uses that default, honors GATE_CONCURRENCY, and includes toolkit unittests. Setup completes partial clones; the login-independent resume hook logs checks at 30 and 60 seconds. Not verified: real reboot or laptop-disconnect recovery.

P0 round 2: validation and completion

Read in code (bin/fleet_check.py:20, bin/fleet_land.py:300): requirement paths preserve literal underscores, including _data/settings.json; excluded files with line ranges, such as docs/service.key:12-18, are refused. Landing uses the freshly fetched remote branch when present despite a stale local branch.

Read in code (box/box-setup.sh:191, fleet/records.py:173): partial-clone completion includes retained tag history. A completed control: close run bypasses routine publication throttling for its final status page; active work, publication ownership, retries and terminal publication guards still apply.

P0 final repair: shell paths and portable tests

Read in code (bin/fleet_check.py:23,105,146): check refuses curl -odata/settings.json, Bash $'data/settings.json' quotes and /usr/bin/curl --output=data/settings.json in package or requirement fields. Quote a whole filename containing spaces; _data/settings.json and fixture.env.example stay allowed. Read in code (tests/test_box_scripts.py:52,193, tests/test_p0_box_restart.py:340): tests use scratch homes and stand-ins without Codex or Claude, and private tmux sockets with an explicit missing-tool skip; they never contact the invoking user's systemd manager. Not verified: the complete merged gate on the separate test box or a real reboot. Commands and evidence: docs/platform/devbox-fleet-build/p0.md.

P0 further round 1: path spellings and restart checks

Read in code (bin/fleet_check.py:20, box/box-setup.sh:79): check refuses excluded paths in quotes, commands and option assignments, including --output=data/settings.json, --config=.env.example and --identity=id_ed25519, with space-separated arguments or line ranges too; _data/settings.json stays allowed. Restart checks use an exact tmux pane target with a trailing colon and log liveness at 30 and 60 seconds. Not verified: real reboot acceptance. The repository handoff docs/platform/devbox-fleet-build/p0.md records local real-tmux tests and the supervisor-provided nine-file offline history evidence.

P0-r4: literal paths and static limits

Read in code (bin/fleet_check.py:36, bin/fleet_check.py:85): check removes literal Bash quoting; ANSI-C octal values wrap modulo 256, so $'\544ata/settings.json' names data/settings.json. Hex, Unicode and control escapes are decoded too. Read in code (bin/fleet_check.py:172, bin/fleet_check.py:230, bin/fleet_check.py:293): it checks the whole word, every value after = or :, and every suffix after the first character of a word starting with a single -, for any program and full executable paths such as /usr/bin/curl, without a curl flag whitelist. It refuses -sSRodata/settings.json, -4odata/settings.json and -#odata/settings.json. Conservative refusal can flag -o_data/settings.json; bare _data/settings.json and --output=_data/settings.json remain allowed. Quote an entire spaced filename, such as "data backup/settings.json", to keep it one word.

Read in code (bin/fleet_check.py:187, bin/fleet_check.py:220): literal shell command operands use one shared parser in package paths, inline code, structured requirements and prose. It recursively checks /bin/bash -c ':>data/settings.json' without requiring whitespace in the script, and handles -ce, -ec and +ce. Interposed flags, named -o/-O options, -- and redirections before the script do not hide its literal paths. Ordinary quoted arguments stay whole. Command-option recognition remains conservative and has no executable whitelist; the checker never executes plan text.

Read in code (bin/fleet_check.py:85, fleet/records.py:224, fleet/records.py:340): paths built only at runtime through a variable, glob, brace expansion, command substitution or a change of directory (cd) are outside this static check. The commit-time unstaging guard remains and names omitted paths in unstaged_secrets.

Read in code (test/devbox-fleet-p0-toolkit.test.js:11, test/devbox-fleet-p0-toolkit.test.js:17, test/devbox-fleet-p0-toolkit.test.js:24, test/devbox-fleet-p0-toolkit.test.js:20, test/devbox-fleet-p0-toolkit.test.js:27): the toolkit bridge runs only the quick set, with 300 s limits for Python and its Node test, retaining elapsed-time reporting and original toolkit failure output. Not verified: the complete real merged gate. Supplied timings and the timeout rule: docs/platform/devbox-fleet-build/p0.md.

P0-r5: recursive literal checks supersede script selection

Read in code (bin/fleet_check.py:123): the literal word decoder joins an unquoted backslash-newline before recognizing ANSI-C or dollar-double quotes, including a continuation between $ and its quote. It removes literal quoting and decodes ANSI-C octal modulo 256, hex, Unicode and control escapes without executing plan text; locale translation is a runtime operation.

Read in code (bin/fleet_check.py:255): every decoded word is checked again as shell text, recursively to depth 16, with repeated text deduplicated at fixed points. This supersedes the earlier script selector and quoted-caption policy: no program, option, argument position or redirection selects which word to reparse. Thus /bin/bash -c - ':>data/settings.json', -ce, +, -- and {fd} redirections cannot hide a literal script. Conservative recursion can refuse the ordinary quoted caption 'notes data/settings.json'; quoting alone does not keep captions or spaced filenames opaque. The safe-root spaced path '_data/settings with spaces.json' remains allowed.

Read in code (bin/fleet_check.py:22, bin/fleet_check.py:255): uncertain text, including text remaining at the depth bound, fails closed when removing quotes, backslashes, dollar signs and backticks exposes an excluded candidate. Literal underscores remain intact. The same traversal covers package paths, inline code, structured requirements and prose (bin/fleet_check.py:277).

Read in code (fleet/engine.py:64, fleet/records.py:15, fleet/records.py:224, fleet/records.py:368): the engine's SECRET_PATHS exclusions and commit-time unstaging guard remain authoritative; omitted files are named in unstaged_secrets. Paths built only at runtime through a variable, glob, brace expansion, command substitution or a change of directory (cd) are outside this static check (bin/fleet_check.py:123). Not verified: arbitrary runtime path construction or real external-service/reboot behavior.

Read in code (bin/fleet_check.py:221, bin/fleet_check.py:277): only an explicit Read sentence containing a list of whole raw background hyperlinks (optionally followed by for background) is exempt; Markdown labels are still checked. All other URL-shaped text is checked, including redirection operands such as :>"scheme://fixture.invalid/../../data/settings.json", quote fragments, nested scripts, links containing shell operators and unmarked positional commands such as touch URL or Run touch URL. No program or command-introducer guessing selects operands. Read in code (bin/fleet_check.py:47): ANSI-C raw SOH/DEL bytes retain Bash's parser markers through control-escape expansion. Not verified: Bash versions other than the tested 5.2.21.

  • Pause / resume: push a shared plan control. Active children can continue; paused passes do not collect their finished results until resumed.
  • Stop: suspends this run’s passes. It does not power off the instance or kill already launched agents.
  • Rerun: name exact task IDs. It invalidates matching results finished before the cutoff. Include completed dependent tasks whose inputs must be regenerated.
  • Reassign: name TASK=BOX. Preserve author/checker independence, including dependency edges. An old child can still be running; inspect it before duplicating work.

Steering changes and pushes the remote plan. Use a current plan snapshot; competing edits are refused instead of force-pushed. The coordinator may reassign a silent instance’s unstarted work to healthy capacity while preserving independence. Inspect the resulting assignments and records.

8. Review exact commits and land

Read the independent reviews, unresolved findings and suite evidence for the recorded integration and merge commits. Validate the exact branch tip and completed merge record, rather than a later branch that merely contains an accepted commit.

land checks the selected parents, ancestry, automatic merge tree, new conflict markers and [skip ci] commit messages. It prints the suite result from the record; it does not run the suite. It writes an attestation bound to the source and record hash. --push fast-forwards main only when possible, and records the pushed commit after success.

If main moved beyond the checked ancestry, make a new merge on current main, run the relevant validation and repeat independent acceptance. Source changes need new acceptance. A person or authorized supervising session approves the real main push. Deployment requires its own explicit approval and execution.

9. Prompts to give your AI agent

Replace every uppercase placeholder. These prompts state the required decisions; they do not grant remote access, publishing, landing or deployment permission.

Plan

Plan a fleet build for OWNER/REPO at FULL_BASE_COMMIT using the
pitchstation-remote-work toolkit. Compare one Dev instance with a fleet.
Define package paths, concrete acceptance checks, dependencies and independent
AUTHOR/CHECKER assignments, including dependency edges. Create and inspect
the local plan and rendered prompts. Report readiness gaps and every
unverified step. Stop before external actions unless already authorized.

Launch

Launch the reviewed plan at PLAN_PATH using the approved instance setup
and worker-execution permissions. Confirm the existing grant covers commits
and pushes under NAMESPACE only. Confirm publication permission separately
for status/reports and owner alerts to @owner/your-team / owner as appropriate.
If publishing is not authorized, remove the share block and disable alerts.
Use ubuntu@AUTHOR_HOST and ubuntu@CHECKER_HOST as the approved SSH paths.
Inspect dependency modules, browser, font sources, system tools, login and
GitHub access on each instance. Do not land main or deploy.

Watch and hand off

Watch NAMESPACE through Git records and the approved status page.
Separate passed, failed, skipped and unavailable checks; inspect exact commits
and model evidence. Use only already-authorized plan controls; request a
decision for changes outside that grant. Check old processes before rerunning
or reassigning work. Produce a source-bound handoff with evidence, open items,
publication outcomes, required permissions and the next action. Verify actual
disconnect/restart evidence before promising laptop-off continuity.

Land

Review MERGE_RECORD and MERGE_BRANCH for OWNER/REPO. Inspect exact parents,
independent acceptance and suite results, and run the landing validation.
Prepare the concrete result for approval. Push main only when the existing
authorization explicitly covers landing that checked source. Revalidate if
the source or main changed. Deployment is a separate permission and action;
do not deploy without that authorization.

10. Recovery and the human decisions

Read status and preserved records first. Diagnose disk, memory/load, runner session, credentials, stale state and publication separately. A live PID, tmux session or configuration file alone does not prove acceptance or laptop independence.

Doctor ignores non-task JSON metadata, including list-shaped state/preflight.json, while retaining task-state diagnostics. Not verified in this release: real remote diagnostics and departure checks. With approved read access, use:

tools/devbox-fleet/bin/fleet doctor --departure --plan "$RUN/cr/plan.json" --repo "$REPO_DIR" \
  --host AUTHOR=ubuntu@AUTHOR_HOST --host CHECKER=ubuntu@CHECKER_HOST \
  --root /RUN_ROOT --session FLEET_SESSION

For a stopped instance, have an authorized operator restart it through the Dev instance lifecycle tools. Reuse the exact run root and session when repeating setup. Retained disks preserve records and restart hooks; a dead process is recovered as an interrupted attempt. Expired login needs operator authentication. Automatic reboot recovery and laptop-off operation require observed, source-bound recovery/disconnect evidence.

Preserve live locks, namespace hooks and other runs’ files. A fleet stop is different from powering off a whole instance, which can interrupt other projects. Resolve missing credentials, cost approvals, unresolved findings, assignment collisions and unexplained merge edits with the person or supervising session responsible for them. Two exhausted build/review rounds require a new decision; they do not establish acceptance.

P2. Installed supervising sessions

P2-r5: indirect reads and uncertain outcomes

Read in code (tools/devbox-fleet/supervise/permissions.py:25, tools/devbox-fleet/supervise/outcomes.py:26): searches and fetched Git trees check the engine's SECRET_PATHS before reading content. A lost HTTP response, nonzero exit, signal or timeout keeps delivery-unknown for a person to reconcile; restart, takeover and --retry-start never clear uncertainty. Proven pre-send failures remain retryable. See docs/supervising.md. Real two-box operation and external delivery remain Not verified.

Read in code (tools/devbox-fleet/supervise/suplib.py:74, tools/devbox-fleet/supervise/status_report.py:1557): cached inputs and handoff copies require regular files without symlinks. Slash-bearing Grep globs require a permitted search tree. reporter.lock serializes receipt recovery and delivery, including --once; retry resume after a busy reporter saves its receipt. Local validation and DNS failures before connection remain retryable, while earlier request uncertainty is retained. See docs/supervising.md. External delivery remains Not verified.

P2-r4 round 2: Git objects and interrupted operations

Read in code (tools/devbox-fleet/supervise/permissions.py:187, tools/devbox-fleet/supervise/notify_owner.py:112, tools/devbox-fleet/supervise/manage.py:356): Git object reads check object types and paths. A signal-terminated notifier leaves delivery-unknown; reconcile fallback and takeover mail before resend. Retry an interrupted owner note with the same input: state/owner-note-pending.json preserves its operation identity. A different pending note is refused; identical text submitted after completion creates a new note. See docs/supervising.md. Real two-box operation and mail delivery remain Not verified.

P2-r4: secret paths and delivery recovery

Read in code (tools/devbox-fleet/supervise/permissions.py:40, tools/devbox-fleet/supervise/supervise_loop.py:583): the profile uses the engine's SECRET_PATHS, including firebase-service-account.json, for reads, searches and Git publication. Bundle checks include data files as well as Python modules. A durable not-attempted receipt lets the sender recover a delivery claim after a lost push acknowledgement and temporary readback failure. Uncertain sends still require reconciliation. A timed-out deploy start or uncertain first share creation also waits for reconciliation. See docs/supervising.md. Real two-box operation and mail delivery remain Not verified.

P2-r3 follow-up: delivery claims and worker paths

Read in code (tools/devbox-fleet/supervise/permissions.py:374, tools/devbox-fleet/supervise/supervise_loop.py:583, tools/devbox-fleet/supervise/facts.py:121): validate the resolved plan's executable bundle even through symlinks. First-fallback mail has a shared delivery claim without expiry; uncertain delivery needs reconciliation before resend. Worker facts default to ~/fleet/ plus the namespace with slashes changed to hyphens. A configured supervise.run_root records an existing fleet launch --setup --root ROOT choice. See docs/supervising.md for recovery limits. Real two-box operation and mail delivery remain Not verified.

Read in code (tools/devbox-fleet/supervise/manage.py:465, tools/devbox-fleet/supervise/suplib.py:312): resume invalidates earlier heartbeat observations; takeover waits for the resumed holder's fresh heartbeat. Uncertain pushes are checked before replaying events. Facts document deployment checks and production evidence. Supervising shell operations use the isolated permission dispatcher; see the toolkit's docs/supervising.md.

Read in code (scripts/install-local-skills.sh:50): refresh with scripts/install-local-skills.sh pitchstation-remote-work. Both agent skills include the supervisor and its templates. Existing runs keep their frozen toolkit copy.

Read in code (tools/devbox-fleet/bin/fleet_supervise.py:54): configure this run locally on each existing coordinator with a plain I1 settings JSON dictionary. Use primary on the first box and standby on the second. The standby starts only after a fresh primary heartbeat. The units contain no environment-file assignment; configuration is in the run's run.json.

fleet supervise install RUN --plan PLAN --settings SETTINGS_JSON --repo REPO --box BOX --role primary
fleet supervise start RUN
fleet supervise status RUN
fleet note RUN FILE
fleet rounds allow RUN 3
fleet engine set RUN codex
fleet supervise stop RUN
fleet resume RUN

Read in code (tools/devbox-fleet/supervise/facts.py:48, tools/devbox-fleet/supervise/timings.py:8): facts are generated from the plan, settings and version-1 box records; pass prompts list notes oldest first. Never edit those generated files. Resume requires the local lease and no recorded deploy start; a final run needs resume before notes. Defaults are a 60-second cycle, a pass after 12 idle minutes, a 100-minute pass limit, takeover after 20 silent minutes and an alarm after 45 minutes without progress. Optional settings override these values; the generated table is in the toolkit's docs/supervising.md.

Read in code (tools/devbox-fleet/supervise/manage.py:415, tools/devbox-fleet/supervise/standby_watch.py:114): retry interrupted resume with the same command on the lease holder. Takeover restores shared progress before a pass, and heartbeat observations survive watcher restart. Generated facts retain summary, focus and paths. The permission profile checks exact helper arguments, output paths, staged files and recursive searches.

Not verified: real logout continuity, two-box execution, signed-in agent permission refusals, external publication, mail delivery and deployment. Read the P2 build note for owner checks before relying on laptop-off continuity.

Read in code (tools/devbox-fleet/supervise/suplib.py:74, tools/devbox-fleet/supervise/outcomes.py:38): every automatic reader uses the classified regular-file boundary. Sender state is valid, absent (ENOENT only), or unreadable under one sender lock. Unreadable receipts keep delivery-unknown and a *-state-uncertain.json marker for human reconciliation across restart and takeover. Repair the original state and verify delivery before clearing its marker. See docs/supervising.md. Real two-box operation and external delivery remain Not verified.

Read in code (tools/devbox-fleet/supervise/standby_watch.py:133, tools/devbox-fleet/supervise/standby_watch.py:139, tools/devbox-fleet/supervise/suplib.py:626): a definitely refused takeover clears takeover-pending.json, allowing automatic retry after later silence. If publication cannot be confirmed after a lost acknowledgement, failed readback or failed Git ancestry check, the intent stays for reconciliation.

P3. Box records and repository profiles

Read in code (tools/devbox-fleet/bin/fleet_box.py:264, tools/devbox-fleet/fleet/boxrecord.py:261): fleet box record refreshes the optional local ~/.fleet/box-record.json. fleet boxes reads capabilities and state from the platform registry without SSH. fleet boxes --check-logins checks this box immediately; normal login checks are cached for 24 hours. The setup helper installs a five-minute timer.

Read in code (tools/devbox-fleet/bin/fleet_box.py:102, tools/devbox-fleet/fleet/alerts.py:103, tools/devbox-fleet/fleet/status.py:139): optional plan.box_requirements supplies live/submitted run requirements to coordinator alerts and the existing run page. Local refreshes discover ROOT/cr/plan.json; optional config.runs adds other plans. Use fleet boxes --plan PLAN_JSON --html LOCAL_PAGE to render current deficits; repeat --plan for more plans. Ordinary inventory reads retain unmet warnings on later renders without sending alerts. Login loss is observed daily or immediately with the local login check.

Read in code (tools/devbox-fleet/bin/fleet_profile.py:54): fleet profile check, fleet profile prepare, fleet profile brief and fleet profile test-job use the repository's .fleet/profile.json. fleet repo setup REPO clones, installs and verifies trusted repository code. Review its profile first. Not verified: six real boxes, login revocation, timer/logout recovery, the private second repository and production deployment. Read in code (tools/devbox-fleet/box/box-setup.sh:196, tools/devbox-fleet/briefs/build/integrate.md:17): setup invokes the optional record helper after PATH is ready; the integration brief uses the merged checkout's profile when present and the legacy isolated command otherwise. External deployment adoption remains not verified; see docs/platform/devbox-fleet-build/p3.md.

P3 further round

P3 follow-up 2: optional requirements and push limits

Read in code (bin/fleet_box.py:224, fleet/alerts.py:124, fleet/alerts.py:375): omitted or empty capability requirements, including empty agent/class lists or requirements for another box, perform no receipt coordination. Registration overrides follow the same rule; removing requirements retains an existing episode's recovery boundary locally until requirements return. Receipt pushes retain the repository's pre-push hook and use --no-follow-tags. Read in code (bin/fleet_box.py:84): registry rows use lastReport.capabilities independently of their optimistic version.

Read in code (tools/devbox-fleet/fleet/alerts.py:324, tools/devbox-fleet/fleet/alerts.py:358): distributed capability alerts reserve a receipt at the current Git origin on <namespace>/capability-alert-<key hash>. Ordinary fast-forward pushes prevent stale worker or coordinator copies from publishing twice; an unavailable origin defers publication. Keep these branches until the run is retired. Recovery rearms a later loss; failed or uncertain publication retains the six-hour retry policy.

Read in code (tools/devbox-fleet/fleet/profile.py:307, tools/devbox-fleet/bin/fleet_box.py:91): python3 tools/devbox-fleet/bin/fleet profile test-job --run > suite.tap 2>&1 retains complete test output without description JSON. Inventory rejects another box alias's record, supplies no classes and names the mismatch. Not verified: live remote transport and owner notification delivery.

P3 queued capability alerts

Read in code (fleet/alerts.py:435, fleet/alerts.py:466): dispatch rechecks queued capability alerts against the current plan's required box, classes and agents before receipt handling. Omitted or empty requirements, requirements for another box only, empty agent/class lists or removal of the box cancel the queued alert without publication, notification or a new origin receipt. Retained pending entries are checked again each pass. Read in code (bin/fleet_box.py:254): local registration overrides supply their effective requirements to the same check. Not verified: real login revocation and remote alert delivery.

P3 queued capability identity

Read in code (fleet/alerts.py:470, fleet/alerts.py:522, bin/fleet_box.py:248): queued losses retain their original missing class/login identities. Removing a missing class or login cancels its alert even when healthy requirements remain. If some missing capabilities remain required, the message lists only those remaining capabilities. The legacy decoder reads the exact generated message format from older queues; unidentifiable losses are canceled before receipt handling.

Read in code (fleet/engine.py:1066): P0 integration must remove cancelled results from the pending outbox; the exact engine change is in docs/platform/devbox-fleet-build/p3.md. Until integration, re-adding the same requirement can revive a retained event. This package leaves the engine unchanged. Not verified: real login revocation and remote notification delivery.

P3 removed requirements and later loss episodes

Read in code (fleet/alerts.py:474, fleet/alerts.py:556, bin/fleet_box.py:279): removing capability requirements retires known delivery receipts and retry throttles locally, even with an empty coordinator outbox. No origin receipt is written while requirements are absent. Re-adding them reconciles the recovery boundary before a fresh loss; old, equal-time or undated observations cannot erase it. Accepted loss identities stay in the local ledger, so partial removal also closes the episode when only healthy requirements remain. Rejected old observations cannot relabel that loss. Standalone checks also retire the previous episode. Repeated losses still produce one alert per episode.

Read in code (fleet/alerts.py:33, fleet/boxrecord.py:32, fleet/health.py:112, bin/fleet_box.py:333): box observations and alert receipts retain available microseconds. Local requirement withdrawal starts from its action time even when the cached record is older. Read in code (fleet/alerts.py:50): if that clock ties or predates the known delivery attempt, both writers keep a conservative local ordering marker one microsecond after that attempt; this marker is not a machine observation. Observations at or before the retained recovery marker remain blocked until a fresh later observation arrives. Legacy second-precision timestamps remain valid.

Read in code (fleet/engine.py:1066): the required P0 pending-removal integration line in docs/platform/devbox-fleet-build/p3.md is unchanged. Not verified: real scratch login revocation, daily timer execution or remote notification delivery.

P3 alert ordering and interrupted writes

Read in code (fleet/alerts.py:36, fleet/engine.py:999, bin/fleet_box.py:340): alert timestamps use one parsed UTC ordering, including whole seconds, fractions, Z and +00:00; missing or invalid times sort oldest. A delayed healthy observation can retire a delivery receipt only when it is newer than every saved lifecycle boundary, under the same local lock. Recovery tombstones survive a restart. Read in code (fleet/engine.py:1025, fleet/engine.py:1097): a journal preserves the coordinator snapshot when either local or output-copy writing is interrupted. The required pending-removal condition is now included in P3; it consumes sent, resolved and cancelled events. This supersedes the older instructions to leave that line for P0 integration. Not verified: real scratch login revocation, daily timer execution or remote owner notification delivery.

M1. Integrated toolkit

Read in code (supervise/facts.py:16, fleet/boxrecord.py:64, box/box-setup.sh:196, briefs/build/integrate.md:17): supervising facts share the bounded box-record reader; setup invokes the optional record helper after PATH is ready; build integration uses the merged checkout's repository profile and retains the legacy no-profile path.

Read in code (test/devbox-fleet-p0-toolkit.test.js:1, tools/devbox-fleet/test-plan.json:1): the deploy check runs only the quick set, with 300 s limits for Python and Node. Run the complete toolkit collection separately before a merge; both modes print totals and elapsed time.

python3 tools/devbox-fleet/run_tests.py quick
python3 tools/devbox-fleet/run_tests.py full

Not verified: real two-box takeover, reboot/logout continuity, scheduled login loss, external delivery, six-box inventory, the private second repository and external deploy/profile adoption. The package notes retain the owner's commands.

P1. Submit one request

Read in code (tools/devbox-fleet/bin/fleet_submit.py:584, tools/devbox-fleet/box/box-setup.sh:303): submission requires a valid version-one .fleet/profile.json, its selected lockfile, package.json and pnpm-lock.yaml. Fresh runner bootstrap uses the fixed command COREPACK_ENABLE_DOWNLOAD_PROMPT=0 corepack pnpm@10.10.0 install --frozen-lockfile in the runner's deps directory, with the immutable base's manifest and pnpm lockfile. Existing dependencies are reused only when their manifest matches that base. Missing profiles refuse submission before runner installation. Read in code (tools/devbox-fleet/bin/fleet_profile.py:23, tools/devbox-fleet/fleet/profile.py:204): separate repository preparation through fleet profile prepare or fleet repo setup REPOSITORY uses the profile's install.command, preparation settings and verification commands. These settings do not replace the runner bootstrap command.

Read in code (tools/devbox-fleet/fleet/submission_services.py:155, tools/devbox-fleet/supervise/manage.py:174): toolkit files must match the request's exact commit. The resolved base commit in the target repository must contain tools/devbox-fleet/ with exactly these toolkit files. Only manage.generated_units from that toolkit generates installed units. Requests, settings and the environment cannot supply unit text or unit commands; refused keys are named before run assets are created. Both preview and actual submission start every exact generated command once before the submission checkpoint or any branch publication or service installation, with --self-check, only the unit's Environment values (equivalent to env -i), a scratch working directory and a 30-second limit. Real startup loads toolkit modules, reads settings and resolves external programs through the unit's PATH before state writes or network use. One JSON line reports "ok": true, the program, loaded modules and resolved programs. A nonzero exit, timeout or invalid JSON refuses submission and names the unit and reason.

Read in code (tools/devbox-fleet/supervise/template_validation.py:10): accepted pass-template names come from the actual render_prompt call. Names that renderer fills are accepted; unfilled names are refused before creating run assets.

Read in code (tools/devbox-fleet/bin/fleet_submit.py:633): preview and actual submission share deterministic checks before the submission checkpoint, saved toolkit snapshot or run branches are created. Shared validation checks package and pass prompts, the permission profile, immutable base files consumed by runner setup, local Git author and committer identities used for publication, runner setup's required remote refs and a positive setup timeout, and local SSH availability for the default transport.

Read in code (tools/devbox-fleet/bin/fleet_submit.py:453, tools/devbox-fleet/supervise/manage.py:206): the default runner root is ~/fleet/ plus the namespace with / replaced by -. An explicit supervise.run_root wins. Keep ~/ unexpanded until the command reaches the box.

Read in code (tools/devbox-fleet/bin/fleet_submit.py:633, tools/devbox-fleet/supervise/suplib.py:140): preview rehearses the bundle and available package prompts, standing brief, facts and unit templates before creating submission state or saving the frozen toolkit. The preview uses temporary toolkit copies and Git fetches local objects; it does not publish run branches or install services. Planning packages are checked after the coordinator writes them. Git sync rejects linked handoff ancestry before notes are read, copied or published.

Read in code (tools/devbox-fleet/fleet/request.py:186): fleet submit accepts only "recipe": "build". Use the existing plan commands for code-review and merge-main.

Read in code (tools/devbox-fleet/fleet/request.py:59, tools/devbox-fleet/supervise/manage.py:206): each role keeps its model and effort. models.builder and models.reviewer select workers; models.supervisor and models.fallback select the primary chain. Optional models.standby and models.standby_fallback select takeover. Omit both standby keys to keep the existing shared chain; set only models.standby to retry that model. The supervising model prefix selects Codex or Claude.

Read in code (tools/devbox-fleet/fleet/request.py:26, tools/devbox-fleet/bin/fleet_submit.py:219, tools/devbox-fleet/bin/fleet_submit.py:232): submission rejects symlinks in request, toolkit and run assets, including internal links. Preview finds a valid mixed auto/named coordinator pair and refuses reserved coordination branches (plan, out-*, fix-*, fixes*, main-merge) and their descendants. Retry refuses changed SSH aliases, repository paths, runner roots or local repository destinations before any setup step.

Read in code (tools/devbox-fleet/fleet/request.py:384, tools/devbox-fleet/templates/request.md:3): write the goal, deliverables, done checks and exclusions in one Markdown request. Its single JSON fence carries all run settings; unknown or missing keys fail with the key and line. The versioned standing brief supplies the repeated report, supervision, merge, deploy and completion rules.

fleet submit REQUEST --repo REPO --inventory INVENTORY_JSON --dry-run
fleet submit REQUEST --repo REPO --inventory INVENTORY_JSON
fleet steer resume --plan PLAN_JSON --repo REPO

Read in code (tools/devbox-fleet/bin/fleet_submit.py:741): submit from the owner's laptop using a private inventory of existing boxes. Inspect the remote commit, packages or “to be planned”, box roles, models, available estimate and owner actions in the preview. --dry-run stops there. --state-root PATH selects retained submission state; rerun the same request after interruption. The command starts this run's supervisors, runners and report, then checks departure. Its final output says “you can close the laptop now” or lists what remains. Run dates use UTC; report times use the requested timezone.

Read in code (tools/devbox-fleet/briefs/plan.md:7, tools/devbox-fleet/fleet/request.py:175): "packages": "plan" asks the coordinator to write, check and publish a plan first. Every package, including later additions, needs a one-sentence summary of at most 140 characters. Submitted plans fail without it; old plans warn. With "start": "after-review", tasks stay paused until owner release. Before the resume command above, fetch the published plan branch and save its current cr/plan.json as PLAN_JSON; review that version.

Not verified: the three real laptop scratch submissions, two-box execution, external publication and actual departure. Local stand-ins test the code paths; use the owner checks in the P1 build note before relying on continuity.

Read in code (tools/devbox-fleet/fleet/submission_services.py:66): an installed toolkit's maintained components must match the documented projection of the resolved base commit. Submission freezes the complete repository tools/devbox-fleet/ tree. Files in the operator's skill root never supply frozen toolkit bytes.

Source: the repository toolkit and its CLI parser. Local tutorial evidence is recorded alongside the contract note. Real deployment and publication are separate release steps.

P17. Coordinator-directed test pool

The owner reserves T4/T8 with an explicit monthly hours budget, adds account_cpu_limit to the laptop inventory, installs the refreshed skills, then gives each coordinator its own fleet testbox grant COORDINATOR TESTBOX --ledger PRIVATE_LEDGER. --dry-run lists the four steps and each undo; revoke removes that pair. The scoped provisioner owns firewall changes.

Test boxes hold no AI login, repository key, production key or token. Their forced SSH dispatcher accepts only test jobs and the test repository push. Setup box/test-box-setup.sh --check lists observations without changing anything. Jobs detach, queue under the box lock and use the repository profile. Lost transport retries on the coordinator once and the report says coordinator fallback. An empty test box stops 60 minutes after its last job and last keepalive; agent boxes stay on. The deploy job keeps its coordinator gate.

If the CPU setting or available capacity prevents startup, the published plan keeps all test jobs on the coordinator. Jobs reuse setup's resource paths. A surviving test subprocess keeps the box occupied after its worker leader exits; the next job and idle shutdown wait. Atomic grant receipts preserve interrupted revoke recovery.

Not verified in this run: real provisioning, readiness timing, firewall isolation, detached remote execution, idle shutdown/restart and box loss. P6 owns the executor and records; the joining seam and exact owner proofs are in docs/platform/devbox-fleet-build/p17.md.