Skip to content

Commit 2f9a68c

Browse files
fix(skills): ten eval cases no longer fail a right answer on a named trap, a legitimate key or a one-spelling literal (#38973)
<!-- claude-projects-attribution: {"github_login":"os-support-ai"} --> _Requested by **Yibo Wang** · [project thread](https://claude.ai/code/project/chan_01BVUyyPie8gHwoPM18iABwB?thread=cmsg_01BVUyyPie8gHwoPM18iABwBG4YD4RMAt72Ga5PdYYZDAQ)_ 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-i18n` `bundles-locales-coverage` case 12, is not: see the last item under Acceptance notes. The card stays open for it. ## 维护者速读 - 用户能看到什么变化:用户无感;四个技能自带的十道评测题换了判分条件,技能文字和产品行为都不变。 - 为什么做:替做技能评测的人解决:这十道题把答对的回答判成错,技能改写后的对等读数和正式发布前的评测读数因此偏低。 - 出错会怎样:只会让这十道题判分偏松,不影响任何用户;撤回本改动即可复原。 - 要你做什么:这是对外发布的技能包,需要你审阅后亲手合并。 ## What changes `assertions` of ten eval cases in six files of four skills, plus one changeset. Every prompt, `expected_output` and `files` list is byte-identical, and no `SKILL.md`, `rules/` or `references/` file is touched. Every change loosens a condition: each new forbidden token contains an old one, no `must_contain` token is added, and each `must_contain` token 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: - **A, a forbidden literal the bundle writes or a right answer names while warning.** The literal becomes the spelling a wrong answer writes. For a key, that is the written key: the literal followed by `,`, ` }`, `}` or the end of the line. A prose mention in backticks is followed by a backtick, so it passes. - **B, a forbidden token that also matches a legitimate key.** It becomes the object-level block only. - **C, a required single spelling.** It moves into a `must_contain_any` group. | case | before | after | a right answer that failed and now passes | the wrong shape, and what still fails it | |:--|:--|:--|:--|:--| | automation `flows-triggers-approvals` 5 | forbids `label: 'error'` | dropped | one that repeats the skill's "A `label: 'error'` alone does nothing", or labels its fault edge | an edge routed by the label alone: fails on the required `type: 'fault'` | | same case | forbids `query_record` | `type: 'query_record'`, `"type": "query_record"` | one that repeats the skill's "no `query_record`" | a node of that type | | automation `flows-triggers-approvals` 7 | forbids `current_user.positions` | `in current_user.positions`, `current_user.positions.exists(`, `.contains(`, `.includes(` | one that repeats the skill's "never on `current_user.positions` inside it" | a condition in the flow that reads the run user's positions | | same case | forbids `onEmptyApprovers: 'auto_approve'` | that literal followed by `,`, ` }`, `}` or a newline | one that says it is refused beside `excludeSubmitter` | the key written on the node, with or without a trailing comma | | automation `flows-triggers-approvals` 11 | forbids `runAs: 'system'` | that literal followed by `,`, ` }`, `}` or a newline | one that explains why the grant cannot run as system (the prompt asks for it) | the flow written with `runAs: 'system',`, or with the key last on its own line | | same case | forbids `sudo` | `sudo(`, `sudo:` | one that repeats the skill's "never with `sudo`" | a `sudo` call or key | | automation `flows-triggers-approvals` 15 | requires `once per run` | any of `once per run`, `evaluated once`, `fan-out`, `fan out` | one that says "evaluated once, before fan-out" | an answer that never says why `templateData` cannot carry the label: meets no member | | automation `integrations-declared` 1 | requires `/connection` | any of `/connection`, `manage_connector_connections`, `once per organization`, `not connected` | one that describes the administrator's connect step without the route | an answer with no connect step: meets no member | | data `objects-fields-relationships` 13 | forbids `ownership: 'user'` | that literal followed by `,`, ` }`, `}` or a newline | one that repeats the skill's owner row, "(`ownership: 'user'`, the default)" | an object that declares the key (the reference answer leaves it unset); a hand-added owner lookup still fails on `reference: 'sys_user'` | | data `hooks-security-seeds-datasources` 16 | forbids `permissions:` | `permissions: {` | one that registers its sets with the stack key `defineStack({ permissions: [...] })` | a `permissions` block on the object | | same case | forbids `sharingModel: 'public_read_write'` | that literal followed by `,`, ` }`, `}` or a newline | one that says neither object is `sharingModel: 'public_read_write'` | an object written with that posture | | formula `cel-predicates-formulas` 4 | forbids `new Date(` | `: new Date(`, `= new Date(` | one that says "never a JS `new Date()`" | a seed value or a variable assigned a JavaScript date | | formula `cel-predicates-formulas` 7 | forbids `label(` | `label(record.kind)` or `label(record.status)` followed by ` ==` or ` !=` | one that repeats the skill's `label()` rule | a predicate that compares a `label()` result | | platform `config-plugins-ops` 5 | forbids `os rollback`, `os data seed` | each as a script writes it: at the start of a line, after two spaces, after `$ `, `npx ` or `pnpm `, or after `&& ` | one that says "`os rollback` was removed" or "there is no `os data seed`", quoted or in plain prose | a script, a CI step, a shell transcript or a chained command that runs either | Five of the rows go beyond the tokens the card lists: `query_record`, `onEmptyApprovers: 'auto_approve'`, `sudo`, `sharingModel: 'public_read_write'` and `os 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.md` owner row is unchanged. ## Tests All readings are on head `0a66dc9db5`, against merge base `45e4457cfe`. **(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 as `grep -rnE '^os (rollback|data seed)'`, the four newline-ended ones as `grep -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:310` and `:379` (two `schedule` flows), `references/integration-recipes.md:44` (a `schedule` sweep) and `:118` (an `api` callback). None is an identity grant, which is what case 11 forbids. - `sharingModel: 'public_read_write',` has 5: `rules/relationships.md:24`, `:40`, `:117` and `rules/validation.md:325`, `:386`, on `contact`, `invoice`, `project_assignment`, `invoice` and `sales_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. - 10 of 10 reference answers pass before and after. - 23 of 23 other right answers fail before and pass after. - 33 of 33 wrong-shape answers fail before and still fail after. Fourteen of them are the spellings the review named: a key last on its own line with no trailing comma (four cases), and each command indented, after `$ `, after `npx `, after `pnpm ` and after `&& ` (two commands). <details> <summary>Probe output, per case</summary> ```text == objectstack-automation/flows-triggers-approvals#5 hash 19ce738cd3d0 -> 1570b1f9b883 [right] reference answer before: PASS after: PASS [right] + SKILL.md:127-128, the bundle's own `label: 'error'` sentence before: FAIL forbidden ["label: 'error'"] after: PASS [right] + a fault edge that also carries the label before: FAIL forbidden ["label: 'error'"] after: PASS [right] + SKILL.md:84, "no `query_record`" before: FAIL forbidden ["query_record"] after: PASS [wrong] label-only edge, no `type: 'fault'` anywhere before: FAIL missing ["type: 'fault'"] forbidden ["label: 'error'"] after: FAIL missing ["type: 'fault'"] [wrong] + a `query_record` node before: FAIL forbidden ["query_record"] after: FAIL forbidden ["type: 'query_record'"] == objectstack-automation/flows-triggers-approvals#7 hash 98f324689e63 -> ba7c6678b2d1 [right] reference answer before: PASS after: PASS [right] + SKILL.md:140-142, the bundle's own `current_user.positions` sentence before: FAIL forbidden ["current_user.positions"] after: PASS [right] + state-machines-and-approvals.md:342, "`onEmptyApprovers: 'auto_approve'` is refused beside it" before: FAIL forbidden ["onEmptyApprovers: 'auto_approve'"] after: PASS [wrong] + a decision node on the run user's positions before: FAIL forbidden ["current_user.positions"] after: FAIL forbidden ["in current_user.positions"] [wrong] + `onEmptyApprovers: 'auto_approve',` written on the node before: FAIL forbidden ["onEmptyApprovers: 'auto_approve'"] after: FAIL forbidden ["onEmptyApprovers: 'auto_approve',"] [wrong] + `onEmptyApprovers: 'auto_approve'` last on its own line, no trailing comma before: FAIL forbidden ["onEmptyApprovers: 'auto_approve'"] after: FAIL forbidden ["onEmptyApprovers: 'auto_approve'\n"] [right] + prose ending a line on the back-ticked key: "never set `onEmptyApprovers: 'auto_approve'`" before: FAIL forbidden ["onEmptyApprovers: 'auto_approve'"] after: PASS == objectstack-automation/flows-triggers-approvals#11 hash 1fb1c0e78929 -> 813e1e74cb91 [right] reference answer before: PASS after: PASS [right] + SKILL.md:134-137, the bundle's own `runAs: 'system'` sentence before: FAIL forbidden ["runAs: 'system'"] after: PASS [right] + examples-flows.md:133, "never with `sudo`" before: FAIL forbidden ["sudo"] after: PASS [wrong] + the flow written with `runAs: 'system',` before: FAIL forbidden ["runAs: 'system'"] after: FAIL forbidden ["runAs: 'system',"] [wrong] + the flow written with `runAs: 'system'` last on its own line, no trailing comma before: FAIL forbidden ["runAs: 'system'"] after: FAIL forbidden ["runAs: 'system'\n"] [right] + prose ending a line on the back-ticked key: "cannot be done with `runAs: 'system'`." before: FAIL forbidden ["runAs: 'system'"] after: PASS [wrong] + a `sudo(` call before: FAIL forbidden ["sudo"] after: FAIL forbidden ["sudo("] == objectstack-automation/flows-triggers-approvals#15 hash d1e4f4776071 -> d583ff88aec8 [right] reference answer before: PASS after: PASS [right] the point in other words: "evaluated once, before fan-out" before: FAIL missing ["once per run"] after: PASS [right] the point in other words: "computed a single time, before recipients fan out" before: FAIL missing ["once per run"] after: PASS [wrong] the point left out before: FAIL missing ["once per run"] after: FAIL none-of [["once per run","evaluated once","fan-out","fan out"]] [wrong] + `label()` in `templateData` before: FAIL forbidden ["source: 'label("] after: FAIL forbidden ["source: 'label("] == objectstack-automation/integrations-declared#1 hash 27932088b85c -> b410855b0d8f [right] reference answer before: PASS after: PASS [right] the connect step with no path literal before: FAIL missing ["/connection"] after: PASS [wrong] the connect step left out before: FAIL missing ["/connection"] after: FAIL none-of [["/connection","manage_connector_connections","once per organization","not connected"]] == objectstack-data/objects-fields-relationships#13 hash 02301be8b78f -> 92ff684bff42 [right] reference answer before: PASS after: PASS [right] + SKILL.md:145, the bundle's own owner row before: FAIL forbidden ["ownership: 'user'"] after: PASS [wrong] + the object written with `ownership: 'user',` before: FAIL forbidden ["ownership: 'user'"] after: FAIL forbidden ["ownership: 'user',"] [wrong] + the object written with `ownership: 'user'` last on its own line, no trailing comma before: FAIL forbidden ["ownership: 'user'"] after: FAIL forbidden ["ownership: 'user'\n"] [right] + prose ending a line on the back-ticked key: "the default is `ownership: 'user'`" before: FAIL forbidden ["ownership: 'user'"] after: PASS [wrong] + a hand-added owner lookup before: FAIL forbidden ["reference: 'sys_user'"] after: FAIL forbidden ["reference: 'sys_user'"] == objectstack-data/hooks-security-seeds-datasources#16 hash aca966e66a43 -> 6a5dd9d8a42f [right] reference answer before: PASS after: PASS [right] + rules/security.md:19, the stack key `defineStack({ permissions: [...] })` before: FAIL forbidden ["permissions:"] after: PASS [right] the reference answer's "Neither is" sentence with the key spelled in full before: FAIL forbidden ["sharingModel: 'public_read_write'"] after: PASS [wrong] + a `permissions: {` block on the object before: FAIL forbidden ["permissions:"] after: FAIL forbidden ["permissions: {"] [wrong] + an object written `sharingModel: 'public_read_write',` before: FAIL forbidden ["sharingModel: 'public_read_write'"] after: FAIL forbidden ["sharingModel: 'public_read_write',"] [wrong] + an object written `sharingModel: 'public_read_write'` last on its own line, no trailing comma before: FAIL forbidden ["sharingModel: 'public_read_write'"] after: FAIL forbidden ["sharingModel: 'public_read_write'\n"] [right] + prose ending a line on the back-ticked key: "neither is `sharingModel: 'public_read_write'`." before: FAIL forbidden ["sharingModel: 'public_read_write'"] after: PASS == objectstack-formula/cel-predicates-formulas#4 hash 3557cc5e5f10 -> b128d6a2238d [right] reference answer before: PASS after: PASS [right] the warning naming the constructor: "never a JS `new Date()`" before: FAIL forbidden ["new Date("] after: PASS [wrong] + the seed written `close_date: new Date(...)` before: FAIL forbidden ["new Date("] after: FAIL forbidden [": new Date("] [wrong] + a helper `const d = new Date()` before: FAIL forbidden ["new Date("] after: FAIL forbidden ["= new Date("] == objectstack-formula/cel-predicates-formulas#7 hash 7fbb4fa0deaa -> 3097ed52f5cf [right] reference answer before: PASS after: PASS [right] + SKILL.md:111-115, the bundle's own `label()` rule before: FAIL forbidden ["label("] after: PASS [wrong] + a predicate comparing `label(record.kind)` before: FAIL forbidden ["label("] after: FAIL forbidden ["label(record.kind) !="] [wrong] + `visibleWhen` comparing `label(record.status)` before: FAIL forbidden ["label("] after: FAIL forbidden ["label(record.status) =="] == objectstack-platform/config-plugins-ops#5 hash 1d29988ab66e -> 665016236a21 [right] reference answer before: PASS after: PASS [right] + references/operations.md:92, "`os rollback` was removed" before: FAIL forbidden ["os rollback"] after: PASS [right] + references/operations.md:89, "there is no `os data seed`" before: FAIL forbidden ["os data seed"] after: PASS [wrong] + a script that runs `os rollback` before: FAIL forbidden ["os rollback"] after: FAIL forbidden ["\nos rollback"] [wrong] + a script that runs `os data seed` before: FAIL forbidden ["os data seed"] after: FAIL forbidden ["\nos data seed"] [right] unquoted prose: "the os rollback command does not exist" before: FAIL forbidden ["os rollback"] after: PASS [wrong] + `os rollback` indented in a CI step before: FAIL forbidden ["os rollback"] after: FAIL forbidden [" os rollback"] [wrong] + `$ os rollback` at a shell prompt before: FAIL forbidden ["os rollback"] after: FAIL forbidden ["$ os rollback"] [wrong] + `npx os rollback` before: FAIL forbidden ["os rollback"] after: FAIL forbidden ["npx os rollback"] [wrong] + `pnpm os rollback` before: FAIL forbidden ["os rollback"] after: FAIL forbidden ["pnpm os rollback"] [wrong] + `os migrate apply && os rollback` before: FAIL forbidden ["os rollback"] after: FAIL forbidden ["&& os rollback"] [right] unquoted prose: "the os data seed command does not exist" before: FAIL forbidden ["os data seed"] after: PASS [wrong] + `os data seed` indented in a CI step before: FAIL forbidden ["os data seed"] after: FAIL forbidden [" os data seed"] [wrong] + `$ os data seed` at a shell prompt before: FAIL forbidden ["os data seed"] after: FAIL forbidden ["$ os data seed"] [wrong] + `npx os data seed` before: FAIL forbidden ["os data seed"] after: FAIL forbidden ["npx os data seed"] [wrong] + `pnpm os data seed` before: FAIL forbidden ["os data seed"] after: FAIL forbidden ["pnpm os data seed"] [wrong] + `os migrate apply && os data seed` before: FAIL forbidden ["os data seed"] after: FAIL forbidden ["&& os data seed"] probes with an unwanted after-verdict: 0 ``` </details> **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 --regrade` therefore 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`: ```text objectstack-automation/flows-triggers-approvals#5 objectstack-automation/flows-triggers-approvals#7 objectstack-automation/flows-triggers-approvals#11 objectstack-automation/flows-triggers-approvals#15 objectstack-automation/integrations-declared#1 objectstack-data/objects-fields-relationships#13 objectstack-data/hooks-security-seeds-datasources#16 objectstack-formula/cel-predicates-formulas#4 objectstack-formula/cel-predicates-formulas#7 objectstack-platform/config-plugins-ops#5 ``` **Size (`skills/**`).** Changed files, whole file before and after, in lines: `flows-triggers-approvals.json` 451 to 463, `integrations-declared.json` 35 to 36, `objects-fields-relationships.json` 533 to 536, `hooks-security-seeds-datasources.json` 392 to 392, `cel-predicates-formulas.json` 145 to 145, `config-plugins-ops.json` 397 to 407. Whole package: every `SKILL.md` summed, 2141 lines before and after. Tokens, by `check-skills-token-ratchet`: authored text 181698 of 181698 (+0); eval fixtures, measured and not ratcheted, 91043 to 91350. No ceiling moves. ## Acceptance notes - **A literal cannot tell a counter-example from an answer.** An answer that writes the wrong shape out in full as its "do not" example still fails, in every case here. The narrowing lets a mention pass, not a written copy. - **Case 5, `label: 'error'` is dropped, not narrowed.** A `type: 'fault'` edge may carry that label (`flow-error-label-not-fault` reports an ordinary edge only; `packages/lint/src/lint-flow-patterns.ts` skips `e.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. - **Case 13 still fails an object that declares `ownership: 'user'`,** as before and as the reference answer asks ("leaves `ownership` at its default"). Declaring the default changes nothing at run time. Whether that should count as a wrong answer is not decided here. - **The written-key spellings are single-quoted, with `,`, ` }`, `}` 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. - **Platform case 5 forbids twelve spellings of two commands.** Each contains the old token, so nothing that passed can now fail. A sentence that names either command, in backticks or in plain prose after a single space, passes. - **`fan out` is the reference answer's spelling; the skill writes `fan-out`.** `check-skill-eval-tokens` asks that every any-of member be a whole token of its bundle. In CI it walks `skills/objectui` alone. Pointed at the whole catalog (an off-label reading of its `analyze`), `objectstack-automation` goes from 11 untaught tokens to 12, and `fan out` is the one added. The other seven members are taught. The other three bundles are unchanged (data 31, formula 6, platform 6). - **Noted, not touched:** the same off-label reading finds four `forbids-own-answer` cases in bundles outside this PR, at the merge base and at the head: `objectstack-ai` `skills-tools-knowledge` 11 (`aiReadable`), `objectstack-ask` `metric-selection-fallback` 12 (`is empty`) and 15 (`unknown`), `objectstack-ui` `views-apps-actions-pages` 24 (`definePage`). - **Not in this PR: `objectstack-i18n` `bundles-locales-coverage` case 12** (forbids `error: {`). 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-test` exit 0; `pnpm --dir ui run check:skill-eval-tokens` exit 0 ("Red under the chosen oracle: 0"). - `node scripts/check-skills-token-ratchet.mjs --self-test` exit 0; `node scripts/check-skills-token-ratchet.mjs` exit 0. - `node scripts/pm/dispatch-gates.mjs --commands` derives 46 commands; `--ran` answers "46 derived famil(ies) accounted for — 41 run, 5 NOT-MEASURED". The 41 exit 0, among them `check:skill-compatibility`, `check:skill-frame-sync`, `check:skill-identifier-liveness`, `check:skill-links`, `check:doc-authoring`, `check:nul-bytes`, `check:published-files` and the changeset gates. - NOT MEASURED, each exit 3 (PREREQUISITE NOT MET, the workspace is not built; this diff touches no package, so no build is owed locally): `check:doc-formula-expressions`, `check:dts-closure`, `check:dual-build-cjs-loads`, `check:lean-entry-closure`, `check:sourcemap-no-sources-content`. CI measures them. - NOT MEASURED: `skill-evals --dry-run` (it needs a built `@objectstack/spec`). The reader it uses was run directly, as above. Read first: 1. `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. 2. `skills/objectstack-platform/evals/config-plugins-ops.json`, case 5: the twelve spellings of the two commands. 3. `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: ```bash 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.json ``` Expected: 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](https://claude.ai/code/session_01WGufzeatqKfTRUzTJVa9jQ)_ <!-- signed: repo:objectstack@os-support-ai · os-support-ai · session_01WGufzeatqKfTRUzTJVa9jQ --> --------- Co-authored-by: Claude <noreply@anthropic.com>
1 parent 4203db7 commit 2f9a68c

7 files changed

Lines changed: 73 additions & 15 deletions

File tree

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
---
2+
'@objectstack/skills': patch
3+
---
4+
5+
docs(skills): ten eval cases in four skills no longer fail an answer for naming what it warns against, for writing a legitimate key, or for making a point in its own words
6+
7+
Clause-②: no
8+
Metadata-protocol: none
9+
10+
A `must_not_contain` entry is matched as a literal substring, so a bare literal also fails a correct answer that names it as the thing to avoid, and a `must_contain` entry accepts one spelling only. Ten cases graded a right answer as a fail for one of those reasons. Their `assertions` change; no prompt, reference answer or skill text does.
11+
12+
`skills/objectstack-automation/evals/flows-triggers-approvals.json`:
13+
14+
- Eval 5 (a failed HTTP call routed to a handler): `label: 'error'` is dropped. The skill itself says "A `label: 'error'` alone does nothing", and a `type: 'fault'` edge may carry that label too, so no literal separates the wrong edge from the right one. `type: 'fault'` is still required, so an answer that routes by the label alone still fails. `query_record` becomes the node spelling, `type: 'query_record'` or its JSON form.
15+
- Eval 7 (who may start an approval): `current_user.positions` becomes the check a wrong answer writes: `in current_user.positions`, or the list called with `.exists(`, `.contains(` or `.includes(`. `onEmptyApprovers: 'auto_approve'` becomes the written key: the literal followed by a comma, a closing brace or the end of the line. An answer that says either is refused still passes.
16+
- Eval 11 (a permission-set grant asked to run as system): `runAs: 'system'` becomes the written key in the same spellings, and `sudo` becomes `sudo(` or `sudo:`. An answer that explains why the grant cannot run as system still passes; a flow written with `runAs: 'system',`, or with the key last on its own line, still fails.
17+
- Eval 15 (an option label in each recipient's language): `once per run` moves from `must_contain` into a `must_contain_any` group with `evaluated once`, `fan-out` and `fan out`.
18+
19+
`skills/objectstack-automation/evals/integrations-declared.json`, eval 1 (DocuSign): `/connection` moves from `must_contain` into a `must_contain_any` group with `manage_connector_connections`, `once per organization` and `not connected`, so an answer that describes the administrator's connect step without the route passes.
20+
21+
`skills/objectstack-data/evals/objects-fields-relationships.json`, eval 13 (a ticket's 负责人): `ownership: 'user'` becomes the written key in the spellings above. The skill's own owner row names `ownership: 'user'` as the default, and an answer that repeats it passes; an object that declares the key still fails, as the reference answer leaves it unset.
22+
23+
`skills/objectstack-data/evals/hooks-security-seeds-datasources.json`, eval 16 (two sharing postures): `permissions:` becomes `permissions: {`, the object-level block, so the stack key `defineStack({ permissions: [...] })` passes. `sharingModel: 'public_read_write'` becomes the written key.
24+
25+
`skills/objectstack-formula/evals/cel-predicates-formulas.json`:
26+
27+
- Eval 4 (a seed date 45 days ahead): `new Date(` becomes `: new Date(` and `= new Date(`, a value or a variable assigned a JavaScript date.
28+
- Eval 7 (a predicate on a select): `label(` becomes a `label()` result compared in a predicate: `label(record.kind)` or `label(record.status)` followed by `==` or `!=`.
29+
30+
`skills/objectstack-platform/evals/config-plugins-ops.json`, eval 5 (migrating changed field types): `os rollback` and `os data seed` become the command as a script writes it: at the start of a line, indented by two spaces or more, after a `$ ` prompt, after `npx ` or `pnpm `, or after `&& `. An answer that says `os rollback` was removed still passes.
31+
32+
Every answer that passed before still passes. The ten cases have new case hashes, so `skill-evals --regrade` sets them apart from a round recorded before this change: compare them across rounds only after a re-run.

‎skills/objectstack-automation/evals/flows-triggers-approvals.json‎

Lines changed: 20 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -94,8 +94,8 @@
9494
"dialect: 'cel'"
9595
],
9696
"must_not_contain": [
97-
"label: 'error'",
98-
"query_record",
97+
"type: 'query_record'",
98+
"\"type\": \"query_record\"",
9999
"{recalc"
100100
]
101101
}
@@ -130,8 +130,14 @@
130130
"type: 'position'"
131131
],
132132
"must_not_contain": [
133-
"onEmptyApprovers: 'auto_approve'",
134-
"current_user.positions"
133+
"onEmptyApprovers: 'auto_approve',",
134+
"onEmptyApprovers: 'auto_approve' }",
135+
"onEmptyApprovers: 'auto_approve'}",
136+
"onEmptyApprovers: 'auto_approve'\n",
137+
"in current_user.positions",
138+
"current_user.positions.exists(",
139+
"current_user.positions.contains(",
140+
"current_user.positions.includes("
135141
]
136142
}
137143
},
@@ -202,8 +208,12 @@
202208
"granted_by"
203209
],
204210
"must_not_contain": [
205-
"runAs: 'system'",
206-
"sudo"
211+
"runAs: 'system',",
212+
"runAs: 'system' }",
213+
"runAs: 'system'}",
214+
"runAs: 'system'\n",
215+
"sudo(",
216+
"sudo:"
207217
]
208218
}
209219
},
@@ -269,8 +279,10 @@
269279
"assertions": {
270280
"must_contain": [
271281
"option:opportunity.stage",
272-
"template",
273-
"once per run"
282+
"template"
283+
],
284+
"must_contain_any": [
285+
["once per run", "evaluated once", "fan-out", "fan out"]
274286
],
275287
"must_not_contain": [
276288
"source: 'label(",

‎skills/objectstack-automation/evals/integrations-declared.json‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@
77
"expected_output": "A declarative instance inside the app, not a platform plugin and not a new connector package: `defineConnector` with `provider: 'openapi'`, whose `providerConfig.spec` is a packaged OpenAPI 3.x document converted offline from the Swagger 2.0 document and trimmed to the three operations (create envelope, get envelope, list status changes) (or `providerConfig.include` names those three operation keys, the `mcp` provider's allowlist meaning, where a non-array or unknown entry is fatal). Fields on `contract` (`envelope_id`, `signature_status`). Flows dispatch `connector_action`; the callback is a `type: 'api'` flow with a start-node `secretRef`, and its `config.signature` names DocuSign Connect's own header (`signs: 'body'`, `header: 'X-DocuSign-Signature-1'`, `algorithm: 'hmac-sha256'`, `encoding: 'base64'`), so status changes arrive verified instead of polled. `auth` is `{ type: 'oauth2', grant: 'authorization_code', authorizationUrl, tokenUrl, scopes, clientId, credentialRef }`, the client secret only a `credentialRef` (no inline `clientSecret`, no short-lived token parked behind a `bearer` `credentialRef`): the built-in `openapi` provider obtains and refreshes the token per dispatch, and the instance stays degraded \"not connected\" until an administrator holding `manage_connector_connections` connects it once per organization (`POST /api/v1/automation/connectors/docusign/connection`, then the vendor's redirect to `GET …/connectors/oauth/callback`; `DELETE` revokes). `connectorConfig.input` is a value slot: the per-contract payload reads the record through a CEL envelope (`envelopeId: { dialect: 'cel', source: 'record.envelope_id' }`), judged against the action's `inputSchema` before dispatch. The answer proposes no `registerConnector` code and no plugin.",
88
"files": [],
99
"assertions": {
10-
"must_contain": ["defineConnector", "provider: 'openapi'", "credentialRef", "connector_action", "type: 'api'", "secretRef", "Swagger 2.0", "oauth2", "authorization_code", "/connection"],
10+
"must_contain": ["defineConnector", "provider: 'openapi'", "credentialRef", "connector_action", "type: 'api'", "secretRef", "Swagger 2.0", "oauth2", "authorization_code"],
11+
"must_contain_any": [["/connection", "manage_connector_connections", "once per organization", "not connected"]],
1112
"must_not_contain": ["registerConnector(", "connector-esign", "provider: 'docusign'", "implements Plugin", "clientSecret:", "token:", "blocked on outbound OAuth"]
1213
}
1314
},

‎skills/objectstack-data/evals/hooks-security-seeds-datasources.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@
219219
"files": [],
220220
"assertions": {
221221
"must_contain": ["sharingModel: 'private'", "sharingModel: 'public_read'"],
222-
"must_not_contain": ["sharingModel: 'public_read_write'", "permissions:"]
222+
"must_not_contain": ["sharingModel: 'public_read_write',", "sharingModel: 'public_read_write' }", "sharingModel: 'public_read_write'}", "sharingModel: 'public_read_write'\n", "permissions: {"]
223223
}
224224
},
225225
{

‎skills/objectstack-data/evals/objects-fields-relationships.json‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,10 @@
236236
"must_not_contain": [
237237
"reference: 'sys_user'",
238238
"reference: 'user'",
239-
"ownership: 'user'"
239+
"ownership: 'user',",
240+
"ownership: 'user' }",
241+
"ownership: 'user'}",
242+
"ownership: 'user'\n"
240243
]
241244
}
242245
},

‎skills/objectstack-formula/evals/cel-predicates-formulas.json‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
"files": [],
3939
"assertions": {
4040
"must_contain": ["cel`", "daysFromNow(", "daysBetween("],
41-
"must_not_contain": ["new Date(", "today() + "]
41+
"must_not_contain": [": new Date(", "= new Date(", "today() + "]
4242
}
4343
},
4444
{
@@ -68,7 +68,7 @@
6868
"files": [],
6969
"assertions": {
7070
"must_contain": ["record.kind", "visibleWhen", "P`"],
71-
"must_not_contain": ["label(", "{record."]
71+
"must_not_contain": ["label(record.kind) !=", "label(record.kind) ==", "label(record.status) ==", "label(record.status) !=", "{record."]
7272
}
7373
},
7474
{

‎skills/objectstack-platform/evals/config-plugins-ops.json‎

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,8 +86,18 @@
8686
"os lint"
8787
],
8888
"must_not_contain": [
89-
"os rollback",
90-
"os data seed"
89+
"\nos rollback",
90+
" os rollback",
91+
"$ os rollback",
92+
"npx os rollback",
93+
"pnpm os rollback",
94+
"&& os rollback",
95+
"\nos data seed",
96+
" os data seed",
97+
"$ os data seed",
98+
"npx os data seed",
99+
"pnpm os data seed",
100+
"&& os data seed"
91101
]
92102
}
93103
},

0 commit comments

Comments
 (0)