Skip to content

ci(plugin-eval): write each suite's summary to the job log and results artifact (#12032) - #12084

Merged
kyle-sexton merged 2 commits into
mainfrom
host-run/12032-eval-health-line-log
Nov 1, 2026
Merged

kyle-sexton merged 2 commits into
mainfrom
host-run/12032-eval-health-line-log

Conversation

@kyle-sexton

Copy link
Copy Markdown
Member

Refs: #12032

Summary

No agent can read a dispatched eval run's health lines. The REST API returns no job summary, and the run page shows the summary only to a signed-in user (run 41055400082). Each suite's summary now also reaches the job log and the results artifact.

Fix

The Summarize the results step now does three things with each suite's summarize.mjs output:

  • writes it to $OUT/<plugin>/summary.md;
  • appends it to the job summary;
  • prints it to the job log, with workflow commands stopped.

A dispatched run uploads the file after the credential scan. A pull request run prints only its redacted output.

Verification

  • A new test in .github/scripts/plugin-eval/workflow.test.mjs fails on the old step and passes on the new one.
  • node --test over workflow.test.mjs and summarize.test.mjs: 15/15 pass.
  • scripts/check-affected.sh --tests: 10 passed, 6 skipped; the suites are left to CI.
  • Left out: the post-merge dispatch and its health-line read (Remaining).

Remaining on #12032

  • After merge, dispatch gh workflow run eval-browser-dispatch.yml -R melodic-software/claude-code-plugins --ref main -f target=plugins/evals -f case=pe-ci-pin-full-ids -f runs=1 -f deterministic-only=true. Read the health lines from the Summarize the results job log, or from summary.md in the artifact, and quote them on feat(evals): run plugin eval suites in a CI lane and hill-climb in the background #6405.
  • If a line still reads unknown, fix trace resolution in summarize.mjs, with a test that fails before the fix (done-when 3).

Related

🤖 Generated with Claude Code

kyle-sexton and others added 2 commits November 1, 2026 14:34
…in the results

The REST API returns no job summary, and the run page shows it only to a
signed-in user, so no agent could read the health lines of a dispatched
eval run. The summarize step now writes each suite's summary to
summary.md beside its results.json (uploaded on a dispatched run, after
the credential scan) and prints it to the job log with workflow commands
off, as well as appending it to the job summary.

Refs: #12032

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@kyle-sexton
kyle-sexton marked this pull request as ready for review November 1, 2026 20:09
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 1, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-01T20:09:54.136261Z d865905 Draft marked ready
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@github-actions

github-actions Bot commented Nov 1, 2026

Copy link
Copy Markdown
Contributor

claude-security-review reviewed d865905b98dab7810f3694432b76061bfb6d24c1: read 2 of 2 changed file(s); 0 finding(s), 0 as inline comments.

Security review: PR #12084

I found no security issues.

I read every hunk of both changed files: .github/workflows/eval-browser-dispatch.yml, which matches a trusted path, and .github/scripts/plugin-eval/workflow.test.mjs. I also read the surrounding Run the plugin eval, Print Bash error excerpts, Scan the upload for credentials and Upload the eval results steps.

What I checked

  • Workflow-command injection in the job log. Model-derived text in summary.md is printed between ::stop-commands::$token and ::$token::, and the token comes from openssl rand -hex 16 (L621-L624). Eval output cannot know the token, so it cannot turn workflow commands back on to set outputs, env or masks. The Print Bash error excerpts step already uses this pattern.
  • Public exposure on pull request runs. The log gets exactly the same text as the job summary. For pull_request that text is still produced with --redact (L602, L618). Nothing that wasn't already public in the job summary becomes public. The raw console output of a pull request run still goes only to console.log, which nothing uploads (L585).
  • The artifact. summary.md is written under $OUT, the folder the upload uses. Only a workflow_dispatch run uploads it, and only after the credential scan of that whole folder passes with clean == 'true' (L689-L699). A pull request run uploads nothing, so the new file never bypasses the scan.
  • Trust controls. The change leaves triggers, permissions:, secrets, token requests, the kill switch and merge holds as they were. Nothing is widened.

The test file only adds regex assertions over the step text and has no security surface.

No manifests or instruction files changed. The PR context has no embedded instructions aimed at the review. Spend: none beyond the existing eval runs.

critical-findings: 0

@github-actions

github-actions Bot commented Nov 1, 2026

Copy link
Copy Markdown
Contributor

claude-review reviewed d865905b98dab7810f3694432b76061bfb6d24c1: read 2 of 2 changed file(s); 1 finding(s), 0 as inline comments.

Code review: PR #12084

Scope: I read every hunk of both changed files: .github/workflows/eval-browser-dispatch.yml (a trusted path) and .github/scripts/plugin-eval/workflow.test.mjs. I also read the surrounding steps (Run the plugin eval, Scan the upload for credentials, Upload the eval results) to see what they gate.

Overall: The change does what it says. Each suite's summarize.mjs output is now:

  • written to $OUT/<name>/summary.md;
  • appended to the job summary;
  • printed to the job log between ::stop-commands::<random token> and ::<token>::.

How the change fits the other steps:

  • summary.md sits under runner.temp/eval-results/. In a dispatched run, the credential scan covers it before upload.
  • A pull request run writes the file, but nothing uploads it. Its job log gets only the --redact output, which already went to the public job summary.
  • The exit-code handling is unchanged. || failed=1 still follows the redirected summarize.mjs call.
  • $OUT/$name always exists here, because the step only reaches this point after results.json was found in it.

The new test anchors on each of these lines, and the step() slicing in workflow.test.mjs isolates the right block. I did not run the tests. The 15/15 pass in the PR description is the author's claim and I have not verified it.

Finding (1, advisory, inline): If a suite wrote no results.json, its NOT COMPARABLE block still goes only to $GITHUB_STEP_SUMMARY. It never reaches the job log or a summary.md. An agent reading the log (the gap #12032 is about) can't see that verdict. The new comment's claim that "each suite's summary is also printed to the job log" is also untrue for that case.

Other notes:

critical-findings: 1

Findings not posted inline (their path, line or side is malformed):

  • .github/workflows/eval-browser-dispatch.yml:594: Advisory: the no-result path never reaches the job log.

This comment says each suite's summary is also printed to the job log and kept as summary.md. That is only true when results.json exists. The if [ ! -f "$results" ] branch above (L611-616) still printfs its ### Plugin eval: … / Result: NOT COMPARABLE block only to $GITHUB_STEP_SUMMARY, then continues. It writes no summary.md and prints nothing to the log.

How it fails: dispatch a run where one suite's claude plugin eval exits before writing results.json (for example, it hits --max-cost-usd early or crashes). The job fails, but an agent reading the job log through the REST API, the gap #12032 is about, finds no verdict or reason for that suite. That suite's directory in the artifact has no summary.md either.

Fix: route that branch through the same path. Write the printf output to $summary, then let the shared cat >>"$GITHUB_STEP_SUMMARY" and stop-commands block run, setting failed=1 without the early continue. A matching assertion in workflow.test.mjs would keep it from regressing.

@kyle-sexton
kyle-sexton added this pull request to the merge queue Nov 1, 2026
Merged via the queue into main with commit a9d672c Nov 1, 2026
73 checks passed
@kyle-sexton
kyle-sexton deleted the host-run/12032-eval-health-line-log branch November 1, 2026 20:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant