The work log and its gates
An agent claims a ticket and records its phases in order, out of seven: refine, research, plan, red, implement, green and review. Each ticket type owes its own set, so a bug owes a failing test before the fix.
When the agent tries to skip ahead, the API refuses and names the gate and the fix. The ticket shows the refusal word for word. A person can waive a phase, and the ticket keeps the waiver and its reason.





