1.2 KiB
1.2 KiB
Workflow State Machine
This file defines the linear progression of a task in the agent-framework. The Orchestrator uses this to determine the next phase.
Task Lifecycle
| Current State | Signal (Artifact) | Next Phase | Action |
|---|---|---|---|
| New Task | No SPEC.md |
Research | Generate SPEC.md |
| Research | Has SPEC.md |
Implement | Generate code and tests |
| Implementation | Has IMPLEMENTATION.md |
Bug Find | Generate BUG_REPORT.md |
| Bug Find | Has BUG_REPORT.md |
Adversarial Bug Find | Generate ADVERSARIAL_BUG_REPORT.md |
| Adversarial Bug Find | Has ADVERSARIAL_BUG_REPORT.md |
Referee | Generate VERDICT.md |
| Referee | Has VERDICT.md |
Complete / Review | Finalize or request user intervention |
Autopilot Rules
- Linear Progression: Never skip a phase.
- Artifact Check: A phase is only considered "complete" if its corresponding artifact exists and is non-empty.
- Automatic Transition: Upon completion of an artifact, the Orchestrator must immediately identify and propose the next phase in the lifecycle.
- Human Intervention: If the Referee marks a task as
NEEDS_REVIEWor identifies "Tie-Breaks", the Autopilot pauses and waits for user input.