Skip to content

test(developer-experience): port eval cases S7 and N1 - #10938

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

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

Conversation

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor

Closes #9979

Summary

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

Ports scenarios S7 (audit-tools, act after yes) and N1 (build-cli, missing-conventions nudge) into plugins/developer-experience/evals/ as claude plugin eval cases on the shared fixtures seeded by evals/fixtures/seed.sh. S7 resumes a hand-written text-only turn 1 through context.history_file. Its turn-2 prompt is the approval, and eight deterministic graders cover items 1b, 2 and 3, including rm/mv checks that also match after &&, ; or a pipe. N1 has one regex grader on the final reply. Neither scenario has a J item, so neither case has an llm grader, and no labeled samples apply.

Not verified

  • The issue's Done-when '/evals:validate passes' was not run: this lane runs no interpreter, so plugins/evals/skills/validate/scripts/validate-cases.py could not execute. The review subagent simulated the regexes against the samples by hand instead. Run `python3 plugins/evals/skills/validate/scripts/v
  • scripts/changelog fragment check with --check-required origin/main was run through the lane's check-changelog-fragments and check-affected wrappers (against the base commit), not as the literal command the issue names
  • S7 item 1a (turn 1 changes nothing) is not graded: a claude plugin eval case runs one live turn, so turn 1 is a recorded transcript. That transcript is text only, with no audit-tools Skill call, so in turn 2 the skill's act-after-yes rule is in context only if the model invokes the skill again
  • Port narrowings relative to the source scorer, recorded in the case descriptions: a test.sh rewritten to call run_tests.sh (credited as a merge before) fails test-script-removed. Shell changes other than rm/git rm/mv/unlink (sed -i, redirects, git checkout, find -delete) are not caught. N1 reads onl
  • Unconfirmed until a paid run: how a { source: file } regex grades a file the run deleted (run-tests-script-kept relies on a missing file failing), and whether the hand-written history_file loads (it follows the performance plugin's precedent)
  • The two scaffold.sh files are created without the executable bit (this lane cannot chmod); fx-seed-every-state's scaffold.sh is the precedent and the docs describe scaffold_script as a Bash script
  • tidy skipped: the change is 26 files, over the 10-file tidy cutoff
  • No paid claude plugin eval run (the issue asks for none)

Fix

  • plugins/developer-experience/evals/s7-act-after-yes/case.yaml: case name, scaffold_script and history_file
  • plugins/developer-experience/evals/s7-act-after-yes/prompt.md: turn-2 prompt ('Yes to consolidating the test scripts; nothing else.'), tools, limits, and a description of which source items are graded and how the port narrows them
  • plugins/developer-experience/evals/s7-act-after-yes/scaffold.sh: seeds brackenfold in the converged state (the source scenario's plugin-arm state)
  • plugins/developer-experience/evals/s7-act-after-yes/turn-1.jsonl: turn 1 ('Clean up our scripts.' plus a text-only proposal that changes nothing and keeps run_tests.sh), in the shape of the performance plugin's history files
  • plugins/developer-experience/evals/s7-act-after-yes/graders/*.md: test-script-removed (Bash rm/git rm of scripts/test.sh), run-tests-script-kept and makefile-calls-kept-script (item 2), seed-fixtures-unchanged (item 3, exact-content regex), and the with-only item 1b graders makefile-keeps-other-targ
  • plugins/developer-experience/evals/s7-act-after-yes/samples/*.json: must-pass and must-fail sample answers for each of the eight deterministic graders
  • plugins/developer-experience/evals/n1-missing-conventions-nudge/case.yaml, prompt.md, scaffold.sh: the build-cli slash prompt on bare tarnquill, one plan turn
  • plugins/developer-experience/evals/n1-missing-conventions-nudge/graders/setup-nudge.md and samples/setup-nudge.json: regex for /developer-experience:setup (not a longer command name) in the final reply, with samples
  • .changes/developer-experience/work-resolve-issue-issue-9979-4b7e2d19.md: patch changelog fragment

Verification

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

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

The run reports:

  • read https: //code.claude.com/docs/en/plugin-evals: case.yaml fields (context.scaffold_script, context.history_file and how a resumed case runs single-arm on a path target), regex target values including { source: file, path }, tool_used input_match over JSON-encoded input with min/max, arm: with-on
  • /home/runner/work/claude-code-plugins/claude-code-plugins/.lane/checks/bin/check-changelog-fragments: all 6 fragments valid
  • /home/runner/work/claude-code-plugins/claude-code-plugins/.lane/checks/bin/check-affected: first run failed only on the missing developer-experience fragment; after adding it, 12 passed, 6 skipped, 0 failed over 26 changed files
  • fresh-context review subagent: hand-simulated every grader regex in JavaScript semantics against its samples and found none sorted the wrong way, and found no YAML/frontmatter problem. It found one bug, fixed: deleting both test scripts passed every grader, so run-tests-script-kept was added and run
  • The lane run: https://github.com/melodic-software/claude-code-plugins/actions/runs/40852647940

Left out: the items under Not verified.

Related

#9979

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

Copy link
Copy Markdown
Contributor

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

No security issues found in this pull request.

I read the full diff (26 files) and the PR context. The change adds two claude plugin eval cases under plugins/developer-experience/evals/: s7-act-after-yes and n1-missing-conventions-nudge. It also adds one changelog fragment. Everything is eval fixture data: case YAML, prompt markdown, grader regexes, sample JSON, a recorded turn-1 transcript, and two scaffold scripts.

  • Trusted paths: no changed file matches any TRUSTED PATHS glob. There are no workflow, action, merge-hold, token or kill-switch changes, so no trust control is widened or weakened.
  • Plugin manifests: neither plugin.json nor marketplace.json is touched. No userConfig, hooks, mcpServers or similar key changes, so there are no manifest <field> lines.
  • Scaffold scripts: each runs bash "$(dirname "${BASH_SOURCE[0]}")/../fixtures/seed.sh" <fixture> <state>. Both arguments are hardcoded literals and the script path comes from the script's own location, so no untrusted input reaches the shell. I did not read fixtures/seed.sh itself, because this PR doesn't change it.
  • Grader regexes: these run only against local eval transcripts and workspace files. The alternations are disjoint ([^"\\;&|] against \\[^n]), so I saw no catastrophic backtracking. The Makefile and seed_fixtures.py patterns are anchored and linear.
  • Prompt content: the turn-1 transcript mentions a line in the fixture's scripts/README.md that tells agents to delete scripts/. It records the assistant treating that line as file content and not acting on it. This is an adversarial test fixture for the audit-tools skill, not an instruction to the lane. The PR context contains no embedded directives aimed at the reviewer.
  • Instruction surfaces: nothing is deleted, narrowed or softened. All files are new.
  • Spend: the PR adds no paid run or schedule. The eval cases cost something only when someone runs them manually.

critical-findings: 0

@github-actions

Copy link
Copy Markdown
Contributor

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

I read the whole diff and checked the graders against the fixture files (Makefile.txt, run_tests.sh.txt, seed_fixtures.py.txt, scripts/README.md.txt, seed.sh). The regexes match what the fixtures hold. The turn-1.jsonl shape matches the performance plugin's history files. I hand-traced the shell-delete and test-removed regexes against their samples and found no mis-sorted sample. I did not run /evals:validate or any interpreter, so none of this is run-verified. The PR's own claims about verification are author-claimed.

Finding (1): the tool_used graders hard-code compact JSON in their input_match ("command":", "file_path":"). The repo's other input_match graders allow whitespace around the colon (see the inline comment).

Closing issue #9979:

  • The 'Each case loads and passes /evals:validate (no paid run)' criterion is not shown met. The PR says the validator was not run. The hand simulation is not equivalent, and the samples exist so the validator can check them, so someone should run it before merge.
  • The scripts/check-changelog-fragments.sh --check-required origin/main criterion is covered by the fragment .changes/developer-experience/work-resolve-issue-issue-9979-4b7e2d19.md and the author-reported check. I did not run it.

Known gaps, not counted as findings:

  • S7 item 1a is not graded.
  • The skill's act-after-yes rule is in context in turn 2 only if the model invokes the skill again, since the recorded turn 1 has no Skill call.
  • The shell grader catches only rm, git rm, mv and unlink.
  • These gaps are all disclosed in the PR and in the case descriptions.

Cost: the cases only add paid claude plugin eval runs against prepaid or subscription usage when someone runs them. They set max_turns 30 and 40. No billing change, so no hold.

Manifests: no plugin.json or marketplace.json changes. The patch fragment fits an additive eval-only change.

critical-findings: 1

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

  • plugins/developer-experience/evals/s7-act-after-yes/graders/test-script-removed.md:7 (RIGHT): The anchor "command":" assumes compact JSON with no space after the colon. The other input_match graders in this repo use \s*:\s* (for example plugins/user-interface/evals/fill-gap-offer/graders/skill-fired.md). If the runner serializes the input as "command": "...", this grader never matches and s7-act-after-yes fails on every run, even when scripts/test.sh was removed.

The same assumption sits in four other graders: "command":" in no-shell-delete-outside-scope.md, and "file_path":" in no-edit-outside-scope.md and no-write-outside-scope.md. There the failure is silent. With max: 0 and no match, the check passes vacuously, so the out-of-scope write/edit/delete guards would stop guarding anything. The PR says the compact form is unconfirmed until a paid run.

To show it fails: serialize {"command": "rm scripts/test.sh"} with a space after the colon and run this pattern. It does not match.

Fix: write the anchor as "command"\s*:\s*" and the path anchor as "file_path"\s*:\s*". The samples will still sort the same way.

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

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

@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 ead332a Oct 29, 2026
43 checks passed
@melodic-automation-lanes
melodic-automation-lanes Bot deleted the work-resolve-issue/issue-9979-40852647940-1 branch October 29, 2026 11:56
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.

test(developer-experience): port eval cases S7 and N1

0 participants