Start asynchronous mission
mission_startStarts a background job and returns a job ID. Executes a dependency-aware task graph or loops with retries/failover until tests pass or it fails safe.
Instructions
Start a mission in the background and return a job_id immediately. With plan, runs a task graph: nodes whose depends_on are done run in parallel (dependency results passed as untrusted data), failed nodes retry up to max_attempts, nodes after a failure are skipped, progress is saved in dag_state and resume_plan: true skips nodes already done (also after a restart). Without plan, runs a loop where each iteration runs swarm_run with the previous integration as diagnosis; near-identical results switch routing strategy and then stop as failed_safe. Progress is kept in the mission loop_state, never in status, next_action or goal. The job ends completed only when the harness recorded new passing tests (memory_checkpoint) during the job; otherwise awaiting_acceptance. May consume provider credits. Reuse the project_id and mission_id of the current task (from project_init / memory_checkpoint); when omitted, results go to project "default" and a new random mission that mission_status and memory_checkpoint will not find.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| goal | Yes | Mission goal. | |
| plan | No | Task graph (up to 30 nodes). | |
| roles | No | ||
| mission_id | No | Mission of the current task; omitted creates a new random mission. | |
| project_id | No | Project of the current task; defaults to "default". | default |
| lease_token | No | Token from mission_claim. Required only while another holder has a live lease on this mission. | |
| resume_plan | No | Reuse nodes already done in this mission dag_state when the plan is identical. | |
| max_iterations | No | ||
| routing_strategy | No | first | |
| acceptance_criteria | No | Objective criteria the harness must prove with evidence. |