Repository navigation
Commit c3c0c30
feat(skills): scenario-eval internal skill for eval rounds and the eval-run record (#34006)
<!-- claude-projects-attribution: {"github_login":"os-steve"} -->
_Requested by **Steve** · [project
thread](https://claude.ai/code/project/chan_01FdL1XeUyvVNxLreh3F4Qi9?thread=cmsg_01FdL1XeUyvVNxLreh3F4Qi9J4aPx8N1Kyneqy3VTTtNSY)_
Fixes #33923
Clause-②: no
Metadata-protocol: none
## 维护者速读
- 改了什么:新增内部技能
`.claude/skills/scenario-eval/SKILL.md`(评测席跑一轮场景卡的方法:排卡、模型与 effort 配置、5
次重复与噪声、录制回放、`eval-run` 记录格式、发现去向);`lanes/eval.md` 改三处:产出加上场景卡照技能跑、立
`eval-run` 记录(其它评测仍每轮一份评分卡)、定时归本席自控、「不对外发布准确率数字」对场景卡记录豁免。
- 为什么改:你的令「技能应该进仓库,测试卡也应该进仓库,参考 qa」与 "objectstack 公开仓,像
qa-run";今天跑一轮的方法只在一个席位的笔记里,换席就没法重复或审计。
- 风险与回滚:只是内部 agent 文本,不发布、不碰代码;回滚 = revert 本 PR。
- 先看:`.claude/skills/scenario-eval/SKILL.md` §5(记录格式)与
§2(配置);`lanes/eval.md` 边界节两行(准确率数字的豁免只给场景卡记录,问数基线 ② 照旧不发)。
- 两分钟验证:`node scripts/pm/check-skill-line-ratchet.mjs`,预期 `lanes/eval.md
is 45 lines (ceiling 45; headroom 0)` 且退出 0。
- 需要你做的:无,席位落地(Tier S,席位跑达档复审后入队)。
## What changes
- New `.claude/skills/scenario-eval/SKILL.md` (`metadata.internal:
true`), modelled on `checklist-test`. It points at
`packages/qa/scenarios/README.md` for runner mechanics (flags, modes,
the cloud-session settings, grading) and copies none of them. Sections:
- §0 environment (subscription login, no API variables, dependencies
built first, `claude --version` recorded, the runner sha pinned for the
whole round);
- §1 round plan (control cards every round, read off the card files by
`tier`; starter cards scratch-only, one per command under the 2-hour
background cap, at most two in parallel; `--packages published` with
`--create-version` pinned across the round);
- §2 configs (tracked = the hosted default, today `--model haiku
--effort medium`, current value in the seat post; reference = `--model
opus --effort low`; `--model` and `--effort` always explicit;
served-model mismatches kept out of the mean);
- §3 repetitions and noise (5 per config for a model or effort decision;
a single run's Ask moves about ±4 of 58 on the control cards, so one
round reports a trend; mean and min–max, method stated; no silent
re-rolls or dropped outliers);
- §4 recording and replay, with a command block a fresh session can run
for a control-card round;
- §5 the `eval-run` record: title shape, label `eval-run` only, body
sections Environment / Scope / Results / Reading / Findings filed from
this run / Records, writes through the pm-dispatch write gate, close
when every finding has a destination;
- §6 findings routing (grader misreads to the scorer owner, product
defects through the filing gate, skill text as a `domain:skills`
finding, leaks and any security lead only per
`references/security-findings.md`, pointer only).
- `.claude/skills/pm-dispatch/references/lanes/eval.md`:
- 〈座位与唤醒〉: the "Routines are set by the maintainer; the seat never
creates or changes them" line is replaced by the maintainer's order that
the seat runs its own schedule (2026-11-14 「你自己控制定时可以吗?」), merged with
the suggested cadence line. The words are quoted on card #33923 (its
body, filed by the eval seat) from the eval seat's thread, 2026-11-14;
the seat reads them as a hand-over to their addressee, eval#1.
- 〈产出〉: one line now reads 「场景卡每轮照 `scenario-eval` 跑并立 `eval-run`
记录;他项每轮一份评分卡;皆附上轮趋势对比。」 It names the skill and the record and keeps
main's general rule (「每轮一份评分卡,附与上一轮的趋势对比」) for every other scope, so
〈边界〉's 「评分卡」 keeps its definition. Nothing in 〈产出〉 is deleted (fix round
1, M1).
- 〈边界〉: 「⛔ 不对外发布准确率数字」 now exempts scenario-card `eval-run` records only
(ruling on the eval seat's decision card "eval 测试记录卡放哪个仓?": "objectstack
公开仓,像 qa-run"); the ask-accuracy baseline ② keeps the line.
## Why
The qa seat runs from a repository skill and leaves one `qa-run` record
per round; the eval seat had only its charter, and its round method
lived in one seat's notes. The maintainer directed 「技能应该进仓库,测试卡也应该进仓库,参考
qa」.
## Acceptance notes
- **Premise drift, card items 2 and 4.** The card and its dispatch said
effort goes by `CLAUDE_CODE_EFFORT_LEVEL` until the runner's effort flag
lands, and that replay cannot score operations until the replay fix
lands. Both landed before this PR: #33739 (closed by #33767, `--effort`
/ `--author-effort` / `--ask-effort`) and #33737 (closed by #33764,
replay re-sends recorded writes). Read on origin/main `b8ac0e24`:
`packages/qa/scenarios/src/runner/cli.ts` documents the three effort
flags, and the package README's Driver bullet says a replay re-sends
each turn's recorded writes. So the skill teaches the landed behaviour:
always pass `--effort`, and replay re-scores Build, Ask and operations,
with a write that cannot be re-sent read as not measured. It cites
neither card as open.
- **How the first record, #33920, differs from the skill's shape.** Its
sections and title match the skill's (Environment / Scope / Results /
Reading / Findings filed / Records; `Eval run · SCOPE × N configs × R
reps · SHA8 · DATE`). Where it differs:
1. effort was set by `CLAUDE_CODE_EFFORT_LEVEL`; the skill requires
`--effort` on the command line;
2. its Environment names no `claude --version`;
3. its Scope gives no per-command exit codes or not-measured halves. It
says "all exit 0", which covers the first; the second is not stated;
4. it does not say how the means were computed (pooled counts or the
mean of per-rep percentages);
5. it was closed three minutes after filing. Under the skill that is
right only when every finding already has a destination, which its
Findings section shows;
6. its Results heading carries a suffix, and its Build column has no
min–max;
7. one of its configs ran at the CLI default effort, which §2 now
forbids (`--effort` is always explicit).
- **No ceiling row for the new skill.** `check:pm-skill-ratchet` covers
an enumerated map, not a glob, and no derived gate named a row for a new
`.claude/skills/*` directory, so none was added (file surface: only rows
a gate names). The new file is 127 lines; several prose lines run past
120 bytes, which only ceilinged files are held to. Adding a ceiling row
is the seat's call.
- `lanes/eval.md` stays at its 45-line ceiling with headroom 0. What was
deleted: (a) 「节奏由维护者在 Routines 设定;⛔ 本席不自建、不改频率」, reversed by the
schedule order; (b) the cadence line as a separate line, its content
merged into the schedule line. What was kept: 〈产出〉's general scorecard
rule (see above). The one line this PR adds (the ask-accuracy baseline
line in 〈边界〉) is paid for by (b). No line was gained by re-wrapping.
- **Fix round 1 (contract review 6897354155).** M1: the 〈产出〉 line above.
S2: §5 quotes the record-location ruling verbatim ("objectstack 公开仓,像
qa-run") and keeps 「带全分」 outside the quote as the derived rule. S1: §5
says the triage sweeps do not yet know the `eval-run` label (their
exclusion lists name `qa-run` only), so until they do the record closes
in the round it is filed, or triage is told it is a record; the sweep
change itself is the seat's follow-up card. S3: the schedule words'
source is stated above. N1: the §4 block marks its control-card list as
the list at the time of writing. N4: a security lead's Findings line is
the fixed line of `security-findings.md` §4, nothing more (and §6's row
says the same). N2: differences 6 and 7 above. N3 not taken (no line to
spare in `eval.md`).
- Forced test edits: none.
## Verification
At head `7d9600e4` (fix round 1), in the card worktree:
- `node scripts/pm/dispatch-gates.mjs --commands --repo
objectstack-ai/objectstack` derived 17 commands. All 17 ran and exited
0. The run reconciles: `--ran` reports "17 derived famil(ies) accounted
for — 17 run, 0 NOT-MEASURED (a DERIVED zero — all 17 recorded an exit
code and none of them is 3)".
- On the first head `3d9dedb1`, `check:doc-formula-expressions` first
exited 3 (prerequisite not met: `@objectstack/lint` and
`@objectstack/formula` not built). After `pnpm exec turbo run build
--filter=@objectstack/formula --filter=@objectstack/lint` under
`os-verify-lock` (VERDICT command-exit 0), it exited 0.
- `pnpm check:pm-skill-ratchet` exited 0 on both heads: `lanes/eval.md
is 45 lines (ceiling 45; headroom 0)`. `pnpm check:pm-skill-id-lint`,
`pnpm check:skill-frame-sync`, `pnpm check:nul-bytes` and `pnpm
check:pm-governed-merges` also exited 0.
- `pnpm --filter create-objectstack exec vitest run --maxWorkers=2
src/template-consistency.test.ts` passed: Test Files 1 passed (1), Tests
41 passed (41). That covers the `metadata.internal` marker on every
SKILL.md outside `skills/`.
- No changeset: the diff is `.claude/**` only and publishes nothing
(`skip-changeset`).
- Governed surface, Tier S (`.claude/**`). This PR stays draft until the
owning seat's contract-review record.
<!-- signed: domain:skills#2 · os-steve ·
session_01ADHkmSzqTCJc8NsdLvgbyw -->
---------
Co-authored-by: Claude <noreply@anthropic.com>1 parent 9db729f commit c3c0c30
2 files changed
Lines changed: 135 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
8 | | - | |
| 7 | + | |
9 | 8 | | |
10 | 9 | | |
11 | 10 | | |
| |||
24 | 23 | | |
25 | 24 | | |
26 | 25 | | |
27 | | - | |
| 26 | + | |
28 | 27 | | |
29 | 28 | | |
30 | 29 | | |
31 | 30 | | |
32 | 31 | | |
33 | 32 | | |
34 | 33 | | |
35 | | - | |
| 34 | + | |
| 35 | + | |
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
| |||
| 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 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
0 commit comments