# The loop, step by step

0. No ticket given? `tkt next --claim --assignee <you> --json` claims the next startable ticket and prints its bundle (steps 1 to 4 done). Ranked by active milestone, its `targetDate`, priority, value per point, fewer warnings, age ([Picking the next ticket](/en/docs/guides/loop/pick.md#loop-pick)).
1. Read the bundle, never the raw file: `tkt ticket get PAY-001`.
2. `has_blockers: true`? Stop and report `block_reason`. `block_reason: "deferred"` is postponed on purpose: never resume it yourself.
3. Every `location: repo` ref resolved? (`resolution.status`)
4. Claim: `tkt ticket claim PAY-001 --assignee <you>`, or `tkt ticket update PAY-001 --status in_progress` (only from `todo`).
5. Work; record why: `tkt ticket note PAY-001 "<why>"`; a decision later work must follow: `tkt decision new "<title>" --decision "<text>" --origin PAY-001` ([Decisions](/en/docs/concepts/decisions.md#context-decisions)).
6. Tick acceptance criteria as they pass: `tkt ticket ac check PAY-001 1`.
7. Before handing over: `tkt ticket lint PAY-001` (0 clean, 1 info, 2 warning, 3 block).
8. Finish: note what you verified, `tkt ticket note PAY-001 "Verified: <what you checked>"`, then `tkt ticket update PAY-001 --status in_review`, then `done`. A ticket in a release plan shows `IN_RELEASE`; the version comes from `tkt release ship`, never a hand-set `--release`.

## Related

- Guide: [Picking the next ticket](/en/docs/guides/loop/pick.md): tkt next names the next startable ticket; --claim also claims it in one atomic step and prints its bundle.
- Concept: [Decisions](/en/docs/concepts/decisions.md): A decision made during development (product, scope, a deviation from the plan) is recorded with tkt decision new, not as a row in a doc table; tickets cite it…
