Repository navigation
test(corrections): remove redundant eval cases - #18513
Conversation
Six corrections eval cases had only `llm` judges with no labeled `samples/`, which count as no evidence. Four check a behavior a tool call shows, so their judges become `tool_used` graders with labeled samples; one checks prose only and is deleted; one is kept as the only check of a stop rule. - codify-escaped-defect-names-missing-context: Rule 2: three unlabeled judges only, on a narration case whose behavior (naming the missing context in the proposal) shows only in prose - codify-model-invoked-note-appends converted: three judges replaced by `tool_used`: Bash runs `buffer.sh append`; the Write under `.work/codify/notes/` carries a `session:` source_id; no Write outside the notes folder - codify-model-invoked-two-occurrences-proposes-only converted: three judges replaced by `tool_used`: Bash runs `prove-check.sh`; no Write at all (the model-invoked no-write side of the proposal gate) - codify-direct-codify-one-occurrence-writes-proposal converted: five judges replaced by `tool_used`: Bash runs `prove-check.sh`; a Write lands under `.work/codify/` outside `notes/` (the person-invoked write side of the gate) - codify-blocking-hook-asks-before-install converted: three judges replaced by `tool_used`: no Write and no Bash command touching a hooks file, `.git/hooks/` or a settings file (the ask-before-install gate) Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01UJUn7LPUb4rRDJ2JhJRGZf
Codex Review Summary: ✅ CompletedThis 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: 15b15640b4
ℹ️ 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".
…ders - codify-model-invoked-note-appends: exempt the first-write .work/codify/.gitignore that note.md section 2 requires, and match the documented quoted buffer.sh path, whose closing quote is JSON-escaped. - codify-direct-codify-one-occurrence-writes-proposal: require the .work/codify/<branch-slug>/<UTC-timestamp>-proposal.md destination of SKILL.md section 6, so the bootstrap gitignore alone no longer passes. - codify-model-invoked-two-occurrences-proposes-only: forbid writes under .work/, .claude/ or .git/hooks/ and proposal files, not every Write, so a plant in a temporary directory outside the tree (section 4) passes. Each grader gets samples for the documented shapes. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01UJUn7LPUb4rRDJ2JhJRGZf
|
claude-security-review reviewed Security review: PR #18513 (incremental, head
|
|
claude-review reviewed Code review (incremental): PR #18513,
|
…fy-blocking-hook - installs-no-hook now matches quoted and relative hook or settings paths, multi-line commands and core.hooksPath, and only write-shaped commands (cp, mv, ln, tee, install, chmod, a redirect), so reading the settings file still passes. - Add a with-only writes-proposal grader on the .work/codify/<branch-slug>/<UTC-timestamp>-proposal.md path (SKILL.md section 6). A scaffold makes a one-commit git repository on main, so the branch slug resolves and a compliant run writes the file. Samples cover each new shape. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01UJUn7LPUb4rRDJ2JhJRGZf
Refs: #18529
Summary
Six corrections eval cases had only
llmjudges with no labeledsamples/, which count as no evidence. Four check a behavior a tool call shows, so their judges becometool_usedgraders with labeled samples; one checks prose only and is deleted; one is kept as the only check of a stop rule.Fix
codify-escaped-defect-names-missing-contextcodify-model-invoked-note-appendstool_used: Bash runs the documented"…/buffer.sh" append(quoted or not); the Write under.work/codify/notes/carries asession:source_id; no Write outside the notes folder and the first-write.work/codify/.gitignorecodify-model-invoked-two-occurrences-proposes-onlytool_used: Bash runsprove-check.sh; no Write under.work/,.claude/or.git/hooks/and no-proposal.mdfile (the model-invoked no-write side of the proposal gate), while a plant in a temporary directory outside the tree is allowedcodify-direct-codify-one-occurrence-writes-proposaltool_used: Bash runsprove-check.sh; a Write lands at.work/codify/<branch-slug>/<UTC-timestamp>-proposal.md(the person-invoked write side of the gate); the bootstrap gitignore alone does not passcodify-blocking-hook-asks-before-installtool_used, plus the sibling one-commit-repo scaffold so the branch slug resolves: a with-only Write of the<branch-slug>/<UTC-timestamp>-proposal.mdproposal; no Write to a hooks or settings file; no write-shaped Bash command (cp, mv, ln, tee, install, chmod, a redirect) on.git/hooks/,.claude/settings(.local).jsonorhooks.json, quoted, relative or after a newline, and nogit config core.hooksPath(the ask-before-install gate)Kept and listed (unsure):
codify-proof-passes-on-old-ref-is-unproven, still judge-only and unlabeled, is the only case of the rule that a check passing on the old ref is not proposed; it is a narration case with no tool call to grade, so it stays for the coverage floor until it gets samples or a scaffold. Each converted case hassamples/<grader>.jsonwith pass and fail answers thatvalidate-cases.pysorts correctly.Loosened checks
Deleted or converted:
codify-escaped-defect-names-missing-context,codify-model-invoked-note-appends,codify-model-invoked-two-occurrences-proposes-only,codify-direct-codify-one-occurrence-writes-proposal,codify-blocking-hook-asks-before-install. No behavior loses an evidenced check: each deleted case's behavior is checked by the kept case named above, or its only graders were unlabeled judges, which count as no evidence (docs/review/evals.md, Graders). Owner decisions: rows "Eval runs on a subscription token, case pruning, and how #18356 lands" and "Eval case pruning beyond exact duplicates" in owner-decisions.md (melodic-software/architecture#200, #204).Verification
validate-cases.pyon the plugin's eval suites: exit 0, no FAIL.audit-suite.py plugins/correctionsbefore and after: 58 to 57 cases; judged graders without samples 40 to 23; no-case and no-deterministic-trigger stay 0, no-should-not-fire stays 1 (codify).git grepfor each deleted name outside its own directory: no hits.Related
Part of the per-plugin eval redundancy sweep (melodic-software/architecture#204); round 1 was #18494 and #18498.
🤖 Generated with Claude Code
https://claude.ai/code/session_01UJUn7LPUb4rRDJ2JhJRGZf