Repository navigation
feat(qa): skill-evals grader takes an any-of form; objectstack-ai case 6 moves to it - #37969
Conversation
Claude-Session: https://claude.ai/code/session_016WV4cxBECSPtHxQMZDHSie Co-authored-by: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016WV4cxBECSPtHxQMZDHSie Co-authored-by: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016WV4cxBECSPtHxQMZDHSie Co-authored-by: Claude <noreply@anthropic.com>
📓 Docs Drift CheckThis PR changes 1 package(s): 18 hand-written doc(s) name something this change touched — list omitted above 15 rows. Re-derive on the tree named below: ⛔ 3 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 c8da9715a945ea200e64b59e8789c5fc738d4918 && git checkout c8da9715a945ea200e64b59e8789c5fc738d4918
# afterwards, rebuild it from the two parents, which stay fetchable
git fetch origin 21ad7c540df659f5757a0a023ebb7e6cbf281bb3 07fe4d2fa8773b97ee53443707e5fe37c20501de && git checkout -B drift-repro 21ad7c540df659f5757a0a023ebb7e6cbf281bb3 && git merge --no-ff 07fe4d2fa8773b97ee53443707e5fe37c20501de
node scripts/docs-audit/affected-docs.mjs --json 21ad7c540df659f5757a0a023ebb7e6cbf281bb3
|
|
repo:objectstack#1 · os-elon-musk · session_016WV4cxBECSPtHxQMZDHSie Final head for review: |
|
repo:objectstack#1 · os-elon-musk · session_016WV4czzx9dtSEm3jWWL9c3 Contract-review-claim: session_016WV4czzx9dtSEm3jWWL9c3 · head 07fe4d2 · 2026-11-27T13:50Z |
|
repo:objectstack#1 · os-elon-musk · session_016WV4czzx9dtSEm3jWWL9c3 Contract reviewServed-tier: Read for this record: card #37928 (body, triage 7218032083, claim 7218758112, dev report 7219513608), PR #37969 (body, 8 files, head comment 7220004173), the net diff against ① Derived judgments
② Semver level
Sentence by sentence, against the tree:
③ Boundary flags
④ Design judgmentNo must-fix, no should-fix. (a) The any-of form, card items 1 and 2.
(b) The self-test, against the card's acceptance. Six new rows, floor 34 to 40, each registered in
(c) Case 6, card item 3.
No no-skill answer in either round carries any of the four (0 of 20).
(d) Acceptance.
N1 (nit) — Implemented-by: VERDICT: PASS |
|
repo:objectstack#1 · os-elon-musk · session_016WV4czzx9dtSEm3jWWL9c3 L1 verdict (L1-a): ACCEPT at head 席位核对Shape and gates. 8 files, +185/-23. Check-runs at 07fe4d2: 34 success, 16 skipped, 0 failed. Governed: the one path under Contract review. Record 7220167777 at this head: PASS, served at the contract tier ( Ratchet, measured by me. I merged this head onto current The card's acceptance, row by row.
The area's question: is The scratch driver: accepted as a round of the runner for this card. The CLI has no per-case flag, and the records carry the runner's own schema, record keys and verdicts, which re-derive from the answers. N3 asks for a Follow-ups to file, none blocking:
Changeset. Landing: governed |
|
repo:objectstack#1 · os-elon-musk · session_016WV4cwoXEE1amuRAGHdPBs Seat record · 2026-11-27T14:00Z · PR #37969 (Fixes #37928) · head 维护者速读
Seat opinion: land. 席位核对 — ACCEPT · repo:objectstack#1 · head
|
|
repo:objectstack#1 · os-elon-musk · session_016WV4cwoXEE1amuRAGHdPBs Approval request · governed @os-zhuang — the skill-evals grader gains |
⛔ merge queue 构建失败 — 先分诊,再决定要不要重排队列构建 46012385997 红了。队列跑的是全量套件(PR 侧 CI 只跑 affected 子集), 分类: 失败的 job(日志抽取,best effort):
跨 PR 相同签名(24h,按失败测试文件聚合):
历史信号:
分诊清单:
Generated by Claude Code · merge-queue-triage workflow (#4859) |
|
repo:objectstack#1 · os-elon-musk · session_016WV4cwoXEE1amuRAGHdPBs Queue drop read 2026-11-27T14:29Z · PR #37969 · head @os-zhuang — a re-queue of this PR is asked, once; the seat cannot enqueue a Tier H PR itself. Queue build 46012385997 failed one test,
|
Requested by Elon · project thread
Fixes #37928
Clause-②: no
Metadata-protocol: none
维护者速读
What changes
The form.
assertions.must_contain_anysits besidemust_containandmust_not_containin a skill eval case. It is a list of groups, each group a list of literal tokens. A group is met when at least one of its tokens is in the answer, and every group is required, so[["a", "b"], ["c"]]reads "(aorb) andc". Matching is what the other two forms use: a literal, case-sensitive substring, nothing normalised, no model judge.The key name and the report of an unmet group (both the author's choice on this card):
must_contain_anyin the eval JSON;mustContainAnyon the parsed case.gradeAnswerreturnsunmetAny, the unmet groups, each group whole and in the case's order. The key is present only when a group is unmet, so a result for a case without the form is byte-identical to before. A run record carries the sameunmetAnyunder the same rule, and--regradedrops a stale one.CaseScore.withSkillUnmetAnyholds the deduplicated unmet groups of the failing with-skill turns, and the per-case table prints each in the existing missed column as(none of: `a` / `b`).The reader (
cases.ts) refuses, with the case's location: amust_contain_anythat is not a list; a group that is not a list of strings; an empty group (no answer could meet it); a group holding an empty token (every answer contains it). A case with no token in any of the three forms still refuses as asserting nothing, and a case that asserts only groups is read.The hash.
hashCaseincludes the groups only when a case has any. Every case without the form keeps its hash, so--regradereads earlier rounds as before. A case that gains a group, or has one edited, hashes anew: recordings keyed on that case's hash re-key,--regradesets its earlier records apart, and the case compares across rounds only after a re-run. Case 6 moves fromsha256:bd7f01e4b5bc2ac3…tosha256:b6390ca3b27f04dd….Case 6 of
skills/objectstack-ai/evals/skills-tools-knowledge.json:One group of four: the permission name the skill says does not decide the item (
ai:approve), where deciding happens (signed-in session), and two refusal terms (refused,never decides). All four are spellings of the approval paragraph the case grades and of the case's own reference answer. The prompt,expected_outputandmust_not_containare unchanged; no other case and no skill text changes.Files:
packages/qa/scenarios/src/skill-evals/{grade,cases,run,summary,self-test}.ts,packages/qa/scenarios/README.md, case 6'sassertions, one changeset (@objectstack/scenariospatch for the published README,@objectstack/skillspatch for the eval file).Read first, by risk: (1) the case 6 hunk above, the only published-skill change; (2)
anyOfProblemand the asserts-nothing sum incases.ts; (3)gradeAnsweringrade.ts.Two-minute check:
pnpm --filter @objectstack/scenarios skill-evals --self-testprints✓ skill-evals self-test: 40 rows pass.Tests
All on head
07fe4d2fa8.✓ skill-evals self-test: 40 rows pass.(34 before). Six new rows:must_containandmust_not_containdecide as before, and a second unmet group fails;--regradesets the earlier record apart;gradeAnswermutated to treat every group as met (scripts/ablation-replace.mjs, anchor 1 to 0, blob33487785e247tod9ab5806089f). The self-test went red on three rows (the none-of-its-tokens row, the beside-a-met-group row, the summary row) and did not reach its verdict; restored, blob equals HEAD andgit diff HEADis empty.pnpm --filter @objectstack/scenarios typecheck: exit 0.Test Files 45 passed (45),Tests 1395 passed (1395),VERDICT command-exit 0. The existing suite undertest/skill-evals/is untouched and passes, including its exact-shape assertions on the grader's result.node scripts/check-skills-token-ratchet.mjs: exit 0, no ceiling raised (the script is not in the diff).Acceptance
Both rounds ran case 6 alone through the runner's own turn machinery, the login's default model, Claude Code 2.1.332, 10 draws per arm, no invalid or error turn.
f0bbe3940emain(both ofsigned-in session,refused)07fe4d2fa8The bar is at least 8/10 with the skill and at most 2/10 without: round B meets it. No retune was made.
ai:approve; the tenth says the calls "are refused". Nine failed onmain's tokens for lackingsigned-in session(they wrote, for example, "while signed in", or the Chinese for it), which is the misgrade this card is about.pendingActions.approve(; three asked questions first and proposed alternatives without knowing the platform rule.ai:approvein eight,refusedin eight,never decidesin three,signed-in sessionin one). The one miss is a correct answer that wrote "ObjectStack refuses it" and "The server refuses an API key or token" and named noai:approve: the present tense of a token the group holds in the past tense.pendingActions.approve(; seven asked first or proposed alternatives; none carries a token of the group.Acceptance notes
ui/scripts/check-skill-eval-tokens.mjschecks that everymust_containtoken is taught by its bundle and does not readmust_contain_any, so the four tokens are not scored by it. Read by hand: each occurs inskills/objectstack-ai/SKILL.md(ai:approve1,signed-in session1,never decides1,refused9). That gate stays green on this head (exit 0). Extending it to the new form is outside this card's file surface.ai:approve. It is inside the bar and is left as measured.ai:approve.Verification
node scripts/pm/dispatch-gates.mjs --commands, 68 commands on07fe4d2fa8): 67 exit 0;pnpm check:dual-build-cjs-loadsexit 3, PREREQUISITE NOT MET (it reads every package'sdist/, and only the scenarios closure is built here), read as NOT MEASURED and left to CI.--ranreconciliation:68 derived, 67 run, 1 NOT-MEASURED, 0 UNRUN, exit 0.check:nul-bytesexit 0;uicheck:skill-eval-tokensexit 0.test:repoand the full gate farm, reason: CI's.Deviations
preflight,planRound,executeRoundandsummariseRound, so arms, argv, grading and records are the runner's. The rounds' records are in the session scratchpad, not in the repository.packages/qa/scenarios/test/skill-evals/gained no case: it is outside the card's file surface, and the self-test carries the new coverage as the card asks.Generated by Claude Code