Skip to content

test(education): close eval-case gaps from the concise-skills review - #10809

Merged
melodic-automation-lanes[bot] merged 2 commits into
mainfrom
work-resolve-issue/issue-7416-40790132515-1
Oct 29, 2026
Merged

melodic-automation-lanes[bot] merged 2 commits into
mainfrom
work-resolve-issue/issue-7416-40790132515-1

Conversation

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor

Closes #7416

Summary

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

te-primer-no-workspace now grants Write and fails on any Write to MISSION.md, GLOSSARY.md or learning-records/. Six new outcome cases cover teach rung 1 (a declared root holding $(...) is refused and never run), rung 3 (ask-once, adopt-existing, headless skip), the project-slug plus collision guard, and explain naming and dropping an invalid explain_starting_rung repository value. Every grader is deterministic and has must-pass and must-fail samples. A .changes/education fragment records the change.

Not verified

  • Sample grading by /evals:validate (plugins/evals/skills/validate/scripts/validate-cases.py plugins/education/evals) was not run: this lane allows no interpreter. Samples were traced by hand. The issue assigns this run to the merging reviewer, since CI does not run it.
  • scripts/check-orphaned-fixtures.sh --check was not run here (check-affected lists it as CI only). This change adds no file under evals/fixtures/, so the PR's CI should pass it.
  • The three new scaffold.sh files (te-root-declared-substitution, te-slug-collision-guard, ex-invalid-rung-layer) will land as mode 100644, while every existing education scaffold.sh is 100755. This lane cannot chmod. Run chmod +x on them if the eval harness runs scaffolds directly instead of through
  • tidy skipped: the change is about 42 files, above the 10-file tidy cutoff.
  • review-venue.txt was absent from the scratchpad, so the review ran locally in one fresh-context subagent, not in the CI code-review lane.
  • Two of the four rung 3 behaviors cannot be seeded as real state. A claude -p run is always headless and its HOME is temporary, and a scaffold cannot reach that HOME. So te-root-ask-once relies on the prompt saying a learner is present, and te-root-adopt-existing relies on the prompt saying a Claude
  • te-slug-collision-guard's workspace-path grader accepts any 4 hex digits after c-. The exact sha256('C#') prefix was not computed (no interpreter here). Pinning it would also catch an invented hash.
  • falls-to-lower-rung skips any line that names root-declaration-ran. A correct reply that refuses the value and names the fallback on the same line would fail it, so the paid run should be checked for that shape.
  • The paid 3-run old-versus-new runs on Opus and Sonnet are out of scope here; the issue split them to #8988.
  • The skill says to commit, but the runner's instructions say to leave every change uncommitted for the patch job, so nothing was committed. Untracked runner files at the repo root (.bashrc, .bash_profile, .gitconfig, .idea, .mcp.json, .profile, .ripgreprc, .vscode, .zprofile, .zshrc) were not created

Fix

  • plugins/education/evals/te-primer-no-workspace/prompt.md: allowed_tools adds Write; drops 'this run cannot write files' so the no-workspace rule can fail on behavior; description and expected_outcome updated
  • plugins/education/evals/te-primer-no-workspace/case.yaml: new no-workspace-write tool_used grader (Write, file_path matching MISSION.md, learning-records/ or GLOSSARY.md, min 0 max 0, arm both)
  • plugins/education/evals/te-primer-no-workspace/samples/no-workspace-write.json: new must-pass (temp HTML write, no write) and must-fail (MISSION.md, Windows learning-records path) samples
  • plugins/education/evals/te-root-declared-substitution/{case.yaml,prompt.md,scaffold.sh,samples/*.json}: new case; the scaffold writes CLAUDE.md declaring 'teach workspace root: $(touch root-declaration-ran)/learning'; graders refuses-declaration, falls-to-lower-rung, no-declared-value-run (Bash neve
  • plugins/education/evals/te-root-ask-once/{case.yaml,prompt.md,samples/*.json}: new case; graders asks-root-once (exactly one root question, match count:1) and offers-documents-default
  • plugins/education/evals/te-root-adopt-existing/{case.yaml,prompt.md,samples/*.json}: new case; graders adopts-existing-home and no-root-question
  • plugins/education/evals/te-root-headless-skip/{case.yaml,prompt.md,samples/*.json}: new case; graders no-root-question, no-root-ask-tool (AskUserQuestion about the root, max 0) and names-lower-rung
  • plugins/education/evals/te-slug-collision-guard/{case.yaml,prompt.md,scaffold.sh,samples/*.json}: new case; the scaffold declares a project-relative root and seeds a C++ workspace at <basename>-<8 hex>/topic/c, using derive_slug from list-workspaces.sh; graders hash-computed (sha256 of C
  • plugins/education/evals/ex-invalid-rung-layer/{case.yaml,prompt.md,scaffold.sh,samples/*.json}: new case; the scaffold sets explain_starting_rung: expert in docs/conventions/education.yaml; graders read-repo-layer, names-invalid-value and rung-report-plain-default
  • .changes/education/test-education-eval-gaps-7416-4e1a9c27.md: patch fragment (Added: six cases; Changed: te-primer-no-workspace)

Verification

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

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

The run reports:

  • /home/runner/work/claude-code-plugins/claude-code-plugins/.lane/checks/bin/check-changelog-fragments: all 6 fragments valid (run after the review fixes)
  • /home/runner/work/claude-code-plugins/claude-code-plugins/.lane/checks/bin/check-affected: first run failed machine-specific-paths on three sample paths; replaced them with ~/ and D:\ placeholders; final run 12 passed, 6 skipped, 0 failed
  • read https: //code.claude.com/docs/en/plugin-evals: each run is an isolated non-interactive claude -p session with a temporary home and working directory; CLAUDE.md in the workspace is not loaded; Write, Bash and other non-read-only tools need --allow-tools; scaffold_script runs in the workspace bef
  • hand trace of every must-pass and must-fail sample against its grader, using the semantics in plugins/evals/skills/validate/scripts/validate-cases.py (JS RegExp, compact-JSON input_match, anchored file_exists glob); repeated after the review fixes
  • fresh-context review subagent over the whole diff: traced all 17 original graders with no mis-sorted samples, and found 12 grader and prompt weaknesses. Fixed: the shared root-question regex (false negatives on ':' and '.', false positives on 'where do you keep your starter?'), names-existing-subjec
  • The lane run: https://github.com/melodic-software/claude-code-plugins/actions/runs/40790132515

Left out: the items under Not verified.

Related

#7416

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

github-actions Bot commented Oct 29, 2026 •

Copy link
Copy Markdown
Contributor

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

No security issues found in the incremental change since 9cd680e.

The change touches three eval case.yaml files under plugins/education/evals/. It rewrites grader regex text and adds no code and no workflow, token, trust-control, merge-hold or manifest change.

  • ex-invalid-rung-layer and te-root-declared-substitution: ignor\w* became ign[o]r\w*. The two patterns match the same strings.
  • te-root-headless-skip: the input_match class [Dd]irectory / [Ll]ocation became Directory|directory / Location|location. This is equivalent, and the grader still asserts AskUserQuestion is never called (min: 0, max: 0).

None of these files match a trusted path, and none loosens a gate that guards security. critical-findings: 0

No spend change worth naming.

@github-actions

github-actions Bot commented Oct 29, 2026 •

Copy link
Copy Markdown
Contributor

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

Incremental review of the three eval case.yaml files changed since 9cd680e. I found nothing to report.

  • ex-invalid-rung-layer and te-root-declared-substitution: ignor\w* became ign[o]r\w*. The two match the same strings (ignore, ignored, ignoring), so the grader behaviour is unchanged. I did not work out why the character class was added.
  • te-root-headless-skip: input_match changed from [Dd]irectory and [Ll]ocation to the spelled-out Directory|directory and Location|location. The matched set is the same, so the grader is unchanged.

I did not run the evals. I checked the equivalence by reading the patterns. The rest of the pull request is unchanged since the last review, so I did not re-review it. No cost or critical-security hold applies.

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

Unattended merge: native auto-merge leaves this pull request unarmed at head 9cd680e1cdcff7bbb5fcb4a6292d7f39f6dbd9a2. The lanes clear this reason on their own; the next scheduled run judges it again.

pr-merge's gate refuses its verifier verdict (verify:missing)

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

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

@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 e143d80 Oct 29, 2026
38 checks passed
@melodic-automation-lanes
melodic-automation-lanes Bot deleted the work-resolve-issue/issue-7416-40790132515-1 branch October 29, 2026 03:09
@github-actions

Copy link
Copy Markdown
Contributor

Post-merge mutation testing

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

File Killed Survived Timeout No coverage Invalid Not run
plugins/session-flow/skills/audit-sessions/scripts/sweep.py 2 5 0 0 0 0

Surviving mutants

Location Operator Disposition Cause
plugins/session-flow/skills/audit-sessions/scripts/sweep.py:589 LCR productive input-gap
plugins/session-flow/skills/audit-sessions/scripts/sweep.py:606 other productive input-gap
plugins/session-flow/skills/audit-sessions/scripts/sweep.py:611 SBR productive input-gap
plugins/session-flow/skills/audit-sessions/scripts/sweep.py:632 AOR productive input-gap
plugins/session-flow/skills/audit-sessions/scripts/sweep.py:756 AOR productive no-assertion

The run's summary has the full report.

@kyle-sexton

Copy link
Copy Markdown
Member

Host run. Ran the seven education eval cases that #10809 added or changed, old against new skill text, on Opus and Sonnet at 3 runs each, all four arms launched together.

What ran (Claude Code 2.1.314, subscription login, no API key, no bypass mode):

First pass (with-arm mean per case; every arm INVALID, indicative only)

The first-pass rows for te-root-adopt-existing, te-root-ask-once and te-primer-no-workspace ran with a Bash grant those cases do not declare. The validity rerun below replaces them, and the Mean row still includes them.

Case Opus old Opus new Sonnet old Sonnet new Sonnet old, 6 runs Sonnet new, 6 runs
ex-invalid-rung-layer 1.00 1.00 0.78 0.89 0.78 0.94
te-primer-no-workspace 1.00 1.00 0.95 0.90 0.98 0.90
te-root-adopt-existing 0.67 0.83 0.83 0.67 0.75 0.75
te-root-ask-once 0.50 0.67 0.83 0.67 0.75 0.58
te-root-declared-substitution 1.00 1.00 0.92 1.00 0.96 1.00
te-root-headless-skip 1.00 1.00 1.00 1.00 1.00 1.00
te-slug-collision-guard 0.67 0.67 0.78 0.67 0.72 0.67
Mean 0.83 0.88 0.87 0.83 0.85 0.84

Noise report (noise-report.py --baseline, new minus old, paired over 7 cases, margin 0.05). These come from INVALID runs and are indicative only:

  • Opus: +0.05, 95% interval [−0.01, +0.11]. Non-inferior.
  • Sonnet, first pass: −0.04, [−0.13, +0.04]. Not shown non-inferior.
  • Sonnet, second pass: +0.02, [−0.08, +0.12]. Not shown non-inferior.
  • Sonnet, both passes pooled (6 runs per case): −0.01, [−0.09, +0.06]. Not shown non-inferior. The interval is wide, and the sign flipped between the two passes, so this reads as noise rather than a measured loss.
  • No case dropped by a third or more in any comparison. The largest drop is Sonnet te-root-ask-once, from 0.75 to 0.58 pooled (asks-root-once, which needs exactly one root question). Opus moves that case the other way, from 0.50 to 0.67. Its cause is UNVERIFIED.
  • Grader misses that every arm shares do not depend on the text. te-slug-collision-guard reads-existing-mission failed in 11 of 12 first-pass runs across all four arms. te-root-adopt-existing adopts-existing-home and te-root-ask-once asks-root-once miss in every arm.

Run validity

run-validity.py returns INVALID for every arm, both versions, for two reasons:

  • "Session started" FAIL. The Bash tool's working-directory tracking write fails with read-only file system, so a call exits 1 after printing its full output. The model still sees each result. This is the known read-only temp-directory limit for Bash-granting eval runs on 2.1.314, recorded in #11145. It hits both versions at similar rates: Opus 16 and 16 runs; Sonnet 9 and 14 in the first pass, 6 and 13 in the second.
  • Permission denials. 1 to 4 runs per arm, all Bash calls in the te-root-* cases that read the plugin-data workspace-root pointer. feat(education): concise skill text measured by evals, plus outcome cases and probes #7405 recorded the same denials.

The numbers carry that caveat. Under the protocol in plugins/playbooks/skills/skill-authoring/reference/skill-criteria.md step 4, a run judged INVALID does not count as a valid measurement.

Validity rerun. Three cases do not declare Bash, so they were rerun with only the tools each one declares. te-root-adopt-existing and te-root-ask-once ran with no operator grant, and te-primer-no-workspace with --allow-tools Write only. All eight arms (old and new, Opus and Sonnet, two passes) ran together, 3 runs each, in 205 s. Seven of the eight arms are VALID. Opus old, pass A, is INVALID on 1 permission denial.

Case (valid rerun) Opus old Opus new Sonnet old Sonnet new
te-root-adopt-existing 0.83 (invalid arm) 1.00 0.67 1.00
te-root-ask-once 0.83 (invalid arm) 0.67 0.50 0.67
te-primer-no-workspace 1.00 0.90 0.90 0.95

On valid Sonnet runs, new text is equal or higher on all three cases. On Opus, the only valid pair is te-primer-no-workspace, at 1.00 old and 0.90 new: one ask-template miss in each of two runs, under the one-third drop threshold. The four Bash-granting cases (ex-invalid-rung-layer, te-root-declared-substitution, te-root-headless-skip, te-slug-collision-guard) cannot produce a VALID run on this CLI because of the read-only temp-directory limit.

Done-when (from #7416, moved here)

  • Old and new education text run on Opus and Sonnet at 3 runs each: met as written. All seven cases ran on both models and both versions, launched together.
    • Valid measurement covers only the rerun of the three non-Bash cases: all three on Sonnet, and only te-primer-no-workspace on Opus.
    • Every Bash-granting arm is INVALID. Their Opus and Sonnet noise-report verdicts are indicative only.
    • The four Bash cases cannot give a VALID run on Claude Code 2.1.314 until the read-only temp-directory limit lifts. Running them again on a host will not change that.
  • Post the delta on the PR: not met by this run. The PR is #10809, which is merged. The tables above are the delta to post. Posting needs no host.

No text change: no valid comparison shows a loss, and no invalid one shows a case dropping by a third. No PR was opened.

Delta posted on #10809. The four Bash-granting cases cannot give a VALID run on 2.1.314 (read-only temp directory, #11145), so another host run would add nothing until that limit lifts.

Target labels: add none; remove host-run.

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(education): close eval-case gaps found in the concise-skills review

1 participant