Repository navigation
feat(skills): trigger cases for the six metadata skills; eval assertions and prompts that grade the skill - #35022
Conversation
Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WGufzfr1xZSFZzCR8HnqXX
… context review Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WGufzfr1xZSFZzCR8HnqXX
…files Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WGufzfr1xZSFZzCR8HnqXX
Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WGufzfr1xZSFZzCR8HnqXX
…ill-evals-trigger-cases
📓 Docs Drift CheckThis PR changes 1 package(s): 1 hand-written doc(s) NAME something this change touched and may need an implementation-accuracy re-verification:
What this run could not see
Coarse fallback — 1 page(s) merely mention a changed package (the pre-#9192 predicate, kept for the deliberately-wide backstop): Which tree this was computed onThis run read A worktree cut from an older # while this PR is open — GitHub drops the merge commit once it closes
git fetch origin 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
|
|
repo:objectstack#3 · os-support-ai · session_01WGufzi8zDwpH6wX7ZPUcHR 席位核对L1 review · ACCEPT (nits only) · Head-sha: This is a full review: there is no earlier L1 record. I read the whole diff from merge-base Surface. Every path falls inside the card's file surface ( Runner.
Assertion edits: each one judged for over-reach. All 11 are kept.
The 30 context sentences add context only. None of them hints at an answer. The two that gained facts ( 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 Nits (each can become a card; none blocks)
Owed, for the seat: the Tier H approval (governed per check-governed-merges: |
|
repo:objectstack#3 · os-support-ai · session_01WGufzgh1zkZzDXL36ckWAG Contract-review-claim: session_01WGufzgh1zkZzDXL36ckWAG · head |
|
repo:objectstack#3 · os-support-ai · session_01WGufzgh1zkZzDXL36ckWAG Contract reviewServed-tier: 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 Check-runs on the head, read 2026-11-17T23:32Z: 36 success, 10 skipped, 0 failed, 3 still running ( ① Derived judgments
② Semver levelClause-②: no. The changeset is ③ Boundary flags
④ Design judgmentThe trigger verdict (
The reader and the catalog (
The 11 assertion edits. Each was read against the case's prompt, its
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 The 42 trigger cases. Seven per bundle, five positive and two negative, each file in the shape the reader accepts ( No must-fix. One should-fix: S1. Nits:
Implemented-by: 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
|
repo:objectstack#3 · os-support-ai · session_01WGufzi8zDwpH6wX7ZPUcHR 席位核对L1 delta review · ACCEPT · Head-sha: This reviews the delta from L1 6963961238 (ACCEPT at
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 |
|
repo:objectstack#3 · os-support-ai · session_01WGufzgh1zkZzDXL36ckWAG Contract-review-claim: session_01WGufzgh1zkZzDXL36ckWAG · head |
|
repo:objectstack#3 · os-support-ai · session_01WGufzgh1zkZzDXL36ckWAG Contract reviewServed-tier: Delta review of Check-runs on the head, read 2026-11-18T00:33Z: 34 success, 12 skipped, 0 failed, 7 still running ( S1: closed ① Derived judgments
② Semver levelClause-②: no. The changeset file is unchanged in the delta ( ③ Boundary flags
④ Design judgmentNo
PR body against the tree. The round-2 additions hold: the test's accepted names are exactly 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:
Implemented-by: VERDICT: PASS |
|
repo:objectstack#3 · os-support-ai · session_01WGufzgh1zkZzDXL36ckWAG 席位记录 · 2026-11-18T00:35ZHead-sha: 维护者速读(终稿)
席位意见:建议批准。首轮评审的 should-fix 已修好并钉住,delta 评审没有新问题。 席位核对
|
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 afilesentry 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, at8d82dcb937, 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
维护者速读
skill-evals运行器按“这一轮是否加载了技能”给触发用例打分,只跑装了技能的一臂,并在汇总里单列。另有 11 条已有用例的断言放宽成任何正确答案都能过;30 条提示词写明“当前目录没有项目文件”及答题所需的上下文;运行器开始支持用例的files,并拒收会落到项目.claude/下的路径(否则无技能一臂也可能拿到技能)。@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。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 gainevals/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 onticket(data) and a filtered list view onticket(ui).objectstack-i18n's two are both near misses outside ObjectStack: react-i18next in a plain React app, andIntl.NumberFormatin a Node.js script.The shape is the existing case entry with
"should_trigger": true | falsein place ofassertions:{ "id", "prompt", "should_trigger", "files": [] }. The runner (packages/qa/scenarios/src/skill-evals/):assertions, a non-booleanshould_trigger, and a bundle whose trigger cases are all of one kind are refused with a location;Skilltool or read a file under its.claude/skills/BUNDLE/; the record'strigger.loadedBysays which. The card's round saw the model reach skill text by reading files more often than by theSkilltool, 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 asuccessresult, and iserrorotherwise (out of the denominator), because a turn cut short may have been about to load it;--regradekeeps trigger cases planned and regrades them from the records;skillFilesReadon every turn, behaviour cases included.hashCaseadds the trigger kind and a non-emptyfileslist only when a case has them, so every unchanged behaviour case keeps its hash and old rounds regrade as before.files(scope item 2).fileswas read by nothing. An entry is now a path under the bundle'sevals/files/; the reader refuses anything else, and the catalog refuses a path the bundle lacks. The reader also refuses an entry with a.claudesegment belowevals/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 withoutverdictOfcalling the turn invalid..mcp.jsonis left alone, since the arms run with--strict-mcp-config. It is copied, a directory whole, into both arms' directories at its path belowevals/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#2named "the lead feed" defined only by case #1, and now describes it;#6asked 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_containtoken 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:objectstack-automation/flows-triggers-approvals#13hotcrm.custom.custom.custompackage"; any answer naming the pair carries.customobjectstack-i18n/bundles-locales-coverage#10verdict: {verdict: { summary: 'objectstack-data/hooks-security-seeds-datasources#14****'138****references/seeds.md: no138****4207) both carry the masked form, so a right answer naming what is refused quotes it; narrowed to the masked value as an authored stringobjectstack-data/objects-fields-relationships#10required: truerequired: true,andrequired: true }required; a right answer declines it by name; narrowed to the key as authored inside an objectobjectstack-data/objects-fields-relationships#12filter: { status: 'completed' }filter:objectstack-data/objects-fields-relationships#14value: 'active'value: 'value: '合作中'still carries the caseobjectstack-ui/views-apps-actions-pages#16read: { url: '…' }object; mustseed: [{ param: 'plan_token', path: 'token' }]/api/v1/packages/${ctx.recordId}/upgrade-plan?version=${param.version}; mustseed:andpath: 'token'plan_tokenis the author's name for the paramobjectstack-ai/skills-tools-knowledge#5defineAgent(defineAgent({defineAgent()); narrowed to the authored callobjectstack-ai/skills-tools-knowledge#6pendingActions.listGET /api/v1/ai/pending-actions; the refusal tokens carry the caseobjectui/testing#2React Testing Library@testing-library/reactobjectstack-upgrade/protocol-major-upgrade#3never executed; forbidtype: 'javascript'transform: { type: 'javascript'transform` = { type: 'javascript' …), narrowed to the re-authored transformTests
packages/qa/scenarios/test/skill-evals/skill-evals.test.ts: two newdescribeblocks, 11 tests. They cover the reader (trigger kind, refusals, the one-kind bundle refusal,filespaths), 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 iserror; the no-skill arm isinvalid), hash stability for an unchanged behaviour case, a round planning trigger cases on one arm and the summary tallying them apart,--regradekeeping trigger cases planned,filesplaced on both arms, andfilesentries under.claude/refused (.claude-notes.md,claude/and.mcp.jsonstill read).--self-test: 9 new rows (roster 21 → 30, floor pinned at 30), run against the real catalog from the CLI.loadEvidenceviascripts/ablation-replace.mjsturned 4 tests red (two trigger tests, and the two--self-test can failtests through the self-test's own trigger row); restored,git diff HEADempty, blob equal to HEAD. The suite importssrc/directly, so no rebuild was involved..clauderefusal), on the committed tree: replacing the refusal's condition withif (false) {viascripts/ablation-replace.mjs(anchor 1 → 0, blobe5f089ae1d12→2e9983a9bf81) turned 3 tests red: the new reader test, and the two--self-test can failtests through the self-test's new row. Restored: blob equal to HEAD,git diff HEADempty.Acceptance notes
claude-haiku-5-5, effort medium, on8d82dcb937: 476 of 476 turns. Trigger cases: 30 of 30 loaded when they should; 8 of 12 left alone, and all 4 false loads were by reading the skill's files only. Behaviour cases: with-skill 130 of 215, no-skill 9 of 217. Trigger baseline ("before") for skills: the six metadata skills trigger on what the user is doing, not on TypeScript file names #34769: comment 6964639551. Judging skills: the six metadata skills trigger on what the user is doing, not on TypeScript file names #34769 against that baseline is still owed, so this PR stays Part of skills evals: trigger cases with negatives, a review of over-literal assertions, and cases that run without a project on disk #34789. With 1 repetition each negative trigger case is a single turn, so one flip moves a skill's left-alone rate by 50 points; comparisons for skills: the six metadata skills trigger on what the user is doing, not on TypeScript file names #34769 should run with--repeats 3. Round 2's.clauderefusal changes no case in the catalog (none usesfiles), so the round's records still regrade as they are.objectstack-data/hooks-security-seeds-datasources#15forbids会自动预填, contained in 不会自动预填;objectstack-ask/metric-selection-fallback#6forbids不存在;objectstack-ui/views-apps-actions-pages#13forbidsready to use;objectstack-api/endpoints-auth-routes#5forbids'search'and'restore';objectui/app-composition#3forbids"path": "/projects"andobjectui/protocol#3forbids"cols":, both present verbatim in the prompt with no authored-only form;objectstack-ai/skills-tools-knowledge#5forbidsknowledge:, verbatim in the prompt;objectstack-ai/skills-tools-knowledge#7requiresdo not retry, the skill's own words (a contraction would miss).objectstack-api/endpoints-auth-routes#6requiressourceField/targetField, which only the spec source teaches (api/export.zod.ts), and the turn's empty directory has nonode_modules.objectstack-automation/flows-triggers-approvals#16requiresnotices., which lives inobjectstack-data'srules/lifecycle.md, while the arm installs only the automation bundle. Both fail for a reason other than spelling or a missing project; a round will show whether they need the eval seat's attention.src/skill-evals/is in no tsup entry and no export or bin. Afterpnpm --filter @objectstack/scenarios build,should_trigger,placeCaseFilesandskillFilesReadhit 0 files underdist/, while the controlsubscriptionOnlyEnvhitsdist/cli.jsanddist/runner.js. What ships is the README text, hence thepatchchangeset.origin/mainand callsprepareArmWorkdirwith its new three-argument form.Verification
Head
c169dc85d5(round 2: the gates, the suite and the CLI runs below ran on it; round 1 ran them on8d82dcb937).scenarios package: typecheck and tests
pnpm --filter '@objectstack/scenarios^...' build, thenpnpm --filter @objectstack/scenarios typecheck: exit 0.pnpm --filter @objectstack/scenarios build, thenpnpm --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 on8d82dcb937; 36 of 36 onc169dc85d5(round 2), withpnpm --filter @objectstack/scenarios typecheckexit 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).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.pnpm check:dual-build-cjs-loads, exit 3, PREREQUISITE NOT MET (reads every package'sdist/; this box built only the scenarios closure). CI runs it.pnpm --filter @objectstack/spec run check:skill-examples(after building@objectstack/client-react: 347 prose examples type-check).pnpm check:type-check-debtexited 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 0node scripts/check-adr-0087-registration.mjs --self-test· exit 0node scripts/check-changeset-no-major.mjs --base origin/main· exit 0node scripts/check-closing-keyword-parity.mjs· exit 0node scripts/check-closing-keyword-parity.mjs --self-test· exit 0node scripts/check-comment-mask-adoption.mjs· exit 0node scripts/check-comment-mask-adoption.mjs --self-test· exit 0node scripts/check-comment-mask-corpus.mjs· exit 0node scripts/check-doc-route-spelling.mjs --advisory· exit 0node scripts/check-doc-route-spelling.mjs --self-test· exit 0node scripts/check-dts-emitted.mjs --self-test· exit 0node scripts/check-empty-changeset.mjs --base origin/main· exit 0node scripts/check-empty-changeset.mjs --self-test· exit 0node scripts/check-issue-citations.mjs· exit 0node scripts/check-plugin-teardown-shape.mjs· exit 0node scripts/check-plugin-teardown-shape.mjs --self-test· exit 0node scripts/ci/assert-turbo-remote-cache.mjs --self-test· exit 0node scripts/ci/plan-test-core-shards.mjs --self-test· exit 0node scripts/ci/prune-turbo-cache.mjs --self-test· exit 0node scripts/ci/snapshot-next.mjs --self-test· exit 0node scripts/docs-audit/check-affected-docs.mjs· exit 0node scripts/docs-audit/check-drift-comment.mjs· exit 0node scripts/pm/check-governed-queue-guard.mjs --self-test· exit 0node scripts/pm/release-rehearsal-clone.mjs --self-test· exit 0node scripts/release-pending-publish.mjs --self-test· exit 0pnpm --filter @objectstack/lint run check:doc-formula-expressions· exit 0pnpm --filter @objectstack/spec run check:duration-unit-keys· exit 0pnpm check:adr-anchors· exit 0pnpm check:agent-test-spelling· exit 0pnpm check:changeset-gate-self-tests· exit 0pnpm check:ci-filter-parity· exit 0pnpm check:closed-ceremony-text· exit 0pnpm check:corpus-claim-drift· exit 0pnpm check:cross-package-test-inputs· exit 0pnpm check:doc-authoring· exit 0pnpm check:driver-memory-census· exit 0pnpm check:dts-closure· exit 0pnpm check:engine-double-contract· exit 0pnpm check:gitlink-declared· exit 0pnpm check:issue-citations· exit 0pnpm check:keyed-text-bounds· exit 0pnpm check:lean-entry-closure· exit 0pnpm check:logger-receiver-detach· exit 0pnpm check:nul-bytes· exit 0pnpm check:objectql-double-limit· exit 0pnpm check:optional-error-sink· exit 0pnpm check:org-identifier· exit 0pnpm check:page-declaration-shape· exit 0pnpm check:platform-object-tenancy-census· exit 0pnpm check:pm-governed-merges· exit 0pnpm check:pm-skill-id-lint· exit 0pnpm check:published-files· exit 0pnpm check:query-options-erasure· exit 0pnpm check:refd-timer-probe· exit 0pnpm check:registry-log-declared· exit 0pnpm check:rest-log-spy-declared· exit 0pnpm check:role-word· exit 0pnpm check:settings-bind-window· exit 0pnpm check:skill-compatibility· exit 0pnpm check:skill-frame-sync· exit 0pnpm check:skill-identifier-liveness· exit 0pnpm check:skill-links· exit 0pnpm check:slot-lookup· exit 0pnpm check:sourcemap-no-sources-content· exit 0pnpm check:system-context-census· exit 0pnpm check:test-source-alias· exit 0pnpm check:tier-file-adoption· exit 0pnpm check:type-check-coverage· exit 0pnpm check:undeclared-dep-imports· exit 0pnpm check:vouch-for-reference-callers· exit 0pnpm check:watch-hint-literal· exit 0pnpm check:where-matcher· exit 0Generated by Claude Code