Skip to content

test(roadmap): hold a golden case for a verify that runs an unnamed test #3464

Closed

Description

@dan-petty

Problem or Motivation

The golden set of the roadmap stage has no case for the defect that #3427 adds a rule for: a group whose verify runs a test module that the group does not name in changes, creates or reads. DefectType in src/devops_cli/roadmap/stage_eval_cases.py has no such type, and no recorded case.json labels it. A regression of the new rule would not fail the replay, because only the unit test of form_problems checks it.

Evidence

At main 1efa0578, I applied the rule of PR #3440 and ran uv run devops ci test tests/roadmap/test_roadmap_stage_eval_gates.py. The replay refused 30 groups in 25 plans, and only the good-2491-a-refused-jwt-exchange-of-the plan was a good verdict. Examples: group 1 of 2576-a-token-that-argo-cd-refuses gives uv run devops ci test tests/test_argo_credentials.py and names no such path, and groups 1 to 5 of 2949-a-failed-alternatives-check-skips-its give uv run devops ci test tests/test_roadmap_alternatives.py and name no such path. No case.json holds a defect of this type.

Proposed Solution & Architectural Design

  1. Add VERIFY_TEST = "verify_test" to DefectType in src/devops_cli/roadmap/stage_eval_cases.py.
  2. Label one recorded case that the rule refuses, with the group, the command and the module, and record its evidence. Use gate: paths, because check_proposal holds the rule and the paths gate runs it. The case 2576-a-token-that-argo-cd-refuses is a candidate; a new reject case is the other option.
  3. Add the case path to the replay test, or keep it in the recorded set. Run uv run devops ci test tests/roadmap/test_roadmap_stage_eval_gates.py and require no missed defect.
  4. No gate code changes: an existing gate refuses the plan, and the case names the gate.

Target Subsystem

src/devops_cli/roadmap/stage_eval_cases.py, tests/fixtures/roadmap_eval/stage/, tests/roadmap/test_roadmap_stage_eval_gates.py.

Existing Tool Considered

The golden-set replay already runs every gate on every recorded plan, so the change extends it and builds no tool. Written cost: about 1,500 tokens to build, about 200 tokens per year to keep and fix, and about 1 hour elapsed.

Source: #3440

Alternatives check of 2026-11-07: not-applicable.
Class: test, no search.
Tool: none found.

Proposed design

Problem statement

The golden set of the roadmap stage has no case for a verify command that runs a test module which the group does not name. The rule of #3427 refuses that plan, and the paths gate catches it as verify_form. Only the unit test of form_problems checks the rule, so a regression of the rule does not fail the replay. The change labels the recorded case 2576-a-token-that-argo-cd-refuses with a verify_form defect and updates the replay baselines. The item adds no DefectType value and waits on #3463, which adds the membership rule.

Acceptance criteria

Requirement: No new defect type

The change SHALL add no value to DefectType for the unnamed verify test.

Scenario: The enum keeps its values

  • WHEN A test reads the values of DefectType
  • THEN No value is verify_test, and DefectType.VERIFY_FORM has the value verify_form.

Requirement: Recorded case holds the verify-form defect

The case 2576-a-token-that-argo-cd-refuses SHALL hold one verify_form defect with the gate paths.

Scenario: The case loads

  • WHEN The golden set loads the case 2576-a-token-that-argo-cd-refuses
  • THEN The case holds one verify_form defect, its where names group 1, and its message names the module tests/test_argo_credentials.py.

Requirement: Replay catches the unnamed verify test

The replay SHALL report the recorded verify_form defect as caught by the paths gate.

Scenario: The case replays

  • WHEN replay_case runs on the case 2576-a-token-that-argo-cd-refuses
  • THEN The outcome of its verify_form defect is DefectStatus.CAUGHT, and replay.failures is empty.

Requirement: Replay fails when the rule stops refusing

The replay SHALL report the defect as missed when the form rule stops refusing the unnamed verify test.

Scenario: The rule is disabled

  • WHEN A test replaces form_problems with a function that returns no problem
  • THEN The replay reports a missed verify_form defect, and replay.failures holds one failure for that defect.

Requirement: Baseline counts the new defect

The replay baseline SHALL count one more caught verify_form defect.

Scenario: The baseline runs

  • WHEN The replay runs on the whole recorded set
  • THEN The VERIFY_FORM row of by_type holds one more caught defect than the pinned value before the change, judged() holds one more caught and one more judged defect, and the replay reports no failure.

Requirement: The gate set stays the same

The change SHALL add no gate to GATES.

Scenario: The gate set is read

  • WHEN A test reads the gate names of GATES
  • THEN The gate names are the same as the gate names before the change.

Existing Tool Considered

The alternatives check of 2026-11-07 gave not-applicable (class test, no search) and found no tool. The golden-set replay of the roadmap stage covers the need: it runs every gate on every recorded plan, and the change adds one labeled case to it. The change builds no tool. Written cost: about 1,500 tokens to build, about 200 tokens per year to keep and fix, and about 1 hour elapsed.

Key questions

  • Does DefectType hold a type for the form of a verify command that runs a test module the group does not name?: Yes. DefectType.VERIFY_FORM has the value verify_form. The paths gate returns the problems of check_proposal, which holds the form checks, and the replay test of that gate uses VERIFY_FORM. The case uses this type, so the change adds no value. [sources: src/devops_cli/roadmap/stage/stage_eval_cases.py, src/devops_cli/roadmap/stage/stage_eval_gates.py, tests/roadmap/stage/test_roadmap_stage_eval_gates.py]
  • Which defect type should the unnamed verify test use?: DefectType.VERIFY_FORM. The type exists, and the paths gate catches it. The change adds no DefectType value. (best practice) [sources: src/devops_cli/roadmap/stage/stage_eval_cases.py, src/devops_cli/roadmap/stage/stage_eval_gates.py]
    • Chosen: DefectType.VERIFY_FORM. The type exists, and the paths gate already catches recorded defects of it.
    • Rejected: A new DefectType.VERIFY_TEST. It duplicates VERIFY_FORM, and it needs a new enum value, a baseline row and a coverage-set entry.
    • Rejected: DefectType.OTHER with the gate none. No gate judges it, so the replay cannot fail on the rule.
  • Which gate should the new defect name?: paths. The paths gate runs check_proposal on the recorded plan, and check_proposal holds the form rule that refuses the plan. (best practice) [sources: src/devops_cli/roadmap/stage/stage_eval_gates.py]
    • Chosen: The paths gate. It runs check_proposal, which holds the form rule that refuses the plan.
    • Rejected: The content gate. It checks placeholder texts and the build cost, not the verify form.
    • Rejected: The none gate. A gate refuses the plan, so a reviewer is not the only judge.
  • Which recorded case should hold the defect?: 2576-a-token-that-argo-cd-refuses. Group 1 gives uv run devops ci test tests/test_argo_credentials.py and names no such path, so the rule refuses the plan. (best practice) [sources: tests/fixtures/roadmap_eval/stage/2576-a-token-that-argo-cd-refuses/plan.json]
    • Chosen: The existing case 2576. It holds the refused verify command and needs one defect record.
    • Rejected: A new reject case. It adds a plan, facts and issue text that the existing case already holds.
  • Which replay baselines change when the case gains its defect?: The pinned counts in tests/roadmap/stage/test_roadmap_stage_eval_gates.py change. The VERIFY_FORM row of by_type gains one caught defect, and the counts of judged() each gain one. [sources: tests/roadmap/stage/test_roadmap_stage_eval_gates.py]
  • When can the labeled case land?: After the membership rule for the test module that a verify runs is on the default branch. stage_form.py on the default branch holds no such check, and pull request fix(roadmap): refuse a behavior verify that runs no test #5684 (item fix(roadmap): refuse a behavior group verify that runs no test #3463) adds it and is in draft. The item waits on fix(roadmap): refuse a behavior group verify that runs no test #3463. (best practice) [sources: src/devops_cli/roadmap/stage/stage_form.py]

Fit

Fits in one pull request.

Suspected block

None.

Dependencies

#3463

Activity

  1. added
    source/agent
    type/test
    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/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. It protects an existing rule from regression but does not block delivery.
    • Value: Medium. It prevents a silent gap in the golden replay that already has unit test coverage.
    • Effort: Low. Add one constant, label one case, and run the existing replay test.
    • Related: fix(roadmap): refuse a group verify that runs an unrelated test #3427, which asks for a different change. Both concern the verify gate for an unnamed test; #3427 adds the rule, the candidate adds its golden replay case.
  3. added
    priority/p2-medium
    on Nov 4, 2026
  4. added
    status/ready
    and removed
    status/new
    on Nov 4, 2026
  5. devops-cli-service commented on Nov 4, 2026

    @devops-cli-service
    Contributor

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

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

    @devops-cli-service
    Contributor

    The stage job returned the item to New. The premise of the issue does not hold at the staging commit, so the job planned no change and opened no pull request.

    Evidence:

    placeholder

  7. added
    status/new
    and removed
    status/ready
    on Nov 4, 2026
  8. dan-petty commented on Nov 4, 2026

    @dan-petty
    OwnerAuthor

    This item moves into the plan of #3427, after a plan pull request changes that plan. The labeled case must land with the rule, because a replay fails when a defect names a gate that does not refuse it yet. A comment on #3427 lists the edit.

    The new enum value of this item and of its refine block is not necessary. DefectType.VERIFY_FORM exists (src/devops_cli/roadmap/stage_eval_cases.py:83). src/devops_cli/ai/tasks/roadmap_stage_verify.md:12 defines it as a command that does not run the work of the group. The paths gate already judges 6 defects of that type. So the baselines change under VERIFY_FORM, and the (1, 0, 0) row for VERIFY_TEST goes.

    Keep this item open until that pull request merges, and then end it as not planned, with a link to the pull request. If a job already holds #3427 at that time, keep this item open as a follow-up. This item has no change folder, so no cleanup is necessary.

    The stage comment of 2026-11-04T16:48Z gave the evidence placeholder, which is no finding.

  9. 16 remaining items

  10. added
    owner/service
    status/in-progress
    and removed
    status/planned
    on Nov 15, 2026
  11. devops-cli-service commented on Nov 15, 2026

    @devops-cli-service
    Contributor

    Stopped at fix.

    Failed check: strength. The end of its log:

    - coverage failure: Coverage failure: total of 24 is less than fail-under=85
    

    Failure class: limit_reached.
    Action taken: none.
    Action left: raise_limit: raise the limit that the run went over.

    Step Status Attempts Tokens in/out Last failing command
    group 1 done 3 7866614/61530 pytest on base: tests/roadmap/stage/test_roadmap_stage_eval_command.py, tests/roadmap/stage/test_roadmap_stage_eval_gates.py
    fix stopped 1 16432634/98674 strength

    Reason:

    LimitReached: The step spent its budget `roadmap.implement.step_time_limit_seconds=5400`.
    Refused commands: git 1, other:ffe2f591345a 1, other:8041ca335854 1. Other retries: 6.
    

    Last message of the agent (a claim that no check verified): none.

    The item is Blocked, and the job will not run it. Fix the cause. Then comment implement: retry. The Service clears the stop on its own when a new runner image rolls out, but only if a retry can fix the class of the stop and the limits of roadmap.implement.digest_clears_per_class and roadmap.implement.digest_clears_per_item allow it.

    The job kept the commits that passed on the branch test/3464-hold-a-golden-case-for-a on origin. The last is eb3676561673b468ba7fa0eb1a9a9fed9331f309. The pull request stays a draft. The next run continues from it, runs no group that is ticked, and runs the scoped checks again.

  12. added
    status/blocked
    and removed
    status/in-progress
    on Nov 15, 2026
  13. devops-cli-service commented on Nov 15, 2026

    @devops-cli-service
    Contributor

    The runner Job devops-cli-implement-devops-cli-3464-8bc3e2 ended: succeeded.
    Image digest: sha256:6a0bd6cf95b1b397f71a246f2853dcb18289ff989bee86ccf941ec8ec8cc260f

    The last lines of its log:

    Tool call: run_command, started: grep -rn <masked> docs/ ARCHITECTURE.md CONTRIBUTING.md ...
    Tool call: run_command, program grep, ok.
    Tool call: edit_file, ok.
    Tool call: edit_file, ok.
    Tool call: run_command, started: git ls-files docs/roadmap/implement.md docs/ROADMAP_WORKFLOW.md
    Tool call: read_file, ok.
    Tool call: run_command, program git, ok.
    Tool call: run_command, started: uv run devops ci docs
    Tool call: run_command, program uv, ok.
    Tool call: run_command, started: git status --short
    Tool call: run_command, started: git diff --stat
    Tool call: run_command, program git, ok.
    Tool call: run_command, program git, ok.
    Tool call: read_file, ok.
    Tool call: run_command, started: git diff docs/ROADMAP_WORKFLOW.md docs/roadmap/implement.md
    Tool call: run_command, program git, ok.
    Tool call: grep, ok.
    Tool call: read_file, ok.
    Tool call: grep, retry (context must be between 0 and 20. Path: src/devops_cli/roadmap/implement).
    Tool call: grep, ok.
    Tool call: grep, ok.
    Tool call: grep, ok.
    Tool call: grep, ok.
    Tool call: read_file, ok.
    Tool call: read_file, ok.
    Tool call: read_file, ok.
    Tool call: grep, ok.
    Tool call: grep, ok.
    Tool call: read_file, ok.
    Tool call: grep, ok.
    Tool call: run_command, started: git checkout -- src/devops_cli/roadmap/implement/implement_strength.py tests/roadmap/implement/test_roadmap_implement_strength.py docs/ROADMAP_WORKFLOW.md ...
    Tool call: run_command, program git, ok.
    Tool call: run_command, started: git status --short
    Tool call: run_command, started: git diff --stat
    Tool call: run_command, program git, ok.
    Tool call: run_command, program git, ok.
    Tool call: run_command, started: uv run devops ci test tests/roadmap/stage/
    Tool call: run_command, program uv, ok.
    Failure class limit_reached. Action left: raise_limit.
    ✓ Took 0 item(s) to a ready pull request, stopped 1.
    
  14. removed
    owner/service
    on Nov 15, 2026
  15. added
    status/in-review
    and removed
    status/blocked
    on Nov 15, 2026
  16. removed
    status/in-review
    on Nov 15, 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/roadmapsource/agenttype/testvalue/medium

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions