Skip to content

Tasks and completion

A task defines one unit of work that an agent can implement, verify, and commit on its own. The area brief supplies the shared context; each task pins down what that particular step has to deliver. (For a complete end-to-end example of ordinary development, see the feature walkthrough.)

In our evaluation area, “make queries faster” is too open-ended to implement directly. “Add a repeatable benchmark for the agreed query set” makes a better first task because it has a concrete, checkable result before you even know which optimizations are worth trying.

Once the outcome and testing expectations are clear, ask the agent to draft a task bundle:

Use zdev to create tasks for evaluation from its brief. Start with the
benchmark and evidence we need before choosing optimizations. Show the
proposed bundle before importing it.

Each task sets out its outcome, boundaries, done conditions, and validation. Dependencies specify which tasks must finish first, priority orders eligible work, and the afk flag marks whether a task is safe to run unattended.

In outline, that benchmark task might read:

Outcome: A repeatable benchmark for the agreed query set.
Boundaries: Preserve evaluator behavior and query fixtures.
Done when: The documented command reports samples for that set, and the
existing correctness checks still pass.
Validation: Run that benchmark and the project's agreed correctness checks.

For the exact stored schema and JSON bundle format, see task format.

You can inspect the rendered bundle before importing it, or tell the agent up front to create and import tasks without a confirmation turn. Either way, importing only records the plan; implementation starts when you ask for it.

Zdev only selects tasks whose dependencies are complete. A task stays blocked if it waits on another task, an unresolved design choice, or an unsafe branch state, regardless of its priority.

To run a single task and inspect the result before moving on, ask:

Use zdev to implement the next task in evaluation. Stop after its
verified commit.

The coordinator picks the ready task, checks workspace safety, and delegates implementation. A separate verifier then checks the result against the task, the area brief, and the repository’s coding guidelines. If the verifier finds required corrections, the implementer gets one correction pass and a focused recheck; anything still unresolved leaves the task open for your decision. Once verification passes, the coordinator marks the task done and commits the accepted changes.

Keep validation proportionate to the change. A documentation edit can rely on existing checks, whereas changing evaluator semantics warrants focused correctness coverage—there is no need to introduce a new test framework for a small change.

Ordinary tasks and hypotheses have different outcomes

Section titled “Ordinary tasks and hypotheses have different outcomes”

An ordinary task specifies a result to deliver, such as adding a benchmark or fixing a bug. A hypothesis tests whether a candidate change actually improves a metric under an agreed measurement policy.

Both are stored as task files, but hypotheses run through the separate research workflow. A rejected experiment still finishes as a completed task: it answered the question, recorded the evidence and lesson, and restored its code changes, without claiming that the area’s broader performance objective is solved. An interrupted experiment stays open until it is recovered and resolved.

Use an ordinary task when the desired behavior is known, and a hypothesis when you need an experiment to find out whether an idea works. The research walkthrough shows how both fit inside one area.

Inspecting a completed task shows its summary and validation alongside the commit that landed the accepted code. Under a project or pull-request record, that commit carries a Zdev-Change-Id trailer so the logical change stays identifiable across rebases; under a shadow record, the shadow commit carries the ID and points to the main commit; under a personal record, main history stays untouched.

Finishing a task often surfaces the next decision rather than finishing the area. When open questions remain, use discussion and research before drafting the next batch of tasks.