Skip to content

test: add targeted regression cases for three merged self-check cuts - #13733

Merged
kyle-sexton merged 2 commits into
mainfrom
test/self-check-cut-regression-cases
Nov 6, 2026
Merged

kyle-sexton merged 2 commits into
mainfrom
test/self-check-cut-regression-cases

Conversation

@kyle-sexton

Copy link
Copy Markdown
Member

No related issue: poteto leftover D2, owner-directed

Summary

Adds three eval cases, one each in docs-hygiene, adhd and knowledge. Each checks the behaviour a self-check line drove before a merged PR removed it.

Fix

Cases copied from the local measurement set. The case descriptions state what each case checks; the measurement notes that were in them are below. Two edits to the copies: the scaffold scripts are executable, and the adhd grader writes ure as u[r]e (same match) so the typos check passes. No skill text changed. One bump: none change fragment per plugin.

Measurement notes: Claude Code 2.1.318, claude-opus-5-5, 5 runs per arm, --ablation none, 2026-11-06.

  • wfh: 0.90 with the line restored (one run kept "undo button"), 1.00 without it.
  • adhd: state-in-first-or-last-line passed 2/5 with the line restored and 2/5 without it; failing runs open and close on actions and give the cause only in the second paragraph.
  • distill: 1.00 with the line restored and 1.00 without it; without it the routing stress test and decision-guide check still led the model to compare the file with the PDF.

Verification

Each case checks the behaviour a removed self-check line drove (#13532 write-for-humans, #13541 adhd shape, #13552 distill). Paired results, 5 runs per arm, all VALID: write-for-humans 0.90 -> 1.00, adhd 0.70 -> 0.70, distill 1.00 -> 1.00. In each the version without the line still shows the behaviour, so there is no loss and nothing to restore. Noise reads "n too small to call (1 case)". Results JSON are local, in the main checkout's .work/evals-recheck/results/.

validate-cases.py on each plugin's evals/ dir: 0 FAIL.

Related

#13532, #13541, #13552

🤖 Generated with Claude Code

kyle-sexton and others added 2 commits November 6, 2026 10:28
Adds one eval case each to docs-hygiene, adhd and knowledge. Each checks
the behaviour a removed self-check line drove.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Mark the two scaffold scripts executable and write `ure` in the adhd
grader as `u[r]e`, which matches the same text.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
@kyle-sexton
kyle-sexton marked this pull request as ready for review November 6, 2026 15:30
@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:30:32.509196Z
We couldn’t complete this review. Comment @codex review to try again.
bb4cca0 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 bb4cca08e921cb6402e6caa729c3083cf35d4edc: read 16 of 16 changed file(s); 0 finding(s), 0 as inline comments.

Security review: PR #13733 (head bb4cca0)

I found no security issues. I read every hunk of all 16 changed files.

What changed: three new eval cases and three change fragments. All of them are new files under plugins/{adhd,docs-hygiene,knowledge}/evals/ and .changes/.

  • case.yaml, prompt.md and samples/*.json hold test data: regex graders, eval prompts and sample answers. None of it runs code or reaches a credentialed lane.
  • The two scaffold.sh scripts only seed fixture files inside the eval sandbox's working directory, using quoted heredocs, so nothing is expanded or interpolated. The knowledge scaffold also runs git init and a local commit with a fake identity, and calls the repository's own ../fixtures/distill-make-pdf.py under python3 -I. Nothing in them reads input from outside, uses the network or touches secrets.
  • The AWS account ID and ARNs in the adhd scaffold log are placeholder fixture text (123456789012). They are not credentials.
  • The eval allowed_tools lists are scoped to the eval runs: Skill, Read, Glob, Grep, plus Write, Edit for the distill case. They grant nothing to any CI lane.

Trusted paths: none of the changed files match a trusted-path glob. No trust control, merge hold, token scope, kill switch, workflow or plugin manifest is touched. No standing instruction text is deleted or softened: the fragments say "no skill text changed", and the diff confirms it.

PR context: I found no embedded directives aimed at the review lane.

Spend: the new evals use prepaid API credits only (5 runs per case when they run). That is not a hold.

critical-findings: 0

@github-actions

github-actions Bot commented Nov 6, 2026

Copy link
Copy Markdown
Contributor

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

Code review: no findings. I read every hunk of all 16 files in the PR.

The PR adds three eval cases, one per plugin: docs-hygiene/wfh-notes-read-as-generated, adhd/sh-first-last-line-carry-state and knowledge/distill-polish-vague-file-looks-complete. It also adds one bump: none change fragment per plugin. No skill text or manifest changed, so the plugin-manifest checks don't apply. bump: none is the right level for a change that only adds tests.

What I checked by reading the code. I ran nothing:

  • knowledge scaffold: it calls ../fixtures/distill-make-pdf.py, and that file exists (fixture).
    • Chapter 2 of the PDF it builds holds the specifics the grader looks for: Idempotency-Key, 24 hours, 409 and 422. The idempotency.md the scaffold seeds leaves all of them out.
    • The grader has no i flag. So the routing row's lowercase "idempotency keys" can't pass it by accident.
  • adhd grader: the first branch only reaches the first line, because ^ without the multiline flag anchors to the start of the reply. The second branch only reaches the last non-blank line, because the cause term must be followed by nothing but whitespace (\s*$).
    • Both samples files fit this pattern. Each fail sample in state-in-first-or-last-line has the cause only in the middle lines, or nowhere, and uses no listed cause word on its first or last line.
  • docs-hygiene graders: the YAML '' gives a literal ', and the not_contains patterns match each of the four fail samples. The pass sample avoids all five generated shapes. The four-backtick fence with a ```bash block inside it is handled.
    • Putting description in case.yaml and the turn limits in prompt.md follows the sibling wfh-grounding-readme case.
  • Path rule .claude/rules/eval-case-transcripts.md: the fixtures are made-up content (acme bucket, AWS example account 123456789012, example.invalid). They are not real transcripts.

These claims are the author's, and I did not check them: validate-cases.py reported 0 FAIL, and the paired results were 5 runs per arm.

I found no embedded instructions in the PR context, and there were no earlier findings or settled threads to apply.

Usage: three new eval cases at 5 runs each will use up prepaid model usage whenever the eval suites run. This doesn't cost real money, so it is not a hold.

@kyle-sexton
kyle-sexton added this pull request to the merge queue Nov 6, 2026
Merged via the queue into main with commit 98cd764 Nov 6, 2026
55 of 67 checks passed
@kyle-sexton
kyle-sexton deleted the test/self-check-cut-regression-cases branch November 6, 2026 15:48
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