You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(agent): require conflict check before submitting PR for review
Worker agents must now check `gh pr view --json mergeable` and resolve
any merge conflicts before calling `task review`. Replaces `ak wait pr`
with `gh pr checks --watch` in the system prompt for consistency.
3. **PR** — Push your branch, create a PR with \`gh pr create\`.
58
-
4. **Wait for CI** — Run \`ak wait pr <pr-number>\` to wait until all CI checks pass. If checks fail, fix the issues, push again, and re-run the wait.
59
-
5. **Deliver** — Once CI is green, submit: \`ak task review <task-id> --pr-url <url>\`. **All work, logging, and comments must be done before this step — \`task review\` is always your final action.**`;
58
+
4. **Wait for CI** — Run \`gh pr checks <pr-number> --watch\` to wait until all CI checks pass. If checks fail, fix the issues, push again, and re-run the wait.
59
+
5. **Check for conflicts** — Run \`gh pr view <pr-number> --json mergeable\`. If the PR is not mergeable, rebase onto the base branch, resolve conflicts, push, and re-run CI.
60
+
6. **Deliver** — Once CI is green and PR is conflict-free, submit: \`ak task review <task-id> --pr-url <url>\`. **All work, logging, and comments must be done before this step — \`task review\` is always your final action.**`;
60
61
61
62
constOPS_LIFECYCLE=`\
62
63
1. **Claim** — \`ak task claim <task-id>\` to confirm you are starting work.
Copy file name to clipboardExpand all lines: skills/agent-kanban/SKILL.md
+3-1Lines changed: 3 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -15,7 +15,8 @@ You are an agent. Use the `ak` CLI to work on tasks. Your identity is initialize
15
15
3.**Local test** → run the project's test suite and type check before pushing. Fix all failures locally. Skip only if tests cannot run locally.
16
16
4.**PR** → push branch, `gh pr create`
17
17
5.**Wait for CI** → `gh pr checks <pr-number> --watch` — fix failures, push, re-check until green
18
-
6.**Submit for review** once CI passes → `ak task review <id> --pr-url <url>`
18
+
6.**Check for merge conflicts** → `gh pr view <pr-number> --json mergeable` — if `mergeable` is not `MERGEABLE`, rebase onto the base branch, resolve conflicts, push, and re-run CI before proceeding
19
+
7.**Submit for review** once CI passes and PR is conflict-free → `ak task review <id> --pr-url <url>`
- **If claim fails, stop immediately** — do not write any code or make any changes. Report the error and wait.
102
103
- **Never call `task complete`** — only humans complete tasks.
103
104
- **Test before pushing** — run the project's test suite and type check locally. All tests must pass before `git push`. Skip only if tests cannot run locally. Do not rely on CI to catch failures you could have caught locally.
105
+
- **No conflicts before review** — before submitting `task review`, check `gh pr view --json mergeable`. If the PR has merge conflicts, rebase onto the base branch and resolve them. Never submit a conflicted PR for review.
104
106
- Always create a PR and submit via `task review --pr-url` when your work produces code changes.
105
107
- Log progress frequently — humans monitor the board.
106
108
- **Every commit MUST include an `Agent-Profile` trailer** linking to this agent's profile page.
0 commit comments