Skip to content

skill-evals grader: an any-of form over literal tokens, so one case can accept any of several correct code spellings (objectstack-ai case 6 first) #37928

Backlog

Description

@objectstack-fleet

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

Filing gate: ③ maintainer-directed · Source: maintainer — ruling on #37419 (record 7217332972, item 4), option text verbatim 「第 6 题恢复原样,另开一张卡把判分改成几种写法任一即算对,在那之前它仍约半数误判。」 Analysis 7217315886.
Grading: area:ai · Feature (a new assertion form of the skill-evals runner) · p3 · reach: every reader of a skill-evals round, and every case whose correct answers do not share one literal · evidence: measured (#37419 rounds) and read (grade.ts).
Reader: area o1-B under seat repo:objectstack#1, after PR #37797 lands.
Dedupe (objectstack, is:issue): any-of grader 48 (none on this grader; #36206 is the scenario scorer, a different grader) · must_contain any_of 0 · "skill-evals" grader 33 (none open on this) · grade.ts any-of 14 (same set).

维护者速读

  • 做什么:技能评测的判分现在只有「每个必含词都要出现」一种写法。加一种「这几种写法出现任意一种就算对」,仍然逐字匹配、不做归一化、不用模型判分。第 6 题第一个改用它。
  • 谁受益:看技能评测结果的人:红灯才真正代表「文档没教会」,而不是「答对了但措辞不同」。
  • 不做会怎样:第 6 题继续约半数把正确答案判错;第 12 题和一批英文短语必含词的题也一样只能二选一:查太严误判,查太松漏判。
  • 需要你做的:无(改 skills/** 下的评测文件需 os-zhuang 批准)。

What

packages/qa/scenarios/src/skill-evals/grade.ts passes an answer "when every must_contain token appears in it and no must_not_contain token does"; a token is "a literal, case-sensitive substring", "No model judges an answer, and nothing is normalised." There is only an all-of form. On #37419, two single-token choices for skills/objectstack-ai/evals/skills-tools-knowledge.json case 6 both marked correct answers wrong: the two main phrases pool 6/15 with the skill, and ai:approve read 5/5 then 2/5 on fresh rounds, where the dev read the three misses as correct answers that never wrote that name.

  1. Add one assertion form beside must_contain: a list of groups, each group a list of literal tokens; a group is met when at least one of its tokens appears. Same matching as today: literal, case-sensitive substring, no normalisation, no model judge. The key's name and the result's report of an unmet group are the author's choice; say them in the PR body.
  2. cases.ts parses and refuses the new form as it does the others (a group must be a non-empty list of strings; a case that asserts nothing still refuses). hashCase includes it, so recordings keyed on a case's hash re-key when the form is added; say so in the PR body.
  3. Case 6 moves to it. The token set is drawn from a recorded with-skill round (the earlier recordings are not in the project files, so record one first) and must be code spellings or refusal terms a correct answer of the expected kind uses; must_not_contain (pendingActions.approve(), the prompt and expected_output do not change.
  4. Out of scope, pointed here: case 12's carry 7207779687 (the get_record_context binding) and the English-phrase family named in 7207740184. They are the next readers of this form; this card does not move them.

Acceptance

  • The grader's self-test covers the new form: a group met by its second token passes, a group with none of its tokens fails, all-of and must_not_contain unchanged.
  • Case 6 on the pushed head, a fresh round at 10 draws per arm (not the round the tokens were drawn from): with the skill ≥ 8/10, without the skill ≤ 2/10. A miss returns to the decision box; ⛔ no silent lowering of the bar.
  • ⛔ No rewording of the approval paragraph in skills/objectstack-ai/SKILL.md on this card.
  • node scripts/check-skills-token-ratchet.mjs exits 0 with no ceiling raised. Clause-②: no, Metadata-protocol: none.

Model: skills/** is MANDATORY at the contract review tier (the eval file changes).
Parent: #37419
Size: S

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 · Feature · p2 · pm:queue · size S; rationale: maintainer-directed (ruling on #37419). The skill-evals grader needs an any-of form over literal tokens. Until it lands, case 6 still misgrades about half its runs (the maintainer's words), and an eval-tooling false red is p2, so p3 → p2. Recorded 2026-11-27T12:15Z.

  3. added
    domain:devx
    pm:queue
    priority:p2
    and removed 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

No one assigned

    Labels

    area:aidomain:devxpm:queuepriority:p2

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions