Skip to content

Task complexity and worker escalation

A task’s declared complexity picks its implementation route: routine work uses a constrained implementer, standard work uses the normal implementer, and advanced work starts with a read-only plan. A verifier can also recommend escalating a standard repair to advanced-implementer within the approved scope.

The worker roles, built-in defaults, and editable overrides live in Worker profiles. That page documents the roles and runtime selection; this one documents the routing policy they follow.

Every task has one of three complexity levels:

  • routine: tightly specified, low-risk mechanical work;
  • standard: bounded work with a reviewed outcome, scope, and validation; or
  • advanced: work whose approved implementation needs additional planning or reasoning.

Task bundles accept an optional complexity field that defaults to standard when omitted, keeping version 1 bundles and task files valid without edits. Task authoring emits the field when a level is chosen, and imported task frontmatter preserves the explicit value; older task files that omit it stay unchanged when completed or reopened.

Complexity is durable because it changes the approved execution contract. It is never inferred from token count, file count, estimated cost, model confidence, or worker output, and changing it after approval follows the normal task-edit review rules.

Bundle review displays complexity and hashes any authored value into the review fingerprint (omitted complexity is left absent during deserialization so existing review fingerprints do not shift). zdev tasks list, zdev tasks show, zdev next, selected-area zdev status, and zdev goal expose the effective value, which the coordinator reads from the goal nested inside a fresh work-context snapshot. TASKS.md needs no extra column.

Implementation and verification use four worker roles: routine-implementer, implementer, verifier, and advanced-implementer, plus planner for read-only advanced planning (which falls back to the selected profile’s advanced-implementer when no planner row is configured). implementer and verifier are the defaults, while routine-implementer and advanced-implementer are explicit tiers. Profile precedence, validation, install refresh, and the full built-in table are documented in Worker profiles.

In the built-in normal profile, Codex and OpenAI-backed harnesses use GPT-6.1 Sol at medium (routine), high (standard), and xhigh (advanced), while Claude Code uses Claude Opus 5.5 at low, medium, and high. Multi-provider harnesses pair those with Claude Opus 5.5 for verification; Codex’s simple profile is an explicit opt-in rather than an automatic choice for routine work. Projects can override any whole profile through zdev config.

Independent verification always runs in a fresh verifier context. The coordinator has no worker profile.

Before the first code edit on an advanced task, the coordinator launches a fresh read-only planner using the resolved planner profile, passing the same work-context, brief, task, and repository guidance an implementer receives. The planner returns four semantic fields: verdict, summary, plan, and findings. A plan verdict carries a three-field plan object (approach, paths, and validation) with optional supporting findings; a blocker verdict carries plan: null and concrete findings. The coordinator strictly parses that output and builds the compatible public planner envelope with identity, evidence, and escalation: "none". The semantic plan travels in conversation directly to a fresh advanced-implementer; it is not written as a repository file or zdev record and cannot widen scope, relax validation, or amend the approved task.

Planning is skipped for routine and standard tasks, for explicit zdev-verify, and on a resumed workflow that already holds a valid plan for the same task and unchanged baseline. It is also skipped once attributed implementation or rework edits exist, since planning after edits would no longer guide the initial design choice. Unexplained or ambiguously owned edits still block under the standard baseline rules.

The strict verifier object always includes escalation, set to "none" except when a rework verdict requests "advanced-implementer". Any unknown value, duplicate key, or advanced escalation paired with pass or blocker fails closed as a blocker.

A verifier recommends escalation only when its findings show that the repair needs broader reasoning within the already approved scope, never for an unavailable model, transport failure, missing evidence, unsafe scope, or a product decision (all of which are blockers). The coordinator can move a standard task to advanced-implementer at most once per run; routine and already advanced tasks cannot escalate, there is no higher tier, and escalation never edits the task’s recorded complexity. Every complexity level shares the same bounded rework cycle (one full review, one correction pass, and one focused recheck), and escalation consumes that correction pass. If required corrections still remain afterward, execution stops as a blocker requiring a user continuation decision. An advanced task uses its retained advanced implementation settings for correction.

The coordinator owns branch checks, baseline attribution, task selection, user questions, envelope validation, lifecycle updates, and commits:

  1. Run zdev work-context <area> --format json and read the effective complexity from its nested goal.
  2. Dispatch routine-implementer for routine, implementer for standard, or run the read-only planner followed by a fresh advanced-implementer for advanced.
  3. Inspect the checkout and launch a fresh resolved verifier.
  4. On verifier rework with escalation: "none", return the findings to the same implementation profile, resuming that worker only where the harness supports it safely.
  5. On verifier rework with escalation: "advanced-implementer", launch a replacement advanced-implementer with the goal, baseline, current diff, and all findings.
  6. After every repair, launch another fresh verifier and recheck the task.
  7. Stop on blocker, an unsafe or drifted task/baseline, work outside approved scope, or any user-owned decision. Only verifier pass allows completion and commit.

Independent verification is mandatory on every route: a verifier can recommend escalation, but never verifies its own edits or turns a recommendation into acceptance.

The policy is shared across harnesses:

Case Route
Routine success routine implementer → fresh verifier verdict pass → complete and commit
Standard success standard implementer → fresh verifier verdict pass → complete and commit
Advanced success read-only advanced planner → fresh advanced implementer → fresh verifier verdict pass
Ordinary repair selected implementer → verifier verdict rework, escalation none → same-profile repair → fresh verifier
Escalated repair standard implementer → verifier verdict rework, escalation advanced-implementer → replacement advanced implementer → fresh verifier
Product decision planner blocks or a worker returns verdict blocker → coordinator asks the user; no completion or commit

Each harness maps those routes to its native workers:

Harness Planner Implementation Verification and rework
Codex fresh read-only subagent using the resolved planner model/effort fresh subagent using the routine, standard, or advanced profile fresh verifier each time; follow up only for same-profile repair; escalation spawns a replacement
Claude Code read-only zdev-planner agent using the resolved planner profile zdev-routine-implementer, zdev-implementer, or zdev-advanced-implementer zdev-verifier; workflow resumes only same-profile repair and starts an advanced replacement on escalation
OpenCode read-only zdev-planner subagent using the resolved planner profile zdev-routine-implementer, zdev-implementer, or zdev-advanced-implementer new verifier task each time; task_id resume only for same-profile repair
Pi read-only planner role using the resolved planner profile routine-implementer, implementer, or advanced-implementer role verifier; every repair is a fresh process using the selected profile
Oh My Pi blocking read-only zdev-planner task agent using the resolved planner profile zdev-routine-implementer, zdev-implementer, or zdev-advanced-implementer fresh zdev-verifier; hub only for same-profile repair, replacement task for escalation

Product decisions always stop in the coordinating session across all five harnesses; native transport, resumption, background jobs, teams, and fan-out do not alter the routing contract.