0
Decompose a long-horizon task into checkpointed subtasks an agent can resume
Break down this long-horizon task into subtasks an agent can execute across multiple sessions/context windows, with resumability if interrupted: task_description. Requirements:
1. Each subtask must be independently verifiable as done or not-done (a concrete artifact or state check), not a vague milestone, so a resumed agent can determine progress without re-reading the entire prior history.
2. Define what state must be persisted between subtasks (not the full reasoning trace, the minimum artifact needed for the next subtask to proceed correctly) and in what format.
3. Order subtasks by dependency, and flag which ones could run in parallel if using multiple agents versus which are strictly sequential.
4. For each subtask, define a concrete 'this subtask failed' condition and whether failure blocks all downstream subtasks or only some.
5. Write the actual resume-prompt template: what a fresh agent instance would be given to pick up from subtask N without the original context, using only the persisted state from step 2.
Task: task_description
Expected total duration/complexity: scope