Skip to content

Commit 586ed40

Browse files
committed
docs(skills): a retired spelling under props is not a node-gate predicate
Contract review on #26274, items 5 and 10: - skills/objectui/rules/protocol.md: the props-parking sentence claimed the console refuses the retired spellings by name. NODE_GATE_PREDICATE_KEYS is visibleWhen / visible / hidden / disabled only, and the propsBagLoudRefusal pin drops the three, so the phrase "and their retired spellings" goes (4365 -> 4357 tokens, within the ratchet). - ui/scripts/check-skill-examples.mjs: the json floor 70 -> 69 reason now says what the deleted "Data-dependent" fence was: a `hidden` template example that duplicated the syntax block above it, cut to pay the guide's token ceiling; it did not teach `visibleOn`. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01E5XcbmSeZTDGm5zCYkC9XV
1 parent a3f79a5 commit 586ed40

2 files changed

Lines changed: 7 additions & 8 deletions

File tree

‎skills/objectui/rules/protocol.md‎

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -109,9 +109,8 @@ as React props (`packages/react/src/SchemaRenderer.tsx`), which those renderers
109109
ignore. A key parked under `props` is therefore dropped: the component renders
110110
an empty frame, and the envelope itself lands in the DOM as the invalid
111111
attribute `props="[object Object]"`. Silent for every key except the node-gate
112-
predicates (`visibleWhen` / `visible` / `hidden` / `disabled`, and their
113-
retired spellings), which are refused by name on the
114-
console, with the migration, instead of gating nothing.
112+
predicates (`visibleWhen` / `visible` / `hidden` / `disabled`), which are
113+
refused by name on the console, with the migration, instead of gating nothing.
115114

116115
**❌ WRONG — renders an empty card:**
117116
<!-- doc-json: fragment — deliberate counter-example: a title parked under props never reaches the card renderer, and props is no declared key -->

‎ui/scripts/check-skill-examples.mjs‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -544,11 +544,11 @@ export const MARKED_FLOOR = new Map([
544544
// the population measured 39 marked / 46 parsing before, 70 / 70 after.
545545
// 70 -> 69 (objectstack#25926): the "Data-dependent" `json` fence in
546546
// `skills/objectui/guides/schema-expressions.md` was DELETED, not unmarked.
547-
// It taught `visibleOn`, which that card retires (ADR-0089: `visibleWhen` is
548-
// the one conditional-visibility predicate), and the guide's token ceiling
549-
// (scripts/check-skills-token-ratchet.mjs) left no room to keep a second
550-
// example beside the rewritten one that now teaches `visibleWhen`. The fence
551-
// was green at deletion; nothing here routes around a red.
547+
// It was a `hidden` template example (`"hidden": "${!data.items || …}"`)
548+
// that duplicated the syntax block above it, and the guide's token ceiling
549+
// (scripts/check-skills-token-ratchet.mjs) had no room for both once that
550+
// block was rewritten for the retired `visibleOn` / `hiddenOn` / `disabledOn`
551+
// spellings. The fence was green at deletion; nothing here routes around a red.
552552
['json', 69],
553553
]);
554554

0 commit comments

Comments
 (0)