When a task fails or gets blocked, the supervisor should:
- Analyze the failure error message
- Create a diagnostic subtask (e.g., t147.3.diag) with a prompt that includes:
- The original task description
- The error message
- The last N lines of the worker log
- Instructions to diagnose root cause and either fix the issue or create a targeted fix task
- Add the diagnostic subtask to the same batch
- The diagnostic worker can then either:
- Fix the root cause and re-queue the original task
- Create a more targeted subtask if the fix is complex
This creates a self-improving feedback loop where failures are automatically investigated
and resolved without human intervention during long-running sessions.
Related: t149 (auto-create GH issues), t147.6 (adaptive concurrency)
When a task fails or gets blocked, the supervisor should:
This creates a self-improving feedback loop where failures are automatically investigated
and resolved without human intervention during long-running sessions.
Related: t149 (auto-create GH issues), t147.6 (adaptive concurrency)