Repository navigation
Description
Problem Description
When devops roadmap implement generates the delivery pull request for an issue, _delivery_title() in src/devops_cli/roadmap/implement/implement_run.py unconditionally uses the title of the original GitHub issue (self.target.item.title).
When the service planning (stage / refine) modifies or refines the scope of an issue, the delivery PR title becomes misleading or violates Conventional Commits. For example, in issue #4057, the issue was titled perf(roadmap): cache registry_table in stage eval replay. The staged proposal explicitly decided not to cache registry_table (to prevent stale data across process iterations) and planned only two regression tests. However, the delivery pull request (#4117) was created with title perf(roadmap): cache registry_table in stage eval replay and label type/infra. If squash-merged, release-please generates a false changelog entry under "Performance Improvements" for a non-existent cache feature.
Reproduction Steps
- Create an issue titled
perf(roadmap): <feature description>with labeltype/infra. - Stage a change where the proposal refines the work to regression tests only (
test(roadmap)). - Run
devops roadmap implementto complete the change. - Observe the created delivery pull request title and labels.
Expected vs Actual Behavior
Expected: _delivery_title() derives the PR title and Conventional Commit type from the staged plan proposal (e.g. proposal.summary or inspecting whether only tests/ or docs were touched), setting test(roadmap): pin single registry read... and type/test.
Actual: _delivery_title() blindly takes self.target.item.title from the raw GitHub issue, producing an inaccurate PR title and improper taxonomy labels.
Environment Diagnostics
- DevOps CLI Version: 0.86.0
- Python Version: 3.14.10
- Execution Environment: Roadmap Service
Logs, Traces, or Terminal Output
# In src/devops_cli/roadmap/implement/implement_run.py:
def _delivery_title(self) -> str:
declared = declared_labels(self.store, ref=None)
title = delivery_title(self.target.item.title, declared)
...Pre-Submission Checklist
- I have verified that no sensitive credentials, private keys, or internal tokens are contained in this issue report.
- I have checked existing issues and pull requests to ensure this is not a duplicate.
Proposed design
Problem statement
The implement job copies the issue title to the delivery pull request. When staging refines the work, the title and the Conventional Commit type can misstate the change. The fix derives the title and type from the staged plan and its changed paths.
Acceptance criteria
Requirement: Test-only plan type
The delivery title SHALL use the Conventional Commit type that the changed paths select, and a plan that changes only paths under tests/ SHALL use test.
Scenario: A test-only plan
- WHEN the staged plan changes only paths under
tests/and the issue title starts withperf(roadmap): - THEN
_delivery_title()returns a title that starts withtest(roadmap):.
Requirement: Proposal summary
The delivery title SHALL take its summary from the first non-empty line of the proposal's ## Summary section when that section exists.
Scenario: A proposal with a summary
- WHEN the archived proposal has a
## Summarysection whose first line ispin a single registry readand the changed paths are test-only - THEN
_delivery_title()returnstest(roadmap): pin a single registry read.
Requirement: What Changes fallback
The delivery title SHALL use the first bullet of the proposal's ## What Changes section when the proposal has no ## Summary section.
Scenario: A proposal without a summary
- WHEN the proposal has no
## Summarysection and its first## What Changesbullet is- Add two regression tests - THEN
_delivery_title()returns a title whose summary isAdd two regression tests.
Requirement: Issue summary fallback
The delivery title SHALL keep the issue title's summary when the proposal has no usable summary or the derived title breaks title_problems.
Scenario: No usable proposal summary
- WHEN the proposal has no
## Summaryand no## What Changessection - THEN
_delivery_title()returns the title thatdelivery_title(self.target.item.title, declared)returns.
Requirement: Type label follows title
The implement job SHALL set the pull request's type/* label from the delivery title and remove the stale type/* label.
Scenario: A test-only plan on a type/infra issue
- WHEN the implement job updates a pull request whose current title is
perf(roadmap): cache registry_table in stage eval replayand the delivery title istest(roadmap): pin a single registry read - THEN the pull request has
type/testand does not havetype/infra.
Existing Tool Considered
No alternatives check has run. No open, maintained tool or library covers this repository-specific title derivation. The change extends the repository's own delivery_title, section_text and title_problems helpers. The written cost is about 2,000 tokens to build and test the helper, and about 15 minutes. The helper is pure, so its ongoing cost is its tests.
Key questions
- Which evidence selects the Conventional Commit type for the delivery title?: The changed paths select the type. A plan that changes only
tests/usestest; onlydocs/,openspec/or Markdown files usesdocs; only.github/workflows/or.github/actions/usesci; any other set keeps the type of the issue title. (best practice) [sources: src/devops_cli/roadmap/implement/implement_run.py, src/devops_cli/roadmap/stage/stage_change.py, CONTEXT.md]- Chosen: Changed paths. The paths show what the plan actually changes. A test-only plan must not publish a performance entry.
- Rejected: Issue title. The issue title is the stale text that this issue corrects.
- Rejected: Proposal text only. The proposal text can describe a rejected option. The paths are deterministic.
- Which text supplies the summary of the delivery title?: The first non-empty line of the proposal's
## Summarysection supplies the summary. If that section is absent, the first bullet of## What Changessupplies it. If neither exists, the issue title's summary supplies it. (best practice) [sources: src/devops_cli/roadmap/implement/implement_run.py, src/devops_cli/roadmap/step_files.py, src/devops_cli/roadmap/stage/stage_change.py]- Chosen: Proposal summary then What Changes then issue summary. It follows the staged plan and keeps existing plans working.
- Rejected: Issue title always. It keeps the misleading summary that this issue corrects.
- Rejected: Model-generated summary. It adds a model call and non-deterministic output to a title that a test can check.
- How does the implement job find the proposal after it archives the change?: It reads the archived change folder when
_archived_name()returns one. It reads the active change folder otherwise. This is the same lookup that_bodyuses. (best practice) [sources: src/devops_cli/roadmap/implement/implement_run.py]- Chosen: Archived then active. The job archives the change before it publishes or updates the pull request.
- Rejected: Active only. The active folder is gone after the archive step.
- Rejected: Archived only. A project that declares no archive step keeps the active folder.
- What happens when the derived title is invalid or too long?: The helper falls back to the title that
delivery_title(issue_title, declared)returns. If that title also breakstitle_problems, the existing stop path reports the problem. (best practice) [sources: src/devops_cli/roadmap/pull_form.py, src/devops_cli/roadmap/implement/implement_run.py]- Chosen: Fallback to issue title. It keeps the job running and keeps the existing validation.
- Rejected: Cut the summary. A cut summary can read as a mistake and can still break the limit.
- Rejected: Stop on the first invalid title. A valid issue title is available.
- Should staging write a new required summary field?: No. The implement job reads
## Summarywhen a plan has it and falls back to## What Changes. Existing staged plans need no migration. (best practice) [sources: src/devops_cli/roadmap/stage/stage_change.py, src/devops_cli/roadmap/implement/implement_run.py]- Chosen: Read existing sections. It fixes existing plans and needs no stage change.
- Rejected: Require a new stage field. It breaks existing plans and expands the change.
- Rejected: Read only the issue title. It does not fix the reported defect.
Fit
Fits in one pull request.
Suspected block
None.
Dependencies
None.
Alternatives check of 2026-11-10: none.
Tool: none found.
Activity
dan-petty commentedon Nov 8, 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 wrong title and label produce misleading changelog entries but do not break the build or block work.Users see incorrect PR titles and changelog entries that describe work that was not delivered.The fix requires reading the staged proposal summary and type in _delivery_title and updating the label logic accordingly.Both work on the delivery title in the implement job, but #3368 adds a validation check before writing the title while the candidate changes the source of the title from the issue to the staged proposal.devops-cli-service commentedon Nov 9, 2026
Status set to Ready at 719cd43 (see proposed design in issue body).
devops-cli-service commentedon Nov 10, 2026
Alternatives check: none
Reason: The searches returned only commit-message helpers such as commitizen, which prompt for or validate Conventional Commit messages and build changelogs from existing commits; they do not derive the type from a plan's changed paths or read an OpenSpec proposal's
## Summary/## What Changessections. The need is a repository-specific extension of the existingdelivery_title,section_textandtitle_problemshelpers, which no open, maintained tool covers.Tool: none found
Lacks:
## Summaryline, with the## What Changesbullet and issue-title fallbacksdelivery_title(issue_title, declared)when the derived title breakstitle_problemstype/*label from the derived title and removing the staletype/*labeldevops roadmap implementTools considered:
Searches run:
Sources:
Checked on 2026-11-10. A person decides what this means for the item. The check changes no label and closes no issue.
fix(roadmap): sync delivery PR title and type with staged plan proposal
fix(roadmap): sync delivery PR title and type with staged plan proposal
devops-cli-service commentedon Nov 18, 2026
Released in v0.177.0: https://github.com/dan-petty/devops-cli/releases/tag/v0.177.0
devops-cli-service commentedon Nov 18, 2026
Live since 2026-11-18 16:28 UTC