Skip to content

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

Description

@objectstack-fleet

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

Filing gate: ② follow-up out of #37928. The source is the contract record 7220167777 on PR #37969 (nit N2) and L1-a's ACCEPT 7220192629 on the same head, which asks for this card before any further case moves to the any-of form. The owning area files it under the source card.
Grading: area:ai · Task · p3 · reach: every skill eval case that uses must_contain_any (today only objectstack-ai case 6; next readers case 12's carry 7207779687 and the English-phrase family 7207740184, card #37928 item 4) · evidence: read on main.

维护者速读

  • 做什么:技能评测有一道检查,确认每个「必含词」都是技能文档真的教过的词。PR feat(qa): skill-evals grader takes an any-of form; objectstack-ai case 6 moves to it #37969 新加了「几种写法任一即算对」的判分方式,但这道检查还不认识它:新写法里的词既不检查格式,也不检查文档有没有教。这张卡让检查也覆盖新写法。
  • 谁受益:以后改用新写法的评测题,不会因为要求了文档没教的词而永远判错。
  • 不做会怎样:今天只有第 6 题用新写法,它的四个词已人工核过都在文档里;等第 12 题等更多题改用时,就没人把关了。
  • 需要你做的:无。

What

ui/scripts/check-skill-eval-tokens.mjs reads must_contain and must_not_contain only. After PR #37969 the skill-evals runner (packages/qa/scenarios/src/skill-evals/cases.ts) also reads assertions.must_contain_any: a list of groups, each a non-empty list of non-empty literal tokens, a group met by any one token.

  1. Shape: the gate's assertion-shape check covers must_contain_any with the same refusals cases.ts makes (not a list; a group that is not a list of strings; an empty group; an empty token).
  2. Taught: each token of each group must be taught by the bundle the same way a must_contain token is (whole token in the bundle's own markdown). Decide and state in the PR whether a group needs every token taught or at least one; the contract record's reading is that every member should be something the skill says, since any one of them passes an answer.
  3. Tally: a case whose only positive assertion is groups is no longer counted under the "must_contain is EMPTY" tally.
  4. Self-test rows for each of the three, both directions.

Acceptance

  • node ui/scripts/check-skill-eval-tokens.mjs exits 0 on main with objectstack-ai case 6's four tokens checked (all four occur in skills/objectstack-ai/SKILL.md), and --self-test reds when the new branch is ablated.
  • No verdict moves for any must_contain-only case. Clause-②: no, Metadata-protocol: none.
  • This strengthens an existing gate; it adds no new gate.

Blocked-by: #37928 (PR #37969)
Parent: #37928
Size: S
Dedupe (objectstack, is:issue): check-skill-eval-tokens must_contain_any 1 (only #37928, the source) · check-skill-eval-tokens 282 (open hits #34770 #37857 #34996 #34842 are about other bundles or rounds, none about this form). No duplicate.

Activity

  1. added
    area:ai
    on Nov 27, 2026
  2. objectstack-fleet commented on Nov 27, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

    Triage: lands in area:ai · domain:devx · Task · p3 · pm:queue · size XS; rationale: the eval-token check must read must_contain_any, so that any-of tokens are shape-checked and taught like must_contain. It is internal eval tooling, needed before more cases move to the any-of form. p3 as filed. Recorded 2026-11-27T14:14Z.

  3. added
    domain:devx
    pm:queue
    on Nov 27, 2026
  4. objectstack-fleet commented on Nov 27, 2026

    @objectstack-fleet
    ContributorAuthor

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

    Claim: PM loop round 5 · area o1-B (follow-up filed by this area under epic #36996's cards; maintainer 2026-11-27T11:16Z 「记录内问 AI 继续做完」) · 2026-11-27T14:34Z
    Session: session_016WV4cxBECSPtHxQMZDHSie
    Account: os-elon-musk
    Branch: claude/area-o1B-37978
    Worktree: objectstack-issue-37978
    Domain: domain:devx
    Area: o1-B
    Seat: repo:objectstack#1
    File surface: ui/scripts/check-skill-eval-tokens.mjs (and its self-test fixtures where they live), plus a changeset only if the repo's rules want one for ui/scripts (stop on breach; explain in the report)
    Container & model: XS, mode:subagent, model: TIER_DEFAULT (dispatch-gates --tier: no path-derived mandate), effort: medium
    Clause-②: no
    Metadata-protocol: none
    Responsibility: n/a — not a defect card (Task)
    Thread-read: 7220533767
    Premise: holds — on main dc45b1e6 the gate has 0 mentions of must_contain_any; cases.ts reads the form since PR #37969.
    Serial constraints cleared: none — no open PR or claim on ui/scripts/check-skill-eval-tokens.mjsknown to this area; #37980 (same area) touchespackages/qa/scenarios, disjoint.
    Pre-claim lane: not governed (ui/scripts/**) ⇒ L1 in L1-a, landed by the area after ACCEPT.

  5. added
    pm:dispatched
    and removed
    pm:queue
    on Nov 27, 2026
  6. objectstack-fleet commented on Nov 27, 2026

    @objectstack-fleet
    ContributorAuthor

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

    {
      "issue": 37978,
      "status": "needs_decision",
      "branch": "claude/area-o1B-37978",
      "pr": "https://github.com/objectstack-ai/objectstack/pull/37999",
      "session": "session_016WV4cxBECSPtHxQMZDHSie",
      "premise_still_valid": false,
      "summary": "Items 1-4 of the card's What are landed in ui/scripts/check-skill-eval-tokens.mjs. The new anyOfShape() makes the runner's four refusals (not-an-array, bad-group, empty-group, bad-token). EVERY member of every well-formed group is scored as a row by the same bundle-wide whole-token oracle, keyed '... eval ID must_contain_any[G] TOKEN'. Every-member was chosen because any one member passes an answer, so an untaught member is the untaught-token defect reached through a group. A groups-only case leaves the EMPTY tally and counts toward the population. There are 13 new self-test rows and 4 new vitest pins. PREMISE HALF THAT FAILS: this gate never reads skills/objectstack-ai. skillsWalk() narrows the monorepo walk to skills/objectui; the vitest pin 'the real corpus' asserts bundles == ['skills/objectui']; and Lint UI's path filter names skills/objectui/**. So case 6 is outside the population on main and on the branch, and the acceptance bullet 'case 6's four tokens checked' cannot be met without a scope decision. Measured catalog-wide with analyze({root: REPO_ROOT}) on 603494f77d: case 6's four members are all taught (whole-token counts ai:approve 1, signed-in session 1, refused 17, never decides 1). But widening reds 131 existing must_contain rows in 11 bundles (case 12's context: and policy_document among them) plus 4 forbids-own-answer findings. The PR body therefore says 'Part of #37978', not the dispatch's 'Fixes #37978': os-dev wins on a conflict, and Fixes would close the card with its acceptance unmet. The card assignee was not touched.",
      "tests": "On final head 603494f77d: `node ui/scripts/check-skill-eval-tokens.mjs --self-test` -> 'OK check-skill-eval-tokens self-test: 44 cases pass' exit 0 (31 before). `node ui/scripts/check-skill-eval-tokens.mjs` exit 0, '128 must_contain token(s) and 0 must_contain_any member(s) in 0 group(s)'. Lock run of `pnpm --dir ui exec vitest run scripts/__tests__/check-skill-eval-tokens.test.ts`: Test Files 1 passed (1), Tests 34 passed (34), VERDICT command-exit 0. `pnpm --dir ui run type-check:scripts` exit 0. Before/after: --list and --measure diffed against dc45b1e65c; all 128 row lines and both red lists are identical, and only 4 summary prose lines changed; per-guide red is 18 both times. ABLATION via scripts/ablation-replace.mjs against --self-test on 8ac75d787f, each restore proven as blob == HEAD f61ab5068e2b with git diff HEAD empty. Shape (anyOf.problems -> []): exit 1, 4/44 failed, the four shape rows. Taught (tokens.slice(0,1)): exit 1, 2/44 failed (every-member scored; one untaught member reds). Tally (groups condition dropped): exit 1, 1/44 failed. The first tally attempt was a no-op refusal by the tool (replacement text pre-existed in the file), and the re-run used a distinct replacement. No build is involved: the gate is a plain .mjs run from source.",
      "gates": "Local derived subset, 21 families from `node scripts/pm/dispatch-gates.mjs --commands --repo objectstack-ai/objectstack` on 8ac75d787f; exits were captured by redirect-then-$?. 18 exited 0, including closing-keyword-parity (+self-test), comment-mask-corpus, adr-anchors, cross-package-test-inputs, driver-memory-census, engine-double-contract, gitlink-declared, nul-bytes, published-files, refd-timer-probe, registry-log-declared, rest-log-spy-declared, tier-file-adoption, type-check-coverage, undeclared-dep-imports, watch-hint-literal and where-matcher. NOT MEASURED: check:query-options-erasure and check:type-check-debt, both cut by my 280 s timeout (exit 124; type-check-debt needs a closure build under the lock); CI runs both. `pnpm --dir ui exec vitest run scripts/`: the first run (concurrent with the check:* sweep) gave 22 files / 56 tests failed. The lock re-run gave 1 failed / 171 passed files, and Tests 1 failed / 5141 passed. The one failure is unit-registry-absence-collision.test.ts, with 53 modules 'Failed to resolve entry for package @objectstack/client': unbuilt workspace dist in a fresh worktree, unrelated to the diff. CI Test UI on 8ac75d787f was success. `--ran` reconciliation: 21 derived, 21 run, 0 UNRUN; two of those are really NOT MEASURED, as stated above. On final head 603494f77d I re-ran the gate, --self-test, the vitest file, type-check:scripts and check:nul-bytes, all exit 0; that is a declared narrowing for a JSDoc-only commit. PR check-runs on 8ac75d787f: Lint & Repo Gates success, TypeScript Type Check success, Test UI success, Lint UI success, Test Core success, Governed Surface Queue Guard success, Check Changeset success, and Type Check UI FAILURE (TS2345: rowKey's `group = null` default inferred null-only under tsconfig.scripts.json). That is fixed in 603494f77d, and local type-check:scripts is exit 0. On 603494f77d at report time: 16 in_progress, 6 success (Governed Surface Queue Guard, Dogfood Regression Gate), 14 skipped.",
      "dogfood_battery": "n/a — no `!` in the PR title and no (narrowing) arm",
      "mcp_calls": "0",
      "api_writes": "2 — (1) fleet-write relay stroke pr_create (POST /repos/objectstack-ai/objectstack/pulls draft, POST /issues/37999/assignees [os-elon-musk], POST /issues/37999/labels [skip-changeset]; read-back: 7218 bytes sent = stored, assignee and label listed); (2) post-stamped.mjs report comment on #37978 (POST /repos/objectstack-ai/objectstack/issues/37978/comments). Plus 2 git pushes of the branch, which are not REST writes, and the empty-branch probe push.",
      "open_questions": [
        {
          "question": "check-skill-eval-tokens reads only skills/objectui (skillsWalk; vitest pin 'the real corpus'; Lint UI path filter). How should any-of cases in the objectstack-* bundles, such as case 6 and case 12 next, get the taught check the card asks for?",
          "options": [
            "A — Accept this PR as the gate's own completion and close #37978's acceptance bullet as unreachable. A separate card decides the catalog scope. Cost: zero now. Case 6 and case 12 stay unchecked until then.",
            "B — Widen the walk to the whole skills/ catalog with a 131-row KNOWN_UNTAUGHT_EVAL_TOKENS baseline, plus a home for 4 forbids-own-answer findings (no baseline exists for shape findings today). This also needs Lint UI's path filter widened in .github/workflows/ci.yml (governed, Tier S at least) and the 'real corpus' pin updated. Cost: M, outside this card's file surface, and a large debt list the header argues against.",
            "C — Widen only the must_contain_any half catalog-wide: group members of every bundle are scored, while must_contain stays objectui-only. Today that is 4 rows, all taught. It still needs the path filter widened to run on objectstack-* eval edits. Cost: S in the script plus the governed ci.yml edit. The cost is an asymmetric population, which must be stated in the header.",
            "D — Put the taught check for objectstack bundles into the skill-evals loader (packages/qa/scenarios cases.ts), which already reads every bundle. Cost: S-M. It is a second oracle home, and the same 131-row question arrives the moment must_contain is included."
          ],
          "recommendation": "A now, with a follow-up card choosing between C and B. C is the smallest change that makes case 6 and case 12 checked without inheriting 131 unrelated must_contain reds, but it needs a governed ci.yml edit and a stated asymmetry, which is a seat or maintainer call, not a dev one."
        },
        {
          "question": "The dispatch asked for 'Fixes #37978'. I wrote 'Part of #37978' because the acceptance bullet is unmet (os-dev: Part of when a merge should not close the card). Keep it?",
          "options": [
            "A — Keep Part of until the scope decision lands.",
            "B — If option A above is chosen, the seat edits the body to Fixes."
          ],
          "recommendation": "A, because a merge with Fixes closes the card with its acceptance half open."
        }
      ],
      "security_findings": "none",
      "out_of_scope_findings": [
        "carrier: seat (needs_decision above) · the gate's population excludes every objectstack-* bundle: 131 untaught must_contain rows and 4 forbids-own-answer findings when measured catalog-wide on 603494f77d. Noted, not filed: it is a scope question, not one of the three filing classes.",
        "carrier: none · the --self-test in check-skill-eval-tokens.mjs lacks the battery floor and handshake that the AGENTS.md self-test rule asks for. Pre-existing. Noted in the PR Acceptance notes only.",
        "carrier: seat · the PR body Tests section cites head 8ac75d787f. The final head 603494f77d adds only a JSDoc type on rowKey (Type Check UI fix). The dev does not PATCH the body (os-dev rule 3), so the seat may want to add one line."
      ]
    }
  7. objectstack-fleet commented on Nov 27, 2026

    @objectstack-fleet
    ContributorAuthor

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

    Release: claim 7220973419 of session session_016WV4cxBECSPtHxQMZDHSie (area o1-B), released by its own holder at 2026-11-27T15:20Z into the decision box. The dev's report returned needs_decision, and a dev's needs_decision always goes to a person (seat repo:objectstack#1's routing, via a decision thread). PR #37999 stays open as a draft at 603494f77d832492371c61384105c96bb07ee29f; a restart resumes from claude/area-o1B-37978@603494f77d. pm:dispatched → needs-user-decision; the assignee is cleared.

    维护者速读

    • 卡在哪:这张卡让「评测词必须是文档教过的」那道检查认识新的「任一写法即算对」判分。检查本身已经改好(PR fix(ui): check-skill-eval-tokens reads must_contain_any — shape, every member taught, tally #37999),但卡上写的验收「第 6 题的四个词被检查到」做不到:这道检查从来只看 objectui 一个技能包,objectstack-ai 等其余技能包的评测题它都不看。这是立卡时的错误前提。
    • 实测:第 6 题四个词都在文档里(人工核过)。如果把检查扩到所有技能包,现有 131 个必含词会变红,另有 4 处评测自相矛盾。
    • 要你定:A 本 PR 就算完成,卡的验收改为「检查对它覆盖的技能包认识新写法」,不扩大范围(推荐);B 把整道检查扩到全部技能包,131 项先记为欠账;C 只把新写法这一半扩到全部技能包;D 把这项检查搬到评测运行器里做。B/C/D 都要改受管的 CI 配置,属于扩大门禁范围。

    Fork (English)

    Governing text: card #37978 Acceptance ("exits 0 on main with objectstack-ai case 6's four tokens checked"); ui/scripts/check-skill-eval-tokens.mjs on main dc45b1e6 (skillsWalk narrows the walk to skills/objectui; the vitest pin "the real corpus" asserts that population; .github/workflows/ci.yml Lint UI path filter names skills/objectui/**).
    Measured by the dev on 603494f (analyze({ root: REPO_ROOT }), catalog-wide, not a change): case 6's four members are taught (ai:approve 1, signed-in session 1, refused 17, never decides 1 whole-token hits); widening the population reds 131 existing must_contain rows across 11 bundles plus 4 forbids-own-answer findings.
    Options (dev's; area recommends A as a premise correction, no widening card under the startup rule that a gate's reach is not extended without the maintainer naming it):

    • A: this PR completes the gate for its population; the acceptance bullet is corrected to that population; PR body becomes Fixes #37978; area lands it after L1 (not governed).
    • B: widen the whole gate to every bundle with a 131-row baseline; governed ci.yml path-filter edit; M.
    • C: widen only the must_contain_any half catalog-wide (4 rows today, all taught); governed ci.yml edit; stated asymmetric population; S.
    • D: do the taught check for objectstack bundles in packages/qa/scenarios cases.ts; a second oracle home; S–M.
  8. added
    needs-user-decision
    and removed
    pm:dispatched
    on Nov 27, 2026
  9. objectstack-fleet commented on Nov 27, 2026

    @objectstack-fleet
    ContributorAuthor

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

    维护者速读

    Ruled: A — maintainer Elon (os-elon-musk), decision card in this project's #37978 decision thread, option 1 tapped at 2026-11-27T15:41:04Z, option text verbatim 「A 按现状收 PR,改正卡片」「PR 照常走复审合并,卡片验收改成只管界面技能包。平台包里用新写法的题暂由人工核对,第 6 题已核过无误。」 Question on the card: 「决定必含词检查要不要扩大到平台技能包」. Fork and options: 7221944542; dev report 7221767674; L1 ACCEPT on PR #37999 at 603494f7: 7222137031. Freshness gate: newest comment at recording is 7221944542, read; it does not change the option set.

    Premise corrected: the card asked ui/scripts/check-skill-eval-tokens.mjs to check skills/objectstack-ai case 6's tokens. On main the gate's population is skills/objectui only (skillsWalk, its vitest pin, the Lint UI path filter), so case 6 was never in it; the card inherited the misreading from N2 of contract record 7220167777, which L1-a owns.
    Ruling-ref: this ruling, 「卡片验收改成只管界面技能包」.

    Execution:

    1. Acceptance becomes: the gate reads 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 moves. PR fix(ui): check-skill-eval-tokens reads must_contain_any — shape, every member taught, tally #37999 is that change; its body says Fixes #37978.
    2. Not a governed path: area o1-B lands PR fix(ui): check-skill-eval-tokens reads must_contain_any — shape, every member taught, tally #37999 after L1 (7222137031) on its own landing line.
    3. ⛔ Not ruled and not in scope: widening the gate to the objectstack-* bundles (options B, C, D), any ci.yml edit, and the optional one-off audit of the expected_output-only rows. Case 6's four tokens were checked by hand in the decision analysis.

    State: needs-user-decision → pm:queue in this stroke, for area o1-B to re-claim.

  10. added
    pm:queue
    and removed
    needs-user-decision
    on Nov 27, 2026
  11. objectstack-fleet commented on Nov 27, 2026

    @objectstack-fleet
    ContributorAuthor

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

    Claim: PM loop round 5 · area o1-B, re-claim after the ruling A (7222376446) · 2026-11-27T15:43Z
    Session: session_016WV4cxBECSPtHxQMZDHSie
    Account: os-elon-musk
    Branch: claude/area-o1B-37978
    Worktree: objectstack-issue-37978
    Domain: domain:devx
    Area: o1-B
    Seat: repo:objectstack#1
    File surface: ui/scripts/check-skill-eval-tokens.mjs and its vitest file, as on PR #37999 (no new work; the ruling takes the PR as it stands)
    Container & model: XS, mode:subagent, model: TIER_DEFAULT (dispatch-gates --tier: no path-derived mandate), effort: medium
    Clause-②: no
    Metadata-protocol: none
    Responsibility: n/a — not a defect card (Task)
    Thread-read: 7222376446
    Premise: corrected 7222376446 — acceptance narrowed to the gate's own population (skills/objectui); widening (B/C/D), any ci.yml edit and the audit are not ruled and not in scope.
    Serial constraints cleared: none — PR #37999 is the whole change; head 603494f7, L1 ACCEPT 7222137031.
    Resume-from: claude/area-o1B-37978@603494f77d
    Pre-claim lane: not governed ⇒ the area lands PR #37999 on its own landing line (ruling execution item 2).

  12. added
    pm:dispatched
    and removed
    pm:queue
    on Nov 27, 2026
  13. objectstack-fleet commented on Nov 27, 2026

    @objectstack-fleet
    ContributorAuthor

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

    Close-out (area o1-B) · 2026-11-27T16:17Z
    Delivered: PR #37999 merged as 126acf6b (area landing 7222459014): ui/scripts/check-skill-eval-tokens.mjs reads must_contain_any for its own population (skills/objectui): shape refusals matching the runner's anyOfProblem, every group member scored as taught by the existing whole-token oracle, groups-only cases out of the EMPTY tally; no must_contain verdict moved; self-test 31 → 44 rows. This is the acceptance as corrected by ruling A (7222376446). L1 ACCEPT 7222137031.
    Not ruled, not in scope (ruling item 3): widening the gate to the objectstack-* bundles, any ci.yml edit, the one-off audit. L1 nit N1 (?? [] reads null as no groups where the runner refuses it) carried, optional.
    State: pm:dispatched removed with the close. Remaining: none on this card.

  14. removed
    pm:dispatched
    on Nov 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area:aidomain:devxpriority:p3

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions