Skip to content

test(roadmap): grade 30 stage attempts on the Coder stage agent #6637

Done

Description

@devops-cli-service

Split from #6528.

Problem: The stage job succeeds in 47% of graded attempts, under the 60% band. The Coder stage agent must show 30 or more graded attempts on the released version. The item cannot deliver the grade because the attempts need a release and elapsed time. The follow-up issue grades the attempts and checks the 60% band. Acceptance criteria: A released version holds the Coder stage agent. At least 30 stage attempts on that version are graded. Every attempt counts, including attempts with no infrastructure cut. The job grade is 60 or higher, or the issue reports the measured grade and the next action from docs/roadmap/job-success.md.

Proposed design

Problem statement

The stage job succeeds in 47% of graded attempts, under the 60% band. The Coder stage agent must show 30 or more graded attempts on the released version. The attempts need a release and elapsed time, so the item cannot deliver the grade now. This item grades the attempts and checks the 60% band.

Acceptance criteria

Requirement: Released version in the grade report

The grade report MUST name the released devops-cli version that holds the Coder stage agent.

Scenario: The report filters the released version

  • WHEN uv run devops roadmap eval grades --format json --repo <owner/repo> runs after the release that holds the Coder stage agent
  • THEN The report lists that release in the version rows for the stage job.

Requirement: Thirty graded stage attempts

The released version MUST have at least 30 graded stage attempts.

Scenario: The attempt count reaches the threshold

  • WHEN uv run devops roadmap eval grades --format json --repo <owner/repo> runs for the released version
  • THEN The stage row shows 30 or more attempts and a grade other than too few.

Requirement: Infrastructure cuts in the attempt total

The attempt total MUST include every stage result line, with infra=true or infra=false.

Scenario: An infrastructure cut is in the window

  • WHEN A stage result line with infra=true is in the report window for the released version
  • THEN The attempt total of the stage row includes that line, and the grade p leaves that line out.

Requirement: Grade meets the 60 band or reports the action

The item MUST record a stage job grade of 60 or higher, or the measured grade and the next action from docs/roadmap/job-success.md.

Scenario: The grade is below 60

  • WHEN uv run devops roadmap eval grades --format json --repo <owner/repo> reports a stage grade below 60 for the released version
  • THEN The issue comment holds the measured grade and the action of the 60 or <60 row of the grade table in docs/roadmap/job-success.md.

Existing Tool Considered

No alternatives check has run. The existing devops roadmap eval grades command covers the need: it reads the stage result lines and prints the job grade and the attempt count. It lacks no capability for this measurement. The item adds no library and builds no code.

Key questions

  • Which command produces the stage job grade?: Use uv run devops roadmap eval grades --format json --repo <owner/repo>. It reads the stage result lines and prints the grade, the attempts, the interval and the efficiency. [sources: docs/roadmap/job-success.md]
  • How does the report count a stage attempt with an infrastructure cut?: It counts the attempt in the attempt total and leaves it out of the ratio p. (best practice) [sources: docs/roadmap/job-success.md]
    • Chosen: Count in the attempt total only. The job grade leaves infrastructure cuts out of p, and the issue says every attempt counts.
    • Rejected: Drop from the attempt total. This hides attempts and can keep the version at too few.
    • Rejected: Count in the attempt total and in p. This conflicts with the job grade definition.
  • How does the item identify the Coder stage agent?: Use the released devops-cli version in the version field of the stage result lines. The result line has no agent field. (best practice) [sources: docs/roadmap/job-success.md]
    • Chosen: Filter by the released version. The result line carries version, and the issue asks for attempts on the released version.
    • Rejected: Filter by an agent name field. The result line has no agent field.
    • Rejected: Filter by repository only. This mixes versions and cannot show the Coder stage agent.
  • What does the item deliver when the grade is below 60?: Record the measured grade and the action of the 60 or <60 row of docs/roadmap/job-success.md in the issue comment. The item makes no code change for a low grade. (best practice) [sources: docs/roadmap/job-success.md]
    • Chosen: Report the grade and the next action. The issue body names this result.
    • Rejected: Open a fix issue at once. The issue asks for the report and the next action, not a new item.
    • Rejected: Re-architect the workflow at once. The grade table gives the action, and the issue records it.
  • Does the item need a new library or code?: No. The existing devops roadmap eval grades command covers the measurement. [sources: docs/roadmap/job-success.md]

Fit

Fits in one pull request.

Suspected block

The grade waits on a devops-cli release that holds the Coder stage agent and on at least 30 stage attempts on that release.

Dependencies

None.

Activity

  1. added
    type/test
    on Nov 21, 2026
  2. devops-cli-service commented on Nov 21, 2026

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

    @devops-cli-service
    ContributorAuthor

    Owner question: See Suspected block in the section Proposed design of the body.

    Options

    1. Decide the question: The job refines the item with your answer.
    2. Leave it to the job: The job records the best-practice answer and goes on.

    Recommendation: Decide the question: only a person can answer it.

    Evidence

  5. dan-petty commented on Nov 26, 2026

    @dan-petty
    Owner

    The measure of this item is done. This item closes as completed.

    Result lines of the stage job on the releases that hold the Coder stage agent (0.201.6 to 0.221.8, 2026-11-23 to 2026-11-25; Loki, roadmap job result:, read 2026-11-26T00:00Z):

    Attempts Infra Graded Success p 95% interval (Wilson) Grade
    121 91 30 19 0.63 0.46 to 0.78 60
    • Every attempt is counted. 88 of the 91 infra attempts are the spent provider key of 2026-11-25 (fix(ai): read an HTTP 402 of the provider as a spent key #7261), and 3 are ci_infra.
    • The failures: plan_defect 8, needs_split 2, timeout 1. The class parser is gone (14 on the old engine in the same window).
    • The old engine in the same 7-day window: 34 of 88 graded attempts (0.39).
    • Efficiency: 26.8 M tokens and 6,569 seconds for each success. No success is a first pass.

    The grade is 60, so the criterion "the job grade is 60 or higher" holds. The interval still includes <60, so the grade is not safe. The action of the grade 60 in docs/roadmap/job-success.md is "Look for implementation alternatives, or serious defects that a fix can correct". #7269 holds that action: a trial of an open harness for the stage agent (Experiment 2 of #6519).

    Command for a new read: devops roadmap eval grades --window 7d --format json, rows of the job stage by version.

  6. removed
    status/new
    on Nov 26, 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