Repository navigation
test(coupling): remove redundant eval cases - #18526
Conversation
Six /coupling:reduce cases had only unlabeled llm judges. Replace them with tool_used graders on the calls their behavior shows, keep each prompt, and add labeled samples that validate-cases.py sorts correctly. - reduce-collision-hotspots-fall-back-without-gh converted: Bash runs `git log` (co-change from history when gh is missing); no Edit outside `.work/` - reduce-dry-run-makes-no-changes converted: no Edit or Write outside `.work/`; no `git checkout -b`, `switch -c` or `push` - reduce-duplicate-writer-ledgered-and-handed-off converted: no Edit outside `.work/`; a Write under `coupling/<branch>/`; no Write under `reviews/` - reduce-full-pass-splits-lanes-and-ledgers converted: an Edit under `src/` touching the `archived` magic string; a `git checkout -b` or `switch -c` for the batch - reduce-refuses-speculative-abstraction converted: no Write or Edit adding an interface, EventBus, EventEmitter or Mediator - reduce-second-list-hotspot-design-it-twice converted: Bash runs `derivable-list.py`; no Edit or Write to `config/services.json` 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: 9e690cc506
ℹ️ 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".
- reduce-collision-hotspots-fall-back-without-gh: co-change mining needs per-commit file lists (git log, diff-tree or show with --name-only, --name-status, --numstat or --stat), so the gather block's `git log --oneline -10` no longer passes alone. - reduce-dry-run-makes-no-changes: forbid new files in the docs scope, not every Write outside .work/, since the second-list check may write its path list to a scratch file with the Write tool. - reduce-duplicate-writer-ledgered-and-handed-off: forbid edits to the writers under app/ only, since a full pass may apply other contained reductions. - reduce-full-pass-splits-lanes-and-ledgers: accept `git worktree add -b` as well as checkout -b and switch -c for the short-lived branch. Each change 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 #18526, incremental (
|
|
claude-review reviewed Code review (incremental, blocking only): d28b9a4 → b75e79cThis lane already reviewed an earlier head of this pull request, so this review reports blocking findings only. I read every hunk of all 12 files in the incremental diff. For context I also read No blocking findings. All four findings from the previous round are fixed:
Other checks:
Verifier dropped 0 of 0 candidates. |
- fall-back-without-gh: add attempts-collision-hotspots (a Bash call to collision-hotspots.sh), rename the co-change grader mines-co-change, and restore the gap-line judge, listed as judge-only. - dry-run: forbid every Write outside .work/ and /tmp/, and match a git push that starts a line of a multi-line command. - full-pass: add shared-database-not-applied, which forbids edits under services/, the scaffold's shared-database files. - refuses-speculative-abstraction: ignore writes to the .work/ ledger, which may record a rejected interface or event bus, and match a declaration that follows an escaped newline. 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
Seven coupling cases had only
llmjudges with no labeledsamples/, which count as no evidence. Six check a behavior a tool call shows, so their judges becometool_usedgraders with labeled samples, prompts unchanged; the seventh is kept as the no-fire side of the second-list check.Fix
Deleted: none.
reduce-collision-hotspots-fall-back-without-ghcollision-hotspots.sh(the attempt); Bash mines co-change with git log, diff-tree or show plus --name-only, --name-status, --numstat or --stat (the gather block'sgit log --onelinedoes not pass); no Edit outside.work/. The gap-line judge stays, judge-only and unlabeledreduce-dry-run-makes-no-changes.work/; no Write outside.work/or/tmp/; nogit checkout -b,switch -corpush, including at the start of a line in a multi-line commandreduce-duplicate-writer-ledgered-and-handed-offapp/; a Write undercoupling/<branch>/; no Write underreviews/reduce-full-pass-splits-lanes-and-ledgerssrc/touching thearchivedmagic string; no Edit underservices/(the shared-database files stay in the route lane); agit checkout -b,switch -corworktree add -bfor the batchreduce-refuses-speculative-abstraction.work/adding an interface, EventBus, EventEmitter or Mediator, including after an escaped newline; the ledger may record a rejected abstractionreduce-second-list-hotspot-design-it-twicederivable-list.py; no Edit or Write toconfig/services.jsonKept and listed (unsure):
reduce-second-list-not-flagged-when-entries-hold-data, still judge-only and unlabeled, is the no-fire side of the second-list check. Its outcome (not calling the file a second list) shows only in prose, so it stays for the coverage floor.reduce-collision-hotspots-fall-back-without-ghkeeps itsgap-line-names-missing-ghjudge beside the deterministic graders for the same reason. Each converted case hassamples/<grader>.jsonwith pass and fail answers thatvalidate-cases.pysorts correctly.Loosened checks
Deleted or converted:
reduce-collision-hotspots-fall-back-without-gh,reduce-dry-run-makes-no-changes,reduce-duplicate-writer-ledgered-and-handed-off,reduce-full-pass-splits-lanes-and-ledgers,reduce-refuses-speculative-abstraction,reduce-second-list-hotspot-design-it-twice. 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/couplingbefore and after: 9 to 9 cases; judged graders without samples 31 to 11 (the kept gap-line judge included); no-case 0, no-deterministic-trigger (coupling:reduce) and no-should-not-fire lists unchanged.git grepfor each deleted name outside its own directory: not applicable; nothing deleted.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