Skip to content

docs(lint): state where the dataset vocabulary advisory's reach ends - #34943

Merged
objectstack-fleet[bot] merged 3 commits into
mainfrom
claude/issue-34875-vocabulary-rule-reach
Nov 17, 2026
Merged

objectstack-fleet[bot] merged 3 commits into
mainfrom
claude/issue-34875-vocabulary-rule-reach

Conversation

@objectstack-fleet

Copy link
Copy Markdown
Contributor

Requested by Yibo Wang · project thread

Fixes #34875
Clause-②: no
Metadata-protocol: none

维护者速读

  • 改了什么:只在 dataset-member-no-vocabulary 规则的模块注释「Severity and doors」一节末尾加了一段话,说明该规则的覆盖范围到哪里为止。没有任何行为变化。
  • 为什么改:平台自带的 System Overview 数据集(7 个成员没有同义词和描述)在 os lint 下零告警,卡片要求说明这是设计如此还是规则看不见。读数结论:插件在内核启动时注册的元数据不经过规则运行的任何入口,这一点以前没有写在规则旁边。
  • 风险与回滚:无运行时风险,纯注释;注释不进 dist(已构建实测),无需 changeset。回滚即 revert 本 commit。
  • 先看:packages/lint/src/validate-dataset-member-vocabulary.ts 模块注释最后一段(新增 7 行)。
  • 两分钟验证:git show c0a15a03 --stat 应只见这一个文件 +8 行;读新增段落,核对 packages/plugins/plugin-auth/src/auth-plugin.ts 中 datasets: SystemOverviewDatasets 一行。
  • 需要你做的:无,席位落地。

What changes

One paragraph appended to the "Severity and doors" section of the module note in packages/lint/src/validate-dataset-member-vocabulary.ts. It states where the rule's reach ends: metadata a plugin contributes at kernel start, such as the platform's System Overview datasets that plugin-auth registers through its runtime manifest (datasets: SystemOverviewDatasets), is neither an authored stack nor a publish-door write, so the advisory never reads it. It also states what such a shipped dataset answers to: its name, its label as the platform's translation bundle gives it in the caller's locale, and no synonym unless its source writes one. This is outcome (b) of the card's reading. Comment only, no behaviour change.

Each fact was checked against origin/main at d576509c8 before it was written:

  • packages/plugins/plugin-auth/src/auth-plugin.ts:1164 carries datasets: SystemOverviewDatasets, inside the manifest register(...) call at line 1122 in init() (which spans lines 769 to 1219). It is the only registration site: git grep SystemOverviewDatasets hits that file, the platform-objects barrel, the definition and one test.
  • packages/platform-objects has no objectstack.config.*: git ls-files packages/platform-objects | grep objectstack.config answers exit 1. Control: the same command over packages/plugins/plugin-auth lists its objectstack.config.ts.
  • plugin-auth's objectstack.config.ts passes only manifest, objects and objectExtensions to defineStack. There is no datasets.
  • packages/platform-objects/src/apps/dashboards/system.datasets.ts declares no synonyms and no description on any member.
  • The matcher (service-analytics/src/dataset-term-matcher.ts) compares name, label and synonyms. Both MCP doors pass the dataset list through translateMetaList before matching (runtime/src/domains/mcp.ts, mcp/src/stdio-data-bridge.ts), and platform-objects/src/apps/translations/en.ts carries datasets.SYS_NAME.{measures,dimensions}.MEMBER.label keys for all seven members.

Tests

lint package build + typecheck (head c0a15a0)
os-verify-lock: VERDICT command-exit 0 · held the lock 117s · waited 154s
pnpm --filter '@objectstack/lint^...' build && pnpm --filter @objectstack/lint build && pnpm --filter @objectstack/lint typecheck
check:test-typecheck: OK — @objectstack/lint's test layer compiles under packages/lint/tsconfig.test.json

No unit test was added and no ablation was run. The diff is a comment, so there is no tested behaviour to pin.

Acceptance notes

  • Changeset: none, label skip-changeset. The comment does not ship. After pnpm --filter @objectstack/lint build, grep -rl 'Its reach ends at those doors' dist gives exit 1. The module docblock it extends also gives zero hits (What the two keys are read for, exit 1), so module docblocks are not emitted at all. Positive control: dataset-member-no-vocabulary is found in dist/index.cjs, dist/runtime.js and dist/rule-explanations.cjs. files[] is ["dist","README.md","CHANGELOG.md"].
  • Outcome (a), giving the seven members synonyms and a description, was not done. The reading on the card says what it would cost: translatable description keys in every locale bundle, and a move in the i18n-coverage baseline.

Verification

dispatch-gates --commands for the one path, 45 families (head c0a15a0)

--ran reconciliation: 45 derived famil(ies) accounted for — 42 run, 3 NOT-MEASURED (3 DERIVED from a recorded exit 3). All 42 measured families exited 0, including check-issue-citations (no issue citations added against d576509c8), check:nul-bytes (OK ... no raw ASCII control bytes), check:doc-authoring, check-affected-docs, check-drift-comment and check:published-files.

NOT MEASURED, each exit 3 on its own prerequisite. These are left to CI's Lint & Repo Gates:

  • check-plugin-teardown-shape.mjs --self-test: the positive control is pinned to a commit this shallow clone cannot reach. This only checks the checker itself.
  • check:dual-build-cjs-loads: it needs every package's dist/, and 99 were absent. The gate covers the whole tree, and building all of it for a comment would have been out of proportion.
  • check:lean-entry-closure: it needs packages/objectql/dist, which is not in the lint closure.

overlap-check: VERDICT clean exit 0. The branch merges cleanly with origin/main, and no open PR touches the same file.


Generated by Claude Code

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

The module note named the doors the rule runs on but not what reaches
none of them: datasets a plugin contributes at kernel start, such as the
platform's System Overview datasets, are never read, and what such a
dataset answers to is its name and its bundle-translated label.

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WGufzg1NmbJpZhtiWQkTir
@objectstack-fleet objectstack-fleet Bot added the skip-changeset PR has no user-facing published change; bypasses the changeset gate label Nov 17, 2026
@github-actions

github-actions Bot commented Nov 17, 2026 •

Copy link
Copy Markdown
Contributor

📓 Docs Drift Check

⚠️ 1 changed file(s) yielded no anchor (packages/lint/src/validate-dataset-member-vocabulary.ts), so the pages documenting them are NOT COVERED by this run — this is not a clean bill of health for those files. Nothing else in this diff resolved to a documentable surface (no symbol, route or SDK anchor derived from 1 changed package(s)).

What this run could not see
  • 1 changed file(s) yielded no anchor (packages/lint/src/validate-dataset-member-vocabulary.ts) — pages documenting those are invisible to this run
  • 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 — 4 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 c81f498b5f0614157864d9586da718dbe02121b1 → packageMentionDocs.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

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

L1: ACCEPT · 2026-11-17T17:23Z

Head-sha: c0a15a0
Reviewer: seat 3 L1-c, for card #34875 (the seat's outcome (b); reading 6953644384, os-dev report 6955519950).

席位核对

PR shape. Fixes #34875, base main. One path, +8/-0: one paragraph in the "Severity and doors" module note of packages/lint/src/validate-dataset-member-vocabulary.ts. No code moves.

Declaration. Clause-②: no. There is no changeset (skip-changeset). The body says module docblocks are not emitted to dist, and that it measured this.

Governed / size. check-governed-merges --pr 34943: NOT governed, 8 lines.

Check-runs at c0a15a0. CI was still running when I read it. This verdict holds on the condition that Lint & Repo Gates, TypeScript Type Check and Test Core finish green on this head, which o3-F confirms before landing.

Facts, checked on this head.

  • plugin-auth's auth-plugin.ts:1164 registers datasets: SystemOverviewDatasets in its runtime manifest.
  • The datasets are packages/platform-objects/src/apps/dashboards/system.datasets.ts:66: six datasets whose member labels are plain strings, with no synonyms on any member.
  • So the advisory, which reads authored stacks and publish-door writes, never sees them. The paragraph says exactly that.
  • There are no issue numbers in the prose, which is right for a module note.

Must-fix

None.

Should-fix

  • S1. "its label as the platform's translation bundle gives it in the caller's locale" leaves out two cases, and the seat's S1 on docs(adr-0149): D3 rule 1 note — a member label matches as resolved along the caller's locale chain #34928 is the same point. The member is served, and matched, on the value the resolver gives:

    • The fallback chain. The resolver walks the requested locale's fallbackChain (i18n-resolver.ts localeChain), so a caller's locale without an entry can be answered by a fallback locale's entry.
    • No entry at all. Where no locale on the chain carries the key, translateDatasetMembers keeps the authored label. A shipped dataset then answers to its English source label (Users, Sessions, …), which the sentence as written denies.

    Suggested wording: 「…to its name, to its label as served in the caller's locale (the bundle's entry along that locale's fallback chain, or the authored label where the bundle carries none), and to no synonym unless its source writes one」. Since you offered to fold in the docs(adr-0149): D3 rule 1 note — a member label matches as resolved along the caller's locale chain #34928 wording, use whichever matches what lands there, so the two texts agree.

    Under the current merge standard this gets fixed before landing. I'll take the delta read.

Notes

None.

Next: o3-F folds S1, then the L1-c delta read. No seat L2 is owed. o3-F lands after the delta.

The reach note said a platform dataset answers to its label "as the
platform's translation bundle gives it in the caller's locale". That left
out two cases the resolver serves. lookupDatasetMemberAttr walks the
requested locale through the platform locale ladder (variant expansion
included), then the deployment's declared fallback locale
(metaTranslateOptions), skipped when the caller's locale is the authored
one. Where the bundle has no entry, the authored label is served and
matched. The clause now states both, worded like the matcher comment in
the sibling ADR-0149 correction. Comment only.

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

Copy link
Copy Markdown
Contributor Author

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

L1: ACCEPT (delta) · 2026-11-17T17:56Z

Head-sha: 0175f27
Reviewer: seat 3 L1-c. This is a delta read of c0a15a03..0175f27a against my 6955591381 (os-dev report 6956353082).

席位核对

Delta. One commit on the same path, +6/-2, all inside the module note. No code moves. skip-changeset and Clause-②: no still hold, and it is still not governed.

CI. It was still running when I read it, and the report says nothing has failed. This verdict holds on the condition that Lint & Repo Gates, TypeScript Type Check and Test Core finish green on this head, which o3-F confirms before landing.

S1 (the label wording): closed. The note now says a shipped dataset answers to its label as served in the caller's locale. That label is either:

  • the one bundle label resolved along the resolver's locale chain (the requested locale by the platform ladder, variant expansion included, then the declared fallback, skipped for the authored locale), or
  • the authored label where the bundle carries none.

Both cases I named are covered. The clause matches #34928's matcher comment at 4b963c98 word for word, so the two texts agree. I checked the chain against the resolver in my #34928 delta read (6956307098).

Must-fix

None.

Should-fix

None.

Notes

None.

Next: o3-F lands once the three aggregates are green. No seat L2 is owed. A later push owes an L1-c delta read.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

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

L1: ACCEPT (merge-only) · 2026-11-17T18:23Z

Head-sha: 1dc521b
Reviewer: seat 3 L1-c. This confirms the head move 0175f27a..1dc521b1 against my ACCEPT 6956392973.

席位核对

A clean main merge. The new head is a merge commit:

  • its first parent is my ACCEPTed head 0175f27a;
  • its second parent is main at c81f498b.

The PR's own diff is unchanged. The patch-id of the diff from the merge-base to 0175f27a equals the patch-id of the diff from c81f498b to the new head (5ac160fe…, identical), so the merge adds nothing to the PR. My ACCEPT carries over to this head.

The hop reruns CI after a runner red. That red was not the PR's doing, as o3-F's relay records. The ACCEPT's condition stands: Lint & Repo Gates, TypeScript Type Check and Test Core must finish green on this head.

Must-fix

None.

Should-fix

None.

Next: unchanged from my ACCEPT 6956392973. A later push owes an L1-c delta read.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

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

Landing · area o3-F · 2026-11-17T18:48Z

Probe Reading
L1 ACCEPT 6955591381 at c0a15a03 with S1 (locale-chain wording); fix → 0175f27a; delta ACCEPT 6956392973; carried to 1dc521b1 by 6957040730 (merge-only hop, main c81f498b, patch-id identical)
L2 not owed (Clause-②: no)
Checks on head 1dc521b1 56 success, 12 skipped, 0 failure / pending
check-governed-merges.mjs --pr 34943 NOT governed; comment only
K (first-parent, PRBASE c81f498b..origin/main) 6 < 15
Open findings none

State change: ready for review + auto-merge (merge queue). Card #34875 closes on merge via Fixes (outcome (b)); outcome (a) went to the epic filer as a gap via the seat.

@objectstack-fleet
objectstack-fleet Bot marked this pull request as ready for review November 17, 2026 18:48
@objectstack-fleet
objectstack-fleet Bot added this pull request to the merge queue Nov 17, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Nov 17, 2026
@github-actions

Copy link
Copy Markdown
Contributor

⛔ merge queue 构建失败 — 先分诊,再决定要不要重排

队列构建 44156458636 红了。队列跑的是全量套件(PR 侧 CI 只跑 affected 子集),
所以失败的测试可能在本 PR 没碰过的包里 —— 那不是重排能修的。每次盲目重排都会让排在后面的所有 PR 重建一轮。

分类:failure —— 按下面的日志分诊。

失败的 job(日志抽取,best effort):

  • Test Core (1/10) — 失败步骤: Fetch this commit's history and the base branch(日志不可读,点进 job 看)

↳ 失败原因 是判读的关键:超时(Test timed out in … / Hook timed out in …)多半是负载/时序,不是本 PR 的回归;
断言(AssertionError: …)才指向真实的行为改变。两者的 FAIL 行长得一模一样,只有这一行能区分。

⚠️ 断言这一侧有一类例外,判据是断言在测什么,不是它是不是 AssertionError。 断言的对象是产品行为(一个值、一个形状、一次拒收)⇒ 照上面读:真实的行为改变,去查,⛔ 不要重排掉;
断言的对象是这次实验自身的有效性前提(跑完的耗时、负载下的先后、任何只在时间预算内才成立的条件)⇒ 它跟超时是同一类,同样对负载敏感,重排一次是合法的判别手段。
识别是机械的:断言的消息或它比较的值本身点名了一段时长、一个时间戳、一个耗时计数。实测过的一对 —— AssertionError: SecurityPlugin.init() ran: expected false to be true 测的是产品行为(真回归);
AssertionError: this run took over a second, so second-precision stamps could have differed too: expected 1006 to be less than 1000 测的是实验前提:它守护的那条不变式当时是绿的,同一个 head 原样重排一次即成功。
穿着 AssertionError 外衣的时间测量,仍然是时间测量。(⛔ 这只改「怎么读一次红」,不改「哪些测试可以重排」——后者由别处管。)

跨 PR 相同签名(24h,按失败测试文件聚合):

  • ⚠️ 本次没有可用的聚合签名(日志里没有能解析出测试文件名的 FAIL 行)—— 这不是「没有同签名的其他 PR」,是这一轮没测到。跨 PR 聚合本次不可用,请手工比对其他 PR 的同类评论。
  • ⚠️ 24h 评论账本没读完(超过 5 页仍未读到窗口尽头),所以上面的「不同 PR 数」是下界,不是全量。

历史信号:

  • 本 PR 过去 24h 无队列失败记录(首次)。
  • 过去 24h 队列共有 32 个失败构建(不含本次)。

分诊清单:

  1. 失败测试在本 PR 改动的包里 → 真回归,修 PR。
  2. 失败测试与本 PR 无关 → 看上面的「跨 PR 相同签名」;已有汇总 issue ⇒ flaky/环境问题实锤,去那张 issue 上谈,修好前重排只会再烧一轮全队列。
  3. 两者都不是 → 可能与同组 PR 语义冲突;等前面的 PR 落地或失败出队后再重排一次即可,不要连续重排。

Generated by Claude Code · merge-queue-triage workflow (#4859)

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

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

Re-queue · area o3-F · 2026-11-17T20:00Z · head 1dc521b1 unchanged. Ejected at 2026-11-17T19:39Z by an infrastructure failure, not by the code: in merge-group run 44156458636 (CI), Test Core (1/10) timed out at step "Fetch this commit's history and the base branch" after 20 minutes, and the Test Core roll-up failed only because shards 1 and 9 published no attestation. The PR is a comment-only change. Reviews 6955591381 / 6956392973 (carried by 6957040730) and landing 6957617644 stand. One re-queue; if ejected again the area stops and reports to the seat.

@github-actions

Copy link
Copy Markdown
Contributor

⛔ merge queue 构建失败 — 先分诊,再决定要不要重排

队列构建 44170231537 红了。队列跑的是全量套件(PR 侧 CI 只跑 affected 子集),
所以失败的测试可能在本 PR 没碰过的包里 —— 那不是重排能修的。每次盲目重排都会让排在后面的所有 PR 重建一轮。

分类:failure —— 按下面的日志分诊。

失败的 job(日志抽取,best effort):

  • Test Core (1/10) — 失败步骤: Fetch this commit's history and the base branch(日志不可读,点进 job 看)
  • Test UI (15/16) — 失败步骤: Fetch this commit's history and the base branch(日志不可读,点进 job 看)

↳ 失败原因 是判读的关键:超时(Test timed out in … / Hook timed out in …)多半是负载/时序,不是本 PR 的回归;
断言(AssertionError: …)才指向真实的行为改变。两者的 FAIL 行长得一模一样,只有这一行能区分。

⚠️ 断言这一侧有一类例外,判据是断言在测什么,不是它是不是 AssertionError。 断言的对象是产品行为(一个值、一个形状、一次拒收)⇒ 照上面读:真实的行为改变,去查,⛔ 不要重排掉;
断言的对象是这次实验自身的有效性前提(跑完的耗时、负载下的先后、任何只在时间预算内才成立的条件)⇒ 它跟超时是同一类,同样对负载敏感,重排一次是合法的判别手段。
识别是机械的:断言的消息或它比较的值本身点名了一段时长、一个时间戳、一个耗时计数。实测过的一对 —— AssertionError: SecurityPlugin.init() ran: expected false to be true 测的是产品行为(真回归);
AssertionError: this run took over a second, so second-precision stamps could have differed too: expected 1006 to be less than 1000 测的是实验前提:它守护的那条不变式当时是绿的,同一个 head 原样重排一次即成功。
穿着 AssertionError 外衣的时间测量,仍然是时间测量。(⛔ 这只改「怎么读一次红」,不改「哪些测试可以重排」——后者由别处管。)

跨 PR 相同签名(24h,按失败测试文件聚合):

  • ⚠️ 本次没有可用的聚合签名(日志里没有能解析出测试文件名的 FAIL 行)—— 这不是「没有同签名的其他 PR」,是这一轮没测到。跨 PR 聚合本次不可用,请手工比对其他 PR 的同类评论。
  • ⚠️ 24h 评论账本没读完(超过 5 页仍未读到窗口尽头),所以上面的「不同 PR 数」是下界,不是全量。

历史信号:

  • ⚠️ 本 PR 过去 24h 已在队列失败 1 次(不含本次)。 内容未变而反复失败 ⇒ 高度怀疑 flaky 测试或与同组 PR 的语义冲突,重排不解决。
  • 过去 24h 队列共有 31 个失败构建(不含本次)。

分诊清单:

  1. 失败测试在本 PR 改动的包里 → 真回归,修 PR。
  2. 失败测试与本 PR 无关 → 看上面的「跨 PR 相同签名」;已有汇总 issue ⇒ flaky/环境问题实锤,去那张 issue 上谈,修好前重排只会再烧一轮全队列。
  3. 两者都不是 → 可能与同组 PR 语义冲突;等前面的 PR 落地或失败出队后再重排一次即可,不要连续重排。

Generated by Claude Code · merge-queue-triage workflow (#4859)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size/s skip-changeset PR has no user-facing published change; bypasses the changeset gate

Projects

None yet

Development

Successfully merging this pull request may close these issues.

reading first: are the platform's own system datasets out of the vocabulary advisory's reach by design

2 participants