Skip to content

refactor(code-tidying): drop the tidy-diff closing-read pointer; add closing-read eval cases - #13713

Merged
kyle-sexton merged 9 commits into
mainfrom
refactor/drop-self-check-lines-batch-4
Nov 6, 2026
Merged

kyle-sexton merged 9 commits into
mainfrom
refactor/drop-self-check-lines-batch-4

Conversation

@kyle-sexton

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

Copy link
Copy Markdown
Member

No related issue: poteto leftover D2, owner-directed

Summary

Drops the tidy-diff closing-read pointer and adds the eval cases that can show a loss from the self-check cuts. Both cuts came from #13541's "Pending eval" table. The ai-slop cut is reverted after its targeted case showed a loss. The generated-code-residue and audit-instructions cuts are still being measured and are not in this PR.

Fix

  • plugins/code-tidying/skills/tidy-diff/SKILL.md: remove "Finish with the reference's closing read, bounded as it says." The reference still describes the closing read, so the cut removes only the pointer.
  • New eval cases: tidy-diff-closing-read-residue-recall (code-tidying) and audit-fix-dash-swap-second-read (ai-slop, kept as a regression case).
  • plugins/ai-slop/skills/audit/reference/rewrite-guide.md: unchanged from main. The second-read line stays.

Verification

Owner rule: docs/review/skills-and-agents.md:6-8. Opus judge, both arms VALID.

  • code-tidying, case tidy-diff-closing-read-residue-recall: before 0.975 (1, 1, 1, 0.875, 1) -> after 1.00 (5/5). No loss. Caveat: one case, noise "n too small to call".
  • ai-slop, case audit-fix-dash-swap-second-read: before 1.00 (5/5) -> after 0.70 (1, 1, 0.5, 0.5, 0.5). Loss, so the cut is reverted and the line stays.
  • Earlier ceiling cases (tidy-diff-behavior-changing-cleanup-proposed, audit-fix-self-audit-vocabulary) scored 1.00 -> 1.00 but could not show a loss.
  • Results JSON: main checkout .work/evals-cuts/results/targeted-*.json (local, not committed).
  • Tests for both plugins run serially with scripts/run-test-file.sh; one pre-existing-looking failure, plugins/ai-slop/skills/audit/scripts/detect.test.sh ("crlf jq", 7 of 274), in a script this PR does not touch. /skill-quality:check on tidy-diff SKILL.md: PASS.

Related

#13541

🤖 Generated with Claude Code

kyle-sexton and others added 7 commits November 6, 2026 08:42
Remove the second read after ai-slop's rewrite-guide last pass and the
closing-read step in tidy-diff's SKILL.md.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
audit-fix-dash-swap-second-read seeds five "claim, em dash, elaboration"
lines whose easy fix is a colon swap, a crutch detect.sh does not flag.
tidy-diff-closing-read-residue-recall seeds seven low-salience residue
kinds in one hunk, graded on the report.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…closing-read eval cases

Revert the ai-slop second-read cut: its targeted case scored 0.70 against
1.00 before. Keep the tidy-diff cut (0.975 before, 1.00 after).

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
@kyle-sexton kyle-sexton changed the title refactor: drop two self-check lines with no-loss eval evidence refactor(code-tidying): drop the tidy-diff closing-read pointer; add closing-read eval cases Nov 6, 2026
@kyle-sexton
kyle-sexton marked this pull request as ready for review November 6, 2026 15:06
@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-06T15:06:52.993676Z
We couldn’t complete this review. Comment @codex review to try again.
e6a26fb 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

github-actions Bot commented Nov 6, 2026 •

Copy link
Copy Markdown
Contributor

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

Security review (incremental, blocking only): no security issues found

Scope. I read every hunk of the 4 files in .claude-lane/incremental-files.txt, the change from e6a26fbc to f2344f7a. None of them matches a trusted-path glob. This lane already reviewed an earlier head (blocking only: yes), so only CRITICAL and IMPORTANT findings would be reported.

What changed. The push adds two regex graders and their sample files to the eval case plugins/ai-slop/evals/audit-fix-dash-swap-second-read/:

  • graders/fact-drain-time.md and graders/fact-payload-limit.md are frontmatter-only regex graders. They target docs/upgrade.md inside the eval scaffold, with the patterns 'four minutes' and '\b1\s*MB\b'.
  • samples/fact-drain-time.json and samples/fact-payload-limit.json hold static pass and fail example text for those graders.

What I checked.

  • Executable surface. These files are all static data. None of them is executable code, and none contains a shell, template or path interpolation that takes outside input.
  • Grader target. The target path is fixed and relative to the eval's own scaffold. The regex patterns are simple and carry no catastrophic-backtracking risk.
  • Trust controls. The push touches no workflow, token request, trusted-actor list, kill switch, merge hold, plugin manifest or instruction file. No trust control is widened.
  • PR description. It contains no instructions aimed at this lane.

Prior findings. My earlier summary comment, which had no line anchor, reported 0 findings. Nothing from it carries forward.

Spend. The two new graders add checks to an eval case that only runs on demand. They use prepaid model credit when someone runs them, so this is not a cost hold.

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

claude-lane: claude-review

@github-actions

github-actions Bot commented Nov 6, 2026 •

Copy link
Copy Markdown
Contributor

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

Code review: PR #13713, changes since e6a26fb

I read every hunk of the 4 files changed in this push. I found nothing that blocks merge.

This lane has already reviewed an earlier head, so this review reports blocking findings only.

What changed

This push adds two regex graders to audit-fix-dash-swap-second-read, each with pass and fail samples:

  • fact-drain-time checks for four minutes.
  • fact-payload-limit checks for \b1\s*MB\b.

They follow up on this lane's earlier advisory finding: expected_outcome listed four facts, but only two had graders. The owner resolved that thread and its lines have not changed since, so it stays settled. The new graders cover the two facts that had none.

Checks

  • The graders match their samples. I ran each pattern against its samples by hand.
    • Both pass samples keep "about four minutes" and "1 MB", so both match.
    • The drain-time fail sample says "drains much faster than before" and has no "four minutes" anywhere.
    • The payload fail sample says "A large job payload" and has no other "1 MB".
    • So each fail sample fails only on the fact it drops.
  • The new files follow the existing layout. The graders have the same frontmatter as fact-workers-default.md: type: regex, the docs/upgrade.md file target and arm: both. The samples use the same pass/fail with answer and why shape.
  • The seeded file passes both graders. The scaffold writes "drains in about four minutes" with the two words on one line, and "over 1 MB". Before any fix, both graders match.
  • Not reported, because it is advisory: four minutes uses a literal space. A rewrite that wraps the line between "four" and "minutes" would fail the grader even though the fact survives. \bfour\s+minutes\b would allow for that, and fact-payload-limit already uses \s*.
  • Manifests: this push changes no plugin.json or marketplace.json.
  • Closing issue: the PR closes none, so there are no acceptance criteria to check.

Verification: the owner's reply says evals:validate reports no failures. That is their claim. I had no shell and ran no evals or validation.

Spend: these graders run inside existing eval runs and add no runs. They spend only prepaid model usage, so this is not a hold.

kyle-sexton and others added 2 commits November 6, 2026 10:25
…sh-swap-second-read

expected_outcome lists four surviving facts; the case graded two.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
@kyle-sexton
kyle-sexton added this pull request to the merge queue Nov 6, 2026
Merged via the queue into main with commit 0b18dcb Nov 6, 2026
44 checks passed
@kyle-sexton
kyle-sexton deleted the refactor/drop-self-check-lines-batch-4 branch November 6, 2026 15:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant