Skip to content

test(heuristic-evals): fix the scaffold and skill-fired defects and add behavior-present variant cases - #10890

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

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

Conversation

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor

Closes #10184

Summary

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

The unilateral-decision-not-folded eval case now gets a scaffold that seeds a small webhook sender with a logger module, so its runs no longer start in an empty repository. The skill-fired grader is gone from the improvement and education heuristic cases, whose prompts call the skill by its slash command. Each of the five heuristic cases gets a -behavior-present sibling with the same scaffold and graders and a prompt that also states the heuristic. Each sibling runs with --ablation none, so a pair shows the case discriminates when the variant passes its target grader and the original fails it.

Not verified

  • The issue's three python3 plugins/evals/skills/validate/scripts/validate-cases.py plugins/{planning,improvement,education}/evals checks were not executed: this lane runs no interpreter, and no lane wrapper runs validate-cases.py. A review subagent statically confirmed that each case.yaml parses un
  • The five variant cases have no samples/ directory, so validate-cases.py should print 'no sample answers' WARNs for their regex graders. WARNs still exit 0, and the original cases' samples apply unchanged because the graders are identical.
  • plugins/planning/scripts/eval-scaffold.test.sh was not run here (no interpreter in this lane); left to the PR's CI test lanes.
  • The six new scaffold.sh files are written with mode 0644, while the existing scaffolds are committed 100755. This lane has no way to chmod. eval-scaffold.test.sh runs scaffolds through bash, but if claude plugin eval --scaffold executes the script directly, set the executable bit on the PR.
  • ci-status green on the PR head: left to the PR's CI.
  • tidy skipped: the change touches 21 files across 3 areas (plugins/planning, plugins/improvement, plugins/education, each with its .changes dir), over the 10-file and 1-area tidy cutoffs.
  • No paid eval run: the issue scopes this slice to authoring and static validation; the discrimination run is slice 2 of #3589.

Fix

  • plugins/planning/evals/unilateral-decision-not-folded/case.yaml: adds context.scaffold_script: scaffold.sh
  • plugins/planning/evals/unilateral-decision-not-folded/scaffold.sh: new; seeds the webhook-sender fixture and strips the .txt suffix (same shape as the observed-fact-evidence-bar scaffold)
  • plugins/planning/evals/fixtures/webhook-sender/webhooks/sender.py.txt: new; WebhookSender with send, _retry and _post and no logging yet, so the choice to log before or after the retry stays open
  • plugins/planning/evals/fixtures/webhook-sender/webhooks/log.py.txt: new; the structured JSON logger module (get_logger)
  • plugins/planning/evals/fixtures/webhook-sender/webhooks/dispatch.py.txt: new; the caller that builds the sender, i.e. where the logger is threaded through
  • plugins/improvement/evals/already-built-disconnected-scan/case.yaml: removes the skill-fired grader
  • plugins/education/evals/non-obvious-behavior-keying/case.yaml: removes the skill-fired grader
  • plugins/planning/evals/disconnected-scan-before-new-work-behavior-present/{case.yaml,scaffold.sh}: new variant case; the original's graders and scaffold, with the disconnected-scan heuristic appended to the prompt
  • plugins/planning/evals/observed-fact-evidence-bar-behavior-present/{case.yaml,scaffold.sh}: new variant case; the original's graders and scaffold, with the observed-fact evidence bar appended to the prompt
  • plugins/planning/evals/unilateral-decision-not-folded-behavior-present/{case.yaml,scaffold.sh}: new variant case; the original's graders and scaffold, with the collapse self-check appended to the prompt
  • plugins/improvement/evals/already-built-disconnected-scan-behavior-present/{case.yaml,scaffold.sh}: new variant case; the original's graders (minus skill-fired) and scaffold, with the disconnected-scan heuristic appended to the prompt
  • plugins/education/evals/non-obvious-behavior-keying-behavior-present/{case.yaml,scaffold.sh}: new variant case; the original's graders (minus skill-fired) and scaffold, with the non-obvious-behavior keying heuristic appended to the prompt
  • plugins/planning/scripts/eval-scaffold.test.sh: also checks the observed-fact variant's scaffold and both webhook-sender scaffolds; this test is also what makes check-orphaned-fixtures count the new fixture files as consumed
  • .changes/planning/test-10184-heuristic-eval-variants-5b2e8d1f.md: patch fragment (three variant cases added, scaffold fixed)
  • .changes/improvement/test-10184-heuristic-eval-variants-9c4a7e30.md: patch fragment (variant case added, skill-fired removed)
  • .changes/education/test-10184-heuristic-eval-variants-e17d3b6a.md: patch fragment (variant case added, skill-fired removed)

Verification

The runner ran each check from the base copy against 45b06f8:

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

The run reports:

  • check-changelog-fragments: All 42 changelog fragment(s) under .changes/ are valid (run before and after the last edit)
  • check-affected: 12 passed, 6 skipped over 21 changed files (run after the last edit)
  • Grep: scaffold_script appears once in plugins/planning/evals/unilateral-decision-not-folded/case.yaml; name: skill-fired appears in neither the improvement nor the education case.yaml
  • Glob: plugins/{planning,improvement,education}/evals/*-behavior-present/case.yaml matches 5 cases
  • git-read diff --name-only HEAD -- docs/finding-your-unknowns.md plugins/{planning,improvement,education}/skills: empty (no doc or skill body changed)
  • read https: //code.claude.com/docs/en/plugin-evals: context.scaffold_script is a Bash script in the case directory that runs in the empty workspace before Claude starts, only under --scaffold (hence one scaffold.sh copy per variant case)
  • fresh-context review subagent over the full diff: no findings. It confirmed each variant's graders match the original line for line, each prompt is the original plus one heuristic sentence, every case.yaml fits validate-cases.py's YAML subset, and every new fixture counts as consumed by check-orphan
  • The lane run: https://github.com/melodic-software/claude-code-plugins/actions/runs/40820461857

Left out: the items under Not verified.

Related

#10184

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

Copy link
Copy Markdown
Contributor

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

No security issues found in this PR.

critical-findings: 0

Read all 21 changed files in full. The change adds eval cases and fixtures under plugins/{planning,improvement,education}/evals/, three changelog fragments, and an update to plugins/planning/scripts/eval-scaffold.test.sh. None of it matches a trusted path, and none of it is a trust control, merge hold, token scope, kill switch, plugin manifest or standing instruction.

  • Scaffold scripts: the new scaffold.sh files copy static, in-repo fixtures into the eval workspace with cp. Paths derive from BASH_SOURCE[0] and the find pattern runs over committed fixture files. No untrusted input, network access, secrets or command construction is involved. Executing them as root-of-trust code is the author's own repository content, the same shape as the existing observed-fact-evidence-bar scaffold.
  • Fixtures: the webhook-sender Python files are inert .txt data. sender.py.txt posts to caller-supplied endpoints, but only inside a fixture that the eval reads and never runs.
  • Removed skill-fired graders: these are eval-quality graders, not a security control. Nothing else depends on them as a gate.
  • Variant case prompts: they add a heuristic sentence to eval prompts. They are test inputs, not standing instructions, so the instruction-surface lens does not apply. The eval allowed_tools stay read-only (Read, Glob, Grep, Skill, plus Agent and TodoWrite for the plan case).
  • PR context: it contains no embedded directives.
  • Manifests: no plugin.json or marketplace.json change, so there are no manifest <field> lines.
  • Spend: the five variant cases add eval runs that draw only on prepaid or subscription usage, and the PR runs none. This is not a hold and not a finding.

@github-actions

Copy link
Copy Markdown
Contributor

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

No findings. I read the full diff and the PR context, and read only the three original scaffold.sh files plus the four original prompts for comparison. I had no shell, so I ran no validators or tests.

Closing issue #10184: criteria checked against the diff

  • unilateral-decision-not-folded now has scaffold_script: scaffold.sh, a scaffold.sh, and the webhook-sender fixtures (sender.py.txt, log.py.txt, dispatch.py.txt). The scaffold is the same suffix-stripping shape as the existing observed-fact-evidence-bar one. The fixture leaves the log-before-or-after-retry choice open, which is what the case's grader tests.
  • The skill-fired grader is removed from the already-built-disconnected-scan and non-obvious-behavior-keying cases. The diff shows no other change to either.
  • Five *-behavior-present cases are added, one each for the planning (3), improvement (1) and education (1) heuristics. Each description states --ablation none.
    • The graders in the variant diffs are carried over, minus skill-fired for the improvement and education variants. I did not diff them against the originals' graders.
    • I did compare the prompts: each is the original prompt plus one sentence stating the heuristic.
    • The three copy-style variant scaffolds are identical to the originals I read, and their relative paths resolve the same way from a sibling case directory.
  • The diff shows 100755 mode on every new scaffold.sh. The PR body says they are 0644, so the diff and the body disagree. The diff is the evidence.
  • No skill body and no docs/finding-your-unknowns.md appears in the diff.
  • Not independently verified: the three validate-cases.py runs and ci-status. The PR body marks the validate-cases.py runs as not executed. They are left to CI.

Test coverage: eval-scaffold.test.sh now covers the observed-fact variant and both webhook-sender scaffolds. Its test-scope globs are widened to match. The other three variants only cp -R fixtures. Their originals have no scaffold test in that file either, so I did not flag this.

Manifests: the diff changes no plugin.json or marketplace.json. The three patch-level changelog fragments match what ships: test cases added, one grader removed, one scaffold added.

Trusted paths: no changed file matches a listed glob. The security lane covers the security scope, and I found nothing in this change that touches it.

Cost: the change adds eval cases but runs none. The paid discrimination run is a later slice, so no hold applies.

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

The unattended merge path armed native auto-merge at head 45b06f8f4d395c2468d305b97ba6ee7e81d29c05.

@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 2f401ee Oct 29, 2026
43 checks passed
@melodic-automation-lanes
melodic-automation-lanes Bot deleted the work-resolve-issue/issue-10184-40820461857-1 branch October 29, 2026 06:58
@github-actions

Copy link
Copy Markdown
Contributor

Post-merge mutation testing

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

File Killed Survived Timeout No coverage Invalid Not run
plugins/harness-ops/skills/plugins/scripts/fleet-state.sh 1 0 0 0 0 0
plugins/harness-ops/skills/plugins/scripts/sync-run.sh 1 3 0 0 0 0

Surviving mutants

Location Operator Disposition Cause
plugins/harness-ops/skills/plugins/scripts/sync-run.sh:940 other productive input-gap
plugins/harness-ops/skills/plugins/scripts/sync-run.sh:1018 other productive input-gap
plugins/harness-ops/skills/plugins/scripts/sync-run.sh:1945 SBR 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): fix the scaffold and skill-fired defects and add behavior-present variant cases

0 participants