Ticket #77 PR #32 Review: pass_audit approved
Add draft status for tickets.
Changes:
- Added draft as initial state in Ticket model (changed from backlog)
- Added confirm event: draft → backlog
- Added draft scope for querying draft tickets
- Updated list_tickets to filter out draft tickets by default (include_drafts parameter to include them)
- Added confirm to transition_ticket MCP tool
- Updated block and cancel events to allow from draft
- Added backlog trait to ticket factory
- Updated default factory status from backlog to draft
- Added tests for confirm event and draft initial state
- Added test for confirm transition in MCP spec
Workflow:
[Orchestrator creates ticket] → draft
↓
[Review/refine ticket]
↓
confirm → backlog → [workers can now see and claim]
Acceptance criteria all met:
- New tickets start in draft status (initial state) ✓
- Draft tickets don't appear in list_tickets by default ✓
- confirm event moves draft → backlog ✓
- Once confirmed, ticket behaves normally ✓
- Tests cover draft state and confirm event ✓