Skip to content

test(planning): add the interview's tiny-diff, not-cheap-to-retry boundary case - #17407

Merged
kyle-sexton merged 1 commit into
mainfrom
test/planning-interview-boundary-case
Nov 19, 2026
Merged

kyle-sexton merged 1 commit into
mainfrom
test/planning-interview-boundary-case

Conversation

@kyle-sexton

Copy link
Copy Markdown
Member

Refs: #16963

Summary

The interview's quick-change skip needs both tests: a diff that is quick to review and a build
that is cheap to retry. The eval cases so far cover only the side where both pass. This adds the
boundary case #16963 asks for: a one-line diff that fails the retry test.

The issue's second step, cutting the restated reason in
plugins/planning/skills/interview/context/routing.md to its pointer, is not done here. The
registered eval could not detect a loss on this case (below), so by its rule the cut does not ship
on it, and the issue stays open.

Fix

  • New case interview-tiny-diff-not-cheap-to-retry: change RETENTION_DAYS from 90 to 30 in an
    hourly production purge job whose deleted rows cannot be restored. The expected reply opens the
    interview with a numbered question round and edits nothing under src/. Four deterministic
    graders (skill fired, question round, no Write and no Edit under src/), so no judge calibration
    is needed. Its description states its measured limit.
  • Changelog fragment, bump: none. No skill text changes.

Verification

  • plugins/evals/skills/validate/scripts/validate-cases.py plugins/planning/evals: 0 FAIL.
  • Rule registered before the first run, smoke included. Three arms, Sonnet, 3 runs, --ablation none, the new case plus the two existing interview-skips-quick-* cases:
    • before (main's text): VALID. New case 1.000; interview-skips-quick-behavior-change 1.000;
      interview-skips-quick-change-typo 0.889 (one run ran the interview because the prompt asked
      for it).
    • after (the restated reason cut): VALID. All three cases 1.000; non-inferior to before.
    • control (before with the retry-cost test removed from the skill everywhere it is stated):
      the first run was INVALID (one sandbox denial on a Bash copy of a plugin file) and was rerun
      once unchanged, as the rule allows; the rerun is VALID, all three cases 1.000.
  • Detection: not met. With the retry-cost test removed, all three control runs of the new case
    still opened the interview, on their own reading that the delete cannot be undone (traces read).
    So the case passes on main and guards against the skill skipping the interview here, but it
    cannot show whether the restated reason is load-bearing.
  • Traces read: at least one per arm for the new case, and the one failing before typo run; each
    grader verdict matched the trace.
  • The rule, written before the first run: detection needs the control to score the new case a third
    or more below before, or the three-case mean to fall by 0.15 or more. Detection met plus no loss
    ships the case and the cut; detection met plus a loss confirmed on Opus ships the case alone and
    closes the issue; detection not met ships the case alone and leaves the issue open.
  • After the run, only the case description changed (it now states the measured limit above); the
    prompt, scaffold and graders are the ones that ran.

Remaining

Related

session: AI Hero

🤖 Generated with Claude Code

…ndary case

The quick-change skip needs both tests: a diff quick to review and a
build cheap to retry. The existing cases cover only the side where both
pass. This case is a one-constant change to an hourly production purge
whose deleted rows cannot be restored, so it fails the retry test and is
interview-first.

Run on Sonnet, 3 runs, all VALID: the case passes on main's text. A
detection control with the retry-cost test removed from the skill also
passed, so the case cannot show whether the routing reference's
restated reason is safe to cut; that cut is not made here.

Co-authored-by: Claude Opus 5.5 <[email protected]>
@kyle-sexton
kyle-sexton marked this pull request as ready for review November 19, 2026 14:12
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 19, 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-19T14:15:33.828233Z 8b3a921 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

Copy link
Copy Markdown
Contributor

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

Security review: no issues found

I read all 7 changed files in full, every hunk in .claude-lane/pr.diff. This is a complete review, not blocking only, because the lane has not reviewed an earlier head.

The pull request adds one eval case, plugins/planning/evals/interview-tiny-diff-not-cheap-to-retry/, and a changelog fragment marked bump: none. The case is made of:

  • case.yaml: the prompt plus four deterministic graders (a tool_used check that the skill fired, a regex for a numbered question round, and two tool_used checks for no Write or Edit under src/).
  • Four grader sample files: JSON fixtures only.
  • scaffold.sh: creates src/jobs/ and writes one static TypeScript fixture from a quoted heredoc (<<'TS'). It uses no variables, takes no outside input, makes no network calls and handles no credentials.

What I checked:

  • Trust controls and trusted paths: no changed file matches a trusted path. Nothing touches workflows, actions, tokens, the trusted-actor list, merge holds or the kill switch.
  • Instruction surface: no skill, agent, CLAUDE.md or hook text is deleted or softened. The PR says the skill text is unchanged, and the diff confirms it.
  • Plugin manifests: no plugin.json or marketplace.json changes, so there are no manifest lines.
  • Injection: the fixture's SQL string is inert eval data and is never run. The grader regexes run against model output, not untrusted pull request input.
  • Embedded instructions: the PR context file contains no text aimed at this lane.

Spend: each time the eval suite runs, this case uses prepaid model credits, up to 20 turns and 900 s per run. That is not a hold and is not counted as a finding.

critical-findings: 0

@github-actions

Copy link
Copy Markdown
Contributor

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

No blocking findings.

This PR adds one eval case, interview-tiny-diff-not-cheap-to-retry. The task is to change one constant, but a wrong value deletes data that cannot be restored, so the interview should open before anything is built. The PR also adds a bump: none changelog fragment and leaves the skill text unchanged. I read all 7 changed files in full.

  • Graders. skill-fired, asks-question-round, no-src-write and no-src-edit reuse the regex and input_match shapes of the sibling interview-skips-quick-behavior-change case. The question-round regex is the sibling's, flipped to contains.
  • Samples. I checked each sample against its grader by reading. Every pass sample matches its grader and every fail sample is rejected; for example, the numbered summary that asks no question has no ? on its numbered lines. I did not run validate-cases.py.
  • Scaffold. The scaffold creates src/jobs/purge-audit-log.ts with the constant the prompt names, so the src graders anchor on the right path.
  • Non-blocking note (not counted as a finding). Bash is in allowed_tools, as in the sibling cases. A run that edited the file through Bash (for example sed -i) and then asked a numbered question would pass all four graders. This matches the case's stated expected_outcome, which names only Write and Edit, so it is not reported as a defect.
  • Closing issue. The PR closes no issue. It refs planning: interview routing keeps a second copy of the route-choice reason #16963 and says the issue's second item, the cut to routing.md, stays open. The PR context holds no closing-issue section, so there were no acceptance criteria to check.
  • Rules. .claude/rules/eval-case-transcripts.md matches these paths. The prompt, scaffold and samples are synthetic and hold no transcript or identifying details.
  • Verification. The PR's eval results (VALID arms, detection not met, traces read) are the author's claims. I did not verify them.
  • Embedded text. The PR context holds no text telling the lane to approve, skip a check, drop a finding or post elsewhere.
  • Loosened checks. The prompt gave no loosened_check_verdict: or loosened_check_patterns: lines, so I used fail with no consumer entries. With no decision-record line, the citation requirement was not checked. The PR loosens no check. Loosened-check verdict: pass.
  • Spend. The case spends prepaid model usage on eval runs (Sonnet, max_turns: 20, timeout_seconds: 900). That is not a hold.

Verifier dropped 0 of 0 candidates.

@kyle-sexton
kyle-sexton added this pull request to the merge queue Nov 19, 2026
Merged via the queue into main with commit b3d9582 Nov 19, 2026
76 checks passed
@kyle-sexton
kyle-sexton deleted the test/planning-interview-boundary-case branch November 19, 2026 14:26
@github-actions github-actions Bot added the merge-path: owner-agent Post-merge accounting record (README.md, Merge paths) label Nov 19, 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