Skip to content

fix(pr): pr create refuses Plans for a partial slice #3598

Closed as not planned
1 of 1 issue completed
Closed as not planned

Description

@dan-petty

Problem

Issue #3497 has more than one slice. A pull request for one slice must not close the issue. devops pr create has no accepted form for that case.

For a delivery title (fix(service): ...), the form requires the line Closes #<issue>. It refuses the line Plans #<issue>. It accepts Plans #<issue> only for a plan title (docs(openspec): plan #<issue> ...). A code change cannot use that title.

Evidence, from devops pr create --dry-run with a body that ends with Plans #3497:

✗ The pull request breaks the form. Nothing was opened:
- The body has no line `Closes #<issue>`.

A Closes #3497 line closes the issue on merge. The other slices then stay open with no issue.

Options

  1. Split fix(service): the rows stop repeating reads that find no change #3497 into one issue for each slice. Each pull request closes its own issue. This follows the rule of one issue for one pull request.
  2. Allow a Plans #<issue> line in a delivery body. This changes src/devops_cli/roadmap/pull_form.py.

Found while publishing the first slice of #3497, in openspec/changes/archive/2026-11-05-3497-cut-unchanged-github-reads/.

Source: #3497

Sub-issues

Sub-issues

1 of 1 Issues completed
Loading 1 sub-issues

Activity

  1. added
    source/agent
    on Nov 5, 2026
  2. added
    type/bug
    scope/pr
    status/new
    value/medium
    effort/low
    on Nov 5, 2026
  3. dan-petty commented on Nov 5, 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: P2-Medium. It blocks publishing a partial slice but a workaround exists by splitting the issue.
    • Value: Medium. It unblocks a valid workflow for multi-slice issues but does not affect correctness of merged code.
    • Effort: Low. The form already accepts Plans for plan bodies; extending it to delivery bodies is a small logic change in pull_form.py.
    • Related: fix(pr): pr create refuses the body of a plan pull request #3314, which asks for a different change. Both touch pull_form.py and devops pr create, but #3314 allowed Plans for plan titles while this candidate needs Plans for delivery titles.
  4. added
    priority/p2-medium
    on Nov 5, 2026
  5. dan-petty commented on Nov 5, 2026

    @dan-petty
    OwnerAuthor

    Evidence from the publish of #3039. Issue #3039 is not complete. Its criterion 2, the recall of 80 percent, is not measured. So its pull request body must end with Plans #3039.

    uv run devops pr create --dry-run with the title feat(roadmap): the verifier reads the repository and repairs a plan twice and a body that ends with Plans #3039 gives:

    The pull request breaks the form. Nothing was opened: and - The body has no line Closes #.

    The branch is pushed. No pull request is open. A delivery title with a feat type cannot carry the plan form, so the pull request cannot record that the issue stays open. Please decide how a partial feature opens its pull request.

  6. dan-petty commented on Nov 5, 2026

    @dan-petty
    OwnerAuthor

    Answer from project standards, under the owner's instruction of 2026-11-05.

    Question. How does a pull request that delivers only one slice of an issue open? Option 1 splits the issue, so that each pull request closes its own issue. Option 2 allows a Plans #<issue> line in a delivery body.

    Answer. Use option 1. The refusal in src/devops_cli/roadmap/pull_form.py is the intended form, so option 2 is not planned and this issue closes with no code change.

    Rules that give the answer.

    • AGENTS.md, rule 1: "Open one pull request into main that closes its one issue (Closes #<issue>)."
    • CONTRIBUTING.md, section 4: a plan pull request, with the title docs(openspec): plan #<issue> <summary>, "closes no issue". The line Plans #<issue> is for that form only.
    • docs/SDLC.md: "A plan pull request (title docs(openspec): plan #<issue> <summary>) delivers nothing". The same text says that readiness blocks a pull request that does not add the archive folder of its issue. A partial delivery with Plans has no path through this check.
    • The docstring of plan_body_problems: "A plan delivers nothing".
    • The plan of feat(roadmap): the jobs build pull request text with pull_form #3215 records the same result: it rejects a change to body_problems that accepts Plans, because "The delivery form must keep refusing a body with no Closes."

    What I checked. On origin/main at f6d57ec, uv run devops pr create --dry-run with a feat title and a body with Plans #3039 still gives The body has no line Closes #. The same body text with the title docs(openspec): plan #3039 ... and Plans above the text passes.

    How to split. Move each open criterion to a new or an existing issue. Edit the body of the issue, so that it lists what the pull request delivers and names the issue that holds each moved criterion. Then use Closes #<issue>. Move a criterion only when its work is really separate.

    #3497 and #3039. This comment does not change them. Both stay open, and each needs this split before a partial pull request can open. The refine comment on #3497 of 2026-11-04 names five items for its split.

    A separate defect. While I checked the form, I found that a plan body with its text above Plans gets the refusal The text above Closes has 0 characters. CONTRIBUTING.md does not state the order. #3662 holds this defect. Intake made #3662 a sub-issue of this issue, and #3662 stays open after this issue closes.

    If the owner wants a different rule, the owner can reopen this issue. That change starts at AGENTS.md rule 1.

  7. removed
    status/new
    on Nov 5, 2026
  8. dan-petty commented on Nov 13, 2026

    @dan-petty
    OwnerAuthor

    Evidence from the publish of plan step 8 of #5134 (branch feat/5134-homelab-source-repo, 2026-11-13). Plan steps 10 to 17 of #5134 come after this pull request, so the pull request must not close #5134. The brief of the publisher asked for the line Part of #5134 and no closing keyword in the title or the body.

    uv run devops pr create --title "feat(argocd): admit the homelab repo in both AppProjects" --body "<text>\n\nPart of #5134\n\nChange: <archived folder>" gives:

    ✗ The pull request breaks the form. Nothing was opened:
    - The body has no line `Closes #<issue>`.
    

    The branch is pushed. No pull request is open. The answer above (option 1: split the issue, so that each pull request closes its own issue) applies. The publisher did not split #5134, because the brief forbids each closing keyword in this pull request. The workflow that sends one step of a multi-step issue to a publisher must give a sub-issue for that step, or the brief must permit Closes for that sub-issue.

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/p2-mediumscope/prsource/agenttype/bugvalue/medium

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions