Skip to content

test(planning): scope the upstream-term judge checks to decision questions - #16735

Merged
kyle-sexton merged 2 commits into
mainfrom
test/16626-upstream-term-judge-scope
Nov 17, 2026
Merged

kyle-sexton merged 2 commits into
mainfrom
test/16626-upstream-term-judge-scope

Conversation

@kyle-sexton

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

Copy link
Copy Markdown
Member

Refs: #16626

Summary

Case interview-context-unfamiliar-term-upstream, judge grader answerable-without-follow-up: checks 2 (what upstream does and what exists today) and 3 (gain and cost per alternative) now apply only to questions that ask for a decision. A question that only asks whether the terms are agreed is held to check 1 (terms defined in the question itself), which still applies to every question.

The owner made two decisions on 2026-11-17, both answered with "go w/ recommendations". They are relayed here by an agent session:

  • The re-judge in the issue's record comment counts as "the judge's stated reason" for done-when item 1, because claude plugin eval keeps no reason.
  • The judge grader applies its second check (what upstream does and what exists today) and its third check (gain and cost per alternative) only to questions that ask for a decision. A question that only asks whether the terms are agreed is held to the first check (terms defined in the question itself). Basis: the interview skill's own text, "as much as the decision needs and no more" (plugins/planning/skills/interview/SKILL.md:180).

Fix

  • graders/answerable-without-follow-up.md: one paragraph added after the three checks, and the FAIL sentence now applies "what upstream does or what exists today" to decision questions only.
  • samples/answerable-without-follow-up.json: the old samples are unchanged. Two samples are added:
    • A new pass sample: a terms-agreement Q1 with no "today" line and no costed alternatives, then a decision Q2 that meets all three checks.
    • A new fail sample: a decision Q2 that uses the fingerprint and the cluster step, which only Q1 defines. This is the miss the re-judge found in the kept replies.
  • prompt.md frontmatter: description and expected_outcome both described the old bar, so both now limit the upstream-and-today requirement to decision questions. The prompt text is unchanged.
  • Changelog fragment bump: none for planning, the same as test(verification): let the proof-level strict graders read bold-colon lines and open boxes #16684 used for an eval-only change.

The interview skill's text is unchanged.

Verification

  • python3 -I plugins/evals/skills/validate/scripts/validate-cases.py plugins/planning/evals: 0 FAIL, 498 WARN. Three WARN lines are for this case: two pre-existing allowed_tools grants (Bash, Write) and "5 sample answers need judge calibration".
  • scripts/check-affected.sh --no-fetch: "16 passed, 3 skipped over 4 changed files".
  • Re-judge 2: the new grader text was sent as an offline judge call, in the same shape as the first re-judge: claude -p, claude-opus-5-5, no tools, rubric verbatim, a stated reason per check before the verdict, at most 1 USD per call. That is 12 calls in one round, at a total cost of 0.72 USD. This is not the eval harness's own judge prompt, which is not published.
# Reply Verdict Expected Stated reason (quoted or condensed)
1 kept run 1 FAIL FAIL allowed Q1 (terms) holds on check 1, and 2 and 3 do not apply. Q2 relies on "cluster step", whose definition "appears only in Q1" (check 1). It also misses checks 2 and 3
2 kept run 2 FAIL FAIL allowed "Q3 through Q6 rely on 'cluster', 'clustering' or 'fingerprint', whose only definitions are in Q1". Q3 and Q4 also never say what the repository has today
3 kept run 3 FAIL FAIL allowed "Q2–Q5 rely on terms that are defined only in Q1, and Q3–Q5 also leave out what upstream ships or what the repository has today"
4 kept run 4 FAIL FAIL allowed "Q2 and Q3 use terms they never define, and Q3 never says what the repository does today". On Q2's cluster step: "The only definition is in Q1"
5 kept run 5 FAIL FAIL allowed "Q2 and Q3 depend on definitions that appear only in Q1 ('cluster step' in Q2, 'fingerprint' in Q3)". Q3 also lacks the intake.py fact
6 kept run 6 FAIL FAIL allowed "Q3 and Q4 both use 'fingerprint' (and normalize/cluster) without defining them, and the definitions sit only in Q1"
7 old pass sample PASS PASS all three checks hold for its one decision question
8 old fail sample 1 FAIL FAIL it fails all three checks: terms undefined, no upstream or today, "(a) No." with no gain or cost
9 old fail sample 2 FAIL FAIL "Each one relies on a summary line above it for its context, and neither gives what each option would gain or cost"
10 new pass sample PASS PASS "Both questions meet every check that applies to them". Q1 is held to check 1 alone
11 new fail sample FAIL FAIL, on check 1 Q2 relies on "cluster step", but "The definition is only in Q1 ... Q2 fails check 1 on its own, and that alone fails the round"
12 kept run 1, hand-fixed PASS PASS, or FAIL on check 1 only "Both questions hold on every check that applies to them". Under the old text, the first re-judge failed it on the terms question's costs

In every kept reply, the terms question is now held to check 1 alone. No verdict in the round faults a terms question on check 2 or 3. All six kept replies still fail, on check 1 in a later question. That is the skill's real miss, and it is not fixed here.

Remaining

  • Interview skill text: a later question uses a term that only the first question defines. This happened in all six kept replies in re-judge 2, and five of six in the first re-judge. SKILL.md:180 already asks for every term to be defined inline. Making that rule hard to skip is a change to the skill's text, and it needs its own pull request and a before-and-after eval.
  • No claude plugin eval run of this case was made here. The judge was checked only offline (re-judge 2 above). Done-when item 5, the recorded Sonnet run on main, still waits until this pull request and the skill-text fix merge.
  • Done-when item 3: no case change. The record that all six kept term-clash runs load the skill is already on the issue.

Related

🤖 Generated with Claude Code

kyle-sexton and others added 2 commits November 17, 2026 08:55
…tions

Claim commit for the build of the judge grader change on
interview-context-unfamiliar-term-upstream.

Refs: #16626

Co-Authored-By: Claude Opus 5.5 <[email protected]>
interview-context-unfamiliar-term-upstream: the answerable-without-follow-up
judge now applies its upstream-and-today check and its gain-and-cost check
only to questions that ask for a decision. A question that only asks
whether the terms are agreed is held to the first check, terms defined in
the question itself, which still applies to every question.

Samples add a passing round (a terms question with no today line and no
costed alternatives, then a decision question meeting all three checks)
and a failing round whose decision question uses terms only the first
question defines. The prompt's description and expected_outcome say the
same. The interview skill's text is unchanged.

Refs: #16626

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@kyle-sexton
kyle-sexton marked this pull request as ready for review November 17, 2026 14:06
@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-17T14:07:50.711514Z aa285d1 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

Lane run report

Field Value
Activity pr-refine/fix-docs
Model rung 0
Leg handoff
Run job success
Activity step success
Commits pushed none (read lane)
Run 44099598875

Failed GitHub API calls

Method Path Status
GET /repos/{repo}/git/ref/tags/* 404

@github-actions

Copy link
Copy Markdown
Contributor

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

Security review: no findings

I read every hunk of all 4 changed files. None of them falls under the trusted-path globs.

What changed. The pull request edits test material for one eval case (interview-context-unfamiliar-term-upstream):

  • Judge rubric (graders/answerable-without-follow-up.md): checks 2 and 3 now apply only to questions that ask for a decision. Check 1 still applies to every question.
  • Samples (samples/answerable-without-follow-up.json): one pass sample and one fail sample are added.
  • Case frontmatter (prompt.md): only description and expected_outcome change, to match the new rubric. allowed_tools, max_turns, timeout_seconds and runs are unchanged, and so is the prompt text.
  • Changelog fragment: a new bump: none fragment for planning.

Security surface. None of this touches a hook, a script, a workflow, a manifest, a trust control or a token path. The interview skill's text is unchanged. The rubric edit narrows when two eval checks apply. It is not a standing instruction to the agent and it removes no guardrail from any protected class, so the instruction-surface lens finds nothing.

Embedded text. I found no directives aimed at the review lane in the PR context.

Spend. None in the diff. The PR description reports offline judge calls the author already ran, paid from prepaid API credit; this change adds none.

critical-findings: 0

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

claude-review: 1 inline finding(s) on aa285d16fa8a512efcce9443a7e497afbc3d44ec; the summary is in this lane's pull request comment.

claude-lane: claude-review

@github-actions

Copy link
Copy Markdown
Contributor

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

Code review: PR #16735 (eval grader scope for interview-context-unfamiliar-term-upstream)

I read every hunk of all 4 changed files: the changelog fragment, the grader, prompt.md and the samples JSON. I also read the head grader file, case.yaml and scaffold.sh to check the samples' citations.

One blocking finding. It comes from the bundled criterion "Fail a change that loosens a check", which this lane must apply to every changed file. The grader now accepts replies it used to fail: a question that only asks whether the terms are agreed no longer has to meet checks 2 and 3. prompt.md's expected_outcome is relaxed in the same way. The PR says the repository owner decided this on #16626. But the PR only says Refs: #16626 and does not close it, so the PR context has no closing-issue spec text. The PR body cannot give the reason under this criterion. Details are in the inline comment on graders/answerable-without-follow-up.md:19-20.

Otherwise the change is consistent:

  • The new grader paragraph and the reworded FAIL sentence agree with each other. Check 1 and the "context only in another question" clause still apply to every question.
  • The new pass sample's Q2 defines both terms again inline. It states what upstream does and what exists today, and gives a gain and a cost for each alternative.
  • The new fail sample's Q2 uses "fingerprint" and "cluster step" without defining them, so it fails check 1 as its why says.
  • The README line citations (7, 8-10, 16) match the README that scaffold.sh seeds.
  • bump: none fits a change that touches only an eval.
  • Path rule .claude/rules/eval-case-transcripts.md applies to these files. The new samples are synthetic and hold no identifying details, so they meet it.

Spend (not a hold): none from this change itself. The author says the offline re-judge cost 0.72 USD of API credit; I have not verified that.

  • Closing issue: none. The PR says Refs: #16626 and has no closing-issue section, so no acceptance criteria were checked.
  • Paved paths: the standards index under docs/standards has no paved-path row, so there is nothing to report.
  • Loosened-check verdict: fail (default; the wrapper supplied no loosened_check_verdict: or loosened_check_patterns: line); patterns: 0
  • Verification: everything in the PR's Verification section is claimed by the author and unverified. This lane has no shell and ran nothing.

No subagent verifier was dispatched: the diff is small and I reviewed it inline.

Verifier dropped 0 of 1 candidates.

@kyle-sexton
kyle-sexton added this pull request to the merge queue Nov 17, 2026
Merged via the queue into main with commit f71c9c0 Nov 17, 2026
123 of 124 checks passed
@kyle-sexton
kyle-sexton deleted the test/16626-upstream-term-judge-scope branch November 17, 2026 14:40
@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