Repository navigation
Conversation
Adds .github/workflows/plugin-eval.yml (workflow_dispatch only), the docs/reference/plugin-eval.md reference page, and a README link. The job caps spend at --max-cost-usd 10, uses --threshold 0.9 to absorb the qa-gaps-marker flake from #993's QA, and gates on parsing results.json directly so the null-run-canary's expected failure doesn't fail the suite while a real regression does. Entire-Checkpoint: db1f25e5702d
5 tasks
QA found the job's pass/fail logic contradicted the flags it passed. Five
fixes, per the runner's fix-round directive:
1/2. The gate and the flag now use one bar. `--threshold 0.8` is load-bearing
again: `|| true` is gone, the CLI's exit status is captured and mapped
explicitly (0 = canary cleared the bar, so the graders are vacuous;
1 = expected, confirmed against results.json; 2 = budget abort), and the
per-case check reads `.aggregates.score` against the same 0.8. The old
`passRate >= 1` gate was stricter than the threshold it was supposed to
relax, so qa-trust-boundary's known-flaky grader produced a false red on
most dispatches.
3. `--scaffold` added. assess-dashboard's case.yaml declares a
scaffold_script that writes the two issue fixtures its prompt reads;
scaffolding is off by default, so the case could never pass in CI.
4. A truncated run now fails loudly. `.partial` and a short `cases` array
are both checked before anything else is read, so a run aborted at the
budget ceiling can no longer report green on the subset it evaluated.
The case-count check also names an absent canary instead of comparing
against an empty string.
5. docs/reference/plugin-eval.md rewritten to describe the gate that ships,
including the arithmetic behind the 0.8 bar and the ~$7.10 projected
spend against the $10 ceiling.
`--runs 2` replaces the per-case defaults: two runs is the smallest number
that can absorb a single flaked run, and it cuts projected spend from ~$9.05
to ~$7.10.
Gate logic verified against nine scenarios built from #993's recorded
evals/results/*.json — healthy, flake-absorbed, partial, truncated, canary
green, canary partial, canary absent, budget abort, case regressed.
Adds the missing CHANGELOG [Unreleased] entry.
Entire-Checkpoint: 2e96d9e30322
admarble
deleted the
feature/994-ci-evals-manual-dispatch-plugin-eval-workflow-with
branch
September 8, 2026 15:46
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
.github/workflows/plugin-eval.yml— aworkflow_dispatch-only CI job that runs the fullevals/suite (qa-trust-boundary,spec-ac-parse,assess-dashboard,null-run-canary) in oneclaude plugin evalinvocation, capped at--max-cost-usd 10(OQ-7). Plusdocs/reference/plugin-eval.mdand one README link line.CLAUDE_CODE_WALNUT_SPIRE=1lives only in the workflow's ownenv:— never in.claude/settings.json/.claude/settings.local.json. TheANTHROPIC_API_KEYsecret check fails loudly, naming the secret, rather than skipping silently or fabricating a green run.How the job decides pass/fail
null-run-canaryis red by construction, so a healthy suite always leaves exactly one case below the bar and the CLI always exits1. The job maps that status explicitly instead of trusting or discarding it:01results.jsonthat it is only the canary2Before any of that, a truncated run is rejected:
.partial == true, or acasesarray shorter than 4, fails and names the budget — so a run aborted mid-suite can no longer report green on the subset it managed to evaluate. Because the case-count check runs first, an absent canary is named rather than compared against an empty string.--threshold 0.8and the per-case gate use the same number against the same field (.aggregates.score), so the flag and the gate cannot disagree.--runs 2is the smallest number that can absorb one flaked run ofqa-trust-boundary's known-flakyqa-gaps-markergrader: one flaked run of two scores(1 + 2/3)/2 = 0.833(clears), two score0.667(does not).--scaffoldis required forassess-dashboard, whosecase.yamldeclares ascaffold_scriptthat writes the two issue fixtures its prompt reads by name.Projected spend at these settings is ~$7.10 against the $10 ceiling, from #993's recorded per-case costs (both ablation arms included).
AC Verification
grep -c 'workflow_dispatch' .github/workflows/plugin-eval.yml→1;grep -c 'pull_request|push:' …→01/0grep -E 'max-cost-usd [0-9]+' …;grep -c -- '--threshold' …→1--max-cost-usd 10; threshold count1actions/upload-artifactstep uploads the eval results dir; one green run URL in PR bodygrep -rn 'WALNUT' .claude/settings.json .claude/settings.local.json 2>/dev/null | wc -l→00test -f docs/reference/plugin-eval.md; content grep ≥3;grep -c 'plugin-eval' README.md≥15; README1AC-3 is blocked on two owner actions, not on this branch
The secret.
gh secret listreturns empty — the repo has no secrets today.gh secret set ANTHROPIC_API_KEYThe default branch. GitHub only exposes a
workflow_dispatchworkflow once its file is on the default branch. Until this merges,gh workflow listdoes not show Plugin Eval andgh run list --workflow=plugin-eval.ymlreturnsHTTP 404— so the green run cannot be produced from this branch even with the secret set. Verified:git cat-file -e origin/main:.github/workflows/plugin-eval.yml→ absent.After merge:
Test plan
npm run lint— passesnpm run build— passesnpx js-yaml .github/workflows/plugin-eval.yml)claude plugin evalcases, null-run canary, fixture_commit gate (#987 P1) #993's recordedevals/results/*.json: healthy → pass; one flaked run (0.833) → pass;.partial=true→ fail; 3 cases → fail naming those present; CLI exit0→ fail (vacuous graders); CLI exit2→ fail naming the budget; a case at0.75→ fail naming it; canary at0.5→ fail; canary absent → fail naming the cases present.Known unrelated failure
__tests__/evals-fixture-commit.test.tsfails locally (5 cases) on this branch and on its parent — it is not caused by this change, which touches no file the test reads. #993's PR was squash-merged, so thefixture_commitSHAs recorded inevals/results/*.jsonare pre-squash branch commits and are not ancestors ofmain. The test's shallow-clone guard hides this in CI (the objects are absent there, so ancestry is unevaluable and the assertion is skipped), which is why CI is green while a local checkout that still has the #993 objects is red. Belongs to #993/#830, not here.Closes #994