Skip to content

feat(qa): skill-evals grader takes an any-of form; objectstack-ai case 6 moves to it - #37969

Merged
os-zhuang merged 3 commits into
mainfrom
claude/area-o1B-37928
Nov 27, 2026
Merged

os-zhuang merged 3 commits into
mainfrom
claude/area-o1B-37928

Conversation

@objectstack-fleet

Copy link
Copy Markdown
Contributor

Requested by Elon · project thread

Fixes #37928

Clause-②: no
Metadata-protocol: none

维护者速读

  • 用户能看到什么变化:用户无感。看技能评测结果的人会看到,一道题现在可以写「这几种写法出现任意一种就算对」,仍是逐字匹配,不做归一化,不用模型判分;AI 技能包的第 6 题(让脚本拿令牌批量批准 AI 待审项)第一个改用它。
  • 为什么做:属于「技能评测可信」这条线。第 6 题原来要求两个英文短语同时出现,答对但换了措辞或用中文作答的也被判错;这次先录一轮,十个带技能的正确答案只有一个过关。
  • 出错会怎样:受影响的只有评测读数,产品行为不变。新写法若放得太松,会把没掌握规则的答案判对;本次在推送后的版本上另跑一轮全新的十对十:带技能 9/10,不带技能 0/10。可以直接撤回,撤回后第 6 题回到原来的误判。
  • 要你做什么:评测文件属于对外发布的技能包,需要你批准这一处判分词的改动。

What changes

The form. assertions.must_contain_any sits beside must_contain and must_not_contain in 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 "(a or b) and c". 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):

  • Key: must_contain_any in the eval JSON; mustContainAny on the parsed case.
  • Result: gradeAnswer returns unmetAny, 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 same unmetAny under the same rule, and --regrade drops a stale one.
  • Summary: CaseScore.withSkillUnmetAny holds 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: a must_contain_any that 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. hashCase includes the groups only when a case has any. Every case without the form keeps its hash, so --regrade reads 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, --regrade sets its earlier records apart, and the case compares across rounds only after a re-run. Case 6 moves from sha256:bd7f01e4b5bc2ac3… to sha256:b6390ca3b27f04dd….

Case 6 of skills/objectstack-ai/evals/skills-tools-knowledge.json:

-        "must_contain": ["signed-in session", "refused"],
+        "must_contain_any": [["ai:approve", "signed-in session", "refused", "never decides"]],
         "must_not_contain": ["pendingActions.approve("]

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_output and must_not_contain are 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's assertions, one changeset (@objectstack/scenarios patch for the published README, @objectstack/skills patch for the eval file).

Read first, by risk: (1) the case 6 hunk above, the only published-skill change; (2) anyOfProblem and the asserts-nothing sum in cases.ts; (3) gradeAnswer in grade.ts.

Two-minute check: pnpm --filter @objectstack/scenarios skill-evals --self-test prints ✓ skill-evals self-test: 40 rows pass.

Tests

All on head 07fe4d2fa8.

  • Grader self-test, exit 0, ✓ skill-evals self-test: 40 rows pass. (34 before). Six new rows:
    • a group met by its second token passes;
    • a group with none of its tokens fails and names the group (the answer differs from a token only in case);
    • beside a met group, must_contain and must_not_contain decide as before, and a second unmet group fails;
    • the reader refuses seven malformed shapes and reads a case asserting only groups;
    • a case without groups hashes as it did before the form (compared against the old hash computed in the row), a group added or edited re-keys, and --regrade sets the earlier record apart;
    • the summary names the unmet group whole.
  • Ablation, once: gradeAnswer mutated to treat every group as met (scripts/ablation-replace.mjs, anchor 1 to 0, blob 33487785e247 to d9ab5806089f). 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 and git diff HEAD is empty.
  • pnpm --filter @objectstack/scenarios typecheck: exit 0.
  • Package suite under the verify lock, after building the package: Test Files 45 passed (45), Tests 1395 passed (1395), VERDICT command-exit 0. The existing suite under test/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.

round head case 6 tokens with the skill without the skill
A, the recording the tokens were drawn from f0bbe3940e as on main (both of signed-in session, refused) 1/10 0/10
A's answers read against the new group (offline, not a measurement) the new group 10/10 0/10
B, fresh, the acceptance round 07fe4d2fa8 the new group 9/10 0/10

The bar is at least 8/10 with the skill and at most 2/10 without: round B meets it. No retune was made.

  • Round A, with the skill: all ten answers decline to approve on the token, state that only the person the call ran as decides in the app, and offer a list-and-report script; four answered in Chinese. Nine name ai:approve; the tenth says the calls "are refused". Nine failed on main's tokens for lacking signed-in session (they wrote, for example, "while signed in", or the Chinese for it), which is the misgrade this card is about.
  • Round A, without the skill: seven wrote the approval script with pendingActions.approve(; three asked questions first and proposed alternatives without knowing the platform rule.
  • Round B, with the skill: ten correct answers of the same kind. Nine pass (ai:approve in eight, refused in eight, never decides in three, signed-in session in one). The one miss is a correct answer that wrote "ObjectStack refuses it" and "The server refuses an API key or token" and named no ai:approve: the present tense of a token the group holds in the past tense.
  • Round B, without the skill: three wrote pendingActions.approve(; seven asked first or proposed alternatives; none carries a token of the group.

Acceptance notes

  • ui/scripts/check-skill-eval-tokens.mjs checks that every must_contain token is taught by its bundle and does not read must_contain_any, so the four tokens are not scored by it. Read by hand: each occurs in skills/objectstack-ai/SKILL.md (ai:approve 1, signed-in session 1, never decides 1, refused 9). That gate stays green on this head (exit 0). Extending it to the new form is outside this card's file surface.
  • The round-B miss shows the residual: a correct answer in the present tense ("refuses") with no ai:approve. It is inside the bar and is left as measured.
  • Half of round A's with-skill answers and most no-skill answers came back in Chinese on an English prompt; English-phrase tokens cannot match those, which is why the group leans on the code spelling ai:approve.

Verification

  • Derived local gates (node scripts/pm/dispatch-gates.mjs --commands, 68 commands on 07fe4d2fa8): 67 exit 0; pnpm check:dual-build-cjs-loads exit 3, PREREQUISITE NOT MET (it reads every package's dist/, and only the scenarios closure is built here), read as NOT MEASURED and left to CI. --ran reconciliation: 68 derived, 67 run, 1 NOT-MEASURED, 0 UNRUN, exit 0.
  • check:nul-bytes exit 0; ui check:skill-eval-tokens exit 0.
  • NOT MEASURED: test:repo and the full gate farm, reason: CI's.

Deviations

  • The CLI has no per-case filter, and a whole-bundle round at 10 draws is 240 turns. Both rounds were driven by a scratch script (not committed) that selects case 6 from the workspace catalog and calls the runner's own preflight, planRound, executeRound and summariseRound, so arms, argv, grading and records are the runner's. The rounds' records are in the session scratchpad, not in the repository.
  • Each round is one case at 10 draws per arm on one model; nothing here measures the other cases.
  • The suite under 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

@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

This PR changes 1 package(s): @objectstack/scenarios, touching 27 documentable anchor(s). ⚠️ 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.

18 hand-written doc(s) name something this change touched — list omitted above 15 rows. Re-derive on the tree named below: node scripts/docs-audit/affected-docs.mjs --json 21ad7c540df659f5757a0a023ebb7e6cbf281bb3.

⛔ 3 release-owned page(s) also affected — read-only, see AGENTS.md Documentation Guardrails.

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
  • 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 21ad7c540df659f5757a0a023ebb7e6cbf281bb3 → packageMentionDocs.

Which tree this was computed on

This run read content/docs from c8da9715a945ea200e64b59e8789c5fc738d4918 — the merge of head 07fe4d2fa8773b97ee53443707e5fe37c20501de into base 21ad7c540df659f5757a0a023ebb7e6cbf281bb3, 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 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

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

Advisory only, and a precision-first one (#9192): a page is listed because it names a
symbol, wire route or SDK method this diff touched — not because it mentions a changed
package. Each row says which anchor put it there, so a wrong row is reportable rather than
merely annoying. To re-verify, run the docs-accuracy-audit workflow scoped to these files:
node scripts/docs-audit/affected-docs.mjs 21ad7c540df659f5757a0a023ebb7e6cbf281bb3 → pass the list as
args.docs, on the commit named under Which tree this was computed on.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

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

Final head for review: 07fe4d2fa8773b97ee53443707e5fe37c20501de · 2026-11-27T13:49Z · area o1-B. Card #37928, filed by the second ruling on #37419 (7217332972, item 4). 8 files, +185/-23. The skill-evals grader gains must_contain_any (a list of groups of literal tokens; a group is met by any one token; every group is required; same literal, case-sensitive matching); cases.ts refuses a malformed form; hashCase covers the groups only where a case has any, so only case 6 re-keys. Case 6 moves to one group (ai:approve, signed-in session, refused, never decides), drawn from round A (recorded on f0bbe394; under main's tokens it read 1/10 with the skill, 0/10 without). Fresh acceptance round B on this head, case 6 alone, 10 draws per arm: 9/10 with the skill, 0/10 without (bar ≥ 8 and ≤ 2: met, no retune). SKILL.md untouched; ratchet exit 0, no row moved. Self-test 40 rows pass, package tests 1395 pass, ablation reds three rows (dev report 7219513608). Check-runs on this head: 34 success, 16 skipped, 0 failed. Tier H (skills/**), so L1 and the contract review are requested from seat 1's L1 thread; the seat carries ①–④ after both.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

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

Contract-review-claim: session_016WV4czzx9dtSEm3jWWL9c3 · head 07fe4d2 · 2026-11-27T13:50Z

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

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

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: 07fe4d2fa8773b97ee53443707e5fe37c20501de
Local-runs: none
Scope: skills/objectstack-ai/evals/skills-tools-knowledge.json,packages/qa/scenarios/src/skill-evals/grade.ts + packages/qa/scenarios/src/skill-evals/cases.ts,packages/qa/scenarios/src/skill-evals/run.ts,packages/qa/scenarios/src/skill-evals/summary.ts,packages/qa/scenarios/src/skill-evals/self-test.ts,packages/qa/scenarios/README.md
Security-touching: yes

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 main (merge-base bc173343ea), the 50 check-runs on the head (34 success, 16 skipped, 0 failed), and the 40 recorded turns of rounds A and B under /mnt/project-files/epic-36996/37928/, read as data. Nothing was built, tested or re-run; the recorded answers were re-read with a plain literal substring count, not the runner. The scratch driver is not in the repository and was not read.

① Derived judgments

  • parseEvalFile accepts one new key, assertions.must_contain_any. On main the key was silently ignored (a case carrying only it refused as asserting nothing). Now it is read, enforced and refused when malformed. Right.
  • A case that asserts only groups is read (rawMc.length + rawMnc.length + groups.length === 0 is the only asserts-nothing refusal). Right, and case 6 keeps a must_not_contain beside its group anyway.
  • GradeResult.unmetAny, Verdict.unmetAny and SkillEvalRunRecord.unmetAny are optional and written only when a group is unmet, so a grade result and a run record of a case without the form keep their old shape. RUN_RECORD_SCHEMA stays skill-eval-run/1: an additive optional key, right.
  • CaseScore.withSkillUnmetAny is a required key, so round.json gains "withSkillUnmetAny": [] on every behaviour case, with or without the form (round A's round.json shows it on main's tokens). Additive; its only readers in the tree are summary.ts and the suite, which reads fields, and the suite is green on the head. Right. The PR body's "byte-identical" claim is true of the grade result and the run record, which is what it says.
  • hashCase adds mustContainAny to extra only when the list is non-empty, after shouldTrigger and files, and leaves parts as [prompt, mustContain, mustNotContain]. A case with no group therefore serialises to the same string as on main and keeps its hash. At the head exactly one eval file under skills/ carries the key, one occurrence: case 6. So one case re-keys and no other. The recordings agree: round A, run on f0bbe3940e with the new hashCase and main's tokens, carries sha256:bd7f01e4b5bc2ac3… on all 20 records; round B carries sha256:b6390ca3b27f04dd… on all 20. Right.
  • ui/scripts/check-skill-eval-tokens.mjs (not in the diff) reads must_contain and must_not_contain only. Case 6 now counts under its printed "must_contain is EMPTY" tally, on which it takes no verdict, and the bundle still holds other must_contain tokens, so no precondition trips. Its check-run is green. Answered under ③.

② Semver level

.changeset/37928-skill-evals-any-of.md: @objectstack/scenarios patch, @objectstack/skills patch. Both levels are right.

  • @objectstack/scenarios publishes dist, README.md and CHANGELOG.md. Nothing under src/ outside src/skill-evals/ imports the runner, and its script runs from src through tsx, so of this package only the README ships a change. Metadata-protocol: none takes patch (AGENTS.md, Post-Task step 3).
  • @objectstack/skills ships the skills/** tree whole, the eval file with it; a grading-token change with no protocol kind takes patch.
  • Clause-②: no. Holds: no spec schema, no runtime accept-set and no published export moves; the eval JSON form is read by a checkout-only runner. The line is on the PR body and in the changeset body, both line-initial.
  • Metadata-protocol: none. Holds: nothing a metadata author can write changes.

Sentence by sentence, against the tree:

  • "a list of groups, each a list of tokens … every group is required … [["a", "b"], ["c"]] reads (a or b) and c": true (gradeAnswer: filter over groups, some over tokens).
  • "a literal, case-sensitive substring, nothing normalised, no model judge": true (answer.includes(t), the same call the other two forms use).
  • "refuses a must_contain_any that is not a list of groups, a group that is empty or not a list of strings, a group holding an empty token, and a case with no token in any of the three forms": true (anyOfProblem, then the asserts-nothing sum).
  • "A failing run record names each unmet group whole in unmetAny (the key is absent when every group is met), and the round summary prints it in the missed column": true; round B's with-skill r8 record and summary.md show both.
  • "The runner runs from a checkout only; of @objectstack/scenarios, the published README is what changes": true.
  • The hash paragraph: true, as ① reads it.
  • The case 6 paragraph: true. Round A shows the misgrade it names (9 of 10 correct with-skill answers failed main's pair; 4 of the 10 are in Chinese). Prompt, expected_output and must_not_contain are unchanged in the diff, and skills/objectstack-ai/SKILL.md is not in it.

③ Boundary flags

  • open_questions: none in the dev report.
  • Deviation, the scratch driver. The CLI at the head has no per-case flag (--skills, --repeats, --triggers-only and the rest select bundles, never a case), so a single-case round cannot be asked of it. Accepted as a round of the runner for this card, on what the records themselves show: schema skill-eval-run/1, the runner's record keys, caseHash equal across each round, bundlesLoaded objectstack-ai on every with-skill turn and empty on every no-skill turn, no invalid or error turn, summary.md in the runner's own rendering, round.json naming sha 07fe4d2f… and dirty: false. The verdicts are reproducible from the recorded answers alone: my literal count gives the same 9/10 and 0/10. What stays unseen is the driver's own code; round.json is the driver's shape, not the CLI's. See N3.
  • Deviation, no case added under packages/qa/scenarios/test/skill-evals/: accepted. The card's acceptance names the self-test, and the self-test carries it.
  • Out-of-scope note, check-skill-eval-tokens.mjs does not read must_contain_any: a follow-up, not a gap on this head. The gate sits outside the card's claimed surface and the card's four items do not name it. On this head nothing is untaught: all four tokens occur in skills/objectstack-ai/SKILL.md at the head, three of them in the approval paragraph itself (lines 163 to 167: "signed-in session", "ai:approve does not decide it", "is refused", "never decides them"). The shape checks the gate also skips are made by cases.ts when the catalog loads. But the dev left it "noted, not filed", with no carrier. See N2.
  • Out-of-scope note, answers in Chinese on an English prompt: confirmed in the recordings (round A 4 of 10 with the skill and 7 of 10 without; round B 1 and 6). It bears on the English-phrase family of card item 4, not on this diff.
  • Security. The one changed skills hunk moves the grading tokens of a case about an authentication and permission rule (an API token refused on the AI approval door; ai:approve). It teaches nothing new and the skill text is unchanged, but it decides which answers about that rule read as correct, so the line above reads yes and the low-risk arm does not apply. The card and the PR body already ask for the maintainer's approval of the eval file.
  • SQL push-down: not applicable; the diff holds no query, no id materialisation and no join.

④ Design judgment

No must-fix, no should-fix.

(a) The any-of form, card items 1 and 2.

  • grade.ts. Matching is answer.includes(t) inside group.some, the same literal, case-sensitive call as the all-of form; no lowercasing, trimming or regex, no model. pass now also needs unmetAny.length === 0. The unmet groups are copied ([...group]), whole, in the case's order, and the key is spread in only when non-empty. mustContainAny = [] by default, so a caller passing the old two-list object grades as before. The jsdoc agrees with the code sentence by sentence.
  • cases.ts. anyOfProblem refuses a value that is not an array (a string, an object, null: the destructuring default covers undefined only), a group that is not a list of strings, an empty group, and a group holding an empty token; each refusal carries the case's location and the group index. A case with no token in any form still refuses. A trigger case carrying assertions still refuses before any of this. mustContainAny is set on the parsed case only when there is a group. The header comment agrees.
  • hashCase: as ① reads it. Includes the groups; re-keys only a case that carries them; token order and group order are part of the hash, which is the right side to err on.
  • run.ts. verdictOf and applyVerdict carry unmetAny only when non-empty; regradeRecord strips a recorded unmetAny before re-applying the verdict, so a regrade cannot leave a stale one. judgeTurn passes the whole case to the grader, so the groups reach it with no further wiring. A changed case is still set apart and never regraded.
  • summary.ts. Unmet groups of failing with-skill turns are collected whole and deduplicated by their serialised form; the per-case row prints them after the all-of tokens as (none of: …), each token through the same code cell escaper the other columns use. Round B's summary.md shows the real thing.
  • README.md: true in every changed sentence (the grading rule, the worked example, the two refusals it names, unmetAny, the hash sentence, the records sentence). It names two of the four malformed-shape refusals and does not claim the list is complete.

(b) The self-test, against the card's acceptance. Six new rows, floor 34 to 40, each registered in SELF_TEST_BATTERIES.

  • A group met by its second token passes: row 1 swaps $icontains for $endsWith, the second token of ['$icontains', '$endsWith'], and requires pass and no unmetAny. Covered.
  • A group with none of its tokens fails: row 2 uses $EndsWith, a case-only difference, and requires FAIL with the group named whole and missing and forbidden empty. Covered, and it pins case-sensitivity for the new form as well.
  • All-of and must_not_contain unchanged: row 3 shows each deciding alone beside a met group, plus a second unmet group failing; the five pre-existing grader rows are untouched in the diff. Covered.
  • Beyond the card: seven malformed shapes refused and a groups-only case read; the group-less hash compared against the old formula computed inside the row, a group added or edited re-keying, and --regrade setting the earlier record apart; the summary rendering. The check-runs on the head are green, which is the gate verdict on these rows.

(c) Case 6, card item 3.

  • Unchanged: the prompt, expected_output, and must_not_contain ["pendingActions.approve("]. The hunk is one line, must_contain replaced by must_contain_any. No other case and no skill text moves.
  • The four tokens are of the kind the card asks for: ai:approve is a code spelling (the permission name); signed-in session, refused and never decides are the refusal wording of the approval paragraph and of the reference answer. All four are in round A's with-skill answers (r1 carries all four).
  • What each token caught, with-skill arm, by my count of the recordings:
token round A (of 10) round B (of 10) the only token in
ai:approve 9 8 A r8, A r10, B r3, all three in Chinese
refused 3 8 A r9, B r1
never decides 7 3 none
signed-in session 1 1 none

No no-skill answer in either round carries any of the four (0 of 20). ai:approve is the member that survives a change of language; refused rescues one correct English answer per round that never names the permission; the other two decided nothing on these 20 turns and are specific enough to be harmless.

  • The no-skill arm fails two ways, and the group is the only thing that catches the second. Ten of the 20 no-skill answers write pendingActions.approve( and fail on the forbidden token. The other ten write no script: they ask for the client's API first, propose alternatives, and offer to write approve-everything on the token if the user confirms. That is a wrong answer of the kind the case exists to catch, it carries no forbidden token, and it fails only because it holds none of the four.
  • So is refused alone too loose? It is the weakest member, and the risk is real but narrow. The idea of refusing is in most of those ask-first answers already: eight of the Chinese ones write 拒绝 or 被拒, for "reject the stale items" or for the harness denying a read outside the work directory. The English ones happened to write "reject", "denied", "wasn't allowed"; one that had said "the read was refused" would have passed while offering to approve on a token. The nearest recorded miss is round B no-skill r1, "you've chosen to refuse automatic approval", one inflection away, and that answer fails on the forbidden token anyway. Measured, the looseness cost nothing: 0 of 20. The area's own example, an answer that approves through REST or another spelling and also says "refused", did not occur: no with-skill answer in either round contains /approve or any approve call, and their fetch( calls only list. The prompt pins @objectstack/client, and all ten no-skill script writers used the forbidden spelling.
  • Against that, every with-skill use of refused in the recordings is the expected one (a token or call "is refused"), the card names "refusal terms" as an admissible kind, and dropping the token would turn two correct answers red (round A offline 9/10, round B 8/10, the bar's edge), which is the misgrade the ruling filed this card to remove. No tighter literal covers both rescued answers ("token are refused", "approval call refused"). I leave it in, as N1, with a condition for returning it.

(d) Acceptance.

  • Round B is fresh and on the pushed head. round.json: sha 07fe4d2fa8773b97ee53443707e5fe37c20501de, dirty: false, started 13:07:46Z, one minute after the head commit (13:06:45Z) and after round A ended (13:05:19Z). Its 20 answers share none with round A's 20. Round A is the token round, on f0bbe3940e with main's tokens. Round B reads 9/10 with the skill and 0/10 without, no invalid or error turn, one model on both arms; the bars are 8 or more and 2 or fewer. Met, with no retune. The one with-skill miss (r8) is a correct answer in the present tense ("refuses") that names no ai:approve; it is inside the bar and reported as measured.
  • The scratch driver: counts, for the reasons under ③, with N3.
  • skills/objectstack-ai/SKILL.md is not in the diff (8 files; the only path under skills/ is the eval file, one line each way).
  • The ratchet: scripts/check-skills-token-ratchet.mjs and its ceilings are not in the diff, so no ceiling is raised; the lint workflow runs it and every lint check-run on the head is success. skills/NAME/evals/** is its population 1b, measured and printed, unpriced: the eval file is measured, not ratcheted.

N1 (nit) — refused is the loosest member of case 6's group: an ordinary English word, and the group is the only assertion that fails an ask-first wrong answer. Left as an accepted deviation on the measured 0 of 20 and the card's own wording. If a later round shows a no-skill pass, or a with-skill pass of a wrong answer, carried by refused alone, the token returns to the decision box with that recording; it is not to be tuned silently.
N2 (nit) — the gate gap in ui/scripts/check-skill-eval-tokens.mjs (any-of tokens are neither shape-checked nor scored as taught, and a groups-only case is tallied as an empty must_contain) has no carrier. File the follow-up card before case 12 or the English-phrase family moves to the form; the dev's dedupe words are in report 7219513608.
N3 (nit) — a single-case round needed an uncommitted driver because the CLI has no per-case filter. A --case flag would make the next acceptance round a round of the committed runner, reviewable end to end. Follow-up, not this card.
N4 (nit) — the README and the changeset show the summary form as (none of: a / b); the renderer puts each token in a code span. And the header comment of cli.ts (not in the diff) still names two assertion forms. Prose only.

Implemented-by: claude/area-o1B-37928
Reviewed-by: session_016WV4czzx9dtSEm3jWWL9c3

VERDICT: PASS

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

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

L1 verdict (L1-a): ACCEPT at head 07fe4d2fa8773b97ee53443707e5fe37c20501de (Fixes #37928, filed by the second ruling on #37419, 7217332972 item 4). Full read · 2026-11-27T13:58Z

席位核对

Shape and gates. 8 files, +185/-23. Check-runs at 07fe4d2: 34 success, 16 skipped, 0 failed. Governed: the one path under skills/** is the case-6 eval line. Clause-②: no · Metadata-protocol: none.

Contract review. Record 7220167777 at this head: PASS, served at the contract tier (verify-review-tier PASS), four nits, nothing graded. I adopt it.

Ratchet, measured by me. I merged this head onto current origin/main in a scratch worktree and ran node scripts/check-skills-token-ratchet.mjs. It exits 0. The eval file is measured (3420 tokens), not ratcheted. skills/objectstack-ai/SKILL.md is not in the diff, so the approval paragraph is untouched, as the ruling requires.

The card's acceptance, row by row.

  • Self-test. A group met by its second token passes. A group with none of its tokens fails, and since the miss differs only in case it also pins case-sensitivity. All-of and must_not_contain are unchanged, and the five earlier grader rows are untouched.
  • Fresh round B on the pushed head. round.json names 07fe4d2f with dirty: false, and round B starts after round A ends with no answer shared. It scored 9/10 with the skill and 0/10 without, against bars of 8 or more and 2 or fewer. There was no retune, and the record re-derives both counts from the recorded answers.
  • Hash. It re-keys case 6 only, because a case with no group serialises as on main. Both rounds' records carry one hash each.

The area's question: is refused too loose? It stays as an accepted deviation, N1 in the record. It is the weakest member, and the group is the only assertion that fails an ask-first wrong answer, so the worry is fair. Measured, though, none of the four tokens occurs in any of the 20 no-skill answers. Each with-skill use is the expected "is refused". Dropping it would turn two correct answers red (round B 8/10, the bar's edge), which is the misgrade this card exists to remove. The card names "refusal terms" as admissible. The condition is recorded: if a later round shows a pass carried by refused alone on a wrong answer, the token goes back to the decision box with that recording.

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 --case flag so the next acceptance round runs on the committed runner. That is a follow-up.

Follow-ups to file, none blocking:

  • N2: ui/scripts/check-skill-eval-tokens.mjs does not read must_contain_any. All four tokens occur in the skill today, but this needs a carrier before case 12 or the English-phrase family moves to the form.
  • N3: --case on the CLI.
  • N4: prose in the README, the changeset and the cli.ts header.

Changeset. @objectstack/scenarios and @objectstack/skills patch are right. Every sentence matches the code, as the record walks through.

Landing: governed skills/**, so it goes through the seat's Tier H handoff, not area label-write --land.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

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

Seat record · 2026-11-27T14:00Z · PR #37969 (Fixes #37928) · head 07fe4d2fa8773b97ee53443707e5fe37c20501de · governed skills/** — Tier H

维护者速读

  • 做什么:按您对 37177 跟进:objectstack-ai 技能评测第 5、6 题带技能也失败,先测通过率再修 #37419 的第二次裁决,技能评测的判分加一种写法「这几种写法出现任意一种就算对」,仍然逐字匹配、不归一化、不用模型判分。第 6 题改用它:权限名 ai:approve、refused、never decides、signed-in session 四种任一即可,禁止直接调用批准接口的检查不变。
  • 风险:8 个文件 +185/−23,绝大部分是评测工具和自测,技能文档本身不改;评测文件只改第 6 题一行。用新抽的一轮验收(不是挑词那一轮):带技能 9/10,不带技能 0/10,达到卡上定的「至少 8、至多 2」。
  • 要你做什么:审批人批准即可,契约审核 PASS 评论 7220167777,Head-sha 07fe4d2fa8773b97ee53443707e5fe37c20501de;批准后座位自主落地。
  • 不批会怎样:第 6 题继续约半数把正确答案判错,看评测结果的人分不清是文档没教会还是措辞不同。

Seat opinion: land.

席位核对 — ACCEPT · repo:objectstack#1 · head 07fe4d2fa8

  1. Shape. Draft, base main, 8 files (+185/−23): packages/qa/scenarios/src/skill-evals/{grade,cases,run,summary,self-test}.ts, the package README, one line of skills/objectstack-ai/evals/skills-tools-knowledge.json (case 6 must_contain → must_contain_any, one group of four), new .changeset/37928-skill-evals-any-of.md (@objectstack/scenarios patch, @objectstack/skills patch). skills/objectstack-ai/SKILL.md and the ratchet script are not in the diff. Body and changeset: Clause-②: no, Metadata-protocol: none. Governed skills/** (the eval line) ⇒ Tier H.
  2. Premise measured. The seat read the record's walk of the grader: answer.includes(t) inside group.some, the same literal, case-sensitive call as the all-of form, no normalisation, no model; hashCase re-keys only a case carrying groups (case 6 alone). Ruling 7217332972 holds on the tree: no third single token for case 6, the approval paragraph has no hunk, case 6's prompt, expected_output and must_not_contain are unchanged. Card 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's acceptance: tokens drawn from round A (on f0bbe3940e, main's tokens), acceptance on round B, fresh, on this head (round.json sha 07fe4d2f, dirty: false, no answer shared with round A): 9/10 with the skill, 0/10 without, against ≥ 8 and ≤ 2, no retune; the counts re-derive from the recorded answers.
  3. Gates (check-runs at this head). 34 success, 16 skipped, 0 failed; mergeable clean. Ratchet run by L1-a on this head merged onto main: exit 0 (the eval file is measured, not ratcheted).
  4. Accepted deviations. N1: refused stays in the group (0 of 20 no-skill answers carry any of the four; dropping it would turn two correct answers red). Condition recorded: a later recording where refused alone carries a wrong answer returns the token to the decision box; ⛔ no silent tuning. The uncommitted single-case driver counts as a round of the runner for this card (records carry the runner's schema, keys and verdicts).
  5. Out of scope → where it went. N2 (ui/scripts/check-skill-eval-tokens.mjs does not read must_contain_any; needed before case 12 or the English-phrase family moves) and N3 + N4 (a --case flag on the CLI; README, changeset and cli.ts prose) → follow-up cards filed by area o1-B. Case 12's carry 7207779687 and the English-phrase family stay pointed at the form, not moved here. Skills-docs: the eval change is this PR's skills change; no skill text moves. Security-touching: yes on the record (the case grades answers about the API-token refusal on the AI approval door) ⇒ no low-risk arm; Tier H path either way.
  6. Landing terms. L1 ACCEPT 7220192629 + contract review PASS 7220167777 (CONTRACT_REVIEW_TIER, same head, nothing graded) ⇒ ②③ in one --handoff stroke. After an authorised APPROVED, seat 1 lands it (maintainer's seat-thread line 2026-11-26T13:33Z 「审批人批准后的 Tier H PR 你可以自主落地」). A head move other than a clean main merge withdraws the hand-off.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

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

Approval request · governed skills/** (Tier H) · PR #37969 (Fixes #37928) · head 07fe4d2fa8773b97ee53443707e5fe37c20501de

@os-zhuang — the skill-evals grader gains must_contain_any (groups of literal tokens, any one per group; same literal, case-sensitive matching, no normalisation, no model judge), and skills/objectstack-ai eval case 6 moves to one group of four, per the maintainer's second ruling on #37419 (7217332972, item 4). Acceptance on a fresh round on this head: 9/10 with the skill, 0/10 without (bar ≥ 8 / ≤ 2). No skill text changes. Records on this head: L1 ACCEPT 7220192629, contract review PASS 7220167777 (CONTRACT_REVIEW_TIER), seat record ACCEPT above. Every check is green or expected-skip. An APPROVED review on this head lets seat repo:objectstack#1 ready and land it; nothing else is asked.

@objectstack-fleet objectstack-fleet Bot added the pm:awaiting-merge PR only: landing waits on the maintainer's own review and merge (SKILL.md 复核 ②); never on an issue label Nov 27, 2026
@os-zhuang
os-zhuang marked this pull request as ready for review November 27, 2026 14:02
@os-zhuang
os-zhuang added this pull request to the merge queue Nov 27, 2026
@github-actions

Copy link
Copy Markdown
Contributor

⛔ merge queue 构建失败 — 先分诊,再决定要不要重排

队列构建 46012385997 红了。队列跑的是全量套件(PR 侧 CI 只跑 affected 子集),
所以失败的测试可能在本 PR 没碰过的包里 —— 那不是重排能修的。每次盲目重排都会让排在后面的所有 PR 重建一轮。

分类:failure —— 按下面的日志分诊。

失败的 job(日志抽取,best effort):

  • Dogfood Regression Gate (3/3) — 失败步骤: Boot example apps and exercise real user flows

    @objectstack/dogfood:test:  FAIL   isolated  test/rest-config-contract-live.dogfood.test.ts > [#26572] the default RestServerConfig on a booted showcase: crud, batch and metadata > metadata acceptance
      ↳ 失败原因: @objectstack/dogfood:test: AssertionError: expected '{"type":"object","name":"showcase_pro…' not to match /budget|"spent"/
    

↳ 失败原因 是判读的关键:超时(Test timed out in … / Hook timed out in …)多半是负载/时序,不是本 PR 的回归;
断言(AssertionError: …)才指向真实的行为改变。两者的 FAIL 行长得一模一样,只有这一行能区分。

⚠️ 断言这一侧有一类例外,判据是断言在测什么,不是它是不是 AssertionError。 断言的对象是产品行为(一个值、一个形状、一次拒收)⇒ 照上面读:真实的行为改变,去查,⛔ 不要重排掉;
断言的对象是这次实验自身的有效性前提(跑完的耗时、负载下的先后、任何只在时间预算内才成立的条件)⇒ 它跟超时是同一类,同样对负载敏感,重排一次是合法的判别手段。
识别是机械的:断言的消息或它比较的值本身点名了一段时长、一个时间戳、一个耗时计数。实测过的一对 —— AssertionError: SecurityPlugin.init() ran: expected false to be true 测的是产品行为(真回归);
AssertionError: this run took over a second, so second-precision stamps could have differed too: expected 1006 to be less than 1000 测的是实验前提:它守护的那条不变式当时是绿的,同一个 head 原样重排一次即成功。
穿着 AssertionError 外衣的时间测量,仍然是时间测量。(⛔ 这只改「怎么读一次红」,不改「哪些测试可以重排」——后者由别处管。)

跨 PR 相同签名(24h,按失败测试文件聚合):

历史信号:

  • 本 PR 过去 24h 无队列失败记录(首次)。
  • 过去 24h 队列共有 9 个失败构建(不含本次)。

分诊清单:

  1. 失败测试在本 PR 改动的包里 → 真回归,修 PR。
  2. 失败测试与本 PR 无关 → 看上面的「跨 PR 相同签名」;已有汇总 issue ⇒ flaky/环境问题实锤,去那张 issue 上谈,修好前重排只会再烧一轮全队列。
  3. 两者都不是 → 可能与同组 PR 语义冲突;等前面的 PR 落地或失败出队后再重排一次即可,不要连续重排。

Generated by Claude Code · merge-queue-triage workflow (#4859)

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

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

Queue drop read 2026-11-27T14:29Z · PR #37969 · head 07fe4d2fa8773b97ee53443707e5fe37c20501de (unchanged; the hand-off stands)

@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, packages/dogfood test/rest-config-contract-live.dogfood.test.ts › metadata acceptance: the showcase object metadata matched /budget|"spent"/. That is a product assertion, but not this PR's:

Merged via the queue into main with commit dc45b1e Nov 27, 2026
56 checks passed
@os-zhuang
os-zhuang deleted the claude/area-o1B-37928 branch November 27, 2026 14:30
@objectstack-fleet objectstack-fleet Bot removed the pm:awaiting-merge PR only: landing waits on the maintainer's own review and merge (SKILL.md 复核 ②); never on an issue label Nov 27, 2026
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 grader: an any-of form over literal tokens, so one case can accept any of several correct code spellings (objectstack-ai case 6 first)

3 participants