dos-goal-fleet — wave-launched self-stopping goal workers, witnessed not narrated
A fleet that trusts each worker's "I'm done" is a fleet of silent fails.
The move this skill makes is the one the whole substrate exists for: a worker's
"the goal is met" is a claim with a byte-author, and the byte-author is the
judged worker. So each child's stop is gated on
dos-goal-gate— it cannot
declare done until a witness it did not write (git ancestry, an effect
read-back) corroborates the goal's effects. The fleet launches the leaves; the
kernel decides which ones actually landed. The skill narrates; it never rules.
Take an operator-supplied context describing several independent objectives,
turn each into ONE headless worker armed with a single goal, and fire them in
waves sized to whatever seat pool the host exposes — so the launch is
load-balanced and no single account walls. This is the fan-out analogue of two
sibling skills:
dos-goal-gateis one self-stopping leaf — a single agent whose "done" is
grounded. dos-goal-fleet arms many such leaves at once. Each child runs the
goal-gate discipline; this skill is the launcher and the rollup around them.
dos-witness-claimis the fold — believing only the confirmed effects
when many workers' results converge. Step 5 here is that fold, applied to the
fleet's per-instance outcomes.
The shape is domain-free: **decompose into independent goals → price the wave into
its serial/concurrent partition → arbitrate co-launch safety → wave-launch one
self-stopping child per goal → witness every claimed ship → roll up.** Pricing the
partition is the default first move, not an optional optimization: concurrency is
earned per disjoint tree, never assumed for the wave. The policy (which lanes,
which plan grammar, how the host rotates accounts, which model a child runs) is
data read from dos doctor --json / dos.toml and from the host's own launch
convention — never a literal this screenplay hardcodes. A shipped generic skill names no host (the
litmus); the host-specific launch verb is a seam you fill in Step 3.
When to use this (and when not)
- Use it when the operator hands a context with **2+ independent
objectives**, each describable as a single goal condition (a visible
deliverable), and wants them run concurrently rather than serially.
- Use
dos-goal-gatewhen it is one objective — just arm a single
self-stopping agent; no fleet needed.
- Use
dos-dispatch/dos-next-upwhen the work is already shaped as a
phased-plan dispatch packet of disjoint repo tasks — that is packet-driven;
this skill is goal-condition-driven over free-form objectives.
- Use a single agent or a loop when the objectives are a sequenced plan —
one goal waits on another's output. The fleet is for independent goals.
Never arm a loop spine. Do not goal-gate a dispatch-loop or a supervisor
spine — those have their own typed stop authority.
dos-goal-fleetarms leaf
objectives, which is exactly the sanctioned use.
Inputs
| Shape | What it looks like | Route |
|---|---|---|
| Explicit goal list | "goal 1: …, goal 2: …, goal 3: …" | one instance per listed goal |
| A context to decompose | a paragraph / doc / set of asks | Step 1: split into independent objectives, one instance each |
| A count + theme | "launch 5 workers to each find a bug in X" | derive 5 distinct goal conditions over X |
Step 0 — Discover the workspace layout, and the host's seat pool
Run the doctor verb once and read the result. **Every path / lane / exit-code
below comes from here, never a literal** (the WCR on-ramp — EXAMPLES.md Recipe 0).
dos doctor --workspace . --json
The fields this skill uses:
lanes/lanes.trees— the lane taxonomy and each lane's file-tree, for the
dos arbitrate co-launch check in Step 2.
paths.plans_glob/stamp— the host's plan grammar and ship-stamp
convention, for the dos verify ship-witness in Step 5.
git— iffalse, the git-phase ship-witness (Step 5) has no history; every
claimed ship resolves source="none". Say so; do not silently pass it.
runtime_hooks— which runtimes already havedos hook stopwired (Step 3).
The seat pool (sizes the waves). The wave size is the host's serving-account
count — read it from the host's own account/seat command, not from any verb
this kernel ships (DOS names no account mechanism). The skill needs one number,
SERVING = how many worker seats can run concurrently right now:
SERVING == 0(every seat walled) → STOP. Do not launch a paid child into
a standing usage wall. Report the soonest reset the host exposes and offer to
schedule the launch for after it.
SERVING == 1→ rotation is a no-op; launch serially or in a wave of 1, and
warn the operator that all goals share one seat's window.
SERVING >= 2→ proceed; wave size = `min(SERVING, total_goals,
--max-concurrent)`.
Account rotation is a host seam, not a DOS verb. How launches spread across
a seat pool — round-robin cursor, per-launch origin overlay, whatever — is the
host's concern, wired into the launch command of Step 3. This skill only
requires that the host's launch verb rotates seats per instance; it names no
such mechanism itself. If the host has none, every child shares one seat — set
SERVING = 1and say so in the rollup.
Step 1 — Derive one goal per objective (the three-clause contract)
If the operator gave an explicit goal list, use it verbatim. Otherwise split the
context into independent objectives — each must stand alone, no cross-goal
dependency. For each objective write a goal condition stated as a *checkable
effect*, obeying three clauses (this is what makes the child's "done" witnessable
by dos-goal-gate, not self-certified):
- Deliverable as a visible effect — a
(plan, phase)the child will ship, a
named file it will write, a commit it will land. State it as the thing a
witness can later read back (dos verify, a fresh GET). Never "the work is
good" — that has no byte-author but the worker.
- The explicit-blocker escape clause — append literally: *"— or the final
report explicitly names why it could not be produced"*. Without it an honestly
blocked child burns its whole turn ceiling re-trying. A blocked child that
says why is a clean outcome, not a failure.
- No uppercase verdict tokens in the condition text (no
SHIPPED/BLOCKED
/ DONE literals) — the condition is echoed into the child's log and any
grep-based verdict scan must not false-match it. Lowercase prose.
Decompose into effects; abstain rather than invent. An objective you cannot
name a checkable identifier for is not a passable goal — it is a NO_CLAIM to
surface for the operator, never an effect you fabricate. This is the same
decomposition
dos-goal-gateStep 2 spells out; the goal-gate wired into each
child (Step 3) enforces it at the child's stop.
Write the derived (label, goal_condition, expected_paths, in_prompt_directives)
tuples to a plan file under the run dir (Step 2) and show them to the operator
before launching. If you derived the split (vs. the operator listing it),
pause and let the operator confirm or edit it — a wrong decomposition wastes a
whole wave.
Step 2 — Create the run dir and arbitrate co-launch safety
RUN_DIR="<host-scratch-root>/goal-fleet/$(date -u +%Y%m%dT%H%M%SZ)"
mkdir -p "$RUN_DIR" # always mkdir -p BEFORE any `>` redirect, or the shell
# silently creates an empty file in the parent (hygiene)
(<host-scratch-root> is the host's gitignored scratch dir, read from config or
chosen by the operator — not a literal this skill names.)
Price the whole wave first — the default first move, not an optimization. Before
the per-child loop below, price the entire proposed partition at once and emit its
serial/concurrent split — the three sets you then launch on: **(1) the concurrent
set (the maximal disjoint group that may co-launch this wave), (2) the serialized
colliders** (goals whose trees overlap a co-launched goal — held to a later wave,
sequenced behind the goal they collide with), and (3) the peer-blocked holds (next
paragraph). You compute this before you spend a single launch, instead of discovering
a collision only when the K-th child's arbitrate refuses, after the earlier children