Skip to content

docs(skills): objectstack-data evals 11, 12 and 14 spell their own must_contain literals - #33586

Merged
os-zhuang merged 1 commit into
mainfrom
claude/project-thread-yumyr5
Nov 15, 2026
Merged

os-zhuang merged 1 commit into
mainfrom
claude/project-thread-yumyr5

Conversation

@objectstack-fleet

Copy link
Copy Markdown
Contributor

Requested by Leehom · project thread

Fixes #33404

domain:skills#1 · os-project-manager · session_01FEkQ5kosBSSwdHAtnroZRx

Clause-②: no
Metadata-protocol: none

维护者速读

  • 改了什么:objectstack-data 的 objects-fields-relationships.json 里第 11、12、14 例的参考答案(expected_output)改为写出它们自己 must_contain 要求的字面拼写:type: 'select'、type: 'state_machine'、type: 'summary'、type: 'formula'、label: '公司名称'、value: 'active'。断言本身一字未动。
  • 为什么改:这三例的参考答案只用散文描述这些类型和标签,用自己的评分器去判会失败,所以这三例分不出对的回答和错的回答。六个字面拼写都是 main 上 data 技能教的写法,错的是参考答案,不是断言。
  • 风险与回滚:只动 eval 夹具(测量、不计入棘轮)与一个 changeset,不动 SKILL.md、schema 或运行时;回滚即还原本 PR。
  • 先看:skills/objectstack-data/evals/objects-fields-relationships.json 第 192、211、246 行。
  • 两分钟验证:git diff origin/main -- skills/,预期只见三行 expected_output 把散文换成带引号的字面拼写;对整份文件逐例检查,每个 must_contain 都出现在 expected_output 里,没有任何 must_not_contain 出现。
  • 需要你做的:受管面 Tier H(skills/**):请批准或合并。

What changes

skills/objectstack-data/evals/objects-fields-relationships.json, three expected_output strings. No must_contain / must_not_contain entry, prompt or id changes.

  • Eval 11 (order lifecycle): "a status select" becomes "a status field of type: 'select'"; "a state_machine validation" becomes "a type: 'state_machine' validation".
  • Eval 12 (project task counts): "are summary fields" becomes "are type: 'summary' fields"; "completion_rate is a formula" becomes "completion_rate is a type: 'formula' field".
  • Eval 14 (supplier object): "(公司名称, 联系邮箱, 合作状态; options active → 合作中, terminated → 已终止)" becomes "(label: '公司名称', label: '联系邮箱', label: '合作状态'; options { label: '合作中', value: 'active' }, { label: '已终止', value: 'terminated' })". The two sibling labels and the second option are spelled the same way so the sentence stays one shape.
  • .changeset/33404-skills-data-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 (order ruling: say which). In every case the literal is right and the expected_output is wrong: it named the type or label in prose, so the reference answer failed its own grader.

Eval Literal Taught on main at Wrong side
11 type: 'select' skills/objectstack-data/references/examples-objects.md:73, :80 expected_output
11 type: 'state_machine' rules/validation.md:110, references/examples-objects.md:94 expected_output
12 type: 'summary' rules/relationships.md:47, :188 expected_output
12 type: 'formula' rules/field-types.md:217 expected_output
14 label: '公司名称' the eval's own rule: labels follow the request's language (label: '供应商' already in the same answer) expected_output
14 value: 'active' rules/field-types.md:80-86 (every option has a lowercase value and a label, written { label, value }) expected_output

The other literals of these evals (initialStates: ['draft'], transitions, function: 'count', filter: { status: 'completed' }, label: '供应商', sharingModel) were already present and are unchanged.

Acceptance notes

  • Order mechanism assumption 2 does not hold as worded. skills/objectstack-data/evals/README.md does not state that every must_contain literal must appear in expected_output; it says expected_output is "what a correct answer does (and avoids)" and the assertions are "string checks used to score the output". The rule is the card's (a reference answer should pass its own grader), and every other eval in the file already follows it. Not changed here: a README sentence was not in the order's surface.
  • The same shape check over every skills/*/evals/*.json on main 4bba8b8 (measure only, not fixed here, per the order). After this PR the data bundle is clean (every must_contain literal in expected_output, no must_not_contain literal in it). Other misses:
    • objectstack-automation/evals/flows-triggers-approvals.json eval 20: type: 'subflow'.
    • objectstack-automation/evals/integrations-declared.json eval 2: dialect: 'cel'.
    • objectstack-query/evals/filters-pagination-search.json eval 2: keyset.
    • objectstack-ui/evals/analytics-inline-vs-dataset.json eval 1: dataset.
    • objectui/evals/*.json: 17 evals across 8 files miss one or more tokens. objectui's expected_output is written as a short prose summary throughout, and its own gate (ui check:skill-eval-tokens) checks that each token is taught by the skill, not that it is in expected_output, so these read as that bundle's convention rather than drift.
  • Shape check. A check that each must_contain literal appears in its expected_output would have stopped this drift and is about 15 lines over the existing JSON. Not added (the order rules no gate; the four-axis framework defaults new gates to no). Raised for the seat to decide whether a card is worth filing.

Verification

Head 7a68c599, base origin/main 4bba8b8.

Shape check before and after

One-off script over skills/objectstack-data/evals/*.json (each eval: must_contain literals missing from expected_output; must_not_contain literals present in it).

  • Before (origin/main 4bba8b8): eval 11 ["type: 'select'","type: 'state_machine'"], eval 12 ["type: 'summary'","type: 'formula'"], eval 14 ["label: '公司名称'","value: 'active'"]. No other miss in either data file.
  • After (7a68c59): no miss in either data file; no must_not_contain hit in objects-fields-relationships.json. The file still parses as JSON.
Line and token budget (skills/**)
  • skills/objectstack-data/evals/objects-fields-relationships.json: 332 to 332 lines, 20684 to 20792 bytes, 5171 to 5198 tokens (eval fixture: 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").
Derived gates: 41 derived, 39 green, 2 NOT MEASURED

node scripts/pm/dispatch-gates.mjs --commands --repo objectstack-ai/objectstack derived 41 families for the two paths. Each ran on 7a68c59 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-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 5 built packages only).
  • NOT MEASURED, exit 3 (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: "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.
Tier and governed readings
  • 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, claude-opus-5-5; the at-tier review is the seat's.
  • node scripts/pm/check-governed-merges.mjs --branch claude/project-thread-yumyr5: exit 3, GOVERNED, landing tier H (人合). 1 of 2 paths hits the register (skills/**); the changeset is not on it. Size +13 / -3, under the 3000 threshold.

🤖 Generated with Claude Code

https://claude.ai/code/session_01FEkQ5kosBSSwdHAtnroZRx

…st_contain literals

The reference answers described the select, state_machine, summary and
formula types and the supplier labels in prose, so each failed its own
grader. They now spell the literals the data skill teaches.

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FEkQ5kosBSSwdHAtnroZRx
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

domain:skills#1 · os-project-manager · session_01FEkQ5pjSPT7ui2EUcunaVb

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: 7a68c59984a7c1f9cf0eab0a16b9a12cf26a5600
Local-runs: probe — one read-only jq containment query over the head blob of the hits file (each must_contain / must_not_contain literal against its own expected_output), to answer the brief's "no other literal is now missing" across all 18 evals; nothing built, no gate or test run
Scope: skills/objectstack-data/evals/objects-fields-relationships.json + none

PR #33586, card #33404, net diff against main 4bba8b8 (2 files, +13 / -3). The changeset is the lane seat's ACCEPT at TIER_DEFAULT; it is read here only for ②.

① Derived judgments

  • Accept-set: no change. No schema, validator, runtime or SKILL.md / rules/ / references/ line moves. Right.
  • Published surface: @objectstack/skills ships the skills/** tree in dist (packages/skills/package.json files: ["dist", …]; packages/skills/README.md:8 names evals/ among the shipped parts; sync-catalog.mjs copies every skill directory with no evals exclusion). So three shipped fixture strings change. Right that this is a published change, and right that it is text only.
  • Grader semantics: assertions.must_contain / must_not_contain, every prompt and every id are byte-identical to main; only three expected_output strings differ. No eval becomes easier or harder for an agent answer; only the reference answer now passes its own grader. Right.
  • Check-runs on this head at read time: no failed conclusion. Success: Check Changeset, Lint · PM dispatch-gates, Governed Surface Queue Guard, PR-body guards, Check PR Size, Type Check · workspace, Type Check · debt ledger, Build Core, Plan Test Core shards, Test UI, Dogfood Regression Gate, the three scoped Lint jobs, Auto Label, filter. Still in progress, so NOT yet a verdict: Lint · docs and code guards, Lint · repo and tooling gates, Lint · CI, release and engine gates, Lint · ESLint, Type Check · source gates, Type Check · consumer gates, Test Core shards, Live E2E UI. This PASS is the design verdict on the tree; the seat reads those conclusions before it lands the PR.

② Semver level

  • .changeset/33404-skills-data-evals-own-literals.md: '@objectstack/skills': patch. Matches what the diff publishes (shipped eval fixture text, no behaviour, no authorable key). Patch is right; nothing here is minor or major.
  • Clause-②: no on both the PR body and the changeset: right, nothing narrows. Metadata-protocol: none: right.
  • Check Changeset concluded success on this head.

③ Boundary flags

  • open_questions: empty. Nothing to answer.
  • Deviation, model tier (authored on opus where --tier mandates the review tier for skills/**): answered by this at-tier record over the whole hits file.
  • Deviation, no HTML signature and no labels: process lines, no contract effect; left to the seat.
  • Dev flag, "order mechanism assumption 2 is false as worded": CONFIRMED. skills/objectstack-data/evals/README.md at this head only names the fixture shape (skill_name, evals[]: prompt, expected_output, assertions.must_contain / must_not_contain) and lists the two fixture files with their topics. It states no rule that every must_contain literal must appear in expected_output (the card body's sentence "The evals README requires…" is wrong too). The PR does NOT rely on the README: its justification is the card's own business reason (a reference answer that fails its own grader cannot separate right from wrong) plus the fact that the other 15 evals already hold the shape. That stands on its own. Whether the README should state the rule is a follow-up for the seat, not owed by this PR.
  • Out-of-scope findings (same drift in objectstack-automation, objectstack-query, objectstack-ui, objectui evals; a shape check of about 15 lines): correctly not fixed here (file surface is skills/objectstack-data/evals/**); escalated to the seat to card or drop. The triage comment asked for the shape check to be "carried here or split out"; the PR splits it out by naming it, which the card's "optionally name" permits.

④ Design judgment

skills/objectstack-data/evals/objects-fields-relationships.json, each added text against main 4bba8b8:

  • Eval 11 type: 'select': the field-type enum spells it 'select' (packages/spec/src/data/field.zod.ts:75); taught at references/examples-objects.md:73 and :80. Holds.
  • Eval 11 type: 'state_machine': the validation discriminator is z.literal('state_machine') (packages/spec/src/data/validation.zod.ts:194); taught at rules/validation.md:110 and references/examples-objects.md:94. The sentence it sits in ("transitions governs only UPDATE and a select accepts any option on insert", initialStates: ['draft']) restates the schema's own initialStates description at validation.zod.ts:197. Holds.
  • Eval 12 type: 'summary' and type: 'formula': both in the field-type enum (field.zod.ts:93); taught at rules/relationships.md:47, :188 and rules/field-types.md:217. summaryOperations.object / function: 'count' beside them match rules/relationships.md:188-195. Holds.
  • Eval 14 label: '公司名称', label: '联系邮箱', label: '合作状态': the three field names the prompt gives, verbatim, in the same spelling the answer already used for label: '供应商'. Holds against the prompt.
  • Eval 14 { label: '合作中', value: 'active' }, { label: '已终止', value: 'terminated' }: the prompt's two states as labels, lowercase ASCII values, in the { label, value } order rules/field-types.md:80-86 teaches. It does not trip must_not_contain value: '合作中' (the Chinese text is the label, as that negative literal demands). Holds.
  • Coherence: each of the three strings still reads as one reference answer; the rewrites are in-place substitutions, no clause is orphaned (eval 11 keeps its later bare "a select accepts any option", which is prose about the type and reads correctly after the literal).
  • Whole file at the head: 18 evals, zero must_contain literal missing from its expected_output, zero must_not_contain literal present in one, file parses as JSON. On main the only misses were the six this PR fixes.
  • Tried to break it: (a) a literal right on the assertion side but wrong against the spec, none, all six are the canonical spellings; (b) a rewrite that leaks a forbidden literal (label: 'Supplier', value: '合作中', filter: { status: '已完成' }, approved: ['已发货']), none; (c) the rewrite quietly changing what the eval grades, no, assertions untouched.

Findings:

  • nit, eval 14: only the first of the three field labels and the first of the two options are required by must_contain; the PR spells all five in literal form for one sentence shape. Harmless and arguably better; accepted as written.
  • nit, not this diff: the card body and the order both assert a README rule that does not exist. If the seat wants the every-literal rule to be a contract rather than a habit, one README sentence (or the shape check the dev names) is the carrier; follow-up card, not a change to this head.

No must-fix, no should-fix. Nits only: the round ends.

Implemented-by: claude/project-thread-yumyr5
Reviewed-by: session_01FEkQ5pjSPT7ui2EUcunaVb

VERDICT: PASS

Adopted by the seat 2026-11-15T02:10Z · isolated sub-agent at CONTRACT_REVIEW_TIER (served model verified by the seat) · Ruling-ref: Leehom card cmsg_01TenzsRopZj4jMbvjX8uz1XFhuiZmTH8VFgMmHRmpiGAb, option A, tapped 2026-11-14T15:37Z

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

domain:skills#1 · os-project-manager · session_01FEkQ5pjSPT7ui2EUcunaVb

维护者速读

  • 改了什么:skills/objectstack-data/evals/objects-fields-relationships.json 的第 11、12、14 条评测,把各自 must_contain 要求的字面量(type: 'select'、type: 'state_machine'、type: 'summary'、type: 'formula'、label: '公司名称'、value: 'active')补进参考答案 expected_output。字面量本身对照 main 都是正确拼写,错的是参考答案。外加 @objectstack/skills patch changeset。
  • 为什么改:卡 skills(objectstack-data): evals 11, 12 and 14 of objects-fields-relationships.json list must_contain literals their expected_output lacks #33404,这三条评测的参考答案过不了自己的打分规则,无法区分对错答案。
  • 风险与回滚:只改评测参考答案,不改技能正文、不改行为。回滚即还原本 PR。
  • 先看:三条 expected_output 的改动。
  • 两分钟验证:git diff origin/main...HEAD --stat,预期 2 个文件。
  • 需要你做的:受管面 Tier H(skills/**)。达档(CONTRACT_REVIEW_TIER,席位已核对实际模型)复审 PASS 评论 6887753445(Head-sha 7a68c59984a7c1f9cf0eab0a16b9a12cf26a5600),请批准或直接合并。
  • 席位意见:可以合。复审逐条对照 spec 核过六个字面量,并确认全文件 18 条评测此后都满足自己的字面量。

席位核对

Verdict: ACCEPT, held for the maintainer · head 7a68c59984a7c1f9cf0eab0a16b9a12cf26a5600 · card #33404 · report 6887628715 · at-tier contract review 6887753445 (PASS, no must-fix or should-fix; CONTRACT_REVIEW_TIER, served model verified by the seat; Ruling-ref for the in-seat review: Leehom card cmsg_01TenzsRopZj4jMbvjX8uz1XFhuiZmTH8VFgMmHRmpiGAb option A).

  • Shape: draft → main, Fixes #33404. skills/objectstack-data/evals/objects-fields-relationships.json and one changeset (@objectstack/skills patch; the package ships evals/). GOVERNED, Tier H (skills/**). Clause-②: no; Metadata-protocol: none.
  • Gates: 41 derived, 39 exit 0, 2 NOT MEASURED locally (check:dual-build-cjs-loads, check:lean-entry-closure; no package source touched); both skill ratchets exit 0. Check-runs on the head all concluded, none failing.
  • Accepted deviations (nits): eval 14 spells all three labels and both options literally though only the first of each is required; the card and order cited an every-literal rule the evals README does not state (the PR does not rely on it).
  • Follow-up: the same drift in four automation, query and ui evals, and the optional shape check, are carded as skills(automation, query, ui): four more evals list must_contain literals their own expected_output lacks #33588.
  • Landing: Tier H. The seat does not flip this PR ready or enqueue it. It needs the maintainer's merge, or an authorised APPROVED review after which the seat lands it.

@objectstack-fleet objectstack-fleet Bot added the pm:awaiting-merge PR only: landing waits on the maintainer's own review and merge (SKILL.md 复核 ②); never on an issue label Nov 15, 2026
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

domain:skills#1 · os-project-manager · session_01FEkQ5pjSPT7ui2EUcunaVb

维护者速读

  • 改了什么:skills/objectstack-data/evals/objects-fields-relationships.json 的第 11、12、14 条评测,把各自 must_contain 要求的字面量(type: 'select'、type: 'state_machine'、type: 'summary'、type: 'formula'、label: '公司名称'、value: 'active')补进参考答案 expected_output。字面量本身对照 main 都是正确拼写,错的是参考答案。外加 @objectstack/skills patch changeset。
  • 为什么改:卡 skills(objectstack-data): evals 11, 12 and 14 of objects-fields-relationships.json list must_contain literals their expected_output lacks #33404,这三条评测的参考答案过不了自己的打分规则,无法区分对错答案。
  • 风险与回滚:只改评测参考答案,不改技能正文、不改行为。回滚即还原本 PR。
  • 先看:三条 expected_output 的改动。
  • 两分钟验证:git diff origin/main...HEAD --stat,预期 2 个文件。
  • 需要你做的:受管面 Tier H(skills/**)。达档(CONTRACT_REVIEW_TIER,席位已核对实际模型)复审 PASS 评论 6887753445(Head-sha 7a68c59984a7c1f9cf0eab0a16b9a12cf26a5600),请批准或直接合并。
  • 席位意见:可以合。复审逐条对照 spec 核过六个字面量,并确认全文件 18 条评测此后都满足自己的字面量。

席位核对

Verdict: ACCEPT, held for the maintainer · head 7a68c59984a7c1f9cf0eab0a16b9a12cf26a5600 · card #33404 · report 6887628715 · at-tier contract review 6887753445 (PASS, no must-fix or should-fix; CONTRACT_REVIEW_TIER, served model verified by the seat; Ruling-ref for the in-seat review: Leehom card cmsg_01TenzsRopZj4jMbvjX8uz1XFhuiZmTH8VFgMmHRmpiGAb option A).

  • Shape: draft → main, Fixes #33404. skills/objectstack-data/evals/objects-fields-relationships.json and one changeset (@objectstack/skills patch; the package ships evals/). GOVERNED, Tier H (skills/**). Clause-②: no; Metadata-protocol: none.
  • Gates: 41 derived, 39 exit 0, 2 NOT MEASURED locally (check:dual-build-cjs-loads, check:lean-entry-closure; no package source touched); both skill ratchets exit 0. Check-runs on the head all concluded, none failing.
  • Accepted deviations (nits): eval 14 spells all three labels and both options literally though only the first of each is required; the card and order cited an every-literal rule the evals README does not state (the PR does not rely on it).
  • Follow-up: the same drift in four automation, query and ui evals, and the optional shape check, are carded as skills(automation, query, ui): four more evals list must_contain literals their own expected_output lacks #33588.
  • Landing: Tier H. The seat does not flip this PR ready or enqueue it. It needs the maintainer's merge, or an authorised APPROVED review after which the seat lands it.

@os-zhuang
os-zhuang marked this pull request as ready for review November 15, 2026 02:50
@os-zhuang
os-zhuang enabled auto-merge November 15, 2026 02:50
@os-zhuang
os-zhuang added this pull request to the merge queue Nov 15, 2026
Merged via the queue into main with commit ccf2899 Nov 15, 2026
50 checks passed
@os-zhuang
os-zhuang deleted the claude/project-thread-yumyr5 branch November 15, 2026 04:44
scbdzhwl pushed a commit to scbdzhwl/objectstack-analysis that referenced this pull request Nov 16, 2026
…t_contain literals (objectstack-ai#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 objectstack-ai#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 objectstack-ai#33586
(card objectstack-ai#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 objectstack-ai#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
objectstack-ai#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>
scbdzhwl pushed a commit to scbdzhwl/objectstack-analysis that referenced this pull request Nov 16, 2026
…owner_id (objectstack-ai#33555)

<!-- claude-projects-attribution: {"github_login":"os-project-manager"}
-->
_Requested by **Leehom** · [project
thread](https://claude.ai/code/project/chan_01TenzsRopZj4jMbvjX8uz1X?thread=cmsg_01TenzsRopZj4jMbvjX8uz1XACQi5GZRKaJH4A4nUXpUQP)_

Fixes objectstack-ai#33506

domain:skills#1 · os-project-manager · session_01FEkQ5ocBJgBm6Bz2yqoibS

Clause-②: no
Metadata-protocol: none

## 维护者速读

- 改了什么:objectstack-data 技能的「Record owner」规则写明:需求里的负责人、处理人、assignee、owner
就是平台注入的 `owner_id`,不另建字段;只有需求明确区分「负责人」和另一位处理者时才加一个 `user`
字段,且标签不得与对象上任何可见字段重名(点名注入列 `owner_id` Owner/负责人、`created_by`
创建人、`updated_by` 更新人、`created_at`、`updated_at`),并说明它不授予访问权。快速模板里的工单示例去掉了
`assigned_to` 字段,新增 eval 19(工单应用 + 负责人)。
- 为什么改:staging 上 AI 搭建的工单应用多建了一个标签也叫「负责人」的 `assignee`
字段,表格两列「负责人」、看板重复显示,而只有 `owner_id` 决定记录可见性。技能里的快速模板正好教了一个 `assigned_to`
用户字段。
- 风险与回滚:只改对外发布的技能文字和一条 eval,无代码、无契约改动;`@objectstack/skills` patch。回滚即还原本
PR。
- 先看:`skills/objectstack-data/SKILL.md` 的 Record owner
行;`references/examples-objects.md` 快速模板的 `// assignee`
行;`evals/objects-fields-relationships.json` 的 id 19。
- 两分钟验证:`node scripts/check-skills-token-ratchet.mjs | grep
objectstack-data/SKILL.md`,预期 `6657 tokens (ceiling 6665; headroom 8)`。
- 需要你做的:审阅并合并(`skills/**` 属 Tier H,需你亲手合并或授权批准)。

## What changes

All in `skills/objectstack-data/` (one owner file for the rule, two
cross-references, one eval):

- **`SKILL.md`, Relationship Patterns → Record owner row (the rule).**
The row already said "never a hand-added owner / person in charge
lookup". It now says the same `owner_id` answers a request's assignee,
负责人 or 处理人, and that a handler the request names apart from the owner is
a `user` field that grants no access, with a label no other visible
field carries, the injected columns included: `owner_id` (Owner, 负责人),
`created_by` (创建人), `updated_by` (更新人), `created_at` (创建时间),
`updated_at` (更新时间). The Field Type Selection bullet drops `assignee`
from its `user`-field examples so the two places no longer disagree.
- **`references/examples-objects.md`, Quick-Start Template
(cross-reference 1).** The `support_case` template declared
`assigned_to: { type: 'user' }` beside the injected `owner_id`: the
exact shape the staging build produced. It is replaced by the comment
`// assignee: the injected owner_id`.
- **`rules/field-types.md`, `user` row (cross-reference 2).** The
example list reads `(reviewer, watchers)` instead of `(assignee,
watchers)`; same byte count.
- **`evals/objects-fields-relationships.json`, eval 19** (and one README
phrase). The prompt asks, in Chinese, for a ticket app whose 负责人 can be
reassigned. It expects `owner_id` reused and must not contain
`assignee:`, `assigned_to:` or `label: '负责人'`.

The label set is measured, not guessed:
`packages/spec/src/data/injected-system-column-provenance.ts` defines
the injected columns (`owner_id` label `Owner`, not hidden;
`created_at`, `created_by`, `updated_at`, `updated_by` not hidden;
`organization_id`, `owning_business_unit_id`, `queue` hidden), and
`SYSTEM_FIELD_LABELS` in `packages/spec/src/system/i18n-resolver.ts`
serves their zh-CN labels (`owner_id` → 负责人, `created_by` → 创建人,
`updated_by` → 更新人, `created_at` → 创建时间, `updated_at` → 更新时间).

## Acceptance notes

- **No build check exists today.** `git grep` over `packages/lint/src`,
`packages/spec/src`, `packages/objectql/src` and `packages/cli/src` for
a duplicate- or colliding-label rule has no hit. The check is split to
objectstack-ai#33545 and is not touched here.
- **The objectstack-ui skill still teaches `assigned_to` as the owner
column.** `skills/objectstack-ui/rules/list-views.md` has `{ field:
'assigned_to', label: 'Owner' }` and a "mine" filter on `assigned_to`
(lines 53, 60, 101, 321), `rules/actions.md:44` uses it as a param, and
`evals/views-apps-actions-pages.json` eval 1 answers a prompt's "owner"
column with `assigned_to`. That is outside this order's surface (two
cross-references); reported to the seat as a follow-up.
- **Token payment, no ceiling raised.** `SKILL.md` is 6657 tokens
against its 6665 ceiling (6606 on the original base `e3f0cfd4`; 6665 on
today's `main`, after objectstack-ai#33458's `aiReadable` row spent the headroom round
1 had used). The new text costs about 82 tokens, all paid by deleting
restatement in the same file: the `(maintainer ruling 2026-08-13)`
aside; the `(ADR-0113)`, `(ADR-0061)`, `ADR-0120` and `(ADR-0146 D10)`
asides; the line "Toggle system behaviours per object:" that restates
its heading; the `ObjectExtensionSchema` and
`PermissionSetSchema.objects.*` schema pointers (`references/_index.md`
already points at `object.zod.ts` and `permission.zod.ts`); the internal
constant name `BASE_FIELD_DISPLAY_WHITELIST`; "See rules/validation.md
for all types and examples." (the Quick Reference list links it); and a
shorter new sentence. No eval expects any of the deleted text.
- **Round 2 merge (`4fccfc87`, `origin/main` `7f0e38a2`).** objectstack-ai#33586 added
its own eval 18 to `objects-fields-relationships.json`; main's file is
kept whole and this PR's eval follows unchanged as id 19. objectstack-ai#33589's
`field-types.md` lines are intact; this PR's diff there is still only
the `user` row's example word.

## Verification

Changed: 6 files, +40 / -19 (head `a2d3008d`). `dispatch-gates --tier`:
`Model tier — MANDATORY: claude-fable-5-2` (`skills/**`, no one-line
exit). `check-governed-merges --branch`: GOVERNED, Tier H (5 of 6 paths
on the register; the changeset is not), 59 changed lines, under 3000.
Changeset: `.changeset/33506-skills-owner-id-for-assignee.md`,
`'@objectstack/skills': patch` (`skills/**` ships in `dist/skills`).

Readings against today's `main` `7f0e38a2` (lines, then tokens; the
gate's count, which leaves out the release-stamp line):

| File | Lines before → after | Tokens before → after (ceiling) |
|:--|:--|:--|
| `skills/objectstack-data/SKILL.md` | 478 → 473 | 6665 → 6657 (6665) |
| `skills/objectstack-data/references/examples-objects.md` | 191 → 191 |
1723 → 1724 (1728) |
| `skills/objectstack-data/rules/field-types.md` | 246 → 246 | 3206 →
3206 (3208) |
| `skills/objectstack-data/evals/objects-fields-relationships.json` |
332 → 348 | eval fixture, not ratcheted |
| All `skills/*/SKILL.md` together | 4593 → 4588 | 59058 → 59050
(`ceil(bytes / 4)`, stamp lines included) |

<details><summary>47 derived gate families on a2d3008 (round 1 on
0249dda, same list and verdicts): 46 exit 0, 1 NOT MEASURED; `--ran`
reconciliation 47 / 47</summary>

Closure built first under the verify lock: `turbo run build
--filter=@objectstack/lint... --filter=@objectstack/client-react...`,
`VERDICT command-exit 0`.

```
node scripts/check-adr-0087-registration.mjs --base origin/main :: exit 0
node scripts/check-adr-0087-registration.mjs --self-test :: exit 0
node scripts/check-changeset-no-major.mjs --base origin/main :: exit 0
node scripts/check-closing-keyword-parity.mjs :: exit 0
node scripts/check-closing-keyword-parity.mjs --self-test :: exit 0
node scripts/check-comment-mask-corpus.mjs :: exit 0
node scripts/check-doc-route-spelling.mjs --advisory :: exit 0
node scripts/check-doc-route-spelling.mjs --self-test :: exit 0
node scripts/check-dts-emitted.mjs --self-test :: exit 0
node scripts/check-empty-changeset.mjs --base origin/main :: exit 0
node scripts/check-empty-changeset.mjs --self-test :: exit 0
node scripts/check-skills-token-ratchet.mjs :: exit 0
node scripts/check-skills-token-ratchet.mjs --self-test :: exit 0
node scripts/ci/assert-turbo-remote-cache.mjs --self-test :: exit 0
node scripts/ci/plan-test-core-shards.mjs --self-test :: exit 0
node scripts/ci/prune-turbo-cache.mjs --self-test :: exit 0
node scripts/ci/snapshot-next.mjs --self-test :: exit 0
node scripts/pm/release-rehearsal-clone.mjs --self-test :: exit 0
node scripts/release-pending-publish.mjs --self-test :: exit 0
pnpm check:agent-test-spelling :: exit 0
pnpm check:changeset-gate-self-tests :: exit 0
pnpm check:ci-filter-parity :: exit 0
pnpm check:closed-ceremony-text :: exit 0
pnpm check:corpus-claim-drift :: exit 0
pnpm check:cross-package-test-inputs :: exit 0
pnpm check:doc-authoring :: exit 0
pnpm check:driver-memory-census :: exit 0
pnpm check:gitlink-declared :: exit 0
pnpm check:merge-driver :: exit 0
pnpm check:nul-bytes :: exit 0
pnpm check:pm-governed-merges :: exit 0
pnpm check:pm-skill-id-lint :: exit 0
pnpm check:published-files :: exit 0
pnpm check:refd-timer-probe :: exit 0
pnpm check:role-word :: exit 0
pnpm check:skill-compatibility :: exit 0
pnpm check:skill-frame-sync :: exit 0
pnpm check:skill-identifier-liveness :: exit 0
pnpm check:skill-links :: exit 0
pnpm check:watch-hint-literal :: exit 0
pnpm --filter @objectstack/lint run check:doc-formula-expressions :: exit 0
pnpm --filter @objectstack/spec run check:skill-docs :: exit 0
pnpm --filter @objectstack/spec run check:skill-refs :: exit 0
pnpm check:dts-closure :: exit 0
pnpm check:dual-build-cjs-loads :: exit 3
pnpm check:lean-entry-closure :: exit 0
pnpm check:sourcemap-no-sources-content :: exit 0
```

`check:dual-build-cjs-loads` exit 3 is PREREQUISITE NOT MET (it reads
every package's `dist/`; no package is touched, so no full build is
owed): NOT MEASURED here, CI runs it. Outside the derivation, the edited
`os:check` block was verified with `pnpm --filter @objectstack/spec run
check:skill-examples` :: exit 0.

</details>

🤖 Generated with [Claude Code](https://claude.com/claude-code)

https://claude.ai/code/session_01FEkQ5ocBJgBm6Bz2yqoibS

<!-- signed: domain:skills#1 · os-project-manager ·
session_01FEkQ5ocBJgBm6Bz2yqoibS -->

---------

Co-authored-by: Claude <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation pm:awaiting-merge PR only: landing waits on the maintainer's own review and merge (SKILL.md 复核 ②); never on an issue size/s tooling Fix lands in tooling, not a product package — enters pm:queue only with Unblocks: or a named surface

Projects

None yet

Development

Successfully merging this pull request may close these issues.

skills(objectstack-data): evals 11, 12 and 14 of objects-fields-relationships.json list must_contain literals their expected_output lacks

3 participants