Skip to content

fix(planning): accept every basis source the interview skill lists in the basis-and-flip grader - #16247

Merged
kyle-sexton merged 4 commits into
mainfrom
fix/16092-basis-accepts-tool-output
Nov 15, 2026
Merged

kyle-sexton merged 4 commits into
mainfrom
fix/16092-basis-accepts-tool-output

Conversation

@kyle-sexton

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

Copy link
Copy Markdown
Member

Refs: #16092

RUN RECORD 2 (VALID; one launch under a plan written first, no rerun): a second 8-run record of interview-recommendation-basis-and-flip on Sonnet, judge claude-opus-5-5, --ablation none, at this head 12fb66e77150c9d4141496716410a434a505d6fa, with the same plugin copy and launch flags as the first record. The owner authorized it after the first record read INVALID (decision Q154 (b): one new 8-run record read under a run-level rule for denied tool calls; release on a VALID file or a denial-free reading with at least 6 counted runs). run-validity.py --runs 8 reads it VALID (warnings: skill fired, judge votes) with no denied tool call in 8 traces, so no run is excluded and both readings are the same.

Main 4f2dcaaff35e First record (INVALID) Record 2 (VALID)
Runs at 1.00 5 of 8 5 of 8 3 of 8
checkable-basis-and-flip 5 of 8 5 of 8 3 of 8
states-flip-condition 7 of 8 8 of 8 8 of 8

FIRST RECORD (planned before the launch, no reruns): 8 Sonnet runs of interview-recommendation-basis-and-flip with the plugin on head 12fb66e77150c9d4141496716410a434a505d6fa (--ablation none, judge claude-opus-5-5, the same launch flags as the host check). The result file is INVALID: run-validity.py --runs 8 reports one denied tool call (run 6, a compound mkdir -p ... && cp ... && wc -l ... Bash call the sandbox refused). No score is claimed from it and it is not rerun. This change is not shown to move the case toward its target of 1.00 in at least 7 of 8, and it was not expected to reach it alone.

Read for diagnosis only, beside main 4f2dcaaff35e:

Main This head (INVALID file)
Runs at 1.00 5 of 8 5 of 8
checkable-basis-and-flip 5 of 8 5 of 8
states-flip-condition 7 of 8 8 of 8
  • Trace greps over the 8 traces for is not a valid shim, Shell command permission check failed for pattern and command not found: 0 hits. Not partial, no run errored. Cost 4.06 USD.
  • The three runs under 1.00 each fail only checkable-basis-and-flip, each with a split judge vote. Read against the grader as changed here, all three are reply misses, not grader misses: two give "definitions only" as the basis for terms the reply coined, and one names an open fact with no condition that would change the recommendation. Those are the skill-text gaps fix(planning): interview replies end after the round, cite the scope rule as a basis, and source coined definitions #16252 records.
  • The case's allowed_tools lists read-only tools, and the launch grants Bash, Write and Edit, as the host check on main did, so both sides were measured with the same grant. All 8 runs used Bash and 6 wrote the interview's ledger files.

Summary

The checkable-basis-and-flip grader of the planning case interview-recommendation-basis-and-flip accepted only a file path with a line, a URL, or a fact the user stated as a checkable basis. The interview skill lists more sources (plugins/planning/skills/interview/SKILL.md:228: "a file:line, a URL fetched this session, a session-transcript finding, or tool output"). In the host check, run 4 drew a split judge vote (FAIL PASS FAIL). Its Q7 rests on "Basis: verified, survey of the working directory (no commits, no application code)". The judges' reasons were not recorded, so which question drew the FAIL votes is not known.

Fix

  • graders/checkable-basis-and-flip.md: item 1 now lists every source the skill names:

    • a file path with a line, or a URL;
    • tool output or a check the reply says it ran this session (a command, a search, a survey of the working directory), named with what it showed;
    • a session-transcript finding (something the user said or a tool returned earlier in this session, named), never the reply's own earlier claim;
    • a fact the user stated.

    A transcript finding in this single-turn case can only be a user statement or a tool result. A new sentence adds that a result too vague to check ("nothing relevant", "I checked") does not count. The examples and the bare-judgment sentence are unchanged, and so is the rest of the criteria.

  • prompt.md: expected_outcome lists the same basis kinds.

  • samples/checkable-basis-and-flip.json: seven hand-labeled samples.

    • PASS: run 4's Q7 verbatim (a named survey with its result).
    • PASS: a fact the user stated, cited by round ("you confirmed in round 1 that Redis 7 is deployed for sessions").
    • PASS: a tool finding from this session ("the Glob for **/*rate* this session returned no files").
    • FAIL: a basis citing the reply's own earlier claim ("as established in Q2 above").
    • FAIL: run 0's Q8 verbatim ("Basis: verified, the interview's what-not-how scope rule"). This sample labels a basis that cites only one of the interview's own rules as a FAIL; the grader text itself does not name that case.
    • FAIL: "Basis: verified, I checked", with no check named.
    • FAIL: a named check with a vague result ("survey of the working directory (nothing relevant)").
    • Re-read against the new wording, none of the existing samples changes label.
  • .changes/planning/: a bump: none fragment (eval-only change).

No file under plugins/planning/skills/ changes.

Remaining

The other candidates for the runs under 1.00 trace to skill text, which is outside this issue's fence:

  • Run 5: the round was not the turn's last message. A 376-character correction note came after it, and the last_message judge read only that note.
  • Run 0: Q8's basis cites the interview's own scope rule, and Q1 rests on terminology definitions labeled judgment with no source.
  • Run 4, a second candidate for its failing votes: Q1 gives "Basis: verified, your request text" for five definitions, while its Origin line marks three of them (window, fail-open, fail-closed) as new (ours). That is the same shape as run 0's Q1.

These need skill-text changes that belong to a separate issue.

Verification

  • validate-cases.py plugins/planning/evals: no FAIL. This case reports only the WARN that its sample answers need judge calibration.
  • scripts/check-affected.sh --no-fetch: pass.
  • scripts/check-changelog-fragments.sh --check-required origin/main: pass.
  • git diff --check origin/main...HEAD: clean. typos on the changed files: clean.
  • The new samples are labeled by hand and have not been calibrated against a model judge.
  • Measurement method: run claude plugin eval on this head, case interview-recommendation-basis-and-flip alone, 8 Sonnet runs, judge claude-opus-5-5. Record here the per-run scores and the checkable-basis-and-flip vote counts. Before this change: 5 of 8 at 1.00 (main at 4f2dcaaff35e8f9fccc6a9f4d82a5830ab17a5c5). Expected: the run-4 shape may stop splitting. Reaching the target needs the skill-text work under Remaining.

Related

session: GitHub Support

🤖 Generated with Claude Code

kyle-sexton and others added 4 commits November 14, 2026 17:09
The interview skill allows tool output as a recommendation's basis, but
the checkable-basis-and-flip grader listed only a file path with a line,
a URL, or a user-stated fact. Add tool output the reply names with what
it showed, mirror it in expected_outcome, and add labeled samples: a
named working-directory survey passes; a basis citing only the
interview's own scope rule, and a bare "I checked", fail.

Refs: #16092

Co-Authored-By: Claude Fable 5.2 <[email protected]>
Item 1 of the checkable-basis-and-flip grader now lists each source the
interview skill allows: tool output or a check run this session, named
with what it showed, and a session-transcript finding, beside a file
path with a line, a URL, and a user-stated fact. expected_outcome lists
the same kinds. Two labeled samples: a named session-transcript finding
passes; a named check with a vague result fails.

Refs: #16092

Co-Authored-By: Claude Fable 5.2 <[email protected]>
…ue to check

A session-transcript finding is now something the user said or a tool
returned earlier in the session, named, and never the reply's own
earlier claim. A result too vague to check ("nothing relevant", "I
checked") does not count. expected_outcome mirrors the bound. The Redis
sample is relabeled as a user-stated fact. Two samples are added: a
named Glob result passes, and a basis citing the reply's own Q2 fails.

Refs: #16092

Co-Authored-By: Claude Fable 5.2 <[email protected]>
@kyle-sexton kyle-sexton added the do-not-merge Hard merge gate: do not merge while applied. label Nov 14, 2026
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 14, 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-14T22:30:59.906030Z 12fb66e PR opened
ℹ️ 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 12fb66e77150c9d4141496716410a434a505d6fa: read 4 of 4 changed file(s); 0 finding(s), 0 as inline comments.

No security issues found.

I read every hunk of all 4 changed files. The pull request only touches the interview-recommendation-basis-and-flip eval case in the planning plugin, plus a bump: none changelog fragment:

  • Grader (graders/checkable-basis-and-flip.md): one more kind of basis now counts. That is tool output or a check run this session, named with what it showed, or a finding from the session transcript. This is the rubric an eval judge uses to score the quality of an answer. It is not a standing instruction that guards any action, so the instruction-surface lens finds nothing.
  • Prompt (prompt.md): only the wording of expected_outcome changes. allowed_tools: [Read, Glob, Grep, Skill], max_turns: 12 and timeout_seconds: 600 are the same as before, so the eval session gets no new tools or budget.
  • Samples (samples/checkable-basis-and-flip.json): seven new hand-labeled pass and fail samples. They are static data.

The pull request changes no trusted path, plugin manifest, workflow, token scope, kill switch or merge hold. Nothing new reaches a lane that holds credentials, and nothing here can cost money. The pull request description has no embedded directives aimed at this lane.

critical-findings: 0

@github-actions

Copy link
Copy Markdown
Contributor

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

Code review: no findings

I read all four changed files in full: the changelog fragment, the grader, the prompt.md frontmatter and the samples JSON. I also checked the grader and samples at head against the interview skill's basis list at plugins/planning/skills/interview/SKILL.md:228.

  • Grader (graders/checkable-basis-and-flip.md): item 1 now accepts every source the skill lists: a file:line, a URL, tool output or a check that is named with what it showed, a session-transcript finding (but not the reply's own earlier claim), and a fact the user stated. A new sentence rules out results too vague to check. Item 2 and the FAIL rules are unchanged, so the flip-condition checks behave as before.
  • Samples: each of the 7 new hand labels matches the new grader text:
    • The 3 PASS samples cite a named survey with its result, a user fact cited by round, and a Glob result.
    • The FAIL samples for "I checked", "nothing relevant" and "as established in Q2 above" each break one of the new exclusions.
    • The Q8 "interview's scope rule" FAIL matches no accepted source, so it fails by exclusion. The PR description says this itself.
    • The existing samples keep their labels under the new wording.
  • expected_outcome: lists the same kinds of basis as the grader.
  • Fragment: bump: none with a one-line reason. That fits the repository's opt-out for eval-only changes (ADR 0048), since no file under plugins/planning/skills/ changes.

The PR's verification steps (validate-cases.py, check-affected.sh, check-changelog-fragments.sh, typos) are claimed by the author and unverified: this lane has no shell. The new samples are also not yet calibrated against a model judge, as the PR says.

No closing issue: the PR only Refs: #16092, so there are no acceptance criteria to check. No plugin manifest changes. No embedded instructions in the PR context. No prior findings, and this is not a blocking-only review.

Spend: the PR's measurement plan uses 8 Sonnet eval runs plus Opus judge calls, paid from prepaid API credit, so it is not a hold.

Verifier dropped 0 of 0 candidates.

@kyle-sexton kyle-sexton removed the do-not-merge Hard merge gate: do not merge while applied. label Nov 15, 2026
@kyle-sexton
kyle-sexton added this pull request to the merge queue Nov 15, 2026
Merged via the queue into main with commit a78bd4c Nov 15, 2026
119 of 124 checks passed
@kyle-sexton
kyle-sexton deleted the fix/16092-basis-accepts-tool-output branch November 15, 2026 01:35
@github-actions github-actions Bot added the merge-path: owner-agent Post-merge accounting record (README.md, Merge paths) label Nov 15, 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