Skip to content

test(developer-experience): port the S1 and S4 plan turns to claude plugin eval - #10925

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

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

Conversation

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor

Refs: #9953

Summary

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

Adds eval cases s1-branch-start-plan and s4-migrator-plan, ported from scenarios S1 and S4 on the shared converged fixtures. claude plugin eval sends one prompt per case, and build-cli writes nothing until it gets a yes, so each case grades the plan turn. Deterministic graders check that build-cli fires and that nothing is written before the yes: no Write or Edit call, and no shell command that writes or deletes a file. S4 also carries the item 10 withhold rule as an llm grader whose samples are the 12 labeled S4/10 samples. The items scored on the built command or helper need a second turn and are left for later work.

Remaining work

  • S1 build-turn items (1-9, 11a/11b, 12a-12c): they grade the command written after 'Yes, go ahead.', which needs a second turn (a context.history_file case resuming a recorded plan turn, or another decision on how to send the approval)
  • S4 build-turn items (1-7, 9a/9b): they grade the helper written after 'Yes, go ahead.', which needs the same second turn

Not verified

  • /evals:validate (validate-cases.py) was not run: this lane runs no interpreter. The cases were checked by hand against the validator's key, option and sample rules, and the review subagent traced every sample. The eval-browser-dispatch lane runs the validator before any model call
  • The llm grader withholds-backup-format was not calibrated against its 12 labeled samples, because that needs a paid judge run. All 12 samples are baseline-arm reports written after the helper was built, so there is no labeled plan-turn reply of the kind the plugin arm produces
  • The no-write graders mean something only when the run grants Write, Edit and Bash with --allow-tools. Without the grant those tools are removed and the graders pass on any reply. The suite run (#10005) has to set the grant
  • The shell-write regex is a heuristic. A '>' after a space inside a quoted argument (grep "a > b") still counts as a write, and writes it does not list, such as a python heredoc, get through
  • Tidy skipped: the change touches 25 files, over the 10-file cutoff
  • verify skipped: the change is eval case data with nothing to build. Running the cases is a paid claude plugin eval run, left to the suite run (#10005), and this lane can't execute the scaffolds
  • check-affected marks typos as not installed and leaves editorconfig, gitleaks, evals-schema and evals-quality to the PR's CI

Fix

  • plugins/developer-experience/evals/s1-branch-start-plan/case.yaml, scaffold.sh, prompt.md: S1 case on the converged tarnquill fixture, seeded through evals/fixtures/seed.sh, with the scenario's prompt as written
  • plugins/developer-experience/evals/s1-branch-start-plan/graders/{skill-fired,no-write-before-yes,no-edit-before-yes,no-shell-write-before-yes}.md: build-cli fires; no Write, Edit, or file-writing or deleting shell command (S1 item 10)
  • plugins/developer-experience/evals/s1-branch-start-plan/samples/*.json: pass and fail samples for each deterministic grader
  • plugins/developer-experience/evals/s4-migrator-plan/case.yaml, scaffold.sh, prompt.md: S4 case on the converged brackenfold fixture, with the scenario's prompt as written
  • plugins/developer-experience/evals/s4-migrator-plan/graders/{skill-fired,no-write-before-yes,no-edit-before-yes,no-shell-write-before-yes}.md: same plan-turn checks (S4 item 8)
  • plugins/developer-experience/evals/s4-migrator-plan/graders/withholds-backup-format.md: llm grader for S4 item 10, using the rubric and judge instructions from sources/judge/items.json plus one sentence matching the labels (both formats behind a required choice with no default picks neither)
  • plugins/developer-experience/evals/s4-migrator-plan/samples/withholds-backup-format.json: the 12 labeled samples from sources/labels/S4/10 (6 var-* PASS, 6 real-* FAIL), copied as written
  • plugins/developer-experience/evals/s4-migrator-plan/samples/{skill-fired,no-write-before-yes,no-edit-before-yes,no-shell-write-before-yes}.json: samples for the deterministic graders
  • .changes/developer-experience/test-9953-s1-s4-plan-turn-cases-7d2a91c4.md: patch fragment for the two cases

Verification

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

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

The run reports:

  • read https: //code.claude.com/docs/en/plugin-evals: a case runs one prompt in a fresh non-interactive session, and only context.history_file continues an earlier conversation. Grader types and options; tool_used min 0 max 0 asserts a tool was never called. A Skill tool_used grader is left out of two
  • read https: //github.com/melodic-software/claude-code-plugins/issues /6649: the owner decision of 2026-10-13 carries the S4 #10 withhold rule into the port. The rm check belongs to setup's migrate case (T4) and the compound-shell check to the tracker case (S2), so neither is S1's or S4's
  • read plugins/developer-experience/skills/build-cli/SKILL.md steps 4-6: build-cli shows the plan and writes nothing until the user says yes, so a one-prompt case covers turn 1 only
  • /home/runner/work/claude-code-plugins/claude-code-plugins/.lane/checks/bin/check-changelog-fragments: all 8 fragments valid (run before and after the review fixes)
  • /home/runner/work/claude-code-plugins/claude-code-plugins/.lane/checks/bin/check-affected: 12 passed, 6 skipped, the rest CI only (run before and after the review fixes)
  • fresh-context review subagent over the whole diff: it found no load, sample-sorting, transcription or scaffold defects. It found 6 grader issues. Fixed: S4 had no shell-write grader; the shell-write regex missed stderr redirects, cp, mv, rm, sed -i and dotnet add, and failed on '>' inside quoted
  • read plugins/evals/skills/validate/scripts/validate-cases.py call_matches and the Python-only token list: tool_used samples are matched against compact JSON, and the lookbehind is not a rejected token. Each tool_used sample was traced by hand against its grader
  • The lane run: https://github.com/melodic-software/claude-code-plugins/actions/runs/40844997350

Left out: the items under Not verified.

Related

#9953

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

Copy link
Copy Markdown
Contributor

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

No security issues found in this pull request.

The diff has 25 files, all eval case data under plugins/developer-experience/evals/s1-branch-start-plan/ and s4-migrator-plan/, plus one .changes fragment. It touches no trusted path from the list. It has no plugin.json or marketplace.json change, so no manifest <field> lines apply. It deletes or softens no standing instruction.

What I checked:

  • scaffold.sh (both cases): each runs bash "$(dirname "${BASH_SOURCE[0]}")/../fixtures/seed.sh" <fixture> converged. The arguments are fixed literals. Nothing from the PR text or from an untrusted input reaches a shell. seed.sh is not in this diff.
  • allowed_tools: [Read, Glob, Grep, Write, Edit, Bash, Skill] in the prompt files: these grant tools inside a claude plugin eval session on a seeded fixture. They change no token scope, no trusted-actor list, no kill switch and no merge hold.
  • Grader regexes (no-shell-write-before-yes.md): this is a test heuristic. The PR description says it misses some writes, such as a python heredoc. A miss makes an eval pass when it should fail. It does not give an attacker access to anything, so I don't count it as a finding.
  • withholds-backup-format.md and the labeled samples: these are static text the judge reads. They hold no secrets and no instructions aimed at the lane. The prompt text names TARNQUILL_FORGE_TOKEN only as an environment variable name, with no value.
  • PR context: I found no embedded directive aimed at the lane.

I did not read docs/conventions/instruction-exception-register/README.md. No instruction was deleted or narrowed, so it did not apply.

Spend: the suite run (#10005) will make paid judge and eval model calls on prepaid API credit. That is not a hold.

critical-findings: 0

@github-actions

Copy link
Copy Markdown
Contributor

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

No findings. I read the whole diff, the PR context, fixtures/seed.sh, and the validator's check_tools rule. I did not run the validator or any eval case.

Checked

  • Both scaffolds call fixtures/seed.sh with a valid fixture and state (tarnquill converged, brackenfold converged), the same pattern as fx-seed-every-state.
  • The allowed_tools lists (Write, Edit, Bash, Skill) produce only the validator's WARN ("pass --allow-tools"), not failures.
  • I traced the no-shell-write-before-yes regex against its pass and fail samples in both cases, and it behaves as the samples claim. 2>&1, >&2 and >/dev/null do not match. 2>build.log, 2>>err.log, heredocs, tee, cp, sed -i and dotnet new classlib do match. A > inside a quoted pattern or only in description does not match.
  • skill-fired accepts build-cli with and without the developer-experience: prefix and rejects audit-tools.
  • In withholds-backup-format.json, the six var-* samples all present the backup format as a required choice with no default, and the six real-* samples all make plain copy the default. The pass/fail split matches the labels.
  • The bump: patch fragment fits eval-only case data. No plugin.json or marketplace.json changes, so there are no manifest lines. The PR says Refs #9953 and closes no issue, so there are no acceptance criteria to check.

Gaps the PR already discloses (not counted)

  • The shell-write grader is a heuristic. It does not cover git commit, git add, git push, package installs, or python heredocs and -c writes beyond .write*( and shutil.copy/move. For S1, a git push before the yes would pass.
  • dotnet new --list would be counted as a write; only list, search, --help and -h are exempt.
  • The three no-write graders pass on any reply unless the suite run grants Write, Edit and Bash with --allow-tools.
  • The LLM grader's 12 samples are baseline reports written after the helper was built. None is a plan-turn reply of the kind the plugin arm produces, and the grader is uncalibrated until a paid judge run.

Spend: each case run, plus the withholds-backup-format judge call, draws on prepaid API credits when the suite is run. It is not a billing change, so there is no hold.

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

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

@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 943d8f0 Oct 29, 2026
43 checks passed
@melodic-automation-lanes
melodic-automation-lanes Bot deleted the work-resolve-issue/issue-9953-40844997350-1 branch October 29, 2026 11:09
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