Repository navigation
Commit 5abcad0
docs(skills): four automation, query and ui evals spell their own must_contain literals (#33632)
<!-- claude-projects-attribution: {"github_login":"os-project-manager"}
-->
_Requested by **Leehom** · [project
thread](https://claude.ai/code/project/chan_01TenzsRopZj4jMbvjX8uz1X?thread=cmsg_01TenzsRopZj4jMbvjX8uz1XPR6X8mThHMiLNmP8gt1h7U)_
Fixes #33588
domain:skills#1 · os-project-manager · session_01FEkQ5pDNPLKWseNj7nKqBo
Clause-②: no
Metadata-protocol: none
## 维护者速读
- 改了什么:四个技能 eval 的参考答案(`expected_output`)改为写出它们自己 `must_contain`
要求的字面拼写:automation 第 20 例写成 `type: 'subflow'`,automation 集成第 2 例把两个字段写成
`{ dialect: 'cel', source: … }` 信封,query 第 2 例用小写 `keyset`,ui 分析第 1 例写出
`dataset`。断言、提示、编号一字未动。
- 为什么改:这四例的参考答案用散文描述了这些写法,拿自己的评分器去判会失败,所以分不出对的回答和错的回答。四个字面拼写都是 `main`
上技能正文与 spec 教的写法,错的是参考答案。
- 风险与回滚:只动 eval 夹具(测量、不计入棘轮)与一个 changeset,不动 SKILL.md、规则文件、schema
或运行时;回滚即还原本 PR。
- 先看:`skills/objectstack-automation/evals/integrations-declared.json` 第
17 行(唯一一处多于一个词的改动),其余三处各一个词。
- 两分钟验证:`git diff origin/main -- skills/`,预期只见四行
`expected_output`,每行把散文换成带引号的字面拼写。
- 需要你做的:受管面 Tier H(`skills/**`):请批准或合并。
## What changes
Four `expected_output` strings, one per file. No `must_contain` /
`must_not_contain` entry, prompt or id changes.
- **`objectstack-automation/evals/flows-triggers-approvals.json` eval
20**: "A `subflow` node" becomes "A `type: 'subflow'` node".
- **`objectstack-automation/evals/integrations-declared.json` eval 2**:
"`fields` read from the node's answer via CEL
(`bal.body.available[0].amount / 100.0`, `isoDatetime(now())`)" becomes
"... as CEL envelopes (`{ dialect: 'cel', source:
'bal.body.available[0].amount / 100.0' }`, `{ dialect: 'cel', source:
'isoDatetime(now())' }`)".
- **`objectstack-query/evals/filters-pagination-search.json` eval 2**:
"Keyset paging:" becomes "Use keyset paging:".
- **`objectstack-ui/evals/analytics-inline-vs-dataset.json` eval 1**:
"each widget binds it and selects" becomes "each widget names it in
`dataset` and selects".
- **`.changeset/33588-skills-evals-own-literals.md`**:
`'@objectstack/skills': patch` (the evals ship in the package's
`dist/skills`), with both declaration lines.
## Why
Per literal, which side is wrong against `main` 6e28797 (order ruling:
say which). In every case the literal is right and the `expected_output`
is wrong: it named the construct in prose, so the reference answer
failed its own grader.
| Eval | Literal | Taught on `main` at | Wrong side |
|---|---|---|---|
| automation flows 20 | `type: 'subflow'` | node table row
`skills/objectstack-automation/SKILL.md:76`; node type enum
`packages/spec/src/automation/flow.zod.ts:69`; written so in
`examples/app-showcase/src/automation/flows/index.ts:775` |
`expected_output` |
| automation integrations 2 | `dialect: 'cel'` | the same Stripe recipe,
`skills/objectstack-automation/references/integration-recipes.md:52-53`;
the envelope rule, `SKILL.md:241` | `expected_output` |
| query 2 | `keyset` | `skills/objectstack-query/SKILL.md:247` ("For
**keyset** paging (infinite scroll, ...)"), `rules/pagination.md:50-54`
| `expected_output` (capitalised "Keyset" only) |
| ui analytics 1 | `dataset` |
`skills/objectstack-ui/rules/dashboards.md:53` (`dataset: 'crm_sales'`
on the widget); `packages/spec/src/ui/dashboard.zod.ts:268` (`dataset`
is required on a widget) | `expected_output` (said only `defineDataset`)
|
The query literal is a case-only miss: a case-insensitive grader would
have passed the old text. The grader is not in this repository, so the
reference answer now matches the literal as written either way.
No `must_not_contain` literal of these four evals appears in the new
text (checked by the script below; `integrations-declared` eval 2
forbids `token:`, `type: 'http'`, `registerConnector(` and
`Authorization: 'Bearer`).
## Acceptance notes
- **Shape check over every `skills/*/evals/*.json`** (each eval:
`must_contain` literals missing from `expected_output`,
`must_not_contain` literals present in it), before on `origin/main`
6e28797, after on this head:
| Bundle | evals | misses before | misses after | must_not_contain hits
|
|---|---|---|---|---|
| objectstack-automation | 25 | 2 | 0 | 0 |
| objectstack-query | 7 | 1 | 0 | 0 |
| objectstack-ui | 29 | 1 | 0 | 1 (see below) |
| objectstack-data | 37 | 3 | 3 | 0 |
| objectstack-ai, -api, -formula, -i18n, -platform, -upgrade | 59 | 0 |
0 | 0 |
| objectui | 34 | 17 | 17 | 0 |
- **objectstack-data's three are not touched here**: they are PR #33586
(card #33404), still open at this head; once it merges the data bundle
reads 0.
- **objectui's 17** are that bundle's prose-summary convention (its own
`ui` `check:skill-eval-tokens` checks tokens against the skill text, not
against `expected_output`), out of the card's scope.
- **New, not in the card:
`objectstack-ui/evals/views-apps-actions-pages.json` eval 2 contains its
own `must_not_contain` literal** `requiresObject:
'sys_approval_request'`, in the sentence "(never `requiresObject:
'sys_approval_request'`: that object read answers 404 ...)". A reference
answer that warns against the wrong key in the key's own spelling fails
its own grader the same way. That file is outside this card's surface
and is the target of queued card #33560, so it is reported to the seat,
not fixed here. The fix shape has precedent (a reference answer reworded
so it names the forbidden form without its literal spelling;
`packages/skills/CHANGELOG.md` line 1017).
- **Shape check as a gate (option, not added).** A check that every
`must_contain` literal appears in its own `expected_output`, and no
`must_not_contain` literal does, over `skills/objectstack-*/evals` would
have stopped this drift and is about 15 lines over the existing JSON.
Per the order it is the maintainer's call and is not added here.
## Verification
Head 6881273, base `origin/main` 6e28797.
<details><summary>Shape check before and after</summary>
One-off script (scratchpad, not committed) over every
`skills/*/evals/*.json`.
- Before (`origin/main` 6e28797): automation flows-triggers-approvals
20 misses `type: 'subflow'`; automation integrations-declared 2 misses
`dialect: 'cel'`; query filters-pagination-search 2 misses `keyset`; ui
analytics-inline-vs-dataset 1 misses `dataset`; plus data 11, 12, 14 (PR
#33586), ui views-apps-actions-pages 2 must_not_contain hit, objectui
17.
- After (6881273): the four are gone; nothing else moved. All four
files still parse as JSON.
</details>
<details><summary>Line and token budget (skills/**)</summary>
- `objectstack-automation/evals/flows-triggers-approvals.json`: 410 to
410 lines, 24213 to 24221 bytes, 6054 to 6056 tokens.
- `objectstack-automation/evals/integrations-declared.json`: 35 to 35
lines, 5519 to 5588 bytes, 1380 to 1397 tokens.
- `objectstack-query/evals/filters-pagination-search.json`: 75 to 75
lines, 5409 to 5413 bytes, 1353 to 1354 tokens.
- `objectstack-ui/evals/analytics-inline-vs-dataset.json`: 87 to 87
lines, 5516 to 5529 bytes, 1379 to 1383 tokens.
- Eval fixtures are measured, not ratcheted. Whole package, all
`skills/*/SKILL.md`: 4597 to 4597 lines (no SKILL.md touched).
- `node scripts/pm/check-skill-line-ratchet.mjs`: exit 0. `node
scripts/check-skills-token-ratchet.mjs`: exit 0 ("57 authored bundle
file(s) within their ceilings; 10 generator-owned file(s) and 29 eval
fixture(s) measured, not ratcheted").
</details>
<details><summary>Derived gates</summary>
`node scripts/pm/dispatch-gates.mjs --commands --repo
objectstack-ai/objectstack` derived 41 families for the five paths. Each
ran on 6881273 with its exit code captured before any pipe, after
building `@objectstack/formula` and `@objectstack/lint` (and their
closure) under the verify lock (VERDICT command-exit 0, 79s):
- 39 exit 0, among them `check-adr-0087-registration` (scan and
`--self-test`), `check-changeset-no-major`,
`check-closing-keyword-parity`, `check-comment-mask-corpus`,
`check-empty-changeset` (scan and `--self-test`), `@objectstack/lint
check:doc-formula-expressions`, `check:doc-authoring`,
`check:nul-bytes`, `check:pm-governed-merges`, `check:published-files`,
`check:skill-compatibility`, `check:skill-frame-sync`,
`check:skill-identifier-liveness`, `check:skill-links`,
`check:dts-closure` and `check:sourcemap-no-sources-content` (each over
the built packages only).
- NOT MEASURED, exit 3 PREREQUISITE NOT MET (each reads every package's
`dist/`): `check:dual-build-cjs-loads`, `check:lean-entry-closure`. No
package source is touched; CI builds and runs them.
- `--ran` reconciliation: exit 0, "41 derived famil(ies) accounted for —
39 run, 2 NOT-MEASURED (2 DERIVED from a recorded exit 3)".
- CI families are read from this PR's check-runs, not re-run here.
</details>
<details><summary>Tier and governed readings</summary>
- `dispatch-gates --tier`: MANDATORY `claude-fable-5-2` (`skills/**`,
clause ①, the published catalog; no one-line exit for this surface).
This change was authored on the session's configured model; the at-tier
review is the seat's.
- `node scripts/pm/check-governed-merges.mjs --branch
claude/project-thread-1e54m4`: exit 3, GOVERNED, landing tier H (人合). 4
of 5 paths hit the register (`skills/**`); the changeset is not on it.
Size +14 / -4, under the 3000 threshold.
</details>
🤖 Generated with [Claude Code](https://claude.com/claude-code)
https://claude.ai/code/session_01FEkQ5pDNPLKWseNj7nKqBo
Co-authored-by: Claude <noreply@anthropic.com>1 parent 834d5f5 commit 5abcad0
5 files changed
Lines changed: 14 additions & 4 deletions
File tree
- .changeset
- skills
- objectstack-automation/evals
- objectstack-query/evals
- objectstack-ui/evals
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
354 | 354 | | |
355 | 355 | | |
356 | 356 | | |
357 | | - | |
| 357 | + | |
358 | 358 | | |
359 | 359 | | |
360 | 360 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
| 17 | + | |
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
| 17 | + | |
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
| 8 | + | |
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| |||
0 commit comments