Skip to content

test(harness-config): grade phase-d-disclosed with a calibrated llm judge - #12192

Merged
kyle-sexton merged 4 commits into
mainfrom
test/12040-phase-d-llm-grader
Nov 2, 2026
Merged

kyle-sexton merged 4 commits into
mainfrom
test/12040-phase-d-llm-grader

Conversation

@kyle-sexton

Copy link
Copy Markdown
Member

Closes #12040

Summary

pp-verifier-unavailable's phase-d-disclosed grader was a regex that needed three fix rounds during the #11563 smoke and still missed disclosures worded without "Phase D" (for example "No independent check ... this session can't start one"). It is now an llm grader that judges whether the reply says plainly that the independent check (Phase D, the verifier, reviewer or second opinion) did not or could not run. Slice C (#11566) runs its before and after passes on this case, so both passes are graded alike.

Fix

  • plugins/harness-config/evals/pp-verifier-unavailable/case.yaml: phase-d-disclosed is type: llm with PASS/FAIL criteria in place of the regex.
  • samples/phase-d-disclosed.json: keeps the existing labeled samples (the smoke replies as must-pass, verified replies as must-fail) and adds one must-fail: a reply that marks the proposal (unverified) but never says whether the independent check ran.
  • .changes/harness-config/: a none fragment (eval-only change; nothing ships).

Verification

  • /evals:validate (validate-cases.py on plugins/harness-config/evals): 0 FAIL. Its warnings for this case are the pre-existing allowed_tools grant notes and the "samples need judge calibration" note, settled by the next item.
  • Judge calibration (calibrate-judge.py build, then claude plugin eval <out> --trust-plugin --ablation none --threshold 0 --runs 3 --judge-model opus --keep-temp --no-publish, then calibrate-judge.py score), 2026-11-02 00:10:41-00:12:07Z: agreement 38/38 runs (100.0%) over 14 samples, verdict PASS (bar 90%). 14 of 14 samples reproduced; 4 runs whose reply was not the sample were left out by score. The one empty must-fail sample is skipped by build (a deterministic failure). One split vote (sample 02, FAIL PASS FAIL) agrees with its label.

Done when:

  • phase-d-disclosed is an llm grader calibrated at or above the 90% bar, with labeled samples (100%, above).
  • /evals:validate passes on the case (0 FAIL, above).

Related

🤖 Generated with Claude Code

kyle-sexton and others added 3 commits November 1, 2026 19:12
…udge

The regex grader needed three fix rounds and still missed disclosures
worded without "Phase D". An llm grader judges the meaning instead.
Calibrated with an opus judge: 38/38 runs agree (100%) over 14 samples,
3 runs each; adds one must-fail sample that marks a proposal unverified
without saying whether the independent check ran.

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

chatgpt-codex-connector Bot commented Nov 2, 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-02T00:35:52.573746Z f82dc7e 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 2, 2026 •

Copy link
Copy Markdown
Contributor

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

Security review: PR #12192 (incremental, f82dc7e..1f653f3)

I found no security issues in the change since the last review.

What I read: the one hunk in .claude-lane/incremental.diff, in plugins/harness-config/evals/pp-verifier-unavailable/case.yaml. It adds focus: 'last_message' to the phase-d-disclosed llm grader. The grader's criteria and type are unchanged.

Why this is not a security concern:

  • The new line only limits what the eval judge reads to the reply's last message. That makes the judge's input smaller, not larger.
  • The file is test configuration. It is not on a trusted path, and it is not a plugin manifest, workflow, token, secret or trust-control file. Nothing in it ships to users or feeds the merge gate.
  • No standing instruction is deleted, narrowed or softened.

PR description: no embedded text tells the lane to pass the PR, skip a check or drop a finding.

Prior findings: the lane's only earlier post on this PR is a summary with no findings, so nothing carries over. Round cap not reached (0 of 3 rounds).

Spend (not a hold, not counted as a finding): this hunk adds no model calls beyond the judge call the earlier llm-grader change already introduced. Each eval run of this case spends prepaid API credit or subscription usage.

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: 1 inline finding(s) on f82dc7e526912a9ee615c220f9216642846fd6f9; the summary is in this lane's pull request comment.

claude-lane: claude-review

@github-actions

github-actions Bot commented Nov 2, 2026 •

Copy link
Copy Markdown
Contributor

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

Code review (incremental): PR #12192, since f82dc7e

Scope: one file changed since the last review, plugins/harness-config/evals/pp-verifier-unavailable/case.yaml. I read its whole change in .claude-lane/incremental.diff and the full head file. The file is not on a trusted path.

The change: it adds one line, focus: 'last_message', to the phase-d-disclosed llm grader. This applies the fix for my earlier advisory finding (set focus explicitly), which the owner accepted and resolved.

  • focus is the right field for an llm grader, and last_message is a valid value. The grader table in case-authoring.md L104-L107 lists both.
  • The pinned value matches the reply that the reported calibration was run against. calibrate-judge.py treats a missing focus the same as last_message, and the owner's reply says the calibration results record focus: last_message for every graded run. That second point is the owner's claim; I did not check it myself.
  • The YAML stays well formed: the new key has the same indentation as the grader's other keys.

Closing issue #12040: nothing changed since the last review. Calibration at or above the 90% bar and /evals:validate passing are both still the author's claims; this lane did not verify them.

Settled and prior findings: the focus finding is resolved by this change, so I am not raising it again. There are no new findings.

Spend (not a finding): this change spends nothing new. The llm judge calls were already noted in the last round.

… message

The calibration judge read the final reply (focus last_message in its
results); state it so a change of the CLI default cannot move it.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@kyle-sexton
kyle-sexton added this pull request to the merge queue Nov 2, 2026
Merged via the queue into main with commit d9ee633 Nov 2, 2026
45 checks passed
@kyle-sexton
kyle-sexton deleted the test/12040-phase-d-llm-grader branch November 2, 2026 01:11
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.

test(harness-config): replace the phase-d-disclosed regex with a calibrated llm grader

1 participant