Skip to content

feat(lint): advise a dataset measure or dimension that declares neither synonyms nor a description - #34822

Merged
os-zhuang merged 10 commits into
mainfrom
claude/issue-34718-dataset-member-vocabulary-advisory
Nov 17, 2026
Merged

os-zhuang merged 10 commits into
mainfrom
claude/issue-34718-dataset-member-vocabulary-advisory

Conversation

@objectstack-fleet

@objectstack-fleet objectstack-fleet Bot commented Nov 17, 2026 •

Copy link
Copy Markdown
Contributor

Requested by Yibo Wang · project thread

repo:objectstack#3 · os-support-ai · session_01WGufzgwLiKcfujYUug7sPs

Closes #34718

Clause-②: yes (widening) — @objectstack/lint gains three exports on its "." entry: validateDatasetMemberVocabulary, DATASET_MEMBER_NO_VOCABULARY and the DatasetMemberVocabularyFinding type; nothing accepted before is refused
Metadata-protocol: none

Claim amendment applied (seat comment 6947260430 on the card), round-1 head b5554ad9cb: Gap 1 = A (the os generate dataset scaffold seeds member synonyms from labels; the zero-finding scaffold test is unchanged), Gap 2 = A (examples keep synonyms only; descriptions and bundle translations belong to a separate card), Gap 3 (packages/metadata-protocol/src/runtime-authoring-gate.dataset-writes.test.ts is in the surface). Second amendment (seat comment 6949469635, after L1 ACCEPT 6949452870 with should-fix S1), head 80edbdae04: S1 is closed in this PR, content/docs/data-modeling/analytics.mdx and content/docs/ui/dashboards.mdx joined the surface and their example members now carry vocabulary; N1 names generate-permission-dataset.pin.test.ts in the surface. Third amendment (seat comment 6951572798, answering the seat's L2 record 6951558966, PASS with should-fix S1), head 4b69badef9: the L2 S1 is closed on this head, the Clause-② line here and in the changeset is restated as a widening (three new @objectstack/lint exports; Metadata-protocol: none and all three patch levels unchanged); projectTasksDataset in content/docs/ui/dashboards.mdx gets synonyms on its six members; the Gap 2 descriptions and bundle translations are carried by #34873.

Final head 5566847410: a clean --no-ff merge of origin/main (fc5913e117, 29 first-parent commits) on top of 4b69badef9, ordered by the seat. git show --remerge-diff of the merge is empty (no hand resolution); the delta against origin/main is the same 23 files, +815/-82, as before the merge. On the merged head: main prints 69 author-time rules and this branch 70 in the four transcript pages; check:docs-transcript-drift exit 0 after building the CLI closure (exit 3, prerequisite, before it); check-changeset-no-major --base origin/main, check-empty-changeset --base origin/main, check:nul-bytes, check:doc-authoring exit 0; the rule's three lint test files (validate-dataset-member-vocabulary, rule-id-barrel-exports, runtime-gate.dataset-writes) 37 tests passed. overlap-check at this head: exit 1 against draft PR 34791 only, unchanged. Readings below that name an earlier head were taken at that head and not repeated here; the rest is CI's on this head.

维护者速读

  • 改了什么:数据集的指标或维度如果既没写 synonyms 也没写 description,校验(os validate / os build / os lint)和发布保存时会给一条提醒,每个成员一条,只提醒不拒绝;dashboards 技能改为教「按用户提问的语言写同义词,加一句业务定义,一个词只指一个成员」,并加了一条中文需求的评测用例;todo 和 showcase 两个示例的数据集成员补了同义词;os generate dataset 生成的脚手架现在给每个成员写一条从已有标签取的同义词,并注释提醒作者换成用户真正会说的词。
  • 为什么改:同义词是用户用自己的话问数时命中受管指标的唯一途径(ADR-0149 D1),此前没有任何检查提示作者去写,应用可以发布一批没有同义词的数据集而全部通过。
  • 风险与回滚:只新增提醒,不改任何已有判定;回滚即 revert 本 PR。脚手架写出的同义词只是标签原文(中文标签就是中文词),不是用户口语,靠注释提醒作者替换。
  • 先看:packages/lint/src/validate-dataset-member-vocabulary.ts(规则本身);skills/objectstack-ui/rules/dashboards.md(对外技能的教学改写,替换了原有四行注释);packages/cli/src/commands/generate.ts(脚手架同义词取词与撞词回退)。
  • 两分钟验证:pnpm --filter @objectstack/lint exec vitest run src/validate-dataset-member-vocabulary.test.ts,预期 12 条全过。
  • 需要你做的:请 os-zhuang 审批。这是 Tier H:改到 skills/**,同时发布 lint 与 cli,Clause-② 为 yes,不符合技能低风险放权条件。依据见席位记录 6953337113;本 head 已有 L1-a delta ACCEPT 6953282003 和席位 L2 delta PASS 6953278488,批准后由 o3-B 落地。

What changes

  • packages/lint: one advisory authoring rule, dataset-member-no-vocabulary (warning, never error), in validate-dataset-member-vocabulary.ts. It reports once per dataset measure or dimension that has no non-blank synonyms entry and no non-blank description (a string, or an inline locale map with one non-blank value). The finding's location names the dataset and the member; the sentence says the member answers only to its own name and label, so a question in a user's own words does not find it. One of the two keys silences it.
  • Registered in authoring-rules.ts as advisory, on all three commands, on the runtime publish door for a dataset write (runtimeTypes: ['dataset']). rule-explanations.ts gains the os explain dataset-member-no-vocabulary entry; index.ts exports the function, the id constant and the finding type.
  • skills/objectstack-ui/rules/dashboards.md: the four-line member comment under the dataset example is rewritten to say: every member gets synonyms, the words a person types, in the brief's language (matched, never translated; one word names one member), and a one-sentence business description, never a prompt; a member with neither draws the new warning. The example's signed_date dimension gains a synonym so the example does not draw the warning it teaches.
  • skills/objectstack-ui/evals/analytics-inline-vs-dataset.json: eval 9, a dataset authored from a Chinese brief, expecting Chinese synonyms and a Chinese one-sentence description on every member, and refusing a locale-keyed synonyms map. The evals README names it.
  • Examples (data only): every member of todo_task_metrics (9) and of the four showcase datasets (30) gains synonyms. Convention followed: the one examples/app-crm uses, English and Chinese words in the one list.
  • packages/cli (os generate dataset): the scaffold writes one synonyms entry on each of its two members, seeded from a label the stack already declares, under a comment telling the author to replace the seed with the words users type and to add a description. The dimension takes the title field's label, else the title-cased field name; the record count takes the object's plural label, else its label. A seed that would also name the other member (by normalizeDatasetTerm) is skipped for the next candidate, so the scaffold always parses. The bound-object binding gains displayFieldLabel.
  • Docs transcripts: the author-time rule count the CLI prints goes 69 to 70 in the four pages that quote it.
  • Dataset guides (S1): in content/docs/data-modeling/analytics.mdx the example's 3 dimensions and 5 measures each gain synonyms, and 4 measures gain a one-sentence description; a new Key rules bullet names the two keys, what a member with neither costs a user (a question in their own words misses the governed metric) and the advisory id dataset-member-no-vocabulary. In content/docs/ui/dashboards.mdx the 4 members of salesDataset gain synonyms and revenue gains a description. Both examples stay in English, the language they were written in. Round 3: the page's second dataset, projectTasksDataset (3 dimensions, 3 measures), gains English synonyms on every member.
  • Two existing fixtures that pin the dataset publish door are updated because this rule joins that door: packages/lint/src/runtime-gate.dataset-writes.test.ts (the exact rule list at the door, and the app-crm corpus copy, which predated the vocabulary the shipped dataset now carries) and packages/metadata-protocol/src/runtime-authoring-gate.dataset-writes.test.ts (its "clean dataset" had bare members and asserted no advisories; its members now carry synonyms). The second file joined the surface by the claim amendment.
  • CLI pins: generate-permission-dataset.pin.test.ts pins the seeded synonyms, a Chinese-labelled object, and four collision cases; test/generate-binds-from-stack.test.ts names the new displayFieldLabel in the binding it pins (a pin this change made stale; not named in the amendment).
  • Changeset: @objectstack/lint, @objectstack/cli and @objectstack/skills, each patch.

Why

ADR-0149 D1 makes synonyms and description the vocabulary a business question is matched and explained by, and both are optional. Nothing prompted an author to write them, so an app could publish datasets with none and pass every check, and its users then got ungoverned numbers for questions the app has a governed metric for.

Tests

Readings are from this worktree at the head each line names; the final head is 4b69badef9, which adds two commits on b5554ad9cb that touch docs and the changeset only (merge-base with origin/main is 3bbda33b78; main, at e9f65a3b57, was 14 first-parent commits ahead at the last push and merges cleanly). At the round-3 push main was at fc5913e117, 29 first-parent commits past the merge-base; it was not merged in (the round's order was one commit), git merge-tree against it is clean, and it still prints 69.

  • pnpm --filter @objectstack/lint test: exit 0, 216 files, 9136 tests passed (at 837ffc184c; the one later commit edits one CLI test file).
  • pnpm --filter @objectstack/lint typecheck and pnpm --filter @objectstack/cli typecheck: exit 0 (at 837ffc184c).
  • CLI unit tier, pnpm --filter @objectstack/cli exec vitest run --project unit, at 837ffc184c: exit 1, 1 failed, 6056 passed, 426 files. The one failure was the bound-object pin in test/generate-binds-from-stack.test.ts, which did not name displayFieldLabel. After that pin was updated, at b5554ad9cb: test/generate-binds-from-stack.test.ts, test/generate-scaffold-validates.test.ts and src/commands/generate-permission-dataset.pin.test.ts read exit 0, 3 files, 74 tests passed. The whole unit tier was not rerun at b5554ad9cb; the integration tier is CI's.
  • Docs examples through the rule, at 80edbdae04 (a scratch script extracted each defineDataset literal from the page, ran DatasetSchema.safeParse and validateDatasetMemberVocabulary from the built @objectstack/lint, and was deleted): analytics.mdx as written, 8 members, parse succeeds, 0 findings; control with the added keys stripped, 8 findings. dashboards.mdx as written, 4 members, parse succeeds, 0 findings; control stripped, 4 findings.
  • Round 3, at 4b69badef9, the same scratch check (deleted again), now also folding every member's name, label and synonyms with normalizeDatasetTerm and counting terms owned by two members: projectTasksDataset as written, 6 members, parse succeeds, 0 findings, 18 folded terms, 0 cross-member collisions; control stripped, 6 findings. salesDataset: 0 findings, 12 terms, 0 collisions; control 4. analytics.mdx SalesDataset: 0 findings, 25 terms, 0 collisions; control 8.
  • Scaffold output for a non-English stack, measured by rendering the template for an object labelled 发票 whose title field invoice_no is labelled 发票号: the dimension line carries synonyms: ['发票号'] and the record_count line carries synonyms: ['发票']. The seed is the label as written, in the label's language; nothing is translated or transliterated. With no field label the seed is the title-cased field name (Name), with no plural label it is the object label (Account). These are labels, not user phrasing, which is what the scaffold's comment says.
  • packages/lint/src/validate-dataset-member-vocabulary.test.ts, 12 tests: silent on a complete dataset; one finding per member on a dataset stripped of both keys; silent on a member with only synonyms and on a member with only a description (string and locale map); an empty list, a blank string and an empty map read as not declared; registry entry is advisory on three commands and the dataset door; each of validate, build, lint reports 4 warnings on the stripped dataset and none on the complete one; the publish door returns 4 advisories and zero errors, and reports nothing for a bare stored sibling.
  • pnpm --filter @objectstack/metadata-protocol exec vitest run src/runtime-authoring-gate.dataset-writes.test.ts: exit 0, 5 passed. Before the fixture edit, the full pnpm --filter @objectstack/metadata-protocol test at 0aebfd190 plus working tree read 1 failed (this file), 23055 passed.
  • pnpm --filter @objectstack/metadata-protocol typecheck: exit 0 (at c3d9575bb).
  • pnpm --filter @objectstack/example-crm test 51 passed; example-todo 249 passed; example-showcase 545 passed; all exit 0. Their three typecheck runs exit 0 (at c3d9575bb).
  • test/generate-scaffold-validates.test.ts is unchanged and green: the os g dataset scaffold adds no finding at any severity. Before the scaffold change (head 25b81e2190) that case read exit 1, 1 failed, 25 passed.
  • Ablation (one, on the rule's guard): scripts/ablation-replace.mjs replaced the early return so every member reads as declared; mutation landed (anchor 1 to 0, blob 31d46e12ed19 to f03adde23089); the rule's test file went 8 failed, 4 passed; restore verified (blob equals HEAD, git diff HEAD empty). A first attempt used an undefined identifier and failed by throwing, so it was discarded and rerun with a behavioural mutation.

Verification

os validate through the built CLI, per example:

example before (rule absent, 69 rules) rule present, example data at base after (head 25b81e2190, 70 rules)
examples/app-crm exit 0, 0 findings of this rule not applicable (no data edit) exit 0, 0 findings
examples/app-todo exit 0, 0 exit 0, 9 findings (one per member) exit 0, 0 findings
examples/app-showcase not measured (its closure was not built yet) exit 0, 30 findings (one per member) exit 0, 0 findings

Gates at fix round 3 (4b69badef9; delta is one changeset line and one docs example), each exit 0: check:skill-examples (exit 3 until client-react was built, then 0), check:doc-authoring, check:corpus-claim-drift, check:doc-anchors, check:nul-bytes, check-empty-changeset --base origin/main, check-changeset-no-major --base origin/main, check:changeset-gate-self-tests, @objectstack/spec check:docs, check:docs-transcript-drift. The local check-changeset-no-major run prints "LEVEL AXIS: NOT APPLICABLE" because it has no pull request payload; the reading of the declaration lines against this body is CI's Check Changeset. The rest of the 115 derived families were not rerun this round and are CI's.

Gates at fix round 2 (80edbdae04, docs-only delta): the derivation is the same 115 families. 113 were run: 111 exit 0, among them the ones that read these pages (check:skill-examples, which type-checks the os:check blocks, check:doc-authoring, check:doc-anchors, check:corpus-claim-drift, @objectstack/spec check:docs, check:docs-transcript-drift, check:nul-bytes). check:i18n and check:i18n-walk-parity answered exit 3 (prerequisite: the CLI was not built in this round's worktree): NOT MEASURED this round, both exit 0 in round 1. Not run this round: check:i18n-coverage and check:dual-build-cjs-loads (both want builds this docs-only round did not make). Those four are CI's.

Gates at the fix round, derived by node scripts/pm/dispatch-gates.mjs --commands at 837ffc184c: 115 families. 112 answered exit 0 on the first run. Three answered exit 3 (prerequisite, nothing measured): check:skill-examples and check:i18n-coverage, each exit 0 after the builds they name ("14 config(s), 423 baselined untranslated string(s), none new"), and check:dual-build-cjs-loads, which wants a repo-wide build: NOT MEASURED locally, CI's. dispatch-gates --ran: 115 derived, 115 run. Rerun at b5554ad9cb, each exit 0: check:tier-file-adoption, check:test-source-alias, check:cross-package-test-inputs, check:agent-test-spelling, check-skills-token-ratchet, check:docs-transcript-drift, check:type-check-coverage, check:type-check-debt, check-changeset-no-major --base origin/main, check:nul-bytes.

Earlier round, local subset derived by node scripts/pm/dispatch-gates.mjs --commands (109 families at c3d9575bb): all exit 0 after one rerun. check:skill-examples first answered exit 3 (prerequisite: packages/client-react not built), and exit 0 once it was built. dispatch-gates --ran: 109 derived, 109 run, 0 NOT-MEASURED, 0 UNRUN. After the merge of origin/main, rerun at 25b81e2190, each exit 0: check:docs-transcript-drift, check-skills-token-ratchet, check:i18n-coverage ("14 config(s), 423 baselined untranslated string(s), none new"), check-changeset-no-major --base origin/main, check-empty-changeset, check:nul-bytes, check:doc-authoring, check:cross-package-test-inputs, check:skill-examples, check:skill-identifier-liveness, check:skill-links. Every other family is CI's.

Skills size, lines and tokens (the token ratchet's unit):

file lines before lines after tokens before tokens after
skills/objectstack-ui/rules/dashboards.md 475 476 6230 (ceiling 6232) 6232 (ceiling 6232)
whole shipped bundle not counted not counted 252563 252871

No SKILL.md is edited. Of the bundle's +308 tokens, +2 are in dashboards.md and the rest are the eval fixture and its README, which the ratchet measures and does not price. The ceiling is not raised: the new teaching replaces the previous comment, which said "every language in one list", "none may equal another member's name, label or synonym" and "translated like label"; the first two are restated shorter and the third is dropped from this file (the objectstack-i18n skill states the member description key).

Acceptance notes

  1. The os generate dataset scaffold (ruled, Gap 1 = A). The scaffold seeds synonyms from labels, as described above; the zero-finding scaffold test is not relaxed. A seeded synonym is a starting word, not vocabulary: for an object whose labels are English the scaffold's dataset answers to English words only until the author edits it.
  2. Example members carry synonyms only, no description (ruled, Gap 2 = A). A member description is display text, so it is an expected translation key. Measured on examples/app-todo: adding 9 member descriptions moved i18n/missing-dataset from 22 to 40 and the config's untranslated total from 106 to 124, which check:i18n-coverage refuses as growth over its baseline of 106. Translating them means editing the examples' translation bundles, outside the claim's data-only surface; the seat ruled that work to a separate card, which is examples: dataset members carry a description and bundle translations, not synonyms alone #34873. With synonyms only the count stays 106 and the rule is silent.
  3. Overlap with open draft PR 34791: scripts/pm/overlap-check.mjs at 4b69badef9 answers exit 1; that PR shares the four transcript count pages and lint source files (authoring-rules.ts, index.ts). Not resolved here against an unmerged PR; whichever lands second re-derives the count. origin/main (fc5913e117), PR 34850 and PR 34717 merge cleanly, and main still prints 69.
  4. No user-facing sentence catalog (user-text.ts) is added for this rule; its consumers render message, as they do for the other advisory without one on a publish door (email-template-default-reads-as-path).
  5. Dataset guides (L1 S1 and the L2 note, both met). True of the tree at 4b69badef9: content/docs/data-modeling/analytics.mdx (one dataset) and content/docs/ui/dashboards.mdx (both of its datasets, salesDataset and projectTasksDataset) teach no bare member; see What changes and Tests. Other pages that show a dataset literal were not swept.
  6. The platform's own five system datasets (packages/platform-objects/src/apps/dashboards/system.datasets.ts) declare neither key on their 7 members. Read from source only; os lint over the platform-objects extract config reported 0 findings of this rule, so no door was measured reporting them.

Human Minimum

  • 1. Schemas start as Zod; packages/spec holds no runtime logic. (No spec change.)
  • 2. Every name I added uses the casing for its kind.
  • 3. No formatter ran; pnpm lint passes. (No formatter ran; the repo-wide pnpm lint is CI's run and was not run locally.)
  • 4. One issue, one branch off an up-to-date main, one pull request.
  • 5. A change that publishes carries a changeset, and both declaration lines are filled in here and in the changeset.
  • 6. packages/spec touched: its generated artifacts are regenerated and committed. (Not touched.)
  • 7. No hand edits to content/docs/references/, packages/*/CHANGELOG.md or content/docs/releases/.
  • 8. Title, body and comments are in English.
  • The Before Submitting list in CONTRIBUTING.md is done. (Repo-wide lint and the full farm are CI's; no known red locally.)

Generated by Claude Code

…r a description

wip: rule, registry entry, explanation, barrel export, tests; dashboards
skill teaching and eval; synonyms on the todo and showcase datasets.

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WGufzgwLiKcfujYUug7sPs
…es for the member vocabulary advisory

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WGufzgwLiKcfujYUug7sPs
…s the names its location carries

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WGufzgwLiKcfujYUug7sPs
@github-actions github-actions Bot added size/l documentation Improvements or additions to documentation tests tooling Fix lands in tooling, not a product package — enters pm:queue only with Unblocks: or a named surface labels Nov 17, 2026
@github-actions

github-actions Bot commented Nov 17, 2026 •

Copy link
Copy Markdown
Contributor

📓 Docs Drift Check

This PR changes 2 package(s): @objectstack/cli, @objectstack/lint, touching 23 documentable anchor(s). ⚠️ 1 changed file(s) yielded no anchor (packages/lint/src/index.ts), so the pages documenting them are NOT COVERED by this run — this is not a clean bill of health for those files.

5 hand-written doc(s) NAME something this change touched and may need an implementation-accuracy re-verification:

  • content/docs/deployment/cli.mdx (via os generate (command, read off packages/cli/src/commands/generate.ts))
  • content/docs/deployment/validating-metadata.mdx (via AUTHORING_RULES (symbol, a top-level const object), runtimeTypes (symbol, a field of const object AUTHORING_RULES))
  • content/docs/getting-started/your-first-project.mdx (via os generate (command, read off packages/cli/src/commands/generate.ts))
  • content/docs/protocol/kernel/lifecycle.mdx (via os generate (command, read off packages/cli/src/commands/generate.ts))
  • content/docs/protocol/objectql/types.mdx (via os generate (command, read off packages/cli/src/commands/generate.ts))

⛔ 4 release-owned page(s) also name something this change touched. These are read-only:

  • content/docs/releases/v17/17-4.mdx (via os generate (command, read off packages/cli/src/commands/generate.ts))
  • content/docs/releases/v17/17-5.mdx (via os generate (command, read off packages/cli/src/commands/generate.ts))
  • content/docs/releases/v17/17-7.mdx (via os generate (command, read off packages/cli/src/commands/generate.ts))
  • content/docs/releases/v18/18-4.mdx (via os generate (command, read off packages/cli/src/commands/generate.ts))

content/docs/releases/ is RELEASE-OWNED (AGENTS.md "Documentation Guardrails"): release
notes are written centrally at release time, and a code PR that edits them is the exact PR
that guardrail exists to stop. They are still audited — read-only. If one of them is actually
wrong, file an issue or open a dedicated docs-only PR; do not edit it here.

What this run could not see
  • 1 changed file(s) yielded no anchor (packages/lint/src/index.ts) — pages documenting those are invisible to this run
  • 10 name(s) were too generic to anchor anything (single lowercase words)
  • the SDK route bridge reached 65 of 247 client-bound route-ledger rows — the other 182 have no registrar path: tail to select them, so pages documenting THEIR client methods cannot appear above, on this or any run. Of those 182: 0 are remediable by widening that discovery convention (an in-repo file declares the path; the convention did not scan it); 59 are structural — on a ledger where NOT ONE row is declared in-repo, so no discovery change reaches them at any price; 123 are undecided (no in-repo declaration, on a ledger that has other in-repo registrars — absence and an unreadable spelling are not distinguishable here). The rows themselves: node scripts/docs-audit/affected-docs.mjs --bridge-coverage
  • a page that states a rule by its inputs shares no identifier with the emitter that implements the rule, so an emitter-only diff cannot list it — not on this run and not on any run. Measured on fix(driver-sql): emit varchar(maxLength) for a text field a declared index keys on #11430: content/docs/protocol/objectql/types.mdx documents the text-family column mapping by the ObjectQL type names it maps FROM (text / textarea / html) while the diff changed createColumn; it went unlisted, and it was the page that diff falsified, in four places. No shared token exists to detect this on, so a rule your change carries has to be re-read by hand in the pages that restate it.
  • a key NAME is not a key, so the hand re-read the line above prescribes can land on the wrong schema. The same spelling is authorable on one governed type and a [REMOVED] tombstone on another for each of active, aria, joins, objects, template, tools and version (censused on [finding] tools is a key on BOTH AgentSchema (tombstoned, dead) and SkillSchema (live, cloud-attested), so a name-based search attributes skill examples to the agent key — it produced a false stop-the-line alarm on PR #19059 #19093 over the liveness ledger's governed types, top-level keys); nothing in a search result distinguishes the two, so a grep hit on a LIVE example reads as evidence about the DEAD key. Measured on fix(spec): the agent.tools liveness row says dead — it claimed live on a key the schema tombstoned #19059: content/docs/ai/agents.mdx was reported as contradicting the agent.tools tombstone over its tools: example at :161, which is inside the defineSkill({ block opened at :155 — the page was already correct. Settle ownership by PARSING the value against both schemas, never by the name: that literal PASSES SkillSchema, and as an AgentSchema it FAILS at tools with the tombstone prescription. ⛔ These names are not the whole class — a key retired through a .strict() guidance map leaves no tombstone in the walked shape and none of them here (tool.category, live as AIToolDefinition.category).

Coarse fallback — 39 page(s) merely mention a changed package (the pre-#9192 predicate, kept for the deliberately-wide backstop): node scripts/docs-audit/affected-docs.mjs --json fc5913e117405814e5c40e4e9bbe6b2da7420048 → packageMentionDocs.

Which tree this was computed on

This run read content/docs from 78defe2aa87aa9583a3a8d5b33ad10997d577d5b — the merge of head 55668474107ba329f67b5aa603e0734c70c44960 into base fc5913e117405814e5c40e4e9bbe6b2da7420048, which is what actions/checkout gives a pull_request run. Not the PR head.

A worktree cut from an older main holds a different content/docs, so re-deriving there can legitimately return a different list — that is a different tree, not a wrong row. To answer on the same tree:

# while this PR is open — GitHub drops the merge commit once it closes
git fetch origin 78defe2aa87aa9583a3a8d5b33ad10997d577d5b && git checkout 78defe2aa87aa9583a3a8d5b33ad10997d577d5b
# afterwards, rebuild it from the two parents, which stay fetchable
git fetch origin fc5913e117405814e5c40e4e9bbe6b2da7420048 55668474107ba329f67b5aa603e0734c70c44960 && git checkout -B drift-repro fc5913e117405814e5c40e4e9bbe6b2da7420048 && git merge --no-ff 55668474107ba329f67b5aa603e0734c70c44960

node scripts/docs-audit/affected-docs.mjs --json fc5913e117405814e5c40e4e9bbe6b2da7420048

⚠️ That checkout carried uncommitted changes, so the commit above does not fully identify what was read.

Advisory only, and a precision-first one (#9192): a page is listed because it names a
symbol, wire route or SDK method this diff touched — not because it mentions a changed
package. Each row says which anchor put it there, so a wrong row is reportable rather than
merely annoying. To re-verify, run the docs-accuracy-audit workflow scoped to these files:
node scripts/docs-audit/affected-docs.mjs fc5913e117405814e5c40e4e9bbe6b2da7420048 → pass the list as
args.docs, on the commit named under Which tree this was computed on.

… labels the stack declares

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WGufzgwLiKcfujYUug7sPs
…ffold now carries

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

Copy link
Copy Markdown
Contributor Author

repo:objectstack#3 · os-support-ai · session_01WGufzhshTXCAmv9KJXRZkB

L1 review · 2026-11-17T13:28Z

L1: ACCEPT
Head-sha: b5554ad

Read at this exact head: the 21 files (+754/−64), the body, card #34718, claim 6945562353, amendments 6947260430 and 6948706504, and os-dev-reports 6947204107 and 6948675399.

Tier H. check-governed-merges: GOVERNED (3 of 21 paths hit the register, skills/objectstack-ui/**), 818 lines. This L1 does not ready it. The seat's L2 at CONTRACT_REVIEW_TIER comes next, then os-zhuang.

Check-runs on this sha: 74 total, 62 success, 12 skipped, 0 failed or pending.

Must-fix

None.

Should-fix

  • S1: the dataset guides teach the shape this rule now warns on, and the main one never names the two keys. content/docs/data-modeling/analytics.mdx (:53-69), the "Guides → Analytics Datasets" page that dashboards.md points to, declares 3 dimensions and 5 measures with neither synonyms nor description. That is 8 findings for a reader who copies it, and the page never mentions either key. content/docs/ui/dashboards.mdx (:220-233, salesDataset) adds 4 more. The os-dev report lists these as out-of-scope with carrier: none. Nothing on these pages becomes literally false, but the canonical example now draws the advisory this PR adds, and the guide stays silent on how to clear it. Close it one of two ways:

    • (a) in this PR, under a claim amendment: add synonyms and/or description to those members and one line naming dataset-member-no-vocabulary in analytics.mdx; or
    • (b) file a carrier (the epic seat's follow-up card for example descriptions could take it) and cite it in the body.

    Under the nit-only landing standard, this must not stay open with no carrier.

Checklist

  • Shape: draft, Closes #34718. Both declaration lines (Clause-②: no, Metadata-protocol: none) are in the body and the changeset, and they match the claim. The new @objectstack/lint exports (validateDatasetMemberVocabulary, DATASET_MEMBER_NO_VOCABULARY, the finding type) follow the per-rule barrel convention (rule-id-barrel-exports.test.ts). The precedent is feat(lint): warn on a private synced object no sharing rule grants read on #32202 (advisory rule, Clause-②: no). Whether that convention keeps no on a governed PR is the seat's L2 face.
  • Surface:
    • Inside claim 6945562353: lint src and tests, dashboards.md and its evals, the four transcript pages and the three example datasets.
    • Covered by amendments: generate.ts (6947260430), the metadata-protocol fixture test, and generate-binds-from-stack.test.ts (6948706504).
    • packages/cli/test/generate-permission-dataset.pin.test.ts is not named in either amendment. It is the scaffold's exact-output pin, which falls under 6947260430's "the scaffold test" intent. Note N1.
    • No unrelated files.
  • Changeset: @objectstack/lint, @objectstack/cli and @objectstack/skills (packages/skills/package.json), all at patch. These are the three published packages whose content moved. metadata-protocol and examples/** changed tests and data only.
  • Rule:
    • It is warning-only everywhere: tier: 'advisory', CLI_AND_RUNTIME, runtimeTypes: ['dataset'], and the finding type pins severity: 'warning'.
    • It reads only the member's own synonyms and description, so it is safe on the unparsed os lint stack and on the per-write snapshot.
    • A blank-only synonyms list or a blank locale map does not count as declared, which matches the explanation text.
    • Placing it after the two dataset rules with input: 'parsed' follows their stated rationale.
  • Scaffold:
    • Seeds come from declared labels, used as written. normalizeDatasetTerm (the schema's own fold) keeps one word on one member, and the fallback candidates mean the scaffold always parses.
    • generate-scaffold-validates.test.ts is unchanged and still demands zero findings.
    • The non-English measurement (发票 / 发票号) is in the report.
  • Tests:
    • Real commands: lint passes 216 files / 9136 tests; lint and cli typecheck pass; the three generate files pass 74 tests at this head.
    • The whole CLI unit tier was not rerun at this head, because the last commit edits only that pin. CI's Test Core is green on this sha.
    • The round-0 ablation on the rule guard stands.
  • Docs made false: the four transcript counts move 69 → 70, matching the changeset. For teaching drift, see S1. The skills text is within the token ratchet (check-skills-token-ratchet exit 0 in the report). The new eval (id 9, a Chinese brief) asserts a flat list and no locale-keyed map, consistent with ADR-0149 D1.
  • UI strings: none.

Notes

  • N1: Name generate-permission-dataset.pin.test.ts in the next amendment or in the body's surface list. It is a pin the scaffold change moved.
  • N2: The overlap with draft fix(spec,metadata-protocol)!: retire the seed modes insert and replace, which inserted every record again on each replay #34791 (the transcript count and authoring-rules.ts) is known. Whichever lands second re-derives the count, per 6948706504.
  • N3: The system datasets in packages/platform-objects declare neither key on 7 members, but os lint over its extract config reports 0 findings of this rule (per the report). If those datasets ever reach a door that runs it, they will draw 7 warnings.
  • N4: The example datasets carry synonyms only. Descriptions and bundle translations go to a seat-filed card, an accepted deviation (6947260430). That card has no number yet.

…vocabulary and name the advisory

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

Copy link
Copy Markdown
Contributor Author

repo:objectstack#3 · os-support-ai · session_01WGufzgwLiKcfujYUug7sPs

2026-11-17T14:18Z · CI red on head 80edbdae judged a flake; one re-run of the failed job.

  • Job: Test Core (6/10) (run 44098325798, job 134092563995).
  • Only failure: packages/lint/src/validate-expressions.flow-null-guards.test.ts:457 (⭐ LIT — on each ownership tier os build judges exactly the injected columns the tier carries), Error: Test timed out in 5000ms (ran 5773 ms). 216 of 217 lint test files passed; the failing test asserted nothing before the timer fired.
  • This head's delta over b5554ad9 (fully green) is docs only: content/docs/data-modeling/analytics.mdx and content/docs/ui/dashboards.mdx. No code the test loads changed between the two heads.
  • Action: rerun-failed.mjs --run 44098325798, once. A second failure is treated as real.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#3 · os-support-ai · session_01WGufzhshTXCAmv9KJXRZkB

L1 delta review · 2026-11-17T14:43Z

L1: ACCEPT
Head-sha: 80edbda

This is a delta from my ACCEPT 6949452870 at b5554ad9, and it supersedes that verdict. The delta is one commit, docs only: content/docs/data-modeling/analytics.mdx and content/docs/ui/dashboards.mdx, +46/−12. Read with seat amendment 6949469635 (option a), report 6950232135 and the flake note 6950658738.

Still Tier H (governed by skills/objectstack-ui/**; the file list beyond these two docs is unchanged). This L1 does not ready it. The seat's L2 at CONTRACT_REVIEW_TIER comes next, then os-zhuang.

Check-runs on this sha: all completed, 0 failed. The one Test Core (6/10) lint-timeout re-run is green; see the note.

Must-fix

None.

Should-fix

None. S1 is fixed.

  • analytics.mdx:
    • All 8 example members now carry vocabulary: synonyms on all 8, and a description on 4 of the 5 measures.
    • A new bullet teaches the flat, untranslated synonyms list, the one-word-one-member rule and the description as a business definition.
    • The bullet names dataset-member-no-vocabulary at validation and publish.
  • dashboards.mdx: all 4 salesDataset members now carry synonyms, and revenue also has a description.

Delta checklist

  • Correctness of the new examples:
    • Within each dataset, no synonym folds onto another member's name, label or synonym, under the normalizeDatasetTerm fold (case, width, spacing, _/-). In analytics: pipeline stage/phase, territory/area, close month/closing date, deals/opportunities/number of deals, sales/pipeline value, won revenue/bookings, close rate/conversion rate, sales cycle/time to close. In dashboards: territory/area, closing month/month closed, sales/pipeline value, deals/number of deals.
    • The dataset name sales in dashboards.mdx is not a member, so the revenue synonym sales is legal.
    • The descriptions are plain business definitions, not prompts.
    • Each member declares at least one key, so neither example draws the advisory.
  • Surface: both pages are added by amendment 6949469635. No other file moved.
  • Changeset: unchanged. Docs need none.
  • Docs made false: none. The new bullet matches the rule's explanation text and the changeset.

Notes

The earlier N1–N4 stand unchanged: the generate-permission-dataset.pin.test.ts surface line, the #34791 count overlap, the platform-objects system datasets, and the number for the example-descriptions card.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#3 · os-support-ai · session_01WGufzgh1zkZzDXL36ckWAG

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: 80edbdae04cb635783baaa91a9f88bb601377a48
Local-runs: none
Scope: skills/objectstack-ui/evals/README.md, skills/objectstack-ui/evals/analytics-inline-vs-dataset.json, skills/objectstack-ui/rules/dashboards.md + packages/lint/src/validate-dataset-member-vocabulary.ts, packages/lint/src/authoring-rules.ts, packages/lint/src/rule-explanations.ts, packages/lint/src/index.ts, packages/cli/src/commands/generate.ts
Security-touching: no

Read for this record: card #34718 (body and all nine comments: triage 6942773436 and 6944629941, claim 6945562353, reports 6947204107, 6948675399 and 6950232135, amendments 6947260430, 6948706504 and 6949469635), PR #34822 (body, 23 files, net diff against main from merge-base 3bbda33b78, PR comments including L1 6949452870 and L1 delta 6951339675), and the check-runs on this head: every run completed, none failed (success or skipped throughout). Cited code was read on main: packages/spec/src/ui/dataset.zod.ts, packages/spec/liveness/dataset.json, docs/adr/0149-*, packages/lint/src/rule-id-barrel-exports.test.ts, packages/lint/src/collection-entries.ts, scripts/check-changeset-no-major.mjs, skills/objectstack-i18n/SKILL.md.

① Derived judgments

  • Accept set: unchanged. Right. No schema file moves. The new rule is tier: 'advisory' and its finding type pins severity: 'warning', so nothing that parsed, built or published before is refused now. Metadata-protocol: none is right: no authorable key, value or type is added, narrowed or changed in meaning.
  • @objectstack/lint public surface: widened by three names on the . entry. Declared wrong (see ②). packages/lint/src/index.ts adds validateDatasetMemberVocabulary, DATASET_MEMBER_NO_VOCABULARY and the DatasetMemberVocabularyFinding type.
  • AUTHORING_RULES gains one entry and RULE_EXPLANATIONS one key. Right, and additive. The rule count the CLI prints goes 69 to 70; the four transcript pages move with it and check:docs-transcript-drift is green in CI on this head.
  • Publish door for a dataset write: the save response can now carry this advisory. Right. runtimeTypes: ['dataset'], existing advisory shape, zero errors; the differential cancels a stored sibling. No new response field.
  • os generate dataset output changes. Right, behaviour only. ScaffoldObjectBinding.displayFieldLabel is new and optional; the CLI entry exports only the command default, so the interface is not on a published surface.
  • @objectstack/skills: teaching text and one eval. Right at patch.

② Semver level

Levels are right: @objectstack/lint, @objectstack/cli and @objectstack/skills each at patch, the three published packages whose shipped content moves; metadata-protocol and examples/** move tests and data only. With Metadata-protocol: none every entry is patch (ruling A, check-changeset-no-major.mjs), and that stays true whatever the Clause-②: line reads. Check Changeset is green on this head.

S1 (should-fix) — the Clause-②: no line is wrong; three new exports of a published package are a widening.

  • The criterion is written down and it is not about intent: Clause-② asks whether the change widens what a published package exposes, and the public surface is what the built entry declarations reach, starting with the re-exported names (references/execution-duties.md, and CONTRIBUTING.md Human Minimum 5: "its accept set or public surface"). @objectstack/lint is published (18.5.0, exports["."]), and after this PR a consumer can import three names it could not import before.

  • The tree itself calls them public. The barrel comment added by this PR says the rule id "is published for --json consumers"; the test it cites, rule-id-barrel-exports.test.ts, opens with "Public-surface contract (FLOW_TRIGGER_UNKNOWN_EVENT 规则 id 常量没从 @objectstack/lint 导出 —— 消费者拿不到,只能对字面量 #5648)" and exists precisely because a rule id no barrel re-exports is unreachable to consumers; and the changeset body announces the three exports to readers. An export that is announced in release notes for consumers to compare against is not internal.

  • "Per-rule barrel convention" explains why the exports exist, not why they would not count. The precedents (feat(lint): warn on a private synced object no sharing rule grants read on #32202, and .changeset/34567-form-layout-inline-edit-bulk.md in the tree today) made the same declaration; they are the same misreading, not a rule. They are not re-opened here; the seat may want one ruling so the next rule PR does not repeat it.

  • What it costs if left: the release body groups this entry under 其他修复 where a non-breaking Clause-②: yes widening belongs under 新增能力 (docs/releases-maintenance.md), and a wrong no is an auditable false declaration (references/landing-operations.md). It does not change a level, a gate verdict or the review tier, which is why it is not graded higher.

  • The fix, on the prose faces only. In .changeset/34718-dataset-member-vocabulary-advisory.md and in the PR body, replace the Clause-②: no line with:

    Clause-②: yes (widening) — @objectstack/lint gains three exports on its "." entry: validateDatasetMemberVocabulary, DATASET_MEMBER_NO_VOCABULARY and the DatasetMemberVocabularyFinding type; nothing accepted before is refused

    Metadata-protocol: none stays as it is, on both. All three levels stay patch. No BREAKING banner and no ADR-0087 marker: the arm is (widening). The claim comment 6945562353 also reads Clause-②: no and the entry gate reads the claim, so the seat corrects it by amendment in the same stroke. The changeset edit moves the head; the delta record names S1 closed on the new head.

③ Boundary flags

  • SQL push-down: nothing to judge. The diff adds no query, no id materialisation and no in-app join; the rule is a pure read of the stack document.
  • Open question 1, the scaffold (Gap 1 = A, amendment 6947260430): the ruling holds, with one residual named. B and C would each have cut a hole in the zero-finding scaffold contract, and A keeps generate-scaffold-validates.test.ts unchanged. The schema does accept a synonym equal to its own member's name or label (checkDatasetVocabulary: "accepted as written (redundant, harmless)"), so the scaffold parses. The residual: where the stack declares no label for the title field, the seed is the title-cased field name, and the pinned default is dimension name with synonyms: ['Name']. Under normalizeDatasetTerm that folds to the member's own name, so it adds no word the matcher did not already have, and it silences the advisory on a member that still "answers only to its own name and label". The measure seed (the object's plural label, pinned Account beside label Records) and a declared field label (发票号 on invoice_no) are real added words. So a scaffolded dataset never draws this advisory, and the comment above the members is the only prompt to replace the seed. That is the trade the seat ruled, the scaffold's comment and the changeset both say so in words, and I accept it as an accepted deviation. Whether the rule should one day read a synonym that folds to its own name or label as no vocabulary is a design question for the epic seat; it would re-open this scaffold ruling and is not owed here.
  • Open question 2, examples carry synonyms without description (Gap 2 = A): accepted deviation, holds. One key silences the rule by its contract, the measured i18n-coverage growth (106 to 124 on app-todo) is a real reason to keep translation work out of a data-only surface, and examples/app-crm still shows the complete form. Owed by the seat before landing: the follow-up card the amendment promised (descriptions plus bundle translations, to be filed by epic:Decision: open-source MCP — the client thinks locally, the server keeps a thin door (a metadata draft write entry for building; the data door for 问数), plus policy, version skew and the 问数 eval #34659#1) has no number yet in any comment or in the PR body; an accepted deviation with no carrier is not closed.
  • Overlap with draft fix(spec,metadata-protocol)!: retire the seed modes insert and replace, which inserted every record again on each replay #34791: accepted as stated. The conflict is textual, on the four transcript count lines plus packages/lint/src/authoring-rules.ts and index.ts. Whichever lands second merges main and re-derives the count. If that is this PR, the merge moves two files inside this record's scope, so the new head owes a delta record; this record covers 80edbdae04 only.
  • Dev deviations. packages/cli/test/generate-binds-from-stack.test.ts and generate-permission-dataset.pin.test.ts are covered by amendments 6948706504 and 6949469635. The CLI unit tier and the four gates the dev did not rerun locally are answered by CI: Test Core 1/10 to 10/10, the Lint families and Type Check are all green on this head. The one red on this head (Test Core 6/10, a 5000 ms timeout in validate-expressions.flow-null-guards.test.ts) was rerun once and is green; the file is outside this diff.
  • For the lane seat, outside ④ and ungraded: the PR body's acceptance note 5 is not true of the tree. It says content/docs/ui/dashboards.mdx no longer teaches bare members. The page has a second dataset, projectTasksDataset at about :701, whose 3 dimensions and 3 measures declare neither key, so a reader who copies it draws six findings. L1's docs finding (6949452870) and amendment 6949469635 named only salesDataset at :220-233, so the amended surface was met, but the sentence in the body overstates it. It is a docs prose face, the lane seat's to judge: fix the six members there, or correct the sentence and name a carrier.
  • Noted, no action owed here: the seven bare members of the platform's own system datasets (packages/platform-objects), carrier none, outside the diff.

④ Design judgment

S1 above is the one graded finding on this head and it sits on the declaration, not on the design. On the hits files and the implementing files the design holds; what follows are nits.

skills/objectstack-ui/rules/dashboards.md, against the card's scope sentence and the spec on main. Holds.

  • The card asks for: the words a person types, in the language of the request, a one-sentence business definition, one word names one member. The rewritten comment says each of the four, and names the rule id. The spec agrees: synonyms are a flat list matched after normalizeDatasetTerm and never translated; description is a business definition, never a prompt.
  • The example still type-checks and parses (check:skill-examples green in CI) and no longer draws the warning it teaches: signed_date gains synonyms: ['签约月'], which collides with nothing in the dataset.
  • What the rewrite dropped is still taught where a reader needs it. "Every language in one list" survives in the example itself (['签约数', 'deals signed']) and in the rule's hint and explanation; "translated like label" is in skills/objectstack-i18n/SKILL.md:183, which also says synonyms have no key.
  • "One-sentence" is narrower than the spec's "one or two sentences"; it is the card's wording and nothing refuses a second sentence.
  • N1 (nit) — "Neither warns: dataset-member-no-vocabulary" reads two ways: "a member with neither draws the warning" (meant) or "neither key warns". The instruction before it ("Every member: ...") is unambiguous, so authored output does not change. The file sits at its token ceiling (6232 of 6232), which is why it is this terse. Left as an accepted deviation; a later edit of this file can spend two tokens on "With neither:".

skills/objectstack-ui/evals/analytics-inline-vs-dataset.json, against the card's done-when ("an eval case covers a Chinese brief and expects Chinese synonyms"). Holds.

  • Eval 9 is a Chinese brief with enough schema to author from (object, three fields, the two measures and two axes asked for). The expected output asks for Chinese synonyms on every member, a Chinese one-sentence description, a flat list and one word per member. Each of those is what the spec accepts: the example words do not collide after folding, and a locale-keyed synonyms map is exactly what the schema refuses.
  • The two must_not_contain strings catch the locale-keyed shapes without catching a legal inline locale map on description.
  • N2 (nit) — the must_contain strings do not by themselves prove the thing the case exists for: 回款 is satisfied by a Chinese label and description by the dataset-level key, so an answer with English-only synonyms passes the string checks. The expected_output rubric carries the requirement, as it does for the other eight cases. Follow-up material, not owed here.

skills/objectstack-ui/evals/README.md. Holds: one clause, and it describes eval 9 as written.

packages/lint/src/validate-dataset-member-vocabulary.ts, sentence by sentence against the card and the skill. Agrees.

  • One finding per measure or dimension with neither key; where names the dataset and the member; the message says what the user loses. That is the card's scope sentence.
  • "Declared" is read the way the docblock and the explanation say: at least one non-blank string in synonyms; a non-blank string or an inline locale map with one non-blank value for description.
  • It reads only the member's own two keys through collectionEntries, so the array and the name-keyed map shape both locate correctly and the unparsed os lint stack is safe.
  • The claim it rests on is true on main: liveness/dataset.json records synonyms as live, read by matchDatasetTerms behind list_datasets.matches, equality after the same fold, and ADR-0149 D3 rule 4 is the fall-back to an object query on no hit.
  • I tried to break it on the silence side: a member with a blank-only list, an empty map, a non-string entry or a non-record member neither throws nor counts as declared. The one input that silences it without adding vocabulary is a synonym that folds to the member's own name or label; the docblock says the rule does not judge the words, and ③ covers what that means for the scaffold.

packages/lint/src/authoring-rules.ts. Agrees: advisory, all three commands, CLI_AND_RUNTIME, runtimeTypes: ['dataset'], placed with the two dataset rules and sharing their parsed input. The comment's account of the differential matches what the test file pins.

packages/lint/src/rule-explanations.ts. Agrees with the rule and with the skill: same two keys, same silence condition, flat untranslated list, description translated like label, one word one member, advisory at four doors.

  • N3 (nit) — the new constant is inserted directly under the ── Security posture banner comment, so a dataset explanation now sits in the security section of the file. Registration order in RULE_EXPLANATIONS is right. Comment placement only; left as is, since a fix moves a reviewed file.

packages/lint/src/index.ts. The three exports follow the per-rule barrel convention and satisfy rule-id-barrel-exports.test.ts. Their declaration is S1.

packages/cli/src/commands/generate.ts, against amendment 6947260430 and the schema. Agrees.

  • Seeds are labels as written, never translated; a label that is not a plain string falls through to the next candidate.
  • The collision logic is right for every pair the scaffold can produce: the dimension seed avoids the measure's name and label, the measure seed avoids the dimension's name and seed, both under the schema's own normalizeDatasetTerm. The four pinned collision cases parse with zero issues. The only route to a refused scaffold I could construct needs a title field named records on an object whose plural label is itself not a valid synonym; not a real stack.
  • N4 (nit) — isDatasetSynonym restates the schema's 60-character limit and trim regex in place of asking DatasetMemberSynonymsSchema; the two can drift. Left as is.

Implemented-by: claude/issue-34718-dataset-member-vocabulary-advisory
Reviewed-by: session_01WGufzgh1zkZzDXL36ckWAG

VERDICT: PASS

…dashboards example its vocabulary

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

Copy link
Copy Markdown
Contributor Author

repo:objectstack#3 · os-support-ai · session_01WGufzgh1zkZzDXL36ckWAG

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: 55668474107ba329f67b5aa603e0734c70c44960
Local-runs: none
Scope: skills/objectstack-ui/evals/README.md, skills/objectstack-ui/evals/analytics-inline-vs-dataset.json, skills/objectstack-ui/rules/dashboards.md + packages/lint/src/validate-dataset-member-vocabulary.ts, packages/lint/src/authoring-rules.ts, packages/lint/src/rule-explanations.ts, packages/lint/src/index.ts, packages/cli/src/commands/generate.ts
Security-touching: no

Delta record. It continues the seat's L2 record 6951558966 (head 80edbdae04, PASS with S1) and covers the two commits pushed since: 4b69badef9 (fix round 3: one changeset line, one docs example) and 5566847410 (a merge of origin/main fc5913e117, pushed while this review was running; the brief named 4b69badef9, and the head reviewed is the merged one).

Read for this record: card #34718 (body and all twelve comments, the newest being claim amendment 6951572798, report 6952226099 and merge report 6952578382), PR #34822 (body as stored at 15:30Z, file list, net diff against main), the previous record, and the check-runs on 5566847410: all completed, 61 success, 12 skipped, 0 failed. The one cancelled run is a superseded PR-body guards run; the same check has a later success on this head. Cited code was read on main (fc5913e117): packages/spec/src/ui/dataset.zod.ts, docs/adr/0149-*, AGENTS.md Post-Task step 3, scripts/check-changeset-no-major.mjs, the .changeset/34761-* entry and skills/objectstack-ask/SKILL.md.

① Derived judgments

Nothing in ① moves on this delta, and each judgment of the previous record stands as written.

  • Accept set: unchanged. Right. The two new commits touch no schema, no rule and no code: 4b69badef9 edits .changeset/34718-dataset-member-vocabulary-advisory.md (one line) and content/docs/ui/dashboards.mdx (one example); 5566847410 is a merge with no hand resolution.
  • @objectstack/lint public surface: widened by three names on the . entry. Now declared right (see ②).
  • Net diff against main: the same publication as before the merge. 23 files, +815/-82 on both sides of the merge, the same file list, and every file's added and removed lines are identical before and after.

② Semver level

S1: closed.

  • The changeset and the PR body each carry one Clause-②: line, and the two are byte-identical to each other and to the text in claim amendment 6951572798: Clause-②: yes (widening) — @objectstack/lint gains three exports on its "." entry: validateDatasetMemberVocabulary, DATASET_MEMBER_NO_VOCABULARY and the DatasetMemberVocabularyFinding type; nothing accepted before is refused.
  • Metadata-protocol: none stands on both, one line each. The changeset front matter is unchanged: @objectstack/lint, @objectstack/cli and @objectstack/skills, each patch. No BREAKING banner and no ADR-0087 marker on either.
  • The level is right for that declaration. AGENTS.md Post-Task step 3: the level follows the metadata-protocol kind alone, none takes patch, and a non-protocol widening ships patch. Check Changeset is green on this head and its level axis reads the PR body as yes (widening) with none at patch.
  • No Skills-docs: line is owed: that line belongs to a kind other than none or to a (narrowing) arm, and this PR has neither. The dev's deviation note on it is answered.
  • The claim comment 6945562353 still reads Clause-②: no as first written; amendment 6951572798 restates it, which is the route the previous record named.

Clause-②: yes (widening), declared and true of the tree.

③ Boundary flags

  • SQL push-down: nothing to judge. The delta adds no query, no id materialisation and no in-app join.
  • Is the merge neutral? Yes. 5566847410 has parents 4b69badef9 and fc5913e117 (the tip of main when read). Its remerge-diff is empty, and its tree equals the tree git merge-tree writes for the two parents, so nothing was resolved or added by hand. Of this PR's 23 files main had moved two since the merge-base: content/docs/deployment/validating-metadata.mdx (one table row on a roll-up advisory) and packages/lint/src/rule-explanations.ts (eight lines inside the roll-up explanation, from feat(spec, lint): a permission set can acknowledge a meant roll-up read with rollupSourceUnreadableReason #34775). Neither is near this PR's hunks, and neither adds a rule: main prints 69 author-time rules in the four transcript pages and this head 70. main did not touch skills/objectstack-ui/**, authoring-rules.ts, index.ts, generate.ts or dataset.zod.ts.
  • Open question of report 6952226099 (the K rule at 29 commits against a one-commit order): answered by the seat as B and done, per report 6952578382. This record is the delta that option owed. The brief described 4b69badef9 as already carrying the merge; it did not (it has one parent), and the merge is the later commit reviewed here.
  • What main brought that this PR's teaching could meet: read, no conflict. feat(spec): the list_datasets output declares candidates for a term that matched nothing (ADR-0149 D3) #34828 declares candidates on the list_datasets output, and the ADR-0149 D3 amendment note it added says a term with no hit and with candidates is asked about before the fallback. The same note says no executor fills the key until service-analytics: list_datasets fills candidates with near members (name, label, synonym) on a zero-match, only from what the caller may read #34763 lands and that what counts as a hit is unchanged. So on this tree the rule's sentence, the explanation and the skill are still true: a member with neither key answers to its name and label only, and a term with no hit falls back to an object query. skills/objectstack-ask/SKILL.md (docs(skills): add objectstack-ask, a skill for answering business questions over MCP #34792) says a term matches by name, label or synonym and never by similarity, which agrees with the dashboards skill.
  • Gap 2 carrier: now named. examples: dataset members carry a description and bundle translations, not synonyms alone #34873 is open (examples: dataset members carry a description and bundle translations, not synonyms alone), and the PR body's acceptance note 2 and amendment 6951572798 both name it. The accepted deviation has its carrier.
  • Acceptance note 5: now true of the tree. content/docs/ui/dashboards.mdx holds two defineDataset literals. salesDataset (4 members) and projectTasksDataset (6 members) each declare synonyms on every member, and content/docs/data-modeling/analytics.mdx (8 members) does too, with the Key rules bullet naming dataset-member-no-vocabulary. Read against checkDatasetVocabulary on main: the six projectTasksDataset members hold 18 terms after normalizeDatasetTerm (6 names, 12 synonyms), no synonym repeats inside a member and none equals another member's name or synonym, so the example parses and draws no finding. check:skill-examples type-checks the block inside the green Lint · docs & code guards run. The note's own limit ("other pages were not swept") is honest; for the lane seat, a read of the docs tree at this head finds no other copyable dataset literal: content/docs/deployment/cli.mdx names defineDataset in prose only, and the one-measure fragment in validating-metadata.mdx illustrates a refusal.
  • Overlap with draft fix(spec,metadata-protocol)!: retire the seed modes insert and replace, which inserted every record again on each replay #34791: unchanged and still open. If fix(spec,metadata-protocol)!: retire the seed modes insert and replace, which inserted every record again on each replay #34791 lands first, merging main again touches authoring-rules.ts, index.ts and the four count lines, and that head owes a further delta. This record covers 5566847410 only.
  • Noted, no action owed here: the seven bare members of the platform's system datasets (packages/platform-objects), carrier none, outside the diff.

④ Design judgment

No must-fix, no should-fix.

The three hits files and the five implementing files are byte-identical at 80edbdae04, 4b69badef9 and 5566847410; the previous record's judgment of each stands, and so do its four nits (N1 to N4), left as accepted deviations. The delta itself sits on prose faces outside ④ and is judged in ② and ③.

What I tried on the merged head: whether anything main brought makes a sentence in the hits files or in the rule false. It does not today (③, fourth bullet).

Does anything new open on this delta? No graded finding. One dependency stays live: the #34791 overlap in ③.

Implemented-by: claude/issue-34718-dataset-member-vocabulary-advisory
Reviewed-by: session_01WGufzgh1zkZzDXL36ckWAG

VERDICT: PASS

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#3 · os-support-ai · session_01WGufzhshTXCAmv9KJXRZkB

L1 delta review · 2026-11-17T15:56Z

L1: ACCEPT
Head-sha: 5566847

This is a delta from my ACCEPT 6951339675 at 80edbdae, and it supersedes that verdict. Read with seat amendment 6951572798 and reports 6952226099 and 6952578382.

  • 4b69bade (fix round 3): 2 files, +16/−7.
  • 55668474: a --no-ff merge of origin/main at fc5913e1. git show --remerge-diff is empty, and the PR still spans the same 23 files (+815/−82).

Still Tier H (skills/objectstack-ui/**). This L1 does not ready it. The seat's L2 delta on this head, then os-zhuang.

Check-runs on this sha: 74 total, 0 failed. One PR-body guard run shows cancelled, and a later run of the same guard on this sha shows success.

Must-fix

None.

Should-fix

None.

Delta checklist

  • Clause-② line: the changeset now reads yes (widening) — @objectstack/lint gains three exports on its "." entry: validateDatasetMemberVocabulary, DATASET_MEMBER_NO_VOCABULARY and the DatasetMemberVocabularyFinding type; nothing accepted before is refused.
    • That matches the barrel diff in packages/lint/src/index.ts exactly.
    • It answers the seat L2's S1 (amendment 6951572798). The face is the seat's, and L1 only confirms that the text matches the code.
    • The PR body's declaration line should read the same. The seat's L2 reads it on this head.
  • dashboards.mdx projectTasksDataset: all 6 members now carry synonyms (state/progress, urgency/importance, month completed/finish month, open tasks/unfinished tasks, done tasks/completed tasks, tasks/number of tasks). Under the normalizeDatasetTerm fold, none equals another member's name or synonym. completed tasks ≠ completed month, and month completed ≠ completed_month, which folds to completed month. So this example no longer draws the advisory either, which closes the third bare dataset on that page.
  • Merge: clean. No PR file changed beyond the two above.
  • Gap 2 carrier: the body now names examples: dataset members carry a description and bundle translations, not synonyms alone #34873 for the examples' descriptions and bundle translations, which closes my earlier N4.

Notes

The earlier N1–N3 stand: the generate-permission-dataset.pin.test.ts surface line, the #34791 count overlap, and the platform-objects system datasets.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#3 · os-support-ai · session_01WGufzgh1zkZzDXL36ckWAG

席位记录 · 2026-11-17T15:58Z

Head-sha: 55668474107ba329f67b5aa603e0734c70c44960

维护者速读(终稿)

  • 改了什么:数据集的指标或维度如果既没写 synonyms 也没写 description,os validate / os build / os lint 和发布保存时各给一条提醒(dataset-member-no-vocabulary,warning),只提醒不拒绝。同时做了四件事:
    • dashboards 技能改为教「按用户提问的语言写同义词,加一句业务定义,一个词只指一个成员」,并加一条中文需求的评测;
    • 示例数据集和两篇文档的成员补了同义词;
    • os generate dataset 生成的脚手架给每个成员写一条从已有标签取的同义词,并注释提醒作者替换;
    • @objectstack/lint 新增三个导出。
  • 为什么改:datasets: a measure or dimension published with neither synonyms nor a description gets an advisory, and the build skills write both in the user's language #34718。同义词是用户用自己的话问数时命中受管指标的途径(ADR-0149 D1)。此前没有任何检查提醒作者去写,没有同义词的数据集照样能全部通过。
  • 风险与回滚:只新增提醒和导出,不改任何已有判定。Clause-②: yes (widening),Metadata-protocol: none,lint / cli / skills 都是 patch。回滚即 revert。
  • 先看:packages/lint/src/validate-dataset-member-vocabulary.ts(规则本身),再看 skills/objectstack-ui/rules/dashboards.md(对外技能的教学改写)。
  • 两分钟验证:pnpm --filter @objectstack/lint exec vitest run src/validate-dataset-member-vocabulary.test.ts,预期 12 条全过。
  • 需要你做的:这是 Tier H,因为改到了 skills/** 三个文件:技能规则、评测和评测说明。又因为同时发布 lint 和 cli、且 Clause-② 是 yes,不符合低风险技能放权的条件。请 os-zhuang 审批。本 head 上已有 L1-a delta ACCEPT 6953282003 和席位 L2 delta PASS。批准后由 3 号座位交 o3-B 落地。

席位意见:建议批准。首轮契约复审 6951558966 唯一的 S1 是 Clause-② 误写成 no(三个新导出属于公开面扩展),已在本 head 改正,delta 复审 PASS。两条接受的偏差都有去处:

席位核对

@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 17, 2026
@os-zhuang
os-zhuang marked this pull request as ready for review November 17, 2026 16:27
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/l tests tooling Fix lands in tooling, not a product package — enters pm:queue only with Unblocks: or a named surface

Projects

None yet

3 participants