Skip to content

refactor(roadmap): remove the dead plan and review step classes #4036

Closed

Description

@dan-petty

Problem

StepClass (implement_step.py) has four members: PLAN, EDIT, REPAIR and REVIEW. Only EDIT (the default of run_step) and REPAIR (the fix step) have a reader. grep -rn 'StepClass' src tests finds no use of PLAN or REVIEW.

The tuple CONST_ROADMAP_IMPLEMENT_STEP_CLASSES (constants.py, line 3231) and the default ladder of RoadmapImplementConfig (settings.py) still list plan and review. The example ConfigMap (k8s/devops/configmap.example.yaml, lines 120 and 123) sets a tier for each.

A dead class is a setting that a person can change with no effect. #3049 (open) adds the class review back when it builds the review step.

Expected

Remove these dead names:

  • PLAN and REVIEW from StepClass.
  • plan and review from CONST_ROADMAP_IMPLEMENT_STEP_CLASSES.
  • The two lines from the example ConfigMap.

Change the description of the setting roadmap.implement.ladder (settings.py), which lists the four classes. Regenerate docs/ENV_VARS.md and docs/CONFIGURATION.md with uv run devops docs generate.

Change the test tests/config/test_settings.py (lines 89 and 97 use the keys plan and review). Change the requirement in openspec/specs/roadmap-service-deployment/spec.md (line 53): "the four step classes have a ladder" becomes "the two step classes have a ladder".

Rollout rule. The validator refuses a ladder key that is not a step class (_check_ladder). The live ConfigMap names plan and review if it follows the example. Remove both keys from the live ConfigMap in the same deploy. Show the diff first. This change adds no shim.

Out of scope: a cap, a timeout, or a guard for a missing context_window. The deployed ConfigMap already sets context_window for analysis, implement and verification.

Acceptance criteria

  • uv run pytest tests/roadmap/implement/test_roadmap_implement_step_classes.py -k exactly_edit_and_repair - StepClass has exactly the members EDIT and REPAIR.
  • uv run pytest tests/roadmap/implement/test_roadmap_implement_step_classes.py -k ladder - the constant, the default ladder and the example ConfigMap ladder hold exactly edit and repair. A ladder with the key plan or review is refused with a message.
  • ! grep -nE '^\s+(plan|review):' k8s/devops/configmap.example.yaml && uv run devops docs generate --check - the example ConfigMap names no dead class and the generated documents are up to date (the grep part fails today).

Every command above fails on the unchanged code. The pull request cites the fail-to-pass run (devops ci fail-to-pass --base <ref>).

Feasibility

I read these files at origin/main: implement_step.py (StepClass, _ladder_tiers, run_step, run_fix_step), constants.py (line 3231), settings.py (ladder, _check_ladder), k8s/devops/configmap.example.yaml, tests/config/test_k8s_devops_runtime.py and the spec roadmap-service-deployment. I did not run the code.

I did not read the live ConfigMap, so I cannot say if it names the two keys. The rollout rule covers both cases. tests/config/test_k8s_devops_runtime.py (line 187) compares the ladder keys with the constant, so it follows the constant.

Existing tool considered

None needed. The change removes code.

Cost

Build: about 25k tokens and 1.5 h. Keep: about 1k tokens per quarter. Fix: about 5k tokens and 0.3 h.

Related

Part of #3027. #3049 (adds the class review back when it builds the review step), #3060 (the ladder).

Activity

  1. added
    source/agent
    type/refactor
    scope/roadmap
    status/new
    value/low
    effort/low
    on Nov 7, 2026
  2. dan-petty commented on Nov 7, 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/refactor. The refactor prefix of the title gives the type.
    • Scope: scope/roadmap. The (roadmap) scope of the title gives the scope.
    • Priority: P3-Low. Removing dead code has no user-facing effect and no urgency.
    • Value: Low. The change cleans up dead names but does not alter user-visible behaviour.
    • Effort: Low. The work removes a few enum members, a constant entry, config lines, and updates docs and tests.
    • Related: feat(roadmap): each repair round changes the strategy of a step #3569, which asks for a different change. Both touch the roadmap implement step ladder, but #3569 changes repair round strategy while the candidate removes dead step class members.
  3. added
    priority/p3-low
    on Nov 7, 2026
  4. added
    owner/agent
    status/in-progress
    status/in-review
    and removed
    status/new
    status/in-progress
    on Nov 7, 2026
  5. removed
    status/in-review
    owner/agent
    on Nov 7, 2026
  6. devops-cli-service commented on Nov 7, 2026

    @devops-cli-service
    Contributor

    Live since 2026-11-07 22:00 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/p3-lowscope/roadmapsource/agenttype/refactorvalue/low

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions