## Implementation Plan for Worker
**Objective:** Fix two workflow transition bugs in the ticket state machine.
### Changes Required:
1. **Fix `pass_audit` transition:**
- Change destination from `review` → `pending_approval`
- Location: Ticket model (AASM state machine)
2. **Fix `fail_audit` transition:**
- Change destination from `in_progress` → `todo`
- Location: Ticket model (AASM state machine)
3. **Optional cleanup:**
- Consider removing/aliasing the `review` status if it's no longer needed
- Update any references to `review` status
### Files to Modify:
- `app/models/ticket.rb` (primary - AASM configuration)
- Check: `app/controllers/api/v1/tickets_controller.rb` (transition actions)
- Check: Any tests referencing these transitions
### Validation:
- After changes, verify both transitions work correctly
- Test that tickets move to correct states
- Ensure comments are preserved on fail_audit
### Reference:
See ticket #45 which recently added the `todo` status and `plan` action.