Repository navigation
Commit 7c55519
test(context-budget): retire audit and setup evals.json into native cases (#13753)
Refs: #8635
## Summary
Retires context-budget's two legacy skill-creator `evals.json` files
(audit 9 cases, setup 6) into native `claude plugin eval` cases. This is
one plugin of #8635's conversion.
- 9 legacy cases become new cases: audit 1, 2, 3, 5, 6, 7 and 9, and
setup 2 and 5.
- 2 were already covered and gain graders: audit 4 and 8.
- Held, recorded on #8635's Held cases with verbatim legacy text: setup
1, 3, 4 and 6. Their native cases were built and smoked, but setup's SDK
probe reads the plugin-data directory, which an eval run denies, so
their runs read INVALID. Restored by #13751.
- Both `evals.json` files are deleted. No skill text changes.
## Fix
- **New audit cases** (no tool grant; each prompt gives the engine
record as data, since an eval run cannot measure; tagged `narration`,
`no-network`): `au-baseline-report-from-record` (audit 1),
`au-engine-error-relays-remediation` (2), `au-deferred-only-saving` (3),
`au-bare-apply-prints-config` (5), `au-unused-plugins-routes-doctor`
(6), `au-aside-apply-names-fix` (7), `au-fix-one-lever-at-a-time` (9).
- **New setup cases** (`--allow-tools Bash` for the pre-computed probe
lines): `su-node-absent-both-dependents` (setup 2),
`su-two-clis-no-measure` (5).
- **Already covered, extended:** audit 4 by
`au-attribution-record-report` (+ `listing-rule-explained`); audit 8 by
`au-fix-user-global-print-only` (+ `classifier-reason`). Both gain the
`no-network` tag.
- Every deterministic grader has pass and near-miss fail samples. Patch
fragment for `context-budget`.
## Verification
- **Offline at the head:** `validate-cases.py
plugins/context-budget/evals` 0 FAIL (9 WARN: "allowed_tools lists
Bash/Edit/Write, which a case cannot grant itself", and the existing
`ck-node-missing-no-install` llm-samples warning); `check-matchers.py`
ok; `check-vocabulary.py`, `typos`, `editorconfig-checker`,
`check-purged-em-dashes.sh` clean; `scripts/check-affected.sh` 14
passed, 2 skipped. Each grader changed after smoke 1 was tested under
JavaScript against its samples and the real replies.
- **Smokes:** with-plugin only, Sonnet 5.5, Opus judge, Claude Code
2.1.319, real node first on PATH.
- Smoke 1 at a6660e4, 1 run: audit pass (8 cases, no grant)
**VALID**, 1.51 USD; setup pass (6 cases, `--allow-tools Bash`) INVALID
from SDK-probe denials, 1.31 USD; `au-fix-user-global-print-only`
(`--allow-tools Edit Write`) **VALID** 1.00, 0.15 USD.
- Smoke 2 at a6660e4: the 6 new setup cases and the existing
`su-check-report`, 3 runs, `--allow-tools Bash`, 4.51 USD. INVALID
overall; every counted denial is setup check's probe of
`${CLAUDE_PLUGIN_DATA}/sdk` (setup SKILL.md 70-71) inside a compound
command. Per case, VALID runs: `su-node-absent-both-dependents` 3 of 3,
`su-two-clis-no-measure` 3 of 3 (its denials are warnings for a
no-trigger control), the 4 held cases 0 to 2 of 3, `su-check-report` (on
main) 0 of 3.
- Smoke 3 at 52141af: `au-deferred-only-saving`, 3 runs, 0.41 USD.
**VALID**.
- **Per case kept here:**
- 1.00: `au-aside-apply-names-fix`, `au-attribution-record-report`,
`au-baseline-report-from-record`, `au-engine-error-relays-remediation`,
`au-unused-plugins-routes-doctor`, `au-fix-user-global-print-only`
(smoke 1).
- `au-deferred-only-saving` 0.75, 1.00, 1.00 (smoke 3; 1.00 ×3 on the
final `no-deferred-free`, re-graded offline).
- `au-bare-apply-prints-config` 0.86 and `au-fix-one-lever-at-a-time`
0.67 (smoke 1); `su-node-absent-both-dependents` 0.86 ×3 and
`su-two-clis-no-measure` 1.00, 0.89, 1.00 (smoke 2). Each loses only the
skill-miss graders listed under Remaining.
- **Graders refit after data**, each disclosed with its strict result:
- `headline-unchanged` (`au-deferred-only-saving`): the forward
alternative took only singular `does(?:n't|n’t| not)
(?:move|change|drop|budge)`. Prompted by "the `/context` headline don't
change". Now `do(?:es)?(?:n't|n’t| not)`; the reverse alternative is
unchanged, so "The prefix numbers don't change, but the headline drops
by 3,000." still fails. Source: legacy audit 3 "The headline-vs-request
distinction is stated"; audit SKILL.md 254-255. Strict: 0 of 1 (smoke
1). After: 3 of 3 (smoke 3).
- `no-deferred-free` (`au-deferred-only-saving`): was `(?<!not )(?<!n't
)(?<!n’t )(?<!never )\b(?:already (?:saved|handled|free)|cost[-
]free|free of charge)\b`, which caught a negation only right before
"already". Prompted by "**Don't count it as already saved:** the 3000
only becomes a saving once the deny is applied." Now the phrase counts
only when no `not`, `never` or `n't` comes earlier in the same sentence
or clause, with fail samples for a negation in an earlier sentence or
across a semicolon. Source: legacy audit 3 "The deferred bucket is
described as real recurring request weight, not as already handled".
Strict: 2 of 3 (smoke 3). After: 3 of 3, re-graded offline on the same
replies.
- The held cases' refits (`status-table-all-rows`,
`reads-audit-prereqs`) leave with them.
- The without-plugin arm was not run, so this PR claims no delta.
## Remaining
- #8635 stays open for the other plugins' legacy `evals.json` files.
- Held, recorded on #8635's Held cases with verbatim legacy text: setup
1, 3, 4 and 6 (restored by #13751).
- Found, not fixed here (on #8635's skill-miss list):
- audit, bare (no `fix`), offered "if you approve, I'll write the file
with `Write`" (`operator-applies`; audit SKILL.md 359-361, legacy audit
5 "the operator would apply").
- audit `fix` asked for three levers printed a three-tool deny array and
offered to write all three in one edit (`no-multi-lever-deny`,
`attribution-reason`; audit SKILL.md 401-402, legacy audit 9 "refusing
the batch").
- setup with node absent never calls node the one hard prerequisite
(`hard-prerequisite`, 0 of 4; setup SKILL.md 48).
- setup with two CLIs ran `measure.mjs snapshot` itself
(`no-engine-run`, 1 of 4 runs; setup SKILL.md 137, legacy setup 5
"Declines to run the measurement"); and in 1 of 3 smoke-2 runs did not
route the measurement to the audit (`routes-to-audit`, reported as
measured, not triaged).
- In the held cases: setup on the headless toggle names neither the
reconfiguration convention nor the full scope rule (SKILL.md 104-106,
117-122); asked to install the SDK it gave one caveat of two and no
structured-error note (SKILL.md 72-74), and one run ran `npm install`.
## Follow-ups
- Pre-existing (advisory): the existing `su-check-report` on main reads
INVALID in 3 of 3 runs from the same SDK probe; #13751 covers it.
- Pre-existing (advisory): `ck-node-missing-no-install/scaffold.sh`
copies out of the plugin directory with `cp -R`, which an eval run can
deny.
## Related
- #13751
(SDK probe and restore of the held cases),
#13729
(codebase-health)
<!-- session: lane-1 -->
🤖 Generated with [Claude Code](https://claude.com/claude-code)
---------
Co-authored-by: Claude Opus 5.5 <[email protected]>1 parent b7a82f0 commit 7c55519
82 files changed
Lines changed: 2117 additions & 210 deletions
File tree
- .changes/context-budget
- plugins/context-budget
- evals
- au-aside-apply-names-fix
- samples
- au-attribution-record-report
- samples
- au-bare-apply-prints-config
- samples
- au-baseline-report-from-record
- samples
- au-deferred-only-saving
- samples
- au-engine-error-relays-remediation
- samples
- au-fix-one-lever-at-a-time
- samples
- au-fix-user-global-print-only
- samples
- au-unused-plugins-routes-doctor
- samples
- su-node-absent-both-dependents
- samples
- su-two-clis-no-measure
- samples
- skills
- audit/evals
- setup/evals
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
24 | 29 | | |
25 | 30 | | |
26 | 31 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
3 | | - | |
| 2 | + | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
| 8 | + | |
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| |||
0 commit comments