Repository navigation
fix(planning): route a solution-phrased request to the prescribed-solution rethink - #17872
Conversation
…ution rethink The interview Stance line "Open with the problem when the request has none" sent a solution with no stated why to an open what-problem question, which outranked loop.md's pointer to problem-framing.md "Prescribed solution". It now sends that request to the Prescribed solution section (problem worked back out, evidence rating, one rethink-or-accept question as round 1's first question) and keeps the open what-problem question for a request naming neither a problem nor a solution. Re-pins the SKILL.md Stance section digest (53ff69a1... -> 3fcc51fe...): the only change in that section is this line; it changes which question opens round 1, resolves no row, and the lock STOP-on-gap, auto-guard and no-silent-resolve lines are byte-identical. Closes #14878 Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
This PR holds for a targeted eval of |
…evidence grader
The evidence-rated grader of interview-prescribed-solution-rethink let
only * or _ wrap the rating word, so a correct reply rating the problem
`inferred` in backticks failed. All three alternatives now take
[*_`]{0,2}, and that reply is a pass sample (#14878 done-when item 2).
Refs: #14878
Co-Authored-By: Claude Opus 5.5 <[email protected]>
…st question The llm judge failed all three replies that opened with a rethink-or-accept question, reading its "one question" criterion as "only one question". The interview skill makes that question round 1's first and lets other questions follow, so the grader is now a regex on the Q1 line holding both choices. Samples cover the three passing replies and four failing shapes. Refs: #14878 Co-Authored-By: Claude Opus 5.5 <[email protected]>
… question Two correct replies failed the Q1 grader: one opened the bold before "Q1", and one offered "the right fix, or rethink" with no accept word. The grader now allows markup between the marker and "Q1" and passes a Q1 line that pairs "rethink" with another choice joined by "or". Samples cover both replies and a rethink-only question that still fails. Refs: #14878 Co-Authored-By: Claude Opus 5.5 <[email protected]>
Targeted eval result: PASSOne targeted case per changed skill, run on the old text (before) and the new text (after), on evidence-rated and rethink-or-accept-asked rise from BEFORE (main's routing sends a solution-phrased request to an open what-problem question; 0/3 on main in eval-14878) to at least 2 of 3 AFTER runs, and no grader loses (skill-fired, no-plan-write and no-plan-edit are the no-loss controls) Scope: behaviour fix, not a cut (#14878): interview SKILL.md 'Open with the problem when the request has none' now sends a solution-phrased request to problem-framing.md 'Prescribed solution' (read it before round 1, state the problem with its evidence rating, open round 1 with the rethink-or-accept question) instead of an open what-problem question; interview-defenses.test.sh re-pins that section's hash. Targets: evidence-rated, rethink-or-accept-asked. No-loss controls: skill-fired, no-plan-write, no-plan-edit.
Passing runs per grader, per side:
Graders that cannot show a loss, because they failed on the old text in every run:
Changed files the compare runs opened, per case and side:
Rows these runs measured (the row's file opened in at least 2 of 3 runs on each side, or loaded with the skill or agent):
Rows these runs did not measure:
Verdicts:
Cost: 2.60 USD (smoke and compare, the runs' The cases live outside the repository; their full text: The 1 cases: prompt.md and case.yaml
|
|
The |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: b8485a6598
ℹ️ 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".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
claude-security-review reviewed Security review: PR #17872 (incremental, blocking only)I found no security issues. This review covers only the two files changed since
Neither file matches a trusted path. Neither touches a plugin manifest, workflow, token scope, kill switch, merge hold or standing instruction. The PR context has no embedded directives aimed at the review lane. The rest of the pull request is unchanged since this lane's earlier reviews, which found nothing. This lane already reviewed an earlier head, so this review reports only CRITICAL and IMPORTANT findings. It found none. Spend: the eval runs use only prepaid model credit. That is not a hold and not a finding. critical-findings: 0 |
|
claude-review reviewed claude-review: incremental review of What this push changes. In
The push also pins the failing sample I checked the pattern by hand against every sample. I did not run it.
On its own, this push only tightens the grader. It fixes point 1 of the previous finding (a parameter question with a keep word near Blocking (1, re-raised, narrowed): the case still accepts more than the llm judge it replaced on
Why it is raised again:
Closing issue: none. The context file has no closing-issue section, and Verification: the PR body's re-grade counts (17872f after 2/3, before 0/3) are the author's claim. I did not re-run them. Spend: this push adds no spend. Loosened checks would be marked: fail (default: the prompt has no Verifier dropped 0 of 1 candidates. No subagent verifier ran; I checked the candidate and the samples by hand against the regex. |
…estion The Q1 grader passed a question that never offered the prescribed solution, such as one about the retry count or backoff, or "rethink, or keep going". It now also needs the Q1 line to name the wrapper. Scored on all 30 kept replies, it loses no reply the old pattern passed: 12/15 with the change and 0/15 without, as before. Both shapes are added as failing samples. Refs: #14878 Co-Authored-By: Claude Opus 5.5 <[email protected]>
claude-review (PRRT_kwDOTCGFQM66V-SI) showed rethink-or-accept-asked still passed "Should we rethink the wrapper's retry count or its backoff?", the wrapper-detail shape the old llm grader failed. The pattern now needs a rethink and a keep side that names the wrapper (accept, keep, go with, stick with ... wrapper, or wrapper ... stand, stay, the right fix or approach). A failing sample pins that reply. Re-graded every stored 17872 registration reply: after 11/15, before 0/15; 17872f after 2/3 vs before 0/3. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…ettings
claude-review (PRRT_kwDOTCGFQM66W6ft) showed "Should we rethink the backoff,
or keep the wrapper's retry count at 3?" still passed: the keep word only had
to sit within 60 characters of "wrapper". The keep side now has to take the
wrapper as its object (keep/accept/go with [the] [retry] wrapper, not
wrapper's), or ask whether the wrapper should stand, stay or be the right
fix. A fail sample pins the reviewer's example.
The evidence-rated backtick stays: its pass sample ("rated `inferred`") is
a real reply shape. Re-grade over stored replies: 17872f after 2/3, before 0/3.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
Held for the owner. Review thread PRRT_kwDOTCGFQM66W6ft asks for a grader proving the reply states the failure the retry wrapper fixes. The llm grader on main checked that, and this PR's regex graders do not. A regex cannot do it: a failure-word check passed all 13 stored before replies. An llm grader needs a fresh paid eval run. Options: (A) add an llm problem-statement grader and run a new eval, or (B) record in #14878 that the problem statement is judged by expected_outcome, not a grader, and merge. Recommended: B, because the evidence-rated grader already requires a rated problem line. 🤖 Generated with Claude Code |
|
Hold lifted. The owner decided in the GitHub PRs lane session, verbatim: "go w/ recommendations". That chose option B from issuecomment-7063539026: #14878 now names the regex Q1 grader, the problem statement judged by expected_outcome, and the evidence-rated backtick, and says why. 🤖 Generated with Claude Code |
|
The pr-verify verifier failed head This pull request leaves the merge queue, and ci-status holds it out while it carries |
|
Held again. The owner's "go w/ recommendations" answered a message that asked only about ADR 0101, so it may not have decided this PR's Q1 (A: an llm problem-statement grader plus a new eval; B: #14878 names the grader changes, then merge). The hold stays until the owner confirms Q1 in his own words. 🤖 Generated with Claude Code |
Conflict in plugins/planning/tests/interview-defenses.test.sh, the SKILL.md Stance digest pin: re-pinned over the merged section (this branch's edits plus main's #17872 prescribed-solution routing, already reviewed and pinned on main): 7624ab78474a662bce553d6918e1378709f2466d28ee6fdf18ec7db789e920b5 -> 3c1623c043f6d17ec50189dc8e3b296e8f5efcf5653414279a648f478030a215; the no-silent-resolve rule's text is unchanged. Owner approved re-pinning the interview pins 2026-11-21. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Refs: #14878
Summary
On main,
interview-prescribed-solution-rethinkpassed 0 of 3 runs on its two judgment graders. Every run asked an open "what problem does the retry wrapper solve" question, never rated the problem's evidence, and never asked rethink-or-accept. The cause is the interview Stance line "Open with the problem when the request has none". It sent "a solution with no stated why" to that open question, and it won overcontext/loop.md's pointer toproblem-framing.md"Prescribed solution", which no run opened.interview-coverage-unattended-unexaminedpassed 2 of 3, which meets the issue's bar, so it is unchanged.Fix
plugins/planning/skills/interview/SKILL.md, Stance: a request phrased as a solution with no stated problem now followsproblem-framing.md"Prescribed solution". The section is read before round 1. The reply states the problem worked back out with its evidence rating, and round 1's first question is the rethink-or-accept question; any why question comes after it. The open what-problem question stays only for a request that names neither a problem nor a solution (an idea).plugins/planning/tests/interview-defenses.test.sh: re-pins the SKILL.md Stance section digest (53ff69a1…→3fcc51fe…). This line is the only change in that section. It changes which question opens round 1 and resolves no row. The lock STOP-on-gap, auto-guard and no-silent-resolve lines are byte-identical.plugins/planning/evals/interview-prescribed-solution-rethink/case.yaml(done-when item 2, "a grader that fails correct replies gets a sample covering that reply"):evidence-ratedaccepts a backticked rating (`inferred`).rethink-or-accept-askedis now a regex on round 1's first question: theQ1line, with markup allowed around the marker, names the wrapper and pairs "rethink" with a second choice joined by "or". The llm judge it replaces failed correct replies by reading "one question" as "only one question", while SKILL.md lets later questions follow.samples/evidence-rated.jsonandsamples/rethink-or-accept-asked.jsoncover the replies that were failed wrongly, plus failing shapes: an open what-problem question, the choice only in Q2, "rethink" with no second choice, a wrapper-parameter question, and a choice that never names the wrapper.evidence-ratedaccepts an evidence label without a stated problem (its first alternative), which the old judge would have failed; that check is narrower than before..changes/planning/: a patch fragment.Verification
plugins/planning/tests/interview-defenses.test.sh: PASS=185 FAIL=0.decision-levels,standards-binding,reattach-slice,plan-size-keysandinterview-surface-decision-mirrortests: pass.scripts/check-changed-skills.sh origin/main: 0 errors.scripts/check-changelog-fragments.sh --check: valid.scripts/validate-plugins.sh --only planning: no errors.scripts/check-affected.sh: 19 passed.validate-cases.py plugins/planning/evals: no FAIL; both changed sample files sort correctly.rethink-or-accept-askedregex, scored on all 30 kept replies from this PR's registrations: the new text passes 12 of 15 and the old text 0 of 15. Oneval-pr-17872f's compare it gives 2/3 and 0/3, matching the record. The wrapper requirement was added after the record, from review, and changes neither count.Eval
Registration
eval-pr-17872f(#14878), headb8485a6598,sonnet, 3 runs a side, every reading VALID, no denied calls. Overall PASS, no loss:evidence-rated0/3 to 2/3 andrethink-or-accept-asked0/3 to 2/3 (both targets met: a rise, and at least 2 of 3),skill-fired,no-plan-writeandno-plan-edit3/3 on both sides; mean case score 0.600 to 0.867. The two target graders fail every old-text run, as a behaviour change expects, so the no-loss check rests on the other three. Record: issuecomment-7061862476. After the record, the head moved only by14aab6cdbc, which tightens the grader from review. No skill or reference file changed, and re-grading the recorded replies gives the same counts.Earlier registrations at this pull request's older heads (17872b to 17872e) did not reach a record. In each, a grader failed correct replies (the llm judge, then a regex that missed markup and a reworded choice), or a smoke run stopped on a denied Write to a malformed path. The grader changes above came from those quoted replies.
Remaining
--runs 3on main, recorded on the issue) and item 3 (both cases pass at least 2 of 3 runs) are host-run evals, not code in this pull request. The host session records both on fix(planning): two interview evals fail on main (prescribed-solution rethink, unattended coverage) #14878 and closes it by hand after this merges.Related
Grader scope: the owner chose option B (owner-decisions L305); fix(planning): two interview evals fail on main (prescribed-solution rethink, unattended coverage) #14878 names both grader changes and says why.
plugins/planning/context/problem-framing.md"Prescribed solution" andplugins/planning/skills/interview/context/loop.md"Problem first, in every action": the rule this line now points to, both unchanged.🤖 Generated with Claude Code