Skip to content

test(heuristic-evals): harden the improvement and education cases that do not discriminate - #11251

Merged
kyle-sexton merged 1 commit into
mainfrom
work-resolve-issue/issue-10291-41050994238-1
Oct 30, 2026
Merged

kyle-sexton merged 1 commit into
mainfrom
work-resolve-issue/issue-10291-41050994238-1

Conversation

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor

Closes #10291

Summary

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

Slice 2 (#10235) found that improvement's already-built-disconnected-scan and education's non-obvious-behavior-keying do not discriminate: the base model passes the target grader 3/3 in both arms. Both base prompts told the model to do the behavior they test. Each base prompt now drops that cue. Each scaffold now adds harder fixture content: an approved greenfield export plan claiming nothing exports orders today (improvement), and a refactor-framed patch header with surface-only hunks ahead of the auth hunks (education). Each -behavior-present variant now runs its base case's scaffold and the same prompt, plus its stated heuristic. No grader criteria changed, and the shared skill fixtures used by evals.json and qz-report-sections are untouched.

Not verified

  • validate-cases.py was not run on plugins/improvement/evals or plugins/education/evals: the lane has no wrapper for it and allows no interpreter. Only string values changed (description, expected_outcome, execution.prompt), and the review read every case.yaml as valid YAML
  • ci-status on the PR head is left to the PR's CI
  • Discrimination is not re-measured. Confirming that the base arm now fails ranked-ahead-of-greenfield and not-surface-only while the -behavior-present variants pass needs a host run of claude plugin eval with --scaffold, which this lane cannot make
  • Not tidied: the change spans 2 areas (plugins/improvement and plugins/education), over the 1-area tidy cutoff
  • The planning cases slice 2 also named as not discriminating (disconnected-scan-before-new-work, unilateral-decision-not-folded) are outside this issue, which covers only improvement and education
  • Untracked files this run did not create appear in the checkout root (.bash_profile, .bashrc, .gitconfig, .idea, .mcp.json, .profile, .ripgreprc, .vscode, .zprofile, .zshrc). They look like sandbox mount placeholders and are not part of this change
  • build and test: nothing to build, and the changed eval cases run only through claude plugin eval on a host

Fix

  • plugins/improvement/evals/already-built-disconnected-scan/case.yaml: the prompt asks what to work on next and ranks the approved plan in, with no cue to look for disconnected code; description and expected_outcome updated; graders unchanged
  • plugins/improvement/evals/already-built-disconnected-scan/scaffold.sh: after copying the shared fixture, writes docs/bulk-export-plan.md, an approved greenfield plan (new service, route, table and flag) claiming admins cannot export orders today
  • plugins/improvement/evals/already-built-disconnected-scan-behavior-present/case.yaml: same new prompt plus the existing heuristic sentence; expected_outcome updated; graders unchanged
  • plugins/improvement/evals/already-built-disconnected-scan-behavior-present/scaffold.sh: runs the base case's scaffold so the pair shares one fixture
  • plugins/education/evals/non-obvious-behavior-keying/case.yaml: the prompt drops 'want to be sure I caught the subtle behavior shifts' and calls the change mostly a refactor; description updated; graders unchanged
  • plugins/education/evals/non-obvious-behavior-keying/scaffold.sh: prepends a refactor-framed format-patch header and surface-only hunks (package.json version and dependency bump, JWT_SECRET to AUTH_JWT_SECRET rename in README.md and src/lib/jwt.js) to the workspace copy of the diff, with no text that
  • plugins/education/evals/non-obvious-behavior-keying-behavior-present/case.yaml: same prompt change, keeping the stated heuristic sentence; graders unchanged
  • plugins/education/evals/non-obvious-behavior-keying-behavior-present/scaffold.sh: runs the base case's scaffold so the pair shares one fixture
  • .changes/improvement/test-10291-harden-heuristic-evals-7c3e91a2.md: patch fragment (Fixed) for the improvement case
  • .changes/education/test-10291-harden-heuristic-evals-4b8d06f5.md: patch fragment (Fixed) for the education case

Verification

The runner ran each check from the base copy against 8727fc9:

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

The run reports:

  • read https: //github.com/melodic-software/claude-code-plugins/issues /10235: closed as completed; the host run reports improvement already-built-disconnected-scan (ranked-ahead-of-greenfield 3/3 with and without the plugin) and education non-obvious-behavior-keying (not-surface-only 3/3 in both arms
  • check-changelog-fragments: All 19 changelog fragment(s) under .changes/ are valid (run before and after the review fixes)
  • check-affected: 12 passed, 6 skipped over 10 changed files (run before and after the review fixes)
  • git-read diff --unified=0 HEAD over both plugins' evals: no criteria: line is added or removed; scaffold modes stay 100755
  • fresh-context review subagent: one confirmed finding (the fragments wrongly said the -behavior-present variants dropped their cue), now fixed; also acted on two concerns: the plan path in the prompt is now fixture-qualified, and the package name no longer contains 'order', which could match the rege
  • The lane run: https://github.com/melodic-software/claude-code-plugins/actions/runs/41050994238

Left out: the items under Not verified.

Related

#10291

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

Copy link
Copy Markdown
Contributor

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

I found no security issues in this pull request.

The change is limited to eval fixtures, case prompts and two changelog fragments, in plugins/improvement/evals and plugins/education/evals. It touches no trusted-path file, trust control, plugin manifest or workflow. No manifest fields are hit.

  • Scaffold scripts: All four run fixed commands with no untrusted input.
    • The two base scaffolds use mkdir, cp -R and quoted heredocs (<<'EOF'), so nothing in them expands.
    • The two -behavior-present scaffolds call the base scaffold by a path built from dirname "${BASH_SOURCE[0]}" and never touch the shared skill fixtures.
    • The education scaffold edits only the copy in the eval workspace: it writes $diff.new, then mvs it over $diff, where $diff is the workspace copy.
  • Prompts and fixtures: The new text is inert test data. allowed_tools is unchanged at Read, Glob, Grep, Skill, so the eval gains no write or exec capability. The fixture content (the fake JWT_SECRET rename and the plan doc) contains no real secrets or instructions aimed at a lane.
  • PR context: I found no embedded directives in the PR description.
  • Spend: I found no billing change. The only spend is more eval runs on prepaid or subscription usage, which is not a hold.
  • Threat-model exemptions: None applied.

critical-findings: 0

@github-actions

Copy link
Copy Markdown
Contributor

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

No findings. I read the full diff (10 files), the PR context, and the shared fixtures the scaffolds copy from (disconnected-admin-export and auth-middleware.diff). I did not run anything, so everything below comes from reading the files.

Closing issue #10291

  • Changed prompt or fixture per case: Met for both cases. already-built-disconnected-scan and non-obvious-behavior-keying each get a changed prompt and scaffold, and their -behavior-present variants follow.
  • No grader criteria changed: Met. The diff adds and removes no criteria: lines, only description, expected_outcome, execution.prompt and scaffolds.
  • validate-cases.py exits 0 and ci-status is green: Unverified. The PR author says validation was not run, and I could not run it either. These are author-claimed, not confirmed by me.

What I checked

  • Education scaffold: The prepended hunks have @@ counts that match their lines (package.json 6/6, README 5/5, jwt.js 6/6). The heredoc is quoted, so there is no expansion. The workspace copy is rewritten through $diff.new and mv, and the shared skill fixture is not touched.
  • Improvement scaffold: It writes only into the workspace copy. The new plan uses order_exports and /admin/export/orders, which stay clear of the graders' patterns export_audit and /admin/orders/export.
  • Behavior-present scaffolds: Each delegates to the base case's scaffold.sh by a path relative to the script. This matches how the old scaffolds already reached ../../skills/... from the script directory. The inner scripts use cwd-relative evals/fixtures, so the pair shares one fixture.
  • Changelog fragments: bump: patch with a Fixed entry fits an eval-only change.

Not confirmed: whether the base arm now actually fails ranked-ahead-of-greenfield and not-surface-only while the -behavior-present variants pass. That needs a host claude plugin eval run, as the PR notes.

Spend: none that is not prepaid. The change adds no billed resources.

Embedded text: none in the PR context asked the lane to approve, skip a check or post elsewhere.

@kyle-sexton
kyle-sexton added this pull request to the merge queue Oct 30, 2026
Merged via the queue into main with commit 276b6d5 Oct 30, 2026
46 checks passed
@kyle-sexton
kyle-sexton deleted the work-resolve-issue/issue-10291-41050994238-1 branch October 30, 2026 14:16
@github-actions

Copy link
Copy Markdown
Contributor

Post-merge mutation testing

Killed 4, survived 3, timeout 0, no coverage 0, invalid 0, not run 0.
Covered-code score 57%; mutation score 57%.

File Killed Survived Timeout No coverage Invalid Not run
plugins/harness-config/skills/audit/scripts/audit-engine.sh 4 3 0 0 0 0

Surviving mutants

Location Operator Disposition Cause
plugins/harness-config/skills/audit/scripts/audit-engine.sh:2383 SBR productive input-gap
plugins/harness-config/skills/audit/scripts/audit-engine.sh:2405 ROR productive input-gap
plugins/harness-config/skills/audit/scripts/audit-engine.sh:2407 ROR productive input-gap

The run's summary has the full report.

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(heuristic-evals): harden the improvement and education heuristic cases that do not discriminate

1 participant