Repository navigation
feat(types): the dashboard widget's TypeScript chartConfig refuses the retired aria, and both faces are pinned (objectui#4044) - #11310
Conversation
…d `aria`, and both faces are pinned (objectui#4044) @objectstack/spec 17.5.0 retired `ChartConfig.aria` as a `retiredKey` tombstone (ruling C, objectstack-ai/objectstack#17751). The Zod twin already inherited the refusal: `DashboardWidgetSchema` takes the spec's `chartConfig` by reference. The TypeScript twin re-typed `chartConfig` as `any`, so an authored `aria` still compiled. `DashboardWidgetSchema.chartConfig` now types `aria` from the spec's own input member (`undefined`), so authoring one is a compile error. Every other chart-config key keeps its `any` typing. The new pin records the refusal on the Zod twin, on the dashboard node, and on the tolerant and strict validator faces, with the spec's own tombstone message read at run time. Its `@ts-expect-error` leg fails `tsc` if the `any` member comes back. Claude-Session: https://claude.ai/code/session_0122Knsowci76D2rBWReCzzZ Co-authored-by: Claude <noreply@anthropic.com>
… refusal (objectui#4044) Claude-Session: https://claude.ai/code/session_0122Knsowci76D2rBWReCzzZ Co-authored-by: Claude <noreply@anthropic.com>
|
changeset-claim-re-read
|
✅ 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
|
Contract reviewServed-tier: Inputs: card objectui#4044 (body and all 14 comments), PR objectui#11310 (body, 3-file list, net diff ① Derived judgments
② Semver level
③ Boundary flags
Implemented-by: VERDICT: PASS |
… floatingConfig on both faces, file data-table's inline-edit flags by name (objectui#6152, round 5) (objectstack-ai#11320) Refs objectstack-ai#6152 Clause-②: yes (narrowing). `selectionStyle` and the base-face `floatingConfig` retire on both faces, and `editable` / `singleClickEdit` leave the authored docs, under the startup no-gradualism rule. It is priced in the changeset. Round 5 of objectui#6152, dispatched under claim `5923137359` (`domain:devx` seat 2, session `session_01TdiauJaVCHuj45EzZGUxHh`, on the maintainer's direct order). The rulings are the seat review `5921390451`: its three answers to round 4's open questions. ⛔ This is a draft from a dispatched dev: do not mark it ready and do not enable auto-merge. The card stays open: `ObjectGridSchema`'s keys and the spec-derived pairs (objectui#2231) are not this round's. ## What changed 1. **`DataTableSchema.editable` / `singleClickEdit`: answer 1, B.** Both keys are filed by name on `RuntimeOnlyNamedAllowList`, each with its reason, under round 4's class rule: a key a host produces in code and no document authors (the `showAddRow` precedent). No declaration moved. `content/docs/components/complex/data-table.mdx` no longer teaches them on an authored node. The interface block drops them, and the `editable: true` example becomes an "Inline editing" section. That section says the capability is host-paired: the table only stages an edit, and `object-grid` sets both keys on the table it builds and supplies the save path. It points a document author at `object-grid`. The two members' doc comments say the same. 2. **`DataTableSchema.selectionStyle`: answer 2, B.** It is retired on both faces: a `?: never` tombstone on `data-display.ts`, and a `retirementTombstone()` on `zod/data-display.zod.ts` whose message says to delete the key and that `selectable` alone turns selection on. The hover-only checkbox branch in `packages/components/src/renderers/complex/data-table.tsx` is dropped, so the `'always'` behaviour is the only one. 3. **Base-face `ChatbotSchema.floatingConfig`: answer 3, A.** It is retired on the `chatbot` face only: `?: never` on `complex.ts` and a `retirementTombstone()` on `zod/complex.zod.ts`, whose message names `type: "chatbot-floating"`. - **Mechanism, from the measurement:** a base tombstone only, with no re-declaration. `ChatbotFloatingSchema` does NOT inherit the base member. Its TS face is `BaseSchema` plus `Pick` of `ChatbotSchema` over `ChatbotSharedKey` and `maxToolRoundtrips`, plus its own `floatingConfig` member. Its zod twin is `BaseSchema.extend` with the shared pick spread and its own `floatingConfig` arm. So the floating registration's declaration, mirrored in round 4, was already separate on both faces and is untouched. - It is a tombstone and not a deletion because `ChatbotSchema` is a `BaseSchema` carrier, where a deleted member reads as `any` through the index signature. The discriminator is cited, not restated, so `tombstone-discriminator-agreement-9684.test.ts` still counts four statements. - The chatbot half of `floating-chatbot-trigger-icon-retired.test.ts` is flipped, not deleted. On a `chatbot` node it now asserts the refusal of the whole `floatingConfig` key on both faces, a live config included, with a no-`floatingConfig` control. `chatbot-registration-authoring-faces-7655.test.ts`'s type pins follow. 4. **Ledger.** `zod-mirror-parity.test.ts`: the `UnmirroredDeclared`, `RuntimeOnlyDeclared` and `RuntimeOnlyNamedAllowList` blocks, and every prose total reconciled to the parser count. One non-vacuity leg was reshaped; see the acceptance notes. 5. **Docs.** `content/docs/plugins/plugin-chatbot.mdx` no longer says `floatingConfig` type-checks and parses on a `chatbot` node. 6. **Changeset.** `.changeset/6152-unmirrored-round5.md` bumps `@object-ui/types` and `@object-ui/components` to minor, with the break stated. Three pending entries that this round makes false get dated, append-only `**Correction, 2026-10-01**` notes, with frontmatter and every prior line intact: `6152-unmirrored-round4.md`, `7654-floating-chatbot-trigger-icon-tombstone.md` and `7655-chatbot-registration-authoring-faces.md`. ## Per key | key | node | ruling | route | TS face | zod face | renderer | docs | |---|---|---|---|---|---|---|---| | `editable` | `data-table` | B | filed by name, runtime-only (host-paired) | unchanged (`boolean`), doc comment notes the pairing | unchanged (not mirrored) | unchanged | removed from the authored interface block; section rewritten | | `singleClickEdit` | `data-table` | B | filed by name, runtime-only (host-paired) | unchanged (`boolean`), doc comment notes the pairing | unchanged (not mirrored) | unchanged | as above | | `selectionStyle` | `data-table` | B | retired (ADR-0049) | `?: never` | `retirementTombstone()` | hover branch dropped | none taught it | | `floatingConfig` | `chatbot` | A | retired (ADR-0049) | `?: never` | `retirementTombstone()` | none (never read) | `plugin-chatbot.mdx` corrected | | `floatingConfig` | `chatbot-floating` | (kept) | none | unchanged | unchanged (round 4's arm) | unchanged | unchanged | ## Ledger totals, by TypeScript-parser count of `zod-mirror-parity.test.ts` | ledger (entries / keys) | before, base `3d09948` | after, head `c1b5767` | |---|---|---| | `KnownDrift` | 49 / 86 | 49 / 86 | | `UnmirroredDeclared` | 6 / 20 (3 / 14 spec-derived, 3 / 6 local) | 5 / 16 (3 / 14 spec-derived, 2 / 2 local) | | `RuntimeOnlyDeclared` | 4 / 27 | 4 / 29 | | `RuntimeOnlyNamedAllowList` | 3 / 20 | 3 / 22 | | `WiderThanDeclared` | 3 / 3 | 3 / 3 | | `MirroredUndeclared` | 2 / 2 | 2 / 2 | | shared entries / union of the two unmirrored ledgers | 1 of 4 / 9 (6 + 3) | 0 of 4 / 9 (5 + 4) |⚠️ **The local half is 2 / 2, not the 0 / 0 the dispatch predicted (hypothesis H1 falsified).** The two keys left are `displayMode` on `ChatbotSchema` and on `ChatbotFloatingSchema`. Under objectui#7654 maintainer ruling B, kept by round 4's Q3 B, their refusal stays TypeScript-only: stored designer documents carry `displayMode: 'floating'`. So they stay in `UnmirroredDeclared` by decision, not as mirroring debt. The ledger prose says so, and the non-vacuity pin "the LOCAL half read as EMPTY" still holds. After this round, `UnmirroredDeclared` holds only the spec-derived 3 / 14 (objectui#2231) and those two decided entries. ## What was measured, before editing (base `3d09948`) - **Type-checker read and producer census.** The round-4 instrument: the TS compiler API over every `packages/*/src` and `apps/*/src`, 5585 files. - `ChatbotSchema.floatingConfig`: 0 reads, 0 producers, 1 test producer (the tripwire). - `ChatbotFloatingSchema.floatingConfig`: 1 read (the floating registration). - `DataTableSchema.selectionStyle`: 1 read (the `data-table` destructure) and 0 producers. - `editable` / `singleClickEdit`: 1 read each (the destructure) and 1 producer each (`ObjectGrid`). - Lit controls: `ChatbotSchema.messages` 3 reads, `maxHeight` 2, `DataTableSchema.columns` 2 reads and 2 producers. - **Authored census in this repository.** 493 tracked JSON files, 354 Markdown JSON fences and 3202 TS/TSX files with a literal `type`. - `data-table`: `selectionStyle` 0, and `editable` / `singleClickEdit` 1 each, both `ObjectGrid` in code with no document. - `chatbot`: `floatingConfig` 1, a test. - Lit controls: `data-table.columns` 71, `selectable` 8, `chatbot-floating.floatingConfig` 4. - **objectstack census.** `git grep -i` on a self-named ref of objectstack `origin/main` (`9b0de7de7`): `selectionStyle`, `selection_style` and `floatingConfig` 0 hits. The lit control on the same ref was `singleClickEdit`, with 6 hits, all on the spec's `ObjectGridProps`, not `data-table`. **There is no named user of hover-style selection, so the stop condition did not fire.** - **Runtime probe, a one-off.** The real `SchemaRenderer` and registry, varying one key. Both files were deleted after each run, leaving `git status` and `git diff HEAD` empty. - At base, a selectable `data-table` with `selectionStyle: 'hover'` differed from unset: 6651 against 6481 characters. The checkbox cell gained `relative`, and each checkbox was wrapped in a `transition-opacity opacity-0 group-hover/row:opacity-100` div. `'always'` was byte-equal to unset, and the `showRowNumbers` control moved the DOM. - At head, `'hover'` is byte-equal to unset (6481 = 6481), with no hover wrapper. - `chatbot` with against without a full `floatingConfig`: byte-equal at base and at head (2600 = 2600). The `placeholder` control moved the DOM, and the same config on `chatbot-floating` drew its title. ## Verification on head `c1b5767` Every heavy run went through `bash /home/user/objectstack/scripts/pm/os-verify-lock.sh` with `OS_VERIFY_LOCK_SLOT=issue-6152`, `NODE_OPTIONS=--max-old-space-size=4096` and a memory watchdog; the lowest available memory was 11244 MB. - **Builds.** `pnpm exec turbo run build` over `check-doc-snippet-types --build-filter` with `--concurrency=2`: "Tasks: 35 successful, 35 total". `@object-ui/types` reports "dist completeness: 1 package(s) complete (138 emitted files verified)". - **Type-checks.** `pnpm --filter X run type-check` exits 0 with 0 TS errors for `@object-ui/types` (`tsc --noEmit`, `-p tsconfig.examples.json`, `-p tsconfig.test.json`), `components`, `plugin-chatbot` and `plugin-grid`. The last three are the packages the type-checker census named. - **Tests,** all with `pnpm exec vitest run --maxWorkers=4`: - `packages/types/`: 306 passed (306), 7701 tests passed; - `packages/components/` in two runs: 192 passed and 1 skipped (193), with 1920 tests passed; then 156 passed (156), with 1560 tests passed; - the consumer set: 309 passed (309), 4939 tests passed. It covers `plugin-chatbot`, `plugin-grid`, `examples/schema-catalog`, `packages/cli`, the three app-shell files importing `@object-ui/types/zod` and `app-shell/.../metadata-admin/previews/__tests__/`. - **Gates, each exit 0.** - Changesets: `check:changeset-claims`, report-only, with 47 pending entries naming a touched file; three were re-read and corrected as above. Also `check:pending-changeset-literals`, `check-changeset-presence` ("9 source file(s) of 2 released package(s) changed, and this change declares 1 changeset(s)"), `changeset:check` and `check-changeset-overwrite`, report-only, whose findings are the 3 dated appends with frontmatter unchanged. - Docs: `check:doc-fences`, `check:doc-snippets` ("698 of 698 block(s) judged, 0 failed"), `docs:check-links` ("Links are valid across 17 scan roots"), `check:doc-examples`, `check:doc-types`, `check:doc-example-ids`, `check:doc-example-readers` and `check:skill-examples`. - Others: `check:control-bytes`, `check:new-line-citations` ("0 new citation(s)"), `check:handler-key-reads`, `check:component-surface-parity` (report-only), `check:designer-field-key-parity`, `check:element-data-source-declaration`, `check:prompt-keys`, `check:readme-exports`, `check:spec-symbols`, `check:test-path-roots`, `check:unreferenced-sources` and `check-type-check-coverage`. - `check-governed-queue-guard --test` over the 15 paths: NOT GOVERNED. - **Narrowed lint against the merge base `cd5b19a`.** The 9 lintable changed files ran through `eslint --format json`. - With inline config: 0 errors and 75 warnings. - With `--no-inline-config`: 1 error and 77 warnings. The one error is the `react-hooks/static-components` line in `data-table.tsx`'s row-action menu, inline-disabled at an untouched line, and it is identical at base. Per-file error and warning counts are equal at base and head; the new test file reads 0 / 0. - The output judged 9 files and ignored 0. - Invariance: `eslint.config.js` declares no `parserOptions` (so no type-aware project), and no rule in `eslint-rules/` reads the disk, so the diff cannot move an untouched file's verdict. The repo-wide lint is CI's. ## Ablations, predictions written first, each restored to blob == HEAD with `git diff HEAD` empty Each ran through `ablation-replace.mjs`, with its anchor count proven 1 → 0 on disk and restored. - **A1** deleted the `selectionStyle` zod arm. The round-5 pin file read "5 failed | 9 passed (14)", exactly the five predicted `selectionStyle` rows. `tsc -p tsconfig.test.json` exited 2 with one error, at `assertionUnmirroredMatchesLedger`. - **A2** restored `ChatbotSchema.floatingConfig` to `FloatingChatbotConfig`. vitest stayed green on the three chatbot pin files (43 passed), since the change is type-level. `tsc` exited 2 with exactly the four predicted errors: TS2578 in the round-5 pin file and in the trigger-icon tripwire, TS2344 in the 7655 pin file, and one at `assertionDriftMatchesLedger`. - **A3** deleted the `editable` allow-list row. `tsc` exited 2 with exactly one TS2344, at `assertionRuntimeOnlyIsCallbackShapedOrNamed`, and the parity file's vitest stayed 37 passed, as predicted. ## Acceptance notes - **One non-vacuity leg was reshaped, not dropped.** The leg asserted that the two unmirrored ledgers share at least one entry. This round made them disjoint for real: `DataTableSchema`, the last pair in both, left `UnmirroredDeclared`. Keeping the leg would have forced a key back onto a ledger. It is replaced by a lit control on the same reader: `KnownDrift` shares a pair with each unmirrored ledger, so the header's `0` is a reading, not a name-normalisation artefact. The reasoning is in the test's own comment. - **Merged `origin/main` twice, never rebased:** `de4459a`, then `c1b5767`. The second merge followed PR objectstack-ai#11310, which edits `complex.ts`. The ledger counts did not move with either merge. - **PR objectstack-ai#11312 (open) adds a `WiderThanDeclared` entry to the same parity file.** The two diffs touch disjoint blocks. Whichever lands second merges `main` and re-derives the totals by parser count. - The optional `with-item-count` catalog id rename was not done, because this round does not touch that file. - Commit trailers are the model-free pair AGENTS.md requires. - NOT MEASURED: - the full `pnpm test` farm and the repo-wide lint (CI's); - `apps/console` tests, because no file it owns changed; - an at-tier contract record, which the seat owes on the landing head. --- _Generated by [Claude Code](https://claude.ai/code/session_01TdiauJaVCHuj45EzZGUxHh)_ --------- Co-authored-by: Claude <noreply@anthropic.com>
Fixes #4044
Clause-②: yes
The last open key on this card is
chartConfig.aria. Ruling C (card comment 5642794441) judged the protocol wrong for it. objectstack-ai/objectstack#17751 retiredChartConfig.ariaas aretiredKeytombstone, released in@objectstack/spec17.5.0, which the lockfile onmainhas pinned since PR objectui#11086. This PR adds the contract twins' half of that retirement. The nine keys PR objectui#9202 delivered are untouched, and so arexAxis/yAxis/series.What changed
packages/types/src/complex.ts).DashboardWidgetSchema.chartConfigwas typedany, so an authoredariacompiled. Itsariamember now comes from the spec by reference: the type isNonNullableofSpecDashboardWidget['chartConfig'], indexed ataria, and it resolves toundefined. Authoring a value is a compile error (TS2322). Every otherchartConfigkey keeps itsanytyping through an index signature. That narrow route keeps the two fences above.zod/complex.zod.tsDashboardWidgetSchematakes the spec'schartConfigby reference (specFieldsExceptexcludes onlyidandtype). It has refusedariasince the lockfile moved to 17.5.0.packages/types/src/__tests__/chartconfig-aria-retired-4044.test.ts), shaped likedashboard-aria-retired-contract-twins.test.ts:@ts-expect-erroron an authored literal. The control is a legal{ title, description, colors }literal that still compiles.ariaatchartConfig.ariawith codeinvalid_type. The message must equal the spec's own tombstone message, which the test reads from the spec at run time, so no prose is copied into the test.{ title, description }still parses (the control).unrecognized_keysonchartConfig. That shows the red above comes from the tombstone, not from strictness.DashboardComponentSchema,safeValidateSchema(tolerant face) andStrictAnyComponentSchema(strict face) each parse the control and refusearia. The tombstone appears atchartConfig.ariainside the widget slot's spec-widget union arm.DashboardWidgetChartConfigSchemastill refusesaria..changeset/4044-chartconfig-aria-tombstone.md:@object-ui/typesminor. A published face (TypeScript) that acceptedarianow refuses it. This is the same grading the objectui#9736 and objectui#9409 changesets gave when a key moved from a parse-time refusal to a compile-time one.Zone 2 measurements (dispatch order)
DashboardWidgetSchematakes the spec by reference, so it inherits the tombstone. TypeScriptDashboardWidgetSchemare-typedchartConfigasany, so it acceptedaria. Thereportsfaces are not on this path:ReportSectionSchema.chartis objectui's own SDUIChartSchema, not the spec's chart config.DashboardWidgetConfigSchema/DashboardWidgetConfig(the config-panel model) haschartConfig: z.any(), see Acceptance notes.origin/main1ccb5ba7de, with the built dist. All four Zod faces already refused{ title, aria }, so the work was the pin plus the TypeScript member.{ type: 'bar', aria }and its control{ type: 'bar', title }do not fit this face. The spec retiredchartConfig.typeon a dashboard widget in the same 17.5.0 release (the widget's owntypeis the chart family), so on every dashboard face the control is refused atchartConfig.type. The triage probe parsed the react-tierChartConfigSchema, wheretypeis required, notDashboardWidgetChartConfigSchema. The pin uses{ title }as its control.chartConfigwasany, not an index-signature fall-through. It is fixed as described above.chartConfig.ariaread inplugin-charts,plugin-dashboard,core'schart-presentationorplugin-report. The only hits are comments and the existing negative pins ("ignores chartConfig.aria"). Those pins handariastraight to the renderer, so they stay valid and pass unchanged. Nothing was removed and no reader was added (ruling B was not taken).content/docs/**, README or SKILL file authorschartConfig.aria, so there was nothing to correct. Control: the same grep findschartConfiginplugin-charts.mdxand the dashboard-levelarianote inplugin-dashboard.mdx.Verification (at head
8c74849360)pnpm turbo run type-check --concurrency=2over@object-ui/types,core,sdui-parser,plugin-dashboard,plugin-charts,plugin-list,plugin-designer,app-shellandexample-schema-catalogreadsTasks: 42 successful, 42 total. That list is every package importingDashboardWidgetSchema/DashboardComponentSchema, plusplugin-charts. Each package'stype-checkalso compiles its test files.pnpm exec vitest run packages/types/plus the 28 suites outsidepackages/typesthat mentionchartConfig/ChartConfigSchemareadTest Files 330 passed (330),Tests 7957 passed (7957).check:component-surface-parity(report-only, exit 0);check:new-line-citations(0 new citation(s));check:control-bytesOK;check:spec-symbolsOK;check:changeset-claimsOK;check:pending-changeset-literalsOK;check:test-path-rootsOK;check:installed-pin-claimsOK;check:shell-escape-residueOK;changeset:checkOK;node scripts/check-changeset-presence.mjsreads2 source file(s) of 1 released package(s) changed, and this change declares 1 changeset(s).eslint --no-inline-config --format json: 2 files, 0 errors.complex.tshas 9no-explicit-anywarnings, the same 9 its base blob has. The config enables no type-aware linting, so this diff cannot move another file's verdict. The repo-widepnpm lintrun belongs to CI.Ablations (committed first, mutated with
ablation-replace.mjs, restore proven by blob equal to HEAD and an emptygit diff HEAD)chartConfig?: any(anchor 1 to 0):tsc -p tsconfig.test.jsonexits 2. It reports TS2322 onariaDeclaredand onariaNotAny, and TS2578 for the unused@ts-expect-error. TheIsAnyguard is needed: underany, the bare "admits no value" check stays green.chartConfig: z.any().optional()(the shape the TypeScript twin had): the pin readsTests 5 failed | 4 passed (9). The twin refusal, the strictness contrast and all three dashboard faces go red. The spec-standing case and the parse controls stay green.Acceptance notes
type/xAxis/yAxis/serieson a dashboard widget and refuse unknown keys. Typing the whole member by reference would close that gap, but it would change the TypeScript verdict on keys this dispatch fenced off. It is reported to the seat, not done here.DashboardWidgetConfigSchema.chartConfigisz.any(), so it admitsaria(and every other retired chart key).DashboardConfigPanel/DashboardWithConfignever writechartConfig(0 hits; control:widgetsis found), so nothing produces it on that model. Nothing was filed. Carrier: none.packages/core/src/utils/chart-presentation.tsand in the existing negative pins inplugin-dashboard/plugin-chartsstill callaria"declared by ChartConfigSchema" or "pending objectstack#5175". Since 17.5.0 it is a tombstone. These files are outside this card's file surface and were left alone. Carrier: none.mainafter the branch point. Neither touches this diff's files,chartConfigorDashboardWidgetSchema, so no merge was needed.Dev session:
https://claude.ai/code/session_0122Knsowci76D2rBWReCzzZ(dispatched by thedomain:uiseat 1 PM loop).Generated by Claude Code