Task Lifecycle
Tasks flow through a well-defined lifecycle from creation to completion:Task Status
Stoneforge defines 8 task statuses with specific semantics:- Active Statuses
- Terminal Statuses
BACKLOG
BACKLOG
Meaning: Not ready for work, needs triage or planningTypical Use:
- Ideas from brainstorming
- Tasks awaiting priority assignment
- Work that needs breaking down
OPEN
OPEN
Meaning: Ready for work, can be assignedTypical Use:
- Tasks in the ready queue
- Available for worker assignment
- All dependencies resolved
IN_PROGRESS
IN_PROGRESS
Meaning: Currently being worked onTypical Use:
- Worker actively executing
- Code changes in progress
- Has assignee
BLOCKED
BLOCKED
Meaning: Waiting on dependencyAuto-Set When:
- A blocking dependency is added
- A blocker task is reopened
- All blocking dependencies are resolved
DEFERRED
DEFERRED
Meaning: Deliberately postponedTypical Use:
- Low priority work
- Waiting for external factors
- Paused for later consideration
REVIEW
REVIEW
Meaning: Work complete, awaiting mergeTypical Use:
- Code complete and pushed
- Waiting for merge steward
- Tests need to run
Priority System
Stoneforge uses a 5-level priority system where 1 is highest:Priority 1: CRITICAL
Use for:
- Production outages
- Security vulnerabilities
- Data loss bugs
- Blocking incidents
Priority 2: HIGH
Use for:
- Important features
- Significant bugs
- Customer-facing issues
- Sprint goals
Priority 3: MEDIUM
Use for:
- Standard work items
- Planned features
- Minor bugs
- Default priority
Priority 4: LOW
Use for:
- Nice-to-have improvements
- Refactoring
- Technical debt
- Polish work
Priority 5: MINIMAL
Priority 5: MINIMAL
Use for:
- Can be done when time permits
- Future considerations
- Long-term ideas
Setting Priority
Effective Priority
Stoneforge calculates effective priority considering:- Base priority - The task’s assigned priority
- Deadline proximity - Boosts priority as deadline approaches
- Dependency depth - Increases priority for tasks blocking others
- Age - Slight boost for tasks waiting too long
Complexity Scale
Tasks can have a complexity rating (1-5) where 1 is simplest:| Level | Name | Typical Scope |
|---|---|---|
| 1 | TRIVIAL | Single-line changes, typo fixes |
| 2 | SIMPLE | Small, well-defined changes |
| 3 | MEDIUM | Moderate changes, some research needed (default) |
| 4 | COMPLEX | Significant changes, multiple components |
| 5 | VERY_COMPLEX | Large scope, architectural changes |
Task Types
Four built-in task type classifications:- BUG
- FEATURE
- TASK
- CHORE
Defect requiring fix
Task Assignment
Tasks can have two types of assignment:Assignee vs Owner
Assignee
Who is currently working on it
- Set automatically by Dispatch Daemon
- Cleared on handoff
- One assignee at a time
Owner
Who is responsible for completion
- Set manually by Director or human
- Persists through handoffs
- Accountability tracking
Automatic Assignment
The Dispatch Daemon assigns tasks to available workers:- Query ready tasks - OPEN status, no assignee, not blocked
- Sort by effective priority - Highest priority first
- Find available worker - Idle ephemeral workers
- Assign and dispatch - Send task details to worker
Manual Assignment
For persistent workers or special cases:Task Handoff
When a worker cannot complete a task, they hand off to another worker:System Updates Task
- Clears assignee
- Preserves worktree and branch in metadata
- Appends handoff note to description
- Records handoff in session history
Handoff Metadata
Handoff information is preserved in task metadata:Handoff Notes in Description
Handoff messages are appended to the task’s description document:Scheduling and Deadlines
Tasks support two time-based fields:Scheduled For
When the task becomes actionable:Deadline
External deadline constraint:Acceptance Criteria
Define what “done” means for a task:Workers receive acceptance criteria in their task dispatch message to guide execution.
Querying Tasks
By Status
By Assignment
By Priority
Complex Queries
Task Creation Patterns
Simple Task
Task with Description
Task with Owner and Assignee
Next Steps
Dependencies
Learn how to block tasks and create relationships
Orchestration Loop
See how tasks are automatically dispatched
Workflows
Build multi-step task sequences
Agent Roles
Understand who creates and executes tasks