Skip to content

test(roadmap): replay the defects whose gates exist now #3208

Closed

Description

@dan-petty

Problem or Motivation

devops roadmap eval stage --replay on main (0.44.0) lists defects that "wait for a gate" for gates that have since merged: ignores_existing_code 23 (#3012), verify_form 12 (#3015), spec_delta_wrong 24 (#3013) and task_order 8 (#3017). That is 67 of 299 labeled defects. The checks exist inside check_proposal now, but PENDING_GATES in stage_eval_gates.py still lists the types, and the case.json fixtures mark most of those defects pending. The replay therefore says "every gate refuses what it must refuse" while it measures nothing for a fifth of the defects. The merged changes moved only the few defects that their own tests needed (for example the plan of #2977 for spec_delta_wrong). A change to a gate cannot state a before and after score for the rest.

Proposed Solution & Architectural Design

  • For each type in PENDING_GATES whose check now exists, run the replay with the gate set to paths (or the right gate), and mark each defect CAUGHT or MISSED. A defect the check cannot catch from a recorded plan (the check needs the live staged tree or a model) gets the gate none, with a note, not pending.
  • Remove the types from PENDING_GATES once none of their defects waits. The test that fails when "a defect waits for a gate that exists now" then covers them.
  • Print the count of caught and missed defects for each type in the replay report, and the share of all 299 defects that the gates judge. Today it is 60 of 299.
  • Keep the good plans passing: every gate must still accept the 3 good plans.
  • Do not invent plans. A recorded plan.json stays as it was; only the labels of defects change.

Open questions for the refine step: which defects of ignores_existing_code and task_order can a recorded plan show without the tree (the facts file holds a thinned tree, so some cannot); and whether the gate for verify_form should be separate from paths, because check_proposal runs all the rules as one gate.

Target Subsystem

src/devops_cli/roadmap/stage_eval_gates.py, tests/fixtures/roadmap_eval/stage/*/case.json, tests/roadmap/test_roadmap_stage_eval_gates.py.

Existing Tool Considered

The replay already exists; this issue only updates labels and the pending list. No tool relabels fixtures. Cost to build: about 40k tokens and 2 hours, mostly to review the replay result for each type. To keep: nothing new.

Related: #3012, #3013, #3015, #3017, #3019, and the issue to score the pipeline with a cloud model (test(roadmap): score the stage pipeline with a cloud model first).

Activity

  1. added
    type/test
    scope/roadmap
    status/new
    value/medium
    effort/low
    on Nov 2, 2026
  2. devops-cli-service commented on Nov 2, 2026

    @devops-cli-service
    Contributor

    Intake placed this item to the backlog: intake puts every new item in the backlog. A person plans the milestones.

    • Type: type/test. The test prefix of the title gives the type.
    • Scope: scope/roadmap. The (roadmap) scope of the title gives the scope.
    • Priority: P2-Medium. The replay reports 67 of 299 defects as waiting for gates that already exist, which misleads the team but does not block production.
    • Value: Medium. Accurate replay results let the team trust the gate coverage numbers and track regressions per defect type.
    • Effort: Low. The body estimates about 2 hours and 40k tokens, mostly reviewing replay output per type.
    • Related: test(roadmap): a golden set of plan cases and a scoring command for the stage job #3028, which asks for a different change. Both work on the stage eval replay under tests/fixtures/roadmap_eval/stage/, but #3028 creates the golden set and scoring command while this candidate updates the replay labels and PENDING_GATES list.
  3. removed
    status/new
    on Nov 2, 2026
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/roadmaptype/testvalue/medium

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions