Skip to content

test(planning): add eval cases for the interview's quick-change skip - #16915

Merged
kyle-sexton merged 4 commits into
mainfrom
refactor/planning-interview-routing-duplicate-reason
Nov 17, 2026
Merged

kyle-sexton merged 4 commits into
mainfrom
refactor/planning-interview-routing-duplicate-reason

Conversation

@kyle-sexton

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

Copy link
Copy Markdown
Member

No related issue: found in a close-out audit of earlier work; it has no issue.

Summary

No claude plugin eval case covered the interview skill's quick-change skip: the only cases for it were in the skill's legacy JSON file, which that runner does not read. This adds two.

The branch first also removed a reason clause from the interview's routing reference that restates /session-flow:workflow. A registered eval could not show that cut safe, so it is reverted here and the skill text is unchanged against main.

Fix

  • Two new eval cases, ported from the legacy cases: interview-skips-quick-change-typo (a comment typo fix) and interview-skips-quick-behavior-change (a one-constant change). Each has five deterministic graders (skill fired, no numbered question round, no ledger write, no PLAN.md write or edit) and one model-graded grader for "build it, then align on the diff".
  • Each case description states its measured limit.
  • plugins/planning/skills/interview/context/routing.md is identical to main.

Verification

  • plugins/evals/skills/validate/scripts/validate-cases.py plugins/planning/evals exits 0 with no FAIL; with pass and fail labels swapped in every deterministic sample the validator reports each one. scripts/validate-plugins.sh and the changelog fragment check exit 0.
  • Both cases were run on Sonnet, 3 runs each, Opus judge, in four arms, all VALID: main's text 1.000 and 1.000; the branch with the cut 1.000 and 0.889; and two control arms with the skip rule removed from the skill, 1.000 and 1.000 each. The model-graded grader's verdict matched a trace read in every run read (24 runs).
  • What that shows: the cases pass on the shipped skill, and one run in six failed for a real reason (it asked a confirmation question instead of making the edit). What it does not show: that the rule causes the skip. With the rule removed everywhere the controls named, all runs still skipped, on the model's own judgment of the task.
  • The model-graded grader in each case is uncalibrated.

Registered rule and result

The rule for the no-loss eval was registered in this body before any run and amended once, before the amended run, in this comment. Detection was not met under either control, so by the rule the cut does not ship and the cases ship alone.

Related

  • plugins/planning/skills/interview/evals/evals.json, skips-quick-change-typo and skips-quick-behavior-change, the legacy cases ported.
  • Not done here: removing the duplicated reason needs a case at the boundary where the rule decides the outcome. The rule is also stated in plugins/planning/skills/interview/context/gotchas.md.

🤖 Generated with Claude Code

kyle-sexton and others added 2 commits November 17, 2026 13:11
…routing

The interview routing reference repeated why a quick change skips the
interview. Route choice and its reason live in /session-flow:workflow,
which the same reference already names as their one home, so the copy
goes and the skip rule and its pointer stay.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Two plugin-eval cases check that the interview does not gate a change
whose diff is quick to review and cheap to retry: a comment typo fix and
a one-constant behavior change. Deterministic graders fail a run that
asks a numbered question round, writes an interview ledger, or writes
or edits PLAN.md; a judge grader checks the reply tells the user to
build and align on the diff. Each deterministic grader carries pass and
fail samples.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@kyle-sexton kyle-sexton added the do-not-merge Hard merge gate: do not merge while applied. label Nov 17, 2026
@kyle-sexton

Copy link
Copy Markdown
Member Author
Held until the no-loss eval registered in the PR body has been run and its result read. The hold is released by the session that posts that result.

@kyle-sexton

Copy link
Copy Markdown
Member Author

No-loss eval, first read: unable to detect a loss

Run as registered in the PR body: Sonnet, 3 runs a side, Opus judge, the two new cases, three arms. All three arms read VALID; nothing was rerun.

Arm interview-skips-quick-behavior-change interview-skips-quick-change-typo
before (main's text) 1.000 1.000
control (skip rule removed from the two registered places) 1.000 1.000
after (this branch) 1.000 0.889 (runs 1.0, 1.0, 0.667)
  • Detection: not met. The control scored the same as before on both cases, so by the registered rule this eval is unable to detect a loss and the cut does not ship on it.
  • Why the control did not drop. All 6 control traces were read: each still skipped the interview and named the skip as its reason. Text the registered control left in place still carries the rule: the skill description's last clause ("skip one that is"), the SKILL.md mention of "the one-line quick-change skip", and the routing reference's entry heading and its "Work that fails either test is interview-first" line.
  • No-loss reading, for the record only. Neither case dropped by a third in the after arm. The one failing after run asked a single confirmation question instead of making the edit; its trace shows it following "The user can still ask for the interview", a sentence both arms carry, not the removed clause.
  • The model-graded grader's verdict matched the trace read in all 18 runs.

Amendment 1 to the registered rule (written before its run)

  • Deviation, named: the control is redefined. Nothing else changes: same two cases, model, runs, judge, thresholds, and the before and after results above stand and are not rerun.
  • Control 2 = before, with the quick-change skip removed everywhere the skill states it: the two registered places, plus the description's closing clause "; skip one that is", the SKILL.md mention of "the one-line quick-change skip" (that phrase only), and in the routing reference the words that make the entry gate a skip test (the "Entry: diff size and retry cost, not behavior change" heading reworded to "Entry" and the sentence "Work that fails either test is interview-first" reworded to "Work is interview-first").
  • Detection is met if control 2 scores lower than before on at least one case by a third or more. If met, the no-loss reading above decides and the cut ships. If not met, the two cases cannot see the loss of the rule itself, the cut is taken out of this PR, and the cases ship alone with that limit stated.
  • An INVALID run is no result and is rerun once. A kept trace is read before the score is used.

kyle-sexton and others added 2 commits November 17, 2026 14:55
This reverts commit 9826725. The detection control did not score
lower with the reason removed, so the cases cannot show whether the cut
loses behavior, and the reason stays in the interview routing reference.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
On Sonnet both entry-skip cases also passed with the skip rule removed
from the skill, so each case description now says they guard against the
skill forcing an interview on a quick change, not that the rule causes
the skip. A bump-none changelog fragment records the eval-only change.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@kyle-sexton

Copy link
Copy Markdown
Member Author

No-loss eval, amended control: detection not met; the cut is reverted

Control 2, as registered in Amendment 1 above, ran VALID: Sonnet, 3 runs a case, Opus judge.

Arm interview-skips-quick-behavior-change interview-skips-quick-change-typo
before 1.000 1.000
control 2 (skip removed everywhere the amendment names) 1.000 1.000
  • Detection: not met. Neither case dropped; a third of 1.000 was needed.
  • Trace read, all 6 runs. Each still skipped the interview and made the edit, now on its own reading of the task ("one constant, used only here", "a one-word, no-behavior-change fix") and without citing a skill rule. The first control's runs had all cited the rule.
  • One deviation. Removing only the phrase "the one-line quick-change skip" would have left broken grammar, so " with the one-line quick-change skip" was removed.
  • Left in place, not named by the amendment. The same rule in context/gotchas.md, and the description's "not quick to review and cheap to retry" clause. No control 2 run read gotchas.md.

By the amendment, the cut is taken out: commit 7ba3a7a22c reverts it, so the routing reference is identical to main, and the two cases ship alone with this limit in each case description. The hold is released on that basis.

@kyle-sexton kyle-sexton changed the title refactor(planning): drop a duplicated routing reason and add entry-skip eval cases test(planning): add eval cases for the interview's quick-change skip Nov 17, 2026
@kyle-sexton kyle-sexton removed the do-not-merge Hard merge gate: do not merge while applied. label Nov 17, 2026
@kyle-sexton

Copy link
Copy Markdown
Member Author
Hold released: the registered eval was run and read (results in the two comments above); the text cut it guarded is reverted, and this PR now adds eval cases only.

@kyle-sexton
kyle-sexton marked this pull request as ready for review November 17, 2026 20:08
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 17, 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-17T20:10:53.101774Z a30aa0d 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 a30aa0db69c620a3a3085eb0a5f4935e1fe2560d: read 17 of 17 changed file(s); 0 finding(s), 0 as inline comments.

Security review: PR #16915

I found no security issues in this pull request.

What I checked. I read all 17 changed files in full. The pull request adds two claude plugin eval cases under plugins/planning/evals/, interview-skips-quick-change-typo and interview-skips-quick-behavior-change, plus a changelog fragment with bump: none.

  • Case files and samples. Each case has a case.yaml, grader sample JSON files and a scaffold.sh.
  • Scaffold scripts. Each scaffold.sh uses set -euo pipefail, creates src/ in the eval working directory and writes one fixed TypeScript file through a quoted heredoc (<<'TS'). They take no input, so nothing can be interpolated into them, they make no network calls and they read no secrets.
  • Case files. These hold a fixed prompt, a list of allowed tools for the eval session, turn and timeout limits, and grader regexes. No untrusted text from the pull request, an issue or a comment reaches any lane that holds credentials.

Not touched. The pull request changes no trusted path, trust control, workflow, plugin manifest (plugin.json / marketplace.json), merge hold or standing instruction. The pull request says the interview skill text is unchanged against main, and the diff confirms it: no skill or rules file appears.

Spend (not a finding). When run, the two new cases spend prepaid model usage: each case runs up to 20 turns with a 900-second timeout, plus a model-graded grader.

Embedded text. The pull request context contains no instructions aimed at the review.

critical-findings: 0

@github-actions

Copy link
Copy Markdown
Contributor

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

Code review: no findings

This PR adds two claude plugin eval cases, interview-skips-quick-change-typo and interview-skips-quick-behavior-change, each with a scaffold, grader samples and a bump: none changelog fragment. It doesn't change the skill text. I read every hunk of all 17 changed files in the full diff.

What I checked (by reading only; I ran nothing):

  • Grader regexes against their samples.
    • no-question-round: Its pattern matches every fail sample: Q1:, | Q1 |, **Q1.** and a numbered list line that ends in ?. It matches no pass sample. A numbered list with no ? and an empty reply both stay unmatched, as intended.
    • skill-fired: Its pattern matches the qualified and unqualified skill names and rejects planning:plan.
  • Tool-grader conventions. The file_path input_match patterns and the arm: with-only / arm: both split follow the existing planning eval cases, e.g. plugins/planning/evals/interview-stated-problem-no-rethink/case.yaml.
  • Scaffolds against prompts. The typo scaffold puts the misspelling lowrcased in a comment in src/utils.ts. The behavior-change scaffold defines DEFAULT_PAGE_SIZE = 20 used by listUsers(). Both match their prompts.
  • Changelog fragment. bump: none is a value scripts/new-changelog-fragment.sh accepts, and adding eval cases alone ships no plugin change.
  • Path-scoped rule. .claude/rules/eval-case-transcripts.md applies to these files. All prompts and samples are synthetic, with no machine-specific paths or identifying details.
  • Closing issues. The PR closes none, so there are no acceptance criteria to check against.
  • Paved paths. I found no paved-path row in the standards index.
  • Author's claims. The validator results and eval-run results in the PR body are the author's claims; I didn't verify them.

Spend (not a finding): the two new cases add eval runs, paid from prepaid API credit, whenever the planning plugin's evals run.

Loosened-check verdict: fail (default; the wrapper supplied no loosened_check_verdict: line); patterns: 0. Every change is a new file, so nothing loosens a check.

Verifier dropped 0 of 0 candidates.

@kyle-sexton
kyle-sexton added this pull request to the merge queue Nov 17, 2026
Merged via the queue into main with commit 4d10acc Nov 17, 2026
111 of 112 checks passed
@kyle-sexton
kyle-sexton deleted the refactor/planning-interview-routing-duplicate-reason branch November 17, 2026 20:22
@github-actions github-actions Bot added the merge-path: owner-agent Post-merge accounting record (README.md, Merge paths) label Nov 17, 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