diff --git a/.changeset/38941-eval-false-reds.md b/.changeset/38941-eval-false-reds.md new file mode 100644 index 00000000000..d75b2066160 --- /dev/null +++ b/.changeset/38941-eval-false-reds.md @@ -0,0 +1,32 @@ +--- +'@objectstack/skills': patch +--- + +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 + +Clause-②: no +Metadata-protocol: none + +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. + +`skills/objectstack-automation/evals/flows-triggers-approvals.json`: + +- 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. +- 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. +- 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. +- 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`. + +`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. + +`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. + +`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. + +`skills/objectstack-formula/evals/cel-predicates-formulas.json`: + +- 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. +- 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 `!=`. + +`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. + +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. diff --git a/skills/objectstack-automation/evals/flows-triggers-approvals.json b/skills/objectstack-automation/evals/flows-triggers-approvals.json index fa026622e75..d3cb3a78f22 100644 --- a/skills/objectstack-automation/evals/flows-triggers-approvals.json +++ b/skills/objectstack-automation/evals/flows-triggers-approvals.json @@ -94,8 +94,8 @@ "dialect: 'cel'" ], "must_not_contain": [ - "label: 'error'", - "query_record", + "type: 'query_record'", + "\"type\": \"query_record\"", "{recalc" ] } @@ -130,8 +130,14 @@ "type: 'position'" ], "must_not_contain": [ - "onEmptyApprovers: 'auto_approve'", - "current_user.positions" + "onEmptyApprovers: 'auto_approve',", + "onEmptyApprovers: 'auto_approve' }", + "onEmptyApprovers: 'auto_approve'}", + "onEmptyApprovers: 'auto_approve'\n", + "in current_user.positions", + "current_user.positions.exists(", + "current_user.positions.contains(", + "current_user.positions.includes(" ] } }, @@ -202,8 +208,12 @@ "granted_by" ], "must_not_contain": [ - "runAs: 'system'", - "sudo" + "runAs: 'system',", + "runAs: 'system' }", + "runAs: 'system'}", + "runAs: 'system'\n", + "sudo(", + "sudo:" ] } }, @@ -269,8 +279,10 @@ "assertions": { "must_contain": [ "option:opportunity.stage", - "template", - "once per run" + "template" + ], + "must_contain_any": [ + ["once per run", "evaluated once", "fan-out", "fan out"] ], "must_not_contain": [ "source: 'label(", diff --git a/skills/objectstack-automation/evals/integrations-declared.json b/skills/objectstack-automation/evals/integrations-declared.json index d90429ba556..e8f2ca99d35 100644 --- a/skills/objectstack-automation/evals/integrations-declared.json +++ b/skills/objectstack-automation/evals/integrations-declared.json @@ -7,7 +7,8 @@ "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.", "files": [], "assertions": { - "must_contain": ["defineConnector", "provider: 'openapi'", "credentialRef", "connector_action", "type: 'api'", "secretRef", "Swagger 2.0", "oauth2", "authorization_code", "/connection"], + "must_contain": ["defineConnector", "provider: 'openapi'", "credentialRef", "connector_action", "type: 'api'", "secretRef", "Swagger 2.0", "oauth2", "authorization_code"], + "must_contain_any": [["/connection", "manage_connector_connections", "once per organization", "not connected"]], "must_not_contain": ["registerConnector(", "connector-esign", "provider: 'docusign'", "implements Plugin", "clientSecret:", "token:", "blocked on outbound OAuth"] } }, diff --git a/skills/objectstack-data/evals/hooks-security-seeds-datasources.json b/skills/objectstack-data/evals/hooks-security-seeds-datasources.json index 7df9d5f327f..69e8356b82c 100644 --- a/skills/objectstack-data/evals/hooks-security-seeds-datasources.json +++ b/skills/objectstack-data/evals/hooks-security-seeds-datasources.json @@ -219,7 +219,7 @@ "files": [], "assertions": { "must_contain": ["sharingModel: 'private'", "sharingModel: 'public_read'"], - "must_not_contain": ["sharingModel: 'public_read_write'", "permissions:"] + "must_not_contain": ["sharingModel: 'public_read_write',", "sharingModel: 'public_read_write' }", "sharingModel: 'public_read_write'}", "sharingModel: 'public_read_write'\n", "permissions: {"] } }, { diff --git a/skills/objectstack-data/evals/objects-fields-relationships.json b/skills/objectstack-data/evals/objects-fields-relationships.json index d658205ce7e..f5c1a1bfa4f 100644 --- a/skills/objectstack-data/evals/objects-fields-relationships.json +++ b/skills/objectstack-data/evals/objects-fields-relationships.json @@ -236,7 +236,10 @@ "must_not_contain": [ "reference: 'sys_user'", "reference: 'user'", - "ownership: 'user'" + "ownership: 'user',", + "ownership: 'user' }", + "ownership: 'user'}", + "ownership: 'user'\n" ] } }, diff --git a/skills/objectstack-formula/evals/cel-predicates-formulas.json b/skills/objectstack-formula/evals/cel-predicates-formulas.json index 7f17ee7694a..e39c5877969 100644 --- a/skills/objectstack-formula/evals/cel-predicates-formulas.json +++ b/skills/objectstack-formula/evals/cel-predicates-formulas.json @@ -38,7 +38,7 @@ "files": [], "assertions": { "must_contain": ["cel`", "daysFromNow(", "daysBetween("], - "must_not_contain": ["new Date(", "today() + "] + "must_not_contain": [": new Date(", "= new Date(", "today() + "] } }, { @@ -68,7 +68,7 @@ "files": [], "assertions": { "must_contain": ["record.kind", "visibleWhen", "P`"], - "must_not_contain": ["label(", "{record."] + "must_not_contain": ["label(record.kind) !=", "label(record.kind) ==", "label(record.status) ==", "label(record.status) !=", "{record."] } }, { diff --git a/skills/objectstack-platform/evals/config-plugins-ops.json b/skills/objectstack-platform/evals/config-plugins-ops.json index 36eca684c74..474124aaffb 100644 --- a/skills/objectstack-platform/evals/config-plugins-ops.json +++ b/skills/objectstack-platform/evals/config-plugins-ops.json @@ -86,8 +86,18 @@ "os lint" ], "must_not_contain": [ - "os rollback", - "os data seed" + "\nos rollback", + " os rollback", + "$ os rollback", + "npx os rollback", + "pnpm os rollback", + "&& os rollback", + "\nos data seed", + " os data seed", + "$ os data seed", + "npx os data seed", + "pnpm os data seed", + "&& os data seed" ] } },