Repository navigation
docs(evals): plugin eval Phase 0 — enablement, graders, ablation, sandbox hooks, cost (#987) - #1003
Merged
admarble merged 6 commits intoSep 8, 2026
Conversation
… grader name, and artifact reproducibility limits (#987) Entire-Checkpoint: 4286c2dacb58
admarble
deleted the
feature/987-feat-evals-adopt-claude-plugin-eval-as-the-skill-l
branch
September 8, 2026 01:34
This was referenced Sep 8, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Phase 0 of #987 (graph node 07): empirically validate
claude plugin evalbefore any eval case is authored. One committed file —docs/investigations/plugin-eval-phase0.md— answering P0.1–P0.6 with recorded runs.Phase 0 verdict: GO, with three binding constraints for #993/#994. Total spend $9.78 of the $25 ceiling.
Headline findings:
.resolves to the worktree, not the marketplace cache — feat(hooks): warn when the installed plugin cache is stale — plugin-channel installs never auto-update #784 answered; no build gate needed.PreToolUseguard does not take effect in the eval sandbox. An in-workspace write that the host hook blocks unconditionally (positive control:HOOK_BLOCKED, exit 2) was granted and completed inside the sandbox withHOOK_BLOCKEDabsent. Hook-dependent assertions are invalid underplugin eval.tool_used: Skillincluded. Only skill-emitted surfaces discriminate.Pre-PR AC Verification
grep -c 'P0.1' …→ 5; probes re-run 2026-09-07T05:38:26Z on CC 2.1.263, reproducing lab-notes §1ac2.jsonshowsplugins[0].path= the worktree,ablation: with-without, two arms,skill-fired(tool_used: Skill) passing on the with armregex | tool_order | tool_used | file_exists | llm | baseline), recovered from the binary's schema, and marks the four deterministic ones;verdict-marker-fieldsasserts on marker fields and passed--scaffoldreached a verdict marker (ac4.json). Hook outcome measured by a dedicated probe (hookfire.json, $0.0886): an in-workspace write granted by the permission layer, under a non-existentSEQUANT_WORKTREE, completed withHOOK_BLOCKEDabsent — while the same input on the host returnsHOOK_BLOCKEDexit 2ac5.json— 3 runs × 2 arms, $4.2577 / 495 s → $0.71 per case-run; P2 decision statedpassRate0 at threshold 1.0test ! -d evals && test ! -d evals-phase0→ PASS; verdict comment #issuecomment-5565682014claude plugin evalcommands in the doc carry--max-cost-usd--no-publish; state whether anything published--no-publish; §8 preamble states it; nothing published to claude.ai--allow-tools Writeonly; standalone/qacould not reachgh issue comment; no eval run posted to a real issue--eval-dir evals-phase0; JSON/report/output outside the repo--eval-dir evals-phase0;--json/--output-dirpoint at/tmpor…/.987-phase0-evidence/; AC-7 confirms no leakageMutation verification
AC-6 is the gate-test AC, and it is a mutation test by construction — the canary is the mutation.
Canary mutation (AC-6; not a gate test, so not a
Mutation-verified:gate record) — replaced the plugin'sskills/qa/SKILL.md(3,735 lines) with an 8-line stub; thephase0-qacase dropped 1.000 → 0.667 and itsqa-gaps-markerandqa-trust-boundary-sectiongraders failed (passRate0 at--threshold 1.0); restored viagit checkoutand re-verified invariant I-4 (md5 -qacross the threeqa/SKILL.mdcopies →1).Note the null canary (§6a) is the second half of the same AC and was already red: 0.00 on both arms, with a file-targeted
regexgrader on a missing file throwing rather than passing vacuously.Invariants (PLAN §5)
qa/SKILL.mdcopies byte-identical after the mutation was restored:md5 -q … | uniq | wc -l→1. ✅SEQUANT_MUTATIONmarker named eval graders asfailedTest, which/qa§6i classifies astest_not_in_diff— false evidence — so it was removed rather than left to fail the gate.)gh issue view --json commentsbecause the plain--commentsform errors on the deprecatedprojectCardsGraphQL field; the assertion itself is unchanged (→ 3). ✅Scope
Committed:
docs/investigations/plugin-eval-phase0.mdonly. Noevals/, noplugin.jsonchange, no CI. The throwawayevals-phase0/was deleted before this PR.Test plan
test ! -d evals && test ! -d evals-phase0md5 -q skills/qa/SKILL.md .claude/skills/qa/SKILL.md templates/skills/qa/SKILL.md | uniq | wc -l→1git status --porcelainclean apart from the doc--jsonartifacts backing every row are preserved outside the repo at~/Projects/worktrees/.987-phase0-evidence/(§9), since feat(evals): adopt claude plugin eval as the skill-level eval layer — Phase 0 validates enablement, graders, ablation, sandbox hooks, and cost before any case is authored #987 forbids committing themCloses #987
Correction (loop iteration 1)
QA caught a real defect in the first push: §4b quoted a
Writerequest from one run spliced to a success result from a different run, and concluded the sandbox "silently rewrote" the path and reported success. The traces say otherwise — the four runs that issued that write gotis_error: true/ "Permission to use Write has been denied…" from the permission layer, upstream of hooks, so the probe never tested hooks at all.Rather than downgrade P0.4 to inconclusive, the probe was redesigned to remove the confound (an in-workspace write the permission layer grants, under a non-existent
SEQUANT_WORKTREE, whichpre-tool.sh:1029blocks unconditionally) and re-run for $0.0886. The write succeeded inside the sandbox; the identical input on the host returnsHOOK_BLOCKEDexit 2. P0.4's hook half is now a measured KILL, with the uninstalled-vs-env-starved mechanism named as unseparated rather than glossed.Also corrected: §3's grader table no longer presents itself as an exhaustive enumeration.
Follow-up (exec re-dispatch)
Closed the last soft spot QA flagged on AC-3. The grader list was previously the observed-working set, because neither source the AC names enumerates the vocabulary. The CLI does not ship a schema file but it validates against one, and its rejection message enumerates the accepted set — recovered from the binary:
That turned a bounded-honesty caveat into a real enumeration, and surfaced two things Phase 0 had missed and #993 will want:
tool_order— a fourth deterministic grader type, never exercised here. Natural fit for "did/qaread the diff before writing its verdict?"regex.matchacceptsnot_containsandcount:N, not justcontains. feat(evals): first threeclaude plugin evalcases, null-run canary, fixture_commit gate (#987 P1) #993's "the exfiltration URL appears in no executed command" grader is a directnot_containsassertion rather than a workaround.A+ pass (runner, 2026-09-07, commit 1ea869c)
Addresses the QA round-2 notes so this PR can reach READY_FOR_MERGE (docs only):
CLAUDE_HOOKS_DISABLED(the hook's early exit) as the third mechanism that would produce the observed silence, alongside the uninstalled-hook and env-starvation explanations.nameis schema-required on every grader but injected by the CLI from the grader's filename, which is why the Shape column omits it.stringsenumeration; the host-side hook control) versus what must be re-bought at §8's costs.AC-8 note for the record: 8/8 eval-running commands carry
--max-cost-usd; the two shown non-running commands (plugin eval --help,plugin eval init --bare) spawn no agent and cannot spend, so no cap was added to them.