AGENT_TASK_DRAFT v1 workflow
AGENT_TASK_DRAFT v1 is for stochastic task design, where a model proposes the
shape of the task. Use it when the parent wants a subagent to propose the
right bounded AGENT_TASK v1. If the work is deterministic enough to render
directly, do not use it.
A draft is a proposal envelope, and nobody executes it. Before any work runs,
the parent validates the draft, reviews it and approves it. Deterministic tools
then promote it to a final AGENT_TASK v1, and a different subagent executes
that task.
When to use drafts
Use a draft when the shape of the task itself needs judgment, for example in these cases:
- to turn a vague request for an investigation into a bounded implementation task
- to choose a useful target for an exploratory analysis of a dataset
- to propose the verification steps for a set of changed files
Do not use a draft when a project script can already emit a stable
AGENT_TASK v1. Such a task has known inputs, outputs, allowed actions and
verification. In that case, render the final task directly.
Workflow
- The parent asks a subagent to design the task.
- The design subagent returns one
AGENT_RESULT v1for the proposal job and oneAGENT_TASK_DRAFT v1envelope after it. - The parent validates the shape of the draft and its policy with
jagt draft lint. - The parent rejects the draft, asks for a revision, records approval under the active policy, or asks the user for approval.
- The parent promotes the approved fields with deterministic tools. In the
minimum viable product (MVP), the path is
jagt renderfollowed byjagt lint. - A different execution subagent receives the promoted
AGENT_TASK v1.
The proposal subagent must not execute the work that it proposed.
Contract delivery
A fresh subagent does not always inherit the memory of the parent. Give it the draft contract through one of these paths:
- the
AGENTS.mdof the repo - the references of an installed skill, such as
.agents/skills/just/references/command_contract.mdfrom jnterfaces - an excerpt copied into the delegation prompt of the parent
- an
AGENTS.mdlocal to the fixture, in labs
just agent-task-draft-lab includes a fresh-context fixture, which has no
memory of a parent. The fixture proves that the parent can supply the contract
without hidden memory.
Verification
Run:
just agent-task-draft-labThe lab validates a pair of a result and a draft, and it rejects malformed and
unsafe drafts. It also rejects the direct execution of a draft. Then it
promotes a valid draft with jagt draft lint and jagt render, and it
validates the promoted AGENT_TASK v1 with jagt lint.