Repository navigation
feat(scenarios): skill-evals runs the published skills' eval cases on a with-skill and a no-skill arm - #34841
Conversation
Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WGufzg1NmbJpZhtiWQkTir
Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WGufzg1NmbJpZhtiWQkTir
Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WGufzg1NmbJpZhtiWQkTir
…, and regrades recorded rounds A user-invocable: false bundle (objectui) is absent from the init line's skills list while the model can launch it, so the with-skill arm check read every such turn as invalid. Its turns are graded now, with the evidence named; --regrade applies the current rules to a recorded round. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WGufzg1NmbJpZhtiWQkTir
📓 Docs Drift CheckThis PR changes 1 package(s): 21 hand-written doc(s) name something this change touched — list omitted above 15 rows. Re-derive on the tree named below: ⛔ 7 release-owned page(s) also affected — read-only, see AGENTS.md Documentation Guardrails. What this run could not see
Coarse fallback — 1 page(s) merely mention a changed package (the pre-#9192 predicate, kept for the deliberately-wide backstop): Which tree this was computed onThis run read A worktree cut from an older # while this PR is open — GitHub drops the merge commit once it closes
git fetch origin aa18d08ed2bbedafc2ea6b82aafba95167544c42 && git checkout aa18d08ed2bbedafc2ea6b82aafba95167544c42
# afterwards, rebuild it from the two parents, which stay fetchable
git fetch origin fc5913e117405814e5c40e4e9bbe6b2da7420048 bd40928d9b6a68c34b831329fb941ada16eed291 && git checkout -B drift-repro fc5913e117405814e5c40e4e9bbe6b2da7420048 && git merge --no-ff bd40928d9b6a68c34b831329fb941ada16eed291
node scripts/docs-audit/affected-docs.mjs --json fc5913e117405814e5c40e4e9bbe6b2da7420048
|
…HOR_LEDGER The new packages/qa/scenarios/src/skill-evals/self-test.ts declares runSelfTest, a compound self-test name the watch-hint masker anchors on. It is a genuine --self-test battery (its row labels are the roster, reached only from the CLI's --self-test branch and the package suite), so it gets an accidental:false row; the docblock's TOTAL (35 -> 36) and GENUINE (24 -> 25) counts move with it, distinct spellings stay 29. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WGufzg1NmbJpZhtiWQkTir
|
repo:objectstack#3 · os-support-ai · session_01WGufzfWpJ96QY9T7d8DvFg L1: ACCEPT · 2026-11-17T14:05ZHead-sha: 29905cc 席位核对PR shape. Draft, base Scope vs claim. All 12 paths sit inside the amended claim:
Declaration.
There is no contract face, so no seat L2 is owed. Governed / size. Check-runs at 29905cc. 53 runs, every one Login guard. Arms. The arms' argv is identical except for the copied bundle:
The with-skill copy filters Verdicts.
Quota stop. The round stops at Docs made false? None. The README section is new and its cost and time figures are this PR's round (418/418, 56 min, 0.45 → 0.56). Nothing else documents a Must-fixNone. Should-fix
Under the current merge standard this gets fixed before landing. I'll take the delta read. Notes
Next: o3-F fixes S1, then the L1-c delta read. No seat L2 is owed, and o3-F lands after the delta. |
… the round Every run record now carries a hash of its case as run (prompt and both token lists). --regrade compares it with the case now: a changed or removed case is not regraded, its records are left as they are, and it is named apart from the pass rates; a record with no hash is regraded and counted as unhashed; a case added since the round is left out. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WGufzg1NmbJpZhtiWQkTir
…since the round Also types the expected_output hash pin through a SkillEvalCase so the package typecheck accepts it. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WGufzg1NmbJpZhtiWQkTir
The census prose read 324 matches as 290 bare plus 36 compound, which do not add up. Re-measured with compoundAnchorDecls over git ls-files at e2c2b8c (bare declarations counted by renaming selfTest to a probe name the anchor still matches): 330 matches, 294 bare, 36 compound over 29 spellings, 21 under ui/. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WGufzg1NmbJpZhtiWQkTir
|
repo:objectstack#3 · os-support-ai · session_01WGufzfWpJ96QY9T7d8DvFg L1: ACCEPT (delta) · 2026-11-17T15:32ZHead-sha: bd40928 席位核对Delta. Three commits, 7 files, +248/-29, all inside the claimed surface: Check-runs at bd40928. 57 runs, every one S1 (regrade against reworded cases): closed.
Choosing set-apart over refusing the whole regrade is the better option, because it keeps pre-#34789 rounds regradable without mixing in old answers. N1 (census prose): closed. 330 = 294 bare + 36 compound, 21 under The dev's carrier note. The bundle list and Must-fixNone. Should-fixNone. NotesNone new. Next: o3-F lands. No seat L2 is owed. A later push owes an L1-c delta read. |
|
repo:objectstack#3 · os-support-ai · session_01WGufzg1NmbJpZhtiWQkTir Landing · area o3-F · 2026-11-17T15:33Z
State change: ready for review + auto-merge (merge queue). Card #34764 is closed out by the area after merge; the eval.md charter line stays with the seat. |
Requested by Yibo Wang · project thread
repo:objectstack#3 · os-support-ai · session_01WGufzg1NmbJpZhtiWQkTir
Part of #34764 — this PR is the runner. The eval lane's charter line is the seat's own PR, after this one lands.
Clause-②: no
Metadata-protocol: none
维护者速读
@objectstack/scenarios里新增skill-evals运行器,只从仓库检出运行,不进发布的 bin 或 exports。它用订阅登录的 Claude Code 把已发布技能现成的 209 个评测用例逐条发给模型,每条跑两次,一次装上技能、一次不装,再按用例自带的 must_contain / must_not_contain 机械打分,写出每次的 JSON 记录和汇总。src/skill-evals/run.ts的verdictOf,判断两臂是否装对、怎么打分;②src/skill-evals/arms.ts,两臂的 argv 和临时目录(技能的evals/不拷进去);③src/skill-evals/cli.ts,登录守卫排在读取任何东西之前,以及--regrade:修复轮 2 起,每条记录带用例哈希,用例改过的不重新打分、单列在通过率之外(run.ts的regradeRecords)。pnpm --filter '@objectstack/scenarios^...' build && pnpm --filter @objectstack/scenarios skill-evals --dry-run。预期输出 11 个 bundle 和209 case(s) × 2 arms × 1 repeat(s) = 418 turn(s),外加一行 argv,不调用模型。What changes
packages/qa/scenarios/src/skill-evals/(new, unpublished).pnpm --filter @objectstack/scenarios skill-evalsadds onescriptsentry. The tsup entries,binandexportsare unchanged.cases.tsreadsskills/BUNDLE/evals/*.jsonstrictly. A case that does not parse, uses the wrong types or asserts nothing is a located refusal, never a pass. It also reads which bundles setuser-invocable: false.grade.ts: pass = everymust_containpresent and nomust_not_contain, as literal case-sensitive substrings of the answer (the result line's text).arms.ts: one fresh temp dir per turn. The with-skill arm gets.claude/skills/BUNDLE/copied withoutevals/, and the no-skill arm gets nothing. Both arms run--setting-sources project --tools Read,Glob,Grep,Skill --allowedTools Skill, an empty--mcp-configwith--strict-mcp-config, and--no-session-persistence.run.ts: the preflight importssubscriptionOnlyEnv/assertSubscriptionLogin/effortLevelsFromHelpfromrunner/driver.ts,runTurnProcessandparseStreamJson(none copied). It also judges each turn:pass/fail/invalid(wrong arm) /error(no answer). The round stops on the rate-limit window (--max-utilization, default 0.9, exit 3).summary.ts: per bundle, each arm's pass rate, the with-skill failures and the cases where no-skill ≥ with-skill. Per case, both arms. Written asround.json,summary.mdandsummary.github.md(angle brackets spelled out for a GitHub body).self-test.ts: 21 table rows with a pinned roster, a floor and a verdict handshake, per AGENTS.md "Writing a--self-test".cli.ts:--skills a,b,--skills-from workspace|VERSION(packs@objectstack/skills@VERSIONfrom npm),--repeats,--concurrency,--max-turns,--case-timeout,--max-utilization,--model,--effort,--bin,--out(default under the git-ignoreddocs/qa/platform-checklist/runs/),--dry-run,--regrade DIR,--self-test.runner/driver.tsandrunner/cli.tsare not edited.@objectstack/scenariospatch. The README is infiles[], so its text ships. Nothing else a consumer installs changes.Tests
test/skill-evals/skill-evals.test.ts, 26 tests. No model and no network; a turn is an injected function or a stand-inclaudescript.ANTHROPIC_API_KEYset: from the preflight, and from the command line, where the stand-in is never asked a turn and no--outis created.ANTHROPIC_AUTH_TOKEN, anapi_keylogin and no login are refused too.--self-testpasses with the real grader. It reds and never reaches its verdict when given a broken grader that passes everything, or an empty catalog.evals/, or empty), the prompt on stdin, and noANTHROPIC_API_KEYorCLAUDE_CODE_EFFORT_LEVELin its environment. Its directory is removed afterwards.user-invocable: falsehandling, and--regrade.Readings at head 9de1cbd
pnpm --filter @objectstack/scenarios typecheck && pnpm --filter @objectstack/scenarios exec vitest run --maxWorkers=2, underos-verify-lock:Test Files 36 passed (36),Tests 1013 passed (1013),VERDICT command-exit 0.pnpm --filter @objectstack/scenarios skill-evals --self-test:✓ skill-evals self-test: 20 rows pass.skill-evals --dry-run: 11 bundles,209 case(s) × 2 arms × 1 repeat(s) = 418 turn(s).scripts/ablation-replace.mjs). The live preflight call incli.tswas replaced with a constant login. Anchor x1 → x0, blob8017e60d→e1b6bbe8. The CLI refusal test went red (1 failed | 18 passed (19)). Restored to blob8017e60d= HEAD, andgit diff HEADis empty.Acceptance notes
--concurrency 4, 56.1 min, all 418 ran, servedclaude-opus-5-5on every turn. Notional cost 71.24 USD; seven-day utilization 0.45 → 0.56. Result: with-skill 144/209 (69%), no-skill 20/209 (10%). 65 cases fail on the with-skill arm. The full per-bundle and per-case scores are in theeval-runrecord linked from qa: a weekly runner for the published skills' existing eval cases (subscription login, with- and no-skill arms), and the eval lane's weekly line #34764.objectuisetsuser-invocable: false. Claude Code 2.1.326 leaves such a skill out of the init line'sskillslist, but the model can still launch it. The first arm check therefore read all 34objectuiwith-skill turns asinvalid, although 33 of them launchedobjectui. The check now grades them and recordsarmEvidence(launched/not-shown).--regradere-drew those 34 verdicts from the recorded answers, asking no model. The turns ran atadf4081a, andarms.ts,grade.tsand the turn-running lines are byte-identical at head.no-skill ≥ with-skillcounts cases where both arms fail as well. This round: 2 cases where no-skill > with-skill, 18 where both pass, 63 where both fail.~/.claude/skills/is absent from a turn's init line under--setting-sources project. A read outside the turn's directory is refused in-p(requested permissions to read … but you haven't granted it yet). The published@objectstack/skills@18.5.0shipsdist/skills/BUNDLE/evals/(29 tarball entries matchevals/), so--skills-from VERSIONreads that version's cases too.Verification
node scripts/pm/dispatch-gates.mjs --commands, 75 commands at head) were all run locally.dispatch-gates --ran:75 derived famil(ies) accounted for — 74 run, 1 NOT-MEASURED. The one isnode scripts/check-plugin-teardown-shape.mjs --self-test(exit 3, PREREQUISITE NOT MET: its fixture needs an unshallowed clone; it is a checker self-test and does not read this diff).pnpm --filter @objectstack/scenarios build,gradeAnsweris in 0 files underdist/(control:assertSubscriptionLoginis in 8).node scripts/pm/overlap-check.mjsbefore each push:VERDICT clean exit 0(origin/main, feat(scenarios): an opt-in skills directory for ask turns, and dataset questions on two open cards #34808, chore: version packages #33849).Fix round 2 (L1 S1, note N1)
--regradegrades an old answer only against the case that ran.caseHash: a sha256 of the case's prompt and both token lists, as the turn ran them.expected_outputis left out because it is neither sent nor graded.--regrade, each record's hash is compared with the case now (caseDrift:same/changed/unhashed).regradeRecordsinrun.tsthen sorts the cases:M case(s) changed since the round, set apart: not regraded and out of every pass rate below: KEYS.regradeRecorditself also refuses a changed case.unhashed, and the header says nothing shows those cases are the ones that ran.round.jsonregradedgainsunhashed,setApart: { changed, removed }andadded. The planned set survives a second regrade.scripts/pm/dispatch-gates.data.mjswas re-measured ate2c2b8c2withcompoundAnchorDeclsovergit ls-files(bare declarations counted by renamingselfTestto a probe name the anchor still matches): 330 matches, 294 bare, 36 compound over 29 spellings, 21 underui/. The compound half matches the table (36 rows). The prose is comment-only.caseHashand the set-apart rule, under Grading. The changeset is unchanged, since its sentence still describes the README.Readings at head bd40928
pnpm --filter @objectstack/scenarios typecheckandvitest run --maxWorkers=2 test/skill-evals/skill-evals.test.ts, underos-verify-lock:Tests 26 passed (26),VERDICT command-exit 0. The whole package afterpnpm --filter @objectstack/scenarios build:Test Files 36 passed (36),Tests 1017 passed (1017),VERDICT command-exit 0.skill-evals --self-test:✓ skill-evals self-test: 21 rows pass.The new row isregrade: a case changed since the round → SET APART, never graded against the new text.expected_outputdoes not move it). An unchanged case regrades normally, a changed one is set apart and refused byregradeRecord, and an unhashed record is regraded and counted. A removed case is set apart and an added one is left out. The command runs on a fixture round: the reworded case's record bytes are unchanged, the summary names it, and it is out of the totals.scripts/ablation-replace.mjs).caseDrift's comparisonreturn rec.caseHash === hashCase(c) ? 'same' : 'changed';was replaced withreturn 'same';. Anchor x1 → x0, blobb48c9627→10e64fff. The result wasTests 4 failed | 22 passed (26): both regrade pins, the self-test row, and the empty-catalog self-test count. Restored to blobb48c9627= HEAD, andgit diff HEADis empty.--regradeon a scratch copy of the 2026-11-17 regraded round, with no model asked:418 record(s) carry no case hash … regraded against the cases as they are now. The setApart and added lists are empty, and the summary is identical to the recorded one (with-skill 144/209, no-skill 20/209).pnpm check:pm-dispatch-gates(because the ledger file was touched):EXIT=0,✓ every compound self-test NAME the anchor matches is classified in COMPOUND_ANCHOR_LEDGER, and the fast tier2217 cases pass. The slow tier is deferred to CI.node scripts/check-nul-bytes.mjs: OK.node scripts/pm/overlap-check.mjs:VERDICT clean exit 0(origin/main, fix(scenarios): asked-back no-figure ignores a count of the candidates and a year written alone #34882, chore: version packages #33849).--commandsset (121 over the whole PR change set) is left to CI.Generated by Claude Code