Skip to content

fix(roadmap): a long item title gets short before a job needs it #3486

Closed

Description

@dan-petty

Problem

The stage job leaves out an item with a title summary over 60 characters, and no job shortens the title. A Planned item from before the rule reaches the check only at the push, after the job spent its tokens. Delivery of these items stops, and a person must edit each title.

Counts at 2026-11-04T15:06Z, with the rules of summary_length:

Code at origin/main:

  • src/devops_cli/roadmap/stage.py:417-419 leaves out a long title.
  • implement.py:271-276 (_planned_target) checks only the type of the title.
  • implement_run.py:937 checks the title in _publish, after the steps.
  • pull_form.py:37 sets SUMMARY_MAX_CHARS to 60, and .github/workflows/pr-title.yml:78 sets the same limit in CI.
  • roadmap/intake.py does not check the length.
  • PR fix(roadmap): refuse an overlong title summary at stage #3381 added the stage rule with no repair path.

Example: the stop of #3106 at 09:52Z on 2026-11-04 has class test at group 2. The title fault came second: The push of the commits that passed failed too. and The summary has 68 characters ... The limit is 60. Its group 1 used 580448 input tokens. #2743 (70), #2750 (66) and #2950 (76) are also over the limit, but they have no title stop yet.

Neither related issue covers this change. #3368 (now closed) added tests for the guard that exists. #3215 refuses long pull request text and does not shorten it.

Expected

devops roadmap intake refuses a new candidate with a summary over the limit, and the message names the length and the limit. One job shortens the titles of open items and keeps the type and the scope. For a Planned item, the source of the short title is the title of its plan pull request, with no model call, because STAGE_SUMMARY_MAX_CHARS bounds that summary (stage_change.py:72, :405). The evaluation did not check this source for all 34 Planned items. An item with no plan needs a model call, and the plan of this issue states how the job makes it. _planned_target refuses a long title before any model call.

Acceptance criteria

  • A test: intake with a summary over the limit refuses the candidate and writes no issue.
  • A test: a dry-run pass lists the titles that it would change, and --confirm writes them.
  • A test: the pass keeps the type and the scope, and each new summary passes summary_length.
  • A test: the pass does not change a title that a person edited after the last job comment.
  • A test: _planned_target leaves out a long title, and the job makes no model request.
  • A test: devops roadmap inbox lists an item that the limit holds.

Existing tool considered

summary_length and title_problems in src/devops_cli/roadmap/pull_form.py give the rule. amannn/action-semantic-pull-request sets the limit in CI through pr-title.yml:78, but it only checks a title and does not repair one.

Related

Related: #3215, #3368, #3369, #3106, #2613, #2740, #2743, #2750, #2950

Proposed design

Problem statement

Long item titles over 60 characters stop the stage and implement jobs. A person must edit each title. This change rejects a long title at intake and adds one repair pass. The pass shortens open item titles and keeps the type and the scope. The implement job refuses a long Planned title before any model call.

Acceptance criteria

Requirement: Intake refuses a long summary

Intake SHALL refuse a candidate whose title summary is longer than SUMMARY_MAX_CHARS and SHALL write no issue.

Scenario: Intake with an over-limit summary

  • WHEN A candidate title has a summary of 61 characters.
  • THEN Intake exits with a validation error that names 61 and 60, and no issue is created.

Requirement: Dry run lists title changes

The title repair pass SHALL list each title it would change in a dry run and SHALL write no title without --confirm.

Scenario: Dry run on an over-limit title

  • WHEN The repair pass runs without --confirm on an open item with a 68-character summary.
  • THEN The output names the item and its new summary, and the item title stays the same.

Requirement: Confirmed repair keeps type and scope

With --confirm, the repair pass SHALL replace only the summary, keep the type and the scope, and write a title that passes title_problems.

Scenario: Confirmed repair of an over-limit title

  • WHEN The repair pass runs with --confirm on an item titled fix(roadmap): ... with a 68-character summary.
  • THEN The new title starts with fix(roadmap): , its summary has at most 60 characters, and title_problems returns no problem.

Requirement: Planned item uses its plan pull request title

For a Planned item, the repair pass SHALL take the short summary from its plan pull request title and SHALL make no model call.

Scenario: Planned item with a valid plan title

  • WHEN A Planned item has an over-limit title and its plan pull request title is docs(openspec): plan #3486 Add a title repair pass.
  • THEN The new item summary is Add a title repair pass and the model client records no request.

Requirement: Item without a plan uses one model call

For an item with no plan, the repair pass SHALL ask the background model for a summary and SHALL write only a result that passes title_problems.

Scenario: No-plan item with a valid model reply

  • WHEN An over-limit item has no plan pull request and the model returns Shorten long roadmap titles.
  • THEN The new title uses that summary and the model client records one request.

Requirement: Person edit is kept

The repair pass MUST NOT change a title that a person edited after the last job comment.

Scenario: Person edit after the last job comment

  • WHEN A person renames the item after the last job comment on it.
  • THEN The repair pass leaves the title unchanged and reports that it skipped the item.

Requirement: Planned long title stops before model work

The implement job SHALL leave out a Planned item whose title summary is over the limit before it makes any model request.

Scenario: Planned item with a long title

  • WHEN The implement job judges a Planned item with a 70-character summary.
  • THEN The item is left out with the title reason and the model client records no request.

Requirement: Inbox lists a long-titled item

devops roadmap inbox SHALL list an open item even when its title summary is over the limit.

Scenario: Inbox with an over-limit title

  • WHEN An open item has a 70-character summary.
  • THEN The inbox output includes the item.

Requirement: Missing plan title skips a Planned item

The repair pass SHALL skip a Planned item when its plan pull request title is missing or invalid, and SHALL make no model call.

Scenario: Planned item without a usable plan title

  • WHEN A Planned item has no plan pull request title that yields a valid summary.
  • THEN The pass leaves the title unchanged, comments the reason, and the model client records no request.

Existing Tool Considered

No check has run. No open maintained tool shortens GitHub issue titles. amannn/action-semantic-pull-request only checks a title in CI. The repository builds the repair itself: about 60k tokens to build, 20k to keep and fix, and 3 days.

Key questions

  • Which open maintained tool covers the title repair?: No alternatives check has run. No open maintained tool shortens GitHub issue titles. amannn/action-semantic-pull-request only checks a title. The repository builds the repair itself. (best practice) [sources: src/devops_cli/roadmap/pull_form.py, .github/workflows/pr-title.yml]
    • Rejected: Adopt amannn/action-semantic-pull-request. It checks a title in CI and cannot rewrite an issue title.
    • Chosen: Build the repair in devops-cli. The repository already holds the rule and the GitHub client.
    • Rejected: Cut titles with a shell script. A cut text breaks words and the type or scope.
  • Which job shortens the titles of open items, and which issues does it scan?: Add devops roadmap retitle with a dry run by default and --confirm to write. Run it as a model-lane row. Scan open issues with a priority/* label. (best practice) [sources: CONTEXT.md, src/devops_cli/roadmap/stage.py, src/devops_cli/roadmap/implement.py]
    • Chosen: Separate retitle command and Service row. It repairs items without waiting for the stage or implement job.
    • Rejected: Add the repair to the stage job. The stage job sees Ready items only and leaves out Planned items.
    • Rejected: Add the repair to the implement job. The implement job reaches the title check after it spends tokens.
    • Rejected: Scan all open issues. Candidates have no priority/* label and intake handles them.
  • What is the source of the short summary for a Planned item?: Use the summary of its plan pull request title. Strip docs(openspec): plan # and validate the rest with title_problems. Make no model call. (best practice) [sources: src/devops_cli/roadmap/stage_change.py, src/devops_cli/roadmap/pull_form.py, docs/roadmap/plan-check.md]
    • Chosen: Plan pull request title. STAGE_SUMMARY_MAX_CHARS bounds it, so it needs no model call.
    • Rejected: Model call. It costs tokens and can change a summary that already exists.
    • Rejected: Cut the issue title. pull_form.py never cuts a text.
  • How does the repair pass shorten an item with no plan?: Ask the background model once for a summary only. Validate the reply with title_problems and retry once. If no valid summary returns, leave the title and comment the reason. (best practice) [sources: src/devops_cli/roadmap/pull_form.py, CONTEXT.md]
    • Chosen: Model call with validation. The item needs a summary that passes the rule, and a cut text is refused.
    • Rejected: Cut the title at 60 characters. A cut ends mid-word and can break the type or scope.
    • Rejected: Leave the item unchanged. The item stays blocked from staging and delivery.
  • How does the repair pass avoid overwriting a person's title edit?: Record the title and the job comment ID in the issue job record. Before a write, skip the item when a person renamed it after that comment. (best practice) [sources: CONTEXT.md, docs/adr/0002-roadmap-jobs-act-as-a-machine-account.md]
    • Chosen: Timeline rename events and job record. It tells a person's edit from the job's own edit.
    • Rejected: Always write the short title. It reverts a person's edit.
    • Rejected: Compare only the current title. The job cannot tell who made the change.
  • Where does intake enforce the summary limit?: Call title_problems on the candidate title before any write. Refuse with the existing form_summary_long message that names the length and the limit. (best practice) [sources: src/devops_cli/roadmap/pull_form.py, CONTEXT.md]
    • Chosen: Reuse title_problems. One module holds the rule and the message.
    • Rejected: Add a second length check in intake. Two rules can drift.
    • Rejected: Let the stage job refuse it. The item already costs intake and refinement tokens.
  • Where does the implement job refuse a long Planned title?: At the start of _planned_target, before it reads the plan or makes a model call. Return the first title_problems result as the LeftOut reason. (best practice) [sources: src/devops_cli/roadmap/implement.py, src/devops_cli/roadmap/pull_form.py]
    • Chosen: At the start of _planned_target. The job stops before any model request.
    • Rejected: At _publish. The job has already spent its tokens.
    • Rejected: In the retitle job only. A Planned item can still reach implement before the repair.
  • What does the repair pass do when a Planned item has no usable plan pull request title?: Skip the item and comment the reason. Make no model call, because the issue states no model call for a Planned item. (best practice) [sources: CONTEXT.md, src/devops_cli/roadmap/stage_change.py]
    • Chosen: Skip and report. It keeps the no-model-call rule and makes the gap visible.
    • Rejected: Fall back to the model. It breaks the no-model-call rule for Planned items.
    • Rejected: Cut the title. A cut text is refused.

Fit

Fits in one pull request.

Suspected block

None.

Dependencies

None.

Activity

  1. added
    source/agent
    type/bug
    scope/roadmap
    status/new
    value/high
    effort/medium
    on Nov 4, 2026
  2. dan-petty commented on Nov 4, 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: P1-High. Delivery of 18 Ready items and 34 Planned items is blocked until titles are fixed by a person.
    • Value: High. Unblocks delivery of many roadmap items that are currently stuck behind the title limit.
    • Effort: Medium. Requires intake validation, a repair job with dry-run and confirm, a _planned_target guard, inbox listing, and six tests.
    • Related: fix(roadmap): the stage job refuses a summary over the title limit #3369, which asks for a different change. Both deal with the 60-character title limit in the roadmap pipeline; #3369 adds the gate check, the candidate adds intake refusal and a repair job that shortens existing titles.
  3. added
    priority/p1-high
    on Nov 4, 2026
  4. added
    status/ready
    and removed
    status/new
    on Nov 4, 2026
  5. devops-cli-service commented on Nov 4, 2026

    @devops-cli-service
    Contributor

    Status set to Ready at 67d3f47 (see proposed design in issue body).

  6. added
    owner/agent
    status/in-progress
    status/in-review
    and removed
    status/ready
    status/in-progress
    on Nov 4, 2026
  7. removed
    status/in-review
    owner/agent
    on Nov 4, 2026
  8. devops-cli-service commented on Nov 5, 2026

    @devops-cli-service
    Contributor

    Live since 2026-11-05 00:12 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/roadmapsource/agenttype/bugvalue/high

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions