Skip to content

feat(skills): trigger cases for the six metadata skills; eval assertions and prompts that grade the skill - #35022

Merged
os-zhuang merged 6 commits into
mainfrom
claude/issue-34789-skill-evals-trigger-cases
Nov 18, 2026
Merged

os-zhuang merged 6 commits into
mainfrom
claude/issue-34789-skill-evals-trigger-cases

Conversation

@objectstack-fleet

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

Copy link
Copy Markdown
Contributor

Requested by Yibo Wang · project thread
repo:objectstack#3 · os-support-ai · session_01WGufzfr1xZSFZzCR8HnqXX

Round 2 (c169dc85d5, after L1-e's review and the seat's contract review): the reader refuses a files entry that would land under a .claude/ directory, and the trigger-case paragraph below now describes the query and i18n negatives as they are.

Part of #34789. This PR is the cases and the runner's grading of trigger cases. The card's done-when also needs a model round and #34769 judged on the trigger cases. The round has since run on this PR's runner and cases (claude-haiku-5-5, effort medium, at 8d82dcb937, 476 of 476 turns) and its trigger results are posted as the before baseline for #34769; judging #34769 is still owed, so the card stays open.

Clause-②: no
Metadata-protocol: none

维护者速读

  • 改了什么:六个元数据技能(data、query、ui、automation、formula、i18n)各加 7 条触发用例,共 42 条,其中 12 条是不该加载技能的近似请求;skill-evals 运行器按“这一轮是否加载了技能”给触发用例打分,只跑装了技能的一臂,并在汇总里单列。另有 11 条已有用例的断言放宽成任何正确答案都能过;30 条提示词写明“当前目录没有项目文件”及答题所需的上下文;运行器开始支持用例的 files,并拒收会落到项目 .claude/ 下的路径(否则无技能一臂也可能拿到技能)。
  • 为什么改:[Decision] The published skills: who reviews a change, how they are verified, one catalog or two for code-first and MCP, and the E2 premise reading #34691 S2 裁定 A,本卡是 qa: a weekly runner for the published skills' existing eval cases (subscription login, with- and no-skill arms), and the eval lane's weekly line #34764 留下的那部分。上一轮跑出的失败里,有的只因断言要求某一种写法,有的只因提示词假设磁盘上有项目,与技能无关;而 skills: the six metadata skills trigger on what the user is doing, not on TypeScript file names #34769 改技能描述,需要触发用例才能比较改前改后。
  • 风险与回滚:只动评测用例(随 @objectstack/skills 发布,但在使用者项目里不起作用)和只能从检出运行的运行器,不进 CI,不拦合并,dist 里查不到新符号(已实测)。没改的用例哈希不变,旧轮次照常 --regrade;改过的 41 条在旧轮次重评时会被单列、不计入通过率。回滚即 revert 本 PR。
  • 先看:packages/qa/scenarios/src/skill-evals/run.ts(verdictOf 的触发分支和 loadEvidence,风险最高:判定“加载”的口径);skills/objectstack-data/evals/triggers.json(触发用例的形状和反例的选法);packages/qa/scenarios/src/skill-evals/cases.ts(读取器的拒收规则)。
  • 两分钟验证:pnpm --filter @objectstack/scenarios skill-evals --dry-run,应看到 217 behaviour case(s) × 2 arms + 42 trigger case(s) × the with-skill arm, × 1 = 476 turn(s) 和 30 should load the bundle, 12 should not。
  • 需要你做的:本 PR 改了 skills/**(受管面 Tier H),请审批;落地由席位完成。

What changes

Trigger cases (scope item 3). The six metadata skills named by #34769 (objectstack-data, objectstack-query, objectstack-ui, objectstack-automation, objectstack-formula, objectstack-i18n) each gain evals/triggers.json: 7 cases each, 42 in all, 12 negative (29 percent; the card asks for at least one in ten). Each bundle has 5 positives (two phrased as building over MCP with no project files, the phrasing #34769 targets; two plain intents; one in Chinese) and 2 negatives. In four bundles (objectstack-data, objectstack-ui, objectstack-automation, objectstack-formula) the pair is a neighbouring skill's task inside ObjectStack, which a "Not for" clause should send elsewhere, and a near miss outside ObjectStack. objectstack-query's two are both neighbouring-skill tasks inside ObjectStack: a select field on ticket (data) and a filtered list view on ticket (ui). objectstack-i18n's two are both near misses outside ObjectStack: react-i18next in a plain React app, and Intl.NumberFormat in a Node.js script.

The shape is the existing case entry with "should_trigger": true | false in place of assertions: { "id", "prompt", "should_trigger", "files": [] }. The runner (packages/qa/scenarios/src/skill-evals/):

  • reads it strictly. A trigger case carrying assertions, a non-boolean should_trigger, and a bundle whose trigger cases are all of one kind are refused with a location;
  • plans it on the with-skill arm only, since nothing can be loaded without the bundle;
  • grades it on the turn, never the answer. The turn loaded the bundle when it launched it with the Skill tool or read a file under its .claude/skills/BUNDLE/; the record's trigger.loadedBy says which. The card's round saw the model reach skill text by reading files more often than by the Skill tool, so both count, and the summary shows them apart. A turn that loaded the bundle is judged however it ended. One that did not is judged only on a success result, and is error otherwise (out of the denominator), because a turn cut short may have been about to load it;
  • reports trigger cases in their own summary section beside the behaviour cases and never inside their pass rates: per bundle, loaded when it should, left alone when it should not, missed loads and false loads, and per case the Skill-tool or read-only split. --regrade keeps trigger cases planned and regrades them from the records;
  • records skillFilesRead on every turn, behaviour cases included.

hashCase adds the trigger kind and a non-empty files list only when a case has them, so every unchanged behaviour case keeps its hash and old rounds regrade as before.

files (scope item 2). files was read by nothing. An entry is now a path under the bundle's evals/files/; the reader refuses anything else, and the catalog refuses a path the bundle lacks. The reader also refuses an entry with a .claude segment below evals/files/ (any depth, any letter case): every case file reaches both arms, and .claude/ is where Claude Code finds skills, so such a file could hand the no-skill arm a skill without verdictOf calling the turn invalid. .mcp.json is left alone, since the arms run with --strict-mcp-config. It is copied, a directory whole, into both arms' directories at its path below evals/files/. No case needs it today: every case that read as if a project were on disk was answerable once its prompt said so, which the card prefers.

Prompts that state their context (scope item 2). Thirty prompts that named a project file to create or fix, or referred to "our app" state the model would go looking for, now end with one sentence saying none of the project's files are in the directory and what the answer should carry (the file, the change, the commands). Two needed facts as well: objectstack-api/endpoints-auth-routes#2 named "the lead feed" defined only by case #1, and now describes it; #6 asked to "fix the import body" without giving it, and now gives it. objectstack-ai/skills-tools-knowledge#5, whose right answer refuses the requested file, says "answer from what is stated here" so the sentence does not push toward writing that file.

Changed: objectstack-ai/skills-tools-knowledge#1 #4 #5, objectstack-api/endpoints-auth-routes#1 #2 #6, objectstack-automation/flows-triggers-approvals#5, objectstack-data/objects-fields-relationships#1 #9, objectstack-i18n/bundles-locales-coverage#2 #4, objectstack-platform/config-plugins-ops#1 #3 #5 #7 #8 #17 #21, objectstack-ui/views-apps-actions-pages#1 #2 #4, objectstack-ui/record-page#3, objectstack-upgrade/protocol-major-upgrade#1 #2 #3, objectui/page-builder#2 #3 #4, objectui/project-setup#3, objectui/data-integration#3.

Assertion review (scope item 1). Every case's assertions in all 12 bundles were read once, with each must_contain token checked mechanically against the bundle's non-eval text and the prompt. A token was changed only when one of these was demonstrated: it is absent from both the skill and the prompt and is one spelling of the answer; the prompt itself spells the answer another way; it names a value the author is free to choose; it is a whole compound expression whose formatting is free; or, for a forbidden token, the prompt or the skill carries it verbatim, so a right answer that names what is wrong quotes it. Eleven cases changed:

case was now why
objectstack-automation/flows-triggers-approvals#13 must hotcrm.custom must .custom absent from the automation skill, which says "the base's paired .custom package"; any answer naming the pair carries .custom
objectstack-i18n/bundles-locales-coverage#10 forbid verdict: { forbid verdict: { summary: ' a right answer quotes the nested shape as the wrong one; narrowed to the nested key authored with a string value
objectstack-data/hooks-security-seeds-datasources#14 forbid **** forbid '138**** the prompt and the skill (references/seeds.md: no 138****4207) both carry the masked form, so a right answer naming what is refused quotes it; narrowed to the masked value as an authored string
objectstack-data/objects-fields-relationships#10 forbid required: true forbid required: true, and required: true } the prompt asks for required; a right answer declines it by name; narrowed to the key as authored inside an object
objectstack-data/objects-fields-relationships#12 must filter: { status: 'completed' } must filter: the prompt names neither the status field nor its stored value; the forbidden Chinese-value tokens still carry the case
objectstack-data/objects-fields-relationships#14 must value: 'active' must value: ' the stored value for 合作中 is the author's choice; the forbidden value: '合作中' still carries the case
objectstack-ui/views-apps-actions-pages#16 must the whole read: { url: '…' } object; must seed: [{ param: 'plan_token', path: 'token' }] must the URL /api/v1/packages/${ctx.recordId}/upgrade-plan?version=${param.version}; must seed: and path: 'token' a whole object as one string binds the formatting; plan_token is the author's name for the param
objectstack-ai/skills-tools-knowledge#5 forbid defineAgent( forbid defineAgent({ the prompt asks for that call and a right answer refuses it by name (defineAgent()); narrowed to the authored call
objectstack-ai/skills-tools-knowledge#6 must pendingActions.list dropped absent from the AI skill, which names the list door GET /api/v1/ai/pending-actions; the refusal tokens carry the case
objectui/testing#2 must React Testing Library must @testing-library/react the prompt says "RTL"; a right answer can be all code, and every RTL test imports this module
objectstack-upgrade/protocol-major-upgrade#3 must never executed; forbid type: 'javascript' dropped; forbid transform: { type: 'javascript' the skill says "never ran" and "unexecuted"; the prompt carries the forbidden token verbatim (as transform` = { type: 'javascript' …), narrowed to the re-authored transform

Tests

  • packages/qa/scenarios/test/skill-evals/skill-evals.test.ts: two new describe blocks, 11 tests. They cover the reader (trigger kind, refusals, the one-kind bundle refusal, files paths), the judge (loaded by Skill launch or by read; a same-prefix bundle or another skill is not a load; loaded turns judged on any ending; an unloaded cut-short turn is error; the no-skill arm is invalid), hash stability for an unchanged behaviour case, a round planning trigger cases on one arm and the summary tallying them apart, --regrade keeping trigger cases planned, files placed on both arms, and files entries under .claude/ refused (.claude-notes.md, claude/ and .mcp.json still read).
  • --self-test: 9 new rows (roster 21 → 30, floor pinned at 30), run against the real catalog from the CLI.
  • Ablation, one behaviour (trigger grading by a read), on the committed tree: deleting the read-evidence line in loadEvidence via scripts/ablation-replace.mjs turned 4 tests red (two trigger tests, and the two --self-test can fail tests through the self-test's own trigger row); restored, git diff HEAD empty, blob equal to HEAD. The suite imports src/ directly, so no rebuild was involved.
  • Ablation, round 2 (the .claude refusal), on the committed tree: replacing the refusal's condition with if (false) { via scripts/ablation-replace.mjs (anchor 1 → 0, blob e5f089ae1d12 → 2e9983a9bf81) turned 3 tests red: the new reader test, and the two --self-test can fail tests through the self-test's new row. Restored: blob equal to HEAD, git diff HEAD empty.

Acceptance notes

Verification

Head c169dc85d5 (round 2: the gates, the suite and the CLI runs below ran on it; round 1 ran them on 8d82dcb937).

scenarios package: typecheck and tests
  • pnpm --filter '@objectstack/scenarios^...' build, then pnpm --filter @objectstack/scenarios typecheck: exit 0.
  • pnpm --filter @objectstack/scenarios build, then pnpm --filter @objectstack/scenarios test (round 2, under the lock): 39 of 39 files, 1096 of 1096 tests passed.
  • vitest run test/skill-evals/skill-evals.test.ts: 35 of 35 passed on 8d82dcb937; 36 of 36 on c169dc85d5 (round 2), with pnpm --filter @objectstack/scenarios typecheck exit 0.
model-free CLI runs on the real catalog
  • pnpm --filter @objectstack/scenarios skill-evals --self-test: ✓ skill-evals self-test: 30 rows pass. exit 0 (round 2).
  • Trigger baseline from the model round: comment 6964639551 (haiku-5-5, medium, 8d82dcb937, 476/476 turns). One repetition: each negative is a single turn, so compare with --repeats 3.
  • pnpm --filter @objectstack/scenarios skill-evals --dry-run: exit 0, the catalog loads with no refusal; 217 behaviour case(s) × 2 arms + 42 trigger case(s) × the with-skill arm, × 1 = 476 turn(s); trigger cases: 30 should load the bundle, 12 should not.
derived gate families (dispatch-gates --commands, 76 families)

dispatch-gates --ran: 76 derived famil(ies) accounted for — 75 run, 1 NOT-MEASURED.

  • NOT MEASURED: pnpm check:dual-build-cjs-loads, exit 3, PREREQUISITE NOT MET (reads every package's dist/; this box built only the scenarios closure). CI runs it.
  • First run exit 3 (prerequisite), re-run exit 0: pnpm --filter @objectstack/spec run check:skill-examples (after building @objectstack/client-react: 347 prose examples type-check). pnpm check:type-check-debt exited 0 on the first run this round.
  • pnpm --dir ui exec vitest run scripts/: 171 files passed, 2 skipped; 5077 tests passed.
  • node scripts/check-adr-0087-registration.mjs --base origin/main · exit 0
  • node scripts/check-adr-0087-registration.mjs --self-test · exit 0
  • node scripts/check-changeset-no-major.mjs --base origin/main · exit 0
  • node scripts/check-closing-keyword-parity.mjs · exit 0
  • node scripts/check-closing-keyword-parity.mjs --self-test · exit 0
  • node scripts/check-comment-mask-adoption.mjs · exit 0
  • node scripts/check-comment-mask-adoption.mjs --self-test · exit 0
  • node scripts/check-comment-mask-corpus.mjs · exit 0
  • node scripts/check-doc-route-spelling.mjs --advisory · exit 0
  • node scripts/check-doc-route-spelling.mjs --self-test · exit 0
  • node scripts/check-dts-emitted.mjs --self-test · exit 0
  • node scripts/check-empty-changeset.mjs --base origin/main · exit 0
  • node scripts/check-empty-changeset.mjs --self-test · exit 0
  • node scripts/check-issue-citations.mjs · exit 0
  • node scripts/check-plugin-teardown-shape.mjs · exit 0
  • node scripts/check-plugin-teardown-shape.mjs --self-test · exit 0
  • node scripts/ci/assert-turbo-remote-cache.mjs --self-test · exit 0
  • node scripts/ci/plan-test-core-shards.mjs --self-test · exit 0
  • node scripts/ci/prune-turbo-cache.mjs --self-test · exit 0
  • node scripts/ci/snapshot-next.mjs --self-test · exit 0
  • node scripts/docs-audit/check-affected-docs.mjs · exit 0
  • node scripts/docs-audit/check-drift-comment.mjs · exit 0
  • node scripts/pm/check-governed-queue-guard.mjs --self-test · exit 0
  • node scripts/pm/release-rehearsal-clone.mjs --self-test · exit 0
  • node scripts/release-pending-publish.mjs --self-test · exit 0
  • pnpm --filter @objectstack/lint run check:doc-formula-expressions · exit 0
  • pnpm --filter @objectstack/spec run check:duration-unit-keys · exit 0
  • pnpm check:adr-anchors · exit 0
  • pnpm check:agent-test-spelling · exit 0
  • pnpm check:changeset-gate-self-tests · exit 0
  • pnpm check:ci-filter-parity · exit 0
  • pnpm check:closed-ceremony-text · exit 0
  • pnpm check:corpus-claim-drift · exit 0
  • pnpm check:cross-package-test-inputs · exit 0
  • pnpm check:doc-authoring · exit 0
  • pnpm check:driver-memory-census · exit 0
  • pnpm check:dts-closure · exit 0
  • pnpm check:engine-double-contract · exit 0
  • pnpm check:gitlink-declared · exit 0
  • pnpm check:issue-citations · exit 0
  • pnpm check:keyed-text-bounds · exit 0
  • pnpm check:lean-entry-closure · exit 0
  • pnpm check:logger-receiver-detach · exit 0
  • pnpm check:nul-bytes · exit 0
  • pnpm check:objectql-double-limit · exit 0
  • pnpm check:optional-error-sink · exit 0
  • pnpm check:org-identifier · exit 0
  • pnpm check:page-declaration-shape · exit 0
  • pnpm check:platform-object-tenancy-census · exit 0
  • pnpm check:pm-governed-merges · exit 0
  • pnpm check:pm-skill-id-lint · exit 0
  • pnpm check:published-files · exit 0
  • pnpm check:query-options-erasure · exit 0
  • pnpm check:refd-timer-probe · exit 0
  • pnpm check:registry-log-declared · exit 0
  • pnpm check:rest-log-spy-declared · exit 0
  • pnpm check:role-word · exit 0
  • pnpm check:settings-bind-window · exit 0
  • pnpm check:skill-compatibility · exit 0
  • pnpm check:skill-frame-sync · exit 0
  • pnpm check:skill-identifier-liveness · exit 0
  • pnpm check:skill-links · exit 0
  • pnpm check:slot-lookup · exit 0
  • pnpm check:sourcemap-no-sources-content · exit 0
  • pnpm check:system-context-census · exit 0
  • pnpm check:test-source-alias · exit 0
  • pnpm check:tier-file-adoption · exit 0
  • pnpm check:type-check-coverage · exit 0
  • pnpm check:undeclared-dep-imports · exit 0
  • pnpm check:vouch-for-reference-callers · exit 0
  • pnpm check:watch-hint-literal · exit 0
  • pnpm check:where-matcher · exit 0

Generated by Claude Code

@github-actions github-actions Bot added size/xl documentation Improvements or additions to documentation tests tooling Fix lands in tooling, not a product package — enters pm:queue only with Unblocks: or a named surface labels Nov 17, 2026
@github-actions

github-actions Bot commented Nov 17, 2026 •

Copy link
Copy Markdown
Contributor

📓 Docs Drift Check

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

1 hand-written doc(s) NAME something this change touched and may need an implementation-accuracy re-verification:

  • content/docs/getting-started/examples.mdx (via task.object.ts (literal, a string literal in runSelfTest))
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
  • 8 name(s) were too generic to anchor anything (single lowercase words)
  • the SDK route bridge reached 65 of 247 client-bound route-ledger rows — the other 182 have no registrar path: tail to select them, so pages documenting THEIR client methods cannot appear above, on this or any run. Of those 182: 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; 123 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 743308b90c3a5877db980607c9cffd69ba6e5cd4 → packageMentionDocs.

Which tree this was computed on

This run read content/docs from 159997536755dda74042d81f67333ed4a306cf6d — the merge of head c169dc85d571ae167e6dd63d5774a017cb07c987 into base 743308b90c3a5877db980607c9cffd69ba6e5cd4, 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 159997536755dda74042d81f67333ed4a306cf6d && git checkout 159997536755dda74042d81f67333ed4a306cf6d
# afterwards, rebuild it from the two parents, which stay fetchable
git fetch origin 743308b90c3a5877db980607c9cffd69ba6e5cd4 c169dc85d571ae167e6dd63d5774a017cb07c987 && git checkout -B drift-repro 743308b90c3a5877db980607c9cffd69ba6e5cd4 && git merge --no-ff c169dc85d571ae167e6dd63d5774a017cb07c987

node scripts/docs-audit/affected-docs.mjs --json 743308b90c3a5877db980607c9cffd69ba6e5cd4

⚠️ 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 743308b90c3a5877db980607c9cffd69ba6e5cd4 → 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#3 · os-support-ai · session_01WGufzi8zDwpH6wX7ZPUcHR

席位核对

L1 review · ACCEPT (nits only) · Head-sha: 8d82dcb937777118cf574ab638b7d62e44fd9c57 · card #34789 (Part of) · read 2026-11-17T23:22Z

This is a full review: there is no earlier L1 record. I read the whole diff from merge-base db1a05cd (31 files, +941 / -85), plus the card, the body and dev report 6963882763.

Surface. Every path falls inside the card's file surface (skills/*/evals/**, packages/qa/**) except the changeset. Clause-② is no and Metadata-protocol is none. Both fit the diff: src/skill-evals/ is in no tsup entry, export or bin, and the dist measurement is in the body. A patch for @objectstack/scenarios (README) and @objectstack/skills (evals ship as inert fixtures) is the right level.

Runner.

  • Reader (cases.ts). should_trigger replaces assertions, and the two together are refused. A non-boolean kind is refused, and so is a bundle whose trigger cases are all one kind (the check runs per bundle, after the missing-file refusals). hashCase adds the extra object only when a case has a trigger kind or a non-empty files, so JSON.stringify([prompt, mc, mnc]) is byte-identical for every unchanged behaviour case and --regrade stays valid. The 41 edited cases are set apart, not regraded.
  • Judge (run.ts). A trigger case on the no-skill arm is invalid. On the with-skill arm, the existing init-line check still runs first. "Loaded" means a Skill launch of the bundle, or a Read whose path has .claude/skills/BUNDLE/ in it. The ${bundle}/ prefix keeps a same-prefix bundle out, and a test pins that. A loaded turn is judged however it ended. An unloaded turn that did not end in success is error. Negatives accept a turn that is cut short only when it loaded the bundle, which can only fail them. That asymmetry is stated and pinned.
  • Plan and summary. armsOf gives a trigger case one arm. Trigger records are tallied in byTrigger and continue before the behaviour tally, so they never enter a behaviour rate. regradeRound keeps trigger keys planned. placeCaseFiles copies into both arms after prepareArmWorkdir.
  • Tests. 10 new tests cover each rule above, plus 8 self-test rows (floor 29). The body records an ablation of the read evidence, with 4 tests going red. I did not re-run it.

Assertion edits: each one judged for over-reach. All 11 are kept.

  • flows-triggers-approvals#13: .custom. The skill spells the pair this way. overrides:, basedOn and /toggle still carry the case.
  • bundles-locales-coverage#10: the narrowed forbid still catches the nested shape authored on one line. See N2.
  • hooks-security-seeds-datasources#14: '138****. The prompt and references/seeds.md both carry the masked form, so the narrowing is right.
  • objects-fields-relationships#10: the narrowed forbid tokens. Right, since the expected answer declines required by name. See N2.
  • objects-fields-relationships#12: filter: is loose. The prompt names no field or value, though, and the two forbidden label forms carry the case.
  • objects-fields-relationships#14: value: ' is loose. The value is the author's choice, and the forbidden value: '合作中' carries the case.
  • views-apps-actions-pages#16: right. The URL template stays exact, and only the formatting and the free param name are released.
  • skills-tools-knowledge#5 and #6: right. Migrate from npm to pnpm #6 still requires signed-in session and refused.
  • objectui/testing#2: right.
  • protocol-major-upgrade#3: right on the facts. The skill says "never ran" and "unexecuted", and the prompt carries the old forbid verbatim. See N2.

The 30 context sentences add context only. None of them hints at an answer. The two that gained facts (endpoints-auth-routes#2 and #6) give what case #1 had held or what the prompt referred to, and none of their assertion tokens appears in that added text.

Trigger cases. There are 42: 7 per bundle, 5 positive and 2 negative, so every bundle has both kinds. Each bundle's negatives are a neighbouring skill's task and a near miss outside ObjectStack. The body states the limit of one bundle with no competitor present.

Gates at this head (latest attempt per check, read 2026-11-17T23:22Z): none failed, 25 success, 10 skipped, and 12 still running (Test Core, Test UI, Type Check, Lint). The derived families are 75 of 76 run locally, with dual-build-cjs-loads as a prerequisite that CI runs.

Nits (each can become a card; none blocks)

  • N1: Grep is not load evidence. The arms give Read,Glob,Grep,Skill. A Grep in content mode with its path under .claude/skills/BUNDLE/ reaches the skill's text, but it is not counted. So a positive turn that greps the bundle and answers is a missed load. Before and after use the same rule, so skills: the six metadata skills trigger on what the user is doing, not on TypeScript file names #34769's comparison holds. Still, a third evidence kind shown apart (a Grep path under the bundle) would make the split honest.
  • N2: the narrowed forbid tokens bind one-line formatting. That was the PR's own reason for loosening [WIP] Update action workflow steps for better execution #16. A wrong shape written across lines escapes verdict: { summary: ' and transform: { type: 'javascript'. So does required: true as the last key followed by a newline. The grader is a literal match and sits outside this card's surface. The card would be a whitespace-normalised match in grade.ts, or multi-line variants of these three tokens.
  • N3: files can plant into the arm's config. caseFileProblem accepts evals/files/.claude/… and evals/files/.mcp.json, and placeCaseFiles would copy them into both arms' projects. A planted catalog skill would surface as invalid through the init line. Settings or a planted non-catalog skill would not. No case uses files today. Refusing a first segment of .claude, or a .mcp.json, would close it.

Owed, for the seat: the Tier H approval (governed per check-governed-merges: skills/**). The contract review face is the runner's grading contract (the trigger verdict and what counts as loaded). The card stays open for the eval seat's model round. This comment readies, queues and arms nothing.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#3 · os-support-ai · session_01WGufzgh1zkZzDXL36ckWAG

Contract-review-claim: session_01WGufzgh1zkZzDXL36ckWAG · head 8d82dcb937777118cf574ab638b7d62e44fd9c57 · 2026-11-17T23:27Z

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#3 · os-support-ai · session_01WGufzgh1zkZzDXL36ckWAG

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: 8d82dcb937777118cf574ab638b7d62e44fd9c57
Local-runs: none
Scope: skills/objectstack-ai/evals/skills-tools-knowledge.json, skills/objectstack-api/evals/endpoints-auth-routes.json, skills/objectstack-automation/evals/flows-triggers-approvals.json, skills/objectstack-automation/evals/triggers.json, skills/objectstack-data/evals/README.md, skills/objectstack-data/evals/hooks-security-seeds-datasources.json, skills/objectstack-data/evals/objects-fields-relationships.json, skills/objectstack-data/evals/triggers.json, skills/objectstack-formula/evals/triggers.json, skills/objectstack-i18n/evals/bundles-locales-coverage.json, skills/objectstack-i18n/evals/triggers.json, skills/objectstack-platform/evals/config-plugins-ops.json, skills/objectstack-query/evals/triggers.json, skills/objectstack-ui/evals/README.md, skills/objectstack-ui/evals/record-page.json, skills/objectstack-ui/evals/triggers.json, skills/objectstack-ui/evals/views-apps-actions-pages.json, skills/objectstack-upgrade/evals/protocol-major-upgrade.json, skills/objectui/evals/data-integration.json, skills/objectui/evals/page-builder.json, skills/objectui/evals/project-setup.json, skills/objectui/evals/testing.json + packages/qa/scenarios/src/skill-evals/run.ts, packages/qa/scenarios/src/skill-evals/cases.ts, packages/qa/scenarios/src/skill-evals/arms.ts, packages/qa/scenarios/src/skill-evals/summary.ts, packages/qa/scenarios/src/skill-evals/cli.ts, packages/qa/scenarios/src/skill-evals/self-test.ts, packages/qa/scenarios/README.md
Security-touching: yes

Read for this record: card #34789 (body and all five comments, through dev report 6963882763), PR #35022 (body, file list, net diff from merge-base db1a05cd, 31 files, +941 / -85) and the check-runs on the head. The rest of the diff (the test file, the changeset text) is the lane seat's ACCEPT.

Check-runs on the head, read 2026-11-17T23:32Z: 36 success, 10 skipped, 0 failed, 3 still running (Test Core (1/10), Test Core (2/10), Test UI (1/16)). The lint, type-check, changeset, PR-size, PR-body and Governed Surface Queue Guard runs are all success. The three running shards have no verdict yet; the seat reads them before it adopts this record.

① Derived judgments

  • Eval-file accept-set, widened: right. parseEvalFile now accepts an entry with a boolean should_trigger and no assertions. It refuses a non-boolean kind, a trigger case that also carries assertions, a files value that is not a list of strings, and a files entry that is not a path under evals/files/. loadSkillEvalCatalog refuses a files path the bundle lacks and a bundle whose trigger cases are all one kind. A behaviour case is read exactly as before (same refusals, same order of checks). The one gap in this accept-set is S1 below.
  • Case hash: right. hashCase appends the extra object only when a case has a trigger kind or a non-empty files, so the hashed string for an unchanged behaviour case is byte-identical to main's and old rounds still regrade. The 41 edited cases hash differently and are set apart, which is the existing rule.
  • Round plan: right. armsOf gives a trigger case the with-skill arm only; verdictOf reads a trigger case on the no-skill arm as invalid. 217 behaviour cases on two arms plus 42 trigger cases on one is 476 turns, as the body states.
  • Record and summary shape, widened: right. Every record gains skillFilesRead; a trigger record gains trigger. RoundSummary gains a required triggers block; regradeRound reads it as optional, so a round recorded on main still regrades. Trigger records continue before the behaviour tally and never enter a behaviour rate.
  • Published surface: none beyond text. src/skill-evals/ is in no export, bin or tsup entry of @objectstack/scenarios (the body's dist measurement; the type-check and build check-runs are green). @objectstack/skills gains six evals/triggers.json files, inert in a consumer install.
  • Other readers of skills/*/evals/*.json. ui/scripts/check-skill-eval-tokens.mjs reads item.assertions ?? {}, so an entry with no assertions reads as empty lists there; Lint UI is success on this head.
  • Security-touching is yes, and meant narrowly. Changed hunks sit on cases whose subject is authentication and credentials: objectstack-api/endpoints-auth-routes#2 (an endpoint made callable without login; the prompt is rewritten), objectstack-ai/skills-tools-knowledge#6 (an API token refused on the approve door; one required token dropped), and objectstack-data/objects-fields-relationships#1 (a prompt with an API key and a password field). No hunk changes which security behaviour a case passes or fails: ✨ Set up Copilot instructions #2's assertions are untouched, and Migrate from npm to pnpm #6 keeps signed-in session, refused and the forbidden pendingActions.approve(. The PR is governed on other grounds as well (paths outside skills/**, six catalog files added), so the low-risk arm does not apply either way.

② Semver level

Clause-②: no. The changeset is patch for @objectstack/scenarios (README text only reaches the package) and patch for @objectstack/skills (new and edited eval fixtures). That matches what the diff publishes: no exported symbol, no CLI flag, no schema. The changeset and the PR body both carry Clause-②: no and Metadata-protocol: none. Check Changeset is success.

③ Boundary flags

  • open_questions: empty in the dev report. Nothing to answer.
  • Deviation, narrowed local runs while the verify lock was held: answered by the head's check-runs, which are the gate verdicts here.
  • Deviation, Clause-②: no carried with no parenthetical arm: right for a measured no.
  • Deviation, PR assignee set by pr_create: no contract effect.
  • unmet, the model round was not run: the PR says Part of #34789 and the card stays open for the eval seat. Right; nothing in this diff claims a measured result.
  • Out-of-scope finding, objectstack-api/endpoints-auth-routes#6 requires sourceField / targetField, taught only by the spec source: confirmed (packages/spec/src/api/export.zod.ts). Left on the card for the round to show; not this PR's to fix.
  • Out-of-scope finding, objectstack-automation/flows-triggers-approvals#16 requires notices., taught by the data bundle: same answer.
  • SQL push-down: no query, id materialisation or join in this diff.

④ Design judgment

The trigger verdict (run.ts). The code agrees with its jsdoc and with the README, sentence by sentence.

  • Loaded means a Skill tool call whose skill is the bundle, or a Read whose file_path holds .claude/skills/BUNDLE/ followed by a file. The BUNDLE/ prefix keeps a same-prefix bundle and a read of the bare directory out.
  • The existing arm check runs first: a with-skill turn whose init line does not list the bundle is invalid before any trigger reading. All six metadata bundles are listed bundles.
  • A turn that loaded the bundle is judged however it ended. A turn that did not is judged only on success, and is error otherwise. That is symmetric in what it excludes: a cut-short unloaded turn leaves the denominator for positive and negative cases alike. It cannot inflate either side, since a cut-short turn can only move a positive toward pass or a negative toward fail when the load is in the stream.
  • The trigger case runs on one arm, so there is no between-arm comparison to bias. The comparison the card wants is between two rounds (before and after skills: the six metadata skills trigger on what the user is doing, not on TypeScript file names #34769) under the same rule.
  • summariseRound counts the Skill-tool and read-only splits over judged turns only, per case.

The reader and the catalog (cases.ts). Refusals are located and precede any grading; the CLI throws on any refusal. The one-kind check runs per bundle over the cases that survived the missing-file check.

files (arms.ts, cases.ts).

  • S1 (should-fix) — caseFileProblem accepts an entry whose first segment below evals/files/ is .claude, and placeCaseFiles copies it into both arms' projects. No case uses files on this head, so no turn is affected today; the hole is in the accept-set this PR introduces. Three reachable effects, each from one committed catalog entry:

    • evals/files/.claude/skills/BUNDLE/rules/x.md (no SKILL.md) puts part of the bundle under test into the no-skill arm. The init line lists nothing, so verdictOf does not read the turn as invalid, and the no-skill answer is graded as if it had no skill.
    • evals/files/.claude/skills/OTHER/SKILL.md puts a whole skill under a non-catalog name into the no-skill arm. bundlesLoaded is the init line filtered to catalog bundles (run.ts, judgeTurn), so it is not seen either.
    • evals/files/.claude/skills/BUNDLE/SKILL.md overwrites the bundle under test on the with-skill arm (cpSync replaces by default), and evals/files/.claude/settings.json is read by both arms under --setting-sources project, hooks included.

    This contradicts the dry-run line (no-skill no skill) and the arm contract in arms.ts (the arms differ in exactly one thing, whether the bundle sits in .claude/skills/BUNDLE/). The fix is one condition in caseFileProblem refusing .claude as the first segment below evals/files/, with a row in the reader's refusal test. .mcp.json is inert under --strict-mcp-config and needs no refusal.

The 11 assertion edits. Each was read against the case's prompt, its expected_output and the bundle's text on main.

  • objectstack-automation/flows-triggers-approvals#13, hotcrm.custom to .custom: holds. The skill says "the base's paired .custom package"; overrides:, basedOn and /toggle still carry the case.
  • objectstack-data/hooks-security-seeds-datasources#14, forbid **** to '138****: holds. The prompt and references/seeds.md both carry 138****4207, so a right answer quotes it. A masked value under another prefix escapes the token, but the same wrong answer is still caught by 'N/A' or by the required @example.com.
  • objectstack-data/objects-fields-relationships#10, forbid required: true to required: true, and required: true }: holds. Both common authored forms are caught; the expected answer declines required by name.
  • objectstack-data/objects-fields-relationships#12, filter: { status: 'completed' } to filter:: holds. The prompt names neither the field nor the value.
  • objectstack-data/objects-fields-relationships#14, value: 'active' to value: ': holds. The forbidden value: '合作中' carries the point and is not bound to formatting.
  • objectstack-ui/views-apps-actions-pages#16: holds. The URL template stays exact; seed: and path: 'token' release only the formatting and the author's param name.
  • objectstack-ai/skills-tools-knowledge#5, forbid defineAgent( to defineAgent({: holds. An authored call is caught on one line or many.
  • objectstack-ai/skills-tools-knowledge#6, pendingActions.list dropped: holds. The skill names the list door as GET /api/v1/ai/pending-actions; the refusal tokens carry the case.
  • objectui/testing#2, React Testing Library to @testing-library/react: holds. guides/testing.md imports it in every example.
  • objectstack-upgrade/protocol-major-upgrade#3, never executed dropped and the forbid narrowed: holds. The skill says "never ran" and "unexecuted", and the prompt carries the old forbidden token verbatim.
  • objectstack-i18n/bundles-locales-coverage#10, forbid verdict: { to verdict: { summary: ': holds for the card's purpose (a right answer that quotes the wrong shape now passes), with N1 below.

The 30 context sentences. Each adds only that the project is not on disk and what the answer should carry. The two that add facts check out against main: objectstack-api/endpoints-auth-routes#2 restates what case #1's expected output defines (path, type: 'object_operation', acme_lead, 30 seconds), and #6 gives the body in the shape export.zod.ts documents for POST /api/v1/data/:object/import. None of the added text contains a required token of its own case.

The 42 trigger cases. Seven per bundle, five positive and two negative, each file in the shape the reader accepts (id, prompt, should_trigger, files: []). Every neighbour negative matches a "Do not use" clause in the bundle's description on main (query #7 against "a list view's filter rules", ui #6 against flows that branch, automation #6 against the object layer), except formula #6 (N3).

No must-fix. One should-fix: S1.

Nits:

  • N1 (nit): in bundles-locales-coverage#10 the narrowed forbid is the only token that separates the nested shape from the right one, and it matches that shape on one line only. A wrong answer written across lines that also echoes verdict.summary from the prompt passes. Requiring the authored key 'verdict.summary' (quoted, as a dotted key must be) would carry the point without binding the layout. The same one-line limit applies to protocol-major-upgrade#3 and objects-fields-relationships#12, where other tokens still carry the case.
  • N2 (nit): a Grep in content mode over .claude/skills/BUNDLE/ reaches the skill's text and is not load evidence. The record keeps tool names but not the Grep path, so a later rule could not regrade an old round for it. The rule is the same before and after skills: the six metadata skills trigger on what the user is doing, not on TypeScript file names #34769, so that comparison holds.
  • N3 (nit): objectstack-formula/triggers#6 (an ObjectQL filter) has no "Do not use" clause behind it in the formula description on main, so a load there is not clearly wrong today. It becomes a fair case once skills: the six metadata skills trigger on what the user is doing, not on TypeScript file names #34769 adds one.
  • N4 (nit): the per-bundle trigger table merges Skill-tool loads and read-only loads into one rate; only the per-case table splits them. A read-only load does not depend on the description, so the eval seat should compare skills: the six metadata skills trigger on what the user is doing, not on TypeScript file names #34769 on the Skill-tool column.
  • N5 (nit): the PR body says each bundle's two negatives are one neighbour and one outside near miss. In the tree, query has two neighbours and i18n has two outside near misses.

Implemented-by: claude/issue-34789-skill-evals-trigger-cases
Reviewed-by: session_01WGufzgh1zkZzDXL36ckWAG

VERDICT: PASS

A `files` entry is copied into both arms' projects, and `.claude/` is where
Claude Code finds skills, so a case file there could hand the no-skill arm a
skill without the turn being called invalid. caseFileProblem now refuses any
`.claude` segment below evals/files/, at any depth and in any letter case.
Adds a test and a self-test row (floor 29 -> 30).

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WGufzfr1xZSFZzCR8HnqXX
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#3 · os-support-ai · session_01WGufzi8zDwpH6wX7ZPUcHR

席位核对

L1 delta review · ACCEPT · Head-sha: c169dc85d571ae167e6dd63d5774a017cb07c987 · card #34789 (Part of) · read 2026-11-18T00:30Z

This reviews the delta from L1 6963961238 (ACCEPT at 8d82dcb9). The delta is one commit, c169dc85 (4 files, +32 / -3), with no main merge. It answers the seat's S1, which is my N3. Dev report 6965169567.

  • S1 / N3 is closed for every path a files entry names. caseFileProblem now refuses any segment below evals/files/ that lower-cases to .claude, at any depth. It runs after the existing path-shape refusal. The test refuses .claude/skills/…, a bare .claude, .claude/settings.json, .CLAUDE/… and a nested app/.claude/…. It still reads .claude-notes.md, claude/ and .mcp.json, so the check matches the segment exactly and not a prefix. The self-test row is added and the floor pinned at 30. The body reports that ablating the condition turns 3 red. I did not re-run it.
  • .mcp.json still reads, and that is right. I raised it in N3, but the arm already passes --strict-mcp-config over its own --mcp-config, so a project .mcp.json in the turn's directory is not used.
  • Residual (nit, not blocking): an entry that names a directory holding a nested .claude/ is judged by the entry string only, so cpSync would copy the nested directory into both arms. A filter on that copy, refusing a .claude segment of src, would close it at placement. No case uses files today, and the dev records this in the body.
  • README: the one added sentence matches the rule. The body corrections are text only. The model-round baseline 6964639551 is linked.
  • Surface: all four files are among the PR's own, inside packages/qa/**.
  • Gates at this head (latest attempt per check): 0 failed (), 17 success, 12 skipped, 18 still running.

No new findings beyond the residual nit. N1 and N2 from 6963961238 stand as nits.

Owed, for the seat: Tier H approval from os-zhuang (governed skills/**), and the contract-review delta for 8d82dcb9..c169dc85. The card stays Part of until the eval seat's model round. This comment readies, queues and arms nothing.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#3 · os-support-ai · session_01WGufzgh1zkZzDXL36ckWAG

Contract-review-claim: session_01WGufzgh1zkZzDXL36ckWAG · head c169dc85d571ae167e6dd63d5774a017cb07c987 · 2026-11-18T00:31Z

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#3 · os-support-ai · session_01WGufzgh1zkZzDXL36ckWAG

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: c169dc85d571ae167e6dd63d5774a017cb07c987
Local-runs: none
Scope: skills/objectstack-ai/evals/skills-tools-knowledge.json, skills/objectstack-api/evals/endpoints-auth-routes.json, skills/objectstack-automation/evals/flows-triggers-approvals.json, skills/objectstack-automation/evals/triggers.json, skills/objectstack-data/evals/README.md, skills/objectstack-data/evals/hooks-security-seeds-datasources.json, skills/objectstack-data/evals/objects-fields-relationships.json, skills/objectstack-data/evals/triggers.json, skills/objectstack-formula/evals/triggers.json, skills/objectstack-i18n/evals/bundles-locales-coverage.json, skills/objectstack-i18n/evals/triggers.json, skills/objectstack-platform/evals/config-plugins-ops.json, skills/objectstack-query/evals/triggers.json, skills/objectstack-ui/evals/README.md, skills/objectstack-ui/evals/record-page.json, skills/objectstack-ui/evals/triggers.json, skills/objectstack-ui/evals/views-apps-actions-pages.json, skills/objectstack-upgrade/evals/protocol-major-upgrade.json, skills/objectui/evals/data-integration.json, skills/objectui/evals/page-builder.json, skills/objectui/evals/project-setup.json, skills/objectui/evals/testing.json + packages/qa/scenarios/src/skill-evals/cases.ts, packages/qa/scenarios/src/skill-evals/self-test.ts, packages/qa/scenarios/README.md
Security-touching: yes

Delta review of 8d82dcb937..c169dc85d5 (one commit, 4 files, +32 / -3) against S1 of the record on 8d82dcb937777118cf574ab638b7d62e44fd9c57. That record stands for everything outside this delta: no hits file changed between the two heads (git diff --stat names only packages/qa/scenarios/**), and 8d82dcb937 is an ancestor of this head. Read for this record: card #34789 (body and all seven comments, through the round-2 dev report 6965169567), PR #35022 (body, file list, the delta diff) and the check-runs on the head. The test file's hunk is the lane seat's ACCEPT; it was read only to confirm the pin exists.

Check-runs on the head, read 2026-11-18T00:33Z: 34 success, 12 skipped, 0 failed, 7 still running (Test Core (1/10) to (4/10), Test UI (1/16), Lint UI, Build & E2E UI). The three Lint groups that finished, both Type Check runs, the changeset check, PR-size, PR-body and Governed Surface Queue Guard are success. The seven running jobs have no verdict yet; the seat reads them before it adopts this record.

S1: closed

① Derived judgments

  • Eval-file accept-set, narrowed by one refusal: right. caseFileProblem now also refuses a files entry with a segment below evals/files/ that lower-cases to .claude. The first check is unchanged and still runs first, so every entry refused on 8d82dcb937 is refused with the same message. No committed case is affected: no case in the catalog uses files, and no path under any skills/*/evals/files/ exists on this head.
  • Case hash and old rounds: unchanged. hashCase is untouched, and the refusal reads no case that exists, so the baseline round on 8d82dcb937 (comment 6964639551) regrades as it is. The PR body says the same, and it holds.
  • Self-test roster: right. SELF_TEST_BATTERIES declares 30 labels, the row list carries 30 label: entries, and SELF_TEST_BATTERY_FLOOR is 30. The new label is declared once and run once.
  • Published surface: none new. caseFileProblem keeps its signature; src/skill-evals/ is still in no export. @objectstack/scenarios ships one changed README sentence.
  • Security-touching stays yes, carried from the first record: the PR's hits hunks sit on authentication and credential cases, and none changed in this delta. The delta's own hunks teach eval-arm isolation, not permission, credential or authentication behaviour.

② Semver level

Clause-②: no. The changeset file is unchanged in the delta (patch for @objectstack/scenarios and @objectstack/skills). The delta publishes README text only, which patch already covers. Check Changeset is success on this head.

③ Boundary flags

  • open_questions: empty in the round-2 report. Nothing to answer.
  • Deviation, the refusal is stricter than S1 asked (any depth, any letter case, where S1 named the first segment): accepted. It refuses a superset of what S1 named, and it costs no legitimate fixture a name it needs: .claude-notes.md, claude/ and .mcp.json still read, and both the vitest test and the self-test row pin that.
  • Deviation, check:skill-examples needed a @objectstack/client-react build first: a local prerequisite, no contract effect. The head's check-runs are the verdict here.
  • Out-of-scope finding, a files entry naming a directory whose contents hold a nested .claude/: answered as N6 below.
  • unmet, judging skills: the six metadata skills trigger on what the user is doing, not on TypeScript file names #34769 against the baseline: the PR says Part of #34789 and the card stays open. Right.
  • SQL push-down: no query, id materialisation or join in the delta.

④ Design judgment

No hits file changed in the delta, so the first record's reading of the 22 hits files stands unchanged. The three implementing files:

cases.ts, caseFileProblem. The code agrees with its jsdoc, its comment and the README sentence.

  • S1's three effects all needed .claude at the project root, which needs .claude as the first segment below evals/files/. That entry is now refused whether it names the directory itself (evals/files/.claude), a skill file, or settings.json. A directory entry cannot put anything at the project root either: an entry has at least three segments, so its contents land one level down or deeper.
  • Tried against it: evals/files/.claude (three segments, passes the first check, refused by the second); .Claude and .CLAUDE (refused by toLowerCase); a nested app/.claude/... (refused); .claude/../x and a backslash path (refused by the first check, before the second runs); .claude-notes.md and claude/ (read, as they should). The comparison is whole-segment equality, so no prefix or suffix name is caught by mistake.
  • The refusal reaches the round: parseEvalFile maps every files entry through caseFileProblem and refuses the case with its location, and the CLI throws on any refusal, as on 8d82dcb937.
  • The jsdoc says "undefined ⇒ it names a path under evals/files/ that lands outside any .claude/". True of the path the entry names. It says nothing of what a named directory contains (N6).

self-test.ts. The new row sends four bad entries (root file, the bare directory, mixed case, nested) and one good one through the real parseEvalFile, and fails unless all four are refused and the good one reads. The floor moved with the roster.

README.md. The sentence states the refusal and its reason, and matches the code.

PR body against the tree. The round-2 additions hold: the test's accepted names are exactly .claude-notes.md, claude/ and .mcp.json; the roster is 30; the query negatives are both in-product neighbours and the i18n negatives both outside near misses, which closes N5 of the first record; the baseline link resolves to comment 6964639551, whose numbers the body repeats correctly (476 of 476, 30 of 30, 8 of 12, four read-only false loads), with the --repeats 3 note.

Nothing new broke. The delta adds one early return after the existing one and changes no other path; the three finished Lint groups and both Type Check runs are success.

No must-fix, no should-fix.

Nits:

  • N6 (nit): caseFileProblem judges the entry string, and placeCaseFiles copies a named directory whole (cpSync, recursive, dereference). An entry such as evals/files/app, whose directory holds app/.claude/skills/X/, is accepted and lands in both arms at app/.claude/. It is a nit and not a second S1 because it cannot reach the project root, where the init line, settings.json and the installed bundle live; the first record did not ask for nested paths to be refused at all. No case uses files on this head, so no turn is affected. The likeliest way to hit it later is a fixture copied from a scaffolded project that already carries .claude/skills/. The fix belongs where the disk is already read: loadSkillEvalCatalog, beside the missing-file check, or a filter on the cpSync. A follow-up card should carry it before the first case with a directory files entry lands; the dev report names it on skills evals: trigger cases with negatives, a review of over-literal assertions, and cases that run without a project on disk #34789 but did not file it.
  • N7 (nit): the comment claims the case-insensitive-disk alias is covered. Other aliases of the same directory are not: a trailing dot or space on NTFS (.claude.), and a segment with an ignorable code point on HFS+. The eval round runs on Linux, where none of these resolve to .claude. Same follow-up as N6 if it is ever wanted.
  • N1 to N4 of the first record are unchanged on this head and stay as recorded there (the dev report leaves N1 and N2 alone by choice).

Implemented-by: claude/issue-34789-skill-evals-trigger-cases
Reviewed-by: session_01WGufzgh1zkZzDXL36ckWAG

VERDICT: PASS

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#3 · os-support-ai · session_01WGufzgh1zkZzDXL36ckWAG

席位记录 · 2026-11-18T00:35Z

Head-sha: c169dc85d571ae167e6dd63d5774a017cb07c987

维护者速读(终稿)

  • 改了什么:给六个元数据技能各加一份「该不该加载」的触发用例(evals/triggers.json,共 42 条),并修正一批行为用例的断言和提示词,让它们真正考到技能内容。评测运行器(packages/qa/scenarios/src/skill-evals/)学会跑触发用例:只跑带技能的一臂,记录模型读了哪些技能文件,汇总里多一个 triggers 区块;旧轮次仍能重新评分。31 个文件,+970/−85。
  • 为什么改:skills evals: trigger cases with negatives, a review of over-literal assertions, and cases that run without a project on disk #34789。
  • 实测:haiku-5-5 medium 跑了一轮(476/476 轮次),基线在 skills evals: trigger cases with negatives, a review of over-literal assertions, and cases that run without a project on disk #34789 评论 6964639551。触发:该加载的 30/30 都加载了;不该加载的 12 条里 4 条被误加载(均为只读未调用 Skill)。行为用例:带技能 130/215,不带技能 9/217。单次重复下一次翻转就能让一个技能变 50 个点,所以后续对比用 --repeats 3。
  • 风险与回滚:只改评测文件和评测运行器,不进任何发布入口,不影响产品运行。有三条被改动的用例题材是登录和凭据,席位评审因此判 Security-touching: yes,但没有任何一处改变安全行为的判分。回滚即 revert。
  • 先看:packages/qa/scenarios/src/skill-evals/cases.ts 的 caseFileProblem(拒绝任何层级、任何大小写的 .claude 路径段)。
  • 需要你做的:Tier H(技能目录之外的路径 + 新增目录文件),请在这个 head 上审批,批准后由 o3-J 在 CI 全绿时落地。

席位意见:建议批准。首轮评审的 should-fix 已修好并钉住,delta 评审没有新问题。

席位核对

  • 形态:Fixes #34789;31 个文件,+970/−85,未超 3000 行。
  • 评审:L1-e delta ACCEPT 6965204194;席位评审(fable,CONTRACT_REVIEW_TIER)首轮 PASS 6964193175(S1:.claude 路径),delta PASS 6965283020,S1 已关闭,没有 must-fix 或 should-fix。
  • 门禁:落地前全部 check-run 须完成且全绿(delta 评审时还有 7 个在跑)。
  • 留意(nit N6):files 条目如果指向一个内含 .claude/ 的目录,只按字符串判断;目前没有用例使用 files,在第一个目录型 files 条目落地之前补卡。
  • 落地条款:Tier H,批准前 ⛔ 不 ready、不入队、不开自动合并。head 如果再变,补 L1 和席位评审 delta。

@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 18, 2026
@os-zhuang
os-zhuang marked this pull request as ready for review November 18, 2026 01:04
@os-zhuang
os-zhuang added this pull request to the merge queue Nov 18, 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 pm:awaiting-merge PR only: landing waits on the maintainer's own review and merge (SKILL.md 复核 ②); never on an issue size/xl tests 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.

3 participants