Skip to content

refactor(agents): mark draft PR ready when its checks pass - #7218

Merged
dan-petty merged 3 commits into
mainfrom
docs/7217-mark-complete-draft-ready
Nov 25, 2026
Merged

dan-petty merged 3 commits into
mainfrom
docs/7217-mark-complete-draft-ready

Conversation

@dan-petty

Copy link
Copy Markdown
Owner

Rule 6 of AGENTS.md said "mark it ready only after the checks pass". The rule gave a limit and no duty, so an agent could complete its work, see the checks pass, and leave the pull request as a draft for a person. The rule also did not name agent work, so a pull request could become ready while a review or a repair still ran.

Rule 6 now says: always mark the draft ready when checks pass and no agent work remains. The template of devops ai agents, CONTRIBUTING.md, the devops-pr-ci skill and the OpenSpec apply guidance give the same condition. CONTRIBUTING.md says what agent work is, and that the agent that does the last step marks the pull request ready. No command changes: devops pr ready refuses a pull request while a check runs or fails, as before.

Closes #7217

Change: openspec/changes/archive/2026-11-25-7217-mark-complete-draft-ready/

Rule 6 gives a duty: always mark the draft ready when checks pass and no
agent work remains. The template of devops ai agents, CONTRIBUTING.md,
the devops-pr-ci skill and the OpenSpec apply guidance say the same. The
snapshot of the implement step changed because it holds the rendered
template.
@dan-petty dan-petty added type/docs Type docs: a change to the documents scope/agents Agent instructions in AGENTS.md, skills and the agent hand-off labels Nov 25, 2026
@dan-petty dan-petty changed the title docs(agents): mark a complete draft ready when its checks pass docs(agents): mark draft PR ready when its checks pass Nov 25, 2026
@dan-petty dan-petty changed the title docs(agents): mark draft PR ready when its checks pass fix(agents): mark draft PR ready when its checks pass Nov 25, 2026
@dan-petty dan-petty changed the title fix(agents): mark draft PR ready when its checks pass refactor(agents): mark draft PR ready when its checks pass Nov 25, 2026
The refine result test compared the context size with the literal 765.
The size follows the text of the instructions, so each change of that
text failed the test. The test now checks that the two sizes agree and
are above zero.
@dan-petty
dan-petty marked this pull request as ready for review November 25, 2026 19:10
@dan-petty
dan-petty merged commit 089e577 into main Nov 25, 2026
27 checks passed
@dan-petty
dan-petty deleted the docs/7217-mark-complete-draft-ready branch November 25, 2026 19:18
dan-petty-release Bot added a commit that referenced this pull request Nov 25, 2026
🤖 I have created a release *beep* *boop*
---


##
[0.221.4](v0.221.3...v0.221.4)
(2026-11-25)


### Code Refactoring

* **agents:** mark draft PR ready when its checks pass
([#7218](#7218))
([089e577](089e577))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: dan-petty-release[bot] <346998822+dan-petty-release[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

scope/agents Agent instructions in AGENTS.md, skills and the agent hand-off type/docs Type docs: a change to the documents

Projects

None yet

Development

Successfully merging this pull request may close these issues.

docs(agents): mark a complete draft ready when its checks pass

1 participant