Skip to content

fix(ui): check-skill-eval-tokens reads must_contain_any — shape, every member taught, tally - #37999

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

objectstack-fleet[bot] merged 2 commits into
mainfrom
claude/area-o1B-37978

Conversation

@objectstack-fleet

@objectstack-fleet objectstack-fleet Bot commented Nov 27, 2026 •

Copy link
Copy Markdown
Contributor

Requested by Elon · project thread

Fixes #37978 — under the maintainer's ruling A on the card (7222376446, 「A 按现状收 PR,改正卡片」), the acceptance is the gate reading must_contain_any for its own population (skills/objectui): shape refusals, every group member scored as taught, groups-only cases out of the EMPTY tally, no must_contain verdict moved. This PR is that change.

Clause-②: no
Metadata-protocol: none

维护者速读

  • 用户能看到什么变化:用户无感;技能评测的「必含词必须是文档教过的词」这道内部检查,现在也会检查「几种写法任一即算对」的新写法,检查格式,也检查每个候选词文档里有没有。
  • 为什么做:属于技能评测质量这条线,为以后改用新写法的评测题把关,免得题目要求一个文档从没教过的词。
  • 出错会怎样:只影响这道检查自己,最坏是某题被误判,改回即可撤回,不碰任何产品功能。
  • 要你做的:无。另有一件事交给席位:这道检查今天只看界面技能包,第 6 题所在的平台技能包它根本不读,要不要扩大检查范围需要定夺。

What changes

ui/scripts/check-skill-eval-tokens.mjs now reads assertions.must_contain_any, the any-of form the skill-evals runner grades since #37969 (anyOfProblem in packages/qa/scenarios/src/skill-evals/cases.ts):

  1. Shape. New anyOfShape() makes the runner's four refusals, one finding each: the value is not a list (not-an-array), a group is not a list of strings (bad-group), a group is empty (empty-group), a group holds an empty token (bad-token). A malformed group is not scored, the same way a malformed must_contain entry is not.
  2. Taught: every member, not at least one. Each member of each well-formed group becomes a row, scored by the same bundle-wide oracle and whole-token rule as a must_contain token, and also under the rejected per-guide oracle that --measure prints. Why every member: any one member passes an answer. So a member the bundle never says is a word the case accepts as correct without the skill ever teaching it. That is the same untaught-token defect, reached through a group. "At least one" would let that member through.
    A member's row key carries its group: ... eval ID must_contain_any[G] TOKEN. A baseline row therefore names exactly one member of one group. rowKey() output for a must_contain token is byte-identical to before.
  3. Tally. A case whose only positive assertion is groups is no longer counted in the "must_contain is EMPTY" tally. Its members also count toward the population, so a bundle made only of such cases is not refused as empty-population.
  4. Self-test. There are 13 new --self-test rows (31 to 44), covering each axis in both directions. There are 4 new vitest pins in ui/scripts/__tests__/check-skill-eval-tokens.test.ts: the four shape reasons plus the well-formed pass, every-member scoring with the one untaught member red and keyed by its group, the key shape, and the tally and population direction.

The header documents the form. The summary lines now also count must_contain_any members and groups. Baselines: KNOWN_UNTAUGHT_EVAL_TOKENS stays empty, and no row is needed.

No changeset, labelled skip-changeset: ui/ is the private object-ui-monorepo root package, and ui/scripts/** ships in no published package's files[].

Tests

Self-test and vitest, on head 8ac75d7
  • node ui/scripts/check-skill-eval-tokens.mjs --self-test printed OK check-skill-eval-tokens self-test: 44 cases pass (...) with exit 0. It was 31 cases before.
  • pnpm --dir ui exec vitest run scripts/__tests__/check-skill-eval-tokens.test.ts under the lock gave Test Files 1 passed (1), Tests 34 passed (34), VERDICT command-exit 0.
  • node ui/scripts/check-skill-eval-tokens.mjs exited 0: 128 must_contain token(s) and 0 must_contain_any member(s) in 0 group(s).
Ablation: each new branch broken once, then restored by blob hash

Each run used node scripts/ablation-replace.mjs ... -- node ui/scripts/check-skill-eval-tokens.mjs --self-test. Each restore was proven as blob == HEAD (f61ab5068e2b) with git diff HEAD empty.

  • Shape (anyOf.problems replaced by an empty list): exit 1, 4 of 44 failed, all four shape rows.
  • Taught (only the first member of each group scored): exit 1, 2 of 44 failed: "every member of a taught group passes, and is scored" and "ONE untaught member reds its group".
  • Tally (the groups condition dropped): exit 1, 1 of 44 failed: "a case whose only positive assertion is groups is NOT in the EMPTY tally". The first attempt was refused by the tool before running, because its replacement text already occurred in the file. The re-run used a distinct replacement.
No verdict moves: --list and --measure before and after

Both outputs were captured on dc45b1e65c and on this head, then diffed. All 128 row lines of --list, and every row of both red lists in --measure, are identical. The only changed lines are the four summary lines: the scan count, the oracle sentence, the EMPTY tally label and the success line. Exit 0 both times. The per-guide red count is 18 both times.

Acceptance notes

  • The premise half that does not hold: this gate never reads case 6. skillsWalk() in ui/scripts/skill-bundle-root.mjs narrows the walk to skills/objectui in the monorepo. The vitest pin "the real corpus" asserts the bundle list equals ['skills/objectui'], and Lint UI's path filter in ci.yml names skills/objectui/**. So skills/objectstack-ai/evals/skills-tools-knowledge.json case 6 is outside the population on main and on this branch alike.
  • I measured with analyze({ root: REPO_ROOT }), which walks the whole catalog, on this head. All four case-6 members are taught in skills/objectstack-ai: ai:approve 1, signed-in session 1, refused 17, never decides 1, whole-token counts. Widening the gate to all 14 bundles would also red 131 existing must_contain rows across 11 of the 13 other bundles, including case 12's context: and policy_document, plus 4 forbids-own-answer findings. The EMPTY tally there goes 71 to 70 with this change, because case 6 leaves it. So the population question was a scope decision, not a mechanical edit. Ruled A (7222376446): the acceptance is narrowed to this gate's own population; widening to the objectstack-* bundles (options B, C, D), any ci.yml edit and the one-off audit are not ruled and not in scope. Case 6's four tokens were checked by hand.
  • Head 603494f7 adds only a JSDoc type on rowKey to 8ac75d78 (the head the Tests section cites), fixing Type Check UI's TS2345; the gate, --self-test, the vitest file and type-check:scripts were re-run green on it. L1 ACCEPT 7222137031 at 603494f7.
  • --self-test here has no battery floor or handshake, which is the shape AGENTS.md now asks of self-tests. This is pre-existing. Noted only.

Verification

Read first:

  1. anyOfShape() and the scoring loop in analyze(). The risk is the must_contain row order or key changing. The before and after --list diff above shows it did not.
  2. The new must_contain_any self-test block.

Two-minute check: node ui/scripts/check-skill-eval-tokens.mjs --self-test prints 44 cases pass and exits 0.


Generated by Claude Code

The skill-evals runner grades assertions.must_contain_any (groups, each met
by any one token). The eval-token gate read only must_contain and
must_not_contain, so any-of tokens were neither shape-checked nor required
to be taught. Now: the runner's four shape refusals are findings; every
member of a well-formed group must be taught by the bundle-wide whole-token
oracle (a member key carries its group); a groups-only case leaves the EMPTY
tally and counts toward the population. Self-test and vitest rows pin each
axis in both directions.

Claude-Session: https://claude.ai/code/session_016WV4cxBECSPtHxQMZDHSie
Co-authored-by: Claude <noreply@anthropic.com>
@objectstack-fleet objectstack-fleet Bot added the skip-changeset PR has no user-facing published change; bypasses the changeset gate label Nov 27, 2026
The JS default `group = null` infers as null-only under tsconfig.scripts.json,
so Type Check UI refused the vitest pin passing a group index.

Claude-Session: https://claude.ai/code/session_016WV4cxBECSPtHxQMZDHSie
Co-authored-by: Claude <noreply@anthropic.com>
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

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

Final head for review: 603494f77d832492371c61384105c96bb07ee29f · 2026-11-27T15:28Z · area o1-B. Card #37978, now in the decision box (release and fork 7221944542): the gate's population is skills/objectui only, so the card's "case 6's four tokens checked" bullet cannot be met as filed; the scope ruling is pending. This head is the gate change itself, reviewable now and held from landing until the ruling. ui/scripts/check-skill-eval-tokens.mjs (+ its vitest file), 2 files, +236/-31: must_contain_any shape refusals matching cases.ts, every group member scored by the existing whole-token oracle, a groups-only case leaves the EMPTY tally; self-test 31 → 44 rows, three ablations each red; --list / --measure rows identical before and after. The PR body's Tests section cites 8ac75d78; 603494f7 adds only a JSDoc type on rowKey (fixing Type Check UI's TS2345), re-run locally green. Body says "Part of #37978" pending the ruling. Check-runs on this head: 30 success, 14 skipped, 0 failed; mergeable clean. Not governed; L1 requested from seat 1's L1 thread.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

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

L1 verdict (L1-a): ACCEPT on the gate change at head 603494f77d832492371c61384105c96bb07ee29f (card #37978). Landing is held on the seat's scope ruling (fork 7221944542) · 2026-11-27T15:29Z

席位核对

Shape and gates. 2 files, +236/-31, both under ui/scripts/. These are tooling only, so no package publishes them and no changeset is owed. Check-runs at 603494f: 30 success, 14 skipped, 0 failed; mergeable_state clean. Not governed. Clause-②: no · Metadata-protocol: none. Since 8ac75d78, the head adds only a JSDoc type for TS2345, and type-check is green.

The gate change, on its merits: right.

  • Shape. anyOfShape makes one finding per refusal of the runner's anyOfProblem (cases.ts:100): not a list, a group that is not a list of strings, an empty group, and an empty token. A malformed group is not scored, the same as a malformed must_contain entry.
  • Taught. Every member of every well-formed group is scored by the existing whole-token oracle, not "at least one". That is the right side, because any one member passes an answer. The row key carries must_contain_any[G], so a baseline row names one member of one group, and a must_contain key is unchanged.
  • Tally. A groups-only case leaves the EMPTY count, and its members count toward the population.
  • No verdict moves for a must_contain-only case. The --list and --measure rows are identical before and after. The self-test grows from 31 to 44 rows, and three ablations each go red.

N1 (nit), one shape gap against the runner. assertions.must_contain_any ?? [] reads null as no groups. The runner's destructuring default covers undefined only, so anyOfProblem(null) refuses it. One check for null would make the two agree. It is optional, since no eval writes null today.

The scope question: my reading is A, correct the acceptance to the gate's own population. SCAN_ROOTS = ['skills'], resolved under ui/, walks the objectui bundles only. So objectstack-ai case 6 was never in this gate's population, and the card's "case 6's four tokens checked" bullet cannot be met by this gate as filed. N2 of record 7220167777 assumed it could. That was my record's misreading, and I own it. Widening the gate to the objectstack-* bundles reds 131 existing must_contain rows, by the dev's measurement. Per objectui#7461 each of those is a per-row skills decision, so it is new work with its own funding, not a side effect of this card. The change here is still worth landing: the next objectui eval that takes the any-of form is checked from its first commit. If the seat wants the objectstack bundles covered, that is a separate card that owns the 131 rows. The by-hand check already done (all four case-6 tokens occur in skills/objectstack-ai/SKILL.md) stands as the reading for case 6.

Landing: not governed. The area lands it once the seat rules the acceptance correction.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

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

Landing by area o1-B · 2026-11-27T15:45Z · head 603494f77d832492371c61384105c96bb07ee29f · ACCEPT 7222137031 (L1-a); not governed, no contract review owed · ruling A on #37978 (7222376446, execution item 2: the area lands it on its own landing line)

probe reading
check-governed-merges.mjs --pr 37999 NOT governed; 267 changed lines ≤ 3000
landing-k.mjs --pr 37999 CAN'T ANSWER (exit 3): the PR touches only ui/scripts/**, so no Test Core shard ran and no Affected-set diff base was printed. Read by hand instead: PRBASE taken as the PR's merge base with main, dc45b1e6 (no later base is possible for this head); K = git rev-list --count --first-parent dc45b1e6..origin/main = 8 < 15. Locale leg: not a label PR (ui/scripts/** only). Shared-budget leg: no book touched.
check-runs at this head 30 success, 17 skipped, 0 failed; the PR-body guard re-runs on the patched body
PR body patched to Fixes #37978 citing ruling 7222376446 (narrowed acceptance)

State: ready + auto-merge now; #37978 closes on merge via Fixes, pm:dispatched cleared then.

@objectstack-fleet
objectstack-fleet Bot marked this pull request as ready for review November 27, 2026 15:46
@objectstack-fleet
objectstack-fleet Bot added this pull request to the merge queue Nov 27, 2026
Merged via the queue into main with commit 126acf6 Nov 27, 2026
49 checks passed
@objectstack-fleet
objectstack-fleet Bot deleted the claude/area-o1B-37978 branch November 27, 2026 16:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size/m skip-changeset PR has no user-facing published change; bypasses the changeset gate tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

check-skill-eval-tokens: read must_contain_any, so any-of tokens are shape-checked and must be taught like must_contain

2 participants