aitododocs Coming soonAutonomous delivery

Claiming and giving back

Markdown

tkt ticket claim PAY-001 --assignee <you> claims a given ticket by the tkt next rule; tkt ticket release PAY-001 gives it back (in_progress → todo, assignee cleared), from any worktree.

Guideabout 2 min2 commands
On this page

Claimed in another worktree: ERR_ALREADY_CLAIMED (--force takes it over); not startable: ERR_NOT_STARTABLE, with one details[] entry per reason.

Details5 items
  • Assignee: --assignee, else AITODO_ASSIGNEE, else exit 2. Both errors are 409; ERR_ALREADY_CLAIMED names the assignee, branch and worktree. Your own in_progress ticket again: no change.

  • tkt next --claim and tkt ticket update --status in_progress record a claim too; in git every worktree sees it (Parallel worktrees).

  • Release resets the status only where it is in_progress (elsewhere the output says it stays so on branch X). Someone else's claim, or no --assignee: ERR_ALREADY_CLAIMED unless --force; claimed neither here nor elsewhere: ERR_STATUS_TRANSITION. done / canceled drop the record, in_review keeps it; tkt ticket release --stale clears stale ones.

  • REST: GET /v1/tickets:next, POST /v1/tickets:next {"assignee": "…"}, POST /v1/tickets/{ticket_id}:release (Store API); REST reads no git claims, so use tkt next in a worktree.

  • tkt ticket claim --json: {ticket, claim, changed}.

Commands on this page#

Generated from the registry: src/aitodo/api/selfdoc_entries/loop.py · loop.claimv0.1.298