Skip to content

test(code-tidying): give the tidy-diff comment-triage eval case the comment tooling - #13001

Merged
kyle-sexton merged 2 commits into
mainfrom
test/12924-tidy-diff-comment-tooling
Nov 4, 2026
Merged

kyle-sexton merged 2 commits into
mainfrom
test/12924-tidy-diff-comment-tooling

Conversation

@kyle-sexton

Copy link
Copy Markdown
Member

Closes #12924

Summary

The tidy-diff comment-triage eval case could not exercise an applied, proven comment deletion. Without tree-sitter in the sandbox, change-shape.sh exits 3, so every arm could only propose the deletion. The case now installs the comment tooling and checks that the deletion lands.

Fix

Verification

Claude Code 2.1.318, Sonnet under test, Opus judge, --runs 3, --ablation none. All 9 runs are VALID per run-validity.py --scaffolded; the plan was preregistered before the first run, with the result here.

arm mean narration-deleted proof-ran
before (tooling call removed) 0.792 0/3 3/3
after (this branch) 0.958 3/3 3/3
control (after, tidy-diff body cut) 0.458 3/3 0/3
  • Every after run got COMMENT-ONLY (typescript via tree_sitter_typescript) ... exit=0 from change-shape.sh.
  • The control was detected: a 0.50 fall, with four graders passing 3/3 after and failing 3/3 control.
  • validate-cases.py plugins/code-tidying/evals: 0 FAIL.
  • Cost: 1.31 USD across 9 runs.

Related

🤖 Generated with Claude Code

https://claude.ai/code/session_015te8CoibZv2y2Zsidz4jvz

kyle-sexton and others added 2 commits November 3, 2026 19:13
…t tooling

The case's scaffold now runs comment-tooling-seed.sh, so change-shape.sh can
certify the narrating-comment deletion inside the eval sandbox, and a new
narration-deleted grader checks that the deletion landed.

Refs #12924

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_015te8CoibZv2y2Zsidz4jvz
@kyle-sexton
kyle-sexton marked this pull request as ready for review November 4, 2026 00:18
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 4, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-04T00:19:59.093251Z d3d3a09 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.

@github-actions

github-actions Bot commented Nov 4, 2026

Copy link
Copy Markdown
Contributor

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

Security review: PR #13001, no security issues found

I read every hunk of all 4 changed files:

  • .changes/code-tidying/test-12924-tidy-diff-comment-tooling-4aec080d.md: a changelog fragment with bump: none.
  • plugins/code-tidying/evals/tidy-diff-triage-exempt-and-class-b-kept/case.yaml: the expected-outcome text is reworded and a regex grader, narration-deleted (not_contains), is added.
  • plugins/code-tidying/evals/tidy-diff-triage-exempt-and-class-b-kept/samples/narration-deleted.json: grader samples that are static data only.
  • plugins/code-tidying/evals/tidy-diff-triage-exempt-and-class-b-kept/scaffold.sh: adds one line that runs the existing ../fixtures/comment-tooling-seed.sh before seeding.

What I checked:

  • The new scaffold call. The added line takes the seed script's path from the scaffold's own directory, so no outside input chooses the path. The script it calls is not changed by this PR. It installs only hash-pinned wheels: --require-hashes --only-binary=:all: --no-deps from a requirements file in the repository (comment-tooling-seed.sh#L18-L20). No build code runs, and no unpinned package source is added.
  • Who runs it. These files run only when someone runs the evals. They are not plugin code that installed users receive, and the changelog fragment is a no-bump entry.
  • Trust controls and manifests. No changed file matches a trusted-path glob. No trust control, merge hold, token scope, kill switch or plugin manifest (plugin.json / marketplace.json) is touched, so there are no manifest lines to report.
  • Instruction-surface deletions. The diff deletes or softens no standing instruction (CLAUDE.md, a skill body, a hook allowlist and so on). The only reworded text is the eval case's expected outcome.
  • PR context. The description and the issue comments contain no text directing this review.
  • Prior findings. This lane has posted nothing on this PR before: 0 earlier rounds with findings, round cap 3, not past the cap.

Spend. Eval runs draw only on prepaid API usage; the PR reports 1.31 USD across 9 runs. That is not a hold.

critical-findings: 0

@github-actions

github-actions Bot commented Nov 4, 2026

Copy link
Copy Markdown
Contributor

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

Code review: PR #13001 (head d3d3a09)

Result: no findings. I read every hunk of all 4 changed files, so this is a complete review.

What changed

  • tidy-diff-triage-exempt-and-class-b-kept/scaffold.sh now runs ../fixtures/comment-tooling-seed.sh before seeding, which installs the hash-pinned comment tooling. The script locates the seed from its own directory (BASH_SOURCE). It does this the same way probe-environment/scaffold.sh does, and fixtures/seed.sh also calls the seed, so the result does not depend on the scaffold's working directory. Under set -euo pipefail, a failed install fails the scaffold, so no run gets scored when it could only propose the deletion.
  • There is a new narration-deleted regex grader (not_contains on // loop over the records). Its samples are consistent: the pass sample lacks the comment and the fail sample keeps it. expected_outcome was updated to require the deletion.
  • The changelog fragment uses bump: none. That fits, because only eval fixtures change and nothing the plugin ships is touched.

Closing issue #12924, "Done when"

  • "scaffold.sh installs the tooling through comment-tooling-seed.sh, and the case grades the proven deletion of its narrating comment": met. narration-deleted checks the deletion, proof-ran checks that change-shape ran, and deletions-tied-to-verdict checks that the report ties the deletion to a verdict. Each has samples.
  • "validate-cases.py ... reports 0 FAIL": the author says so, but I could not verify it because this lane has no shell.
  • Before/after pair with a negative control, every arm VALID, and after-run traces showing a change-shape.sh exit other than 3: the author reports this in the PR and in the issue's result comment (before 0.792, after 0.958, control 0.458). I did not verify it.

Non-blocking note (not counted)

After this change, deletions-tied-to-verdict (case.yaml#L48) still accepts a report that only proposes the deletion because of a missing parser. Its second pass sample (change-shape.sh exited 3 ...) does the same. The new expected_outcome requires the deletion, but narration-deleted already enforces that, so the case as a whole still requires it. You could tighten the LLM criterion and that sample to match.

Other checks

  • Path-scoped rule .claude/rules/eval-case-transcripts.md matches the eval files. The new sample is synthetic grader input with no transcript or identifying detail, so it passes.
  • No plugin manifest changed, and no paved-path concerns apply.
  • Spend: the scaffold now does a pip install from the network for each run of this case. It draws only on prepaid eval-run API credit, and the author reported 1.31 USD for the 9 verification runs. Nothing in it is billed, so there is no hold.
  • The prior-findings file lists no earlier posts (round 0 of 3), and no settled-threads file was supplied.

@kyle-sexton
kyle-sexton added this pull request to the merge queue Nov 4, 2026
Merged via the queue into main with commit 50fb4e0 Nov 4, 2026
67 of 68 checks passed
@kyle-sexton
kyle-sexton deleted the test/12924-tidy-diff-comment-tooling branch November 4, 2026 00:35
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.

test(code-tidying): give the tidy-diff comment-triage eval case the comment tooling

1 participant