Repository navigation
Description
Problem or Motivation
The stage job refuses a placeholder in the plan text, but not in the summary of the pull request title (#3200, #3367). PR #3335 opened for #3321 with the title docs(openspec): plan #3321 x and the body x, and every check passed. The title and the body were edited in edc0d0b to make the plan usable. The item spent a full check round on a plan whose title names no work.
StageProposal._summary_fits_the_title refuses a summary that is blank, ends with ... or is too long, and it does not call is_placeholder. _plan_texts omits summary, so content_problems does not judge it. title_problems("docs(openspec): plan #3321 x") returns no problem, because the stage title lead puts plan #3321 before the placeholder summary.
Proposed Solution & Architectural Design
- In
src/devops_cli/roadmap/stage_change.py, refuse asummarywhose whole text is a placeholder word (is_placeholder), with the same one-return path as the other reply checks and a message inMESSAGES.roadmap. - In
src/devops_cli/roadmap/implement_pull.py, add aSTAGE_PLANcompleteness rule to_judge_completeness: refuse a plan pull request whose body is a placeholder and whose title summary is a placeholder.draft_readinessis the one decision that the rowstage_readyand the implement job use. - Add a test to
tests/roadmap/test_roadmap_stage_title.pyfor the refused summary, and one totests/roadmap/test_roadmap_draft_readiness.pyfor the ready mark. - Do not change the title lead
docs(openspec): plan #<number>: the summary alone is the model's text.
Target Subsystem
src/devops_cli/roadmap/stage_change.py, src/devops_cli/roadmap/implement_pull.py, src/devops_cli/lang/en/messages.py, tests/roadmap/test_roadmap_stage_title.py, tests/roadmap/test_roadmap_draft_readiness.py.
Existing Tool Considered
is_placeholder and title_problems already exist in src/devops_cli/roadmap/pull_form.py, and the stage job already checks the summary for a blank, a cut and a length. The change calls the existing functions and builds no new rule. Cost: about 10k tokens and 30 minutes. The change deletes no code.
Related: #3297 (the ready mark accepts a placeholder group), #3387 (the stage job replaces a draft that fails the plan check).
Scope from #3297
The ready mark accepts a plan whose group title is placeholder. The plan has no content, but the job marks it ready. Evidence: #3174. A comment on #3200 by dan-petty (2026-11-03T16:24Z) says that the check must refuse an artifact that holds a placeholder group.
- Plan check. Refuse a plan where any group has a placeholder title, not only a plan with a single group. Call
is_placeholderon the title only, with no minimum length. Do not add the title to_plan_texts(stage_change.py:560-573), because_text_problemsappliesPLAN_FIELD_MIN_CHARS= 10 there. A scan oftasks.mdfiles found 183 of 1776 group titles under 10 characters, such asArchive,DocumentsandThe alert. A length rule would refuse them. - Ready mark. The ready mark reads
tasks.mdat the head of the plan pull request and refuses a placeholder group. Addsrc/devops_cli/roadmap/stage_ready.pyto the target files._settlebuildsDraft(DraftKind.STAGE_PLAN, status, item, checks)with nochange(stage_ready.py:100), soDraft.changeis None for a stage plan._judge_completenessreturns None forSTAGE_PLAN(implement_pull.py:123-124). Another valid form: the ready mark calls the content gate on the parsed plan. - Test. A test in
tests/roadmap/test_roadmap_draft_readiness.pyshows the refusal, and the reason names the group.
Item 2 of this issue also needs a change. PullStatus (src/devops_cli/github/client.py:76-87) holds no title and no body, so _judge_completeness cannot read them today.
#3394 has a merged plan that changes _plan_texts in the same module. Do not stack this change on it. The plan of #3394 does not cover the group title.
Proposed design
Problem statement
The stage job refuses a placeholder in the plan text, but it does not refuse a placeholder in the summary of the pull request title. A plan pull request can open with title docs(openspec): plan #3321 x and body x, and every check passes. The change makes the stage reply and draft readiness refuse a placeholder summary. It also makes draft readiness refuse a stage plan whose title summary or body is a placeholder.
Acceptance criteria
Requirement: Placeholder summary is refused
The stage reply SHALL refuse a summary whose whole text is a placeholder word.
Scenario: A summary of one placeholder word
- WHEN The stage reply validates a proposal with the summary
x. - THEN Validation raises
ValueErrorand the message names the placeholder summary.
Requirement: Placeholder summary uses the roadmap message
The refusal SHALL use the existing stage_problem_text_placeholder message with the field name summary.
Scenario: A placeholder summary message
- WHEN The stage reply refuses the summary
todo. - THEN The error text is the rendered
stage_problem_text_placeholdermessage for fieldsummaryand texttodo.
Requirement: Pull status holds the title and body
The draft readiness input SHALL hold the title and body of the pull request.
Scenario: A stage plan draft is read
- WHEN
read_draftreads a stage plan pull status with titledocs(openspec): plan #3321 xand bodyx. - THEN
draft.pull.titleis the title anddraft.pull.bodyis the body.
Requirement: Stage plan with a placeholder title is refused
Draft readiness SHALL refuse a STAGE_PLAN draft when its title summary is a placeholder.
Scenario: A placeholder title summary
- WHEN
draft_readinessreads aSTAGE_PLANdraft with titledocs(openspec): plan #3321 xand a non-placeholder body. - THEN It returns
Answer.REFUSEand the reason names a placeholder.
Requirement: Stage plan with a placeholder body is refused
Draft readiness SHALL refuse a STAGE_PLAN draft when its body is a placeholder.
Scenario: A placeholder body
- WHEN
draft_readinessreads aSTAGE_PLANdraft with a non-placeholder title summary and bodyx. - THEN It returns
Answer.REFUSEand the reason names a placeholder.
Requirement: Complete stage plan is ready
Draft readiness SHALL return READY for a STAGE_PLAN draft whose title summary and body are not placeholders.
Scenario: A complete stage plan
- WHEN
draft_readinessreads aSTAGE_PLANdraft with titledocs(openspec): plan #3321 Refuse a placeholder summary, bodyPlans #3321, and passing checks. - THEN It returns
Answer.READY.
Requirement: Staging title keeps the lead
The staging title SHALL keep the lead docs(openspec): plan # and append the summary.
Scenario: A staging title for an issue
- WHEN
staging_titlebuilds the title for issue 3321 and summaryRefuse a placeholder summary. - THEN The title is
docs(openspec): plan #3321 Refuse a placeholder summary.
Existing Tool Considered
No alternatives check has run. No open, maintained external tool or library covers this project-internal roadmap rule. The change reuses is_placeholder and the existing title checks in src/devops_cli/roadmap/pull_form.py; it builds no new rule. The written cost is about 10k tokens and 30 minutes. The change deletes no code.
Key questions
- Where should the stage reply refuse a placeholder summary?: In
StageProposal._summary_fits_the_title, aftersafe_text, callis_placeholderand raiseValueErrorwithMESSAGES.roadmap.stage_problem_text_placeholder. (best practice) [sources: src/devops_cli/roadmap/stage_change.py, src/devops_cli/roadmap/pull_form.py, src/devops_cli/lang/en/messages.py]- Chosen: Field validator on summary. It returns the reply to the model before
check_proposal, as the blank, cut and length checks do. - Rejected: Add summary to
_plan_texts. It runs later incontent_problemsand duplicates the title field checks. - Rejected: Add a separate model validator. It splits the summary rules and changes the error order.
- Chosen: Field validator on summary. It returns the reply to the model before
- Should the stage reply reuse the existing placeholder message or add a new message key?: Reuse
MESSAGES.roadmap.stage_problem_text_placeholderwithfield='summary'. Add no new message key. (best practice) [sources: src/devops_cli/lang/en/messages.py, src/devops_cli/roadmap/stage_change.py]- Chosen: Reuse
stage_problem_text_placeholder. The text already says that a field is a placeholder and names the text. - Rejected: Add
stage_summary_placeholder. It duplicates an existing message and adds a second wording for the same rule. - Rejected: Reuse
form_placeholderfromPRMessages. Stage code readsRoadmapMessages, and the pull request form message is for another subsystem.
- Chosen: Reuse
- How should draft readiness decide a stage plan is incomplete?: In
_judge_completeness, forDraftKind.STAGE_PLAN, refuse when the title summary is a placeholder or the body is a placeholder. (best practice) [sources: src/devops_cli/roadmap/implement_pull.py, src/devops_cli/roadmap/stage_ready.py, tests/roadmap/test_roadmap_draft_readiness.py]- Chosen: Refuse on either placeholder. Either field alone leaves the plan with no usable summary or body.
- Rejected: Refuse only when both are placeholders. A title-only placeholder still names no work and would pass.
- Rejected: Leave
STAGE_PLANcomplete on open. It is the current behavior that let PR docs(openspec): plan #3321 refuse a self-named or untested plan #3335 pass.
- How should the code find the summary in a stage plan title?: Take the text after the first
:, remove the existingMESSAGES.roadmap.stage_title_leadfor the item number, and callis_placeholderon the remaining text. (best practice) [sources: src/devops_cli/roadmap/stage_change.py, src/devops_cli/lang/en/messages.py, src/devops_cli/roadmap/implement_pull.py]- Chosen: Strip the type and the existing lead. It uses the one definition of the title lead and aligns with
staging_title. - Rejected: Check the whole text after the colon. The lead
plan #hides the placeholder, astitle_problemsshows. - Rejected: Add a regex for the full title. It duplicates the title format in a second place.
- Chosen: Strip the type and the existing lead. It uses the one definition of the title lead and aligns with
- Where should the title and body of a stage plan pull request come from?: Add
titleandbodyfields with empty defaults toPullStatus, and set them inget_pull_status.read_draftalready carries thePullStatusinDraft, so_judge_completenessreads them with no new request. (best practice) [sources: src/devops_cli/github/client.py, src/devops_cli/roadmap/implement_pull.py, tests/roadmap/test_roadmap_draft_readiness.py]- Chosen: Add fields to
PullStatus.PullStatusis the pull request record thatread_draftalready carries. Empty defaults keep existing callers. - Rejected: Add title and body to
Draft. It duplicates the pull request record and makes every caller fill two more fields. - Rejected: Call GitHub inside
_judge_completeness. The decision is a pure function. A request breaks its tests and its callers.
- Chosen: Add fields to
- Should the staging title lead change?: No. Keep
docs(openspec): plan #and append only the model summary. (best practice) [sources: src/devops_cli/roadmap/stage_change.py, tests/roadmap/test_roadmap_stage_title.py]- Chosen: Keep the lead. The summary alone is the model text, and existing title checks and tests depend on the lead.
- Rejected: Move the summary before the number. It changes the title form and the check
Semantic PR titlemeasures a different text.
- Should this issue also refuse a placeholder group title from fix(roadmap): refuse a ready mark for a plan with a placeholder group #3297?: No. Defer the group title check to a new issue. The main change is the summary and body of a stage plan. The group title check changes plan parsing and the ready mark. (best practice) [sources: src/devops_cli/roadmap/stage_change.py, src/devops_cli/roadmap/stage_ready.py, src/devops_cli/roadmap/implement_pull.py]
- Chosen: Defer the group title check. It is a separate rule with its own ready-mark path and tests.
- Rejected: Include the group title check. It makes the pull request larger and mixes two rules.
Fit
Fits in one pull request.
Suspected block
None.
Dependencies
None.
Alternatives check of 2026-11-06: none.
Tool: none found.
Activity
devops-cli-service commentedon Nov 3, 2026
Intake placed this item to the backlog: intake puts every new item in the backlog. A person plans the milestones.
A placeholder summary wastes one review round but does not break the pipeline or lose data.It stops a full check round on a plan whose title names no work, saving reviewer time.The candidate states about 30 minutes of work calling existing functions with no new code deleted.Both add is_placeholder checks to fields that _plan_texts omits, but the candidate targets summary while #3394 targets pull_request_body and what_changes.devops-cli-service commentedon Nov 4, 2026
Status set to Ready at 283a606 (see proposed design in issue body).
devops-cli-service commentedon Nov 4, 2026
The stage job returned the item to New. The premise of the issue does not hold at the staging commit, so the job planned no change and opened no pull request.
Evidence:
none
11 remaining items
test(roadmap): hold the golden set totals after the rebase (#3395)
fix(roadmap): refuse a placeholder plan summary and body (#3395)
fix(roadmap): align the golden set with the summary rule (#3395)
test(roadmap): update the golden set totals for the summary rule (#3395)
test(roadmap): hold the golden set totals after the rebase (#3395)
fix(roadmap): refuse a placeholder plan summary and body (#3395)
fix(roadmap): align the golden set with the summary rule (#3395)
test(roadmap): update the golden set totals for the summary rule (#3395)
test(roadmap): hold the golden set totals after the rebase (#3395)
devops-cli-service commentedon Nov 9, 2026
Released in v0.98.0: https://github.com/dan-petty/devops-cli/releases/tag/v0.98.0
devops-cli-service commentedon Nov 9, 2026
Live since 2026-11-09 03:15 UTC