codex_start_task
Starts a background Codex turn for research or execution, defining workstreams, completion policy, and obligations. Specify handoff and next task to control automated workflow.
Instructions
Start a background Codex turn. EXECUTION_ONLY workstreams require accepted_handoff_path/sha256 and explicit next_workstream: TASK with exact task_id/task_ref or NONE. Omission and legacy next_workstream_task_* inputs are errors. Uses TRUSTED_EXECUTOR_AUTO_ADVANCE with worker-owned DoD and mechanical pointer-only closure. RESEARCH retains candidate/review/RVA acceptance. Without workstreams, completion_policy is MANUAL, BRIDGE_AUTO_MACHINE_VERIFIED, or BRIDGE_AUTO_TRIVIAL; execution-only with zero required obligations defaults to trivial, required obligations to MANUAL.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| label | No | ||
| model | No | ||
| sandbox | No | ||
| task_kind | No | ||
| instruction | Yes | ||
| rva_required | No | ||
| workstream_id | No | ||
| network_access | No | ||
| next_workstream | No | Required for EXECUTION_ONLY workstreams: TASK with exact id and hash-pinned ref, or explicit NONE. Omission is a hard error. | |
| route_rationale | No | ||
| research_program | No | ||
| route_decided_by | No | ||
| completion_policy | No | ||
| research_contract | No | ||
| research_cycle_id | No | ||
| expected_artifacts | No | ||
| rva_fallback_policy | No | ||
| accepted_handoff_path | No | ||
| completion_obligations | No | ||
| accepted_handoff_sha256 | No | ||
| next_workstream_task_id | No | Deprecated; rejected. Use next_workstream. | |
| next_workstream_task_ref | No | Deprecated; rejected. Use next_workstream. | |
| research_cycle_link_mode | No |