Skip to content

Task format

The task-format reference defines project and area metadata, task files, and task bundles. That same file ships with every installed skill so harnesses and operators read one specification.

The research contract covers area research, mixed hypothesis bundles, and task research evidence, keeping task completion separate from experiment decisions. Under the local experiment path, zdev runs correctness checks and measurements, retains candidate Git code, and either keeps or restores owned files before completing and committing the result. A requires_code dependency admits follow-up work only after verified acceptance.

The installed Codex research route and Claude research route generate scoped supporting tasks and hypotheses, coordinate serial runs, and manage rolling source worktrees. Other harnesses can run the local experiment commands directly, though they do not include automatic research routes.

The research run contract authorizes generated mixed work, tracks dispatch and command costs, and keeps those budgets intact across recovery. Its commands report current accepted samples, recorded lessons, unfinished work, and remaining allowance. Changes to the evaluator or to accepted supporting code require an actual counted rebaseline; exhausting the queue or stopping a run leaves the area open.

Isolated hypothesis candidates keep records and acceptance in one authoritative checkout while workers edit code in linked source worktrees admitted with zdev research experiment <area> <task> admit --source <root> --path <file>. Workers read authoritative records by absolute path and touch only source code. Once the coordinator confirms a worker has stopped, return --worker-stopped captures the Git transport, evaluate runs measurements in the source tree, and integrate claims the serialized destination acceptance lane and records its verification snapshot. If accepted code moves while a candidate is out, reconcile updates the stopped source against the new baseline and charges a fresh measurement. Positive --worker-limit and --measurement-limit budgets default to one, reported in run context with origin default.

Each attempt keeps its comparison facts. When evaluation settings change, active candidates pause until a counted rebaseline finishes, after which resumed candidates reconcile and remeasure. A rejected isolated candidate retains its evidence and records the current destination’s accepted_revision without touching accepted sibling code. inspect and recover classify active, returned, terminal, paused, and ambiguous candidates, holding capacity for any worker or process whose state is unknown; the binary never removes worktrees. See the installed task-format and recovery references for the full command contract.

reserve --worker-slot accounts for native planning, implementation, verification, and finding checks against worker capacity, separate from measurement capacity. Exact retries reuse the existing reservation rather than granting another dispatch, with task, kind, and requested mode held fixed. admit and prepare transfer their own unused claims without double-counting, and the integrated acceptance owner may claim capacity for confirmation or repair.

When a candidate is withdrawn from the destination lane, prepare records the authorized withdrawal, restores only the exact measured destination paths to the unchanged accepted HEAD, and leaves unrelated work and historical evidence untouched. recover can finish that withdrawal without worker permission. Repairing the candidate in its source worktree then goes back through return, fresh evaluate, integrate, and a fresh verifier.