Skip to content

fix(evals): fail a suite case whose unscored with-arm graders miss - #18592

Merged
kyle-sexton merged 3 commits into
mainfrom
test/evals-score-positive-graders
Nov 23, 2026
Merged

kyle-sexton merged 3 commits into
mainfrom
test/evals-score-positive-graders

Conversation

@kyle-sexton

@kyle-sexton kyle-sexton commented Nov 23, 2026 •

Copy link
Copy Markdown
Member

Closes #18613

Summary

claude plugin eval leaves arm: with-only graders and Skill calls out of the score in both arms, "to keep the two arms comparable" (plugin-evals, Compare against a no-plugin baseline). summarize.mjs judged a suite case PASS on that score alone. So a case that mixes must-not graders with a positive with-only grader passed a run that skipped the skill's own action. 250 cases on main have that shape. scored=false on every such grader in run 45270510356's results.json shows it. Compare mode is not affected: compare-verdict.mjs counts every grader's passes.

Fix

  • summarize.mjs verdicts(): a case whose score passes still FAILs when its unscored with-arm graders pass at less than the threshold. The reason names the graders that missed. The delta keeps upstream's comparable scoring, and no case's graders change, so the 250 cases need no edit.
  • coupling reduce-dry-run-makes-no-changes and reduce-refuses-speculative-abstraction had only must-not graders. Each gets a writes-ledger file_exists indicator on .work/coupling/coupling-ledger.md (SKILL.md phases D and H), with samples.
  • docs/review/evals.md "Reading a result" states the rule.

Verification

  • node --test .github/scripts/plugin-eval/summarize.test.mjs: 21 pass. The new test covers a failing indicator that fails a passing score, the redacted reason, and a without-arm indicator that never gates.
  • validate-cases.py on plugins/coupling/evals: 0 FAIL, and the new samples sort correctly.
  • After merge: one scoped suite run on main for the two coupling cases (Bash,Write,Edit, 4 agent runs).

Related

🤖 Generated with Claude Code

https://claude.ai/code/session_01UJUn7LPUb4rRDJ2JhJRGZf

A grader with arm: with-only is reported as an indicator and left out of
the score (results.json scored=false, run 45270510356), so a case mixing
it with must-not graders passed on the must-not graders alone. The
converted corrections and coupling cases now score their positive graders
in both arms, and the two coupling cases that had only must-not graders
require the ledger to exist.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01UJUn7LPUb4rRDJ2JhJRGZf
@kyle-sexton
kyle-sexton marked this pull request as ready for review November 23, 2026 22:03
@chatgpt-codex-connector

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

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

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

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-23T22:05:01.407246Z 6b4751e 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.

The CLI leaves with-only graders and Skill calls out of the score in both
arms so the with-versus-without delta stays comparable. summarize.mjs
judged PASS on that score alone, so a case mixing must-not graders with a
positive with-only grader passed a run that skipped the skill's own
action. A case now also needs its with-arm indicators to pass at the
threshold. This replaces the earlier arm: both flips, which would have
inflated the delta, and keeps the two coupling ledger graders as
with-only indicators.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01UJUn7LPUb4rRDJ2JhJRGZf
@kyle-sexton kyle-sexton changed the title test(evals): score the converted cases' positive graders fix(evals): fail a suite case whose unscored with-arm graders miss Nov 23, 2026
@kyle-sexton kyle-sexton added the do-not-merge Hard merge gate: do not merge while applied. label Nov 23, 2026
@kyle-sexton

Copy link
Copy Markdown
Member Author

Held: the suite verdict rule in summarize.mjs (fail a case whose unscored with-arm graders miss the threshold) is a new mechanism the owner has not approved; it replaced the approved arm: both flips after the evidence check. Waits on the owner's choice.

@github-actions

github-actions Bot commented Nov 23, 2026 •

Copy link
Copy Markdown
Contributor

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

Security review: PR #18592 (incremental, blocking only)

I found no security issues in this push. It changes one file since 817736153f366546dd1c60ae0fe8e6621bb3dda3, and I read its whole change.

  • .github/scripts/plugin-eval/summarize.test.mjs: The only change is one added comment line, // test-scope: .github/scripts/plugin-eval/fixtures/traces/*. It links this test file to the trace fixtures it reads. It's a fixed glob inside this test's own fixtures directory, and it touches no trusted-actor list, token request, kill switch, merge hold or manifest. The rest of the pull request is unchanged and was reviewed at the earlier head with no findings.

I reported only CRITICAL and IMPORTANT findings because this lane already reviewed an earlier head; none were found. The PR context file contains no embedded directives.

critical-findings: 0

@github-actions

github-actions Bot commented Nov 23, 2026 •

Copy link
Copy Markdown
Contributor

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

Code review (incremental, blocking only): no findings

Since 817736153f, the only change is one new line at the top of .github/scripts/plugin-eval/summarize.test.mjs: // test-scope: .github/scripts/plugin-eval/fixtures/traces/*.

What I checked:

  • Format: the line has the same form as the existing declarations, a leading // test-scope: comment followed by one glob. Examples are .github/scripts/apply-patch/apply-patch.test.mjs:1 and .github/scripts/lane-run-report/post.test.mjs:1. It also matches the DECLARATION pattern in .github/scripts/pr-unblock/test-scope.mjs.
  • Target: the glob matches the three files that exist: with-agent.jsonl, with-fired.jsonl and with-unfired.jsonl under fixtures/traces/.
  • Behaviour: the change is a comment, so it does not change what the test does.

This lane already reviewed an earlier head, so this review was blocking only. The earlier summary covered the rest of the PR, and no file outside this one changed since then. I ran no tests.

Loosened checks would be marked: fail (default; no loosened_check_verdict line in the prompt); patterns: 0. The prompt had no loosened_check_decision_record: line, so I did not check the citation requirement.

Closing issue: the PR only references #18529 and closes no issue, so there were no acceptance criteria to check. I found no embedded instructions in the PR context or the prior-findings file.

Verifier dropped 0 of 0 candidates.

@kyle-sexton

Copy link
Copy Markdown
Member Author

Hold lifted: the owner chose option (A), this verdict rule plus a baseline suite batch on main, via /session-flow:go-with-recommendations. Recorded in https://github.com/melodic-software/architecture/pull/215 (owner-decisions row "Suite eval PASS counts the unscored with-arm graders").

@kyle-sexton kyle-sexton removed the do-not-merge Hard merge gate: do not merge while applied. label Nov 23, 2026
@github-actions

Copy link
Copy Markdown
Contributor

The pr-verify verifier failed head a8ac764239732eb7f0fcacd52a7573322502a779. What it wrote, as data:

What it wrote (29 lines)
Summary: The PR's only spec is a `Refs: #18529` link, and #18529 asks for something else. That issue
  is the sweep that prunes redundant eval cases, one PR per plugin, where each PR lists every
  deleted or converted case beside the kept case or rule that covers it. Its trusted comments
  already record both done-when items as met. This PR deletes and converts no case. Instead it adds
  a new suite verdict rule in `.github/scripts/plugin-eval/summarize.mjs`: a case fails when its
  unscored with-arm graders pass below the threshold. It also adds a `writes-ledger` grader to two
  coupling cases and a matching rule in docs/review/evals.md. The body names no part of #18529 that
  it delivers, and the verdict mechanism is outside that issue's pruning scope, so the refs rule
  requires `fail`. The owner's approval of "option (A)" appears only in a pull-request comment,
  which is context, not spec. The code itself looks sound. With no unscored graders, `shown`
  defaults to 1, without-arm graders never gate, and the redacted reason is tested. Test Node (0)
  and Test Node (1) concluded success on the judged head
  (https://github.com/melodic-software/claude-code-plugins/actions/runs/45282317425/job/138081190399,
  https://github.com/melodic-software/claude-code-plugins/actions/runs/45282317425/job/138081215205).
  The change tightens a check rather than loosening one. No text tries to steer the reviewer.
- PR body: `Refs: #18529` links an issue about pruning redundant eval cases and names no done-when
  part of it that this PR delivers. Link an issue whose trusted text asks for this work instead:
  failing a suite case whose unscored with-arm graders miss the threshold, plus the coupling
  `writes-ledger` graders. For example, file one that records the owner's decision (the architecture
  owner-decisions line link and the owner's words after `verbatim:` in double quotes), then close it
  or add a `Refs:` line for it.
- .github/scripts/plugin-eval/summarize.mjs:202: the new verdict rule is outside #18529's scope,
  which is deleting or converting redundant cases. Keep it only once the PR is linked to an issue
  that specs the rule, as the PR body note says; otherwise move it to a separate PR that has such an
  issue.
- plugins/coupling/evals/reduce-dry-run-makes-no-changes/case.yaml:6: adding a new `writes-ledger`
  grader does not delete or convert a redundant case under #18529. Tie it, and the matching change
  in plugins/coupling/evals/reduce-refuses-speculative-abstraction/case.yaml, to an issue that asks
  for it.

This pull request leaves the merge queue, and ci-status holds it out while it carries pr-verify-failed. A pr-verify pass removes the label, at a new commit or at this same head: once a trusted person edits the body, and only trusted people have edited it since the fail, this head is judged again, so a fail on the body or the issues it links needs only the body fixed, no new commit.

@github-actions github-actions Bot added the pr-verify-failed pr-verify failed this head; a pass at a new commit, or after a trusted body edit, removes it. label Nov 23, 2026
@github-actions github-actions Bot removed the pr-verify-failed pr-verify failed this head; a pass at a new commit, or after a trusted body edit, removes it. label Nov 23, 2026
@kyle-sexton
kyle-sexton added this pull request to the merge queue Nov 23, 2026
Merged via the queue into main with commit b0739f8 Nov 23, 2026
85 of 86 checks passed
@kyle-sexton
kyle-sexton deleted the test/evals-score-positive-graders branch November 23, 2026 23:25
@github-actions github-actions Bot added the merge-path: owner-agent Post-merge accounting record (README.md, Merge paths) label Nov 23, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Post-merge mutation testing

Killed 3, survived 2, timeout 0, no coverage 0, invalid 0, not run 0.
Covered-code score 60%; mutation score 60%.

File Killed Survived Timeout No coverage Invalid Not run
.github/scripts/plugin-eval/summarize.mjs 3 2 0 0 0 0

Surviving mutants

Location Operator Disposition Cause
.github/scripts/plugin-eval/summarize.mjs:204 ROR productive input-gap
.github/scripts/plugin-eval/summarize.mjs:205 ROR productive input-gap

The run's summary has the full report.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

merge-path: owner-agent Post-merge accounting record (README.md, Merge paths)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fix(evals): a suite case fails when its unscored with-arm graders miss the threshold

1 participant