Skip to content
This repository was archived by the owner on Nov 4, 2026. It is now read-only.

docs(skills): protocol.md's "Readers only." clause names the data-table bind warning and the silent parser tier (objectui#11009) - #11410

Merged
os-zhuang merged 1 commit into
mainfrom
claude/issue-11009-protocol-readers-only-bind-warning
Oct 2, 2026
Merged

os-zhuang merged 1 commit into
mainfrom
claude/issue-11009-protocol-readers-only-bind-warning

Conversation

@objectstack-fleet

Copy link
Copy Markdown
Contributor

Fixes #11009

Clause-②: no

The 「Readers only.」 paragraph of skills/objectui/rules/protocol.md ended with 「— no error, no warning.」 about a bind authored on a data-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, since bind is a base prop every node may carry and draws no unknown-prop (objectui#11008).」

Mechanism assumptions from the dispatch, each read on origin/main 7728c67 and re-run on a93c1a9:

  1. Parser tier — packages/sdui-parser/src/validate.ts holds const BASE_PROPS = basePropNames('every-node') and the table row { name: 'bind', scope: 'every-node', tsType: 'string' }. The live-registry pin packages/components/src/renderers/__tests__/bind-base-prop-parser-tier-11008.test.tsx runs validateTree over every known registry key: data-table + bind draws [], and the lit control bindTo still draws exactly ['unknown-prop']. Confirmed.
  2. Render tier — packages/components/src/renderers/complex/dataTableBindDiagnostic.ts emits one console.warn with the [ObjectUI] DataTable bind: prefix per bound data-table, and no error. packages/components/src/__tests__/skill-guide-data-table-binding.test.tsx pins warnings to 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.
  3. Sibling wording — the BaseSchema.bind docblock in packages/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.
  4. Gate list — derived by hand from objectui's .github/workflows/*.yml (objectui has no dispatch-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)

reading before (7728c67) after (a93c1a9) net
skills/objectui/rules/protocol.md, whole file 370 370 0
whole bundle, every skills/objectui/**/*.md (16 files) 4806 4806 0
every skills/*/SKILL.md (one file, skills/objectui/SKILL.md) 142 142 0

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-tokens is the eval must_contain oracle, not a size gate), so lines are the reading.

Gates run locally on a93c1a9

Exit 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.

gate (workflow) command exit
Skills Paths node scripts/check-skills-paths.mjs 0 — 89/90 stated paths resolve, 1 baselined
Skill Eval Tokens node scripts/check-skill-eval-tokens.mjs --self-test, then the run 0 / 0 — every must_contain token is taught, 0 red beyond baseline
Skill Examples pnpm exec turbo run build $(node scripts/check-skill-examples.mjs --build-filter) --concurrency=2 under os-verify-lock.sh (29/29 tasks, 3m43s), then --self-test (60 cases), then the corpus run 0 / 0 / 0 — 70 fences parsed, 0 failed
Line Citation Gate node scripts/check-new-cross-file-line-citations.mjs 0 — 0 new citations
Control Bytes node scripts/check-control-bytes.mjs 0 — 9926 tracked text files scanned
Changeset Presence node scripts/check-changeset-presence.mjs 0 — 0 published source changed, 1 changeset added
Changeset Guard node scripts/check-changeset-no-major.mjs, node scripts/check-changeset-overwrite.mjs 0 / 0 — 1 added, 0 pre-existing modified
Changeset Claim Re-read node scripts/check-changeset-claims.mjs 0 (report-only)
Governed Surface Guard node scripts/check-governed-queue-guard.mjs --self-test, then --test skills/objectui/rules/protocol.md .changeset/11009-protocol-readers-only-bind-warning.md 0 / 3 GOVERNED (skills/** x1) — the expected answer; this PR stays draft
Shell Escape Residue node scripts/check-shell-escape-residue.mjs 0
Lint, CI not run locally: both workflows' 「Decide whether this change needs a full run」 step excludes **/*.md and .changeset/**, so on this diff they report and skip every heavy step NOT MEASURED locally, by the workflows' own design
doc-* workflows check-doc-component-types (its header: not skills/**), check-doc-snippet-types, check-doc-fence-languages, check-doc-example-ids, check-doc-links (no skills scan root) do not read skills/** not reached by this diff

Acceptance notes

  • skills/objectui/guides/data-integration.md, the paragraph beginning 「data-table is not among them」, says a bound data-table renders 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 of protocol.md); reported for the seat, not edited here.
  • packages/types/src/__tests__/base-bind-declared.test.ts header comment still says 「— no error, no warning. That is recorded in protocol.md」. A test-file comment, not shipped and not a pin; noted for whoever next touches that file.
  • Toolchain: this container's Node is v22.22.0, below the ^22.22.2 floor that jsdom@30.0.1 (in the lockfile since 0e6e76b, PR objectui#11312) declares, and .npmrc sets engine-strict=true, so a bare pnpm install is refused here. Installed with pnpm install --config.engine-strict=false for that one invocation (no tracked file touched; CI pins node-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

…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>
@github-actions

github-actions Bot commented Oct 2, 2026

Copy link
Copy Markdown
Contributor

changeset-claim-re-read

⚠️ 4 pending changeset(s) describe a file this change touches

Their bodies publish verbatim into the CHANGELOG at the next release, so this is a request to re-read them against your diff — addressed here because you are the one seat that can answer it without re-deriving anything.

⛔ Nothing here blocks, and nothing here is a verdict on your change. This gate exits 0, is not a required context, and judges name resolution, never meaning: it asked whether a pending body names a file you touched. "Is this sentence still true?" is the one question it will not answer, and the one you are being asked to answer.

.changeset/4795-bindable-text-keys.md

  • names skills/objectui/rules/protocol.md → skills/objectui/rules/protocol.md — edited by this change

    Published authoring guidance updated to match: skills/objectui/rules/protocol.md (new "Bindable Text Keys" rule), plus the page-builder, schema-expressions and data-integration guides, which taught the now-retired "never evaluated" statement and its host-pre-resolution workaround.

.changeset/6357-basechema-bind-declaration.md

  • names skills/objectui/rules/protocol.md → skills/objectui/rules/protocol.md — edited by this change

    bind was read by ten production sites and declared by no schema shape. It resolved as any through BaseSchema's index signature and rode .passthrough() on the validator, while three separate documents taught it as an authorable key of every node: this repo's own AGENTS.md §4 ("Every node in the UI tree follows this shape (@object-ui/types)"), the published agent-facing skills/objectui/rules/protocol.md ("Every UI component node MUST follow this shape"), and content/docs/fields/grid.mdx. So the agent-facing protocol told authors to write a key the published types did not know existed.

.changeset/6575-data-table-bind-diagnostic.md

  • names skills/objectui/rules/protocol.md → skills/objectui/rules/protocol.md — edited by this change

    The platform was already paying for this in teaching rather than in diagnostics: skills/objectui/rules/protocol.md documents the pothole verbatim and a pin test locks the behaviour. The warning now also reaches the console, where the author who did not read the docs is standing:

.changeset/6665-data-table-non-array-data-diagnostic.md

  • names skills/objectui/rules/protocol.md → skills/objectui/rules/protocol.md — edited by this change

    The spelling that opened the card is a ${...} expression string, and it is a defect rather than a design because the SAME expression is evaluated one key over. Re-measured on merge-base 5967be095 through the real SchemaRenderer (the table was previously quoted from skills/objectui/rules/protocol.md as a measurement on f1c27f037 and had not been re-run); all four legs reproduced, and they are now pinned as tests rather than prose:

Read the paragraph, not the line: both false halves of the objectui#8617 claim sat in one paragraph, and correcting either alone would have left it asserting the same wrong thing.

If a claim did go false, correct the body. That is precedented and prose-only, frontmatter untouched; check-changeset-overwrite.mjs will report the correction as its own case 2 ("correcting a declaration on purpose … legitimate"), which is the intended shape — one gate asks for the read, the other records the write.

Not covered, stated so nobody reads this as more: a born-false claim that spells no line address at all (objectui#9495 coordinated one by ORDINAL — "a grep finds that member first" — and deciding that means reading what the sentence means), a claim spelled as a symbol or a package rather than a backticked file name, and a file named ambiguously.

Compared the checked-out tree with 138ad4554 (merge-base with origin/main): 1 file(s) changed outside .changeset/, read against 1955 pending declaration(s) that publish a body (2576 pending in total). · run

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: a93c1a9bfcb7590e7dcb8201579c21bff0af713c
Local-runs: none

Face: governed rule text (skills/objectui/rules/protocol.md, objectui skills/**), reviewed in-seat by the dispatching seat at the constant's tier (skills lane, at tier). Inputs: objectui#11009 (body and every comment: the filer's addendum 5874144163, the triage grade 5874709199, the unlock 5923309483, the dev report 5943105309), PR #11410's body, its file list (2 files) and patch against main at 138ad4554, and the check-runs on this head as read at this record.

① Derived judgments

  1. The diff rewrites one clause of one line (protocol.md, the 「Readers only.」 line, 1 insertion / 1 deletion). Every other byte of the paragraph, the two fenced blocks its pins read, and the rest of the file are unchanged: the claim's file surface holds. RIGHT.
  2. The clause now states three things, each read by this reviewer on objectui origin/main 7728c67: (a) a bind on data-table is ignored and the header renders over an empty body — the unchanged half, still true (data-table reads an inline data array, not useDataScope); (b) the one signal is a render-time console warning prefixed [ObjectUI] DataTable bind: — packages/components/src/renderers/complex/dataTableBindDiagnostic.ts exists and packages/components/src/__tests__/skill-guide-data-table-binding.test.tsx pins exactly one warning per bound table; (c) the parser tier draws no unknown-prop because bind is a base prop every node may carry — packages/sdui-parser/src/validate.ts has BASE_PROPS = basePropNames('every-node') and the row { name: 'bind', scope: 'every-node' }, pinned by bind-base-prop-parser-tier-11008.test.tsx. RIGHT on all three; the clause agrees with the BaseSchema.bind docblock in packages/types/src/base.ts.
  3. The two issue citations inside published skill prose follow the file's own convention: protocol.md on main already carries nine objectui#NNNN citations, and objectui runs no tracker-number gate over skills/**. RIGHT, consistent.
  4. No accept-set or public-surface change: no schema, validator or renderer code moves. The published catalog's reader (an AI author) gets a true description of an authoring trap in place of a false "silent" one. RIGHT.
  5. Line budget read off the patch: the file 370 → 370 (one line replaced in place); the bundle 4806 → 4806; the new .changeset file adds four lines outside the skills tree. RIGHT; objectui has no skills token ratchet to read.

② Semver level

Docs-only in a governed surface; no package files[] content moves. The changeset is objectui's EMPTY-frontmatter form for a non-publishing change, and the phantom skip-changeset label is correctly not applied. Clause-②: no is right: nothing is accepted or rejected differently. Consistent.

③ Boundary flags

  • Dev deviation — the PR assignee write was refused by the dev's own classifier before any request left the container: the assignee is the seat's write by protocol and the seat sets os-elon-musk in this stroke. Answered.
  • Dev deviation — pnpm install --config.engine-strict=false for one invocation, because the container's Node v22.22.0 sits under the ^22.22.2 floor jsdom@30.0.1 declares and .npmrc sets engine-strict=true; no tracked file was touched and CI pins 22.x. Accepted as a container reading; recorded on the seat post.
  • Dev deviation — the turn ended on a server-side API 500 and resumed from the clean worktree with no redone work, no second worktree, no second claim. Accepted.
  • Out-of-scope finding (class a, published text): skills/objectui/guides/data-integration.md about :258–:259 「with nothing thrown and nothing logged」 is the same silence-clause family and false since objectui#6575. Escalated to the seat's filing: the seat enumerates the family's remaining sites and files ONE closure card in objectui, not a one-off. Not this PR's.
  • Two 「noted, not filed」 items (a test-file header comment in packages/types/src/__tests__/base-bind-declared.test.ts; the container Node floor) stay noted.
  • open_questions: none.
  • Check-runs on a93c1a9b at this record: 0 failure; nine in_progress (eight Test shards and Spec Main Shape Gate), the rest success or path-skipped. The landing is Tier H: it waits on an authorized APPROVED review and on every check green, which the seat's landing window reads again on this head.

Implemented-by: claude/issue-11009-protocol-readers-only-bind-warning
Reviewed-by: session_01FNKm1SmPpuJASnbjxWGtsJ

VERDICT: PASS

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

维护者速读(终稿)

席位(skills 席 1,session_01FNKm1SmPpuJASnbjxWGtsJ)对照自读的 diff 校正 dev 草稿后定稿,2026-10-02T00:18Z。

改了什么。 只改 skills/objectui/rules/protocol.md 「Readers only.」段落末尾的一个从句(同一行内重写,文件行数 370 → 370,整包 4806 → 4806)。原文说在 data-table 上写 bind 会「no error, no warning」;新文说:无错误、页面上无提示,唯一信号是渲染期的控制台警告 [ObjectUI] DataTable bind:,解析层也不报 unknown-prop,因为 bind 是所有节点都可带的基础属性。示例与其它句子一字未动;另加一个空 frontmatter 的 changeset(声明不发版)。

为什么改。 这份 skill 发布给写 objectui 元数据的作者(含 AI)。旧从句自 objectui#6575 起就是假的(渲染器会打一条警告);objectui#11008 落地后解析层半边也定型(bind 入基础属性,不再 unknown-prop)。教错的技能文本会让作者去找一个不存在的静默陷阱、或忽略真实存在的警告。packages/types/src/base.ts 的 BaseSchema.bind 文档已是真话并引用这一段,两处现在一致。

风险与代价(含回滚)。 纯文档改动,无代码、无发布包源码变动,行数净增 0。风险只在措辞是否精确:三个断言席位都在 objectui main 上复读过,其中两条机制断言各有一条既存 pin 测试覆盖(22/22 绿)。回滚 = revert 本 PR 的单个 commit,无残留。

席位意见。 建议批准。席内达档契约复核 PASS(见本 PR 评论);措辞与 base.ts 一致,引用编号沿用本文件既有惯例(文件内原有 9 处 objectui#N 引用)。同族的另一处假句(guides/data-integration.md「nothing thrown and nothing logged」)不在本 PR,席位另立一张全族收口卡。

你要做的(一个动作)。 在本 PR 上留一条 APPROVED review(os-zhuang / hotlong 任一)。之后由席位清标、翻 ready、挂 auto-merge 入队;不需要你合并。

@os-zhuang
os-zhuang marked this pull request as ready for review October 2, 2026 00:37
@os-zhuang
os-zhuang added this pull request to the merge queue Oct 2, 2026
Merged via the queue into main with commit cf38a6c Oct 2, 2026
43 checks passed
@os-zhuang
os-zhuang deleted the claude/issue-11009-protocol-readers-only-bind-warning branch October 2, 2026 00:52
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

3 participants