Skip to content

test(songwriting): accept raw-count dismissals the grader failed - #11569

Merged
kyle-sexton merged 2 commits into
mainfrom
test/8431-raw-count-grader
Oct 31, 2026
Merged

kyle-sexton merged 2 commits into
mainfrom
test/8431-raw-count-grader

Conversation

@kyle-sexton

Copy link
Copy Markdown
Member

Refs: #8431

Summary

The mp-chorus-stress-count eval's raw-count-not-balance grader failed 11 of 12 with-arm runs in the #8431 host re-measure, on replies that meet the case's expected outcome (the issue's 2026-10-31 host-run comment, gap 3). This PR widens it so those replies pass, which unblocks a fair before/after comparison for meter-prosody.

Fix

  • Three new alternatives in the grader's pattern: a negated measuring verb aimed at balance or length ("doesn't measure balance"), "is not the measure / metric", and "is not what shows it".
  • Pass samples for the three replies the issue quotes, and a fail sample that endorses the raw count while negating something else ("doesn't need work").
  • A songwriting patch changelog fragment.

Verification

  • python3 plugins/evals/skills/validate/scripts/validate-cases.py plugins/songwriting/evals: exit 0, no FAIL; one existing WARN (dg-variations-arrow-blocks lists Bash).
  • The same check on a copy with this grader's pass and fail samples swapped: 44 FAIL lines, so the samples are read.
  • Left out: a paid re-run of the case. It belongs to the rest of test(songwriting): fix three eval-suite defects in the next measured pass #8431's re-measure, listed under Remaining.

Related

N/A

Remaining

  • Give /songwriting:diagnose a path to datamuse.sh that needs no plugin search, so dg-variations-arrow-blocks can score VALID.
  • A metaphor after-text for the before/after re-measure.
  • Re-run all five cases before and after on both models under the rewrite protocol.

🤖 Generated with Claude Code

https://claude.ai/code/session_01VcupokZY9nMi5ZG7UdzT4q

raw-count-not-balance failed 11 of 12 with-arm runs in the #8431 host
re-measure, on replies that meet the case's expected outcome. Add three
alternatives (does not measure balance, is not the measure, is not what
shows it), pass samples for the three quoted replies, and a fail sample
that endorses the count.

Refs: #8431

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01VcupokZY9nMi5ZG7UdzT4q
@kyle-sexton
kyle-sexton marked this pull request as ready for review October 31, 2026 14:58
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 31, 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-10-31T14:59:56.830461Z ae0f7f7 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

github-actions Bot commented Oct 31, 2026 •

Copy link
Copy Markdown
Contributor

claude-security-review reviewed a9798d9219a329357e141c4265dfa73716a3b6e5: 0 finding(s), 0 as inline comments.

No security issues found in the incremental change (a changelog line, one eval grader regex in plugins/songwriting/evals/mp-chorus-stress-count/case.yaml, and new fail samples in samples/raw-count-not-balance.json).

  • The change touches no workflow, token, trusted-actor list, kill switch, merge hold, manifest or instruction surface. I found no trusted-path match among the changed files.
  • The regex is an eval grader pattern with fixed quantifiers: {3} and {0,30} are bounded, and the open-ended \s+ repeats sit between literal anchors. The extra alternatives add no ReDoS exposure.
  • The sample file holds static strings and nothing executable.
  • No manifest fields changed, so no manifest <field> lines apply.

critical-findings: 0

@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: ae0f7f7009

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

claude-lane: claude-review

@github-actions

github-actions Bot commented Oct 31, 2026 •

Copy link
Copy Markdown
Contributor

claude-review reviewed a9798d9219a329357e141c4265dfa73716a3b6e5: 0 finding(s), 0 as inline comments.

No findings in the incremental change since ae0f7f7: the case.yaml grader pattern, the changelog fragment and the sample file.

I had no shell, so I could not run validate-cases.py or the regex. I traced each alternative by hand against every pass and fail sample in raw-count-not-balance.json. The PR's verification claims (the validate-cases.py exit 0 and the swapped-sample run with 44 FAIL lines) are author-claimed and unverified by me.

  • Pass samples: each is matched by the alternative it targets. Examples are "raw syllable counts don't measure line length", "The 8/9/9/8 doesn't measure balance", "They aren't the measure" after "Raw syllables: 8/9/9/8." and "the 8/9/9/8 count isn't what shows it".
  • Fail samples: none matches any alternative. The new subject requirement stops the negation from firing on "Stress count is not the metric", "Stress isn't the measure" and "doesn't show symmetry, but the 8/9/9/8 count does". The 30-character window in the pronoun alternative keeps "…balanced; it doesn't need work" from matching.
  • Apostrophes: [''’] in the single-quoted YAML scalar is a valid class for both ' and ’.

Two things to be aware of, neither worth blocking:

  • Dropping the subject-less "doesn't measure/show … balance" alternative is intentional, and the new "The chorus doesn't show balance." fail sample pins it. It also means a reply that names a different subject, such as "Syllable totals don't measure balance", is no longer accepted.
  • Only the "They" form of the pronoun alternative has a pass sample. The it, those, these, that count and digits-plus-tally branches have none. A swapped-sample check would not notice if one of those branches broke.

Spend: none. This change touches an eval grader and a changelog fragment only.

@github-actions

Copy link
Copy Markdown
Contributor

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

What it wrote (30 lines)
Summary: Refs #8431, partial delivery: widen `raw-count-not-balance` (gap 3 in the host run). The
  body names the part it delivers and lists the remaining work, and the change is within the issue's
  scope. The three replies the issue quotes now pass, and one new fail sample is added. The defect
  is that the three new regex alternatives don't check that the negation is about the raw syllable
  count. That brings back the defect finding 2 fixed, where the grader passed replies that endorse
  the raw count. Such replies still match, so the issue's requirement that the grader reject replies
  written to fail is not met.
- plugins/songwriting/evals/mp-chorus-stress-count/case.yaml:16 — The alternative `\b(?:isn't|is
  not|aren't|are not)\s+(?:the|a)\s+(?:measure|metric|yardstick|unit)\b` matches with any subject. A
  reply that endorses the raw count passes, e.g. "Stress isn't the measure here; the 8/9/9/8
  syllable count is, and it's balanced." #8431's Decision-recorded comment says finding 2 requires
  "a negation tied to the raw count". Make the alternative require a raw-count subject (raw/syllable
  count, the digit pattern like 8/9/9/8, or a pronoun such as they/it that directly follows one in
  the same clause).
- plugins/songwriting/evals/mp-chorus-stress-count/case.yaml:16 — The alternative
  `\b(?:isn't|...)\s+what\s+(?:shows|measures|decides|determines|proves)\b` has the same problem.
  "The stress pattern isn't what shows it; the 8/9/9/8 count does" passes. Tie it to a raw-count
  subject.
- plugins/songwriting/evals/mp-chorus-stress-count/case.yaml:16 — The alternative
  `\b(?:doesn't|...|can't|cannot|...)\s+(?:measure|show|...)\s+(?:the\s+)?(?:balance|length|...)`
  has no subject. Two endorsements pass: "8/9/9/8 is balanced; you can't measure balance better than
  a syllable count" and "The rhythm doesn't determine the length, the syllables do". Bare negative
  descriptions also pass, e.g. "the chorus doesn't show balance". Require a raw-count subject before
  the negation.
- plugins/songwriting/evals/mp-chorus-stress-count/samples/raw-count-not-balance.json — The only new
  fail sample endorses the count while negating something unrelated ("doesn't need work"), so it
  never tests the new alternatives. Add fail samples that endorse the raw count while using each new
  phrasing about another subject (e.g. "Stress isn't the measure; the 8/9/9/8 count is", "The stress
  pattern isn't what shows it, the 8/9/9/8 count does"). Re-run validate-cases.py so these are
  rejected and the three quoted pass replies still pass.

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 Oct 31, 2026
…subject

Review on #11569: the three new alternatives matched a negation about
any subject, so a reply that negated stress and endorsed the raw count
passed. Each now needs a raw-count subject (raw syllables, syllable
count, raw count, or the 8/9/9/8 digits) before the negation, or a
pronoun opening the sentence right after one. Add the seven
counter-examples from the review as fail samples.

Refs: #8431

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01VcupokZY9nMi5ZG7UdzT4q
@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 Oct 31, 2026
@kyle-sexton
kyle-sexton added this pull request to the merge queue Oct 31, 2026
Merged via the queue into main with commit c7e50d1 Oct 31, 2026
45 checks passed
@kyle-sexton
kyle-sexton deleted the test/8431-raw-count-grader branch October 31, 2026 15:28
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