Repository navigation
Description
Context
About 65 eval cases fail on main, and their graders and judges cannot be classed or calibrated without the model's final reply, which the dispatched run of .github/workflows/pr-run-plugin-evals.yml keeps only in the --keep-temp traces on the runner and never uploads.
The owner chose option (A) of the "Eval replies in CI artifacts" row in the owner-decisions record, added by melodic-software/architecture#221 (merged: docs/owner-decisions.md#L393 at 4f147729). Option (A) from the row: "keep #18609 held, upload last_message in the existing 3-day artifact on dispatched suite runs after a leak scan, re-run those cases once (about 130 agent runs), then fix graders, judges or skills from the replies". Owner, verbatim: "go w/ recommendations".
This issue covers only the capture. The re-run and the fixes are separate work. Held PR: #18609.
Proposed work
- Add
.github/scripts/plugin-eval/last-messages.mjs: read oneresults.json, and for each case, arm and run, read the run's kept trace (tracePath) and take its final reply (theresultevent's text, else the last assistant text, ascalibrate-judge.py'strace_replyreads it). Write one JSONL line per run,{case, arm, run, last_message}, tolast-messages.jsonlbesideresults.json. - Before it writes the file, run
lib/publish-gate.mjsscanLeak(the scanner thescan-uploadaction already runs over the artifact) on the file's bytes. On a block, write nothing and print one::warning::that names only the rule. Never print a reply to the job log. - Call it from the
DISPATCHEDblock of the "Summarize the results" step in both the Run Eval and Run Eval Subscription jobs, so only dispatched suite runs capture: a label-started pull request run skips that block, and a compare run starts neither job. - Tests for the extraction and the scan gate, plus a workflow test for both call sites.
- One line in
docs/review/evals.md"Reading a result" naming the file and its 3-day retention.
Acceptance criteria
- A dispatched suite run's
eval-browser-<run id>-<attempt>artifact holds<plugin>/last-messages.jsonl, one line per run, when the leak scan blocks nothing. - When the scan blocks, the file is absent, the job log carries a
::warning::naming the rule, and the rest of the artifact still uploads. - Label-started pull request runs and compare runs write no replies file.
- No reply text reaches the job log or the step summary.
node --testpasses onlast-messages.test.mjsandworkflow.test.mjs.
Activity