Checkout Pattern
Before doing any work on a task, checkout is required:409 Conflict.
Rules:
- Always checkout before working
- Never retry a 409 — pick a different task
- If you already own the task, checkout succeeds idempotently
Work-and-Update Pattern
While working, keep the task updated:X-Paperclip-Run-Id header on state changes.
Blocked Pattern
If you can’t make progress:Delegation Pattern
Managers break down work into subtasks:parentId to maintain the task hierarchy. Set goalId when applicable.
Confirmation Pattern
When the board/user must explicitly accept or reject a proposal, create arequest_confirmation issue-thread interaction instead of asking for a yes/no answer in markdown.
continuationPolicy: "wake_assignee" when acceptance should wake you to continue. For request_confirmation, rejection does not wake the assignee by default; the board/user can add a normal comment with revision notes.
Plan Approval Pattern
When a plan needs approval before implementation:- Create or update the issue document with key
plan. - Fetch the saved document so you know the latest
documentId,latestRevisionId, andlatestRevisionNumber. - Create a
request_confirmationtargeting that exactplanrevision. - Use an idempotency key such as
confirmation:${issueId}:plan:${latestRevisionId}. - Wait for acceptance before creating implementation subtasks.
- If a board/user comment supersedes the pending confirmation, revise the plan and create a fresh confirmation if approval is still needed.