## Retry Behavior
When a step fails, motor retries up to 3 times with exponential backoff:
| Attempt | Backoff |
|---|---|
| 1st retry | 2 seconds |
| 2nd retry | 6 seconds |
| 3rd retry | 18 seconds |
If all 3 retries fail, the task is marked as `failed` and the error is reported back to the LLM.
## Crash Recovery
<Warning>
Task files are the crash recovery mechanism. If Wolffish crashes mid-task, the markdown file shows exactly where execution stopped.
</Warning>
Because task state lives on disk (not in memory), Wolffish can detect incomplete tasks on restart. A task file with `Status: running` after a restart means it was interrupted. The motor module will not automatically retry crashed tasks — it reports the incomplete state to the LLM, which decides whether to retry.
## Aborted Tasks
If a task is aborted (user cancelled, safety gate denied, timeout), the file records where it stopped:
```markdown
## Step 2: shell_exec
- **Attempt**: 1/3
- **Args**:
```json
{
"command": "rm -rf /tmp/build/"
}