Repository navigation
Description
Problem
When a roadmap item has an open plan pull request that was marked ready for review by stage_ready, running devops roadmap explain <issue> displays:
Implement job: no. Its pull request #<number> is not an open draft.
This output is misleading. It suggests an unexpected error or an invalid pull request state. In reality, the plan pull request completed staging and is waiting for human review and merge into the default branch to become Planned.
Proposed change
Update explain and implement messaging to clarify the status of open plan pull requests:
- When an open pull request is a plan pull request (
DraftKind.STAGE_PLANor titledocs(openspec): plan #...) and is marked ready, report:
Its plan pull request #<number> is ready for review and awaiting merge. - Retain the existing message
Its pull request #<number> is not an open draft.only when an active implementation pull request unexpectedly leaves draft status prematurely.
Acceptance criteria
devops roadmap explain <issue>reports that a ready plan pull request is awaiting review and merge.- The implement job selector produces this specific reason when skipping items whose plan pull requests are ready.
- Unit tests verify the new message for ready plan pull requests in both
explainandimplement.
Target Subsystem
SDLC, Git & PR Governance
Existing Tool Considered
This is an internal command-line message in DevOps CLI. Implementing this fix requires approximately 5,000 tokens to implement and 1,000 tokens annually to maintain. Elapsed time is approximately 30 minutes.
Proposed design
Problem statement
When stage_ready marks a plan pull request ready for review, devops roadmap explain <issue> and the implement job report: "Its pull request #<number> is not an open draft." This message looks like an error. The plan pull request is only waiting for a person to review and merge it, after which the item becomes Planned. The message must say this.
Acceptance criteria
Requirement: Explain reports a ready plan pull request
The command devops roadmap explain <issue> SHALL report "Its plan pull request #<number> is ready for review and awaiting merge." when the open pull request of the item is a plan pull request that is not a draft.
Scenario: Ready plan pull request in explain
- WHEN the item has an open, non-draft pull request that is a plan pull request, by DraftKind.STAGE_PLAN or by the title prefix
docs(openspec): plan # - THEN the Implement job line of the explain output contains the plan pull request message and not the text "is not an open draft"
Requirement: Implement selector gives the plan reason
The implement job selector SHALL skip an item whose plan pull request is ready with the reason "Its plan pull request #<number> is ready for review and awaiting merge."
Scenario: Implement skips a ready plan pull request
- WHEN the implement job selects items and the open pull request of one item is a ready plan pull request
- THEN the job skips the item and its skip reason is the plan pull request message
Requirement: Implementation pull request keeps the old message
The explain command and the implement job MUST keep the message "Its pull request #<number> is not an open draft." when an open pull request that is not a plan pull request is not a draft.
Scenario: Ready implementation pull request
- WHEN an open, non-draft pull request of the item is not a plan pull request
- THEN the reason is "Its pull request #<number> is not an open draft."
Requirement: Unit tests cover the new message
The test suite SHALL hold unit tests that check the new message for a ready plan pull request in both explain and implement.
Scenario: Tests for both paths
- WHEN the tests run offline with a fake pull request status of a ready plan pull request
- THEN the explain test and the implement test both assert the new message
Existing Tool Considered
No open tool covers this need. It is an internal message in devops-cli. The build cost is about 5,000 tokens to build, 1,000 tokens each year to keep, and about 30 minutes of elapsed time.
Key questions
- Where does the current message come from?: The function
_pull_reasoninsrc/devops_cli/roadmap/implement/implement.pychecksstatus.is_open_draft. When it is false, it gives the generic message. The explain command insrc/devops_cli/roadmap/explain.pyuses the same reason. [sources: src/devops_cli/roadmap/implement/implement.py, src/devops_cli/roadmap/explain.py] - How does the code tell a plan pull request from an implementation pull request?: Use the plan kind first (DraftKind.STAGE_PLAN). Use the title prefix
docs(openspec): plan #as the fallback. Put the check in one shared helper that both explain and implement call, so the two messages never differ. (best practice) [sources: CONTEXT.md, docs/roadmap/stage.md]- Chosen: One shared helper in the implement module, called by explain. One rule and one message text. Explain already calls the implement reason code.
- Rejected: Separate checks in explain and implement. The two messages could drift apart.
Fit
Fits in one pull request.
Suspected block
None.
Dependencies
None.
Alternatives check of 2026-11-09: none.
Tool: none found.
Activity
dan-petty commentedon Nov 7, 2026
Intake placed this item to the backlog: intake puts every new item in the backlog. A person plans the milestones.
fixprefix of the title gives the type.(roadmap)scope of the title gives the scope.The output is misleading but does not block work or cause data loss.Users can still understand the state if they know the system; this removes confusion only.The body states approximately 30 minutes of work to update message strings and add tests.Both fix misleading output about plan PRs in devops commands, but #3280 fixes false blockers in check-readiness while this fixes status text in explain and implement.dan-petty commentedon Nov 7, 2026
Reproduced this problem during evaluation of issue #3304 and plan pull request #3963:
In
src/devops_cli/roadmap/implement/implement.py,_pull_reasonchecksstatus.is_open_draft. Whenstage_readymarks a green plan pull request ready for review (Gate G1), the pull request leaves draft status, which triggersimplement_left_pull.devops-cli-service commentedon Nov 9, 2026
Status set to Ready at 1b37dbc (see proposed design in issue body).
devops-cli-service commentedon Nov 9, 2026
Alternatives check: none
Reason: The issue changes one internal message in the project's own
devops roadmap explainand implement job selector. The search found no open tool or library that covers this, and the only results were unrelated MDN pages.Tool: none found
Lacks:
_pull_reasonplus unit testsSearches run:
Checked on 2026-11-09. A person decides what this means for the item. The check changes no label and closes no issue.
chore(main): release 0.138.0 (#5690)
devops-cli-service commentedon Nov 14, 2026
Released in v0.138.0: https://github.com/dan-petty/devops-cli/releases/tag/v0.138.0
devops-cli-service commentedon Nov 14, 2026
Live since 2026-11-14 15:02 UTC