Skip to content

fix(roadmap): clarify review wait message for ready plan PRs in explain #3971

Description

@dan-petty

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:

  1. When an open pull request is a plan pull request (DraftKind.STAGE_PLAN or title docs(openspec): plan #...) and is marked ready, report:
    Its plan pull request #<number> is ready for review and awaiting merge.
  2. 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

  1. devops roadmap explain <issue> reports that a ready plan pull request is awaiting review and merge.
  2. The implement job selector produces this specific reason when skipping items whose plan pull requests are ready.
  3. Unit tests verify the new message for ready plan pull requests in both explain and implement.

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_reason in src/devops_cli/roadmap/implement/implement.py checks status.is_open_draft. When it is false, it gives the generic message. The explain command in src/devops_cli/roadmap/explain.py uses 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

  1. added
    source/agent
    type/bug
    scope/roadmap
    status/new
    value/low
    effort/low
    on Nov 7, 2026
  2. dan-petty commented on Nov 7, 2026

    @dan-petty
    OwnerAuthor

    Intake placed this item to the backlog: intake puts every new item in the backlog. A person plans the milestones.

    • Type: type/bug. The fix prefix of the title gives the type.
    • Scope: scope/roadmap. The (roadmap) scope of the title gives the scope.
    • Priority: P3-Low. The output is misleading but does not block work or cause data loss.
    • Value: Low. Users can still understand the state if they know the system; this removes confusion only.
    • Effort: Low. The body states approximately 30 minutes of work to update message strings and add tests.
    • Related: fix(pr): check-readiness treats a plan pull request as ungrounded #3280, which asks for a different change. 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.
  3. added
    priority/p3-low
    on Nov 7, 2026
  4. dan-petty commented on Nov 7, 2026

    @dan-petty
    OwnerAuthor

    Reproduced this problem during evaluation of issue #3304 and plan pull request #3963:

    $ devops roadmap explain 3304
    # dan-petty/devops-cli #3304: feat(roadmap): Add a set count to every-member plan claims
    
    Refine job: no. The item is Ready. A round takes a Ready item only when no round refined it, or when it holds a covering tool that no round asked about.
    Stage job: no. Issue 3304 is held by a pushed branch: origin/feat/3304-add-a-set-count-to-every.
    Implement job: no. Its pull request #3963 is not an open draft.
    Effort set: low,medium. The fallback pass does not apply to this item.
    Issue #3304 has no recorded implement run, so it has no totals.

    In src/devops_cli/roadmap/implement/implement.py, _pull_reason checks status.is_open_draft. When stage_ready marks a green plan pull request ready for review (Gate G1), the pull request leaves draft status, which triggers implement_left_pull.

  5. added
    status/ready
    and removed
    status/new
    on Nov 9, 2026
  6. devops-cli-service commented on Nov 9, 2026

    @devops-cli-service
    Contributor

    Status set to Ready at 1b37dbc (see proposed design in issue body).

  7. devops-cli-service commented on Nov 9, 2026

    @devops-cli-service
    Contributor

    Alternatives check: none

    Reason: The issue changes one internal message in the project's own devops roadmap explain and 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:

    • No external tool knows devops-cli's DraftKind.STAGE_PLAN or its explain and implement skip reasons
    • The fix is a code change in _pull_reason plus unit tests

    Searches run:

    • CLI tool to explain pull request draft status messages roadmap automation, results: 5

    Checked on 2026-11-09. A person decides what this means for the item. The check changes no label and closes no issue.

  8. added
    status/in-review
    and removed
    status/ready
    on Nov 14, 2026
  9. removed
    status/in-review
    on Nov 14, 2026
  10. added a commit that references this issue on Nov 14, 2026
  11. devops-cli-service commented on Nov 14, 2026

    @devops-cli-service
    Contributor
  12. devops-cli-service commented on Nov 14, 2026

    @devops-cli-service
    Contributor

    Live since 2026-11-14 15:02 UTC

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    effort/lowpriority/p3-lowscope/roadmapsource/agenttype/bugvalue/low

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions