Repository navigation
feat(types,mobile)!: retire the MobileComponentConfig published type - #7526
Conversation
`MobileComponentConfig` published a four-key mobile component-schema
extension (`responsive`, `gestures`, `pullToRefresh`, `infiniteScroll`)
that nothing read. Re-measured on current main: four code mentions
repo-wide (declaration, one doc cross-reference, two barrel re-exports),
no mount point, no reader, zero authors in the example apps or the
objectstack sibling checkout.
Removed outright rather than tombstoned with `?: never`: the whole
interface goes, so there is no surviving object to hang a never-key on,
and no documentation ever taught it. Same zero-pull, no-successor shape
as MobileOverrides (objectui#4919).
The dangling `{@link MobileComponentConfig}` cross-reference on
MobileResponsiveConfig is rewritten rather than left pointing at a
removed name; that type and GestureConfig become zero-consumer published
types as a result, recorded as objectui#7519 rather than widened here.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EMrWaQw3XS5DxTHxp4yRyC
✅ Console Performance Budget
The eager closure is every chunk the entry reaches through static imports — what the browser fetches and parses before the app renders. The entry chunk on its own is a small fraction of it. 📦 Bundle Size Report
Size Limits
|
受托契约复核:FAIL(窄口径) —— 一处需改,其余全部独立复现
转录档位核验(维护者 2026-08-27 裁),采信前先做:该复核者转录 73 个 assistant 轮次,73 个全部 stamped 按同一裁定,派发席只可逐字采信或整份作废,⛔ 不得改写、删节或润色。以下是复核者原文。 ⛔ 简报中未包含本席的任何判断,这是刻意的 —— 独立复核的意义是重新推导,不是确认。 裁断:FAIL(窄口径——只有一处需要改,其余全部复现)被击穿的一点:PR 把 一、我独立复现的读数(命令 + 数字)基线:GitHub 报 base 攻击点 1:计数
PR 列的四处行号(626 / 50 / 283 / 68)逐字命中。注意分类脆弱: 攻击点 3:"唯一消费者"
③ 边界标记
攻击点 2:外部消费者探针scratchpad 独立目录,
N 在 before 腿就报错,证明 before 腿的 exit 0 是"真解析到名字"而不是仪器把整包解析成 ① 派生判断
② semver
验证联合
二、复现不了 / 与 PR 不符的读数
三、试过但没击穿的角度
四、要 PASS 需改什么
复核用的两个工作树保留在 派发席处置FAIL ⇒ 补丁轮,⛔ 不放行。PR 保持 draft + ⭐ 这个击穿点是本轮最值得记的一条,因为它是注释机制层面的:
补丁轮的三条要求按复核原文执行(第 3 条为建议,不阻塞)。补完重新提交复核。 Generated by Claude Code |
…tted .d.ts Contract-review patch round. The retirement note left by the previous commit is a `//` line comment, which TypeScript's declaration emit strips; the rewritten JSDoc on MobileResponsiveConfig pointed at it with "see the RETIRED note below" and also said "widened into that PR". Both survive into the PUBLISHED packages/types/dist/mobile.d.ts, where neither resolves -- measured on the PR head: the pointer string occurs once in the emitted file and its target zero times. The JSDoc now carries only references an external reader of the .d.ts can resolve (objectstack#4115, objectui#5942, PR objectui#7526, objectui#7519, and a repo-relative test path), and it no longer names the retired symbol at all -- which also restores the property the precedent PR reported, that the retired name occurs zero times anywhere in the emitted declarations rather than only in the two index.d.ts barrels. Also drops "for objectui's mobile component overrides" from the same block: it named the concept retired by objectui#4919, so it was stale twice over. Changeset gains a warning that TS2724's "Did you mean 'ComponentConfig'?" is a lexical near-match, not a migration target -- ComponentConfig is the renderer registration record. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01EMrWaQw3XS5DxTHxp4yRyC
✅ Console Performance Budget
The eager closure is every chunk the entry reaches through static imports — what the browser fetches and parses before the app renders. The entry chunk on its own is a small fraction of it. 📦 Bundle Size Report
Size Limits
|
受托契约复核 第二轮:PASS(head
|
读数(packages/types/dist/mobile.d.ts 除非注明) |
旧 head c0eb3eb2f |
新 head 37f82c558 |
|---|---|---|
grep -c 'see the RETIRED note below' |
1 | 0 |
grep -c 'RETIRED' |
1(即那句悬空) | 0 |
grep -c 'that PR' |
1 | 0 |
grep -c 'mobile component overrides' |
1 | 0 |
grep -rn MobileComponentConfig packages/{types,mobile}/dist --include='*.d.ts' |
1(mobile.d.ts:42) |
0 |
grep -rho MobileComponentConfig packages/*/dist(39 个 dist) |
— | 0 |
对照点亮(同一轮):MobileResponsiveConfig -w 3、GestureConfig -w 6、BaseSchema -w 44 个文件。被指向的注释在已发布文件里为 0,指向它的句子也为 0——悬空消失是因为指针被删,不是目标被发布。名字在全部已发布 .d.ts 里归零,#5941 那条"退休名不漏进 dist"的性质被恢复。
二、补丁有没有开新口子
新 JSDoc 的每个引用,用 emitted 文件逐个数:objectstack#4115 = 6、objectui#5942 = 1、objectui#7526 = 1、objectui#7519 = 1、page-nav-misc-spec-parity.test.ts = 4——与 PR 正文报的五个数逐字相同。"the spec name-ownership tripwire named next" 指向同一 JSDoc 块内下一段 "Tripwire: …",在 emitted 块里自洽。SpecResponsiveConfig 确是 packages/types/src/index.ts:1343 的导出。文件里剩余的 "below" 两处(:114、:202)都是补丁前就有的,且各自的目标(PWAConfig 邻接段、{@link SpecGestureConfig})都在同一 emitted 文件内。整个文件 "above" = 0。
"整 dist 口径"是否真整:PR 给的三条命令我原样跑了,packages/{types,mobile}/dist 与 packages/*/dist(39 个 dist 全在)都是 0;PR 说 "MobileResponsiveConfig still occurs 3 times across packages/*/dist",我测 3。口径是整的。
非阻塞第三条做没做对:
- feat(types,mobile)!: retire the MobileOverrides type and its mount point (#4919) #5941 措辞:正文改为 "states the discriminator … merged with zero reviews (opened 02:37, self-merged 02:51), so it 'established' nothing procedurally … rests on objectui#4919's recorded maintainer ruling"——与我第一轮
get_reviews=[]、时间戳、finding(types):MobileOverrides.navigation发布了三值导航词表,全仓零读点 —— 与 #3985 同族的另一处「声明即全部」 #4919 裁定链的读数一致,做对了。 - changeset 新段 "Do not follow the compiler's suggestion":声称
ComponentConfig是 "{ type: string; component: T }, extendingComponentMeta"。git show 37f82c558:packages/types/src/base.ts第 757 行:export interface ComponentConfig<T = any> extends ComponentMeta { type: string; component: T; }——逐字属实。"import from@object-ui/mobilegets a plain TS2305 with no suggestion" 与我的探针 A2 一致。做了,且做对。
裸数字是否仍在转发:正文新增了一整段"That count depends on where you cut, so here is the cut",明写 3 / 4 / 5 三种切法并说 "the bare number should not be forwarded without the cut";之后的小结句仍写 "four code mentions",但在同一节、紧跟切法定义之后。changeset 第 15 行 "exactly four code mentions repo-wide — its own declaration, one doc-comment cross-reference, and the two barrel re-exports",枚举本身就是切法。可接受,不构成新问题。
changeset 作为会进 CHANGELOG.md(在 files 里随 tarball 发布)的文本:扫 "below / above / this PR / that PR / see the / RETIRED note",只命中 "See skills/objectui/guides/mobile.md",是仓库路径引用而非相对指针。引用计数 objectui#4919 3、#5942 1、#7519 1,均为可解析编号。
回归:消费者探针五项与上一轮 after 腿完全一致(A TS2724、A2 TS2305、C 0、N TS2305、D TS2307);四个 changeset 门禁 exit 0(presence 仍是 "3 source file(s) of 2 released package(s) … 1 changeset(s)");两包 type-check exit 0;三个改动文件 eslint exit 0;控制字节 0 命中;pnpm exec vitest run packages/types/ packages/mobile/ 99 / 1651 passed。
三、check:readme-exports 是否真绿
- 仪器对照:只建 2 包时
node scripts/check-readme-exports.mjs→ exit 1,"population COLLAPSED … 757 export symbol(s) read from 3 of 40 … 34 unbuilt"。这就是第一轮 NOT MEASURED 的状态,我复现了。 - 全量:
pnpm exec turbo run build --filter='./packages/*'(readme-exports.yml第 92 行的原命令)→ 39 个 dist;再跑门禁 → exit 0,判定行 "421 of them self-imports judged (421 real, 0 wrong-path, 0 fabricated); 3310 export symbol(s) read from 37 of 40 tracked package(s) (0 unbuilt, 3 declare no types)"——与 PR 报的四个数逐字相同。 - 绿得对不对:
--list里packages/types/README.md8 条、packages/mobile/README.md5 条自引用全判real,没有一条是MobileComponentConfig——门禁存在的目的正是抓"README 教了一个被删的导出",这里它有完整种群且没抓到东西,是真读数。 - 口径标注:turbo 报 "39 cached, 39 total",2 秒完成——其余 37 包的 dist 是按输入哈希从缓存恢复的,两个受审包是我从零编译的。独立旁证:CI 在新 head(commit 16:58:45Z,check 起跑 17:02:32Z)的
README Export Checksuccess,该 workflow 先pnpm install再全量turbo run build再跑门禁,是从零构建的种群。升级成立。
四、试过但没击穿的角度
- 新 JSDoc 逐引用计数 / 块内 next 指向 / 文件级 below-above 扫描 /
SpecResponsiveConfig导出存在性。 - 整 dist 口径(2 包与 39 包)+ 三个点亮对照。
- changeset 里的相对指针 / 事实主张(
ComponentConfig形状、TS2724 文本、TS2305 无建议)。 - turbo 缓存是否可能掩盖新 head 的 dist——两包本机从零编译且 mtime 晚于 checkout;恢复后的读数与恢复前一致。
- 补丁是否触碰代码——只有注释与 changeset;type-check / vitest / 门禁 / CI 32 项全绿。
五、留给 docket 的非阻塞观察(不影响裁断)
- emitted JSDoc 里的 "Tripwire:
__tests__/page-nav-misc-spec-parity.test.ts" 指向的文件不在 tarball(files: dist, README.md, CHANGELOG.md, LICENSE)。这是该文件四处 JSDoc 共用的既有写法,补丁前就在,不是本轮引入。 - 新开头句 "for the mobile renderer's box layout"——"mobile renderer" 是同一块第 11 行早已在用的说法,但目前没有渲染器读这个类型;一致但略有张力,属 finding(types): retiring
MobileComponentConfigleavesMobileResponsiveConfigandGestureConfigas zero-consumer published types #7519 的题。
派发席处置:放行
PASS ⇒ 剥双载体 needs:contract-review(PR 与卡片)、ready、auto-merge。
⭐ 本轮最值得留下的一条,是实现者选了指令没给的第三条路:单子给了「重写 JSDoc」与「若保留退休名字在散文里就声明口径差异」两个选项,它让新 JSDoc 完全不提 MobileComponentConfig —— 于是退休名字在全部 39 个 dist 里归零,恢复了 #5941 的口径而不是偏离它,⇒ 连声明都不必了。复核者用「悬空消失是因为指针被删,不是目标被发布」一句点破了这个区别。
非阻塞观察两条已记,其中第 2 条归 #7519。
Generated by Claude Code
…fig published types (#7683) * feat(types,mobile)!: retire the MobileResponsiveConfig and GestureConfig published types Both were declared in packages/types/src/mobile.ts and published twice -- re-exported by the @object-ui/types root barrel and by @object-ui/mobile's -- and each had exactly one consumer: the `responsive` / `gestures` member of MobileComponentConfig, which objectui#5942 (PR #7526) retired. Re-measured on origin/main a472b07 before deleting: each name was a declaration plus two barrel re-exports and nothing else (read-shape probes over all tracked files, controls GestureType 36 / GestureContext 7 / ResponsiveValue 11 lit in the same run; objectstack sibling checkout 0 hits for both, control ComponentSchema 270; no package.json in that repo depends on @object-ui/*). Same route the container took: removed outright, not tombstoned. The whole interface goes, so there is no surviving object to hang a `?: never` key on; no documentation ever taught either; and there is no Zod mirror at all -- packages/types/src/zod/ has never had a mobile twin -- so the "deletion under a non-strict z.object is a silent strip" argument has no schema to apply to and the refusal is type-level only (TS2305 / TS2724 at the import), the objectui#7654 shape. Both barrels drop the names; a `//` RETIRED note replaces each declaration (line comments are stripped from declaration emit, the objectui#5942 contract-review lesson), and the surviving JSDoc on GestureType and the useSpecGesture hook no longer names the retired symbol, so both names occur zero times across every emitted .d.ts (rebuilt and measured; control GestureContext 2 / 3). The page-nav-misc-spec-parity rows that pinned the two names' spec non-ownership retire with the types: a name this package no longer exports cannot collide with anything, so a pin on it would guard nothing. The absence is pinned instead in mobile-residue-retired-7519.test.ts on the tsc channel (`@ts-expect-error` through the import('...') spelling, each paired with a live control through the same spelling) and by a source read of both barrels. Changeset: minor for @object-ui/types and @object-ui/mobile, graded on the published-surface change -- the in-repo consumer count is zero, consumers outside this repository are not visible from here. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01KbJQ1y1J12nZxYzFWhP8Q3 * docs(types): state the two-prong retire-vs-remove measurement per retired type The RETIRED notes and the changeset said the two-prong discriminator did not apply; the PM's mid-task correction (objectui#7678) asks for the measurement per key instead. Prong 1 (named live replacement key): none for either -- MobileResponsiveConfig's distinctive keys have zero readers outside the declaration, no dispatcher reads a gesture `action`, and TouchInteraction.gestures is SpecGestureConfig[], a different contract. Prong 2 (advertised as working): the only CHANGELOG lines are the objectstack#4115 rename-ledger rows (6 / 6, replicated per package) and, for GestureConfig, the objectui#3363 reclaim note (4 lines); none teaches a renderer or dispatcher reading them and no member carried a published @default. Controls in the same run: triggerIcon 1 (tombstoned on prong 2), striped 19; MobileComponentConfig / MobileOverrides 0 (removed outright). Whether a rename-ledger row or a reclaim note counts as "taught as working" is recorded on objectui#7519 for the docket, not decided in the comment. The objectui#4919 note (the one-line form under correction as objectui#7678) is untouched. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01KbJQ1y1J12nZxYzFWhP8Q3 --------- Co-authored-by: Claude <noreply@anthropic.com>
…iving carriers Contract review on the previous head found the bare deletion left an authored `dataProvider` absorbed silently: both carriers extend `BaseSchema` (index signature on the TS face, `.passthrough()` on the zod face). Per the repo's retirement discriminator (objectui#5941, #7526, amended by objectui#7678), a surviving carrier takes a `?: never` tombstone when it steers authors to a live replacement key, here `objectName`. - `ObjectDataTableSchema.dataProvider?: never` and a `retirementTombstone` on its zod mirror, whose message says to write `objectName`. - `ObjectPivotTableProps['schema'].dataProvider?: never`; that node has no zod face, so the TS refusal is its only one. - Pins flipped: well-formed and malformed values refused by name, an undeclared key still accepted, `@ts-expect-error` on both TS faces. - Changeset rewritten against released 17.6.0: the published narrowing is plugin-dashboard's; the types half edits an unreleased schema. The three writes stay deleted; no reader is added. Claude-Session: https://claude.ai/code/session_014mXUNuFomfj24w7s1pZzhN Co-authored-by: Claude <noreply@anthropic.com>
…the amended form (objectstack-ai#9682) Part of objectstack-ai#7678 Prose only. No member added, removed, renamed or retyped in any file; no `?: never` tombstone touched; no accept set moved; nothing newly exported. `Clause-②: no`, re-measured at delivery on `dce4a74a1`: `git diff 72f55c9..HEAD -U0 | grep -c '^+export'` scores **0**, and the same diff filtered to non-comment source lines scores **0** lines — every added and removed line in `packages/types/**` is a comment line. --- ## Two premises of the dispatch falsified ### 1. The item-1 ask was NOT already discharged The dispatch recorded the card's item-1 ask — *"make the `complex.ts` JSDoc cite prong 2 as the reason this key earns a tombstone"* — as already done, measured at the `KanbanColumn.color` block. That block does state both prongs with a worked example for each. It states them for a **different retirement**. The `triggerIcon` block — the site this card was filed about — mentions **neither prong, nor the discriminator, nor the carrier precondition**. Measured on `72f55c9ec` over that whole docblock: `grep -c "prong|discriminator|carrier|5941|7526"` returns **0**. It argues from the `tsc` deleted-vs-tombstoned contrast alone, which is exactly the rationale the card names as the *cause* of the contradiction, since that contrast applied equally to objectui#4919 and objectstack-ai#5942 and both were removed outright. Commit `dce4a74a1` takes that site too. It is **separable on purpose** — drop it and the other three sites still agree. ### 2. The `floatingConfig` tripwire is alive, and it is not the `displayMode` one Address: **`packages/types/src/__tests__/floating-chatbot-trigger-icon-retired.test.ts`**, the `TRIPWIRE` comment on the parse-green assertion inside the `there is NO zod refusal on a %s node` block. The `displayMode` tripwire in `chatbot-display-mode-retired.test.ts` is a separate, already-corrected one and was **not** touched — `displayMode` stays out of scope. --- ## Measurement behind the tripwire rewrite Injected a minted `floatingConfig` arm onto both twins in `packages/types/src/zod/complex.zod.ts`, ran the tripwire file, restored under a `trap ... EXIT INT TERM`. Both legs verified on disk: marker count 0 to 3, blob `656fc015` to the mutated blob and back to `656fc015`, `git diff HEAD` empty afterwards. | tree | result | |---|---| | baseline `72f55c9ec` | 11 passed / 11 | | house-style non-strict `z.object` mirror | **2 failed** / 9 passed — both failures are the **shape pin**, one per twin. The parse-green line the comment sat on stays **GREEN**. | | `z.strictObject` mirror | **4 failed** / 7 passed — shape pin and parse-green line, one of each per twin | This reproduces triage's table (triage counted per-key; the file's `describe.each` doubles each reading). The comment now names the shape pin as the assertion that fires and records both readings; the shape pin gained a back-pointer. --- ## Before / after at each site ### `complex.ts` — `KanbanColumn.color` before: > A tombstone rather than a plain removal on BOTH prongs of the discriminator the precedent changesets state (objectui#5941, objectstack-ai#7526; **the one-line form is under correction as objectui#7678**) — a tombstone exists (1) to steer authors to a named live replacement KEY, or (2) to keep loud a key the docs taught as working: after: > A tombstone rather than a plain removal on BOTH prongs of the discriminator the precedent changesets state (objectui#5941, objectstack-ai#7526), **in the form objectui#7678 amended it to: a `?: never` tombstone is available only on a SURVIVING CARRIER — `KanbanColumn` survives this retirement, while a whole exported type name has no carrier and is removed outright — and on such a carrier it is used when either prong holds:** (1) it steers authors to a named live replacement KEY, or (2) it keeps loud a key the docs taught as working. Both hold here: The site's own parenthetical named this card as its open correction; that parenthetical is now discharged rather than repeated. ### `complex.ts` — the `ChatbotSchema` dark-keys block before: > (`mobile.ts`, objectui#5941 / objectstack-ai#7526 / objectstack-ai#7678: a tombstone exists to steer authors to a named live replacement KEY, or to keep loud a key the docs taught as working) after: > (`mobile.ts`, objectui#5941 / objectstack-ai#7526 / objectstack-ai#7678: **a `?: never` tombstone is available only on a SURVIVING CARRIER — `ChatbotSchema` survives, while a whole exported type name has no carrier and is removed outright — and on such a carrier it is used when either prong holds:** it steers authors to a named live replacement KEY, or it keeps loud a key the docs taught as working) ### `complex.ts` — the `triggerIcon` tombstone (the separable commit) before: the `Why a tombstone and not a deletion` section ended at the deleted-vs-tombstoned table and went straight to `Pinned in ...`. No prong, no discriminator, no carrier. after, added between them: >⚠️ That `tsc` contrast is the MECHANISM, not the discriminator. It applied equally to objectui#4919 and objectstack-ai#5942, which were removed outright, so it cannot be what separates the routes. What decides the route is this package's retire-vs-remove discriminator in its amended form (objectui#7678, the same wording the `chatbot` tombstones above carry): a `?: never` tombstone is available only on a SURVIVING CARRIER — `FloatingChatbotConfig` survives this retirement, while a whole exported type name has no carrier and is removed outright — and on such a carrier it is used when either prong holds. PRONG 2 is the one that holds here: the key was advertised in the 3.3.0 release record (2026-04-17, the "New ChatbotSchema floating fields" entry, which names `triggerIcon` among `FloatingChatbotConfig`'s options) and its published JSDoc promised `@default 'MessageCircle'` — the docs taught it as working. Prong 1 does NOT hold: there is no replacement key, which is why the guidance below names the trigger's own markup instead. ### `complex.ts` — the `displayMode` tombstone ⛔ Unchanged. It is the site that already carried the precondition and it was the model every other site was matched to. ### `mobile.ts` — the `MobileOverrides` retirement note The prong-1 argument is kept verbatim — the removal is settled and is not re-argued. Added after it: > That one line states prong 1 alone. The discriminator's full, amended form (objectui#7678) is stated in `complex.ts` beside the `chatbot` tombstones: a `?: never` tombstone is available only on a SURVIVING CARRIER, and on one it is used when EITHER prong holds — a named live replacement KEY, or keeping loud a key the docs taught as working. Neither branch reaches this retirement: an exported type name that goes whole has no carrier to host a `?: never` member at all, and where a member did have one, prong 1 fails (above) and prong 2 has nothing to guard — this module has never had a `zod/` twin, so there is no mirror that could accept an undeclared key and strip it silently, which is the hazard prong 2 guards where a mirror does exist. ⛔ The route itself is settled (objectui#4919); this note states the rule it followed and does not reopen it. ### the tripwire comment before: >⚠️ TRIPWIRE: if objectui#6152 ever mints a `FloatingChatbotConfigSchema`, **this goes RED.** That is the intended signal, not a nuisance — whoever lands the mirror must add the `retirementTombstone()` half for `triggerIcon` at the same time, and flip this control rather than delete it into a vacuum. after: >⚠️ TRIPWIRE: if objectui#6152 ever mints a `FloatingChatbotConfigSchema` and wires it onto these twins as the `floatingConfig` arm, **the assertion that fires is the SHAPE PIN at the foot of this block — the one reading `shape.floatingConfig` — and NOT this line.** Measured on objectui#7678's base, arm injected on both twins and restored under a trap: a house-style non-strict `z.object` mirror reds the shape pin ONLY (2 failures, one per twin) and leaves this parse-green line GREEN, because a non-strict object accepts `triggerIcon` and strips it, so `success` stays `true`; a `z.strictObject` mirror reds both (4 failures). Either shape trips the file — that is the intended signal, not a nuisance: whoever lands the mirror must add the `retirementTombstone()` half for `triggerIcon` at the same time, and flip these controls rather than delete them into a vacuum. --- ## Stale addresses, reported and NOT repaired This card is scope-pinned, so AGENTS.md objectstack-ai#11's opportunistic citation repair does not apply. - The card body and comment `5548730153` both address the `triggerIcon` rationale as `packages/types/src/complex.ts:967`. On `72f55c9ec` that line is `ChatToolInvocation.state` prose, unrelated. The block is roughly 850 lines further down. ⛔ Not repaired here. - Every address the dispatch itself gave resolved correctly on `72f55c9ec`, including `base.ts:499` inside a `BaseSchema` body running `:70` to `:500` — verified by reading the interface's true extent (`^export interface` at `:70`, closing `}` at `:500`), not a context window. --- ## Verification Run through the shared verify lock where it is a package suite. | what | result | |---|---| | `pnpm --filter @object-ui/types run type-check` (`tsc --noEmit` + examples + `tsconfig.test.json`) | **exit 0** | | `pnpm --filter @object-ui/types run test` | **198 files / 4656 tests passed** | | `node scripts/check-changeset-presence.mjs` | **exit 0** — 3 published source files changed, 1 changeset, empty frontmatter, "declared as releasing nothing, which is the explicit exemption and a complete answer to this gate" | | `check-changeset-claims` / `-no-major` / `-fixed` / `-overwrite` / `check-pending-changeset-literals` | exit 0 | | `node scripts/check-new-cross-file-line-citations.mjs` | exit 0 — **0** new cross-file line citations | | `node scripts/check-control-bytes.mjs` | exit 0 | | `node scripts/check-governed-queue-guard.mjs --test ...` | NOT GOVERNED, 4 paths checked against 5 governed surfaces | | `eslint . --no-inline-config --format json` (whole repo, 5038 files) | 95 errors / 13202 warnings, **none in any file this branch touches**; the three changed files lint to **0 errors** | The 95 repo-wide eslint errors are pre-existing on `origin/main` (`react-hooks/static-components`, `no-console` and friends in `apps/console` and `e2e/`), untouched by a comment-only diff. ## Changeset Empty frontmatter, following the repo's own precedent for comment-only changes in published source. Comments **do** reach the emitted `.d.ts` here — the base tsconfig sets `removeComments: false`, verified — and the changeset says so explicitly, but nothing a consumer can execute or type-check against moves. --- _Generated by [Claude Code](https://claude.ai/code/session_012EpHzwH4wTy5sd7ibkD2yq)_ --------- Co-authored-by: Claude <noreply@anthropic.com>
…restating it at eight sites (objectui#9684) (objectstack-ai#9926) Part of objectstack-ai#9684 — this PR takes the live half and hands the rest back as a decision; the card stays open for it. > ## RE-DERIVED AT HEAD `baa386c4b` — one vintage, no stale sentence left standing > > Written by the implementer in the same push that created this head. ⭐ Round 5 established the rule this body follows: the whole body is ONE vintage, every figure re-derived against the head being pushed, and a sentence the review falsified is **repaired in place** rather than annotated. ⛔ Nothing is left for a banner to excuse. > > **What round 5's review falsified, and what became of it here:** > > 1. "caught only directly behind `or`, with nothing but a comma, whitespace and an opening parenthesis allowed in between" — that named a **set** while the pattern `,?\s*\(?` required an **order**. ⛔ **Repaired by moving the pattern, not the sentence** — see A below. The sentence now reads "any number of them, in any order", and it is true. > 2. "Its population is every comment in the package" — two ABUTTING comments were one block, so a drifted copy inherited its neighbour's precondition. ⛔ **Repaired in the code** — see B below. > 3. "Ablation ledger — 17 legs" beside a paragraph enumerating 18. ⛔ **Repaired by re-deriving the number from the table**, which is now 41 and is counted from the rows below rather than remembered. > >⚠️ Round 5's body also carried this sentence: "⛔ The clause pattern itself is **unchanged**; nothing was widened to make a sentence true." **That is no longer true, and round 6 reverses that choice on purpose.** The reversal and its four-axis reasoning are stated below rather than quietly dropped. Clause-②: yes ## What round 6 changed Round 5's contract review passed the direction for the fifth time and reproduced every figure the round printed — the pin, the reverse leg, the full suite, the 65-file `.d.ts` equality with both marker controls, the population at base and head, and the exact failure sets for B1, C1, C2 and D1. Standing A, standing B/③C and ③D are all **closed**. Two findings remained, both in the **silent** direction, both wordings nobody had tried. **A · the separator sentence named a SET; the pattern enforced an ORDER.** All four carriers said `3`, `iii`, `third` and `thirdly` are caught behind `or` "with nothing but a comma, whitespace and an opening parenthesis allowed in between" — a set of permitted characters. The pattern spelled that separator `,?\s*\(?`, which admits **comma, then whitespace, then parenthesis, in that order only**. So `, or ( 3 ) …` (whitespace *after* the parenthesis) and `, or ,3 …` (a comma *after* whitespace) contained nothing any published sentence forbade and passed **22/22**. ⛔ **The sentence was not patched to describe the order.** The separator is now `[\s,(]*` — the genuine set its prose always claimed — and the caught-list in all four carriers is **re-derived from the widened pattern**, 20 wordings re-measured through the pin (legs W01–W20), never hand-patched. Two properties make that safe and checkable: - `[\s,(]*` is a strict **superset** of `,?\s*\(?` — every string the old separator admits is made only of commas, whitespace and opening parentheses ⇒ ⛔ **no wording that was caught became silent.** Measured, not argued: the eight previously-caught wordings are all still caught (W09–W15, W20), and the four wordings the header declares silent are all still silent (W05–W08). - The two escapes now red (W01, W02), and so do the two further set-shaped spellings nobody had published either: `, or, (iii) …` (W03) and `, or (( 3 )) …` (W04).⚠️ Two observations the review asked to be folded in, both measured here: `, and prong-3 keeps …` is **silent** (W19) — the hyphenated spelling is not `prong 3` and ⛔ no carrier claims it is; and `, or third-party tooling keeps …` **reds** (W20) — the anchor catches a non-numbering `third` behind `or`. That second one is the **declared spurious-red direction** and is fine by design: a spurious red sends a human to read four blocks, a spurious green is the defect this pin exists for. **B · two abutting comments were ONE block, so a drifted copy inherited its neighbour's precondition.** A blank line was the only thing that ended a comment run. So an un-amended `//` statement wedged between the `ChatbotSchema` JSDoc's closing delimiter and `export interface` — no blank line — passed **22/22**, and so did an un-amended JSDoc stacked directly above that JSDoc. A human reads five statements; the pin counted four. ⭐ The pin's own prose already forbade exactly this: *"A blank line ends a run on purpose — joining across one would let a drifted note inherit a compliant neighbour's precondition and pass."* The code joined across `*/`→`//` and `*/`→`/**` anyway. ⛔ The prose was right; the **code** now says it — the same direction ③D took. A run now ends at a `*/` and starts at a change of kind.⚠️ That is a **boundary** rule, ⛔ not a rule about statements, so it re-cuts every abutting pair in the package. Re-derived at this head with the pin's own comment oracle rather than remembered: | abutting shape, no blank line | sites in `packages/types/src` | |---|---| | `*/` → `//` | **3** (`spec-ui-namespace.ts:32`, `zod/objectql.zod.ts:679`, `zod/objectql.zod.ts:1904`) | | `*/` → `/**` | **13** | | `*/` → `/*` | **1** (`field-types.ts:903`) | | `//` → `/**` | **11** (`complex.ts` ×2, `index.ts` ×5, `layout.ts`, `objectql.ts` ×2, `zod/objectql.zod.ts`) | | `//` → `/*` | **1** (`index.ts:1326`) | | **total** | **29** | The block count over the package goes **4696 → 4725** — one new cut per pair, exactly — and ⛔ no count anything asserts moves: the same **4** statements at the same four line spans (`complex.ts` 165, 1026, 1381, 1830), **9** trailing comments, **0** of them stating the rule, before and after.⚠️ **A figure in the round-5 handoff that this round could not reproduce, stated rather than quietly corrected.** The handoff recorded this census as "`*/`→`//` with no blank **0**, `*/`→`/**` with no blank **0**, `//`→`/**` with no blank **5** (`index.ts` 1085, 1129, 1170, 1224, 1428)". Measured here package-wide, those are **3**, **13** and **11**; the named 5 are the `index.ts` subset of the third row, and every site listed above was read back by eye with `cat -A` before being reported. ⇒ the fix was verified against the real 29, ⛔ not against the 5. ## What the card asked for, and what the tree says now The card measures one live defect on PR objectstack-ai#9682's head `dce4a74a1`: the sixth statement of the retire-vs-remove discriminator, the `GestureConfig` note in `mobile.ts`, did not carry the amended surviving-carrier precondition.⚠️ **That instance is already repaired, and it was repaired before objectstack-ai#9682 merged.** objectstack-ai#9682 landed as `5f8190c8cc98409e65400ff24adfb805b80a3ffc` at 2026-09-17T11:56:43Z — thirty minutes after the card was filed — and its merged diff amends the `GestureConfig` note along with the other four. Read on this branch's base `fc12bc8c6`, that note states the amended rule in full. ⭐ **The card's class is live anyway, at two sites the card did not name.** Re-derived on `fc12bc8c6`, which is still this branch's merge-base with `origin/main` at this head: | file @ `fc12bc8c6` | retirement it argues | carried the precondition? | in the card's six? | |---|---|---|---| | `complex.ts` block opening at :165 | `KanbanColumn.color` | yes | yes | | `complex.ts` block opening at :1026 | `ChatbotSchema` dark keys | yes | yes | | `complex.ts` block opening at :1381 | `displayMode` | yes | yes | | `complex.ts` block opening at :1830 | `triggerIcon` | yes | yes | | `mobile.ts` block opening at :74 | `MobileResponsiveConfig` | ⛔ **no** | ⛔ **no** | | `mobile.ts` block opening at :122 | `MobileOverrides` | yes | yes | | `mobile.ts` block opening at :293 | `GestureConfig` | yes (by `5f8190c8c`) | yes | | `mobile.ts` block opening at :371 | `MobileComponentConfig` | ⛔ **no** | ⛔ **no** Every address above is bound to `fc12bc8c6`; none of them is carried into any file in this diff. The same population read at this head is **four**, all in `complex.ts` — which the pin asserts rather than this table. So the population was **eight**, not six, and the amendment reached five of eight. ⇒ the card's own argument holds harder than it claimed: the failure is not "one site was missed", it is "the instrument that enumerates the sites is itself a phrase grep, and it undercounts". ## The widened scan, and its controls ⛔ The card's six were not treated as a closed list. Scans, all bound to `fc12bc8c6`: - **Concept scan, whole tree** (not just the two files, not just the package): `git grep -inE "steers? authors to|named live replacement|keeps? loud|kept loud|taught as working|surviving carrier|no carrier"` over every tracked file. Lit control: it fires well outside the two files — `packages/app-shell/.../FlowNodeConfigField.entryCondition.test.tsx`, `packages/types/src/__tests__/page-breadcrumbs-refusal-8871.test.ts`, three more test files, `scripts/check-governed-queue-guard.mjs`, and **five** `.changeset/*.md` bodies (`4919`, `5942`, `7519`, `7678`, `9183`) — so its zero elsewhere is a reading, not a silent probe.⚠️ Rounds 1–5 printed "four `.changeset/*.md` bodies" here; re-derived at `fc12bc8c6` in this push it is **five**, and the list is now named rather than counted from memory. - **Route-argument scan**, for paraphrases that state the rule without any of those phrases: `git grep -inE "rather than (a )?tombston|rather than kept as|removed outright|outright rather than|than a plain removal|never. carcass|tombstone (exists|is available|rather)"` over `packages/types/src` excluding tests and `zod/`. This is the scan that found `MobileComponentConfig`, which paraphrases the precondition as *"There is no surviving object to hang a `never` key on"* and is invisible to every phrase the card's probe searched for. Lit controls in the same pass: it fires on `ai.ts` and on `objectql.ts`, neither of which the card names. - **Two sites outside the card's two files, reported and deliberately NOT changed**: `AIFormAssistSchema.formId` in `ai.ts` cites *"PRONG 2 of the discriminator (objectui#5941, objectstack-ai#7526, objectstack-ai#7678)"* without restating it — it is already the shape this card asks for, and it needed no edit when objectstack-ai#7678 amended the rule, which is the measured precedent for the remedy below. `ObjectKanbanSchema.allowCollapse` in `objectql.ts` argues "why a tombstone rather than a plain deletion" from the passthrough silent-keep mechanism; that is a different argument, not this discriminator, so it is a boundary case, not a ninth site. -⚠️ **A wrapping hazard the card's probe shares with any line-based grep**: `grep -inE` reads one line at a time, and this prose wraps mid-phrase. Live demonstration re-taken at this head on a sentence this PR must not disturb: `grep -c 'no silent-strip hazard for prong 2 to guard'` over `mobile.ts` prints **1**, while flattening the comment punctuation and line wrapping first prints **2** — the second occurrence wraps. The pin flattens before matching for exactly this reason. ## The change `mobile.ts` now **cites** the rule instead of restating it. The statement it cites is the `ChatbotSchema` JSDoc in `complex.ts`; each of its four retirement notes points there and keeps its own per-retirement argument — which prong holds here and why — which no shared statement can carry, exactly as the card says.⚠️ That is the statement they cite and ⛔ **not** the only one in the package: `complex.ts` states the rule at four sites, `ChatbotSchema` among three peers (`KanbanColumn.color`, `displayMode`, `triggerIcon`), and whether those four become citations too is the open decision below. Nothing is deleted into a vacuum: every prong measurement, reopen condition, spec-history note and⚠️ carve-out is kept. The `MobileComponentConfig` note keeps its own precondition as the precondition rather than dropping it, with its wording brought to the amended form — "no surviving **object**" became "no surviving **carrier**", which is the rule's own phrasing and what the pin matches. A file preamble states, once, where the rule lives and why this file cites while `complex.ts` states. ## Measurements — all re-taken on `baa386c4b` **① The `.d.ts` asymmetry the card lists as "not measured".** `mobile.ts` argues its retirements in `//` comments; `complex.ts` argues its four in JSDoc on exported members. Declaration emit treats those differently. Measured by injecting one marker into each and rebuilding the package clean, under the verify lock: | marker injected into | occurrences in the emitted declaration file | |---|---| | a `//` note in `mobile.ts` (present once in `src` in the same run) | **0** in `dist/mobile.d.ts`; per-file hash table unchanged vs the head table (**0** diff lines) | | the `ChatbotSchema` JSDoc in `complex.ts` (present once in `src` in the same run) | **1** in `dist/complex.d.ts`, **0** in `dist/mobile.d.ts`; per-file table moves **4** diff lines |⚠️ **A first attempt at these two legs measured nothing and is reported as such.** Both replacements re-emitted their own anchor, so `ablation-replace` refused the mutation ("the anchor count moved 1 -> 1, a drop of 0") and the build that followed carried **no marker at all** — a reading of `0` that would have read exactly like the real leg. ⛔ It is not counted as a measurement; the legs above are the re-run with consumed anchors, each with its `src` count printed beside its `dist` count so a zero cannot be an unplanted marker. Residual markers after the pass: **0** files in `src/`, **0** in `dist/`. ⇒ a citation costs a consumer of the published declarations **nothing** in `mobile.ts`, and would cost one a jump out of the block they are in for every site in `complex.ts`. That is the reason this PR converts one file and not the other. **② What a `.d.ts` consumer's reading changes to: nothing.** Clean full rebuilds in one locked pass (`rm -rf dist` + `pnpm --filter @object-ui/types build`, then per-file `sha256sum` over `dist/**/*.d.ts`), never incremental: this head emits **65** declaration files, **130** files in `dist` total; with this branch's base `mobile.ts` (blob `5e3ad63df`) swapped in it emits **65**; the per-file hash tables differ by **0** lines and the set-hash is identical (`6774b4db26140485`). A third clean build after restoring the head file reproduces the first table exactly — **0** diff lines — so the equality is ⛔ not a stale-`dist` artefact. The instrument is the same one that scores 1 and moves the table by 4 lines for the `complex.ts` injection above, so it is ⛔ not a probe that cannot fire. **③ Reverse verification of the pin, at this head.** Fix committed first, then `mobile.ts` alone written back to the base blob under a `trap ... EXIT INT TERM`, the pin re-run, then restored with `git checkout HEAD -- ABSOLUTE_PATH` (⛔ never a bare `git checkout --`, which restores from the index): - **this head: 22 passed / 22.** - **base `mobile.ts` swapped in: 8 failed / 14 passed.** The precondition assertion and the outside-`complex.ts` assertion both name exactly the four base blocks — `mobile.ts` blocks opening on lines **74**, **122**, **293** and **371** — found by an instrument that was not told where to look; the four citation assertions and both `mobile.ts` statement assertions fire alongside them. ⭐ Unchanged from round 5, which is the point: the boundary change re-cut 29 pairs and moved this reading by nothing. - Landing proven by a changed blob (`1d33aebaece0` → `5e3ad63dfb29`) and by an on-disk count of a base-only phrase, ⛔ never by an exit code. Restore verified by blob hash (`1d33aebaece0` back to HEAD), an empty `git diff HEAD` and an empty `git status --porcelain`. ## The pin `packages/types/src/__tests__/tombstone-discriminator-agreement-9684.test.ts` derives the population of rule statements from the source at run time. **Six `describe` blocks, 22 assertions at this head** — read off the file (16 `it` / `it.each` declarations, two of them `.each` over 4 cases). It fails when 1. any comment in this package states the rule without its surviving-carrier precondition **in the rule's own phrasing**, 2. any file in this package **outside `complex.ts`** states the rule at all — a prong, a clause, anything that matches its statement markers, in a comment of any form, including one riding on a code line and including one glued directly against a compliant neighbour, 3. any of `mobile.ts`'s four notes stops citing `ChatbotSchema`, or the citation target stops stating the rule, 4. `complex.ts` states the rule at any number of sites other than the recorded four, or at a site the roster does not name, 5. one of those four carries a clause its peers do not, and 6. the pin itself quotes the rule it guards. Its population is every comment in the package. A comment run ends at a blank line, at a `*/` and at a change of comment kind, so two abutting comments are two blocks; a comment riding on a code line is its own one-line block. It carries its own controls: a synthetic un-amended statement that must be flagged, a synthetic amended one that must not, prose that merely mentions a tombstone that must stay out of the population, and two **vacuity controls** — the four published statements in `complex.ts` must still be found, and the roster must still resolve to four distinct blocks, so a marker that stops matching reds instead of quietly emptying every other assertion. ⛔ What it cannot do is named in its header rather than hidden: a NEW paraphrase past every marker is invisible to it, exactly as `MobileComponentConfig` was to the card's grep. "Is this span a comment" is answered by `scripts/js-comment-mask.mjs`, never by a private regex. ## Ablation ledger — 41 legs, every one restored and proven ⛔ No sentence above about what the pin catches is asserted; each is a hypothesis run through the pin. **41 = 6 pre-fix + 21 separator + 4 adjacency + 5 regression + 1 reverse + 4 `.d.ts`** — counted from the rows below, ⛔ not remembered. Every source mutation went through `ablation-replace` (literal anchor that must hit a declared number of times, on-disk landing proven by a **changed blob**, restore proven by blob equality plus an empty `git diff HEAD`). Working tree after every batch: `git status --porcelain` **0 lines**. ⭐ **Six mutations were REFUSED by the tool and measured nothing** — their replacements re-emitted their own anchor, so the anchor count did not drop and `ablation-replace` exited non-zero before any test ran. They are named here rather than silently re-run: the first attempts at E4, E5, B1, C1, C2 and the two `.d.ts` marker legs. ⛔ None is counted as a leg; each was re-run with an anchor the replacement consumes, and those re-runs are the rows below. That is the tool doing the job it exists for — a replacement that does not land produces a green that reads exactly like a pass. ### Pre-fix — the two escapes reproduced at `e39b1a8da`, the head round 5 reviewed | leg | mutation | mutated blob | pin | |---|---|---|---| | E1 | `, or ( 3 ) …` on the `ChatbotSchema` statement | `3dd7dc9432a9` | 22/22 — **silent** | | E2 | `, or ,3 …` on the same statement | `7858d7d5f1b5` | 22/22 — **silent** | | E3 | un-amended `//` statement between the `ChatbotSchema` JSDoc's `*/` and the declaration | `2e66e693f106` | 22/22 — **silent** | | E4 | un-amended JSDoc stacked directly above that JSDoc, no blank line | `deb6c5d5fbe7` | 22/22 — **silent** | | E5 | **control**: the same stacked JSDoc **with** a blank line | `7568f7ec28b3` | **4 failed** | | E6 | un-amended `//` statement above that JSDoc, no blank line | `46da257f395e` | **2 failed** | E1 and E2 reproduce the review's blobs exactly. E5 is what says the instrument was not simply blind: separate the blocks by one blank line and it reds 4. ### Separator wordings — all 21 re-measured at this head, the caught-list re-derived from the widened pattern | leg | clause appended | blob | pin | published as | |---|---|---|---|---| | W01 | `, or ( 3 )` | `3dd7dc9432a9` | **1 failed** | caught | | W02 | `, or ,3` | `7858d7d5f1b5` | **1 failed** | caught | | W03 | `, or, (iii)` | `043b990f235c` | **1 failed** | caught | | W04 | `, or (( 3 ))` | `930694c9d41a` | **1 failed** | caught | | W05 | `, and (iii)` | `2a16978c2c0a` | 22/22 | silent | | W06 | `, or else (iii)` | `87ab694c7eca` | 22/22 | silent | | W07 | `; and, third,` | `d7e68454cc5c` | 22/22 | silent | | W08 | `, or: (iii)` | `4f39e633dc00` | 22/22 | silent | | W09 | `, and (3)` | `7ac7178b7d6d` | **1 failed** | caught | | W10 | `, and prong 3` | `97e341d72bcf` | **1 failed** | caught | | W11 | `; and the third prong` | `d3a2e2cf7f24` | **1 failed** | caught | | W12 | `, or thirdly` | `04e633935e3f` | **1 failed** | caught | | W13 | `, or else (3)` | `1f6a3808f51f` | **1 failed** | caught | | W14 | `; or 3)` | `607141edf530` | **1 failed** | caught | | W15 | `, OR (III)` | `ad27035ae7dc` | **1 failed** | caught | | W16 | `, or—(iii)` (em dash) | `bb6083c2d4f2` | 22/22 | silent | | W17 | `, and third,` | `3483d58c0a7e` | 22/22 | silent | | W18 | `, or` (numbers nothing) | `8933075b669b` | 22/22 | silent | | W19 | `, and prong-3` | `c62d60c5a29a` | 22/22 | silent | | W20 | `, or third-party tooling` | `e7c5c7c8a2af` | **1 failed** | caught — declared spurious red | | W21 | `, or` / `(iii)` split across a line break | `04b3bc24932c` | **1 failed** | caught, because markers match the FLATTENED block | Every red names one assertion: *the `ChatbotSchema` statement carries exactly its recorded clauses*, listing `a-prong-beyond-the-two` present at one site and absent at its peers. ⭐ W05's blob `2a16978c2c0a`, W21's `04b3bc24932c`, W14's `607141edf530` and W15's `ad27035ae7dc` are the same blobs rounds 4 and 5 printed for the same mutations — an independent cross-check that these are the review's legs and not lookalikes. ### Adjacency — the same four mutations as E3–E6, re-run against the fixed pin ⭐ **The blobs are identical to the pre-fix rows**, so nothing about the mutation changed; only the pin did. | leg | mutation | blob | pin before | pin after | |---|---|---|---|---| | X1 | `*/` → un-amended `//` statement → declaration | `2e66e693f106` | 22/22 **silent** | **5 failed** | | X2 | un-amended JSDoc stacked above, no blank line | `deb6c5d5fbe7` | 22/22 **silent** | **4 failed** | | X3 | **control**: the same, **with** a blank line | `7568f7ec28b3` | **4 failed** | **4 failed** | | X4 | un-amended `//` statement above the JSDoc, no blank | `46da257f395e` | **2 failed** | **4 failed** | ⭐ X2 and X3 now fail **identically** — that is the whole fix: a blank line no longer decides whether a drifted copy is seen. X4 was already caught and still is; it now reds through the substantive assertions (exact count, roster names, shared clauses, precondition) instead of only through the two `kind === 'jsdoc'` assertions, and the **11** real `//`→`/**` sites in the package are untouched by it — measured as the unchanged population above (4 statements, 9 trailing, 0 stating the rule) and by the pin's own 22/22 at this head. ### Regression — the legs the earlier rounds closed, re-run to show the boundary change moved none of them | leg | plant | blob | pin | |---|---|---|---| | B1 | fully amended statement in `data-display.ts` | `f4e7332729c7` | **1 failed**, and exactly one: *no file outside `complex.ts` states the rule AT ALL* | | B2 | same, precondition removed | `1b078ce7682d` | **2 failed**: that assertion plus the precondition assertion | | C1 | round 4's exact wording appended to the `GestureContext` line in `mobile.ts` | `2ce74bc7ceb5` | **4 failed** | | C2 | amended statement appended to the `ChatbotSchema` declaration line | `396d674178ed` | **2 failed**: both `complex.ts` roster assertions | | D1 | **vacuity control**: every statement marker replaced with one that matches nothing | `a8152fa73877` | **9 failed / 13 passed**, including *both* vacuity controls and all four roster assertions | ⇒ a dead marker cannot print the same quiet zero B1's assertion prints when the tree really is clean. All five readings are identical to round 5's. ### Reverse and `.d.ts` — 5 more The reverse leg (③ above) and the four `.d.ts` legs: base-`mobile.ts` swap, third-build reproduction, the `ChatbotSchema` JSDoc marker control, the `mobile.ts` `//` marker control. ## Why this shape and not the others — the four axes **Option A — amend the two stragglers in place** (the shape the card's remedy section refuses). **Option B — one block, every site cites it.** **Option C — cite where a declarations reader pays nothing, state where it pays, pin the agreement** (this PR). **Option D — pin only, leave all eight statements.** **实际业务需求.** Measured, not assumed: the rule is stated in six of this repo's changeset bodies — `4919`, `5942`, `7519`, `7678`, `7703` and this card's own `9684`, the list that marker sweep prints rather than a remembered count, re-derived at this head — and it was amended once (objectstack-ai#7678), an amendment that reached five of eight sites. So the recurrence is real. But the cost actually paid was a reader getting the WRONG rule, not an author paying for a slow edit ⇒ agreement is the demand, fewer copies is a means. And the consumer side is asymmetric by measurement ①: a `.d.ts` reader has never been able to read `mobile.ts`'s four. A remedy that charges that reader a jump to fix a problem they do not have fails this axis, which is what separates C from B. **项目长远合理性.** N statements of one rule is the N-dialects shape AGENTS.md #0.1 refuses for metadata, and prose inherits the reasoning: one contract beats N. A is the patch that fails it outright — it grows N to eight-agreeing and makes the ninth amendment a nine-site edit. B is right in principle and wrong on the published face, because `complex.ts`'s statements ARE part of what the package publishes. C takes the principle exactly as far as the contract face allows and says so in the file. D leaves the structure that produced this card intact. **防 AI 写代码犯错.** This card exists because an agent applied an amendment at five of eight sites and nothing went red — the declaration was not enforced. The pin is the 声明即强制 half, and round 6 is that half applied to itself for the third time: the pin's prose promised a reach its code did not have, and the **code** was moved to the prose rather than the prose trimmed to the code (scope B, population ③D, and now the block boundary).⚠️ Its remaining reach is named rather than implied: enforcement is real for every clause the roster records and for every statement any marker matches; a clause worded past all of the markers is silent, and that silence is stated as the pattern rather than summarised. ⛔ No consumer-side tolerance anywhere: nothing here accepts a looser spelling, and the pin refuses by name. **创业阶段不扩散需求 —⚠️ and this is where round 6 reverses round 5.** Round 5's body argued: "⛔ the clause pattern was **not** widened to make a sentence true, because widening it would have owed a re-derived and re-published caught-list, which is capability growth bought to retire a prose defect." ⛔ **That reasoning was wrong, and it is withdrawn here.** The 创业阶段 axis governs *declared capability surfaces with no pull* — an authorable key, an exported symbol, a published spelling. `a-prong-beyond-the-two` is none of those: it is an internal test guard, it publishes nothing (measurement ②), and widening it is a **contract tightening**, which the 防 AI 写代码犯错 axis prefers outright (契约收紧优于消费端宽容). ⇒ the earlier reading treated "more characters in a regex" as capability growth, and that is a category error. The cost round 5 was unwilling to pay — a re-derived and re-published caught-list — is paid in full in this push, by measurement, 20 wordings through the pin. ⭐ And the pin's own header already carried the instruction: *"when you widen a pattern, RE-DERIVE this paragraph from the pattern rather than editing the sentence that summarises it."* Round 6 follows it instead of quoting it. The rest of the axis holds unchanged: no staged window, per the 2026-08-27 ruling — `mobile.ts` converts in this one change, with no second spelling left behind and no grace period. ⇒ **C.** A and D are refused on axis 2 and 3 respectively; B is refused only for `complex.ts`, and only on evidence that did not exist before measurement ① was taken. ##⚠️ Decision box — the half this PR does NOT take `complex.ts` still states the rule at four sites, all published. Converting them is the trade the card declines to decide, and measurement ① is what makes it decidable: - **Convert them too** (cite `ChatbotSchema` from the other three): the next amendment becomes a one-site edit, and every `.d.ts` consumer reading `KanbanColumn.color`, `displayMode` or `triggerIcon` must jump to `ChatbotSchema` to learn why the key is a tombstone. Cost falls on a consumer who is not the beneficiary. - **Leave them** (this PR): four sites to amend instead of eight, and the pin holds those four to a recorded clause roster, so an amendment landing at one of them reds at the other three — for every clause the roster names, measured by legs W01–W04 and W09–W15.⚠️ A clause worded past all of the roster's markers is still silent, measured by legs W05–W08 and W16–W19; that is the reach, and it is stated in the test header as the pattern rather than as a summary of it. Recommended fallback if nobody wants to spend a declarations reader's attention. -⚠️ Either way, one thing is unresolved and is NOT fixed here because fixing it edits published JSDoc: the canonical block does not say it is canonical. `ChatbotSchema`'s JSDoc attributes the quoted phrase to `mobile.ts`, which is still accurate, but a reader landing there is not told that this is the one statement the others cite. Naming it belongs with whichever option is chosen (objectui#9930 holds it). ## `check:changeset-claims` asked, so: both pending claims survive this diff The report-only gate names two pending changesets that describe `mobile.ts`. `7580-responsive-vocabulary-rehome.md` is about where `BreakpointName` is declared — untouched. `7703-chatbot-dark-keys-retired.md` quotes *"no silent-strip hazard for prong 2 to guard"* and attributes it to `mobile.ts`; that sentence is still in `mobile.ts` **twice** at this head — the count a flattening reader prints, ⛔ not the `1` a line-based `grep -c` prints, one occurrence being wrapped — and this round's `mobile.ts` diff does not touch it. Neither claim is born false. ## Verification — every figure below taken on `baa386c4b` Heavy runs serialized through `scripts/pm/os-verify-lock.sh` in the sibling checkout (slot `objectui-9684-r6`); exit codes were captured **before** any pipe, each into its own variable rather than read off a chained command. | run | result | |---|---| | `pnpm --filter @object-ui/types build` (clean, seven times — five measuring legs plus two during the refused marker attempts) | exit 0 · **130** files in `dist` · **65** `.d.ts`, set-hash `6774b4db26140485`, reproducible across builds | | `pnpm exec vitest run packages/types/` (locked) | exit 0 · **208 files / 4838 tests passed** | | the pin alone | exit 0 · **22 passed / 22** | | `pnpm --filter @object-ui/types type-check` | exit 0 | | `pnpm --filter @object-ui/types lint` | exit 0 · 0 errors, 290 pre-existing warnings | | `node scripts/check-changeset-presence.mjs` | exit 0 · empty frontmatter accepted as "releases nothing" | | `check-changeset-no-major.mjs` / `-fixed.mjs` / `-claims.mjs` / `check-pending-changeset-literals.mjs` | exit 0 | | `node scripts/check-control-bytes.mjs` | exit 0 · 8000 tracked text files scanned, 85 binary skipped | | `node scripts/check-new-cross-file-line-citations.mjs` | exit 0 · **0 new** citations at `baa386c4b`, enforcement report-only | | `node scripts/check-test-path-roots.mjs` | exit 0 · 2159 filesystem calls in 458 of 3290 test files | | `node scripts/check-hand-rolled-comment-mask.mjs` | exit 0 · no carrier outside DEBT | | `node scripts/check-comment-mask-corpus.mjs` | exit 0 · 5129 files, 1 disagree, within the residue objectui#7882 holds open | | `node scripts/check-type-check-coverage.mjs` | exit 0 · 43/43 packages compile their tests; the pin is inside the program | | `node scripts/check-governed-queue-guard.mjs --test` on the three paths | **NOT GOVERNED** — 3 paths checked against 5 governed surfaces, none matched |⚠️ Lint scope: this repo's `pnpm lint` is `turbo run lint`, per package. All three changed files live in `packages/types` (plus one `.changeset/*.md`, which no lint rule reads), and that package's own `lint` script covers them, so nothing about this diff is outside what ran — no narrowing was needed and none is claimed. ⛔ NOT MEASURED, stated rather than implied: CI's final state on this head — the report is filed when the local runs finish, ⛔ not after waiting for CI to converge. Round 5's head was fully green (33 success / 3 skipped / 0 red, 36 of 36 returned); ⛔ that is a reading about `e39b1a8da` and says nothing about this one. ## Acceptance notes Out-of-scope observations, **noted and not filed** — none is a reproducible defect, a broken declared contract, or a trap that makes a runtime refuse authored metadata: - `noted, not filed:` the round-5 handoff's abutting-comment census (`*/`→`//` 0, `*/`→`/**` 0, `//`→`/**` 5) does not reproduce package-wide; measured here it is 3, 13 and 11, the named 5 being the `index.ts` subset of the third row. It is a figure in a handoff, not a defect in this tree, and the fix was verified against the re-derived 29. Carrier: this body and the round-6 report, which both print the instrument. - `noted, not filed:` the card's measured position table is stale in a way that cost this run a premise check — it was taken on an open PR's head and that PR moved before merging. Carrier: whoever writes the next finding from an in-seat review; no PR or person is currently on this file. - `noted, not filed:` `AIFormAssistSchema.formId` in `ai.ts` already uses the citation form this card proposes and survived objectstack-ai#7678 untouched. It is evidence, not a defect. Carrier: the decision box above, if option B is taken. - `noted, not filed:` `ObjectKanbanSchema.allowCollapse` in `objectql.ts` argues the tombstone route from the passthrough mechanism rather than from this discriminator. Both arguments are sound; nothing disagrees. Carrier: none. - `noted, not filed:` the round-4 review's suggested one-sentence fix for A was itself one step wide (`, and (3) …` is caught, because `(3)` carries no `or` anchor). Round 5's seat has since corrected its own handoff on this point. Carrier: this body and the round-5 record, which both say so. Labels: ⛔ **this round wrote none.** `needs:contract-review` is the seat's to hang or clear; the seat re-hangs it when this head moves, and this push neither hangs, removes nor waits on it.⚠️ **A standing rules conflict, flagged and not silently resolved.** This round's dispatch names the PR body re-stamp as an owed item, while the standing os-dev clause says the implementer writes the body once, at PR creation, and never `PATCH`es it. The conflict is with the maintainer as **objectui#9976** and is ⛔ unresolved. This round follows the dispatch, exactly as round 5 did, and says so here rather than choosing a side quietly.⚠️ **Provenance, restated as prose rather than left to a footer block.** A `PATCH` to this body downgrades a session-URL footer to the bare form and unconditionally appends a second footer, so the durable carrier is this sentence: this round was implemented by `session_01Xm4WFhEe5mwcgyqHjxR2hn`, whose session URL is `https://claude.ai/code/session_01Xm4WFhEe5mwcgyqHjxR2hn`. The body sent in this edit carries no trailing footer, so the platform's append leaves exactly one. --- _Generated by [Claude Code](https://claude.ai/code)_ --------- Co-authored-by: Claude <noreply@anthropic.com>
…der` key (objectui#7353) (objectstack-ai#10522) Fixes objectstack-ai#7353 Clause-②: yes — the ruling removes a declared member from a published prop type (`ObjectPivotTable` is exported from `@object-ui/plugin-dashboard`) and from `ObjectDataTableSchema` on both faces. This carries out ruling 5809008870 (ADR-0049 enforce-or-remove, remove arm): - The three `dataProvider: widgetData` writes are deleted. - The two typed declarations are replaced by **retirement tombstones**, which refuse the key and point at `objectName`. - No reader is added. Round 2 applies contract review 5828182277 (FAIL at `35624634f`). That review found that the bare deletion left an authored `dataProvider` absorbed silently. It also found that the changeset described an unreleased `@object-ui/types` member as if it were published. ## What changed | Site | Released 17.6.0 | This PR | |---|---|---| | `DashboardRenderer`, table arm (`object-data-table` node) | writes `objectName` and `dataProvider` | writes `objectName` only | | `DashboardGridLayout`, table arm (`data-table` node) | writes `objectName` and `dataProvider` | writes `objectName` only | | `DashboardGridLayout`, pivot arm (`pivot` node) | writes `objectName` and `dataProvider` | writes `objectName` only | | `ObjectPivotTableProps['schema']` (prop type of the exported `ObjectPivotTable`) | `dataProvider?: { provider: string; object?: string }` | `dataProvider?: never`, a tombstone. There is no zod face: neither `object-pivot` nor `PivotTableSchema` has a mirror. | | `ObjectDataTableSchema`, TS interface (`@object-ui/types`) | not released (enters with objectui#6576, changeset still pending) | `dataProvider?: never`, a tombstone | | `ObjectDataTableSchema`, zod mirror (`@object-ui/types/zod`) | not released | `dataProvider: retirementTombstone(...)`, which refuses the key by name. Its message says to write `objectName`. | I measured the released column with `npm pack` of `@object-ui/types@17.6.0` and `@object-ui/plugin-dashboard@17.6.0` (both are `latest`), using a word-bounded grep: - **types 17.6.0**: 0 files name `dataProvider` and 0 name `ObjectDataTableSchema`. The control, `DashboardSchema`, is found in 4 files. An unbounded grep also finds one `CHANGELOG.md` line, but that is the `MetadataProvider` substring trap. - **plugin-dashboard 17.6.0**: `dist/ObjectDataTable.d.ts` and `dist/ObjectPivotTable.d.ts` both declare `dataProvider?`, and `dist/index.js` carries 3 `dataProvider: ` writes. The changeset is `.changeset/7353-retire-widget-dataprovider.md`. It declares `@object-ui/plugin-dashboard` minor with a BREAKING body, and `@object-ui/types` minor, per AGENTS.md §9. It is written against released 17.6.0: the published narrowing is plugin-dashboard's, and no released `@object-ui/types` validator changes verdict. **Pre-edit re-grep (H1).** I ran a word-bounded `dataProvider` grep over every tracked file at base `660d31185`. It left out the `const dataProvider = ...provider` locals in calendar, gantt, map, tree and core's `record-source` test, which triage ruled unrelated, and the `apps/console` comment about them. It found: - the three writes and the three declarations at the sites the dispatch named; - one comment in `ObjectPivotTable`; - two fixtures in `objectql-union-arms-7363.test.ts`. It found no reader, no doc and no README that uses the key. `@objectstack/spec` declares neither `object-data-table` nor `dataProvider`. ## objectui#4357 question (H2): the key never reached a DOM attribute A one-off probe, not committed, rendered all three producer paths for real on base `660d31185`. It listed every attribute on every element and spied on `console.error`: | Render | Elements | `dataprovider` / `data-provider` attributes | React unknown-prop warnings naming it | |---|---|---|---| | renderer, table | 68 | 0 | 0 | | grid, table | 31 | 0 | 0 | | grid, pivot | 23 | 0 | 0 | | positive control: a div with the same object spread onto it | 2 | 1 (`dataprovider`) | 1 | This change does not close any objectui#4357-class leak. ## What the zod mirror does with an authored `dataProvider` (H3) - **Bare deletion, measured at `35624634f` (round 1).** `ObjectDataTableSchema` extends the `.passthrough()` `BaseSchema`, so an authored `dataProvider` was kept on the parsed value and checked by nothing, whether well-formed or malformed. The TS face has `[key: string]: any`, so authoring the key still compiled. That was the same silent no-op the card exists to end. - **Tombstone, at this head.** A well-formed value and a malformed value are both refused **by name**, at path `dataProvider`, with code `invalid_type`. The message names `objectName`. The refusal also reaches authors through `safeValidateSchema`. An undeclared key is still accepted and kept (control). On the TS faces, authoring `dataProvider` is a compile error on both carriers. - **Released terms.** `@object-ui/types@17.6.0` declares neither the schema nor the key, so no released validator's verdict moves. `ObjectDataTableSchema` ships for the first time with `dataProvider` already refused. **Why a tombstone rather than a deletion.** I used the repo's retirement discriminator: objectui#5941 and objectstack-ai#7526, as amended by objectui#7678, stated on `KanbanColumn.color` in `packages/types/src/complex.ts`. A `?: never` tombstone is available only on a surviving carrier. On such a carrier it is used when either prong holds: 1. it steers authors to a named live replacement key; 2. docs taught the key as working. Here: - Both carriers survive: `ObjectDataTableSchema` and `ObjectPivotTableProps['schema']`. - Prong 1 holds: `objectName` is the key both widgets read. - Prong 2 does not hold: no doc, README or CHANGELOG ever taught the key. A tombstone refuses a key and reads nothing, so the ruling's "no reader is added" still holds. ## Hand-off to the spec lane (`packages/types`) Triage note 5548497098 and the ruling put the `packages/types` half in this PR instead of a separate card. For the `domain:spec` lane: - `ObjectDataTableSchema` is still unreleased. Its `dataProvider` member changes from a typed optional object to a retirement tombstone, on the TS face and the zod face. - No other member moves. - **Union-arms fixture triage.** The "with its keys" fixture drops `dataProvider`, because the key is now refused. The rejection row that probed `dataProvider.provider` is removed, not respelled, because it pinned the retired typed declaration. The by-name refusal of the key now lives in the retirement pin below. The arm is still probed by name through `searchable`. ## Pins **`packages/plugin-dashboard/src/__tests__/widgetDataProviderRetired-7353.test.tsx`** - It records every node handed to `SchemaRenderer` and then renders it with the real renderer. It checks: - the `DashboardRenderer` `object-data-table` node, and the `data-table` node that widget renders next; - the `DashboardGridLayout` `data-table` node and `pivot` node. - Each node must have no `dataProvider` and must keep `objectName` (control). - The widget must still fetch through `objectName` (control). - Type level: `ObjectPivotTableProps['schema']['dataProvider']` and `ObjectDataTableProps['schema']['dataProvider']` must both be exactly `undefined`, which is how a `?: never` tombstone reads. `objectName` must stay `string | undefined` (control). - `@ts-expect-error` on authoring `dataProvider` on both prop types, with an undeclared key compiling without a directive (control). - `ObjectDataTableProps` reads `@object-ui/types` through the built `.d.ts`. **`packages/types/src/__tests__/object-data-table-dataprovider-retired-7353.test.ts`** - The TS face must read as `undefined` (tombstone), with `objectName` live (control). - `@ts-expect-error` on authoring both a well-formed and a malformed value, with an undeclared key compiling (control). - The zod face must refuse both a well-formed and a malformed value by name (path `dataProvider`, `invalid_type`, message names `objectName`), including through `safeValidateSchema`. - An undeclared key must still be accepted and kept, and a node without `dataProvider` must validate (controls). ## Red on the earlier trees, green on the head **Node pins on base `660d31185` (round 1).** 3 failed and 1 passed. Each failure was `expected [...] to not include 'dataProvider'`. **Reverse verification at `511316a02`.** A trap-guarded script put the five source files back from each earlier tree and kept the pins. Each leg rebuilt `@object-ui/types` and ran the three pin files and both type-checks. **Leg A: `35624634f` (bare deletion).** On disk there were 0 tombstones and 0 writes, and the dist had 0 tombstones. - vitest: 3 failed, 16 passed. The failures were the zod well-formed, malformed and `safeValidateSchema` cases (`expected true to be false`). - types type-check: exit 2. `TS2344` on the tombstone `Equal` line, plus `TS2578` unused directive on both authoring lines. - plugin-dashboard type-check: exit 2. `TS2344` on both `Equal` lines, plus `TS2578` on both authoring lines. - The controls and the node pins stayed green. **Leg B: `660d31185` (original base).** On disk there were 0 tombstones and 3 writes. - vitest: 6 failed, 13 passed. The failures were the three node pins, the zod well-formed case (accepted), the zod malformed case (refused at `dataProvider.provider` instead of at the key: `expected [] to have a length of 1`), and the `safeValidateSchema` case. - types type-check: exit 2. `TS2344` on the `Equal` line, plus `TS2578` on the well-formed authoring line. The malformed line was already an error under the typed member, so its directive held. - plugin-dashboard type-check: exit 2 with 4 errors, as in Leg A. - The controls stayed green. **Restore, after each leg and at exit.** `git checkout HEAD --` on absolute paths. All five files were hash-equal to their HEAD blobs, `git diff HEAD` was 0 bytes and `git status` was clean. `@object-ui/types` was rebuilt, and the dist tombstone hits were 1. ## Gates (at head `511316a02`) - **Tests.** `pnpm exec vitest run --maxWorkers=2 packages/plugin-dashboard/ packages/types/ packages/plugin-tree/src/ObjectTree.schemaTyped-8655.test.ts packages/react/src/hooks/__tests__/navigationOverlayConsumers.onRowClickArity-9357.test.ts`: `Test Files 363 passed (363)`, `Tests 6442 passed (6442)`, lock `VERDICT command-exit 0`. - **Type-check.** `pnpm --filter @object-ui/types --filter @object-ui/plugin-dashboard run type-check`: both full chains, including `tsc -p tsconfig.test.json`, lock `VERDICT command-exit 0`. This ran after building the plugin-dashboard dependency closure (12 `build: Done`). - **Changeset gates**, exit 0: - `check-changeset-presence`: "8 source file(s) of 2 released package(s) changed, and this change declares 1 changeset(s)". - `check-changeset-no-major`, `check-changeset-overwrite`, `check-changeset-fixed` and `check:pending-changeset-literals`. - `check:changeset-claims` is report-only. - **Citation and byte gates**, exit 0: `check:new-line-citations` (`VERDICT new-cross-file-line-citations: 0 new citation(s)`) and `check:control-bytes`. - **Mock and test-root gates**, exit 0: `check-vi-mock-specifiers`, `check-vi-mock-inherit`, `check-vi-mock-override-shape` and `check-test-path-roots`. - **Types-surface and doc gates**, exit 0: - `check:spec-symbols`, `check:designer-field-key-parity`, `check:handler-key-reads`, `check:element-data-source-declaration`, `check:unreferenced-sources`, `check:doc-types`, `check:doc-example-readers`, `check:prompt-keys`, `check:action-forward-parity`, `check:metadata-write-doors`, `check-type-check-coverage` and `check-lint-coverage`. - `check:component-surface-parity` is report-only, with `read-of-tombstoned-key 0`. - **Lint, measured over a proven narrowing.** `eslint --no-inline-config --format json` over the 8 touched TS files gave 8 files, 0 errors and 63 warnings. The narrowing rests on three facts: 1. `eslint --print-config` accepts all 8 files. 2. The JSON output has 8 entries. 3. `eslint.config.js` has no `parserOptions.project` or `projectService`, so linting is not type-aware and the diff cannot change a judgement on an untouched file. - **NOT MEASURED locally.** `check:readme-exports`, `check:doc-examples` and `check-skill-examples` need the whole package set built. `check:sdui-registration-pins` needs a console build. The diff touches no README, doc or registration, and CI runs them. - **CI on `511316a02`.** 43 check-runs: 40 success and 3 skipped. ## Acceptance notes - **Clause-②.** The line stays `yes`, which the contract review confirmed. - **Out of scope, filed by the seat as objectui#10528** (class a, reproducible with the H2 probe). `DashboardGridLayout`'s `provider: 'object'` table and pivot widgets never fetch. They become `data-table` / `pivot` nodes with `data: []`, and those renderers read no `objectName`. On the base, the probe measured `find` called 0 times and the fetched row text absent for both, while `DashboardRenderer` fetched and rendered the same widget. objectui#7353 does not address this. The dev session for this PR is `session_014mXUNuFomfj24w7s1pZzhN` (seat `domain:ui#2`, `mode:subagent`). --- _Generated by [Claude Code](https://claude.ai/code/session_014mXUNuFomfj24w7s1pZzhN)_ --------- Co-authored-by: Claude <noreply@anthropic.com>
Fixes #5942
Retires
MobileComponentConfigvia the ADR-0049 enforce-or-remove route, following theMobileOverridesretirement pattern (objectui#4919, PR objectui#5941) that triage named. This narrows a published surface, so the PR is a draft carryingneeds:contract-reviewand is for the docket to clear, not for me to land.The card is dated 2026-08-24. Every premise was re-measured against
origin/mainata27d153c2before anything was deleted, and all of them hold.Patch round: what contract review caught, and the fix
Review returned FAIL (narrow) on
c0eb3eb2fand it was right. The defect was in this PR's own doc edit, on the very surface it claims to protect.The retirement note is a
//line comment, which TypeScript's declaration emit strips. The rewritten JSDoc onMobileResponsiveConfigpointed at it with "see the RETIRED note below", and JSDoc is emitted. So in the publishedpackages/types/dist/mobile.d.tsthe pointer survived and its target did not — one dangling reference traded for another, this time on the published surface. The same paragraph said "widened into that PR", which no external reader of a.d.tscan resolve. Reproduced independently before fixing, on the review tree atc0eb3eb2f:Why I did not catch it myself, stated plainly: my after-leg dist measurement checked only the two
index.d.tsbarrels and reported "0/0". objectui#5941, the precedent I was copying, measured all ofpackages/*/dist. Having changed the comment mechanism — moving explanation into a live type's JSDoc — I silently lost the property that caliber was protecting. Narrowing a measurement without declaring it moves the evidence away from where the defect is.The fix (
37f82c558) rewrites the JSDoc so every reference resolves for someone reading only the.d.ts—objectstack#4115,objectui#5942, PRobjectui#7526,objectui#7519, and a repo-relative test path, each verified present in the emitted file — and it no longer names the retired symbol at all. That is deliberately not a declared divergence from objectui#5941: dropping the name restores that PR's property exactly, so the retired name now occurs zero times across every emitted declaration rather than only in the barrels. It also drops "for objectui's mobile component overrides" from the same block, which named the concept objectui#4919 retired and so was stale twice over.Two separate measurements, because "no reader in the repo" and "not published" are different facts
The card says "four mentions, all barrels/self-references". That phrasing is consistent with the type being on the published surface, and it is — measured, not inferred.
Table 1 — in-repo readers: zero
Read-shape probes over the whole tree, all file types. Every zero is paired with a control lit in the same run, because a probe whose query shape is wrong returns zero too.
MobileComponentConfig: SComponentSchema= 11S[]ComponentSchema[]= 1<SRecord= 815extends SBaseSchema= 159implements Sas SRecord= 1053| SSchemaNode= 103& S*Schema= 2keyof/typeof Skeyof= 342export interface SSibling
objectstackcheckout, case-insensitive, all file types: 0 hits, withComponentSchemalit at 255 hits in the same run.Bare-word counting would have been wrong here, which is exactly why the table is shaped this way.
MobileComponentConfighas seven bare-word occurrences today, not four: objectui#4919's own retirement note and its pending changeset both name the type in prose.That count depends on where you cut, so here is the cut. Three occurrences are load-bearing code — the declaration and the two barrel re-exports. A fourth is a JSDoc cross-reference, which is code-adjacent in a way that turned out to matter: declaration emit publishes it, which is exactly how this PR's first round went wrong. A fifth lives in a
//line comment insidemobile.tsand is stripped from emit, so by the same test it is prose. The card's "four" is the first four under that cut; "5 mentions in.tsfiles" and "3 real code references" are the same tree measured differently, and the bare number should not be forwarded without the cut. Under every cut, the number of reads is zero:Members are
responsive,gestures,pullToRefresh,infiniteScroll—mobileOverridesremoved by objectui#5941, as the card predicted. Premise intact on every axis: zero mount points, zero readers, four code mentions.Table 2 — published-surface reachability: it IS published, from two packages
packages/typesbarrelsrc/index.ts:626, insideexport type { ... } from './mobile.js'— the package ROOT barrel, one hoppackages/mobilebarrelsrc/index.ts:68, insideexport type { ... } from '@object-ui/types'— root barrel, one hop@object-ui/typesexportsmap"." -> ./dist/index.d.ts; package is not private, version 17.6.0@object-ui/mobileexportsmap"." -> ./dist/index.d.ts; not private, 17.6.0packages/types/dist/index.d.tspackages/mobile/dist/index.d.tsThe
./mobilesubpath is not in the exports map and there is no wildcard subpath, sopackages/types/dist/mobile.d.tsis not directly importable — but the root barrel re-exports the name, so it reaches consumers anyway. That is the distinction that matters: reachability is a property of the barrel chain plus the exports map, not of the declaring file.Conclusion: Clause-2 yes. This is a breaking narrowing of a published surface, and the card's own description matches what is on disk.
The loud-signal requirement, measured with a real consumer on both legs
A removal from
src/proves nothing about what consumers see, so an external consumer was compiled against the built.d.tsthrough the realexportsmap (its own directory, its ownnode_modulessymlinks,moduleResolution: bundler), on both sides of the change.import type { MobileComponentConfig } from '@object-ui/types''"@object-ui/types"' has no exported member named 'MobileComponentConfig'. Did you mean 'ComponentConfig'?@object-ui/mobile(the second barrel)Module '"@object-ui/mobile"' has no exported member 'MobileComponentConfig'.MobileResponsiveConfig, a still-live export from the same file and the same barrelsRow A/A2 before the change is the card's defect reproduced exactly: the dead type imports cleanly from both published packages and type-checks. The control is what makes the after column mean something — if the probe had been misconfigured, A would have "failed" for a reason indistinguishable from success.
Ablation discipline, both legs: the mutation was confirmed on disk by anchored counts in both directions (deleted-text anchor
export interface MobileComponentConfig0 to 1, injected-text anchorRETIRED (objectui#59421 to 0), each leg was rebuilt, and the mutation was confirmed to have reacheddistbefore any reading was taken (types/dist/index.d.tsandmobile/dist/index.d.tsat 1/1 on the before leg, 0/0 on the after leg). The whole script ran under a restore trap using absolute paths. Restore was proven by observed state, not by an exit code:git diff HEADempty,git status --porcelainempty, and all three files byte-exact against their HEAD blob hashes, then rebuilt back to zero.The consumer probe was re-run unchanged at the patched head
37f82c558and returns the same two diagnostics, since the patch round touches doc comments only and moves no exported name.dist evidence at the whole-dist caliber
This is the measurement the first round narrowed and review restored. Rebuilt at
37f82c558, the two commands review named plus the widest form:The three strings review flagged are gone from the emitted file:
see the RETIRED note below1 to 0,widened into that PR1 to 0,mobile component overrides0. Controls in the same run, so a zero is a reading and not a broken instrument:MobileResponsiveConfigstill occurs 3 times acrosspackages/*/dist, and every reference the new JSDoc makes is present in the emittedmobile.d.ts—objectstack#4115(6),objectui#5942(1),objectui#7526(1),objectui#7519(1),page-nav-misc-spec-parity.test.ts(4).Which retirement branch, and the precedent it copies
Branch (a): one-stage removal, source retirement note, no
?: never. This PR completes the card; there is no stage 2.Copied from objectui#5941 (
MobileOverrides), which states the discriminator on this exact file. Stated honestly, because review checked: objectui#5941 was merged with zero reviews (opened 02:37, self-merged 02:51), so it "established" nothing procedurally. What carries authority is the outcome shape it implements, which does rest on objectui#4919's recorded maintainer ruling, plus the retirements it tabulates (AccordionItem.icon,ToggleGroupItem.icon,confirm,hoverable/striped) — each independently checkable in source. The discriminator stands on that evidence, not on the precedent PR's review status:?: nevertombstone exists to steer authors to a named live replacement key, or to keep loud a key the docs actively taught as working;Neither tombstone reason applies, and one of them is structurally impossible here:
MobileOverrideswas a type reached through a key (mobileOverrides?:) on a surviving interface, so aneverkey had somewhere to live.MobileComponentConfighas no mount point at all — the whole interface goes, and there is no surviving object to hang aneverkey on. Keeping the interface with all four members retypedneverwould publish a carcass nothing could reach, which is the declare-without-enforce shape the route exists to close.On the docs half: no published documentation ever described this type.
skills/objectui/guides/mobile.mdteaches the React hooks (useGesture,usePullToRefresh,ResponsiveContainer,useBreakpoint) and never namesMobileComponentConfigor its keys as a metadata surface; zero occurrences in any.md/.mdxin the repo outside objectui#5941's own changeset prose.No ledger verdict is demanded, checked rather than assumed. The ADR-0087 /
retiredKey()registry path governs metadata-spec keys with a Zod twin;packages/types/src/zod/has nomobile.zod.ts, so the loud-parse-rejection half has nothing to attach to.zod/tombstone.zod.tsis the ADR-0049 helper for schema keys and names nothing here.internal/retired-field-keys.tsis a FIELD-key registry for the designer strip sites; a type name is not a field key. objectui has no liveness-ledger machinery. Triage's stop-and-report conditions were therefore all checked and none fired.What changed
Three source files and one changeset — the same footprint as objectui#5941.
packages/types/src/mobile.ts— the declaration replaced by the RETIRED note (the tombstone), carrying the measurement, the discriminator, the fact that no behaviour is retired, and the reopen condition.packages/types/src/mobile.ts— the{@link MobileComponentConfig}cross-reference inMobileResponsiveConfig's doc comment rewritten. It would otherwise dangle at a removed name, and the sentence it made ("It is consumed only byMobileComponentConfig") would be false.packages/types/src/index.ts— barrel re-export removed.packages/mobile/src/index.ts— barrel re-export removed..changeset/5942-retire-mobile-component-config.md—minorfor both packages.The changeset opens with "Removes a published export." and carries an explicit
## Upgradingsection rather than leaving the break implicit. Its guidance, verbatim:minornotmajor, per AGENTS.md 版本号策略, which reservesmajorfor following@objectstackacross a major — the same classification objectui#5941 used for an identically breaking type removal.check-changeset-no-majorconfirms it.Consequence worth the docket's attention, deliberately not widened into this PR
MobileComponentConfigwas the sole consumer of two other published types declared in the same file:After this change both are zero-consumer published types, one level down the same lineage. Visible in the dist controls:
MobileResponsiveConfig4 hits to 3,GestureConfig7 hits to 6 — each losing exactly its mount point and nothing else.Filed for triage as objectui#7519 rather than widened here, for the same reason objectui#5941 filed this card instead of widening:
MobileResponsiveConfigcarries a spec name-ownership tripwire that outlives the type, and retire-vs-implement is a product call. Their live siblings on the same file —GestureType,GestureContext,ResponsiveValue— are genuinely read byuseGesture.ts,useSpecGesture.ts,breakpoints.tsanduseResponsive.ts, and are untouched.Verification
Verification union re-ran in full against the final commit,
37f82c558, with a clean tree; the figures below are that run, not the first round's. Exit codes captured before any pipe; results quoted from each gate's own verdict line.pnpm --filter @object-ui/types --filter @object-ui/mobile build— exit 0;dist completeness: 118 emitted files verified(types) and51(mobile)pnpm --filter @object-ui/types --filter @object-ui/mobile type-check— exit 0; both script names echoed (type-checkis hyphenated in this repo), so not a zero-match silent passpnpm exec vitest run packages/types/ packages/mobile/ --maxWorkers=2—Test Files 99 passed (99),Tests 1651 passed (1651). 99 = 95 types + 4 mobile counted on disk, so the filter matched these packages and nothing elsepnpm --filter @object-ui/types --filter @object-ui/mobile lint— exit 0; 180 files linted (159 + 21), 0 errors, 285 warnings all pre-existing in tests/examples. All three changed files: 0 errors, 0 warningscheck:control-bytes— OK, 6195 tracked text files scanned; plus a manual control-byte scan of the four changed filescheck-changeset-presence—3 source file(s) of 2 released package(s) changed, and this change declares 1 changeset(s)check-changeset-no-major/check-changeset-fixed/check-changeset-overwrite— exit 0check:published-dist—No published package's build output carries tooling material(this one builds all 43 packages first, 6m50s, which is why the run below is worth having)check:readme-exports— now green on a FULL population, which the first round could not achieve:421 of 421 self-imports judged real, 0 fabricated, 0 wrong-path,3310 export symbol(s) read from 37 of 40 tracked package(s),0 unbuilt. In round one this gate exited 1 withthe population COLLAPSED -- this run proves nothingbecause only 3 of 40 packages were built in that worktree; that was a prerequisite failure, not a verdict, and it is now resolved rather than argued around. Removing an export from two barrels is exactly the change this gate exists to catch, so it should be a real reading and now ischeck:spec-symbols,check:doc-types,check:self-import,check:phantom-deps— all exit 0One honest note on scope:
eslint .(this repo's real lint command and its real granularity —lintis a per-package turbo task), the file counts are eslint's own--format jsonoutput, and type-aware linting is not configured ineslint.config.js(noproject, noprojectService, norecommendedTypeChecked), so this diff cannot move the verdict of any file it did not touch. The repo-wide farm is CI's run.Scope
Three source files and one changeset. No
content/docs/releases/edit. No gate ceiling raised, no test skipped or disabled. Left as a draft withneeds:contract-reviewfor the docket.🤖 Generated with Claude Code
https://claude.ai/code/session_01EMrWaQw3XS5DxTHxp4yRyC
Generated by Claude Code