Skip to content

feat(roadmap): retitle rules run as a sweep step with no model #5507

Open

Description

@dan-petty

Problem or Motivation

The retitle row runs in the model lane of the Service (61 min for each pass). Its rule part needs no model: a title summary over 60 characters, a type that is not listed, or a body with no required section of the issue form. ADR 0021 section 2 says that the rule part becomes a sweep step. The approved pipeline split design (tracker #5482) moves the model rewrite of the summary into intake.

Proposed Solution & Architectural Design

  • Add src/devops_cli/roadmap/steps/retitle.py: the rule checks as a sweep step, with no pod, no model and a limit under the sweep period. It writes retitle.fault.
  • Keep the rules of fix(roadmap): retitle keeps a person's unlisted-type title #4620 (a title of a person with a type that is not listed stays).
  • Until feat(roadmap): run the reconcile sweep on a cluster schedule #4574, a status-lane row runs the step. The router scoped sweep runs it on issues opened or edited.
  • Intake reads retitle.fault and writes the new title summary in the triage model call that it already makes.
  • Delete the model-lane row retitle (no shim). Its settings leave the ConfigMap before the image rolls.
  • Service measures: faults found and fixed, the lag from an edit to the fix, and failures that are bugs (target 0).

Target Subsystem

Roadmap Service and roadmap jobs (src/devops_cli/roadmap/steps/, the intake job).

Acceptance Criteria

  • Test first: a table test gives the fault of each rule. The test fails on the base.
  • A test: intake writes a new summary only when retitle.fault is set.
  • A test: the model lane has no row retitle.
  • A test: --dry-run sends 0 requests.
  • Live proof: after the merge and the release, the step runs as the App on the issues opened in the last 7 days. A comment on this issue gives the result lines and the lag of each fix.

Existing Tool Considered

The issue forms in .github/ISSUE_TEMPLATE/ give the required sections. No open tool checks this title form. Build: 100,000 to 300,000 agent tokens and 0.5 day.

Related

Tracker #5482, Phase 5. Depends on #5504, #5168 (RoadmapJob.RETITLE) and #4620 (the same rules). #4567 (triage unit), #3535 (closed).

Source: #5482

Alternatives check of 2026-12-02: partly.
Tool: issue-ops/validator (https://github.com/issue-ops/validator), MIT, last activity 2026-06-28, maintained.
Reason: Searches found no tool that runs the title and type rules as a sweep step. issue-ops/validator checks the issue-form body rules, so it covers only the required-section part, and it writes comments, not a retitle.fault mark.

Covers:

  • Required issue-form input missing or empty
  • Invalid input type, dropdown and checkbox selection rules
  • Custom JavaScript validators for extra logic

Lacks:

  • No 60-character limit on the title summary
  • No allowed-type list check
  • Writes an issue comment, not a retitle.fault mark
  • No sweep step, candidate limit or dry-run mode

Proposed design

Problem statement

The retitle row runs in the model lane and takes 61 minutes for each pass. Its rule checks need no model. The change moves the rule checks to a sweep step and lets intake rewrite the title in its triage model call. The old row and its ConfigMap settings leave in the same pull request. A person gives the live proof after the release.

Acceptance criteria

Requirement: Rule faults

The retitle rule step SHALL write one retitle.fault mark for each item that breaks a rule and no mark for an item that breaks none.

Scenario: Table of rule cases

  • WHEN A table test runs the step on four items: an over-long summary, an unlisted type, a missing required section, and no fault.
  • THEN The step writes the named fault for the first three items and writes no fault for the fourth.

Requirement: Dry run

The retitle rule step MUST send no request with --dry-run and MUST create no pod.

Scenario: Dry run of the step

  • WHEN The step runs with --dry-run on the sweep listing against a recorded GitHub client.
  • THEN The client records 0 requests, the step creates no Job, and it exits 0 with one result line.

Requirement: Due table rows

The due table MUST hold no retitle row in the model lane and MUST hold a status-lane row that runs the retitle step.

Scenario: Rows of the due table

  • WHEN tests/roadmap/test_roadmap_run_due_table.py reads the rows of the model lane and the status lane.
  • THEN No model-lane row names retitle, and the status lane holds the row that runs the retitle step.

Requirement: Scoped sweep

The router scoped sweep MUST make the retitle step due on issues opened or edited.

Scenario: Scoped sweep of an issue event

  • WHEN tests/roadmap/test_roadmap_run_webhook_keys.py sends an issues delivery with opened or edited.
  • THEN The retitle row is due.

Requirement: Intake rewrites faulted title

Intake SHALL write a new title summary only when the item holds a retitle.fault mark for a title rule.

Scenario: Title fault and body fault at intake

  • WHEN The intake test runs one item with a title-rule retitle.fault, one item with a body-rule retitle.fault, and one item without a fault.
  • THEN The triage model call gets the title of the title-rule item only, and the other two items keep their titles.

Requirement: Person title stays

The step MUST leave a title that a person changed after the last job comment.

Scenario: Person edit after the last comment

  • WHEN An item with an unlisted type holds a person's title edit after the last job comment.
  • THEN The step writes retitle.skipped with the reason and writes no retitle.fault.

Requirement: Required sections from issue forms

The step SHALL read the required sections from the issue forms of the repository that holds the issue.

Scenario: Issue form with a required field

  • WHEN The repository of the issue has an issue form with a required field and the issue body lacks that section.
  • THEN The step writes a retitle.fault that names the missing section.

Requirement: Candidate limit

The retitle rule step MUST check at most the candidate limit of one sweep pass and MUST leave the rest to the next pass.

Scenario: More candidates than the limit

  • WHEN A test gives the step a listing with more candidates than the limit.
  • THEN The step checks only the limit and writes the marks for those items; a second pass with the same listing checks the rest.

Requirement: ConfigMap keys removed

The ConfigMap MUST hold no setting of the removed retitle job.

Scenario: k8s check of the ConfigMap

  • WHEN uv run devops ci --check --only k8s runs on the change.
  • THEN The check passes on k8s/devops/configmap.example.yaml.

Requirement: Settings model refuses removed keys

The settings model MUST hold no key of the removed retitle job.

Scenario: Unknown key at load

  • WHEN tests/config/test_unknown_config_keys.py loads a config that holds a retitle key.
  • THEN The load fails and names the key as unknown.

Requirement: Measures of the step

The Service SHALL record the faults found, the faults fixed, the lag from an edit to the fix, and the failures that are bugs.

Scenario: Metrics of two faults and one fix

  • WHEN The metrics test runs the step on two faulted items and on one later fix.
  • THEN The instruments record 2 faults found, 1 fixed, and the lag of the fix; the bug-failure counter is 0.

Requirement: No retitle command shim

The old devops roadmap retitle command MUST be removed.

Scenario: Command list after the change

  • WHEN A test lists the roadmap commands.
  • THEN devops roadmap retitle is absent.

Requirement: Step command

The retitle step MUST get one command in the step group.

Scenario: Step command present

  • WHEN A test lists the commands of the step group.
  • THEN The retitle step command is present.

Requirement: Pending a person after the merge

A person MUST remove the live retitle keys from the ConfigMap before the new image rolls and MUST run the released retitle step as the App on the issues opened in the last 7 days.

Scenario: Release and live proof

  • WHEN A person deploys the release with the new image and runs the retitle step as the App on the issues opened in the last 7 days.
  • THEN The live ConfigMap holds no retitle key before the image rolls, the Service starts with no unknown-key error, and a comment on the issue gives each result line and the lag of each fix.

Existing Tool Considered

The alternatives check of 2026-11-26 in the issue body gives partly for issue-ops/validator (https://github.com/issue-ops/validator). The check lists what the tool covers and lacks. The proposal keeps the body-section check idea but writes retitle.fault with the rule name for intake, adds the title-length and unlisted-type rules, limits each sweep pass, sends no request with --dry-run, and skips a person's title edit. The issue gives the written cost for the code that the tool lacks: 100,000 to 300,000 agent tokens and 0.5 day.

Key questions

  • Which part of the retitle row moves to the sweep, and which part stays a model call?: The rule checks move to a sweep step with no pod and no model. Intake writes the new title summary in the triage model call that it already makes. The model-lane row retitle goes with no shim. (best practice) [sources: docs/adr/0021-the-roadmap-service-is-a-webhook-router-cluster-pods-run-the-roadmap-jobs-and-valkey-holds-their-shared-state.md, CONTEXT.md, src/devops_cli/roadmap/run.py]
    • Chosen: Sweep step for the rules and intake for the rewrite. ADR 0021 section 2 puts a short rule step in the sweep and the rewrite in the model call that intake makes.
    • Rejected: Keep the retitle job in the model lane. The rule checks need no model, and the row costs 61 minutes for each pass.
    • Rejected: A step job with a pod for the rule checks. A pod for each tick costs more than the work, so a short step runs in the sweep.
  • How does the step pass a fault to intake?: The step writes the mark retitle.fault in the item's job record and names the rule. Intake reads the mark before its triage model call. It rewrites the title only for a title rule. The next pass clears the mark when the fault is gone. (best practice) [sources: src/devops_cli/roadmap/job_result.py, src/devops_cli/roadmap/stores/store.py, tests/roadmap/test_roadmap_retitle_skip.py]
    • Chosen: A mark with the rule name in the item's job record. The store already holds the mark retitle.skipped of the same job, and intake reads the record before its model call.
    • Rejected: An issue label. Labels hold the item fields, and a fault is no roadmap field.
    • Rejected: An issue comment. A comment notifies people, and intake cannot tell the fault comment from the others.
  • Which rows run the step until feat(roadmap): run the reconcile sweep on a cluster schedule #4574 merges?: A status-lane row runs the step in the Service poll. The router scoped sweep also runs it on issues opened or edited. (best practice) [sources: CONTEXT.md, docs/adr/0017-each-subscribed-webhook-event-runs-the-update-scoped-to-it.md, src/devops_cli/roadmap/run.py, tests/roadmap/test_roadmap_run_webhook_keys.py]
    • Chosen: Status-lane row plus the router scoped sweep. The poll is the source of truth until feat(roadmap): run the reconcile sweep on a cluster schedule #4574, and the scoped update cuts the lag of an edit.
    • Rejected: Status-lane row only. An edit then waits for the next poll.
    • Rejected: Router scoped sweep only. A missed webhook then delays the fault until no poll finds it.
  • Where does the step get the required sections of the issue form?: From the issue forms of the repository that holds the issue, under .github/ISSUE_TEMPLATE/. A repository with no issue form gets no body check. (best practice) [sources: .github/ISSUE_TEMPLATE/bug_report.yml, src/devops_cli/roadmap/retitle.py]
    • Chosen: The issue forms of the repository of the issue. The Service manages many repositories, and each repository holds its own forms.
    • Rejected: The issue forms of devops-cli. A managed repository with other forms then gets a fault that it cannot fix.
    • Rejected: A fixed list of sections. The list goes stale each time a repository changes its form.
  • How does one pass stay under the 5-minute sweep period?: The sweep passes the candidates that it read, and the step takes at most the limit that fits the period. It stops at the limit and leaves the rest to the next sweep. GitHub state is its first marker, so the next pass repeats no work. (best practice) [sources: CONTEXT.md, src/devops_cli/roadmap/run.py]
    • Chosen: A limit per pass on the listing of the sweep. The sweep period bounds the run, and the next pass continues from the GitHub state.
    • Rejected: No limit. A pass over many items overruns the 5-minute period and delays the next sweep.
    • Rejected: One item for each pass. The lag from an edit to the fix grows with the number of items.
  • Which settings leave the ConfigMap, and in which order?: The retitle settings leave k8s/devops/configmap.example.yaml and src/devops_cli/config/settings.py in this pull request. The deploy removes the live keys before the image rolls, because the new image refuses an unknown key. (best practice) [sources: k8s/devops/configmap.example.yaml, src/devops_cli/config/settings.py:927, tests/config/test_unknown_config_keys.py]
    • Chosen: Remove the keys from the ConfigMap first, then roll the image. The new image refuses an unknown key, so a live key stops the Service.
    • Rejected: Keep the keys in the ConfigMap. The load then fails on the unknown key.
    • Rejected: Roll the image first. The new image reads a ConfigMap that still holds the removed keys.
  • Which measures does the Service record?: Counters of the faults found and the faults fixed; a histogram of the lag from the edit to the fix; and a counter of the failures that are bugs, with the target 0. (best practice) [sources: src/devops_cli/telemetry/instruments.py, src/devops_cli/roadmap/job_result.py]
    • Chosen: Instruments in src/devops_cli/telemetry/instruments.py. The Service metrics already read this module, and the lag needs a histogram.
    • Rejected: Log lines only. A count from log lines costs a query for each reading.
  • What happens to the devops roadmap retitle command?: The step gets one command in the step group. The old model-lane retitle job command goes with the row, and no shim keeps it. (best practice) [sources: CONTEXT.md, src/devops_cli/commands/roadmap.py]
    • Chosen: A command of the step group. CONTEXT.md gives each roadmap step one module and one command, and every caller uses it.
    • Rejected: Keep devops roadmap retitle as a shim. The issue asks for no shim, and a second path to the same work drifts.
  • Which rules does the step keep?: The step keeps the rules of fix(roadmap): retitle keeps a person's unlisted-type title #4620: the limit of 60 characters on the summary, the list of allowed types, and the required sections of the issue form. A title that a person changed stays. (best practice) [sources: tests/roadmap/test_roadmap_retitle.py, tests/roadmap/test_roadmap_retitle_type.py, tests/roadmap/test_roadmap_retitle_skip.py]

Fit

Fits in one pull request.

Suspected block

None.

Dependencies

#5504, #5168, #4620

Activity

  1. added
    source/agent
    on Nov 13, 2026
  2. added
    type/feature
    scope/roadmap
    status/new
    value/high
    effort/medium
    on Nov 13, 2026
  3. dan-petty commented on Nov 13, 2026

    @dan-petty
    OwnerAuthor
  4. added
    priority/p2-medium
    on Nov 13, 2026
  5. devops-cli-service commented on Nov 17, 2026

    @devops-cli-service
    Contributor

    Alternatives check: none

    Reason: The searches returned no open, maintained tool that checks an issue title's length or type, or that a body holds the required sections of an issue form; GitHub's issue forms only enforce required fields in the form itself at creation, not on edits or API writes. The issue reaches the same conclusion, so the rule checks have to be built as the proposed sweep step.

    Tool: none found

    Lacks:

    • a tool that flags a title summary over 60 characters or a type that the allowed list does not name
    • a tool that checks an issue body for each required section of the issue form
    • a tool that writes the fault for the intake job to read and leaves a person's typed title in place

    Searches run:

    • validate GitHub issue body required sections issue template tool, results: 5
    • lint GitHub issue titles conventional commit format action, results: 5
    • probot issue title linter, results: 5
    • danger-js issue title length validation bot, results: 5
    • github action check pull request title semver commitlint, results: 5
    • issue-title-linter npm package, results: 5
    • issue forms body parser python required headings validation, results: 5
    • semantic-pull-request github action enforce title format, results: 5
    • github app enforces issue title format and required template sections, results: 5

    Checked on 2026-11-17. A person decides what this means for the item. The check changes no label and closes no issue.

  6. devops-cli-service commented on Nov 18, 2026

    @devops-cli-service
    Contributor

    Refine cannot set this item to Ready at d15dfcf while the items below stay open. The next refine round looks at the item again when they close, or when a person replies in a comment or edits the body.

  7. devops-cli-service commented on Nov 26, 2026

    @devops-cli-service
    Contributor

    The result in the alternatives block of the issue body changed. Before this check: none, no tool. A person decides what the new result means for the item.

    Searches (10)

    Tools considered:

    Searches run:

    • open source bot lint GitHub issue titles enforce type prefix allowed list, results: 5
    • GitHub Action validate issue title length and required body sections from issue template, results: 5
    • probot issue title linter conventional commit title enforcement bot, results: 5
    • action-issue-lint GitHub issue body validation issue forms required fields, results: 5
    • issue-forms-body-parser node library parse GitHub issue form required fields, results: 5
    • issue-ops validator GitHub Action validate issue body against issue form template, results: 5
    • issue-ops validator, results: 5
    • github issue form schema validation tool open source python, results: 5
    • GitHub Action check issue title character limit enforce allowed types on issue opened, results: 5
    • github action validate issue title length max characters issues event, results: 5

    Sources:

  8. devops-cli-service commented on Nov 27, 2026

    @devops-cli-service
    Contributor

    Next step: the open items close, or a person replies in a comment or edits the body. See Dependencies and Watched files in the section Proposed design of the body.

  9. devops-cli-service commented on Nov 27, 2026

    @devops-cli-service
    Contributor

    Next step: the open items close, or a person replies in a comment or edits the body. See Dependencies in the section Proposed design of the body.

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/p2-mediumscope/roadmapsource/agentstatus/newtype/featurevalue/high

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions