Summary
When the agent submits a PR, it must verify the PR is in a mergeable state before considering the task done:
- All CI checks / tests pass — if any fail, the agent should fix the issues and push again
- The PR has no merge conflicts with the base branch — if it does, the agent should resolve them
Motivation
- Avoid handing off broken PRs that humans then have to triage
- Catch merge conflicts early while the agent still has context
- Reduce back-and-forth between the agent and reviewers
Acceptance criteria
Summary
When the agent submits a PR, it must verify the PR is in a mergeable state before considering the task done:
Motivation
Acceptance criteria
mergeable/mergeStateStatusviagh pr viewand resolves conflicts if found