Skip to content

test(songwriting): fix three eval-suite grader defects - #10894

Merged
melodic-automation-lanes[bot] merged 1 commit into
mainfrom
work-resolve-issue/issue-8431-40831830960-1
Oct 29, 2026
Merged

melodic-automation-lanes[bot] merged 1 commit into
mainfrom
work-resolve-issue/issue-8431-40831830960-1

Conversation

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor

Refs: #8431

Summary

Opened by the work-resolve-issue lane. The run's own summary:

Fixes the three songwriting eval defects in #8431. dg-variations-arrow-blocks now grants Bash with an offline curl stand-in (a scaffold script plus a one-hook case plugin, following source-control's GH -forge-path cases), so the diagnose rubric's datamuse.sh syllable counts can run, and a new tool_used grader checks that they ran. raw-count-not-balance now needs a negation tied to the raw count, and eight-plus-candidates no longer counts table header rows or bold heading and tier-label lines; both gained must-fail samples for the near misses the issue names.

Remaining work

  • Rewrite mt-loneliness-labeled-menu to expect one metaphor with its family-distance label when the user asks for one, plus a separate case where the user asks for options that expects the menu, as the owner's 2026-10-19 comment asks; that comment is not a recorded Decision recorded. comment and t
  • Freeze the fixed suite again and re-measure the affected skills (diagnose, metaphor, meter-prosody, rhyme) before and after under the rewrite protocol, on a host with a ready sandbox since the suite now grants Bash

Not verified

  • /evals:validate (the offline sample grader) could not run: the lane allows no interpreter, so every sample was traced by hand only, and CI's evals checks are left to the PR
  • No eval run of the changed cases here (needs claude plugin eval with --scaffold --allow-tools Bash and a sandbox backend). The reviewer reports that .github/scripts/plugin-eval/select-plugins.mjs refuses an automatic PR eval for a new scaffold script, stub plugin or changed allowed_tools, so the son
  • dg-variations-arrow-blocks/scaffold.sh is created with mode 644; the precedent scaffolds are 100755 and the lane cannot chmod. If the runner executes the script directly rather than through bash, run git update-index --chmod=+x on it
  • The curl stand-in's syllable counts are a vowel-group estimate, not Datamuse's data; the new grader checks that the count ran, not its value
  • tidy: the ai-slop pass ran its rubric by reading only, since detect.sh cannot run under the lane's command rules; the datamuse-path plugin.json row was dropped from tidy because it wires a hook command (global hard exclusion)
  • PR prep ran from this lane's fallbacks only: /source-control:pull-request is not loaded here

Fix

  • plugins/songwriting/evals/dg-variations-arrow-blocks/prompt.md: allowed_tools adds Bash; plugins lists the case's datamuse-path plugin; max_turns 14 -> 24 and timeout_seconds 480 -> 600 for the per-word count commands; description and expected_outcome name the syllable count and the --scaffold
  • plugins/songwriting/evals/dg-variations-arrow-blocks/case.yaml: context.scaffold_script; new ran-syllable-count tool_used grader on Bash requiring datamuse.sh syllables in command position
  • plugins/songwriting/evals/dg-variations-arrow-blocks/scaffold.sh (new): git init, then writes an offline curl into <git dir>/eval-datamuse/bin that answers Datamuse sp=<word> with a vowel-group syllable estimate, other Datamuse queries with [], and refuses any other URL
  • plugins/songwriting/evals/dg-variations-arrow-blocks/datamuse-path/.claude-plugin/plugin.json (new): eval-only SessionStart hook putting that bin dir first on PATH via CLAUDE_ENV_FILE, the same hook as GH -forge-path
  • plugins/songwriting/evals/dg-variations-arrow-blocks/samples/ran-syllable-count.json (new): 2 pass and 7 fail tool-call samples (no call, other mode, Read only, echo, grep, --help, rhyme then echo)
  • plugins/songwriting/evals/mp-chorus-stress-count/case.yaml: raw-count-not-balance pattern rewritten: a leading negation (not, never, ignore, rather than, instead of, don't go by/trust/rely on/use) before a syllable mention, or a raw/syllable-count subject followed directly by a negation verb, exclud
  • plugins/songwriting/evals/mp-chorus-stress-count/samples/raw-count-not-balance.json: 7 new pass samples (including meter-prosody's own 'never raw syllables' wording) and 6 new fail samples (including the issue's 'The raw syllable counts, 8/9/9/8, show the chorus is nicely balanced')
  • plugins/songwriting/evals/rh-window-menu-no-winner/case.yaml: eight-plus-candidates counts a bullet or number only when whitespace follows the marker and the line is not a lone bold label, accepts 1. numbering, and skips a table row that a separator line follows (the header)
  • plugins/songwriting/evals/rh-window-menu-no-winner/samples/eight-plus-candidates.json: 3 new pass samples and 5 new fail samples (header row plus 7 rows, bold headings plus 6 bullets, two tables with headers and bold headings and 7 rows, bulleted bold tier labels plus 6 nested candidates, empty)
  • .changes/songwriting/work-resolve-issue-issue-8431-7c3f2a91.md (new): bump none fragment describing the eval-only change

Verification

The runner ran each check from the base copy against f58a355:

  • scripts/check-changelog-fragments.sh --check: passed

The run reports:

  • /home/runner/work/claude-code-plugins/claude-code-plugins/.lane/checks/bin/check-changelog-fragments: all 45 fragments valid (run after the last edit)
  • /home/runner/work/claude-code-plugins/claude-code-plugins/.lane/checks/bin/check-affected: 12 passed, 6 skipped over 10 changed files (run after the last edit); the first run failed for a missing songwriting fragment, which was then added
  • fresh-context review subagent over the whole diff: hand-traced every sample against its regex and all graded as labeled; it found a false fail on meter-prosody's own wording and false passes for a later unrelated negation, bulleted bold tier labels and grep/--help calls on datamuse.sh, plus a fake r
  • read https: //code.claude.com/docs/en/plugin-evals: a granted Bash runs under the OS sandbox, which reaches only network domains granted with WebFetch(domain:...); context.scaffold_script runs in the empty workspace only with --scaffold; prompt.md plugins lists plugin directories relative to the cas
  • The lane run: https://github.com/melodic-software/claude-code-plugins/actions/runs/40831830960

Left out: the items under Not verified.

Related

#8431

Lane-Activity: work-resolve-issue/resolve-issue
@github-actions

Copy link
Copy Markdown
Contributor

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

Security review of PR #10894 (10 files, all under plugins/songwriting/evals/ plus one .changes fragment). No trusted-path file is touched, and no shipped skill, hook, script or marketplace entry changes. The songwriting plugin's own .claude-plugin/plugin.json and marketplace.json are untouched.

I found one flag, from the plugin-manifest default-deny rule, at IMPORTANT.

  • manifest hooks (plugins/songwriting/evals/dg-variations-arrow-blocks/datamuse-path/.claude-plugin/plugin.json): flag, IMPORTANT. See the inline comment. It is not CRITICAL because nothing loads this manifest for installed users. The plugins/songwriting/.claude-plugin/plugin.json grep for evals, "hooks" and "source" matched nothing. The new file is a nested fixture that only the eval's plugins: entry loads. It follows the same pattern as the existing gh-forge-path fixtures under plugins/source-control/evals/.
  • manifest name, version, description: pass (inert fields).

critical-findings: 0

Other things I read and checked:

  • scaffold.sh:
    • It runs only under --scaffold, in an empty workspace.
    • It writes a stand-in curl into <git-dir>/eval-datamuse/bin.
    • The stand-in serves only https://api.datamuse.com/words? URLs and exits 7 on any other URL, so it adds no network reach.
    • $word is only passed to tr and grep and is never evaluated.
    • The printf output uses w after tr -cd '[:alpha:]', so there is no injection.
  • Granting Bash to the eval case: the case's prompt.md now allows Bash. The PR says the sandbox limits network reach to domains granted with WebFetch. That sandbox is the control I rely on here. I could not verify it from the diff.
  • Regex graders in mp-chorus-stress-count and rh-window-menu-no-winner: these are offline test graders and carry no security surface.
  • PR context text: it contains no embedded instructions aimed at the lane.

Spend: the change raises max_turns (14 to 24) and timeout_seconds (480 to 600) for one eval case. That spends only prepaid or subscription usage, so I did not count it as a finding or a hold.

Findings not posted inline (their lines are not in the diff):

  • plugins/songwriting/evals/dg-variations-arrow-blocks/datamuse-path/.claude-plugin/plugin.json:46 (RIGHT): severity: IMPORTANT

manifest hooks: flag. This is a new plugin.json with a SessionStart command hook, so it is flagged by default.

What runs: a shell one-liner. It resolves git rev-parse --git-common-dir. If $CLAUDE_ENV_FILE is set and <git dir>/eval-datamuse/bin/curl is executable, it appends export PATH="<that dir>:$PATH" to $CLAUDE_ENV_FILE. The code is in this repository. There is no external source or pin, and it takes no consumer-controlled input beyond the git directory path.

Why it is not CRITICAL:

  • The songwriting plugin's own manifest does not reference this nested directory.
  • marketplace.json is unchanged.
  • Only this case's prompt.md plugins: entry loads it, so installed users get nothing on update.
  • It mirrors the existing gh-forge-path fixtures in plugins/source-control/evals/.

Residual risk: if someone loads this plugin outside the eval, any repository containing an executable eval-datamuse/bin/curl in its git dir would have that curl placed first on PATH for the session. That needs a file planted in .git, so it is a hardening note and not an exploitable path in this diff.

@github-actions

Copy link
Copy Markdown
Contributor

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

No findings. I read the full diff (10 files) and the PR context. I ran no code, so every sample trace below is a hand trace.

Hand traces

  • scaffold.sh's curl stand-in against the real plugins/songwriting/context/pat-pattison/scripts/datamuse.sh. In syllables mode the script calls curl -sS "https://api.datamuse.com/words?sp=<word>&md=s&max=5". The stand-in matches that URL, reads sp=, and returns JSON with numSyllables, which emit_tsv can parse. Its set -euo pipefail is limited to the scaffold itself, and the heredoc is quoted, so the stand-in body is written verbatim.
  • The plugins: ["../..", "datamuse-path"] entry and the SessionStart hook follow the existing gh-forge-path cases in source-control (same ../.. form).
  • ran-syllable-count (input_match): the 2 pass samples and the 7 fail samples grade as labeled. It does not actually enforce "command position", as the PR text claims. A contrived call like echo datamuse.sh syllables would pass it. That is not worth a finding.
  • raw-count-not-balance: the 7 new pass and 6 new fail samples grade as labeled, including the issue's "nicely balanced" wording and the hedged "isn't perfectly even" endorsement.
  • eight-plus-candidates: the 3 new pass and 5 new fail samples grade as labeled. Each iteration consumes a distinct line, so the {8} repetition cannot count one line twice.
  • Manifest items: none apply. The diff touches no plugin.json or marketplace.json for a shipped plugin. The new datamuse-path/.claude-plugin/plugin.json is an eval-only stub. The fragment's bump: none fits an eval-only change.

Closing issue
The PR context lists #8431 as "Refs", not as a closing-issue section. I could not read its acceptance criteria and did not check them. The PR itself lists the remaining work as not done: the mt-loneliness-labeled-menu rewrite, and the freeze and re-measure of the affected skills. That is stated openly, so it is not a finding.

Author-claimed and unverified
The PR's verification claims (/evals:validate, the changelog-fragment check, the review subagent's hand-traces) are the author's. I did not independently confirm them. The PR says no eval run of the changed cases has happened, and that a sandbox-backed claude plugin eval --scaffold --allow-tools Bash run is still needed.

Cost
No billed resource changes. The case's max_turns goes from 14 to 24 and timeout_seconds from 480 to 600, which only uses prepaid or subscription eval usage. This is not a hold.

@melodic-automation-lanes

melodic-automation-lanes Bot commented Oct 29, 2026 •

Copy link
Copy Markdown
Contributor Author

Unattended merge: native auto-merge leaves this pull request unarmed at head f58a3555ffbe0c2e977b72a52682ef49b893b301. The lanes clear this reason on their own; the next scheduled run judges it again.

pr-merge's gate holds it on its risk score (evidence-unbound:claude-review: not bound: no-run; evidence-unbound:claude-security-review: not bound: no-run)

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

The unattended merge path armed native auto-merge at head f58a3555ffbe0c2e977b72a52682ef49b893b301.

@melodic-automation-lanes
melodic-automation-lanes Bot added this pull request to the merge queue Oct 29, 2026
Merged via the queue into main with commit 043e95a Oct 29, 2026
43 checks passed
@melodic-automation-lanes
melodic-automation-lanes Bot deleted the work-resolve-issue/issue-8431-40831830960-1 branch October 29, 2026 07:46
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.

0 participants