- Task Definition: Supervisor creates or updates a task using
docs/TASK_TEMPLATE.md. - Task Assignment: Supervisor assigns exactly one primary owner (specialist agent).
- Specialist Execution: Specialist implements scoped changes and self-checks.
- QA Validation: Specialist hands off to QA using
docs/HANDOFF_TEMPLATE.md. - Supervisor Decision: QA hands off pass/fail recommendation to supervisor.
- Close or Rework: Supervisor marks Done, requests changes, or reassigns.
- Main Branch: Protected, only accepts merges via approved PRs
- Feature Branches: Named
agent/[type]-[task](e.g.,agent/ui-turn-display) - Pre-commit Hooks: Prevent direct commits to main branch
- One task has one active owner at a time.
- Agents edit only files in their ownership scope unless the task explicitly grants exceptions.
- Cross-scope edits must be listed in the assignment before implementation.
- QA may change tests/tooling but not app feature behavior.
The workflow is mandatory for code-impacting tasks.
- A task cannot move to
Assignedwithout a full task card (owner, scope, out-of-scope, acceptance checks, handoff target). - A task cannot move to
In QAwithout a specialist handoff usingdocs/HANDOFF_TEMPLATE.md. - A task cannot move to
In QAunless the current owner ranuv run pre-commit run --all-files(or documented equivalent scoped hook commands) and fixed blocking failures. - A task cannot move to
In Reviewwithout QA pass/fail recommendation and evidence. - A task cannot move to
Donewithout supervisor acceptance recorded in task notes. - Handoffs missing checks run, evidence, or risk notes must be rejected.
- Per Task: Required handoff from specialist to QA, then QA to supervisor
- Per PR: Supervisor validates scope, evidence, and risk notes
- Milestone Review: Optional checkpoint for architecture/process adjustments
- Low Risk: Documentation, formatting, basic tests → Quick approval
- Medium Risk: New features, UI changes → Code review + testing
- High Risk: Architecture changes, data model updates → Thorough review
- Clear description of changes
- Updated TASKS.md with owner and completion status
- Handoff evidence from
docs/HANDOFF_TEMPLATE.md - Passing tests (or explicit failing checks with rationale)
- No direct commits to main
- Backlog: Unassigned tasks
- Assigned: Currently being worked by an agent
- In QA: Awaiting QA validation
- In Review: QA complete, awaiting supervisor decision
- Done: Approved and integrated
- Blocked: Cannot proceed without external decision/input
- Tasks defined in
tasks/TASKS.md - Assignments and updates use task IDs
- Handoffs use
docs/HANDOFF_TEMPLATE.md - Status communicated via task state and supervisor decision
- Specialist self-check completed
- Pre-commit hooks executed with results recorded in handoff evidence
- Blocking hook failures fixed before handoff (or task marked Blocked with rationale)
- QA validation executed (pass/fail with evidence)
- Risks and follow-ups documented
- Supervisor acceptance recorded
For all code-impacting tasks:
- Default command:
uv run pre-commit run --all-files - If the full run is impractical, run scoped hooks that cover changed files and document commands exactly.
- Any
Critical/Majordefect from hooks (type errors, lint violations, failing format checks) must be fixed before handoff. - If a hook cannot be run due to environment/tooling blockers, mark task
Blockedand include attempted resolution steps.
Use this policy for supervisor acceptance decisions:
Critical: Always block. Task state remainsBlockedor returns toAssignedfor fix.Major: Block by default. Exception allowed only if supervisor creates a follow-up task with owner and due milestone before acceptance.Minor: Non-blocking. Must be tracked as follow-up task when not fixed immediately.
If a task has mixed severities, the highest severity controls the decision.
If an agent encounters blocking issues:
- Document blocker and attempted resolution in handoff format
- Mark task as Blocked in
tasks/TASKS.md - Supervisor decides: clarify, split task, or reassign owner