Skip to content

feat(roadmap): eval grades prints the grade of each workflow - #5189

Merged
dan-petty merged 3 commits into
mainfrom
feat/5165-eval-grades
Nov 12, 2026
Merged

dan-petty merged 3 commits into
mainfrom
feat/5165-eval-grades

Conversation

@dan-petty

Copy link
Copy Markdown
Owner

Add devops roadmap eval grades. It reads the roadmap job result lines in Loki with LogQL metric instant queries. For each workflow and repository it prints the job grade of the owner table (100, 90, 80, 70, 60, <60, or too few under 30 attempts) with its action, p on the attempts with no infrastructure cut, the Wilson 95% interval, the point grade and its range, the first-pass ratio, the infrastructure share, the top failure classes, tokens and seconds for each attempt and each success, the versions with 10 attempts or more, and the counts of 24 h and 6 h with the broken and infrastructure signals. --format json gives the same report to an agent, and --dry-run prints the queries and sends no request.

The grade table lives once in roadmap/job_grade.py, and devops docs generate writes it into docs/roadmap/job-success.md. CONTEXT.md gets the term job grade.

Closes #5165

Change: openspec/changes/archive/2026-11-12-5165-eval-grades-prints-the-grade-of/

devops roadmap eval grades reads the roadmap job result lines in Loki
with LogQL metric instant queries. For each workflow and repository it
gives the attempts with no infrastructure cut, the successes, p, the
Wilson 95% interval, the grade, the point grade and its range, the
first-pass ratio, the infrastructure share, the top failure classes,
the owner action of the grade, tokens and seconds for each attempt and
each success, the versions with 10 attempts or more, the counts of
24 h and 6 h, and the broken and infrastructure signals. --format json
gives the same report; --dry-run sends no request and prints the
queries.

roadmap/job_grade.py holds the grade table once, and devops docs
generate writes it into docs/roadmap/job-success.md. CONTEXT.md gets
the term job grade.
@dan-petty dan-petty added type/feature Type feature: a new function scope/roadmap The roadmap jobs: intake, refine, stage, implement and the Service that runs them labels Nov 12, 2026
@dan-petty

Copy link
Copy Markdown
Owner Author

Live run against the cluster Loki (2026-11-12 18:30Z)

uv run devops roadmap eval grades --loki-url http://localhost:3100 (Loki 3.7.9, port-forward of svc/loki, 13 requests, 7.8 s). The result line started at about 12:58Z, so the 6-hour window holds every line, and the 24 h and 6 h columns equal the 7-day ones. I replaced the names of the private service repositories with roles.

Job grades of the 7d window, all repositories, from the result lines in Loki at http://localhost:3100. A grade needs 30 attempts with no infrastructure cut; p and the 95% interval count only those attempts.

Workflow      Repository             n   OK  p     95% interval  Grade    Point  Range    First pass  Infra  OK/n 24h  OK/n 6h
stage         dan-petty/devops-cli   5   3   0.60  [0.23, 0.88]  too few  60     <60–80   0.40        0.00   3/5       3/5
stage         <service-repo-b>       0   0   -     -             too few  -      -        -           1.00   0/0       0/0
stage         <service-repo-c>       0   0   -     -             too few  -      -        -           1.00   0/0       0/0
implement     dan-petty/devops-cli   2   0   0.00  [0.00, 0.66]  too few  <60    <60–60   0.00        0.00   0/2       0/2
refine        dan-petty/devops-cli   24  21  0.88  [0.69, 0.96]  too few  80     60–90    -           0.04   21/24     21/24
refine        <service-repo-a>       6   5   0.83  [0.44, 0.97]  too few  80     <60–90   -           0.00   5/6       5/6
refine_judge  -                      0   0   -     -             too few  -      -        -           -      0/0       0/0
alternatives  -                      0   0   -     -             too few  -      -        -           -      0/0       0/0
intake        dan-petty/devops-cli   71  40  0.56  [0.45, 0.67]  <60      <60    <60–60   -           0.00   40/71     40/71
intake        <service-repo-a>       3   0   0.00  [0.00, 0.56]  too few  <60    <60–<60  -           0.00   0/3       0/3
fix_plan      -                      0   0   -     -             too few  -      -        -           -      0/0       0/0

stage dan-petty/devops-cli: grade too few (Not graded). Show p and the interval. Give no grade.
  Failure classes: none 1, plan_defect 1.
  All attempts: 5, success ratio 0.60, infrastructure cuts 0.
  Efficiency (report only): tokens per attempt median 6,982,522, p90 8,847,087, max 9,987,916; tokens per success 9,773,179; seconds per attempt median 1,402, p90 2,422, max 2,578; seconds per success 2,355.

stage <service-repo-b>: grade too few (Not graded). Show p and the interval. Give no grade.
  All attempts: 1, success ratio 0.00, infrastructure cuts 1.
  Efficiency (report only): tokens per attempt median 0, p90 0, max 0; tokens per success -; seconds per attempt median 0, p90 0, max 0; seconds per success -.

stage <service-repo-c>: grade too few (Not graded). Show p and the interval. Give no grade.
  All attempts: 1, success ratio 0.00, infrastructure cuts 1.
  Efficiency (report only): tokens per attempt median 0, p90 0, max 0; tokens per success -; seconds per attempt median 0, p90 0, max 0; seconds per success -.

implement dan-petty/devops-cli: grade too few (Not graded). Show p and the interval. Give no grade.
  Failure classes: plan_defect 1, types 1.
  All attempts: 2, success ratio 0.00, infrastructure cuts 0.
  Efficiency (report only): tokens per attempt median 5,534,248, p90 6,339,810, max 6,541,201; tokens per success -; seconds per attempt median 3,084, p90 3,888, max 4,089; seconds per success -.

refine dan-petty/devops-cli: grade too few (Not graded). Show p and the interval. Give no grade.
  Failure classes: none 2, head_moved 1.
  All attempts: 25, success ratio 0.84, infrastructure cuts 1.
  Version 0.118.0: 13 of 13, p 1.00 [0.77, 1.00].

refine <service-repo-a>: grade too few (Not graded). Show p and the interval. Give no grade.
  Failure classes: none 1.
  All attempts: 6, success ratio 0.83, infrastructure cuts 0.

intake dan-petty/devops-cli: grade <60 (Coin flip). Re-architect the workflow.
  Failure classes: head_moved 31.
  All attempts: 71, success ratio 0.56, infrastructure cuts 0.
  Version 0.118.0: 23 of 37, p 0.62 [0.46, 0.76].
  Version 0.119.0: 5 of 13, p 0.38 [0.18, 0.64].
  Version 0.120.1: 6 of 12, p 0.50 [0.25, 0.75].

intake <service-repo-a>: grade too few (Not graded). Show p and the interval. Give no grade.
  Failure classes: head_moved 3.
  All attempts: 3, success ratio 0.00, infrastructure cuts 0.

Notes

  • intake <60 is the measure defect, not the workflow. All 31 failures are head_moved lines that the code calls "no failure". Without them intake is 40 of 40. fix(roadmap): leave out changed intake candidates and count plan calls #5166 removes these lines.
  • Most rows are too few, as expected after 5.5 hours of lines. Only intake on devops-cli has 30 attempts.
  • Grade 100 now: only stage, implement and fix_plan write the counts of the first-pass rule (FIRST_PASS_LIMITS). For the other jobs the first pass is -, and they cannot get 100 until feat(roadmap): result lines state first-pass, model calls and cost #5168 adds first_pass to their lines.
  • Point grade and grade. The issue asks for "22 of 25 give grade 80" and "29 attempts give too few". The report gives both values: the point grade 80 and the grade too few (refine above: 21 of 24, point 80).
  • refine_judge, alternatives, fix_plan wrote no line in the Service stream; fix(roadmap): a Job pod and a local run log the job result line #5169 makes a Job pod and a local run send the line.
  • --dry-run sent 0 requests and printed the 13 queries; --format json gives the same rows.

Bandit B105 read the enum member FIRST_PASS = "first_pass" as a
hard-coded password, because the name ends in _PASS.
@dan-petty
dan-petty force-pushed the feat/5165-eval-grades branch from fdb9b94 to 12ef462 Compare November 12, 2026 18:36
@dan-petty

Copy link
Copy Markdown
Owner Author

Static Analysis failed on the first head: bandit B105 read the enum member FIRST_PASS = "first_pass" of GradeQueryKind as a hard-coded password (the name ends in _PASS). 45948f9 renames it to FIRST_PASSES = "first_passes", with no # nosec. Local bandit on the changed source files is clean.

@dan-petty
dan-petty marked this pull request as ready for review November 12, 2026 18:44
@dan-petty
dan-petty merged commit aeb33d6 into main Nov 12, 2026
25 checks passed
@dan-petty
dan-petty deleted the feat/5165-eval-grades branch November 12, 2026 18:45
dan-petty pushed a commit that referenced this pull request Nov 12, 2026
🤖 I have created a release *beep* *boop*
---


##
[0.122.0](v0.121.1...v0.122.0)
(2026-11-12)


### Features

* **docs:** move the docs site to Zensical with a full nav and version
([#5183](#5183))
([64b7199](64b7199))
* **infra:** show the hosts of an infra repo with node state
([#5188](#5188))
([ed1d2e2](ed1d2e2))
* **roadmap:** eval grades prints the grade of each workflow
([#5189](#5189))
([aeb33d6](aeb33d6))


### Bug Fixes

* **infra:** read the default branch at origin, not the working tree
([#5181](#5181))
([6ef4336](6ef4336))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: dan-petty-release[bot] <346998822+dan-petty-release[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

scope/roadmap The roadmap jobs: intake, refine, stage, implement and the Service that runs them type/feature Type feature: a new function

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat(roadmap): eval grades prints the grade of each workflow

1 participant