Skip to content

test(planning): grade the stress-test suite's sound-part check with an LLM judge - #13115

Merged
melodic-automation-lanes[bot] merged 1 commit into
mainfrom
work-resolve-issue/issue-12925-41783087002-1
Nov 4, 2026
Merged

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

Conversation

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor

Refs: #12925

Summary

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

Built option 2, which the recorded decision on #12925 chose: in all 12 plan_stress_test cases (plugins/planning/evals/st-{plan,proposal,incumbent}-{1..4}), graders/sound-part.md is now a type: llm judge on last_message, with a short self-contained rubric for that case. The rubric says what the draft's sound part is and why it is sound, which nearby findings still pass, and each way an attack fails. defect-a, defect-b and defect-c stay regex graders, unchanged. plugins/planning/evals/plan-stress-test.md records the method and its basis: every grader miss found in review was in the wording around the target, while defect identifiers such as SaveBins and ParseExact match well as regexes. Each case's samples/sound-part.json is kept as the judge's labeled answers, with two sets of label fixes. First, the empty-string pass samples are removed, because calibration skips an empty answer: plugins/evals/skills/plugin-eval/reference/case-authoring.md:197-199 calls an empty reply a deterministic failure that needs no judge. Second, the st-proposal-3 sample that quotes the draft's 'polling is fine' claim and rebuts it moved from pass to fail (the regex had passed it as a known limit), and one st-proposal-4 pass sample was reworded so it blames the segment layout, not the format.

Remaining work

  • Run /evals:validate (python3 plugins/evals/skills/validate/scripts/validate-cases.py plugins/planning/evals) and confirm it prints no FAIL for the 12 st-* cases; the WARN for each llm grader with samples is expected. This lane could not execute it

Not verified

  • /evals:validate (validate-cases.py over plugins/planning/evals) was not executed: this lane runs only named wrappers, no interpreter, and no workflow runs it on pull requests. Its FAIL logic was traced by reading the script (see verification), but no run printed its output
  • plugins/planning/tests/plan-stress-test.test.sh was not run here (no test runner allowed in this lane); left to the PR's CI
  • The paid judge calibration run over the samples/sound-part.json answers is a host run an operator starts; per the decision comment it goes to a follow-up issue filed after this PR merges
  • tidy skipped: the change spans 26 files, over the 10-file tidy cutoff
  • review-venue.txt was absent, so the review ran locally in one fresh-context subagent instead of the CI code-review lane
  • No markdown class audit (ai-slop, docs-hygiene) ran on plan-stress-test.md, the rubrics or the changelog fragment
  • The stale branch work-resolve-issue/issue-12925-41770333001-1 (tip 9af9578) was not in the local object store, so its approach could not be read; this run redid the work from the default branch
  • Untracked dotfiles at the checkout root (.bash_profile, .bashrc, .gitconfig, .idea, .mcp.json, .profile, .ripgreprc, .vscode, .zprofile, .zshrc) were not created by this run's edits (they look like sandbox mount points). They are left untouched and are not part of this change

Fix

  • plugins/planning/evals/st-plan-1/graders/sound-part.md: regex not_contains grader replaced by a type: llm rubric (notice_outbox delivery through flush_outbox is sound)
  • plugins/planning/evals/st-plan-2/graders/sound-part.md: llm rubric (no file lock needed; s.mu serializes commands)
  • plugins/planning/evals/st-plan-3/graders/sound-part.md: llm rubric (migration 003 already provides next_renewal_at and its index)
  • plugins/planning/evals/st-plan-4/graders/sound-part.md: llm rubric (insert-before-send cannot duplicate; unique index on AppointmentId and Kind)
  • plugins/planning/evals/st-proposal-1/graders/sound-part.md: llm rubric (SQLite is the right store for a one-host oneshot job)
  • plugins/planning/evals/st-proposal-2/graders/sound-part.md: llm rubric (decoding onto the populated flat Config keeps base values)
  • plugins/planning/evals/st-proposal-3/graders/sound-part.md: llm rubric (polling is right; transaction-mode pooler rules out LISTEN/NOTIFY)
  • plugins/planning/evals/st-proposal-4/graders/sound-part.md: llm rubric (gzip NDJSON is right; AC4 needs a standard-library reader)
  • plugins/planning/evals/st-incumbent-1/graders/sound-part.md: llm rubric (BATCH_SIZE 200 matches the gateway limit)
  • plugins/planning/evals/st-incumbent-2/graders/sound-part.md: llm rubric (Node 22 meets Leaseline's Node 20 floor)
  • plugins/planning/evals/st-incumbent-3/graders/sound-part.md: llm rubric (retries add no duplicates; primary key and ON CONFLICT DO NOTHING)
  • plugins/planning/evals/st-incumbent-4/graders/sound-part.md: llm rubric (4 KB value limit is far above the field caps)
  • plugins/planning/evals/st-*/samples/sound-part.json (all 12): removed the empty-string pass sample, which a judge calibration run skips
  • plugins/planning/evals/st-proposal-3/samples/sound-part.json: the quoted-then-rebutted polling answer moved from pass to fail
  • plugins/planning/evals/st-proposal-4/samples/sound-part.json: one pass sample reworded so it blames the hourly layout, not the format
  • plugins/planning/evals/plan-stress-test.md: new; records the suite's grading method (option 2), its basis, how to write a sound-part rubric, and how calibration works
  • .changes/planning/work-resolve-issue-issue-12925-41783087002-1-0bac7637.md: new patch changelog fragment for planning

Verification

The runner ran each check from the base copy against 60fe7f9:

  • scripts/check-changelog-fragments.sh --check: passed
  • scripts/check-changed-skills.sh --merge-base: passed

The run reports:

  • /home/runner/work/claude-code-plugins/claude-code-plugins/.lane/checks/bin/check-changelog-fragments: all 4 fragments valid (run before and after the review fixes)
  • /home/runner/work/claude-code-plugins/claude-code-plugins/.lane/checks/bin/check-changed-skills: no changed skills, nothing to gate
  • /home/runner/work/claude-code-plugins/claude-code-plugins/.lane/checks/bin/check-affected: 12 passed, 7 skipped, 0 failed over 26 changed files (rerun after the review fixes)
  • read https: //code.claude.com/docs/en/plugin-evals: an llm grader's focus defaults to last_message (Claude's final response text); in the .md layout the file body is the criteria; a judge votes PASS in at least two of three votes; each llm grader costs three short judge calls per run
  • Read plugins/evals/skills/validate/scripts/validate-cases.py: llm accepts the criteria and focus options and the body stands in for criteria; samples on an llm grader produce only a WARN ('need judge calibration'); the JavaScript engine check covers regex and tool_used graders only. So the new…
  • Read plugins/planning/tests/lib/st-grader-echo.mjs: it skips a grader with no pattern, so the llm graders do not break plan-stress-test.test.sh's echo check
  • Fresh-context review subagent over the whole diff: found no wrong facts in any rubric against case.yaml and seed.sh. Its five findings (empty-reply samples, an ambiguous st-proposal-2 boundary, an st-proposal-4 sample that blamed the format, an st-incumbent-3 rebuttal gap, approving table rows with…
  • The lane run: https://github.com/melodic-software/claude-code-plugins/actions/runs/41783087002

Left out: the items under Not verified.

Related

#12925

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

github-actions Bot commented Nov 4, 2026

Copy link
Copy Markdown
Contributor

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

Security review: PR #13115

I found no security issues.

I read every hunk of all 26 changed files in the full diff. The change touches only eval data for the planning plugin:

  • Graders: each of the 12 plugins/planning/evals/st-*/graders/sound-part.md files swaps its type: regex / match: not_contains grader for a type: llm judge with focus: last_message and a case-specific rubric.
  • Samples: the 12 samples/sound-part.json files lose their empty-reply pass sample. One st-proposal-3 sample moves from pass to fail, and one st-proposal-4 sample is reworded.
  • New docs: a method doc, plugins/planning/evals/plan-stress-test.md, and a patch changelog fragment under .changes/planning/.

What I checked:

  • Trusted paths and trust controls: no changed file matches any TRUSTED PATHS glob. Nothing touches a workflow, action, token request, trusted-actor list, kill switch, merge hold or broker config.
  • Plugin manifests: no .claude-plugin/plugin.json or marketplace.json changes, so there are no manifest lines to report.
  • Instruction surface: no CLAUDE.md, AGENTS.md, rules file, skill or agent body, or hook list is deleted, narrowed or softened. The rubric bodies are judge criteria for eval scoring. They grant no tools and gate no action outside the eval score.
  • Embedded text: the PR context and the rubric or sample text contain no directive aimed at this review lane.
  • Code execution: there is no new executable code, command, path, URL or interpolation surface. The removed regex patterns ran only inside the eval grader engine.

Spend: each llm grader adds three short judge calls per eval run across 12 cases, plus the operator-started calibration run. That spend comes from prepaid API credits or subscription usage, so it is not a hold.

critical-findings: 0

@github-actions

github-actions Bot commented Nov 4, 2026

Copy link
Copy Markdown
Contributor

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

Code review: no findings

I read all 26 changed files in full. The PR swaps the match: not_contains regex sound-part grader in each of the 12 st-* cases for an llm judge on focus: last_message with a rubric written for that case. It also adds plugins/planning/evals/plan-stress-test.md, relabels the calibration samples and adds a patch changelog fragment.

What I checked

  • Rubrics against their labeled samples. For st-incumbent-1, st-incumbent-3, st-incumbent-4, st-plan-3, st-plan-4, st-proposal-1 and st-proposal-2, I read each case's full samples/sound-part.json and compared it with the new rubric. For the other five cases I compared only the sample lines the diff shows. In every sample I compared, the label (pass/fail) matches the rubric's PASS/FAIL text. That includes the boundary cases, for example:
    • st-incumbent-3: the buffer filling and overwriting its oldest samples counts as pass.
    • st-plan-3: a unique index or claim column asked for another reason counts as pass.
    • st-proposal-2: a finding that Load starts from Defaults() counts as pass.
    • The moved st-proposal-3 sample is now a fail, as the rubric says.
    • The reworded st-proposal-4 sample now blames the hourly layout, which the rubric passes.
  • The planning tests. plugins/planning/tests/lib/st-grader-echo.mjs skips a grader with no pattern, so the new llm graders do not break the echo check in plugins/planning/tests/plan-stress-test.test.sh. I did not find a test that relied on the removed regexes.
  • The validator. I read the docstring and the samples-check code in plugins/evals/skills/validate/scripts/validate-cases.py. For an llm grader with samples it reports only a WARN ("need judge calibration"), which matches the PR's description.
  • Removing the empty-answer samples. This matches plugins/evals/skills/plugin-eval/reference/case-authoring.md:197-199: calibration skips empty or whitespace-only samples. The new doc's explanation at plan-stress-test.md lines 56-58 agrees with that file.
  • Path-scoped rules. .claude/rules/eval-case-transcripts.md applies to these files. The samples and rubrics are synthetic, with no raw transcripts and no identifying details.
  • Closing issue. The PR context has no closing-issue section (the PR says only "Refs: test(planning): replace the plan_stress_test suite's regex graders where review keeps finding misses #12925"), so I had no acceptance criteria to check.
  • Plugin manifests. No plugin.json or marketplace.json changed, so the manifest checks do not apply. The fragment's bump: patch fits a change limited to evals.

Not verified by me: /evals:validate, plan-stress-test.test.sh and the paid judge calibration run. Those were claimed by the author, and the PR itself lists them as not run.

Spend: prepaid API credit only. Each eval run now makes three judge calls for each of the 12 sound-part graders, and the follow-up calibration run is an operator-started run.

No embedded instructions were found in the PR context or the rule files.

@melodic-automation-lanes

melodic-automation-lanes Bot commented Nov 4, 2026 •

Copy link
Copy Markdown
Contributor Author

Unattended merge: native auto-merge leaves this pull request unarmed at head 60fe7f9f376ed83cbd0b254e4116bd76e9a3991a. 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 60fe7f9f376ed83cbd0b254e4116bd76e9a3991a.

@melodic-automation-lanes
melodic-automation-lanes Bot added this pull request to the merge queue Nov 4, 2026
Merged via the queue into main with commit 7425e6f Nov 4, 2026
44 checks passed
@melodic-automation-lanes
melodic-automation-lanes Bot deleted the work-resolve-issue/issue-12925-41783087002-1 branch November 4, 2026 06:47
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