Repository navigation
fix(session-flow): grade the yardstick statement by meaning in the no-op steering-line case - #16234
Conversation
…op steering-line eval
The says-no-yardstick regex needed a negation right before
available/loadable/installed/loaded on the yardstick's line, so it failed
replies that said the yardstick was unavailable in other words ("isn't
among the available skills", "isn't in this session's skill list", "I
didn't have it to judge against"). It is now an llm grader with the same
name, focus and arm, and its samples are 8 pass and 7 fail answers taken
from recorded runs of the case, including the issue's original "not run"
reply as a fail.
Refs: #16126
Co-Authored-By: Claude Opus 5.5 <[email protected]>
…ines Several samples carried context bullets reworded or added by hand next to the recorded yardstick sentence. Each sample now holds only lines cut from its recorded reply, except the one hand-written "used" fail. Refs: #16126 Co-Authored-By: Claude Opus 5.5 <[email protected]>
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 #16234 (incremental, blocking only)No security issues found. This review covered only what changed since What changed since the last review:
Why no security check applies:
Spend: the two new samples add two judge-model calls each time the judge is calibrated. That uses prepaid API credit only and is not a finding. PR text: the PR description and the issue comment contain no instructions aimed at this lane. critical-findings: 0 |
|
claude-review reviewed Code review: PR #16234, incremental since
|
…amples "Not loaded" can describe a choice, so the criteria now count only "could not be loaded" or "not loadable". "The steering-file check" is no longer a name for the yardstick, since replies use it as the heading of their own review. An absent docs-hygiene plugin counts as the yardstick being unavailable. One new pass sample names only the plugin, and one new fail sample pairs another unavailable skill with a yardstick that was only not run. Refs: #16126 Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
The pr-verify verifier failed head What it wrote (26 lines)This pull request leaves the merge queue, and ci-status holds it out while it carries |
Closes #16126
Summary
The
says-no-yardstickgrader of the session-flow eval casere-session-noop-steering-linewas a regex. It passed only when a negation came directly before "available", "loadable", "installed" or "loaded" on the same line as "yardstick" or "write-for-agents". Replies that said the yardstick was unavailable in other words failed it: "isn't among the available skills", "isn't in this session's skill list", "I didn't have/docs-hygiene:write-for-agentsto judge against". The issue's second done-when item asks for a model-graded grader with calibration samples when the grader must read meaning, and this one must.The first done-when item is already done: pull request 16134 changed
plugins/session-flow/skills/retro/context/session.md(lines 322-325 on main) so the statement is owed for every assessed steering-file line, and it requires saying the yardstick was not available, not only that it was not run. This pull request does the second item.Before, from the hub's record comment on the issue (Claude Code 2.1.325, judge claude-opus-5-5, auto memory off, 6 runs per file):
says-no-yardstickroutes-noop-line2cdd1a8cc9)0bfd6c0b, an earlier compare's main side)b92f682e09, the 15935 compare's main side)By hand, 4 of the 7 failing Sonnet replies on main do state the yardstick was unavailable, so Sonnet is about 9 of 12 by meaning.
Fix
case.yaml:says-no-yardstickis nowtype: llm,focus: last_message,arm: with-only(as before). It passes only a reply that says the steering-file yardstick (/docs-hygiene:write-for-agents) was not available, installed, loadable or among the session's skills, in any wording. It fails a reply that only says the yardstick was not run or not used, one that never mentions it, and one that says it was available or used. It judges what the reply says, not whether it is true.samples/says-no-yardstick.json: rewritten for the judge, 9 pass and 8 fail, each with awhy. All but three are lines cut verbatim from recorded runs of this case, trimmed to the Phase 3 text the judge needs:docs-hygieneyardstick."), four recorded "was not run" or "didn't run it" replies, and one recorded reply with no yardstick sentence.correctionsplugin is not among the available skills, the other says only that the yardstick was not run. Unavailability of some other skill does not count..changes/session-flow/: abump: nonefragment.scripts/check-changelog-fragments.sh --check-requiredcounts any file underplugins/<name>/as shipped, the eval case included.routes-noop-line, the must-not graders, the scaffold and the skill text are unchanged.Verification
python3 -I plugins/evals/skills/validate/scripts/validate-cases.py plugins/session-flow/evals: exit 0, no FAIL. For this case it reportsWARN re-session-noop-steering-line/samples/says-no-yardstick.json: 17 sample answers need judge calibration; this check never calls a model, the expected warning for an llm grader's samples.bash scripts/check-changelog-fragments.sh --check-required origin/main: every fragment-mode plugin changed has a fragment.bash scripts/check-affected.sh --no-fetch: 15 passed, 3 skipped over 3 changed files since4f2dcaaff3.git diff --check origin/main..HEAD: clean.git grep -n says-no-yardstick: besidescase.yaml, only the released entry atplugins/session-flow/CHANGELOG.md:7names the grader. That entry is history, so it stays as written.How to measure before and after: calibrate the judge on
samples/says-no-yardstick.json(every sample sorted as labeled), then run the case 6 times on Sonnet on this head withCLAUDE_CODE_DISABLE_AUTO_MEMORY=1and compare the per-grader pass counts with the table above. The issue's target issays-no-yardstickpassing in at least 5 of 6.Judge calibration and run record
This pull request carried the
do-not-mergelabel from its opening until this record was added. Headb2a5b7cc463cd3feacc6ecfda202a2d6a34ce248, Claude Code 2.1.325, judge claude-opus-5-5. The plan was written before the first launch; nothing was rerun. Run figures re-derived by the hub session from the result file.Calibration of
says-no-yardstickon its 17 samples (9 pass, 8 fail), 3 runs per sample: the judge agrees with every label, 51 of 51 runs, every vote unanimous. 0.88 USD.Run: the case alone, 6 runs on Sonnet,
--ablation none. The file reads VALID inrun-validity.py --runs 6 --scaffolded, no run error, not partial, no shim,command not foundor permission-check hit. 1.08 USD.says-no-yardstick(llm)routes-noop-line(regex)no-write,no-edit,no-bash-writesWhat remains (the issue's third done-when item asks for at least 5 of 6, "or the body explains what remains"): the grader now reads the replies correctly and the skill misses on its own. The three failing replies say only that the yardstick was not run, which is the wording the skill text rules out: "I did not run
/docs-hygiene:write-for-agentsas a yardstick.", "/docs-hygiene:write-for-agentswas not run.", "I didn't run the/docs-hygiene:write-for-agentsyardstick against the twoCLAUDE.mdlines, so that judgment is not made." None says it was unavailable. The same three replies report no no-op line. The skill-text change that would lift both counts is its own issue, #16239, with a before/after eval as its done-when; this pull request changes no skill text.Related
session: GitHub Support
🤖 Generated with Claude Code