Skip to content

test(instruction-placement): add eval cases for migrate, audit and delta - #13318

Merged
melodic-automation-lanes[bot] merged 5 commits into
mainfrom
work-resolve-issue/issue-13303-41875928323-1
Nov 4, 2026
Merged

melodic-automation-lanes[bot] merged 5 commits into
mainfrom
work-resolve-issue/issue-13303-41875928323-1

Conversation

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor

Closes #13303

Summary

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

Adds one plugin eval case each for the instruction-placement skills migrate, audit and delta, which had no case aimed at them by a Skill input_match or a tag. Each case scaffolds a committed repository, has a with-only skill-fired grader plus deterministic graders, and ships pass and fail samples for every grader. The cases check three things: migrate plans with plan-migration.sh --root and writes no instruction file before acceptance; audit runs detect.sh, proposes a **/*.cs glob for judgment-only C# conventions and holds back a git safety rail as hard-denied; delta, with no baseline and no findings artifact, says there is nothing to compare and routes to the full audit without capturing a baseline. Design choice: case.yaml with execution.prompt and a scaffold.sh, like plugins/planning/evals/dh-untagged-thread-fails, because each case needs a git repository the skill's scripts can resolve.

The run went past its turn budget (turns=85 max-turns=75): the work may be too big for one run.

Not verified

  • plugins/evals/skills/validate/scripts/validate-cases.py was not run on plugins/instruction-placement/evals: this lane runs no interpreter. The review subagent traced every sample against its pattern by hand, but nothing executed either the Python or the JavaScript regex engine on them. Run `python3…
  • Tidy skipped: the change has 24 files, over the 10-file tidy cutoff
  • No paid claude plugin eval run of the new cases; the parent issue #13300 asks for one VALID both-arm verdict per plugin, recorded there. That is an operator-started paid run
  • The scaffold.sh files are created without an executable bit (the lane's file tools cannot set modes). If the eval runner needs the bit, run git update-index --chmod=+x on the three scaffold.sh files

Fix

  • plugins/instruction-placement/evals/mg-plan-stops-before-write/case.yaml: new migrate case: skill-fired, ran-plan (plan-migration.sh --root), names-shim (AGENTS.md), and no Write, Edit or shell write to AGENTS.md or CLAUDE.md
  • plugins/instruction-placement/evals/mg-plan-stops-before-write/scaffold.sh: committed repo on main whose root CLAUDE.md carries content and has no AGENTS.md
  • plugins/instruction-placement/evals/mg-plan-stops-before-write/samples/*.json: pass and fail samples for all six graders
  • plugins/instruction-placement/evals/au-safety-rail-held-back/case.yaml: new audit case: skill-fired, ran-detector (detect.sh), proposes-cs-glob, holds-back-git-safety, and no Write or Edit whose file_path is an instruction file or .claude/rules/
  • plugins/instruction-placement/evals/au-safety-rail-held-back/scaffold.sh: committed C# repo whose CLAUDE.md mixes judgment-only .cs conventions with a git safety section
  • plugins/instruction-placement/evals/au-safety-rail-held-back/samples/*.json: pass and fail samples for all six graders, including a findings-artifact write whose content names instruction files
  • plugins/instruction-placement/evals/dl-no-baseline-routes-to-audit/case.yaml: new delta case: skill-fired, nothing-to-compare, routes-to-audit, no-capture (no findings.md or spine baseline write), no-edit
  • plugins/instruction-placement/evals/dl-no-baseline-routes-to-audit/scaffold.sh: committed repo with a CLAUDE.md and no .work/ memory tier
  • plugins/instruction-placement/evals/dl-no-baseline-routes-to-audit/samples/*.json: pass and fail samples for all five graders
  • .changes/instruction-placement/work-resolve-issue-issue-13303-41875928323-1-01afeb1b.md: bump none changelog fragment for the test-only change

Verification

The runner ran each check from the base copy against 9cf7754:

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

The run reports:

  • check-changelog-fragments: all 7 fragments valid (run before and after the review fixes)
  • check-changed-skills: no changed skill file, nothing to gate
  • check-affected: 13 passed, 6 skipped, 0 failed over 24 changed files (run before and after the review fixes)
  • fresh-context review subagent over the whole diff: found 2 false negatives and 1 likely one; all three fixed (Write/Edit graders now anchored on file_path so audit's findings.md write no longer trips them; nothing-to-compare accepts 'nothing to compare against' and 'neither ... nor'; the C# bullets…
  • The lane run: https://github.com/melodic-software/claude-code-plugins/actions/runs/41875928323

Left out: the items under Not verified.

Related

#13303

Lane-Activity: work-resolve-issue/resolve-issue
@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 de47ad49a8a57aa6b1997fad5e8b1eceaa49a38c. 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)

@github-actions

github-actions Bot commented Nov 4, 2026 •

Copy link
Copy Markdown
Contributor

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

Security review: PR #13318 (incremental, head de47ad49)

I found no security issues in this push. This lane already reviewed an earlier head (f07c5e28), so this pass was blocking only: it would have reported CRITICAL and IMPORTANT findings, and there were none.

Scope. I read every hunk of both files changed since f07c5e28:

  • plugins/instruction-placement/evals/au-safety-rail-held-back/case.yaml: the no-git-destination grader regex changed in two ways.
    • The first branch's scan now also stops at a negation word (not, cannot, n't or n’t, never).
    • A second branch was added that still catches it moves to .claude/rules/ after an earlier negation on the same line.
  • plugins/instruction-placement/evals/au-safety-rail-held-back/samples/no-git-destination.json: adds six pass samples (refusals phrased with a negation) and one fail sample (a negation earlier on the line, followed by a real move).

What I checked

  • Graders and samples. Both files are eval test data that an operator runs inside the eval harness. The regex runs only over model transcripts. Nothing here grants tools, credentials or tokens to a CI lane or to installed users, runs code, or interpolates outside input.
  • Regex backtracking (ReDoS). Each branch's repetition is capped at {0,160} characters on a single line, and the per-character negative lookahead is bounded. A hostile transcript therefore has no meaningful backtracking to exploit.
  • Trusted paths. Neither file matches a TRUSTED PATHS: glob. The .claude/rules/ strings appear only inside the regex and the sample text. They are not committed files under .claude/.
  • Plugin manifests. No plugin.json or marketplace.json changed, so this review has no manifest <field> lines.
  • Instruction-surface deletions. None. The grader change is test logic, not a standing instruction or guardrail.
  • Embedded text. Neither the diff, the PR context nor the settled threads contain instructions aimed at the review lane.
  • Settled threads and prior findings. No settled thread or earlier finding of this lane is re-raised. The thread on original line 37 is marked lines changed since resolution: yes. I re-read its lines and they raise no security issue.

Spend (not a hold, not a finding). This push adds no turns or runs. Running the eval case still draws on prepaid model usage, as before.

critical-findings: 0

@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: 2 inline finding(s) on fa882ee0454cdaa7c32ce9d2ef253a49a8c3586d; the summary is in this lane's pull request comment.

claude-lane: claude-review

@github-actions

github-actions Bot commented Nov 4, 2026 •

Copy link
Copy Markdown
Contributor

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

claude-review: incremental review of f07c5e28..de47ad49. This lane already reviewed an earlier head, so this pass reports blocking findings only. No blocking findings.

I read every hunk of both files in the incremental list:

  • plugins/instruction-placement/evals/au-safety-rail-held-back/case.yaml
  • plugins/instruction-placement/evals/au-safety-rail-held-back/samples/no-git-destination.json

The prior finding (case.yaml:37, refusal-in-words replies failing no-git-destination) is addressed. I traced the new pattern by hand against every sample:

  • New pass samples (6): the span after git safety now stops at not, cannot, n't/n’t or never. That stops it before won't move it to, must not move to, cannot move to, both forms of can't move to, and , not .claude/rules/git.md. None of these replies contains it moves to, so the second branch doesn't match them either.
  • Earlier pass samples (8): still pass. The C# line still stops at C#. Arrow verdicts (hard-deny, not moved, `held back`, (held back), held back) are still accepted by the lookahead.
  • Fail samples (5): all still match. The new sample Git safety is not judgment-only; it moves to .claude/rules/git.md … gets past the negation guard in branch 1 and is caught by the new narrow branch 2, \bit moves to [].claude/rules/`.
  • YAML quoting: in single quotes, '' decodes to '. The class ['’] is therefore ASCII plus the typographic apostrophe, and that apostrophe is in the BMP, so the pattern works the same under Python re and JS RegExp.

Not verified: I ran no regex engine, so these results come from tracing by hand, not from running the pattern. Running the case's sample validation (validate-cases.py / CI) is still the author's job.

Note (not counted, since this pass is blocking only): as the prior finding said, the negation guard means a reply with a negation before an arrow or .md destination now gets through no-git-destination, for example Git safety is not judgment-only → .claude/rules/git.md. Only the it moves to .claude/rules/ wording is caught again by branch 2.

Other notes:

  • No plugin manifest changed in this push.
  • The settled threads at lines 50 and 55 (resolved, no lines changed) were not raised again.
  • The prior findings at earlier heads are marked changed; this push has addressed the one at f07c5e28.
  • I found no embedded instructions in the PR context, settled-threads or prior-findings files.
  • Spend: the eval case uses subscription or API usage only when someone starts an eval run. That is not a hold.

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

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

Lane-Activity: pr-unblock/address-feedback
Lane-Thread: PRRT_kwDOTCGFQM6zvbuI
Lane-Thread: PRRT_kwDOTCGFQM6zvbub
@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

pr-unblock / address-feedback finished round 1 of max 4 on 782b0f9.

@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 782b0f9e3001958b9311a762a6d0b08376a2702a; the summary is in this lane's pull request comment.

claude-lane: claude-review

Lane-Activity: pr-unblock/address-feedback
Lane-Thread: PRRT_kwDOTCGFQM6zvstT
@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

pr-unblock / address-feedback finished round 2 of max 4 on f07c5e2.

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

claude-lane: claude-review

Lane-Activity: pr-unblock/address-feedback
Lane-Thread: PRRT_kwDOTCGFQM6zwKfK
@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

pr-unblock / address-feedback finished round 3 of max 4 on de47ad4.

@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 b741bab Nov 4, 2026
45 checks passed
@melodic-automation-lanes
melodic-automation-lanes Bot deleted the work-resolve-issue/issue-13303-41875928323-1 branch November 4, 2026 19:17
@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

The post-merge check verified merge commit b741bab1e08e44083b8152f506ede3e7e8c7d264; later checks count it verified from this comment.

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(evals): add eval cases for pointer-swept skills that have none - part 1 of 9

0 participants