Skip to content

chore(roadmap): validate and enable fix-plan finding check #6145

Not planned

Description

@devops-cli-service

Split from #5215.

Problem: The fix_plan.finding_check point starts in mode shadow. The project needs a validation table over live plan pull requests. A person then sets the live ConfigMap to on after the table meets the bar of ADR 0020. Why deferred: The table needs open plan pull requests, plan pull requests closed in the last 14 days, and one decision-model call at a time. The main change can merge in shadow without it. A person sets the live ConfigMap, so this work waits on a person and live data. Acceptance criteria: The validation table lists PR, use, finding type, quote held and band for each listed finding of the last plan comment of each open plan PR and each plan PR closed in the last 14 days. The table also covers each finding of a fix-plan comment whose attempt pushed a revision, judged on that revision. The run writes nothing. The run sends one decision-model call at a time. The table records the bar of ADR 0020: on the half that was not fitted, at most 1 in 20 continue bands falls on a case labelled holds, and the point saves at least half of the repair rounds on a clean head with listed findings. A person sets fix_plan.finding_check to on in the live ConfigMap only after the table meets the bar.

Dependencies

Proposed design

Problem statement

The fix_plan.finding_check point runs in shadow. The project cannot set it to on until a read-only validation table over live plan pull requests meets the ADR 0020 bar. This change adds the validation command after #6521; a person sets the live ConfigMap after the merge.

Acceptance criteria

Requirement: Table rows for plan pull requests

The validation command SHALL emit one row for each listed finding in the last plan comment of each open plan pull request and of each plan pull request closed in the last 14 days.

Scenario: Open and recent closed plan pull requests

  • WHEN A fixture holds one open plan pull request and one plan pull request closed 10 days ago, and each last plan comment lists two findings.
  • THEN The command prints four rows, and each row holds the pull request, use, finding type, quote-held value and band.

Requirement: Findings on a pushed revision

The validation command SHALL judge each finding of a fix-plan comment on the revision that the attempt pushed.

Scenario: Fix-plan comment with a pushed revision

  • WHEN A fixture holds a fix-plan comment whose attempt pushed revision abc123, and the finding exists on abc123 but not on the previous head.
  • THEN The table includes the finding with the quote-held value and band from abc123.

Requirement: Read-only validation run

The validation command MUST send no write request to GitHub, the cluster or the filesystem.

Scenario: No write calls

  • WHEN A test runs the command against a fake GitHub client, a fake Kubernetes client and a temporary working directory.
  • THEN The fake clients record no create, update, delete or patch call, and the working directory holds no new file.

Requirement: Serial decision-model calls

The validation command MUST send at most one decision-model call at a time.

Scenario: Three findings need a model call

  • WHEN A fixture holds three findings that each need a decision-model call, and the fake model client records the maximum number of calls in flight.
  • THEN The recorded maximum is 1.

Requirement: ADR 0020 bar is met

The validation command SHALL compute the ADR 0020 bar on the half that was not fitted and print meets when both conditions hold.

Scenario: Bar met

  • WHEN A fixture holds 20 continue bands on the unfitted half, one of them on a case labelled holds, and the point saves 6 of 10 repair rounds on a clean head with listed findings.
  • THEN The command prints meets and reports the 1-in-20 and half-of-repair-rounds results.

Requirement: ADR 0020 bar is not met

The validation command SHALL print does not meet when either ADR 0020 condition fails.

Scenario: Too many holds cases

  • WHEN A fixture holds 20 continue bands on the unfitted half, two of them on cases labelled holds, and the point saves 6 of 10 repair rounds on a clean head with listed findings.
  • THEN The command prints does not meet and names the failed 1-in-20 condition.

Requirement: Pending a person after the merge

A person SHALL set fix_plan.finding_check to on in the live ConfigMap only after the validation table meets the ADR 0020 bar.

Scenario: Live ConfigMap set after the bar is met

  • WHEN The validation table meets the ADR 0020 bar and a person reads the result.
  • THEN The person sets fix_plan.finding_check to on in the live ConfigMap.

Existing Tool Considered

No alternatives check has run. No open tool covers the full need. gh (open, maintained) covers reads of plan pull requests and their comments. It does not build the validation table, judge findings on a pushed revision, serialize decision-model calls or compute the ADR 0020 bands. The change reuses the existing GitHub client (gidgethub, ADR 0006) and adds a subcommand to roadmap eval: about 250 lines and 6 tests, about 25k tokens to build, 5k tokens to keep and fix, and one day.

Key questions

  • Where does the validation command live?: Add a subcommand to the existing roadmap eval group. The group already holds roadmap measurement commands and reads decision points. (best practice) [sources: src/devops_cli/commands/roadmap_eval_jev.py, src/devops_cli/roadmap/decision_point.py]
    • Chosen: Add a subcommand to roadmap eval. The eval group already holds roadmap measurement commands and reads decision points.
    • Rejected: Add a new top-level command. It adds a second entry point for the same measurement code.
    • Rejected: Use a standalone script. It cannot reuse the CLI, its config or its test fakes.
  • How does the command read plan pull requests and their comments?: Use the existing GitHub session and its gidgethub client, with the fake GitHub API in tests. (best practice) [sources: src/devops_cli/github/session.py, tests/support/fakes/github.py, tests/github/test_github_client.py]
    • Chosen: Use the existing GitHub client and fakes. The project already has a GitHub client and fake clients for tests.
    • Rejected: Call gh with a subprocess. It adds an external process and bypasses the existing client and fakes.
    • Rejected: Read a saved JSON export. It does not cover live plan pull requests.
  • How does the command keep one decision-model call in flight?: Call the existing resolver chain for one finding at a time in a sequential loop. ResolverChain.decide and adecide send one request each, so a loop keeps one call in flight. (best practice) [sources: src/devops_cli/roadmap/decision_point.py, AGENTS.md]
    • Chosen: Call the resolver chain in a sequential loop. ResolverChain.decide and adecide send one request each, so a loop keeps one call in flight.
    • Rejected: Send all requests with asyncio.gather. It sends more than one decision-model call at a time.
    • Rejected: Use one thread for each finding. It sends more than one decision-model call at a time.
  • How does the command compute the ADR 0020 bar?: Join decision records with their outcomes by decision_point.join and pass the labelled cases to the existing fit code. Then compute the two conditions on the unfitted half. (best practice) [sources: src/devops_cli/roadmap/decision_point.py, src/devops_cli/roadmap/decision_fit.py]
    • Chosen: Reuse decision_point.join and the existing fit code. The module already joins decisions with outcomes and gives fit cases.
    • Rejected: Call the decision model again on saved answers. It spends model calls and does not reproduce the recorded bands.
    • Rejected: Compute the bar by hand in a spreadsheet. It is not repeatable and is not part of the CLI.

Fit

Fits in one pull request.

Suspected block

None.

Dependencies

#6521

Watched files

A commit on the default branch that changes one of these files starts the next refine round.

  • src/devops_cli/roadmap/implement/implement_run.py
  • src/devops_cli/roadmap/stage/stage.py

Activity

  1. added
    type/chore
    on Nov 17, 2026
  2. devops-cli-service commented on Nov 17, 2026

    @devops-cli-service
    ContributorAuthor
  3. added
    source/agent
    scope/roadmap
    status/new
    value/medium
    effort/medium
    priority/p2-medium
    on Nov 17, 2026
  4. devops-cli-service commented on Nov 18, 2026

    @devops-cli-service
    ContributorAuthor

    Waiting for the alternatives check to run. The next refine round looks at the item again after the check records a verdict.

  5. dan-petty commented on Nov 20, 2026

    @dan-petty
    Owner

    Frozen on 2026-11-20. The stage, implement and fix-checks jobs grade under 60%, so the owner rule asks for a re-architecture before more fixes inside the current design (tracker #6519). This item is incremental work on those jobs, so its Dependencies section now names #6521 first. Stage and implement leave this item while #6521 is open. When the experiments of #6519 decide, a person closes #6521 (this item can then continue) or closes this item as not planned.

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

    @devops-cli-service
    ContributorAuthor

    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.

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

    @devops-cli-service
    ContributorAuthor

    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.

  8. dan-petty commented on Nov 30, 2026

    @dan-petty
    Owner

    Triage under #6519 (owner instruction of 2026-11-30), before the hold #6521 closes. This item adds or extends a gate, refusal, screen, cap, limit, retry, result line, shell allowlist, tool catalog or plan-shape rule of the stage, implement or fix-checks job. #6519 found that 263 of about 900 issues in four weeks added such rules and none replaced the engine. Stage now runs on stock Coder (grade 60 on 30 graded attempts), where the agent reads the repository, runs the checks in its loop and has a real shell; implement follows (#6527). The code paths that this item names have also moved. If the failure class still shows in graded attempts, file a new item from that evidence. Closed as not planned; a person may reopen it.

  9. removed
    status/new
    on Nov 30, 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/mediumpriority/p2-mediumscope/roadmapsource/agenttype/chorevalue/medium

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions