Repository navigation
Description
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_retitleandapply_retitlewith 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_ROWSis 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_TABLEis 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_MINUTESis 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_MINUTESold. - THEN
run_due_jobsreportsretitleas 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
retitlerow runs. - THEN
plan_retitlereceives the background model andlimit=DEFAULT_ROADMAP_RETITLE_LIMIT, andapply_retitlereceives 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
retitlerow completes without error. - THEN
schedule.jsonholds aretitleentry 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 noretitlestub. - THEN The table has no
retitlerow.
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
retitlerow?: The model lane. The row calls the background model, andMODEL_LANE_ROWSholds 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_ROWSholds 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.
- Chosen: Model lane. It calls the background model, and
- Where in the model lane does the
retitlerow run?: Afterrefineand beforestage, sostagereads 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.stageapplies a title rule, soretitlemust write titles beforestagereads 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.
- Chosen: Before
- What interval does the
retitlerow use?: SetDEFAULT_ROADMAP_RETITLE_INTERVAL_MINUTESto 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
retitlerunner pass toplan_retitle?: The background task model fromget_task_model("background"). [sources: CONTEXT.md, src/devops_cli/roadmap/run.py] - What limit does the
retitlerunner pass toplan_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
retitlerow need a clone?: No.plan_retitleandapply_retitletake 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_tablehandle the newretitlerow?: Add aninclude_retitleflag 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.
- Chosen: Add
Fit
Fits in one pull request.
Suspected block
None.
Dependencies
None.
Activity
dan-petty commentedon Nov 4, 2026
Intake placed this item to the backlog: intake puts every new item in the backlog. A person plans the milestones.
featprefix of the title gives the type.(roadmap)scope of the title gives the scope.It removes manual toil for long titles but does not block delivery or fix a defect.It automates a recurring manual step so new long titles are handled without a person running the command.The body states it adds one row in the same way as existing rows in run.py.Both concern the retitle job, but #3486 delivers the command and the candidate adds the Service row that runs it on a schedule.dan-petty commentedon Nov 5, 2026
Evidence for this item, measured on 2026-11-05 at about 14:24Z. A live stage selection left out all 69 Ready items:
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 3331names it for a Planned item.The owner asked on 2026-11-05 that routine tasks run with no person.
devops-cli-service commentedon Nov 6, 2026
Status set to Ready at be8d18a (see proposed design in issue body).
docs(openspec): plan #3535 a Service row runs the retitle job
docs(openspec): archive the change for #3535
devops-cli-service commentedon Nov 6, 2026
Released in v0.71.0: https://github.com/dan-petty/devops-cli/releases/tag/v0.71.0
devops-cli-service commentedon Nov 6, 2026
Live since 2026-11-06 19:47 UTC