2.6 KiB
2.6 KiB
Guide: Managing Task Lifecycle
Purpose: Step-by-step workflow for JSON-driven task management
Last Updated: 2026-01-11
Prerequisites
- TaskManager agent available
- Feature folder created in
.tmp/tasks/(at project root)
Workflow Overview
1. Initiation → TaskManager creates task.json + subtasks
2. Selection → Find eligible tasks (deps satisfied)
3. Execution → Working agent implements task
4. Verification → TaskManager validates completion
5. Archiving → Move to completed/ when done
1. Initiation (TaskManager)
Create feature folder and files:
.tmp/tasks/{feature-slug}/
├── task.json
├── subtask_01.json
├── subtask_02.json
└── subtask_03.json
Validate with: task-cli.ts validate {feature}
2. Task Selection
Find eligible tasks using CLI:
task-cli.ts next {feature} # All ready tasks
task-cli.ts parallel {feature} # Parallelizable only
Selection criteria:
status == "pending"- All
depends_ontasks havestatus == "completed"
3. Execution (Working Agent)
When picking up task:
- Read subtask JSON
- Update status:
{ "status": "in_progress", "agent_id": "coder-agent", "started_at": "2026-01-11T14:30:00Z" } - Load
context_files(lazy) - Implement
deliverables - Add
completion_summary(max 200 chars)
4. Verification (TaskManager)
After agent signals completion:
- Check each
acceptance_criteria - If all pass → Mark completed:
task-cli.ts complete {feature} {seq} "summary" - If fail → Keep in_progress, report failures
5. Archiving
When completed_count == subtask_count:
- Update task.json:
status: "completed" - Move folder:
.tmp/tasks/{slug}/→.tmp/tasks/completed/{slug}/
Status Ownership
| Status | Who Sets | When |
|---|---|---|
| pending | TaskManager | Initial creation |
| in_progress | Working agent | Picks up task |
| completed | TaskManager | After verification |
| blocked | Either | Dependency/issue found |
CLI Commands Summary
| Command | Use Case |
|---|---|
status |
Quick overview |
next |
What to work on |
parallel |
Batch parallel work |
deps |
Understand blockers |
blocked |
Identify issues |
complete |
Mark task done |
validate |
Health check |
Related
../standards/task-schema.md- JSON field referencesplitting-tasks.md- How to create subtasks../lookup/task-commands.md- Full CLI reference