complete_phase
Mark the active phase complete, permanently store key decisions, and advance to the next phase. Supports backfill for retroactive completion without queue advancement.
Instructions
Mark the current phase as complete and advance to the next upcoming phase. Records key_decisions permanently. Requires phase_number to match current phase (safety check). v2.1.2 Item 10: pass backfill=True + completed_at='YYYY-MM-DD' to retroactively mark a historical phase done without advancing the queue. v2.1.2 Item 12: pass git_ref to link a commit sha or PR ref to the completion.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| git_ref | No | v2.1.2: optional commit sha / PR ref the phase shipped at | |
| backfill | No | v2.1.2: allow marking any phase done without advancing the queue | |
| completed_at | No | v2.1.2: ISO date for backfill (defaults to today) | |
| phase_number | Yes | Must match current phase (unless backfill=True) | |
| key_decisions | Yes | Decisions made — preserved for all future agents |