Skip to content

test(songwriting): ready the eval suite for the next #8431 pass - #12153

Merged
kyle-sexton merged 8 commits into
mainfrom
test/8431-songwriting-suite-next-pass
Nov 2, 2026
Merged

kyle-sexton merged 8 commits into
mainfrom
test/8431-songwriting-suite-next-pass

Conversation

@kyle-sexton

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

Copy link
Copy Markdown
Member

Refs: #8431

Summary

This PR gets the songwriting eval suite ready for the next measured pass of #8431 item 2: diagnose, meter-prosody and rhyme, before and after #8427. The last pass could not call non-inferiority. It had one case per skill, and the raw-count-not-balance grader failed six valid with-arm replies. This PR fixes that grader, fixes one rhyme grader that a sample proves wrong, and adds a second slash-invoked case for each skill. Nothing here was run against a model.

Fix

  • mp-chorus-stress-count / raw-count-not-balance is now type: llm. The regex matched only listed phrasings. Real replies kept saying in their own words that the raw 8/9/9/8 count does not show balance, and the regex failed them. The new rubric is the case's expected outcome:

    • PASS: the reply says the raw count does not measure or show balance, and it points to stressed syllables as the measure.
    • FAIL: the reply reads 8/9/9/8 as evidence of balance or of imbalance.
    • FAIL: the reply reports stresses but never addresses the raw count.

    The sample file keeps all of the regex's existing samples except one pass sample that never mentions stress. It adds fresh paraphrases, including counts that look uneven while the stresses balance, and the two forms test(songwriting): widen five eval graders that failed valid replies #11941 left under Remaining. On the fail side it adds a reply that reads the count as proof of imbalance, one that is silent on syllable counts, and an answer to a different question. The grader name is unchanged, so per-grader tables line up with the last pass.

  • rh-window-menu-no-winner / no-single-winner. The grader flagged the guide that notes.md finding 3 describes: a "How I'd choose:" guide keyed to feelings, with two picks for one mood. The cause is that "How I'd choose" itself matches the I'd choose branch. I ported the exemption test(songwriting): widen five eval graders that failed valid replies #11941 gave the metaphor case. Its winner: skipped|declined|none lookahead is kept.

    • Three new must-pass guides fail the current pattern and pass the fixed one.
    • Four new must-fail samples fail under both patterns.
    • No existing sample changes verdict.
  • tier-labels-span: left unchanged. The reply behind notes.md finding 2 has been deleted. "A closeness word" for the family tier could equally mean near-perfect. The expected outcome names the family tier. No sample can show a false negative.

  • New cases, one per skill. Each prompt slash-invokes the skill, carries its tag and allows Skill, Read, Glob, Grep. Each grader checks something the SKILL.md promises, and each case has at least one check the without arm, which has no skill text, is unlikely to pass.

Case Skill Graders
mp-sung-line-template (align-melody: a sung demo line, asks for a fitted replacement) meter-prosody positional-template (regex: three or more bracketed syllable numbers, on one line or as table rows), routes-to-co-write (regex), no-fitted-line (llm)
dg-audit-identity-rhyme (audit a line ending light / delight, with no voiceprint) diagnose identity-flagged (regex), box-verdicts (regex), register-gate-skipped (regex)
rh-release-identity-menu (writer offers police / lease for "release" and asks for one) rhyme identity-flagged (regex), eight-plus-candidates and no-single-winner (both copied from the rhyme case), no-identity-candidate (llm)
  • The new rhyme case's no-single-winner also passes "neither" refusals ("The answer is neither", "I'd pick neither", "My pick: neither"). The prompt asks the writer's two options to be ranked, so "neither" is the correct answer there. This change is in the new case only, so the measured rh-window grader carries just the fix above.
  • A songwriting patch changelog fragment.

Verification

  • validate-cases.py plugins/songwriting/evals (evals 0.11.1) with node on PATH, so the JavaScript RegExp check ran (it reported one FAIL during authoring, since fixed). Result: exit 0, 0 FAIL, 4 WARN:
    • The existing WARN that dg-variations-arrow-blocks lists Bash.
    • Three WARNs that the llm samples need judge calibration: 46 for raw-count-not-balance, 4 for no-fitted-line, 4 for no-identity-candidate.
  • No-single-winner false positive, checked with Python re: the current pattern fails the 3 new must-pass guides and the fixed pattern passes them. Both patterns fail all 4 new must-fail samples. 0 existing samples change verdict.
  • Swap check, on a scratch copy with each regex sample file's pass and fail sets swapped. Every file FAILs, so the samples are read. FAIL lines per file, counting the Python and JavaScript checks together:
    • box-verdicts 12, identity-flagged (dg) 26, register-gate-skipped 14
    • positional-template 20, routes-to-co-write 12
    • eight-plus-candidates 26, identity-flagged (rh) 20, no-single-winner (rh-release) 44
    • no-single-winner (rh-window) 34
  • scripts/check-affected.sh --tests against main: 13 passed, 3 skipped (no shell, no Python, no skill file). The pre-push check-affected hook passed as well.
  • The diff was checked for machine-specific paths, emails and secrets. None found.

Left out:

  • Calibrating the three llm graders, which needs a paid judge run (/evals:plugin-eval, "Calibrating a judge"). 54 labeled samples are ready for it.
  • The before-version smoke pass on the three new cases, which is paid (rewrite protocol step 2).
  • Recording the freeze digest, which is lane 4's job at freeze.

Related

  • #11941: the earlier grader widening this PR builds on.
  • #8427: the change under measurement.
  • Risk to watch in the smoke pass: mp-sung-line-template allows Skill. If a run routes by actually invoking /songwriting:co-write line-brainstorm, that skill writes lines and no-fitted-line fails what is arguably correct routing. Read such a failure before calling it real.

Remaining

🤖 Generated with Claude Code

kyle-sexton and others added 2 commits November 1, 2026 17:49
Replace the mp-chorus-stress-count raw-count-not-balance regex with an
llm grader whose criteria is the expected outcome, keeping its samples
and adding paraphrases, an imbalance-from-raw-count fail and a
stress-only fail. Port the metaphor case's "How I'd choose:" exemption
to the rhyme case's no-single-winner, with samples that fail the old
pattern. Add one slash-invoked case per skill: dg-audit-identity-rhyme,
mp-sung-line-template and rh-release-identity-menu.

Refs: #8431

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@kyle-sexton
kyle-sexton marked this pull request as ready for review November 1, 2026 22:53
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 1, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-01T22:54:45.877630Z 39052b9 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.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 39052b993d

ℹ️ 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".

@github-actions

github-actions Bot commented Nov 1, 2026 •

Copy link
Copy Markdown
Contributor

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

Security review: PR #12153, incremental (039f344..d58acd3)

No security issues found.

Scope. I read every hunk of the 4 in-scope files in .claude-lane/incremental.diff. None of them matches a TRUSTED PATHS: glob.

What changed.

  • The no-single-winner regex in both rhyme cases (rh-release-identity-menu/case.yaml, rh-window-menu-no-winner/case.yaml): by is added to the negative lookahead in the emphasis-marker branch, so it is now (?!(?:for|if|when|by|depends|it depends)[^A-Za-z]). An italic "by feel" guide no longer counts as a single pick.
  • Pass samples. Each case's samples/no-single-winner.json gets one new pass sample: an italic by-feel guide.

Why there is no security surface.

  • These graders and samples only score eval replies offline. Nothing reads them in a credentialed context or an install path.
  • The increment touches no workflow, token request, kill switch, merge hold, trusted-actor list, plugin manifest or standing instruction.
  • The regex runs on model output inside the eval harness, so no attacker can reach it to cause slow matching.

Embedded text. Neither the PR context nor the new samples contain instructions aimed at this lane.

Prior findings. The earlier datamuse-path manifest flags were on a file outside this increment, which has not changed since it was reviewed. Nothing new is raised on it. Round cap not reached (1 of 3).

critical-findings: 0

…tity-rhyme

The bare voiceprint branch passed a reply that named the missing
voiceprint and then judged register anyway. A voiceprint mention now
passes only beside a skip or a refusal to judge; two must-fail samples
cover the acknowledge-then-judge form.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@github-actions

github-actions Bot commented Nov 1, 2026 •

Copy link
Copy Markdown
Contributor

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

Incremental review: 039f3445..d58acd3a (the no-single-winner graders in both rhyme cases)

I read every hunk of all 4 in-scope files in .claude-lane/incremental.diff. I checked the regexes against the samples by hand and ran nothing. The author says validate-cases.py reports 0 FAIL and that only the new sample changes verdict against 039f3445. I haven't verified either claim.

No findings.

What changed: by is back in the exemption list of the emphasis-marker branch in both case.yaml files, so that list reads (?!(?:for|if|when|by|depends|it depends)[^A-Za-z]). Both no-single-winner.json files gain the italic *by feel* guide as a pass sample. This fixes the last round's finding, and the marker branch and the bare-word alternative now exempt by the same way.

Checked, no finding:

  • The new pass sample passes the whole pattern. The sample is **How I'd choose:** *by feel*: open ending, ….
    • The I'd choose branch is blocked by its (?<!\bhow ) lookbehind (flag i).
    • In the marker branch, [*_]+ takes *, and the lookahead by[^A-Za-z] matches by , so the exemption applies. Backtracking to ** or to zero spaces leaves a space or * where [A-Za-z"“] needs a letter or quote, so that fails too.
    • The bare-word alternative's [A-Za-z]+ can't start on *.
    • No winner:, the answer is, go with or my pick text is present.
  • Every fail sample still matches. I read the rh-window fail set: *been so slow*, "been so slow", #3, grease. and grease,. None of them relies on by matching in the marker branch. [^A-Za-z] after by keeps a word like *bygone* failing.
  • The rh-release case gets the same edit and sample, and its neither/none lookaheads are unchanged.

Round cap: this review is past the cap of 3 (past the cap: yes), so only blocking findings would be posted. I found none, blocking or advisory, so nothing was dropped.

Prior findings: the *by feel* finding (#12153 (comment)) is fixed at this head. No earlier finding repeats.

Settled threads: the rh-window by thread (resolution head d58acd3a, lines changed: no) is resolved by this increment and is not re-raised. The datamuse-path manifest threads and the dg-audit-identity-rhyme threads are on files outside this increment, and I didn't reopen them.

Closing issue: the PR closes no issue (Refs: #8431), so there are no acceptance criteria to check.

I found no embedded instructions in the PR context, the settled threads or the prior findings.

…r graders

identity-flagged's bare "an" alternative matched a reply denying the
identity ("isn't an identity"); dropped in both identity cases. The
register gate's skip branches now ignore a negated skip ("won't skip").
Each gap gets must-fail samples that pass the old pattern and fail the
new one.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@kyle-sexton

Copy link
Copy Markdown
Member Author

claude-review round 1 (summary) on 39052b9:

# Finding Verdict Basis Fix
1 identity-flagged bare an passes a reply denying the identity, in both identity cases VALID (fix now) verified: Python re on the old pattern passes "delight isn't an identity of light", "perfect rhyme, not an identity" and "police isn't an identity of release" 62f5c57: `
2 register-gate-skipped passes a reply that names the voiceprint and still rules, or says "won't skip" VALID (fix now) verified: both example replies pass the old pattern 910d41e (voiceprint needs a skip or a refusal to judge) and 62f5c57 (negated skip ignored); both replies are must-fail samples that fail the new pattern

validate-cases.py: 0 FAIL.

@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 62f5c574f42dcefa832c482c0d1f8b45a398b78b; the summary is in this lane's pull request comment.

claude-lane: claude-review

Narrowing the voiceprint branch dropped replies that say "skipping",
which no skip alternative matched. Every alternative now takes the
-ping form; the negation guards still fail "not skipping". Two pass
samples and one fail sample cover it.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@kyle-sexton
kyle-sexton added this pull request to the merge queue Nov 1, 2026
@github-actions

github-actions Bot commented Nov 1, 2026

Copy link
Copy Markdown
Contributor

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

What it wrote (34 lines)
Summary: Refs #8431. The PR delivers part of the issue: the grader fixes and the extra cases that
  the last host run said the next item-2 pass needs. The body names that part and what remains
  (calibration, smoke pass, freeze, measured pass), and the work is in scope. One defect blocks. The
  new diagnose case `dg-audit-identity-rhyme` allows only Skill, Read, Glob and Grep. Finding 1 of
  #8431 is exactly that defect for diagnose: its rubric passes cannot be skipped and run
  `datamuse.sh syllables` through Bash. A case without Bash either scores formatting while the
  mandatory checks never run, or makes a leg INVALID on a denied Bash call. The regex changes I
  traced do sort their samples. CI test jobs were skipped because no suite covers the changed eval
  data.
- plugins/songwriting/evals/dg-audit-identity-rhyme/prompt.md:6: `allowed_tools: [Skill, Read, Glob,
  Grep]` repeats #8431 finding 1. `skills/diagnose/SKILL.md:60-62` makes the rubric passes mandatory
  and runs the countable ones as `datamuse.sh syllables` commands. Without Bash, the agent either
  skips them, so the case passes on formatting alone, or tries Bash and gets denied, which
  `run-validity.py` counts as INVALID (the 2026-11-01 host run's L4 leg was voided by one Bash
  denial). Fix: grant Bash with the same offline datamuse stand-in that `dg-variations-arrow-blocks`
  uses and add a `ran-syllable-count`-style grader. Or show from SKILL.md that the `audit` action
  runs no countable pass, and say so in the case description.
- plugins/songwriting/evals/mp-sung-line-template/prompt.md:6: also allows no Bash. Check whether
  meter-prosody `align-melody` calls `datamuse.sh` or another script. If it does, the same
  denial-invalidity risk applies, with the same fix.
- plugins/songwriting/evals/mp-chorus-stress-count/case.yaml:15: `raw-count-not-balance` moves from
  `regex` to `llm`. The suite previously needed no judge calibration, and the issue asks that each
  grader fix be proved by samples. That proof now waits on a paid calibration run, which the PR body
  lists under Remaining. Worth a human's eye: the next pass's validity depends on that calibration.
- plugins/songwriting/evals/mp-chorus-stress-count/samples/raw-count-not-balance.json:33: drops the
  pass sample 'The raw syllable count says nothing about balance.' because the new rubric also
  requires naming stresses. This makes the grader stricter than the old regex. Confirm it matches
  the case's expected_outcome.
- plugins/songwriting/evals/rh-window-menu-no-winner/case.yaml:20: the `(?<!\bhow )` exemption also
  stops flagging a plain unformatted single pick such as 'How I'd choose: grease.' (no #, quote or
  emphasis marker). That is a small loosening of the measured grader, and no fail sample covers it.
- None of the PR body's instructions try to steer a reviewer. CI: test-python, test-node and
  test-bash were skipped; select-tests succeeded, and none of those suites cover the changed eval
  data.

This pull request leaves the merge queue, and ci-status holds it out while it carries pr-verify-failed. A pr-verify pass at a new commit removes the label.

@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 1, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Nov 1, 2026
Grant dg-audit-identity-rhyme Bash with the offline datamuse stand-in
and a ran-syllable-count grader, since diagnose runs its countable
rubric passes as datamuse.sh commands. Make the "How I'd choose:"
exemption in both rhyme no-single-winner graders fail a bare single
pick. Loosen raw-count-not-balance to the expected outcome's clause,
which names no stress requirement, and restore its dropped pass sample.

Refs: #8431

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@kyle-sexton

Copy link
Copy Markdown
Member Author

Reply to the pr-verify fail note on 9b37753b. All fixes are in dfbeda6d66.

Finding Verdict Basis Fix commit
dg-audit-identity-rhyme allows no Bash, but diagnose runs the countable rubric passes as datamuse.sh syllables commands (blocking) VALID, fixed verified: plugins/songwriting/skills/diagnose/SKILL.md:60-62 says the rubric passes are not skippable and runs the countable ones as commands dfbeda6: the case now allows Bash, copies dg-variations-arrow-blocks's scaffold.sh (committed 100755) and datamuse-path plugin, runs with max_turns: 24 and timeout_seconds: 600, and adds the same ran-syllable-count tool_used grader (byte-identical input_match) with that case's samples plus one audit-shaped pass
mp-sung-line-template also allows no Bash INCORRECT, no change verified: grep -n -i -E "bash|datamuse|scripts/|\.sh\b" over plugins/songwriting/skills/meter-prosody/SKILL.md finds nothing, so no meter-prosody action runs a script none
raw-count-not-balance moves to llm, so its proof waits on a paid calibration VALID, defer verified: validate-cases.py WARNs that 47 samples need judge calibration. The calibration run is paid and is listed under Remaining in the PR body none (lane 4 runs calibration before the freeze)
The dropped pass sample "The raw syllable count says nothing about balance." makes the grader stricter than the expected outcome VALID, fixed verified: mp-chorus-stress-count/prompt.md expected_outcome checks the stresses in separate clauses ("marks the stresses...", "reports line length as a count of stressed syllables"), and stress-map-marked and stress-count-reported grade those. The clause this grader owns, "says the raw 8/9/9/8 syllable count is not the measure of balance", does not require naming stresses dfbeda6: the rubric now requires only that the raw count be denied as the measure. The sample is restored as a pass
The (?<!\bhow ) exemption stops flagging a bare single pick such as How I'd choose: grease. VALID, fixed verified: Python re shows the old pattern passes How I'd choose: grease. and **How I'd choose:** grease, .... The new pattern fails both. 0 existing samples change verdict in rh-window-menu-no-winner or rh-release-identity-menu dfbeda6: in both rhyme copies, a bare word after the guide line is now a pick unless it opens a guide (for, if, when, by, depends). Samples added: both lines above as must-fail, and "How I'd choose: by feel. ..." as must-pass

Checks on dfbeda6d66:

  • validate-cases.py plugins/songwriting/evals with node on PATH: exit 0, 0 FAIL, 5 WARN. The WARNs are the Bash note on dg-audit-identity-rhyme and on dg-variations-arrow-blocks, plus llm calibration for 47, 4 and 4 samples.
  • Swap check: with pass and fail sets swapped, every regex and tool_used sample file in the changed cases FAILs, including ran-syllable-count (16 lines), so the samples are read.
  • The pre-push check-affected passed.

Left open: the metaphor case mt-loneliness-labeled-menu carries the same How I'd choose: <bare word> gap from #11941. It is outside item 2's three skills and this fail note, so I left it unchanged.

@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-security-review: 2 inline finding(s) on dfbeda6d66d35bc97b85ea62465a99ebcfada539; the summary is in this lane's pull request comment.

claude-lane: claude-security-review

@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 dfbeda6d66d35bc97b85ea62465a99ebcfada539; the summary is in this lane's pull request comment.

claude-lane: claude-review

Widening the "how I'd choose" marker to any letter failed replies that
pick nothing ("how I'd choose between them: ..."). The marker branch is
back to needing a quote, number or emphasis; a separate alternative
catches a lone word after the colon ending in punctuation. Two guide
replies are new pass samples in both rhyme cases.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

@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 039f3445eac306bc5dda39c2f7a3b2e9d3f83a55; the summary is in this lane's pull request comment.

claude-lane: claude-review

Restoring the marker branch dropped "by" from its exemption list, so an
italic "*by feel*" guide read as a pick. "by" is back in both rhyme
cases, with that guide as a pass sample.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@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 1, 2026
@kyle-sexton
kyle-sexton added this pull request to the merge queue Nov 2, 2026
Merged via the queue into main with commit e6b386e Nov 2, 2026
61 of 62 checks passed
@kyle-sexton
kyle-sexton deleted the test/8431-songwriting-suite-next-pass branch November 2, 2026 00:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant