Skip to content

test(testing): widen glossary-read graders and describe the docs-path case - #14959

Merged
kyle-sexton merged 2 commits into
mainfrom
fix/glossary-eval-graders
Nov 10, 2026
Merged

kyle-sexton merged 2 commits into
mainfrom
fix/glossary-eval-graders

Conversation

@kyle-sexton

Copy link
Copy Markdown
Member

No related issue: follow-up to #14952's measured glossary fix

Summary

After #14952, testing:write reads the glossary and avoids the rejected word 3/3 in both wr-glossary-root and wr-glossary-docs-path (measured 2026-11-09). wr-glossary-docs-path still described itself as an expected failure, and glossary-read missed one real read, cat README.md docs/*.

Fix

  • wr-glossary-docs-path description now states what the case checks: the glossary at docs/glossary.md is found and used. The known-gap tag is dropped.
  • The Bash branch of both glossary-read regexes also counts a glob that covers the glossary (docs/*, docs/*.md, docs/glossary*; * or *.md at the root). ls listings still do not count.
  • New pass samples for cat README.md docs/* and cat README.md *.md, and new fail samples for ls docs/* and ls *.md.
  • patch changelog fragment for testing.

Verification

  • python3 plugins/evals/skills/validate/scripts/validate-cases.py plugins/testing/evals: 0 FAIL, including the offline grader check against the samples.
  • Left out: claude plugin eval run of the two cases.

Related

Follow-up to #14952.

🤖 Generated with Claude Code

https://claude.ai/code/session_01UJUn7MP8mf6tssdESwUFjG

kyle-sexton and others added 2 commits November 9, 2026 22:26
…h case

wr-glossary-docs-path no longer describes itself as an expected failure.
The glossary-read grader in both glossary cases now counts a Bash read
through a glob that covers the glossary (docs/*, docs/*.md, *.md at the
root), still excluding directory listings.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01UJUn7MP8mf6tssdESwUFjG
@kyle-sexton
kyle-sexton marked this pull request as ready for review November 10, 2026 03:29
@chatgpt-codex-connector

Copy link
Copy Markdown
Codex Review Summary: ❌ Failed

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

Review Status Commit Review trigger
📝 Code Review ❌ Failed 2026-11-10T03:29:20.976514Z
We couldn’t complete this review. Comment @codex review to try again.
98fdd08 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.

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

@github-actions

Copy link
Copy Markdown
Contributor

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

Security review: PR #14959

I found no security issues. I read all 5 changed files in full.

What changed:

  • Two eval cases in the testing plugin: wr-glossary-root and wr-glossary-docs-path. Their glossary-read regex graders now count a Bash cat/sed/head/… read through a glob that covers the glossary file.
  • Grader samples: each case gets one new pass sample and one new fail sample.
  • One case description: the "known gap" wording and the known-gap tag are gone from wr-glossary-docs-path.
  • A patch changelog fragment.

What I checked:

  • Trusted paths: no changed file matches a trusted-path glob. The diff touches no trust control: not the trusted-trigger check, the lane token scope, the kill switch, the token broker, a merge hold or .github/actions/.
  • Plugin manifests: no plugin.json or marketplace.json changes, so there are no manifest lines.
  • Instruction surface: the description edit removes the sentence "Do not loosen the graders to make it pass". That text is metadata for an eval case, not a standing instruction (CLAUDE.md, AGENTS.md, a rules file, a skill or agent body, or a hook list). No agent reads it as a rule at run time, and losing it removes no protected-class control. I did not need the instruction exception register for this.
  • Regex graders: the new patterns only score offline eval traces. They run no commands and reach no credentialed lane. The new alternatives are bounded, so they add no catastrophic-backtracking risk beyond the pattern the base already had.
  • PR context: I found no embedded directives in it.

Spend: none. The change does not alter run counts, turn limits, models or schedules.

critical-findings: 0

@github-actions

Copy link
Copy Markdown
Contributor

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

Code review: PR #14959, glossary-read graders and docs-path description

I read every hunk of all 5 changed files, plus the scaffold (plugins/testing/evals/fixtures/tool-library.sh), to see what the glob graders can reach. No blocking or advisory findings.

Checks

  • wr-glossary-root regex. The new root-glob branch \s(?:\./)?\*(?:\.md)?(?=[\s"\\;|&)]) needs whitespace before the * and a token boundary after it.
    • It matches: cat README.md *.md (the new pass sample), cat * and cat ./*.md.
    • It does not match: cat *.py or cat src/*.md.
    • ls *.md (the new fail sample) is still rejected by the command-word lookahead.
  • wr-glossary-docs-path regex. The new branch is docs/(?:glossary(?:\.md|\*)|\*+(?:\.md)?).
    • It matches cat README.md docs/* (the new pass sample).
    • ls docs/* (the new fail sample) is rejected by the lookahead.
    • Unlike the root pattern, it has no trailing boundary, so cat docs/*.txt would also count. The scaffold only puts docs/glossary.md in docs/, so in practice that just loosens the grader a little. I don't count it as a finding.
  • Description and tags. The wr-glossary-docs-path description now says what the graders check, and the known-gap tag is dropped. Both agree with the PR's measured result from feat(domain-driven-design)!: rename curate-language to ubiquitous-language with locate, lookup, seed, curate and audit #14952.
  • Changelog fragment. The patch bump on a testing fragment fits a fix to eval graders and metadata. No plugin manifest changed, so the manifest checks don't apply.
  • PR context. No closing issue (it's a follow-up to feat(domain-driven-design)!: rename curate-language to ubiquitous-language with locate, lookup, seed, curate and audit #14952), so there are no acceptance criteria to check. The PR body has no embedded instructions.

Verification. The validate-cases.py run showing 0 FAIL is what the author reports. I didn't run it myself, so it's unverified. The author also says they didn't run claude plugin eval on the two cases.

Spend: none beyond normal eval runs. Nothing about cost changes.

@kyle-sexton
kyle-sexton added this pull request to the merge queue Nov 10, 2026
Merged via the queue into main with commit c76e0fa Nov 10, 2026
96 of 98 checks passed
@kyle-sexton
kyle-sexton deleted the fix/glossary-eval-graders branch November 10, 2026 03:48
@github-actions github-actions Bot added the merge-path: owner-agent Post-merge accounting record (README.md, Merge paths) label Nov 10, 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