Skip to content

fix(pr): pr create refuses the body of a plan pull request #3314

Closed

Description

@dan-petty

Problem or Motivation

devops pr create refuses the body of a plan pull request. Run on 2026-11-03 with the title docs(openspec): plan #3236 revise scope to role tools and a body that holds Plans #3236 and the Change: line, it printed The pull request breaks the form. Nothing was opened: The body has no line Closes #<issue>. The form of pull_form.body_problems is the form of a delivery. #3280 (PR #3310) teaches devops pr check-readiness the rules of a plan pull request, and devops pr create still holds every pull request to the delivery form.

A plan pull request cannot be opened with a sanctioned command. devops gh api has no option for a request body, and AGENTS.md rule 7 forbids bare gh, so an agent that revises a plan has no way to open its pull request.

Proposed Solution & Architectural Design

  1. In devops pr create, read the title with plan_issue (src/devops_cli/roadmap/grounding.py, added by fix(pr): judge a plan pull request by the rules of a plan #3310). For a plan title, judge the body with plan_blockers-style rules of the plan form (Plans #<issue> line, no closing keyword, the Change: line) and not with body_problems.
  2. Add a plan form function to src/devops_cli/roadmap/pull_form.py that the stage job (pull_request_body) and the command share, so one rule states the body.
  3. Tests: a plan title with a Plans #<issue> body opens a draft; a plan title with Closes #<issue> is refused; a delivery title still needs Closes.

Target Subsystem

src/devops_cli/commands/pr.py, src/devops_cli/roadmap/pull_form.py.

Source: #3310

Activity

  1. added
    source/agent
    type/bug
    scope/pr
    status/new
    value/high
    effort/medium
    on Nov 3, 2026
  2. dan-petty commented on Nov 3, 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/pr. The (pr) scope of the title gives the scope.
    • Priority: P1-High. An agent cannot open a plan pull request with any sanctioned command, fully blocking the plan revision workflow.
    • Value: High. Blocks a required workflow: revising a plan via a sanctioned command.
    • Effort: Medium. Requires adding plan-form rules to pull_form.py, updating pr create logic, and writing tests for both plan and delivery paths.
    • Related: fix(pr): check-readiness treats a plan pull request as ungrounded #3280, which asks for a different change. Both fix plan pull requests being rejected by pr commands, but #3280 fixes check-readiness and the candidate fixes pr create.
  3. added
    priority/p1-high
    status/in-review
    and removed
    status/new
    on Nov 3, 2026
  4. removed
    status/in-review
    on Nov 3, 2026
  5. devops-cli-service commented on Nov 3, 2026

    @devops-cli-service
    Contributor

    Live since 2026-11-03 13:34 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/mediumpriority/p1-highscope/prsource/agenttype/bugvalue/high

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions