Skip to content

feat(qa): skill-evals --case runs the named eval cases alone; any-of prose in the cli header and README - #38006

Merged
objectstack-fleet[bot] merged 3 commits into
mainfrom
claude/area-o1B-37980
Nov 27, 2026
Merged

objectstack-fleet[bot] merged 3 commits into
mainfrom
claude/area-o1B-37980

Conversation

@objectstack-fleet

Copy link
Copy Markdown
Contributor

Requested by Elon · project thread

Fixes #37980

Clause-②: no
Metadata-protocol: none

维护者速读

  • 用户能看到什么变化:跑技能评测的人现在可以用一个新选项只跑指定的几道题,两组对照照常跑;平台用户无感。
  • 为什么做:技能评测验收的后续收尾,以前单题验收只能靠一段没提交的临时脚本,审核看不到驱动代码。
  • 出错会怎样:只影响在仓库里手动跑评测的人,最坏是选题报错或计划不对;可以直接撤回,不碰任何技能文字和题目。
  • 要你做什么:无。

What changes

Flag spelling: --case KEY[,KEY…], where KEY is the case key the summary and every run record already print, BUNDLE/FILE_STEM#ID (e.g. objectstack-ai/skills-tools-knowledge#6). Not BUNDLE:ID: ids repeat across a bundle's eval files in 10 of the 14 bundles on main (objectstack-data has three files each starting at id 1), so a bundle plus an id does not name one case. The flag repeats and de-duplicates; the plan keeps catalog order.

  • Plan: only the named cases, through the unchanged planRound, so a behaviour case runs on both arms and a trigger case on the with-skill arm only.
  • Refusals, located (selectCases in cases.ts): an unknown bundle names the catalog's bundles; a known bundle with no such eval file names the bundle's eval files; a known file with no such id names that file's ids; a malformed key is refused at parse time. Refused beside --regrade and --self-test (same shape as --triggers-only's refusals).
  • With --skills: every named case must belong to a --skills bundle (otherwise refused, naming the --skills list); --skills keeps its other job, the competing set a trigger turn installs. Without --skills, a trigger turn installs every bundle, as in a whole round, so a single-case trigger round measures the same conditions the full round does.
  • With --triggers-only: refused. The keys already say which cases run, and a named trigger case already runs on the with-skill arm alone.
  • round.json (additive only): scope.selectedCases: string[] (the keys, catalog order), present only on a --case round. scope.arms on a --case round lists the arms its jobs actually use (with-skill alone when every named case is a trigger case); skills.allBundles is false on a --case round. The summary title names the cases and a header line lists the keys. --regrade DIR keeps the scope through a new pure roundCatalogCases (which also carries the existing --triggers-only narrowing), so the rest of a bundle is not reported as "added since the round".
  • Prose (N4): the cli.ts header names must_contain / must_contain_any / must_not_contain and documents --case; the README gets a --case bullet and example; the README's unmet-group form now reads (none of: `a` / `b`), each token in a code span, as summary.ts renders it (the same spelling fix in that file's code comment).

No eval file and no skill text changes. One changeset, @objectstack/scenarios patch.

Tests

skill-evals --self-test on c6ffc0b: 44 rows pass (four new rows, roster floor 40 → 44)

New rows:

  • select: --case plans exactly the named cases, a behaviour case on both arms and a trigger case on the with-skill arm
  • select: --case naming an unknown bundle, eval file or id, or a bundle --skills leaves out → REFUSED with its location
  • flags: --case beside --regrade, --self-test or --triggers-only, or a key not shaped BUNDLE/FILE_STEM#ID → REFUSED
  • regrade: a --case round regrades at its named cases; the rest of their bundles are not "added since"
✓ skill-evals self-test: 44 rows pass.
os-verify-lock: VERDICT command-exit 0
Package typecheck + tests on c6ffc0b

pnpm --filter @objectstack/scenarios typecheck exit 0; pnpm --filter @objectstack/scenarios test (after building the @objectstack/scenarios^... closure and the package):

 Test Files  45 passed (45)
      Tests  1399 passed (1399)
os-verify-lock: VERDICT command-exit 0
Ablation: the filter broken, the self-test goes red

node scripts/ablation-replace.mjs on cases.ts, selectCases' return changed to also keep every trigger case of the selection:

ablation-replace: ok mutation landed: anchor 1 -> 0, blob 1551cfbb5730 -> e8d328f6ead4
  ✗ select: --case plans exactly the named cases, a behaviour case on both arms and a trigger case on the with-skill arm: --case demo-skill/demo#2,demo-skill/demo#1 planned [demo-skill/demo#1:with-skill,demo-skill/demo#1:no-skill,demo-skill/demo#2:with-skill,demo-skill/demo#3:with-skill], expected [demo-skill/demo#1:with-skill,demo-skill/demo#1:no-skill,demo-skill/demo#2:with-skill]; beside --skills [...]
✗ skill-evals self-test: 1 failure(s) (rows and floor).
✗ skill-evals self-test: it returned without reaching its verdict, so no success line was printed. ...
ablation-replace: command exited 1
ablation-replace: ok restored: blob == HEAD (1551cfbb5730) and `git diff HEAD` is empty

Acceptance notes

  • The unreleased changeset from the any-of PR (.changeset/37928-skill-evals-any-of.md) still says the summary prints (none of: a / b). It is outside this card's file surface (one new changeset), so it is left as is; it compiles into the scenarios CHANGELOG at the next release.

Verification

Read first (by risk): packages/qa/scenarios/src/skill-evals/cli.ts (the main() hunk where selectCases narrows selectBundles' answer, and the scope construction), packages/qa/scenarios/src/skill-evals/cases.ts (selectCases), packages/qa/scenarios/src/skill-evals/self-test.ts (the four new rows).

Two-minute check: pnpm --filter @objectstack/scenarios skill-evals --dry-run --case objectstack-ai/skills-tools-knowledge#6 --repeats 10. Expect one bundle line, 1 behaviour case(s) × 2 arms, × 10 = 20 turn(s), and the --case line naming that one key.

Dry-run output, one behaviour case (c6ffc0b)
$ pnpm --filter @objectstack/scenarios skill-evals --dry-run --case objectstack-ai/skills-tools-knowledge#6 --repeats 10
skills: workspace skills/ (/home/user/objectstack-issue-37980/skills)
  objectstack-ai: 1 case(s)
1 behaviour case(s) × 2 arms, × 10 = 20 turn(s), 2 at once
--case: 1 named case(s) alone, of the 370 in the catalog: objectstack-ai/skills-tools-knowledge#6
each turn: a fresh directory holding the case's files; with-skill also holds .claude/skills/BUNDLE/ (no evals/), no-skill no skill
argv (prompt on stdin): claude -p --output-format stream-json --verbose --max-turns 16 --setting-sources project --tools Read,Glob,Grep,Skill --allowedTools Skill --mcp-config TURN_DIR/mcp.json --strict-mcp-config --no-session-persistence
dry run: no login read, no model called, nothing written
Dry-run output, a behaviour and a trigger case beside --skills (c6ffc0b)
$ pnpm --filter @objectstack/scenarios skill-evals --dry-run --skills objectstack-query,objectstack-ask --case objectstack-query/triggers#1,objectstack-query/filters-pagination-search#3
skills: workspace skills/ (/home/user/objectstack-issue-37980/skills)
  objectstack-query: 2 case(s)
  objectstack-ask: no case selected; a competitor in every trigger turn
1 behaviour case(s) × 2 arms + 1 trigger case(s) × the with-skill arm, × 1 = 3 turn(s), 2 at once
--case: 2 named case(s) alone, of the 49 the --skills bundles hold: objectstack-query/filters-pagination-search#3, objectstack-query/triggers#1
trigger cases: 1 should load the bundle, 0 should not
each turn: a fresh directory holding the case's files; with-skill also holds .claude/skills/BUNDLE/ (no evals/), no-skill no skill
each trigger turn installs 2 bundle(s) (--trigger-field selection): objectstack-query, objectstack-ask
argv (prompt on stdin): claude -p --output-format stream-json --verbose --max-turns 16 --setting-sources project --tools Read,Glob,Grep,Skill --allowedTools Skill --mcp-config TURN_DIR/mcp.json --strict-mcp-config --no-session-persistence
dry run: no login read, no model called, nothing written
Derived gate families, local (c6ffc0b)

node scripts/pm/dispatch-gates.mjs --ran with exit codes recorded: 56 derived, 55 run with exit 0, 1 NOT MEASURED: pnpm check:dual-build-cjs-loads exited 3 (PREREQUISITE NOT MET: it reads every package's dist/, and only the scenarios closure was built here). CI runs it in Lint & Repo Gates.


Generated by Claude Code

@github-actions github-actions Bot added size/m documentation Improvements or additions to documentation tooling Fix lands in tooling, not a product package — enters pm:queue only with Unblocks: or a named surface labels Nov 27, 2026
@github-actions

Copy link
Copy Markdown
Contributor

📓 Docs Drift Check

13 anchor(s) derived from 1 changed package(s); no hand-written page names any of them. ⚠️ 1 changed file(s) yielded no anchor (packages/qa/scenarios/README.md), so the pages documenting them are NOT COVERED by this run — this is not a clean bill of health for those files.

What this run could not see
  • 1 changed file(s) yielded no anchor (packages/qa/scenarios/README.md) — pages documenting those are invisible to this run
  • 1 name(s) were too generic to anchor anything (single lowercase words)
  • the SDK route bridge reached 69 of 252 client-bound route-ledger rows — the other 183 have no registrar path: tail to select them, so pages documenting THEIR client methods cannot appear above, on this or any run. Of those 183: 0 are remediable by widening that discovery convention (an in-repo file declares the path; the convention did not scan it); 59 are structural — on a ledger where NOT ONE row is declared in-repo, so no discovery change reaches them at any price; 124 are undecided (no in-repo declaration, on a ledger that has other in-repo registrars — absence and an unreadable spelling are not distinguishable here). The rows themselves: node scripts/docs-audit/affected-docs.mjs --bridge-coverage
  • a page that states a rule by its inputs shares no identifier with the emitter that implements the rule, so an emitter-only diff cannot list it — not on this run and not on any run. Measured on fix(driver-sql): emit varchar(maxLength) for a text field a declared index keys on #11430: content/docs/protocol/objectql/types.mdx documents the text-family column mapping by the ObjectQL type names it maps FROM (text / textarea / html) while the diff changed createColumn; it went unlisted, and it was the page that diff falsified, in four places. No shared token exists to detect this on, so a rule your change carries has to be re-read by hand in the pages that restate it.
  • a key NAME is not a key, so the hand re-read the line above prescribes can land on the wrong schema. The same spelling is authorable on one governed type and a [REMOVED] tombstone on another for each of active, aria, joins, objects, template, tools and version (censused on [finding] tools is a key on BOTH AgentSchema (tombstoned, dead) and SkillSchema (live, cloud-attested), so a name-based search attributes skill examples to the agent key — it produced a false stop-the-line alarm on PR #19059 #19093 over the liveness ledger's governed types, top-level keys); nothing in a search result distinguishes the two, so a grep hit on a LIVE example reads as evidence about the DEAD key. Measured on fix(spec): the agent.tools liveness row says dead — it claimed live on a key the schema tombstoned #19059: content/docs/ai/agents.mdx was reported as contradicting the agent.tools tombstone over its tools: example at :161, which is inside the defineSkill({ block opened at :155 — the page was already correct. Settle ownership by PARSING the value against both schemas, never by the name: that literal PASSES SkillSchema, and as an AgentSchema it FAILS at tools with the tombstone prescription. ⛔ These names are not the whole class — a key retired through a .strict() guidance map leaves no tombstone in the walked shape and none of them here (tool.category, live as AIToolDefinition.category).

Coarse fallback — 1 page(s) merely mention a changed package (the pre-#9192 predicate, kept for the deliberately-wide backstop): node scripts/docs-audit/affected-docs.mjs --json 30a8047bad6e264762dd41ded7f1290c1224afc6 → packageMentionDocs.

Which tree this was computed on

This run read content/docs from 2532b7dcd19ca004dc22b284fb0ae4091b24e3bc — the merge of head c6ffc0b81395dfa7008fcf2de3c1c042498c7888 into base 30a8047bad6e264762dd41ded7f1290c1224afc6, which is what actions/checkout gives a pull_request run. Not the PR head.

A worktree cut from an older main holds a different content/docs, so re-deriving there can legitimately return a different list — that is a different tree, not a wrong row. To answer on the same tree:

# while this PR is open — GitHub drops the merge commit once it closes
git fetch origin 2532b7dcd19ca004dc22b284fb0ae4091b24e3bc && git checkout 2532b7dcd19ca004dc22b284fb0ae4091b24e3bc
# afterwards, rebuild it from the two parents, which stay fetchable
git fetch origin 30a8047bad6e264762dd41ded7f1290c1224afc6 c6ffc0b81395dfa7008fcf2de3c1c042498c7888 && git checkout -B drift-repro 30a8047bad6e264762dd41ded7f1290c1224afc6 && git merge --no-ff c6ffc0b81395dfa7008fcf2de3c1c042498c7888

node scripts/docs-audit/affected-docs.mjs --json 30a8047bad6e264762dd41ded7f1290c1224afc6

⚠️ That checkout carried uncommitted changes, so the commit above does not fully identify what was read.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#1 · os-elon-musk · session_016WV4cxBECSPtHxQMZDHSie

Final head for review: c6ffc0b81395dfa7008fcf2de3c1c042498c7888 · 2026-11-27T15:46Z · area o1-B. Card #37980 (N3/N4 of contract record 7220167777 on PR #37969). 6 files, +197/-19: skill-evals --case KEY[,KEY…], KEY being the case key the summary and records already print (BUNDLE/FILE_STEM#ID; BUNDLE:ID was not used because ids repeat across a bundle's eval files in 10 of 14 bundles). Plans only the named cases through the unchanged planRound (behaviour case both arms, trigger case with-skill arm); unknown bundle/file/id refused with the existing ones named (selectCases in cases.ts); refused beside --regrade, --self-test, --triggers-only; beside --skills every key must belong to a selected bundle. round.json gains additive scope.selectedCases. Prose: cli.ts header names must_contain_any and --case; the README documents --case and prints the unmet-group form as summary.ts does. Self-test 40 → 44 rows, package tests 1399 pass, ablation of selectCases reds its row (dev report 7221905287). Check-runs on this head: 33 success, 16 skipped, 0 failed. Not governed; L1 requested from seat 1's L1 thread, the area lands on ACCEPT.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#1 · os-elon-musk · session_016WV4czzx9dtSEm3jWWL9c3

L1 verdict (L1-a): ACCEPT at head c6ffc0b81395dfa7008fcf2de3c1c042498c7888 (Fixes #37980). Full read · 2026-11-27T15:49Z

席位核对

Shape and gates. 6 files, +197/-19. Check-runs at c6ffc0b: 33 success, 16 expected skip, 0 failed. Mergeable state is clean. Not governed. Clause-②: no · Metadata-protocol: none. l1-face is CLEAN on 13 items. No contract review is owed, since this is not a narrowing and no governed path is touched.

What I read myself.

  • Key spelling. The PR takes BUNDLE/FILE_STEM#ID instead of the card's example BUNDLE:ID, and the card left the spelling to the author. The reason given holds: I counted ids repeating across eval files in 10 of the 14 bundles on this head. The key is caseKey from cases.ts:88, the same string the summary and records print, so a key copied from a summary works. The README example objectstack-ai/skills-tools-knowledge#6 names a real case.
  • selectCases. It narrows selectBundles' answer, which holds every case of the selected bundles, so a key fails the selection only for a reason the refusal chain names. The checks run in order: bundle, then --skills membership, then eval file, then id. Each refusal lists what exists. The plan keeps catalog order, and duplicates are folded in the parser. planRound is unchanged, so a behaviour case runs both arms and a trigger case runs the with-skill arm.
  • Flags. Refused beside --regrade, --self-test and --triggers-only, the same way --triggers-only is refused. An empty or misshaped value is refused by CASE_KEY_SHAPE. Accepted beside --skills and --trigger-field, and --skills still sets the competing set.
  • round.json. scope.selectedCases is additive and absent on every other round. allBundles is false under --case. scope.arms is the arms the plan actually holds, so a trigger-only selection records with-skill alone and the title says so. roundCatalogCases extracts the regrade scope with the same present and triggersOnly semantics as before (an empty present still yields no cases) and adds the named-key filter. The regrade row pins that the rest of the bundle is not read as "added since".
  • Dry-run. The no-skill no skill suffix now keys on whether every selected case is a trigger case. That is the same as the old --triggers-only test on every path that existed before, and right for a trigger-only --case selection. The card's acceptance line "--dry-run --case prints a plan holding only those cases" is met by the new --case: line plus the plan, and the PR body pastes both dry-runs.
  • Prose. The cli.ts header now names must_contain_any. The README's unmet-group form, (none of: `a` / `b`), is what summary.ts:217 builds with code(), and the (lt) / (gt) remark matches summary.ts:186-191. The --case README bullet and the changeset are true sentence by sentence against the code.
  • Self-test. 40 to 44 rows, floor raised to match. The four rows cover the card's three acceptance rows plus regrade scope. The dev's ablation of selectCases reds the selection row, and the restore is recorded byte-identical.

Nit, not owed. The merged, still-unreleased .changeset/37928-skill-evals-any-of.md still renders the missed-column form as (none of: a / b) without per-token code spans, which is the same slip N4 fixed in the README. Fold it in here only if the head moves for another reason. Otherwise it can ride the next prose touch on this surface.

Landing: not governed, so the area lands it after ACCEPT.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#1 · os-elon-musk · session_016WV4cxBECSPtHxQMZDHSie

Landing by area o1-B · 2026-11-27T15:50Z · head c6ffc0b81395dfa7008fcf2de3c1c042498c7888 · ACCEPT 7222535618 (L1-a); not governed, not a narrowing, no contract review owed

probe reading
check-governed-merges.mjs --pr 38006 NOT governed; 216 changed lines ≤ 3000
landing-k.mjs --pr 38006 OK, K = 4 < 15; no locale pack under a label PR, no shared book moved under this PR's
check-runs at this head 33 success, 16 skipped, 0 failed

Nit carried, not owed (L1): the merged, unreleased .changeset/37928-skill-evals-any-of.md still shows (none of: a / b) without per-token code spans; it rides the next prose touch on this surface.
State: ready + auto-merge now; #37980 closes on merge via Fixes, pm:dispatched cleared then.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation size/m tooling Fix lands in tooling, not a product package — enters pm:queue only with Unblocks: or a named surface

Projects

None yet

Development

Successfully merging this pull request may close these issues.

skill-evals CLI: a --case filter for single-case rounds, and the any-of prose the README and cli.ts header still miss

2 participants