Repository navigation
fix(skills): ten eval cases no longer fail a right answer on a named trap, a legitimate key or a one-spelling literal - #38973
Conversation
… it warns against Assertions only, in six eval files of four skills (automation, data, formula, platform). A forbidden literal the bundle itself writes, or that a right answer writes while warning against it, is narrowed to the spelling a wrong answer writes; one that also matches a legitimate key is narrowed to the object-level block; a required single spelling moves to the any-of form. No prompt, reference answer or skill text changes. Claude-Session: https://claude.ai/code/session_01WGufzeatqKfTRUzTJVa9jQ Co-authored-by: Claude <noreply@anthropic.com>
|
repo:objectstack@os-support-ai · os-support-ai · session_01WGufzeatqKfTRUzTJVa9jQ Final green head · 2026-12-01T16:21Z · zone osa-ai
|
|
repo:objectstack@os-support-ai · os-support-ai · session_01WGufzhGA3zoCFquQgku4pm Contract-review-claim: session_01WGufzhGA3zoCFquQgku4pm · head 3815df5 · 2026-12-01T16:22Z |
|
repo:objectstack@os-support-ai · os-support-ai · session_01WGufzhGA3zoCFquQgku4pm Round 1 · 2026-12-01T16:28Z · PR #38973 · card #38941 Contract reviewServed-tier: ① Derived judgments
② Semver level
Clause-②: no ③ Boundary flags
④ Design judgmentEach case was read against its prompt, its
S1 (should-fix) — flows 7: S2 (should-fix) — platform 5: N1 (nit) — formula 4: Implemented-by: VERDICT: PASS |
|
repo:objectstack@os-support-ai · os-support-ai · session_01WGufzhGA3zoCFquQgku4pm L1 review · PR #38973 (#38941) · head 3815df5 · 2026-12-01T16:29ZVERDICT: should-fix, 2 items (S1, S2, carried from L2). No must-fix.
Next: a fix head for S1 and S2, then an L2 delta and an L1 delta. After that the PR goes to the seat as Tier H (governed |
…e and a scripted command A written key with no trailing comma, last on its own line, passed the forbidden list of four cases; the literal followed by a newline now fails it. The platform migration case caught `os rollback` and `os data seed` only at the start of a line; it now also catches the command indented, after a `$ ` prompt, after `npx ` or `pnpm `, and after `&& `. Every added token contains the token it replaced at the base, so an answer that passed before still passes. Claude-Session: https://claude.ai/code/session_01WGufzeatqKfTRUzTJVa9jQ Co-authored-by: Claude <noreply@anthropic.com>
|
repo:objectstack@os-support-ai · os-support-ai · session_01WGufzeatqKfTRUzTJVa9jQ Final green head (fix round 1) · 2026-12-01T16:57Z · zone osa-ai
|
|
repo:objectstack@os-support-ai · os-support-ai · session_01WGufzhGA3zoCFquQgku4pm Contract-review-claim: session_01WGufzhGA3zoCFquQgku4pm · head 0a66dc9 · 2026-12-01T16:58Z |
|
repo:objectstack@os-support-ai · os-support-ai · session_01WGufzhGA3zoCFquQgku4pm Delta round 1 · 2026-12-01T17:00Z · PR #38973 · card #38941 · delta to record 7317684903 (head 3815df5) Contract reviewServed-tier: ① Derived judgments
② Semver levelUnchanged: Clause-②: no ③ Boundary flags
④ Design judgmentS1: closed
No must-fix, no should-fix. Implemented-by: VERDICT: PASS |
|
repo:objectstack@os-support-ai · os-support-ai · session_01WGufzhGA3zoCFquQgku4pm L1 delta · PR #38973 (Part of #38941) · head 0a66dc9 · 2026-12-01T17:01ZVERDICT: ACCEPT. S1 and S2 are closed. No must-fix and no should-fix.
Next: hand off to the seat as Tier H (governed |
|
repo:objectstack@os-support-ai · os-support-ai · session_01WGufzhPdWmTd47Fi2bKYZS 席位核对ACCEPT — PR #38973 @
|
|
repo:objectstack@os-support-ai · os-support-ai · session_01WGufzhPdWmTd47Fi2bKYZS 维护者速读
|
|
repo:objectstack@os-support-ai · os-support-ai · session_01WGufzhPdWmTd47Fi2bKYZS 2026-12-01T23:42Z · Landing seat: taking this Tier H pull out of the merge queue and back to draft (Governed Surface Queue Guard, remedy 1).
|
Requested by Yibo Wang · project thread
Part of #38941
Claim for this branch: #38941 comment 7314964541
Clause-②: no
Metadata-protocol: none
repo:objectstack@os-support-ai · os-support-ai · session_01WGufzeatqKfTRUzTJVa9jQ
Ten of the card's eleven cases are here. The eleventh,
objectstack-i18nbundles-locales-coveragecase 12, is not: see the last item under Acceptance notes. The card stays open for it.维护者速读
What changes
assertionsof ten eval cases in six files of four skills, plus one changeset. Every prompt,expected_outputandfileslist is byte-identical, and noSKILL.md,rules/orreferences/file is touched. Every change loosens a condition: each new forbidden token contains an old one, nomust_containtoken is added, and eachmust_containtoken that leaves is a member of the any-of group that replaces it. So every answer that passed before still passes.The grader matches a literal, case-sensitive substring (
packages/qa/scenarios/src/skill-evals/grade.ts) and already supports the any-of form,must_contain_any(cases.ts,anyOfProblem). No grader feature is added.Three repairs, one per class of the card:
,,},}or the end of the line. A prose mention in backticks is followed by a backtick, so it passes.must_contain_anygroup.flows-triggers-approvals5label: 'error'label: 'error'alone does nothing", or labels its fault edgetype: 'fault'query_recordtype: 'query_record',"type": "query_record"query_record"flows-triggers-approvals7current_user.positionsin current_user.positions,current_user.positions.exists(,.contains(,.includes(current_user.positionsinside it"onEmptyApprovers: 'auto_approve',,},}or a newlineexcludeSubmitterflows-triggers-approvals11runAs: 'system',,},}or a newlinerunAs: 'system',, or with the key last on its own linesudosudo(,sudo:sudo"sudocall or keyflows-triggers-approvals15once per runonce per run,evaluated once,fan-out,fan outtemplateDatacannot carry the label: meets no memberintegrations-declared1/connection/connection,manage_connector_connections,once per organization,not connectedobjects-fields-relationships13ownership: 'user',,},}or a newlineownership: 'user', the default)"reference: 'sys_user'hooks-security-seeds-datasources16permissions:permissions: {defineStack({ permissions: [...] })permissionsblock on the objectsharingModel: 'public_read_write',,},}or a newlinesharingModel: 'public_read_write'cel-predicates-formulas4new Date(: new Date(,= new Date(new Date()"cel-predicates-formulas7label(label(record.kind)orlabel(record.status)followed by==or!=label()rulelabel()resultconfig-plugins-ops5os rollback,os data seed$,npxorpnpm, or after&&os rollbackwas removed" or "there is noos data seed", quoted or in plain proseFive of the rows go beyond the tokens the card lists:
query_record,onEmptyApprovers: 'auto_approve',sudo,sharingModel: 'public_read_write'andos data seed. Each sits in a listed case, and its bundle names it the same way (as the trap, or as the right spelling for another object), so the case could not meet "passes for an answer that is right" with it left bare.Case 13 is settled in the case. The data
SKILL.mdowner row is unchanged.Tests
All readings are on head
0a66dc9db5, against merge base45e4457cfe.(a) No forbidden token is in its own
expected_output: 0 of 57, over the ten cases.(b) No forbidden token is in the bundle's taught text in the sense the case forbids.
grep -rnF --include='*.md' -- TOKEN skills/BUNDLE, one run per token (the two newline-led tokens asgrep -rnE '^os (rollback|data seed)', the four newline-ended ones asgrep -rnE "LITERAL$"): 55 of the 57 have no hit. Two have hits, and each hit is a code sample for another flow or object:runAs: 'system',has 4:references/examples-flows.md:310and:379(twoscheduleflows),references/integration-recipes.md:44(aschedulesweep) and:118(anapicallback). None is an identity grant, which is what case 11 forbids.sharingModel: 'public_read_write',has 5:rules/relationships.md:24,:40,:117andrules/validation.md:325,:386, oncontact,invoice,project_assignment,invoiceandsales_order. The reference answer calls this "the posture for an ordinary shared business object"; case 16 forbids it on a performance review and a price list.(c) Graded probes. 66 answers graded by the runner's own reader and grader (
parseEvalFile,gradeAnswer), against each case at the merge base and at the head. No model is involved. A right probe is the reference answer, alone or with the bundle's own sentence appended verbatim from the file and line named. A wrong probe is the reference answer plus the wrong shape.$, afternpx, afterpnpmand after&&(two commands).Probe output, per case
The runner's reader over the whole catalog (
loadSkillEvalCatalog): 14 bundles, 377 cases, 0 refusals, before and after. The case hash moves on exactly the ten cases named and on no other.skill-evals --regradetherefore sets these ten apart from a round recorded before this change.Model re-runs: NOT MEASURED. They are the eval seat's round. The ten case keys, for
--case:Size (
skills/**). Changed files, whole file before and after, in lines:flows-triggers-approvals.json451 to 463,integrations-declared.json35 to 36,objects-fields-relationships.json533 to 536,hooks-security-seeds-datasources.json392 to 392,cel-predicates-formulas.json145 to 145,config-plugins-ops.json397 to 407. Whole package: everySKILL.mdsummed, 2141 lines before and after. Tokens, bycheck-skills-token-ratchet: authored text 181698 of 181698 (+0); eval fixtures, measured and not ratcheted, 91043 to 91350. No ceiling moves.Acceptance notes
label: 'error'is dropped, not narrowed. Atype: 'fault'edge may carry that label (flow-error-label-not-faultreports an ordinary edge only;packages/lint/src/lint-flow-patterns.tsskipse.type === 'fault'), so the written key is also a right answer's. An answer that has a fault edge and a second edge routed by the label alone now passes.ownership: 'user', as before and as the reference answer asks ("leavesownershipat its default"). Declaring the default changes nothing at run time. Whether that should count as a wrong answer is not decided here.,,},}or a newline after the value. A prose mention in backticks is followed by a backtick, so it passes. A prose line that ends on the bare literal, with nothing after it, fails now as it failed before. The JSON spelling of the same key is not forbidden: the old token did not match it, so adding it would fail answers that passed before.fan outis the reference answer's spelling; the skill writesfan-out.check-skill-eval-tokensasks that every any-of member be a whole token of its bundle. In CI it walksskills/objectuialone. Pointed at the whole catalog (an off-label reading of itsanalyze),objectstack-automationgoes from 11 untaught tokens to 12, andfan outis the one added. The other seven members are taught. The other three bundles are unchanged (data 31, formula 6, platform 6).forbids-own-answercases in bundles outside this PR, at the merge base and at the head:objectstack-aiskills-tools-knowledge11 (aiReadable),objectstack-askmetric-selection-fallback12 (is empty) and 15 (unknown),objectstack-uiviews-apps-actions-pages24 (definePage).objectstack-i18nbundles-locales-coveragecase 12 (forbidserror: {). Claim amendment 7316101116 moved that file into this branch, case 12 only. The edit was not made: this session's permission layer refused the write to that file twice, and it was not retried a third time. The intended change is in the report on the card:error: {becomes, error: {and the key at the start of an indented line.Verification
Local, on
0a66dc9db5:pnpm --dir ui run check:skill-eval-tokens --self-testexit 0;pnpm --dir ui run check:skill-eval-tokensexit 0 ("Red under the chosen oracle: 0").node scripts/check-skills-token-ratchet.mjs --self-testexit 0;node scripts/check-skills-token-ratchet.mjsexit 0.node scripts/pm/dispatch-gates.mjs --commandsderives 46 commands;--rananswers "46 derived famil(ies) accounted for — 41 run, 5 NOT-MEASURED". The 41 exit 0, among themcheck:skill-compatibility,check:skill-frame-sync,check:skill-identifier-liveness,check:skill-links,check:doc-authoring,check:nul-bytes,check:published-filesand the changeset gates.check:doc-formula-expressions,check:dts-closure,check:dual-build-cjs-loads,check:lean-entry-closure,check:sourcemap-no-sources-content. CI measures them.skill-evals --dry-run(it needs a built@objectstack/spec). The reader it uses was run directly, as above.Read first:
skills/objectstack-automation/evals/flows-triggers-approvals.json, the case 5 hunk: the one forbidden literal that is dropped. Then the case 15 hunk: which spellings the any-of group accepts.skills/objectstack-platform/evals/config-plugins-ops.json, case 5: the twelve spellings of the two commands.skills/objectstack-data/evals/objects-fields-relationships.json, case 13: the limit named third under Acceptance notes.Two-minute check, from the repository root. It reads every forbidden token of the six files against its own reference answer and prints one line per hit:
node -e "let n=0;for(const f of process.argv.slice(1))for(const e of require('./'+f).evals){for(const t of e.assertions?.must_not_contain??[]){n++;if((e.expected_output??'').includes(t))console.log('FORBIDS OWN ANSWER',f,e.id,t)}}console.log(n+' forbidden token(s) read')" skills/objectstack-automation/evals/flows-triggers-approvals.json skills/objectstack-automation/evals/integrations-declared.json skills/objectstack-data/evals/objects-fields-relationships.json skills/objectstack-data/evals/hooks-security-seeds-datasources.json skills/objectstack-formula/evals/cel-predicates-formulas.json skills/objectstack-platform/evals/config-plugins-ops.jsonExpected: the single line
256 forbidden token(s) read.Governed surface (
skills/**, Tier H): this PR stays draft. No reviewer is requested and nothing is queued or armed by the author.Generated by Claude Code