# How a task runs

URL: https://code.ml.ai/docs/how-a-task-runs

> Every ML AI Code task follows the same seven steps, from your request to a report with the diff, a preview and what is unproven.

Every task follows the same seven steps. Three of them are yours; the rest happen on the project's machine and are recorded as they go.

| Step | What happens | Who |
| --- | --- | --- |
| 1. Ask | Describe the work in plain words | Waits for you |
| 2. Plan | It reads the code and writes a task list | Agent |
| 3. Approve | Pick the tasks you want done | Waits for you |
| 4. Edit | A checkpoint is saved before each step | Agent |
| 5. Run | Commands and tests on its own machine | Agent |
| 6. Verify | Evidence is matched to each task | Agent |
| 7. Report | Diff, preview and what is unproven | Waits for you |

<Callout title="Done means proven">
A task cannot mark itself finished while a deliverable is open. If something could not be proven, the report says so instead of saying done.
</Callout>