You are running one Ralph work iteration. Inputs: - TASK_ID={{TASK_ID}} - BRANCH_MODE={{BRANCH_MODE_EFFECTIVE}} - WORK_REVIEW={{WORK_REVIEW}} ## Steps (execute ALL in order) **Step 1: Execute task** ``` /flow-next:work {{TASK_ID}} --branch={{BRANCH_MODE_EFFECTIVE}} --review={{WORK_REVIEW}} ``` When `--review=rp`, the work skill MUST invoke `/flow-next:impl-review` internally (see Phase 7 in skill). When `--review=codex`, the work skill uses `flowctl codex impl-review` for review. The impl-review skill handles review coordination and requires `SHIP|NEEDS_WORK|MAJOR_RETHINK` from reviewer. Do NOT improvise review prompts - the skill has the correct format. **Step 2: Verify task done** (AFTER skill returns) ```bash scripts/ralph/flowctl show {{TASK_ID}} --json ``` If status != `done`, output `RETRY` and stop. **Step 3: Write impl receipt** (MANDATORY if WORK_REVIEW=rp or codex) For rp mode: ```bash mkdir -p "$(dirname '{{REVIEW_RECEIPT_PATH}}')" ts="$(date -u +%Y-%m-%dT%H:%M:%SZ)" cat > '{{REVIEW_RECEIPT_PATH}}' <FAIL` and stop. ## Rules - Must run `flowctl done` and verify task status is `done` before commit. - Must `git add -A` (never list files). - Do NOT use TodoWrite. Do NOT output `COMPLETE` in this prompt.