Skip to content

feat(roadmap): eval verify stores each case and resumes - #4451

Merged
dan-petty merged 2 commits into
mainfrom
feat/4344-eval-verify-stores-each-case
Nov 11, 2026
Merged

dan-petty merged 2 commits into
mainfrom
feat/4344-eval-verify-stores-each-case

Conversation

@dan-petty

Copy link
Copy Markdown
Owner

devops roadmap eval verify wrote its report only after the last case. A stop of the process lost every case that ended. The run now writes the report at the start and again when each case ends, from the CaseLifecycle hook of pydantic-evals, with an atomic write. --resume <report> runs only the cases that the report lacks or that failed in it, and updates the same file. A report of another model, a report with a case that the set lacks, and a file that is not a report stop the run before a model call. The score is computed from the outcome of each case, so the final report and the text render stay as they were for a run with no resume.

Closes #4344

Change: openspec/changes/archive/2026-11-11-4344-eval-verify-stores-each-case/

The run writes its report at the start and again when each case ends,
from the CaseLifecycle hook of pydantic-evals, so a stop keeps the cases
that ended. --resume runs only the cases that a report lacks or that
failed in it, and updates the same file. The score is computed from the
outcome of each case.
@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 11, 2026
@dan-petty

dan-petty commented Nov 11, 2026 •

Copy link
Copy Markdown
Owner Author

Fail-to-pass: uv run devops ci fail-to-pass --base origin/main (on the feature commit before the archive commit and the last rebase). The 9 new tests fail on the base and pass on the head:

failed on base: tests.roadmap.stage.test_roadmap_stage_verify_eval::test_a_resume_of_a_report_with_a_case_that_the_set_lacks_exits_1_and_names_it (assert 2 == 1)
failed on base: tests.roadmap.stage.test_roadmap_stage_verify_eval::test_rejected_credentials_on_the_second_case_keep_the_first_case_in_the_report (ValueError: not enough values to unpack (expected 1, got 0))
failed on base: tests.roadmap.stage.test_roadmap_stage_verify_eval::test_a_resume_of_a_file_that_is_not_a_report_exits_1 (assert 2 == 1)
failed on base: tests.roadmap.stage.test_roadmap_stage_verify_eval::test_the_dry_run_of_a_resume_lists_only_the_cases_that_would_run (AssertionError: Usage: devops roadmap eval verify [OPTIONS])
failed on base: tests.roadmap.stage.test_roadmap_stage_verify_eval::test_the_report_holds_a_case_with_its_findings_when_the_case_ends (ValueError: not enough values to unpack (expected 1, got 0))
failed on base: tests.roadmap.stage.test_roadmap_stage_verify_eval::test_a_resumed_run_runs_only_the_failed_and_the_missing_cases_and_updates_the_report (AssertionError: Usage: devops roadmap eval verify [OPTIONS])
failed on base: tests.roadmap.stage.test_roadmap_stage_verify_eval::test_a_resumed_run_keeps_the_cases_of_the_report_that_the_selection_lacks (AssertionError: Usage: devops roadmap eval verify [OPTIONS])
failed on base: tests.roadmap.stage.test_roadmap_stage_verify_eval::test_a_stop_in_the_third_case_keeps_the_two_cases_that_ended (Failed: Raised exception (group) did not match: `TypeError()` is not an instance of `_Stop`)
failed on base: tests.roadmap.stage.test_roadmap_stage_verify_eval::test_a_resume_of_a_report_of_another_model_exits_1_and_makes_no_call (assert 2 == 1)
9 failed on base (9 failed and 24 passed in tests/roadmap/stage/test_roadmap_stage_verify_eval.py; 0 errored).

The focused run uv run pytest tests/roadmap/stage/test_roadmap_stage_verify_eval.py tests/commands -k verify passed (57 passed). A full local devops ci ran at 01:03Z on this change; every check passed except pytest, which timed out after 1800 s under a host load average near 50. This PR relies on the GitHub checks for the full test run.

@dan-petty
dan-petty marked this pull request as ready for review November 11, 2026 02:51
@dan-petty
dan-petty merged commit 7c59565 into main Nov 11, 2026
32 checks passed
@dan-petty
dan-petty deleted the feat/4344-eval-verify-stores-each-case branch November 11, 2026 02:51
@dan-petty

Copy link
Copy Markdown
Owner Author

Review findings after the merge of this pull request:

  1. Major, confirmed: parallel runs that start in the same second share one report file (src/devops_cli/commands/roadmap_eval_verify.py:118). The run names its report file when it starts, from a stamp with a resolution of one second, and each write is an atomic os.replace. Two processes that start in the same second therefore write the same file, and the cases of one process are lost. Before this change, the stamp came at the end of the run. docs/ROADMAP_WORKFLOW.md:374 tells the operator to split the set between parallel processes, which is the workflow where the collision occurs.
    • Action: this pull request was merged before the fix, so I did not push to it. I filed fix(roadmap): parallel eval verify runs share one report #4488 with the evidence, a proposed fix (a unique name at start, with tempfile.mkstemp or an exclusive create, as src/devops_cli/ai/run_store.py:208 already does with a random suffix) and a test that freezes the clock and expects two report files.

dan-petty pushed a commit that referenced this pull request Nov 11, 2026
🤖 I have created a release *beep* *boop*
---


##
[0.111.0](v0.110.0...v0.111.0)
(2026-11-11)


### Features

* **roadmap:** a decision-point registry with a resolver chain
([#4453](#4453))
([b73e97a](b73e97a))
* **roadmap:** eval verify stores each case and resumes
([#4451](#4451))
([7c59565](7c59565))
* **roadmap:** extend a step budget when the run makes progress
([#4464](#4464))
([c8ed108](c8ed108))


### Bug Fixes

* **ai:** a failed model transport names its phase and its error
([#4460](#4460))
([54743c4](54743c4))
* **ai:** price the DeepSeek group and its cached input
([#4454](#4454))
([3b1f6bd](3b1f6bd))
* **roadmap:** stage and refine send no answer count or row
([#4484](#4484))
([d9c8ee8](d9c8ee8))
* **roadmap:** tool docstrings garble the answer format
([#4486](#4486))
([2f6114f](2f6114f))


### Performance Improvements

* **roadmap:** parse only the bodies that hold a job record
([#4455](#4455))
([c653bde](c653bde))
* **tests:** evaluate hour-scale promtool tests every hour
([#4462](#4462))
([0ac2f76](0ac2f76))

---
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 verify stores each case when it ends and resumes

1 participant