Task to PR
Deliver each task as one focused pull request that passes CI and an independent review. The spec, issue, or task is the ticket; do not write another one.
When a step names spec, plan, test, pr, or review, read that file and follow it.
Steps
- Read the ticket, the repository instructions, and the code it touches (plus
ARCHITECTURE.mdorREQUIREMENTS.mdif present). If a decision that changes behavior is missing, ask the user or return to spec. Split large work with plan. - Branch from the latest default branch, or continue the existing branch and PR.
- Build one behavior at a time with tests against the public interface (write or run a failing test for each behavior before or alongside implementing it). Update
ARCHITECTURE.md,REQUIREMENTS.md, or the spec only if present and made wrong by the change. - Follow test until every check passes.
- Commit with a Conventional Commit message, then follow pr to push, open or update the pull request, and mark it ready for review.
- Follow review. Wait for CI and any review bot on the latest commit.
- Fix each real finding and failure, and reply on each review thread with the fix or the reason for no change. Go back to step 4. After three rounds on the same problem, stop and report it.
- Link the PR and its proof in the ticket.
Dependent tasks
Start a task that depends on another once that task has an open PR with an Approve review. Branch from it, and update your branch when it changes or merges.
Merge
Leave the PR open. Merge only when the user asks (for example "/task-to-pr and merge it") or /codex-issue-coordinator was invoked by name, and only when:
- The PR is ready for review, not draft.
- CI passes on the latest commit.
- The latest review verdict is
Approveand noMust fixfinding is open. - Every approval the repository requires is given.
- The PR is up to date with its base.
Never bypass branch protection. After merging, update the ticket and delete any worktree you created. Merging never includes deploying or releasing.
Return
Each PR link with its check results, review verdict, CI state, and anything blocked.