Skip to content

fix(session-flow): grade the yardstick statement by meaning in the no-op steering-line case - #16234

Merged
kyle-sexton merged 3 commits into
mainfrom
fix/16126-yardstick-grader
Nov 14, 2026
Merged

kyle-sexton merged 3 commits into
mainfrom
fix/16126-yardstick-grader

Conversation

@kyle-sexton

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

Copy link
Copy Markdown
Member

Closes #16126

Summary

The says-no-yardstick grader of the session-flow eval case re-session-noop-steering-line was 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-agents to 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):

Skill text Model says-no-yardstick routes-noop-line
before the change (2cdd1a8cc9) Sonnet 0/6 6/6
main (0bfd6c0b, an earlier compare's main side) Sonnet 2/6 4/6
main (b92f682e09, the 15935 compare's main side) Sonnet 3/6 5/6
main, both files Opus 6/6 and 5/6 6/6 and 6/6

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-yardstick is now type: 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 a why. All but three are lines cut verbatim from recorded runs of this case, trimmed to the Phase 3 text the judge needs:
    • The passes include the three paraphrases above, which the old regex failed, plus four replies it already passed: "isn't available", "isn't installed", "isn't installed in this session" and "wasn't available".
    • The fails include the issue's original reply ("I didn't run the docs-hygiene yardstick."), four recorded "was not run" or "didn't run it" replies, and one recorded reply with no yardstick sentence.
    • One fail is written by hand: a reply that claims the lines were judged against the yardstick. It covers the "used" clause, which no recorded reply shows.
    • One fail joins two recorded lines: one says the corrections plugin is not among the available skills, the other says only that the yardstick was not run. Unavailability of some other skill does not count.
    • One pass is written by hand and names only the docs-hygiene plugin as not installed.
  • .changes/session-flow/: a bump: none fragment. scripts/check-changelog-fragments.sh --check-required counts any file under plugins/<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 reports WARN 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.
  • Before the grader swap, the same validator run over the new samples with the old regex failed must-pass samples 1, 2, 3 and 6, the paraphrases the regex cannot read.
  • 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 since 4f2dcaaff3.
  • git diff --check origin/main..HEAD: clean.
  • git grep -n says-no-yardstick: besides case.yaml, only the released entry at plugins/session-flow/CHANGELOG.md:7 names 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 with CLAUDE_CODE_DISABLE_AUTO_MEMORY=1 and compare the per-grader pass counts with the table above. The issue's target is says-no-yardstick passing in at least 5 of 6.

Judge calibration and run record

This pull request carried the do-not-merge label from its opening until this record was added. Head b2a5b7cc463cd3feacc6ecfda202a2d6a34ce248, 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-yardstick on 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 in run-validity.py --runs 6 --scaffolded, no run error, not partial, no shim, command not found or permission-check hit. 1.08 USD.

Grader Passes of 6 Runs 1 to 6
says-no-yardstick (llm) 3 F F P P P F
routes-noop-line (regex) 2 F F P P F F
no-write, no-edit, no-bash-writes 6 each all pass

What 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-agents as a yardstick.", "/docs-hygiene:write-for-agents was not run.", "I didn't run the /docs-hygiene:write-for-agents yardstick against the two CLAUDE.md lines, 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

  • Refs: pull request 16134, which made the skill text owe the yardstick statement for every assessed steering-file line.
  • Refs: pull request 15961 and pull request 15935, whose eval runs supplied the recorded replies.

session: GitHub Support

🤖 Generated with Claude Code

kyle-sexton and others added 2 commits November 14, 2026 16:12
…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]>
@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-14T21:18:23.396952Z 3ef7d4c 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

github-actions Bot commented Nov 14, 2026 •

Copy link
Copy Markdown
Contributor

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

Security review: PR #16234 (incremental, blocking only)

No security issues found. This review covered only what changed since 3ef7d4ca, the head this lane reviewed last. I read every hunk of both files in scope. This lane already reviewed an earlier head, so this review was blocking only: it reports CRITICAL and IMPORTANT findings, and it found none of either.

What changed since the last review:

  • plugins/session-flow/evals/re-session-noop-steering-line/case.yaml: the says-no-yardstick LLM grader's criteria text is reworded. It drops "the steering-file check" as an accepted name, and it now counts "the docs-hygiene plugin is absent or not installed" as a statement that the yardstick was unavailable.
  • samples/says-no-yardstick.json: one pass sample and one fail sample are added for judge calibration.

Why no security check applies:

  • Trusted paths: neither file matches a TRUSTED PATHS glob.
  • Plugin manifests: no plugin.json or marketplace.json changed.
  • Trust controls: no workflow, action, token request, kill switch or merge hold changed.
  • Shipped code: no skill text, hook or script that users install changed. Both files are eval data.
  • Instruction surface: no rule the model follows at run time is deleted or softened. The change only edits the judge's grading text and its test samples.
  • Untrusted text: the criteria and samples are written in the repository. They reach only the eval judge, which reads them as grading data. No input from an attacker reaches a lane that holds credentials.

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

@github-actions

github-actions Bot commented Nov 14, 2026 •

Copy link
Copy Markdown
Contributor

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

Code review: PR #16234, incremental since 3ef7d4ca

Blocking only: this lane already reviewed an earlier head, so this review reports blocking findings only.

Scope: I read both files changed since the last review: case.yaml and samples/says-no-yardstick.json.

What changed:

  • Criteria wording. The criteria drop "the steering-file check" as a name for the yardstick, add "could not be loaded", and add one new rule: saying the docs-hygiene plugin is absent or not installed counts as saying the yardstick was unavailable.
  • New pass sample (written by hand). It names only the plugin as not installed.
  • New fail sample. It joins two recorded lines: one says the corrections plugin is unavailable, and the other says the yardstick was only "not run".

Checks on the new criteria:

  • Sample labels. Each label still follows from the criteria. The new pass sample falls under the new plugin rule. The new fail sample falls under the clause for "something other than the yardstick … was unavailable" plus the clause for "only not run".
  • Removed name. Taking out "steering-file check" orphans no sample. The two samples with a "Steering-file check:" heading also name /docs-hygiene:write-for-agents by path.
  • New plugin rule. It doesn't conflict with the FAIL clause about "another plugin": that clause still covers plugins other than docs-hygiene, such as corrections.

Closing issue #16126:

  • Done-when 3: still not met (blocking). This finding was in the last review's summary and has no line anchor, so it is restated here. The criterion reads: "On main after the change, 6 Sonnet runs of the case with CLAUDE_CODE_DISABLE_AUTO_MEMORY=1 are recorded in the pull request with the per-grader pass counts; the grader passes in at least 5 of 6, or the body explains what remains." The PR body still says "JUDGE CALIBRATION AND RUN RECORD: pending".
    • The sample set is now 17 samples (9 pass, 8 fail). The body still says 15 samples, 8 pass and 7 fail. Calibrate the judge on all 17, and fix those counts in the body.
    • Then record the calibration result and the 6 Sonnet runs, with per-grader counts, in the PR body before merging. The do-not-merge label the body describes fits the current state.

Verification: I ran nothing. Everything the PR body reports as verified is the author's claim and unverified.

Spend: none in this diff. Calibrating the judge and recording the 6 Sonnet runs will draw on prepaid model usage. That is not a hold.

Verifier dropped 0 of 0 candidates.

…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]>
@github-actions

Copy link
Copy Markdown
Contributor

The pr-verify verifier failed head b2a5b7cc463cd3feacc6ecfda202a2d6a34ce248. What it wrote, as data:

What it wrote (26 lines)
Summary: Closes #16126. The diff covers the issue's first two done-when items. It replaces the
  `says-no-yardstick` regex with an `llm` grader (`focus: last_message`, `arm: with-only`) whose
  criteria match what the skill text requires since #16134: say the yardstick was unavailable, not
  just that it wasn't run. The body gives the reason for the change. The calibration samples include
  the issue's real reply ("I didn't run the `docs-hygiene` yardstick.") labelled fail, and the
  samples are consistent with the criteria. The third done-when item is not delivered. It asks for 6
  Sonnet runs with `CLAUDE_CODE_DISABLE_AUTO_MEMORY=1` to be recorded in the pull request with
  per-grader pass counts, and the body says that record is "pending". No person_checks or
  credited_siblings excuse that item. The body also miscounts the samples: the diff has 9 pass and 8
  fail samples, two of them hand-made or assembled, but the body claims 8 and 7 (15 in all) with
  only one hand-written. Every CI job that ran concluded success (Check Plugins, Check Skills, Test
  Python (0), Test Bash (0):
  https://github.com/melodic-software/claude-code-plugins/actions/runs/43642319334). `CI Status`
  failed, but it is a hold summary, not test evidence. Test Node was skipped, which is expected
  because no Node suite covers these files. The capture was blocked, which counts neither for nor
  against the change. Nothing in the diff touches the takeover set, secrets or settings, and none of
  the text tries to steer a reviewer.
- PR body (#16234): done-when item 3 of #16126 is not delivered. 'JUDGE CALIBRATION AND RUN RECORD:
  pending'. Calibrate the judge on samples/says-no-yardstick.json, then run the case 6 times on
  Sonnet with CLAUDE_CODE_DISABLE_AUTO_MEMORY=1. Record the per-grader pass counts in the body.
  `says-no-yardstick` must pass at least 5 of 6, or the body must explain what remains.
- plugins/session-flow/evals/re-session-noop-steering-line/samples/says-no-yardstick.json: the file
  has 9 pass and 8 fail samples (17), but the body claims 8 pass and 7 fail (15) with only one
  hand-written. Pass sample 9 is marked hand-written and fail sample 8 is assembled from two
  recorded lines. Fix the body's counts, its provenance claims and the quoted validator output ('15
  sample answers'), and run calibration on all 17 samples.

This pull request leaves the merge queue, and ci-status holds it out while it carries pr-verify-failed. A pr-verify pass removes the label, at a new commit or at this same head: once a trusted person edits the body, and only trusted people have edited it since the fail, this head is judged again, so a fail on the body or the issues it links needs only the body fixed, no new commit.

@github-actions github-actions Bot added the pr-verify-failed pr-verify failed this head; a pass at a new commit, or after a trusted body edit, removes it. label Nov 14, 2026
@kyle-sexton kyle-sexton removed the do-not-merge Hard merge gate: do not merge while applied. label Nov 14, 2026
@github-actions github-actions Bot removed the pr-verify-failed pr-verify failed this head; a pass at a new commit, or after a trusted body edit, removes it. label Nov 14, 2026
@kyle-sexton
kyle-sexton added this pull request to the merge queue Nov 14, 2026
Merged via the queue into main with commit 2568c1b Nov 14, 2026
78 of 80 checks passed
@kyle-sexton
kyle-sexton deleted the fix/16126-yardstick-grader branch November 14, 2026 21:39
@github-actions github-actions Bot added the merge-path: owner-agent Post-merge accounting record (README.md, Merge paths) label Nov 14, 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.

fix(session-flow): the says-no-yardstick grader never passes on main

1 participant