The system intentionally preserves the compatible typed envelope DISPATCH v2, using an explicit end marker END_DISPATCH inside task files.
DISPATCH v2
TASK: TASK-NNN
GOAL: one-line goal
CONSTRAINTS: comma-separated flags
BUDGET_TOKENS: 4000
ARTIFACTS:
- path: /absolute/or/workspace/path
size_bytes: 123
sha256: abcdef...
REQUIRED_OUTPUT: {file_path, sha256, summary_1line, status}
DEADLINE: YYYY-MM-DD
END_DISPATCH
TASKGOALBUDGET_TOKENSARTIFACTSREQUIRED_OUTPUTDEADLINE
no_networkreadonlyno_deleteno_credentialsrequires_reviewmax_files=Ntimeout=Ns
Success with audit request:
SESSION_START agent=executor
ATTEMPT_START task=TASK-001 agent=executor
ARTIFACT_READY task=TASK-001 path=... sha256=...
TASK-001 NEEDS_REVIEW: one-line summary
ATTEMPT_END task=TASK-001 agent=executor status=needs_review
Direct completion without audit:
SESSION_START agent=executor
ATTEMPT_START task=TASK-001 agent=executor
TASK-001 DONE: one-line summary
ATTEMPT_END task=TASK-001 agent=executor status=done
Blocker:
SESSION_START agent=executor
ATTEMPT_START task=TASK-001 agent=executor
TASK-001 BLOCKED: specific reason
ATTEMPT_END task=TASK-001 agent=executor status=blocked
SESSION_START agent=auditor
ATTEMPT_START task=TASK-001 agent=auditor
TASK-001 AUDIT PASS
ATTEMPT_END task=TASK-001 agent=auditor status=pass
or
SESSION_START agent=auditor
ATTEMPT_START task=TASK-001 agent=auditor
TASK-001 AUDIT FAIL: specific criterion that failed
ATTEMPT_END task=TASK-001 agent=auditor status=fail
- recommended maximum:
4KB - if larger: decompose the task or move context into artifacts
File contents must not be embedded in the envelope if this can be avoided.
Agents reference artifacts by path.