Skip to content

test(evals): fix graders, judges and cases from captured replies - #18726

Merged
kyle-sexton merged 2 commits into
mainfrom
test/evals-fix-graders-from-replies
Nov 24, 2026
Merged

kyle-sexton merged 2 commits into
mainfrom
test/evals-fix-graders-from-replies

Conversation

@kyle-sexton

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

Copy link
Copy Markdown
Member

Refs: #18655
Refs: #18609

Summary

The baseline run's captured final replies (both arms, per case) show three kinds of eval defect
that are not skill defects: a regex that fails a reply doing what expected_outcome asks, a judge
rubric asking for stale or unseen behavior, and a case whose setup never reaches the behavior it
tests. This PR fixes each one it could confirm from the case files and the two replies. No skill,
agent or reference file changes. The owner decision is option (A) of
owner-decisions.md#L393.

Fix

Plugin Case Grader Change
actionlint su-check-default toggle-reported allow the before the value (is the default true)
architecture deepening-dependent-candidates-one-tree first-question-on-tax also match a First question/Question 1 block naming tax, so a closing question after the options no longer fails it (kept rather than dropped as in #18609)
bash-format su-check-green-not-every-edit-covered unset-guard-skipped → unset-git-scoped judge and expected_outcome follow hooks/hook-utils.sh:1845-1862: unset CLAUDE_PROJECT_DIR falls back to git working-tree membership, fail-closed without git
codebase-health audit-planted-drift confidence-tag accept unverified with verification: skipped, which SKILL.md requires under light
context-usage ck-notice-runs-bundled-checker ran-checker removed, with its samples: no skill or contract asks the run to execute prerequisites.mjs check. The prompt is unchanged from main; expected_outcome now names scripts/check-mod-load.sh, which ran-probe-script grades, and no-install stays
coupling reduce-collision-hotspots-fall-back-without-gh gap-line-names-missing-gh rubric accepts a gap: line or a Gaps entry; orphan attempts-collision-hotspots samples removed
discipline dyr-fanout-bounded-waves, dyr-fanout-tiered-ledger, dyr-fanout-worker-error-retry-once all fan-out graders the shared gateway seed takes a level; these three seed verification: standard on a local origin's default branch (the level-textkit.sh pattern), since under light the fan-out dispatches nothing
discipline pfp-coupling-priced coupling-costs-named exit-cost lookahead also takes remove/removal (kept rather than deleted as in #18609)
disk-hygiene su-apply-points-writes-nothing guidance-only toggle guidance required only when the toggle is off; all-pass already configured passes
docs-naming audit-plans-renames-tiers-frozen report-count-stated allow a parenthetical after sites (Frozen sites (report): there are 4)
docs-naming audit-plans-renames-tiers-frozen rows-and-tiers rubric asks sites grounded in the sweep output, not raw sweep rows quoted verbatim
formal-verification sp-bare-proposes-writes-nothing proposal-fields new scaffold commits a small job queue with a one-worker claim promise, so bare specify has a file:line to propose from
planning brainstorm-handoff-block-written handoff-carries-content focus: trace, so the judge sees the written handoff file its rubric names
session-flow recall-states-scope-searched scope-stated accept directory listing came back empty as the zero count
toolchain ratchet-refuses-duration names-a-counter-instead FAIL only a build-failing wall-time ceiling, not a trend alert or per-test timeout
visualization viz-diagram-target-fallback override-read regex on the layer line SKILL.md Step 3 prints, in place of a Read call the run did not make
visualization viz-personal-override-medium, viz-team-file-medium source-fence-notice accept has not been rendered and a backticked mmdc

Dropped: context7 lk-uncovered-bounded-fallback lookup-attempted. The proposed stub ctx7 on
PATH cannot come from a case scaffold, because the skill's pre-computed ctx7 --version line runs
on the runner's PATH; with no CLI the skill tells the user it is missing, as the reply did.

Every changed deterministic grader matches the with-arm reply and still fails the without-arm reply
where it did before; each has rewritten samples (no raw reply text).

Verification

  • validate-cases.py and check-matchers.py on all 14 touched plugins' suites: 0 FAIL (node and
    bun on PATH).
  • Each changed regex run under node against both captured replies: matches the with-arm reply; rejects the without-arm reply except architecture first-question-on-tax, which that reply already passed.
  • The discipline seed and the formal-verification scaffold run in a scratch directory;
    read-verification.sh there prints verification: standard (... at origin/main ...), and the
    job-queue test passes.
  • scripts/check-affected.sh: 22 passed, 2 skipped.
  • No eval run here; the run these grader, prompt and scaffold changes owe is set by
    docs/review/evals.md "Where and on what".

Related

🤖 Generated with Claude Code

The baseline run's captured final replies show graders that fail a reply
doing what the skill says, judges whose rubric asks for stale or unseen
behavior, and cases whose setup never reaches the behavior they test.
Each fix is checked against both arms' captured replies; changed
deterministic graders carry rewritten samples.

Refs: #18655
Refs: #18609

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 24, 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-24T05:26:54.433664Z 9c698d1 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 24, 2026 •

Copy link
Copy Markdown
Contributor

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

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

I found no security issues in this push.

I read every hunk of the 6 listed files in the incremental diff. I also read the whole deletion of plugins/context-usage/evals/ck-notice-runs-bundled-checker/samples/ran-checker.json, which is in the diff but on no list. Every change is eval test material:

  • architecture first-question-on-tax: the grader regex is tightened and one sample is added.
  • codebase-health confidence-tag: the grader regex no longer accepts a bare unverified, and two fail samples are added.
  • context-usage ck-notice-runs-bundled-checker:
    • the ran-checker tool_used grader and its sample file are removed;
    • the prompt drops its request to run the notice's diagnose command;
    • description and expected_outcome are reworded to match.

The context-usage change leaves the no-install must-not grader in place, so the case still checks that nothing is installed or downloaded. Removing the instruction to run a command narrows what the eval prompt asks the model to do. No grader in this push gates anything in the merge pipeline; each one only scores model replies.

Other checks:

  • Trusted paths: no changed file matches a TRUSTED PATHS: glob.
  • Other surfaces: no manifest, workflow, skill, agent or hook file changed.
  • Instruction-surface lens: this push removes no standing instruction.
  • PR description: it holds no embedded directives to the lane.

Prior findings: the one prior entry is this lane's clean summary from 9c698d1c, with no findings to restate. The review was blocking only (blocking only: yes).

Spend: none of this changes spend directly. Re-running the touched eval cases would use prepaid eval-run credit, which is not a hold.

critical-findings: 0

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

claude-review: 3 inline finding(s) on 9c698d1c68dab8af98e8dd34e6749a531e944ece; the summary is in this lane's pull request comment.

claude-lane: claude-review

@github-actions

github-actions Bot commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

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

Code review: PR #18726, incremental since 9c698d1c

This is an incremental review of the push cf02d07 ("tighten three graders after review"), covering the 6 listed files. This lane already reviewed an earlier head (blocking only: yes), so I report only blocking findings and drop advisory ones.

The push answers this lane's three earlier inline findings:

  • architecture first-question-on-tax: the first question branch now needs a (, : or dash right after the header, and the tax word within 40 characters with no ), ?, : or . in between. I checked the new fail sample (Before the first question, the order: tax …) by hand: it fails both branches. All three pass samples still match, and the other fail samples still fail.
  • codebase-health confidence-tag: unverified is out of the first three branches and now passes only next to verification: skipped. By hand, the two new fail samples (Confidence: unverified. and the | unverified | row) fail every branch, and the light-level pass sample still matches branch 4.
  • context-usage: the prompt line Run the diagnose command it ends with, too. is reverted, and ran-checker is deleted instead (inline comment).

I did these checks by reading the regexes. I didn't run them or any eval. The PR's verification list is the author's claim and I haven't confirmed it.

Blocking

  1. Fail a change that loosens a check (kind 1/6), context-usage ran-checker removed. See the inline comment on case.yaml base lines 6-10. No spec and no PR-body ## Loosened checks section names the removal. The PR body's Fix table row for this case still describes the reverted prompt change.

  2. Fail a change that loosens a check (kind 9: a check's own code changed so it accepts more), restated from the earlier summary for the files in this scope. Both graders are narrower after this push but still accept more than they do on the base branch. Neither the spec nor a ## Loosened checks section in the PR body names them:

    • architecture first-question-on-tax gains the first question / question 1 header branch: case.yaml#L35
    • codebase-health confidence-tag gains the unverified … verification: skipped branch: case.yaml#L47

    The PR body's Fix table already says why for each, so moving those reasons into a ## Loosened checks section would clear both. The other loosenings in the earlier summary are in files this push didn't change, so they are outside this incremental scope.

Loosened checks would be marked: fail (plugin default, the prompt has no loosened_check_verdict/patterns lines); patterns: 0. The prompt has no loosened_check_decision_record: line, so I didn't check the citation requirement.

No closing issue: the PR only Refs: #18655 and #18609, so there are no acceptance criteria to check. The PR context has no embedded instructions to report.

No verifier subagents were dispatched; I checked the candidates directly against the diff and the sample files.

Verifier dropped 0 of 0 candidates.

critical-findings: 2

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

  • plugins/context-usage/evals/ck-notice-runs-bundled-checker/case.yaml:6: Fail a change that loosens a check (kind 1/6: a test removed). This push deletes the ran-checker grader. Before, it required a with-arm Bash call matching prerequisites\.(?:mjs|sh|ps1)...\s+check\b. Its samples file samples/ran-checker.json is deleted too. Now no grader checks whether the run executes the bundled checker. The case only requires ran-probe-script (check-mod-load.sh) and no-install.

I think dropping it is the right call: the earlier review suggested it, and the new expected_outcome ("Runs scripts/check-mod-load.sh, the check the notice names") matches what is left. But the criterion lets a removed check pass only when the spec names it, or when the PR body's ## Loosened checks section names it and says why.

Fix: add a ## Loosened checks section to the PR body. It should name ck-notice-runs-bundled-checker / ran-checker as removed, and say why: the skill never asks for the prerequisites.mjs check run, and the notice's actual instruction is check-mod-load.sh, which ran-probe-script grades. Also update the Fix table row to match.

- architecture first-question-on-tax: the tax word must sit in the
  first-question header itself, so a plan line naming the first question
  no longer passes a question on the mail sender.
- codebase-health confidence-tag: unverified passes only beside
  verification: skipped, never as a bare tag.
- context-usage ck-notice-runs-bundled-checker: revert the prompt line
  that supplied the graded behavior, and drop ran-checker, which no skill
  or contract asks for; expected_outcome names check-mod-load.sh.

Refs: #18655

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@github-actions

Copy link
Copy Markdown
Contributor

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

What it wrote (28 lines)
Summary: PR #18726 links no issue: spec.json is empty, so the spec is the pull request's own title
  and body (`source` `pull-request`). The diff delivers the Fix table row for row for actionlint,
  architecture, bash-format, codebase-health, coupling, discipline (seed level and pfp regex),
  disk-hygiene, docs-naming, formal-verification, planning, session-flow, toolchain and
  visualization. Each rewritten regex keeps fail samples: I traced the new architecture header
  branch, the codebase-health `verification: skipped` branch, the docs-naming parenthetical and the
  session-flow empty-listing branch against their pass and fail samples, and they hold. The
  discipline seed's new `level` argument is validated and does nothing when empty, so other callers
  are unchanged. The new formal-verification scaffold only builds a local git fixture. No secrets,
  takeover-set files or binary files are touched. Check Plugins, Test Python (0), Test Bash (0),
  Lint Shell and Check Skills all concluded success on the head (e.g.
  https://github.com/melodic-software/claude-code-plugins/actions/runs/45334940570/job/138245210371).
  The one blocking problem is the context-usage row. The spec says the case's `ran-checker` grader
  stays and its prompt now also asks for the notice's read-only diagnose command. The diff instead
  deletes `ran-checker` and its samples, leaves the prompt as it is on main, and rewrites
  `expected_outcome`. The spec does not describe removing that grader, and the row as written is not
  delivered. The author's review replies explain the change, but review comments are context, not
  spec.
- plugins/context-usage/evals/ck-notice-runs-bundled-checker/case.yaml:6 removes the `ran-checker`
  grader, and the diff deletes samples/ran-checker.json. The spec's Fix table says this case keeps
  `ran-checker` and its prompt asks for the notice's diagnose command. Either deliver the row as
  specified (keep the grader and make the prompt change), or keep the drop and fix the PR body as
  the next note says.
- PR body: the context-usage row of the Fix table ("prompt asks for the notice's read-only diagnose
  command too") no longer matches the diff. If dropping the grader is intended, rewrite the row to
  say `ran-checker` and its samples are removed, the prompt is unchanged from main, and
  `expected_outcome` now names scripts/check-mod-load.sh (graded by `ran-probe-script`), and give
  the reason no contract requires running `prerequisites.mjs check`.

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 pr-verify-failed pr-verify failed this head; a pass at a new commit, or after a trusted body edit, removes it. and removed pr-verify-failed pr-verify failed this head; a pass at a new commit, or after a trusted body edit, removes it. labels Nov 24, 2026
@kyle-sexton
kyle-sexton added this pull request to the merge queue Nov 24, 2026
Merged via the queue into main with commit 3da9114 Nov 24, 2026
78 checks passed
@kyle-sexton
kyle-sexton deleted the test/evals-fix-graders-from-replies branch November 24, 2026 06:05
@github-actions github-actions Bot added the merge-path: owner-agent Post-merge accounting record (README.md, Merge paths) label Nov 24, 2026
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.

1 participant