Repository navigation
test(docs-hygiene): grade wfh-grounding-readme grounding with a deterministic regex - #12941
Conversation
The LLM judge on wfh-grounding-readme split its votes on 5 of 20 runs in lane 1's 10-run measurement (#12085, 2026-11-02 19:30Z): it passed runs 3 and 4 and failed run 6, which open with the same one-sentence-late collector definition. terms-grounded is now a deterministic regex that states the skill's own test (SKILL.md: the definition goes in the first sentence that uses the term or an earlier one, never the next) for the three planted terms: the first prose sentence using each, headings excluded, must gloss, label or assume it. Samples cover the earlier probes' openings, the late-definition and never-defined shapes, near misses (a clause comma, a non-defining "is"), and paraphrased passes; validate-cases.py sorts all 20 under Python and JavaScript. Refs: #12085 Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_015te8Cqhc6ANUKyPoYQrPgN
The first regex let a heading match end mid-line, so its prefix could split in many ways. Under the CLI's JavaScriptCore engine it hit the backtrack limit and returned no match: a README that grounds all three terms took 3.5 s in Bun and was graded FAIL in the 2026-11-03 run, while V8 passed it. The prefix is now an atomic run of whole headings and whole sentences, so every reply grades in about 1 ms in Bun and in node, and both engines agree on all 20 kept replies. The spot-read of that run also showed that "This file is the checkpoint." defines the term in its first sentence and was failed; "is/are the <term>" now counts. Samples add both shapes and the late-definition openings from that run. Refs: #12085 Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_015te8Cqhc6ANUKyPoYQrPgN
…g-readme With main's rule loaded, the regex terms-grounded grader passed 1 of 10 with-plugin runs and 0 of 10 without (Claude Code 2.1.317, claude-opus-5-5, run-validity VALID). Nine with-plugin READMEs define collector one sentence after first using it. Refs: #12085 Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_015te8Cqhc6ANUKyPoYQrPgN
…rounding regex typos rejects the bare stem in the pattern. The listed forms grade all 24 samples and the 40 kept replies from both runs as before. Refs: #12085 Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_015te8Cqhc6ANUKyPoYQrPgN
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 8459d6347f
ℹ️ 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".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
…s as spaces
The terms-grounded regex accepted a naming or assumption word anywhere
earlier in the sentence, so "files, called sources, and ships every line
to your collector" graded collector as grounded. Naming cues (called,
named, known as, makes up, forms) now must lead straight into the term,
with an optional determiner; an assumption cue must sit in one clause
addressed to the reader ("assumes you ... collector"); ", called" joins
the after-term appositions.
A single newline inside a paragraph is now whitespace, so a hard-wrapped
"are called its\ntail set" passes. A blank line, a heading, a list item,
a fence or a table row still ends a sentence.
Sentence scanning steps over whole words rather than single characters:
under Bun the per-character scan returned a different verdict from Node
on soft-wrapped inputs from 10 KB; the word scan matches Node up to 20 KB. Two samples cover the unrelated naming cue and the wrapped
paragraph; the 20 replies of the 10-run measurement grade the same.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_015te8Cqhc6ANUKyPoYQrPgN
|
claude-security-review reviewed Security review: PR #12941 (incremental since 8459d63)I found no security issues. This was an incremental review. I read every hunk of all 3 files listed in its scope: What changed since the last review:
These changes close the review threads the owner resolved. I did not raise any of those points again. Security surface checked:
Prior findings: this lane has posted no inline findings on this PR (0 rounds against a cap of 3), so nothing is repeated and the round cap did not apply. critical-findings: 0 |
|
claude-review reviewed Code review: PR #12941 (incremental,
|
… fence Each term's sentence scan ran to the end of the reply, so a README that omits a term was graded on prose written after the fence. The scan now stops at the closing ```` fence: a term the README never uses passes, and a must-pass sample covers post-fence prose that uses one ungrounded. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_015te8Cqhc6ANUKyPoYQrPgN
Refs: #12085
Summary
Replaces the noisy LLM judge on
wfh-grounding-readme'sterms-groundedgrader with a deterministic regex that applieswrite-for-humans's own grounding rule to the case's three planted terms, so the measurement behind #12085's done-when 2 stops depending on split judge votes. This measures the rule; it does not meet done-when 2 (the measured result is on the issue).Fix
graders/terms-grounded.md:type: regex(flags: i,arm: both). For each of collector, checkpoint and tail set, the first prose sentence that uses the term must gloss it (colon, parenthesis, dash, apposition, "is/are a/the", "means"), label it, or define or assume it earlier in that sentence; a term the README never uses passes. Headings are not sentences. Matching is linear-time (one reply grades in about 1 ms).samples/terms-grounded.json: 9 must-pass and 15 must-fail answers, including the openings lane 1 saw the judge split on.case.yaml:expected_outcomesays "in or before the first sentence that uses each", matching SKILL.md's rule ("Its definition goes in that sentence or an earlier one, never the next"); the description records the 10-run probe.bump: none.Verification
validate-cases.py: exit 0, no finding on this case; a deliberately broken label check confirmed the samples are graded.claude-opus-5-5subject and judge,--ablation with-without, VALID: README with plugin 1/10, without 0/10; how-to 10/10 both arms. An earlier run was voided because the first regex backtracked under the CLI's engine; the linear-time fix re-grades its kept replies to the same result.check-affected.sh --tests: 13 passed, 3 skipped. gitleaks: no leaks.Related
🤖 Generated with Claude Code
https://claude.ai/code/session_015te8Cqhc6ANUKyPoYQrPgN