Repository navigation
docs(skills): protocol.md's "Readers only." clause names the data-table bind warning and the silent parser tier (objectui#11009) - #11410
Conversation
…rning and the silent parser tier (objectui#11009) `skills/objectui/rules/protocol.md` said a `bind` on `data-table` renders its header over an empty body "— no error, no warning". The render tier logs one `[ObjectUI] DataTable bind:` console warning per such node (objectui#6575), and since objectui#11008 `validateTree` counts `bind` among the base props every node may carry, so the parser tier draws no `unknown-prop` for it. Only that clause changes; the examples and every other sentence stay as they were. An empty-frontmatter changeset declares the docs-only change. Measured on this branch: `skill-guide-data-table-binding.test.tsx` (one warning per bound table) and `bind-base-prop-parser-tier-11008.test.tsx` (`data-table` + `bind` draws nothing; `bindTo` still draws `unknown-prop`), 2 files / 22 tests passed. Claude-Session: https://claude.ai/code/session_01FNKm1SmPpuJASnbjxWGtsJ Co-authored-by: Claude <noreply@anthropic.com>
|
changeset-claim-re-read
|
Contract reviewServed-tier: Face: governed rule text ( ① Derived judgments
② Semver levelDocs-only in a governed surface; no package ③ Boundary flags
Implemented-by: VERDICT: PASS |
维护者速读(终稿)席位(skills 席 1, 改了什么。 只改 为什么改。 这份 skill 发布给写 objectui 元数据的作者(含 AI)。旧从句自 objectui#6575 起就是假的(渲染器会打一条警告);objectui#11008 落地后解析层半边也定型( 风险与代价(含回滚)。 纯文档改动,无代码、无发布包源码变动,行数净增 0。风险只在措辞是否精确:三个断言席位都在 objectui 席位意见。 建议批准。席内达档契约复核 PASS(见本 PR 评论);措辞与 你要做的(一个动作)。 在本 PR 上留一条 APPROVED review( |
Fixes #11009
Clause-②: no
The 「Readers only.」 paragraph of
skills/objectui/rules/protocol.mdended with 「— no error, no warning.」 about abindauthored on adata-table. That clause was false on both tiers when the card was written, and half-false after objectui#11008 landed. This PR rewrites only that clause; the examples and every other sentence of the paragraph are byte-identical, and an empty-frontmatter changeset declares the docs-only change.What the clause now says, and what was measured on this branch
Rewritten clause (same single line of the file):
「— no error, and nothing on the page says why: the one signal is a render-time console warning (
[ObjectUI] DataTable bind:, objectui#6575); the parser tier stays silent too, sincebindis a base prop every node may carry and draws nounknown-prop(objectui#11008).」Mechanism assumptions from the dispatch, each read on
origin/main7728c67and re-run ona93c1a9:packages/sdui-parser/src/validate.tsholdsconst BASE_PROPS = basePropNames('every-node')and the table row{ name: 'bind', scope: 'every-node', tsType: 'string' }. The live-registry pinpackages/components/src/renderers/__tests__/bind-base-prop-parser-tier-11008.test.tsxrunsvalidateTreeover every known registry key:data-table+binddraws[], and the lit controlbindTostill draws exactly['unknown-prop']. Confirmed.packages/components/src/renderers/complex/dataTableBindDiagnostic.tsemits oneconsole.warnwith the[ObjectUI] DataTable bind:prefix per bounddata-table, and no error.packages/components/src/__tests__/skill-guide-data-table-binding.test.tsxpinswarningsto length 1 for the guide's own example; it reads protocol.md's fenced JSON blocks, not this prose, so no pin moved with the text. Confirmed.BaseSchema.binddocblock inpackages/types/src/base.ts(PR objectui#11006, then objectui#11008) already says the console warning is the one signal and the parser tier stays silent; this clause now agrees with it. Confirmed..github/workflows/*.yml(objectui has nodispatch-gates.mjs); table below.Both test files, under the shared verify lock:
pnpm exec vitest run --maxWorkers=2 packages/components/src/__tests__/skill-guide-data-table-binding.test.tsx packages/components/src/renderers/__tests__/bind-base-prop-parser-tier-11008.test.tsx→Test Files 2 passed (2),Tests 22 passed (22),VERDICT command-exit 0.Line budget (skills tree rule)
7728c67)a93c1a9)skills/objectui/rules/protocol.md, whole fileskills/objectui/**/*.md(16 files)skills/*/SKILL.md(one file,skills/objectui/SKILL.md)Budget was at most +1 line; used 0 — the clause is rewritten inside its existing single line. objectui has no skills token ratchet (
check:skill-eval-tokensis the evalmust_containoracle, not a size gate), so lines are the reading.Gates run locally on
a93c1a9Exit codes captured before any pipe: each command is redirected to its own log first and its status is read on that same shell line, never after a pipe.
node scripts/check-skills-paths.mjsnode scripts/check-skill-eval-tokens.mjs --self-test, then the runmust_containtoken is taught, 0 red beyond baselinepnpm exec turbo run build $(node scripts/check-skill-examples.mjs --build-filter) --concurrency=2underos-verify-lock.sh(29/29 tasks, 3m43s), then--self-test(60 cases), then the corpus runnode scripts/check-new-cross-file-line-citations.mjsnode scripts/check-control-bytes.mjsnode scripts/check-changeset-presence.mjsnode scripts/check-changeset-no-major.mjs,node scripts/check-changeset-overwrite.mjsnode scripts/check-changeset-claims.mjsnode scripts/check-governed-queue-guard.mjs --self-test, then--test skills/objectui/rules/protocol.md .changeset/11009-protocol-readers-only-bind-warning.mdskills/**x1) — the expected answer; this PR stays draftnode scripts/check-shell-escape-residue.mjs**/*.mdand.changeset/**, so on this diff they report and skip every heavy stepcheck-doc-component-types(its header: notskills/**),check-doc-snippet-types,check-doc-fence-languages,check-doc-example-ids,check-doc-links(noskillsscan root) do not readskills/**Acceptance notes
skills/objectui/guides/data-integration.md, the paragraph beginning 「data-tableis not among them」, says a bounddata-tablerenders its header 「with nothing thrown and nothing logged」. Since objectui#6575 one line IS logged. Same clause family as this card, outside this card's file surface (the claim names one paragraph ofprotocol.md); reported for the seat, not edited here.packages/types/src/__tests__/base-bind-declared.test.tsheader comment still says 「— no error, no warning. That is recorded inprotocol.md」. A test-file comment, not shipped and not a pin; noted for whoever next touches that file.v22.22.0, below the^22.22.2floor thatjsdom@30.0.1(in the lockfile since0e6e76b, PR objectui#11312) declares, and.npmrcsetsengine-strict=true, so a barepnpm installis refused here. Installed withpnpm install --config.engine-strict=falsefor that one invocation (no tracked file touched; CI pinsnode-version: '22.x', which is above the floor). Declared as a deviation in the report.维护者速读(草稿)
改了什么 —— 只改
skills/objectui/rules/protocol.md「Readers only.」段落的最后一个从句:原文说在data-table上写bind会「no error, no warning」;现在改为:无错误、页面上无提示,唯一信号是渲染期的一条控制台警告[ObjectUI] DataTable bind:(objectui#6575),解析层也不报unknown-prop,因为bind是所有节点都可带的基础属性(objectui#11008)。示例与同段其它句子一字未动;另加一个空 frontmatter 的 changeset 声明「不发版」。为什么改 —— 这段文字发布给写元数据的作者(含 AI),教的是「在
data-table上写bind会怎样」。旧从句是假的:自 objectui#6575 起渲染器会打一条控制台警告。写错的技能文本会让作者去找一个不存在的静默陷阱、或忽略真实存在的警告。packages/types/src/base.ts的BaseSchema.bind文档已改成真话并引用这一段,两处现在一致。风险与代价(含回滚) —— 纯文档改动,无代码、无发布包源码变动;整文件与整包行数净增 0。风险只在措辞是否精确:两条断言各由一条已存在的 pin 测试覆盖,本分支上 2 个文件 / 22 个测试全绿。回滚 = revert 本 PR 的那一个 commit。
席位意见 ——(留空,席位定稿)
你要做的 —— 受管面(
skills/**,Tier H):本 PR 恒为 draft。请os-zhuang/hotlong之一留下 APPROVED review;之后由认领席翻 ready 并入队,dev 不做这两步。Generated by Claude Code