Skip to content

feat(roadmap): a Service row runs the retitle job #3535

Closed

Description

@dan-petty

Problem

devops roadmap retitle (#3486) shortens the long title summary of open items. No Service row runs it. A person or an agent must run it by hand, so a new long title waits until someone runs the command.

Expected

A model-lane row retitle in devops roadmap run runs the job on a schedule, with the limit DEFAULT_ROADMAP_RETITLE_LIMIT, and the Service records its last success like the other rows.

Acceptance criteria

  • A test: the row is due on a first run and after its interval.
  • A test: the row runs plan_retitle and apply_retitle with the background model.

Existing tool considered

The rows of src/devops_cli/roadmap/run.py already schedule the other jobs. This item adds one row in the same way.

Related

Related: #3486

Proposed design

Problem statement

No Service row runs devops roadmap retitle, so long title summaries wait for a person. The stage job leaves out items whose title summary is too long, and a live run left out 34 Ready items for that rule. Add a model-lane retitle row that runs the job on a schedule with DEFAULT_ROADMAP_RETITLE_LIMIT and records its last success.

Acceptance criteria

Requirement: Model lane row

The model lane SHALL hold a row named retitle.

Scenario: Model lane table

  • WHEN MODEL_LANE_ROWS is read.
  • THEN It holds a row named retitle.

Requirement: Default due table

DEFAULT_DUE_TABLE SHALL include the retitle row.

Scenario: Default table

  • WHEN DEFAULT_DUE_TABLE is built.
  • THEN The table holds a row named retitle.

Requirement: Retitle interval default

src/devops_cli/config/defaults.py SHALL define DEFAULT_ROADMAP_RETITLE_INTERVAL_MINUTES as 61.

Scenario: Default interval

  • WHEN The defaults module is read.
  • THEN DEFAULT_ROADMAP_RETITLE_INTERVAL_MINUTES is 61.

Requirement: Retitle due schedule

The retitle row SHALL be due on its first run and after DEFAULT_ROADMAP_RETITLE_INTERVAL_MINUTES.

Scenario: First run and interval

  • WHEN The row has no recorded success, or its last success is at least DEFAULT_ROADMAP_RETITLE_INTERVAL_MINUTES old.
  • THEN run_due_jobs reports retitle as due.

Requirement: Retitle runner calls

The retitle runner SHALL call plan_retitle with the background model and DEFAULT_ROADMAP_RETITLE_LIMIT, then call apply_retitle with the plan.

Scenario: Background model and default limit

  • WHEN The retitle row runs.
  • THEN plan_retitle receives the background model and limit=DEFAULT_ROADMAP_RETITLE_LIMIT, and apply_retitle receives the returned plan.

Requirement: Retitle success record

The Service SHALL record the retitle row's last success in schedule.json.

Scenario: Success written

  • WHEN The retitle row completes without error.
  • THEN schedule.json holds a retitle entry with the round time.

Requirement: Stub table flag

build_stub_table SHALL omit the retitle row unless a retitle stub or include_retitle=True asks for it.

Scenario: Default stub table

  • WHEN build_stub_table() runs with no retitle stub.
  • THEN The table has no retitle row.

Existing Tool Considered

No alternatives check has run. The need is a row in this repository's due table, so no open, maintained tool covers it; the project's own JobRow table is the only fit. Building the row, its default interval and its tests costs about 6,000 tokens to build, 1,500 tokens to keep, and 3,000 tokens to fix a regression, with about half a day of elapsed time.

Key questions

  • Which lane holds the retitle row?: The model lane. The row calls the background model, and MODEL_LANE_ROWS holds the model-bound rows. (best practice) [sources: src/devops_cli/roadmap/run.py, CONTEXT.md]
    • Chosen: Model lane. It calls the background model, and MODEL_LANE_ROWS holds the model-bound rows.
    • Rejected: Status lane. Its rows call no model, and the retitle job needs the background model.
    • Rejected: Triage lane. It runs intake on the fast triage model only.
  • Where in the model lane does the retitle row run?: After refine and before stage, so stage reads the shortened titles in the same round. (best practice) [sources: src/devops_cli/roadmap/run.py, src/devops_cli/roadmap/stage.py]
    • Chosen: Before stage. stage applies a title rule, so retitle must write titles before stage reads them.
    • Rejected: After stage. It leaves long titles for the next stage round.
    • Rejected: After alternatives. It delays the fix by one stage interval and gives no same-round benefit.
  • What interval does the retitle row use?: Set DEFAULT_ROADMAP_RETITLE_INTERVAL_MINUTES to 61 minutes. (best practice) [sources: src/devops_cli/config/defaults.py, src/devops_cli/roadmap/run.py]
    • Chosen: 61 minutes. It bounds the title-rule delay to about one hour and avoids a model run every stage interval.
    • Rejected: 37 minutes, the stage interval. It adds a model-bound run every 37 minutes and costs more than the delay it removes.
    • Rejected: 719 minutes, the alternatives interval. It can block Ready items for almost 12 hours after the first 25.
  • Which model does the retitle runner pass to plan_retitle?: The background task model from get_task_model("background"). [sources: CONTEXT.md, src/devops_cli/roadmap/run.py]
  • What limit does the retitle runner pass to plan_retitle?: DEFAULT_ROADMAP_RETITLE_LIMIT, which is 25. [sources: src/devops_cli/config/defaults.py:737, src/devops_cli/roadmap/retitle.py:287]
  • Does the retitle row need a clone?: No. plan_retitle and apply_retitle take the store, and neither takes a clone path. [sources: src/devops_cli/roadmap/retitle.py:277, src/devops_cli/roadmap/retitle.py:327]
  • How does build_stub_table handle the new retitle row?: Add an include_retitle flag that defaults to "retitle" in runners, so existing stub tables keep their row set. (best practice) [sources: src/devops_cli/roadmap/run.py]
    • Chosen: Add include_retitle. It follows the other optional rows and keeps existing test tables unchanged.
    • Rejected: Include by default. It adds a row to every stub table and breaks tests that assert the row set.
    • Rejected: Do not change the helper. The new row would leak into every stub table.

Fit

Fits in one pull request.

Suspected block

None.

Dependencies

None.

Activity

  1. added
    source/agent
    type/feature
    scope/roadmap
    status/new
    value/medium
    effort/low
    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/feature. The feat prefix of the title gives the type.
    • Scope: scope/roadmap. The (roadmap) scope of the title gives the scope.
    • Priority: P2-Medium. It removes manual toil for long titles but does not block delivery or fix a defect.
    • Value: Medium. It automates a recurring manual step so new long titles are handled without a person running the command.
    • Effort: Low. The body states it adds one row in the same way as existing rows in run.py.
    • Related: fix(roadmap): a long item title gets short before a job needs it #3486, which asks for a different change. Both concern the retitle job, but #3486 delivers the command and the candidate adds the Service row that runs it on a schedule.
  3. added
    priority/p2-medium
    on Nov 4, 2026
  4. dan-petty commented on Nov 5, 2026

    @dan-petty
    OwnerAuthor

    Evidence for this item, measured on 2026-11-05 at about 14:24Z. A live stage selection left out all 69 Ready items:

    • 34 for the title rule
    • 23 for the Planned limit
    • 7 for a dependency
    • 4 for a claim
    • 1 for a pushed branch

    The title rule comes before the Planned limit in the stage rules (src/devops_cli/roadmap/stage.py, rule list near line 414). So a lower Planned count frees none of those 34 items until this row runs. The implement job has the same rule: devops roadmap explain 3331 names it for a Planned item.

    The owner asked on 2026-11-05 that routine tasks run with no person.

  5. added
    status/ready
    and removed
    status/new
    on Nov 6, 2026
  6. devops-cli-service commented on Nov 6, 2026

    @devops-cli-service
    Contributor

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

  7. added
    status/in-progress
    and removed
    status/ready
    on Nov 6, 2026
  8. added 2 commits that reference this issue on Nov 6, 2026
  9. added
    status/in-review
    and removed
    status/in-progress
    on Nov 6, 2026
  10. removed
    status/in-review
    on Nov 6, 2026
  11. devops-cli-service commented on Nov 6, 2026

    @devops-cli-service
    Contributor
  12. devops-cli-service commented on Nov 6, 2026

    @devops-cli-service
    Contributor

    Live since 2026-11-06 19:47 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/lowpriority/p2-mediumscope/roadmapsource/agenttype/featurevalue/medium

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions