Skip to content

feat(roadmap): show the last Jev eval score beside the job grade #6397

Open

Description

@devops-cli-service

Split from #5171.

Problem or Motivation The jev result line of #5171 gives the jev job a row and a grade in devops roadmap eval grades. The issue #5171 also asks the report to show the last Jev eval score next to that grade. No stored score exists today. devops roadmap eval jev prints a comparison and stores no score. The shadow report gives per-field ratios and no single number. ### Why this part is deferred The score needs a stored record and a rule that gives the one number. Those are a separate change. #5171 can deliver the jev result line and the grade row without them. ### Acceptance Criteria - devops roadmap eval jev SHALL store one score record for each run, with the date, the model and the score. - devops roadmap eval grades SHALL show the last stored Jev score in the jev row. - A test SHALL show that a report with one stored score shows that score in the jev row. - A test SHALL show that a report with no stored score shows none in the score column.

Proposed design

Problem statement

Store one score for each Jev comparison run, and show the last score beside the jev grade. devops roadmap eval jev prints a comparison of the Jev model with the triage model and stores no score. The jev row of devops roadmap eval grades shows a grade and no score. This change adds the score store and the score column.

Acceptance criteria

Requirement: Score record for each run

devops roadmap eval jev SHALL write one score record for each completed comparison run.

Scenario: One run writes one record

  • WHEN A test runs devops roadmap eval jev with a fake model and a temporary data dir.
  • THEN The score store holds one record with the run date, the value of CONST_AI_JEV_MODEL and the score.

Requirement: One score number

The score record MUST hold one number between 0 and 1: the mean of the share of duplicate cases that agree with the person and the mean of the four label field agreement ratios.

Scenario: The mean of two ratios

  • WHEN A test calls the score function with a duplicate agreement of 1.0 and a label agreement of 0.5.
  • THEN The score is 0.75.

Requirement: Each run is kept

The score store MUST keep the record of each run and MUST NOT overwrite an earlier record.

Scenario: Two runs keep two records

  • WHEN A test runs the command twice with the same temporary data dir.
  • THEN The score store holds two records in run order.

Requirement: One stored score shows

devops roadmap eval grades SHALL show the stored Jev score in the jev row when the store holds one record.

Scenario: One record shows its score

  • WHEN A test renders the grades report with one stored score record.
  • THEN The jev row shows that score in the score column.

Requirement: The last record wins

devops roadmap eval grades SHALL show the last stored Jev score in the jev row when the store holds more than one record.

Scenario: The later record wins

  • WHEN A test renders the grades report with two stored score records.
  • THEN The jev row shows the score of the later record in the score column.

Requirement: No score shows none

devops roadmap eval grades MUST show none in the score column of the jev row when the store holds no record.

Scenario: An empty store

  • WHEN A test renders the grades report with an empty score store.
  • THEN The jev row shows none in the score column.

Existing Tool Considered

No alternatives check has run. The change uses json from the Python standard library for the record format. It builds the score store and the score column with about 70 lines of Python, with datetime and pathlib. Written cost: about 3,000 tokens to build, about 500 tokens a year to keep and fix, and about 2 hours elapsed.

Key questions

  • Which runs write a score record?: Each completed comparison run writes one record. A --from-shadow run writes no record, because it reads shadow records and computes no single score. A --dry-run writes no record. (best practice) [sources: src/devops_cli/commands/roadmap_eval_jev.py, src/devops_cli/roadmap/jev_shadow_report.py]
    • Chosen: Comparison run only. The --from-shadow run computes per-field ratios and no single score.
    • Rejected: Also the --from-shadow run. The shadow run has no single number to store.
  • Where does devops roadmap eval jev write the score record?: It appends one JSON object for each run to a scores file under .data/. devops roadmap eval grades reads the last line of that file. (best practice) [sources: src/devops_cli/commands/roadmap_eval.py, src/devops_cli/commands/roadmap_eval_jev.py, CONTEXT.md]
    • Chosen: JSON Lines file under .data/. It keeps each run, needs no service, and matches the eval scores under .data/.
    • Rejected: Valkey key. A Valkey key has a TTL and holds derived state. The score would be the only copy.
    • Rejected: Loki result line. The eval command runs by hand and writes no job result line.
    • Rejected: Issue body job record. A job record belongs to a roadmap job on an issue. The eval command changes no issue.
  • Which one number does the score record hold?: The mean of the duplicate agreement ratio and the label agreement ratio, in the range 0 to 1. The duplicate ratio is the share of duplicate cases where the model verdict matches the person verdict. The label ratio is the mean of the four label field agreement ratios. (best practice) [sources: src/devops_cli/roadmap/jev_eval.py, src/devops_cli/roadmap/duplicate_eval.py, src/devops_cli/commands/roadmap_eval_jev.py, tests/roadmap/test_roadmap_jev_eval.py]
    • Chosen: Mean of the duplicate ratio and the label ratio. The eval computes both halves. Their mean gives one number that compares across runs.
    • Rejected: Count of fields that match. A count grows with the number of fields and does not compare across runs.
    • Rejected: The Jev probability of one field. One field does not measure the whole run.
  • Which model name does the score record hold?: CONST_AI_JEV_MODEL, the model that the eval runs for the Jev side. [sources: src/devops_cli/commands/roadmap_eval_jev.py, src/devops_cli/config/constants.py]
  • How does devops roadmap eval grades read the last score?: It reads the store at render time, takes the last record, and shows its score in the jev row. (best practice) [sources: src/devops_cli/commands/roadmap_eval_grades.py, src/devops_cli/roadmap/job_grade_report.py, tests/commands/test_roadmap_eval_grades.py]
    • Chosen: Read the store at render time. The store is small and the report is printed by hand. A cache adds a second copy.
    • Rejected: Write a cache that the report reads. A cache needs invalidation and holds a second copy of the record.
    • Rejected: Read the score from Loki. The eval command writes no result line, so Loki holds no score.
  • How does the jev row show the score?: As a decimal with two places, such as 0.75. The score is a ratio in the range 0 to 1. (best practice) [sources: src/devops_cli/roadmap/job_grade_report.py, CONTEXT.md]
    • Chosen: Decimal with two places. The score is a ratio in the range 0 to 1. The grade column holds a number.
    • Rejected: Percentage. The grade column holds a number, not a percentage.
  • What does the eval command do when it cannot write the score record?: It prints the comparison, then an error, and exits 1. The record is a requirement, and the project does not swallow an error. (best practice) [sources: AGENTS.md, src/devops_cli/commands/roadmap_eval_jev.py]
    • Chosen: Print the comparison, then the error, and exit 1. The record is a requirement. The project does not swallow an error. The comparison keeps the output of the model calls.
    • Rejected: Warn and continue. It hides a failure. The run did not meet its requirement.

Fit

Fits in one pull request.

Suspected block

None.

Dependencies

#5171

Activity

  1. added
    type/feature
    source/agent
    scope/roadmap
    status/new
    value/medium
    effort/medium
    on Nov 19, 2026
  2. devops-cli-service commented on Nov 19, 2026

    @devops-cli-service
    ContributorAuthor
  3. devops-cli-service commented on Nov 19, 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.

  4. 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.

  5. devops-cli-service commented on Nov 29, 2026

    @devops-cli-service
    ContributorAuthor

    Next step: the alternatives check records a verdict. See the section Proposed design of the body.

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/agentstatus/newtype/featurevalue/medium

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions