Skip to content

test(coupling): remove redundant eval cases - #18526

Merged
kyle-sexton merged 3 commits into
mainfrom
test/prune-evals-r2-coupling
Nov 23, 2026
Merged

kyle-sexton merged 3 commits into
mainfrom
test/prune-evals-r2-coupling

Conversation

@kyle-sexton

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

Copy link
Copy Markdown
Member

Refs: #18529

Summary

Seven coupling cases had only llm judges with no labeled samples/, which count as no evidence. Six check a behavior a tool call shows, so their judges become tool_used graders with labeled samples, prompts unchanged; the seventh is kept as the no-fire side of the second-list check.

Fix

Deleted: none.

CONVERTED case Change
reduce-collision-hotspots-fall-back-without-gh Bash runs collision-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's git log --oneline does not pass); no Edit outside .work/. The gap-line judge stays, judge-only and unlabeled
reduce-dry-run-makes-no-changes no Edit outside .work/; no Write outside .work/ or /tmp/; no git checkout -b, switch -c or push, including at the start of a line in a multi-line command
reduce-duplicate-writer-ledgered-and-handed-off no Edit to the writers under app/; a Write under coupling/<branch>/; no Write under reviews/
reduce-full-pass-splits-lanes-and-ledgers an Edit under src/ touching the archived magic string; no Edit under services/ (the shared-database files stay in the route lane); a git checkout -b, switch -c or worktree add -b for the batch
reduce-refuses-speculative-abstraction no Write or Edit outside .work/ adding an interface, EventBus, EventEmitter or Mediator, including after an escaped newline; the ledger may record a rejected abstraction
reduce-second-list-hotspot-design-it-twice Bash runs derivable-list.py; no Edit or Write to config/services.json

Kept 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-gh keeps its gap-line-names-missing-gh judge beside the deterministic graders for the same reason. Each converted case has samples/<grader>.json with pass and fail answers that validate-cases.py sorts 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.py on the plugin's eval suites: exit 0, no FAIL.
  • audit-suite.py plugins/coupling before 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 grep for each deleted name outside its own directory: not applicable; nothing deleted.
  • No eval run, by the owner's instruction.

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

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
@kyle-sexton
kyle-sexton marked this pull request as ready for review November 23, 2026 17:07
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 23, 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-23T17:09:26.739011Z 9e690cc 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 chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 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
@github-actions

github-actions Bot commented Nov 23, 2026 •

Copy link
Copy Markdown
Contributor

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

Security review: PR #18526, incremental (d28b9a49 → b75e79cf)

No security issues found. I read every hunk of all 12 files in the incremental scope (.claude-lane/incremental.diff). This lane already reviewed an earlier head, so this review was blocking only: it reports CRITICAL and IMPORTANT findings and drops SUGGESTIONs.

What changed since the last review: only the /coupling:reduce eval suite changed.

  • In 4 case.yaml files, the tool_used grader regexes were tightened or added:
    • a (?<=\\[nrt]) lookbehind so a git command after an escaped newline still matches;
    • .work/ and /tmp/ exclusions on the write and interface checks;
    • a new shared-database-not-applied Edit grader;
    • a new attempts-collision-hotspots Bash grader.
  • One llm judge (gap-line-names-missing-gh) is back as a judge-only grader.
  • The labeled samples/*.json files gained matching pass and fail entries. falls-back-to-co-change.json was renamed to mines-co-change.json and gained one entry.

What I checked:

  • Trusted paths: no file in scope matches a TRUSTED PATHS glob.
  • Trust controls: no workflow, action, token request, kill switch, merge hold or manifest changes.
  • Installed code: no skill, agent, hook or script that ships to users changes.
  • Instruction surface: no skill or agent text is deleted or softened. The edited regexes and criteria score recorded eval transcripts and gate no permission or merge.
  • Samples: the sample JSON holds fixed tool-call answers for the grader validator to score. They contain no secrets or credentials. Their commands and paths (for example git push, /w/config/ports.json) are examples to score and are never run.
  • Regex risk: a regex that is too loose or too strict only weakens test evidence, not security. These patterns run on eval transcripts, not on attacker-controlled input to a credentialed lane.
  • PR description: it contains no instructions aimed at the review lane.
  • Prior findings: the lane's one earlier post was a summary with no findings, so nothing carries over.

Spend: the re-added gap-line-names-missing-gh judge adds one model-judged grader per eval run of that case. That draws on prepaid or subscription usage only, and nothing here can create a charge.

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: 4 inline finding(s) on d28b9a498b195226f0b5b0c84ccfb30308620d5d; the summary is in this lane's pull request comment.

claude-lane: claude-review

@github-actions

github-actions Bot commented Nov 23, 2026 •

Copy link
Copy Markdown
Contributor

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

Code review (incremental, blocking only): d28b9a4 → b75e79c

This 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 validate-cases.py (how input_match is applied), the head reduce-full-pass-splits-lanes-and-ledgers/case.yaml, and the reduce skill's references to collision-hotspots.sh and the .work/ ledger.

No blocking findings. All four findings from the previous round are fixed:

  1. reduce-refuses-speculative-abstraction: fixed. Both graders now accept a keyword after an escaped \n, \r or \t ((?<=\\[nrt])) as well as at a word boundary. A file-path lookahead exempts the .work/ ledger.
    • New fail sample: // clock\ninterface IClock ….
    • New pass samples: a ledger Write and a ledger Edit that record rejected abstractions.
    • Tracing the regex against the compact JSON input gives the verdict each sample is labeled with.
    • The "same class" instance in no-branch-or-push is fixed too, with a cd /w\ngit push fail sample. The same lookbehind is also added to mines-co-change and short-lived-branch.
  2. no-write-outside-ledger: fixed. It is now a negative lookahead ((?![^"]*/(?:\.work|tmp)/)), with a config/ports.json fail sample. This matches the PR table's "no Write outside .work/ or /tmp/".
  3. reduce-collision-hotspots-fall-back-without-gh: fixed.
    • attempts-collision-hotspots (Bash collision-hotspots\.sh, min: 1) now checks that the measure was attempted. That matches how SKILL.md L115 runs the script.
    • The co-change grader is renamed to mines-co-change.
    • The gap-line-names-missing-gh judge is back as a judge-only grader, and the PR body says so.
  4. reduce-full-pass-splits-lanes-and-ledgers: fixed.
    • A new forbid grader, shared-database-not-applied, rejects any Edit under services/ (max: 0, both arms).
    • Its fail sample edits src/ and services/backoffice/update-order.sql in one run.
    • The applies-contained-reduction fail sample now edits a real scaffold path (services/storefront/update-order.sql).

Other checks:

  • Loosened checks: this push adds graders and puts back the gap-line judge; it removes none. The previous round's verdict on the PR body's ## Loosened checks section still holds.
    • Loosened checks would be marked: fail (the default). The prompt had no loosened_check_verdict: or loosened_check_patterns: line, so I used fail and no consumer entries; patterns: 0.
    • The prompt had no loosened_check_decision_record: line, so I did not check the citation requirement.
  • Closing issue: the PR body says Refs: #18529 and the PR context has no closing-issue section, so there were no criteria to check.
  • Plugin manifests: none changed.
  • Spend: none.
  • Verification: I traced the regexes by hand but ran nothing. The PR's validate-cases.py and audit-suite.py results are the author's claims and I have not checked them.

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
@kyle-sexton
kyle-sexton added this pull request to the merge queue Nov 23, 2026
Merged via the queue into main with commit 5193797 Nov 23, 2026
99 of 100 checks passed
@kyle-sexton
kyle-sexton deleted the test/prune-evals-r2-coupling branch November 23, 2026 20:06
@github-actions github-actions Bot added the merge-path: owner-agent Post-merge accounting record (README.md, Merge paths) label Nov 23, 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