Work comments, epics & blueprints
Execution protocols for standalone MCP comments, managed ACP --run card runs, whole-epic runs, blueprint apply runs, and agents/tasks/*.md files.
View .md~1.1k tokens
Match your delivery mode before calling lifecycle tools:
| Mode | How to tell | Claim? | When blocked | Hand back |
|---|---|---|---|---|
Standalone MCP (pitafix mcp without --run) | External MCP client | Call claim_comment(id) first | Call ask_person(id, question); call claim_comment(id) after reply | Call submit_for_review(id, summary, files?, evidence?) |
Managed ACP card run (--run <id>) | PitaFix started your session for comment cards | Skip claim_comment (already claimed) | Call ask_person(id, question) and end your turn | Skip submit_for_review (PitaFix submits on final pass) |
| Whole-epic ACP run | PitaFix started your session on pitafix/epic-<slug> | None | Ask your question and end your turn | Mark all 1:1 ACP plan steps done and end your turn |
| Blueprint Apply run | PitaFix started your session on pitafix/blueprint-<id> | None | Ask your question and end your turn | Run active stack gates and end your turn |
Markdown task file (agents/tasks/<n>-<slug>.md) | User handed you an exported .md file | None | Ask the user directly | Set YAML status: open → status: done and append ## Result |
Pre-edit checklist
- Call
get_blueprint()first. When attached (attached: true), followfromBlueprint's commit rules,AGENTS.mdlayout, skills, and active stackgates[](CLI fallback:pitafix blueprint show --project . --json). - If a comment belongs to an epic, call
get_epic(id)and honorfromPlan(why,appetite,notDoing[]) plus priordecisions[]without re-asking answered questions. - Call
find_screensbefore editing shared code; calllist_componentsandget_scalebefore building or restyling UI.
Protocol 1: Standalone MCP comments
- Call
list_open_comments()→get_comment(id)(checkphotos[],pin,areas,areaLinks, composed scrolled screenshot/tree whenscrolled: true, anchors, thread). - Call
claim_comment(id)to move status toworking. - Edit and verify, then call
submit_for_review(id, summary, files?, evidence?)(moves toneeds_review). Usereply_to_comment(id, text)for progress updates andask_person(id, question)when only the user can decide.
Protocol 2: Managed ACP card run (--run <id>)
- Skip
claim_commentandsubmit_for_reviewfor the run's comments. - When blocked on a product decision, call
ask_person(id, question)and end your turn immediately so PitaFix relays the user's reply into the same session. - Expect follow-up After Each Task passes (Settings passes plus enabled stack passes from any attached blueprint) in the same session after your main turn ends.
- Leave git commits and worktree cleanup to the user.
Protocol 3: Whole-epic ACP run (pitafix/epic-<slug>)
- Call
get_epic(id)(andget_blueprint()if attached). - Keep ACP plan entries 1-to-1 with the epic's planned screens in order, marking each done as you go.
- Stay inside
appetiteandnotDoing[]; ask and end your turn if a requirement is unspecified, and log out-of-scope observations viaadd_signal. - Expect follow-up After Each Task passes after your main turn ends; leave commits and worktree cleanup to the user.
Protocol 4: Blueprint Apply run (pitafix/blueprint-<id>)
- Call
get_blueprint()and read the rendered apply instructions and source templates underblueprintDir. - Reconcile the active stacks' and modules' files (
AGENTS.md, skills, subagents, commit guidelines/hooks, harness packages, starter.pitafix/capture setup) while preserving project-specific facts; prefer ratchets or allowlists over deleting working code. - Run every verification gate in
stacks.<name>.gates[]whosewhencondition matches; expect follow-up After Each Task passes; leave commits and worktree cleanup to the user.
Completion criteria
- Every applicable test, linter, and attached blueprint gate ran and passed (reported in
evidenceor## Result). - Handback matches your delivery mode (
submit_for_review, final managed turn, whole-epic plan completion, orstatus: done+## Result), with the worktree left uncommitted for human review and resolution.