Skip to content

fix(testing): make the glossary-reader graders discriminate and print the Glossary line - #16992

Merged
kyle-sexton merged 4 commits into
mainfrom
test/testing-glossary-reader-graders
Nov 18, 2026
Merged

kyle-sexton merged 4 commits into
mainfrom
test/testing-glossary-reader-graders

Conversation

@kyle-sexton

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

Copy link
Copy Markdown
Member

No related issue: a gap found in the domain-language workshop's close-out audit, built here instead of filed.

Summary

The three glossary-reader eval cases in the testing plugin could not tell a run that read the glossary from one that did not: the canonical-term grader passed in the control case too, because the control names the feature "loan" unprompted. Nothing graded the Glossary: <path | none> line /testing:write is required to print, and measuring it showed the skill printed it in only 5 of 9 runs.

Fix

  • Keeps canonical-term and corrects each case's description: it passes in the control too, so no-rejected-term and the new line grader are what separate the cases.
  • Adds a trace grader for the line: glossary-line in the root and docs-path cases (the run's own text must name that case's glossary file) and glossary-none in the absent case.
  • /testing:write: one sentence now says the line is a plain line, repeated in the final summary, and that prose naming the glossary does not replace it.

Verification

  • Rule set before the after-run: ship the skill change at 8 of 9 or more with-plugin line passes with no other with-plugin grader dropping. Result: 5 of 9 before, 9 of 9 after; no other grader dropped. All six single-case runs (3 runs per arm) read VALID.
  • Without the plugin the line graders pass 0 of 3 in every case, before and after.
  • Traces were read for passing and failing runs. Every miss before the change named the glossary only in closing prose. After it, the line appears in the final summary; the "before the first test" placement was not seen in the traces read.
  • canonical-term was applied offline to the 18 kept after-run workspaces: it matches in 17, with and without the plugin alike (the one miss is a control run of the absent case).
  • Two earlier runs were INVALID (a Docker config link reappeared mid-run; a cost ceiling stopped the second) and are reported as no result.
  • Eval case validation: no FAIL. check-skill on the write skill: PASS, no new warning. scripts/validate-plugins.sh and markdownlint exit 0.
  • Left out: one input per case, so the runs are too small to state a noise band.

Related

  • N/A

session: AI Hero

🤖 Generated with Claude Code

kyle-sexton and others added 3 commits November 17, 2026 18:00
canonical-term passed in every wr-glossary-absent run because the
control names the feature loan unprompted, so it could not separate a
run that read the glossary from one that did not. It is dropped from all
three cases with its samples: a grader weight must be positive, so it
cannot be demoted to a non-scoring check.

wr-glossary-root and wr-glossary-docs-path gain glossary-line, a trace
grader that passes only when an assistant text block prints the
`Glossary: <path>` line testing:write requires, naming that case's
glossary file. wr-glossary-absent gains glossary-none, which passes only
on `Glossary: none`, the skill's stated output with no glossary. Each has
samples with passing and failing answers. The absent case's description
now names no-rejected-term as the term measure.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…e summary

testing:write printed its required `Glossary: <path | none>` line in 5 of 9
with-plugin eval runs. The runs that skipped it read the glossary and
named it only in closing prose; the runs that printed it did so in the
final summary. The instruction now says where the line goes (its own
plain line before the first test, repeated verbatim in the final
summary) and that prose naming the glossary does not replace it.

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

chatgpt-codex-connector Bot commented Nov 18, 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-18T00:29:20.298145Z 64cf481 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 18, 2026 •

Copy link
Copy Markdown
Contributor

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

Security review (incremental, blocking only): no security issues found

Scope: this review covers only the changes since 64cf481c. I read every hunk of the 3 files listed in the incremental diff. Because this lane already reviewed an earlier head, this review reports only CRITICAL and IMPORTANT findings.

What changed

  • Each of the three glossary-reader eval cases gets back a canonical-term regex grader:
    • plugins/testing/evals/wr-glossary-absent/case.yaml
    • plugins/testing/evals/wr-glossary-docs-path/case.yaml
    • plugins/testing/evals/wr-glossary-root/case.yaml
  • The grader is case-insensitive, uses the pattern loan, and targets the file tests/test_tool_library.py, a fixed relative path inside the scaffolded eval workspace.
  • The description and expected_outcome prose of those cases is updated to match.

Checks

  • Trusted paths: no changed file matches a TRUSTED PATHS glob.
  • Trust controls and manifests: the change touches no trust control, merge hold, workflow, token request, kill switch or .claude-plugin/*.json manifest. No manifest lines apply.
  • Instruction surface: no standing instruction is deleted, narrowed or softened. Only eval-case prose and graders changed.
  • Grader: the regex is a fixed literal, so it cannot cause catastrophic backtracking. The file path is hard-coded and relative to the eval workspace, and no untrusted input reaches it. The grader runs only in the eval harness and touches no credentials or credentialed lane.
  • Spend: runs, max_turns, timeout_seconds and allowed_tools are unchanged. The only spend is the usual eval-run usage.
  • PR context: the description contains no embedded text addressed to this lane. It still describes dropping canonical-term, which this push brings back; that mismatch is not a security matter.

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 64cf481cc7c106a5c2f09585cad475e883955d21; the summary is in this lane's pull request comment.

claude-lane: claude-review

@github-actions

github-actions Bot commented Nov 18, 2026 •

Copy link
Copy Markdown
Contributor

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

Code review: PR #16992 (incremental since 64cf481, blocking only)

What changed in this push: the canonical-term file grader is back in all three glossary-reader cases (wr-glossary-root, wr-glossary-docs-path, wr-glossary-absent). It is identical to the base grader: tests/test_tool_library.py, flags: i, pattern: 'loan'. Each case's description and expected_outcome now say that canonical-term passes in the control too, and that no-rejected-term and the Glossary: line graders are what tell the cases apart.

Prior finding resolved: the earlier blocking finding said that removing canonical-term loosened the check (thread). That no longer applies. The full PR diff no longer removes the grader or its samples/canonical-term.json files: all three sample files are still in the tree, unchanged from base. The PR now only adds the glossary-line and glossary-none graders, so no check is loosened.

Checked by reading (I ran nothing):

  • The restored graders match the base definitions word for word.
  • The new description text is consistent across the three cases.

Note, not counted as a finding: the PR body's Fix section still says it "Drops canonical-term from all three cases". That no longer matches the diff, so the description is worth updating.

Loosened-check verdict: fail (default, no loosened_check_verdict: line from the wrapper); patterns: 0 (no loosened_check_patterns: line, so no consumer entries). Nothing in this push loosens a check.

The PR closes no issue, so there are no acceptance criteria to check. The PR context contains no embedded instructions. This review was blocking only. No hold applies: running these eval cases spends only prepaid run budget.

Verifier dropped 0 of 0 candidates.

Restore the canonical-term grader and its samples in the three
glossary-reader cases as they are on main. The descriptions now say both
term graders are graded, and that the control names the feature loan
unprompted, so no-rejected-term and the glossary line graders are what
separate the cases.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@kyle-sexton
kyle-sexton added this pull request to the merge queue Nov 18, 2026
Merged via the queue into main with commit 98cbb8e Nov 18, 2026
89 of 90 checks passed
@kyle-sexton
kyle-sexton deleted the test/testing-glossary-reader-graders branch November 18, 2026 02:11
@github-actions github-actions Bot added the merge-path: owner-agent Post-merge accounting record (README.md, Merge paths) label Nov 18, 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