Task Engine
by @zeron-g
Multi-agent task orchestration engine with state machine tracking. Use when complex multi-step projects need automated monitoring, multi-agent collaboration,...
Corrupted index.json
python3 scripts/task_engine.py rebuild-index --json
Scans all tasks/TASK-*/task.json files and reconstructs the index. Skips invalid/unreadable files.
Common errors
| Error | Cause | Fix |
|-------|-------|-----|
| Invalid transition: X + 'event' | Transition not allowed from current state | Check references/state-transitions.md |
| Task TASK-XXX not found | Task doesn't exist or was archived | Check tasks/ and tasks/archive/ |
| Cannot archive: not terminal | Task must be COMPLETED/FAILED/REJECTED | Transition to terminal state first |
| Agent at capacity | Max parallel instances reached | Wait for running subtasks to complete |
| Dependency not DONE | Blocked by incomplete subtask | Complete blocking subtask first |
JSON parse errors
The engine handles corrupt JSON files gracefully:
check: skips bad tasks, logs warning, continuesrebuild-index: skips unreadable files, reports in outputclawhub install task-engine