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

feat(types): the dashboard widget's TypeScript chartConfig refuses the retired aria, and both faces are pinned (objectui#4044) - #11310

Merged
objectstack-fleet[bot] merged 2 commits into
mainfrom
claude/issue-4044-chartconfig-aria-tombstone
Oct 1, 2026
Merged

objectstack-fleet[bot] merged 2 commits into
mainfrom
claude/issue-4044-chartconfig-aria-tombstone

Conversation

@objectstack-fleet

Copy link
Copy Markdown
Contributor

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 retired ChartConfig.aria as a retiredKey tombstone, released in @objectstack/spec 17.5.0, which the lockfile on main has 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 are xAxis / yAxis / series.

What changed

  • TypeScript twin (packages/types/src/complex.ts). DashboardWidgetSchema.chartConfig was typed any, so an authored aria compiled. Its aria member now comes from the spec by reference: the type is NonNullable of SpecDashboardWidget['chartConfig'], indexed at aria, and it resolves to undefined. Authoring a value is a compile error (TS2322). Every other chartConfig key keeps its any typing through an index signature. That narrow route keeps the two fences above.
  • Zod twin: no code change. zod/complex.zod.ts DashboardWidgetSchema takes the spec's chartConfig by reference (specFieldsExcept excludes only id and type). It has refused aria since the lockfile moved to 17.5.0.
  • Pin (packages/types/src/__tests__/chartconfig-aria-retired-4044.test.ts), shaped like dashboard-aria-retired-contract-twins.test.ts:
    • The TypeScript leg has three type-level assertions and a @ts-expect-error on an authored literal. The control is a legal { title, description, colors } literal that still compiles.
    • The Zod twin refuses aria at chartConfig.aria with code invalid_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).
    • An unknown chart-config key is refused as unrecognized_keys on chartConfig. That shows the red above comes from the tombstone, not from strictness.
    • DashboardComponentSchema, safeValidateSchema (tolerant face) and StrictAnyComponentSchema (strict face) each parse the control and refuse aria. The tombstone appears at chartConfig.aria inside the widget slot's spec-widget union arm.
    • A spec-standing case: the spec's own DashboardWidgetChartConfigSchema still refuses aria.
  • Changeset .changeset/4044-chartconfig-aria-tombstone.md: @object-ui/types minor. A published face (TypeScript) that accepted aria now 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)

  1. Where the twin comes from. Zod DashboardWidgetSchema takes the spec by reference, so it inherits the tombstone. TypeScript DashboardWidgetSchema re-typed chartConfig as any, so it accepted aria. The reports faces are not on this path: ReportSectionSchema.chart is objectui's own SDUI ChartSchema, not the spec's chart config. DashboardWidgetConfigSchema / DashboardWidgetConfig (the config-panel model) has chartConfig: z.any(), see Acceptance notes.
  2. Reproduce first, at origin/main 1ccb5ba7de, with the built dist. All four Zod faces already refused { title, aria }, so the work was the pin plus the TypeScript member. ⚠️ The dispatch probe { type: 'bar', aria } and its control { type: 'bar', title } do not fit this face. The spec retired chartConfig.type on a dashboard widget in the same 17.5.0 release (the widget's own type is the chart family), so on every dashboard face the control is refused at chartConfig.type. The triage probe parsed the react-tier ChartConfigSchema, where type is required, not DashboardWidgetChartConfigSchema. The pin uses { title } as its control.
  3. TypeScript twin. chartConfig was any, not an index-signature fall-through. It is fixed as described above.
  4. Readers. I found no live chartConfig.aria read in plugin-charts, plugin-dashboard, core's chart-presentation or plugin-report. The only hits are comments and the existing negative pins ("ignores chartConfig.aria"). Those pins hand aria straight to the renderer, so they stay valid and pass unchanged. Nothing was removed and no reader was added (ruling B was not taken).
  5. Docs. No content/docs/**, README or SKILL file authors chartConfig.aria, so there was nothing to correct. Control: the same grep finds chartConfig in plugin-charts.mdx and the dashboard-level aria note in plugin-dashboard.mdx.

Verification (at head 8c74849360)

  • Builds and type-checks: pnpm turbo run type-check --concurrency=2 over @object-ui/types, core, sdui-parser, plugin-dashboard, plugin-charts, plugin-list, plugin-designer, app-shell and example-schema-catalog reads Tasks: 42 successful, 42 total. That list is every package importing DashboardWidgetSchema / DashboardComponentSchema, plus plugin-charts. Each package's type-check also compiles its test files.
  • Tests: pnpm exec vitest run packages/types/ plus the 28 suites outside packages/types that mention chartConfig / ChartConfigSchema read Test Files 330 passed (330), Tests 7957 passed (7957).
  • Gates: check:component-surface-parity (report-only, exit 0); check:new-line-citations (0 new citation(s)); check:control-bytes OK; check:spec-symbols OK; check:changeset-claims OK; check:pending-changeset-literals OK; check:test-path-roots OK; check:installed-pin-claims OK; check:shell-escape-residue OK; changeset:check OK; node scripts/check-changeset-presence.mjs reads 2 source file(s) of 1 released package(s) changed, and this change declares 1 changeset(s).
  • Lint, narrowed to the two changed TypeScript files with the root config, eslint --no-inline-config --format json: 2 files, 0 errors. complex.ts has 9 no-explicit-any warnings, 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-wide pnpm lint run belongs to CI.

Ablations (committed first, mutated with ablation-replace.mjs, restore proven by blob equal to HEAD and an empty git diff HEAD)

  • TypeScript member reverted to chartConfig?: any (anchor 1 to 0): tsc -p tsconfig.test.json exits 2. It reports TS2322 on ariaDeclared and on ariaNotAny, and TS2578 for the unused @ts-expect-error. The IsAny guard is needed: under any, the bare "admits no value" check stays green.
  • Zod twin given its own chartConfig: z.any().optional() (the shape the TypeScript twin had): the pin reads Tests 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

  • TypeScript and Zod still disagree on the other chart-config keys. The TypeScript face still accepts any other chart-config key, while the Zod twin (and the spec) refuse type / xAxis / yAxis / series on 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.
  • Config-panel model. DashboardWidgetConfigSchema.chartConfig is z.any(), so it admits aria (and every other retired chart key). DashboardConfigPanel / DashboardWithConfig never write chartConfig (0 hits; control: widgets is found), so nothing produces it on that model. Nothing was filed. Carrier: none.
  • Stale comments. Comments in packages/core/src/utils/chart-presentation.ts and in the existing negative pins in plugin-dashboard / plugin-charts still call aria "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.
  • Same-day churn. PR objectui#11303 and PR objectui#11301 landed on main after the branch point. Neither touches this diff's files, chartConfig or DashboardWidgetSchema, so no merge was needed.

Dev session: https://claude.ai/code/session_0122Knsowci76D2rBWReCzzZ (dispatched by the domain:ui seat 1 PM loop).


Generated by Claude Code

claude added 2 commits October 1, 2026 01:48
…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>
@github-actions

github-actions Bot commented Oct 1, 2026

Copy link
Copy Markdown
Contributor

changeset-claim-re-read

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

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

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

.changeset/6687-chatbot-surface-authorable.md

  • names packages/types/src/complex.ts → packages/types/src/complex.ts — edited by this change

    Measured on both declaration faces before the fix, each with a control that had to hit: schema.surface appeared 0 times in renderer.tsx against schema.placeholder at 3 (one per registration) and schema.processVisibility at 1; and ChatbotSchema (packages/types/src/complex.ts) declared 34 keys, not this one. Two faces agreeing is what made the zero a reading rather than a bad query.

.changeset/6939-kanban-column-cards.md

  • names complex.ts → packages/types/src/complex.ts — edited by this change

    Breaking, deliberately. KanbanColumn declared its card list as items in complex.ts and in the zod mirror complex.zod.ts. Every board reads cards. Measured on origin/main 78a3cc238: KanbanImpl.tsx reads .cards on 12 lines, KanbanEnhanced.tsx on 8, and bucketCardsIntoColumns twice more as col.cards || []; .items had zero read sites in either board (a same-shaped .title control on the same two files returns 8 and 3, so those zeros are readings and not a mis-shaped probe). Both catalog entries, the plugin docs and content/docs/api/schema-reference.md all author cards.

.changeset/7295-chat-message-avatar-keys.md

  • names packages/types/src/complex.ts → packages/types/src/complex.ts — edited by this change

    packages/plugin-chatbot/src/index.tsx:173–178 reads message.avatar || userAvatarUrl and message.avatarFallback || userAvatarFallback (and the assistant twins), the authoring-to-runtime seam spreads every unlisted key through (chatMessageAdapter.ts, ...passthrough), and the SDUI renderer feeds the authored messages[] straight in — a per-message avatar override renders, is documented, and no authoring-facing type declared it. ChatMessage in packages/types/src/complex.ts has no index signature (objectui#5155, deliberately — none is added here), so an author annotating ChatbotSchema.messages was told a value that renders is an error (TS2353); the zod mirror ChatMessageSchema is a plain strip-mode z.object, so the value parsed green and was silently DROPPED from the parsed output.

.changeset/7655-chatbot-registration-authoring-faces.md

  • names complex.ts → packages/types/src/complex.ts — edited by this change

    New published symbol: ChatbotSharedKey, the string-literal union of the twenty keys all three registrations read. It is exported from complex.ts because an exported interface may not extend a Pick over a private name (TS4022), so it is emitted into dist/complex.d.ts and is reachable through the published @object-ui/types/complex subpath (it is not re-exported from the package entry). It is a census, not an authoring face.

.changeset/7703-chatbot-dark-keys-retired.md

  • names packages/types/src/complex.ts → packages/types/src/complex.ts — edited by this change

    Each member goes to ?: never on packages/types/src/complex.ts and to retirementTombstone(...) on packages/types/src/zod/complex.zod.ts — both halves, in lockstep, the convention MarkdownSchema.sanitize (objectui#6972), TimelineSchema.timeScale (objectui#6355) and ObjectViewSchema.viewTabBar (objectui#7779) already carry. Each refusal names the key, says why it is retired, and points at what to write instead; one string feeds both the parse-time message and the .describe() metadata, so the two cannot drift.

.changeset/8415-filter-builder-condition-id.md

  • names complex.ts → packages/types/src/complex.ts — edited by this change

    Breaking for authored metadata: a filter-builder CONDITION must now declare id (objectui#8415). It is declared on both published faces — the TypeScript interface FilterBuilderCondition in complex.ts and the Zod mirror FilterBuilderConditionSchema in zod/complex.zod.ts — so a key the renderer has always required is finally validated instead of silently discarded.

.changeset/8802-8257-8008-kanban-gantt-family-retirement.md

  • names complex.ts → packages/types/src/complex.ts — edited by this change

    What each retirement was, measured. Three of the four were registration-only: no schema face in @object-ui/types ever declared kanban-ui, kanban-enhanced or gantt as a component node type, so unregistering is the whole retirement. The bare kanban key was the exception — it had a declared arm on both faces (KanbanSchema in complex.ts and its Zod mirror), and a plain deletion there would have been the objectui#7664 failure: BaseSchema is .passthrough(), so a document naming a dropped key validates green and renders nothing. It therefore retires as a named refusal: the Zod union keeps an arm claiming the literal and answers a { "type": "kanban" } document with a message naming object-kanban as the remedy, while the TypeScript half is the absence of the arm from ComplexSchema and of the key from SchemaRegistry, so tsc refuses it at the authoring site.

.changeset/9628-kanban-column-collapsed-honoured.md

  • names complex.ts → packages/types/src/complex.ts — edited by this change

    The key was declared on both published faces of the object-kanban arm — the lane element of ObjectKanbanSchema (objectql.ts and its Zod mirror) and the runtime lane KanbanColumn (complex.ts and its mirror) — and read by KanbanEnhanced alone, a module no production source imports. An authored { "id": "todo", "title": "To Do", "collapsed": true } therefore parsed green on both faces and reached a board that did nothing with it: KanbanImpl's only collapse is the SWIMLANE row's, held in viewer state under objectui:kanban-collapsed:ANGLE-BRACKETS(swimlaneField) and never keyed to a lane's declared value. That is the ADR-0049 declared-but-unhonoured shape.

.changeset/calendar-readme-schema-keys-5045.md

  • names packages/types/src/complex.ts → packages/types/src/complex.ts — edited by this change

    README.md's "Schema API / CalendarView" block described a CalendarViewSchema that does not exist. Measured against the interface itself (packages/types/src/complex.ts) and its zod mirror: events — the schema's only required key besides type — was published as events?, so a reader following the README omits it and TypeScript rejects the node; defaultDate was string where the schema says string | Date; and onDateClick was listed as a schema key when it is a CalendarViewProps component prop, sending readers to a different package's surface for a key calendar-view does not have (the schema's key is onDateChange). The block also listed 6 of the schema's 13 keys with nothing saying it was a summary (objectui#5045).

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

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

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

Angle-bracketed names in the quoted prose above are rewritten as ANGLE-BRACKETS(name): GitHub deletes tag-shaped fragments from a stored body, and a quote that silently loses the identifier it is about is worse than a visible repair.

Compared the checked-out tree with 9cfe9977f (merge-base with origin/main): 2 file(s) changed outside .changeset/, read against 1873 pending declaration(s) that publish a body (2486 pending in total). · run

@github-actions

github-actions Bot commented Oct 1, 2026

Copy link
Copy Markdown
Contributor

✅ Console Performance Budget

Metric Value Budget
Eager closure (gzip, 330 chunks) 3585.1 KB 3607.4 KB
Main entry chunk (gzip) 150.4 KB 350 KB
Entry file index-DZXoQbsd.js —
Status PASS —

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

Package Size Gzipped
app-shell (consoleActionDispatch.js) 0.20KB 0.19KB
app-shell (index.js) 16.88KB 6.25KB
app-shell (runtime-config.js) 20.68KB 7.36KB
app-shell (types.js) 0.01KB 0.04KB
app-shell (urlParams.js) 10.11KB 3.87KB
auth (ActiveOrganizationStorage.js) 27.95KB 10.04KB
auth (AuthContext.js) 0.31KB 0.24KB
auth (AuthGuard.js) 2.07KB 1.00KB
auth (AuthProvider.js) 40.22KB 10.61KB
auth (AuthShell.js) 3.49KB 1.40KB
auth (ForgotPasswordForm.js) 12.21KB 3.45KB
auth (LoginForm.js) 18.17KB 5.40KB
auth (PreviewBanner.js) 0.90KB 0.50KB
auth (RegisterForm.js) 6.72KB 2.24KB
auth (SocialSignInButtons.js) 9.70KB 3.93KB
auth (UserMenu.js) 3.39KB 1.21KB
auth (auth-gate-events.js) 1.29KB 0.66KB
auth (authStyles.js) 5.04KB 1.72KB
auth (createAuthClient.js) 40.70KB 10.94KB
auth (createAuthenticatedFetch.js) 8.54KB 3.46KB
auth (index.js) 3.63KB 1.64KB
auth (invitation-status.js) 1.22KB 0.70KB
auth (org-roles.js) 6.66KB 2.78KB
auth (phone-identifier.js) 1.11KB 0.66KB
auth (types.js) 0.59KB 0.35KB
auth (useAuth.js) 5.30KB 1.02KB
auth (useWorkspaceAdminStatus.js) 11.08KB 4.58KB
collaboration (CommentThread.js) 27.13KB 7.95KB
collaboration (LiveCursors.js) 3.17KB 1.27KB
collaboration (PresenceAvatars.js) 6.49KB 2.64KB
collaboration (PresenceProvider.js) 2.79KB 1.13KB
collaboration (index.js) 1.68KB 0.73KB
collaboration (useCollaborationTranslation.js) 6.05KB 2.52KB
collaboration (useCommentSearch.js) 1.98KB 0.88KB
collaboration (useConflictResolution.js) 7.75KB 1.86KB
collaboration (useMentionNotifications.js) 1.81KB 0.68KB
collaboration (usePresence.js) 6.33KB 1.84KB
collaboration (useRealtimeSubscription.js) 7.91KB 2.01KB
components (index.js) 570.17KB 136.43KB
core (index.js) 10.00KB 3.96KB
create-plugin (index.js) 27.94KB 9.51KB
data-objectstack (index.js) 229.96KB 63.80KB
fields (index.js) 261.11KB 66.26KB
i18n (LocalizationContext.js) 1.76KB 0.96KB
i18n (builtinAggregateLabels.js) 0.86KB 0.49KB
i18n (currency.js) 2.59KB 1.22KB
i18n (fallbackInterpolation.js) 6.25KB 2.77KB
i18n (i18n.js) 8.87KB 3.64KB
i18n (index.js) 5.24KB 2.27KB
i18n (pickLocalized.js) 9.86KB 3.95KB
i18n (provider.js) 39.40KB 12.91KB
i18n (translateFn.js) 0.20KB 0.18KB
i18n (useDisplayLocale.js) 3.52KB 1.76KB
i18n (useObjectLabel.js) 34.49KB 9.23KB
i18n (useSafeTranslation.js) 5.60KB 2.33KB
layout (index.js) 40.95KB 11.48KB
mobile (MobileProvider.js) 0.92KB 0.49KB
mobile (ResponsiveContainer.js) 0.94KB 0.38KB
mobile (breakpoints.js) 1.51KB 0.70KB
mobile (createOfflineDataSource.js) 5.61KB 1.75KB
mobile (index.js) 1.99KB 0.87KB
mobile (offlineQueue.js) 3.91KB 1.35KB
mobile (pwa.js) 0.97KB 0.49KB
mobile (serviceWorker.js) 1.48KB 0.62KB
mobile (serviceWorkerSource.js) 3.41KB 1.48KB
mobile (useBreakpoint.js) 1.54KB 0.65KB
mobile (useGesture.js) 6.96KB 1.98KB
mobile (useOfflineSync.js) 1.99KB 0.72KB
mobile (usePullToRefresh.js) 6.62KB 2.45KB
mobile (useResponsive.js) 0.72KB 0.42KB
mobile (useSpecGesture.js) 5.52KB 2.10KB
mobile (useTouchTarget.js) 1.01KB 0.54KB
permissions (MePermissionsProvider.js) 13.86KB 5.00KB
permissions (PermissionContext.js) 0.31KB 0.25KB
permissions (PermissionGuard.js) 0.89KB 0.45KB
permissions (PermissionProvider.js) 6.52KB 2.26KB
permissions (discardProofCache.js) 1.04KB 0.55KB
permissions (evaluator.js) 8.33KB 3.07KB
permissions (index.js) 0.93KB 0.41KB
permissions (store.js) 0.91KB 0.42KB
permissions (useFieldPermissions.js) 1.28KB 0.53KB
permissions (usePermissions.js) 4.83KB 2.27KB
plugin-ai (index.js) 16.01KB 3.93KB
plugin-calendar (index.js) 52.90KB 15.35KB
plugin-charts (index.js) 84.09KB 22.93KB
plugin-chatbot (index.js) 198.22KB 46.97KB
plugin-dashboard (index.js) 139.36KB 37.31KB
plugin-designer (index.js) 216.45KB 44.60KB
plugin-detail (index.js) 244.79KB 64.47KB
plugin-editor (index.js) 2.23KB 1.05KB
plugin-form (index.js) 173.75KB 44.64KB
plugin-gantt (index.js) 173.03KB 43.07KB
plugin-grid (index.js) 231.61KB 63.61KB
plugin-kanban (index.js) 49.32KB 15.48KB
plugin-list (index.js) 116.63KB 28.97KB
plugin-map (index.js) 23.50KB 7.82KB
plugin-markdown (index.js) 13.88KB 4.80KB
plugin-report (index.js) 44.04KB 12.21KB
plugin-timeline (index.js) 33.05KB 9.67KB
plugin-tree (index.js) 11.20KB 3.89KB
plugin-view (index.js) 90.32KB 22.76KB
providers (DataSourceProvider.js) 0.75KB 0.39KB
providers (MetadataProvider.js) 1.37KB 0.59KB
providers (ThemeProvider.js) 1.90KB 0.85KB
providers (UploadProvider.js) 11.81KB 3.58KB
providers (index.js) 0.45KB 0.23KB
providers (types.js) 0.01KB 0.04KB
react-runtime (index.js) 5.62KB 2.34KB
react (LazyPluginLoader.js) 4.47KB 1.63KB
react (SchemaRenderer.js) 119.55KB 39.23KB
react (data-invalidation.js) 5.05KB 2.08KB
react (index.js) 4.50KB 2.06KB
react (schema-input.js) 4.25KB 2.04KB
react (spec-input.js) 0.20KB 0.18KB
sdui-parser (body-dialect.js) 4.50KB 1.99KB
sdui-parser (codegen.js) 9.45KB 3.76KB
sdui-parser (dashboard-widget-options.js) 3.08KB 1.30KB
sdui-parser (index.js) 6.06KB 2.68KB
sdui-parser (input-type.js) 2.84KB 1.40KB
sdui-parser (parse.js) 25.28KB 7.80KB
sdui-parser (provenance.js) 3.84KB 1.90KB
sdui-parser (types.js) 0.28KB 0.23KB
sdui-parser (validate.js) 21.42KB 7.05KB
types (ai.js) 4.39KB 2.17KB
types (api-types.js) 0.20KB 0.18KB
types (app.js) 4.12KB 1.61KB
types (base.js) 0.20KB 0.18KB
types (blocks.js) 0.20KB 0.18KB
types (complex.js) 3.19KB 1.62KB
types (crud.js) 0.20KB 0.18KB
types (dashboard-filter-alias.js) 6.23KB 2.74KB
types (data-display.js) 3.75KB 1.85KB
types (data-protocol.js) 0.20KB 0.19KB
types (data.js) 0.20KB 0.18KB
types (designer.js) 1.85KB 0.85KB
types (disclosure.js) 0.20KB 0.18KB
types (error-code.js) 1.54KB 0.88KB
types (expression.js) 0.20KB 0.18KB
types (feedback.js) 0.20KB 0.18KB
types (field-types.js) 0.20KB 0.18KB
types (form.js) 0.20KB 0.18KB
types (http-inflight.js) 8.87KB 3.73KB
types (http-retry.js) 4.32KB 2.02KB
types (icon-key-migration.js) 4.26KB 1.63KB
types (index.js) 4.74KB 2.26KB
types (layout.js) 0.20KB 0.18KB
types (managed-by.js) 0.19KB 0.18KB
types (mobile.js) 5.00KB 2.39KB
types (navigation.js) 0.20KB 0.18KB
types (objectql.js) 0.20KB 0.18KB
types (overlay.js) 0.20KB 0.18KB
types (permissions.js) 2.52KB 1.31KB
types (plugin-scope.js) 0.20KB 0.18KB
types (record-components.js) 0.20KB 0.19KB
types (record-semantics.js) 1.28KB 0.67KB
types (registry.js) 0.20KB 0.18KB
types (reports.js) 0.20KB 0.18KB
types (select-option.js) 0.20KB 0.19KB
types (spec-report.js) 4.99KB 1.96KB
types (spec-ui-namespace.js) 0.20KB 0.19KB
types (strict-authoring-face.js) 21.59KB 7.71KB
types (system-fields.js) 3.33KB 1.54KB
types (theme.js) 6.28KB 2.87KB
types (ui-action.js) 8.11KB 3.32KB
types (views.js) 0.20KB 0.18KB
types (widget.js) 0.20KB 0.18KB

Size Limits

  • ✅ Core packages should be < 50KB gzipped
  • ✅ Component packages should be < 100KB gzipped
  • ⚠️ Plugin packages should be < 150KB gzipped

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: 8c748493600c0c5687e9b74d6d278579e9cf5a9f
Local-runs: none

Inputs: card objectui#4044 (body and all 14 comments), PR objectui#11310 (body, 3-file list, net diff 1ccb5ba7de..8c74849360: +239/−2 over packages/types/src/complex.ts, the new pin packages/types/src/__tests__/chartconfig-aria-retired-4044.test.ts, and .changeset/4044-chartconfig-aria-tombstone.md), and the 43 check-runs on the head. Read-only cross-checks: the spec's ChartConfigSchema and DashboardWidgetChartConfigSchema at the @objectstack/spec@17.5.0 tag (0f6dcac5e9), the dashboard.aria precedent pins (objectui#5830 / objectui#9736), and the objectstack#17751 and objectstack#17385 threads. Merge-base confirmed at 1ccb5ba7de. Nothing built, run or re-run.

① Derived judgments

  1. Zod twin unchanged — right. zod/complex.zod.ts DashboardWidgetSchema is specFieldsExcept(...SpecDashboardWidgetSchema..., ['id', 'type']), so chartConfig is the spec's DashboardWidgetChartConfigSchema.optional() by reference. The lockfile at the branch point already resolves @objectstack/spec@17.5.0, whose ChartConfigSchema.aria is a retiredKey(...) tombstone and whose DashboardWidgetChartConfigSchema is ChartConfigSchema.extend({...}), so the refusal was inherited at PR objectui#11086. This diff moves nothing on the zod face; the dev's four-face measurement at the branch point (DashboardWidgetSchema, DashboardComponentSchema, safeValidateSchema, StrictAnyComponentSchema) is consistent with the pin going green in CI.

  2. TS twin, the narrow route — right, honest, and inside the claim. Before: chartConfig?: any. After: an index signature [key: string]: any plus an optional aria member taken by reference as the aria member of the non-nullable SpecDashboardWidget['chartConfig'] (the spec's own input type). retiredKey() is z.never().optional(), so the spec's input member resolves to undefined; an authored value is TS2322, and the pin's @ts-expect-error is live (Type Check green; the ablation that reverts the member to any reports TS2578, the unused-directive error). The claim's literal wording, "the TypeScript twin stops declaring the key", could not have produced a refusal: dashboard-aria-retired-contract-twins.test.ts is the in-tree record that an undeclared key falls to the index signature and compiles, so declaring the key AS the tombstone (the objectui#9736 shape) is the only route that delivers the type-level leg the claim asked for. Taking the whole member by reference would also be correct against the spec, but it would flip the TS verdict on type / xAxis / yAxis / series (tombstoned on the dashboard carrier in 17.5.0) and retype the nine delivered keys; the claim fenced both, and DatasetWidget.comboPresentation.test.tsx authors series / yAxis on the renderer path, so that flip belongs with the renderer work in ③ item 2, not in this diff. The split (one key typed, the rest any) is stated in the member's docblock and in the changeset; nothing is overstated.

  3. Zone 2 item 2 falsified correctly: the pin's control is { title }, not { type: 'bar', title }. Verified at the 17.5.0 tag: DashboardWidgetSchema.chartConfig is DashboardWidgetChartConfigSchema.optional(), and that schema tombstones type, xAxis, yAxis and series through WIDGET_CHART_STRUCTURE_RETIRED (its docblock cites the maintainer ruling of 2026-09-12, decision batch Fix CI lockfile error by removing @objectstack/spec dependency #121 item 1). So on every dashboard face { type: 'bar', title } is refused at chartConfig.type. Triage's probe 5904259593 parsed the react-tier ChartConfigSchema, where type is required and still accepted — a true reading of the wrong face. { title } is legal on the dashboard carrier only because tombstoning a required type made its absence legal, the forced widening objectstack#17385's clause-② correction records. Right.

  4. Pins, 9 cases — sound. TS leg: DeclaredKeys filters the index signature out, IsAny guards the admits-no-value check (under any that check alone stays green, which the dev measured), and a legal literal is the control. Zod leg: the premise case reads the tombstone message off the spec at run time, so no prose is copied; the twin case asserts path chartConfig.aria, code invalid_type and message equality with the spec; the unknown-key case proves the twin is strict there and that the red above is the tombstone (unrecognized_keys on chartConfig — a different code at a different path); the three faces flatten the widget-slot union and find the tombstone in the spec-widget arm. The ablations run in the right direction with the right counts: reverting the TS member yields TS2322 ×2 plus TS2578; giving the zod twin its own z.any() reddens exactly the five cases that depend on inheritance (twin refusal, strictness contrast, three faces) and leaves the four that do not (two TS cases, the spec premise, the twin's parse control).

  5. Readers and docs — right. The claim named any chartConfig.aria read the measurement finds in plugin-charts / plugin-dashboard; the dev found none (comments and negative pins only), which agrees with objectstack#17751's own measurement and with the tombstone's text ("no chart renderer ever applied it"). Nothing removed, no reader added — ruling B stays untaken. No doc, README or SKILL authors the key, so nothing to correct.

  6. Public surface. Exactly one published face moves: @object-ui/types's TypeScript DashboardWidgetSchema.chartConfig.aria, accepted → refused. No runtime code changes and no mirror narrows in this diff.

② Semver level

  • One changeset, @object-ui/types minor with a **BREAKING (authoring, TypeScript only)** banner — right. This repository marks breaking semantics minor (AGENTS.md: no major in a changeset outside the objectstack major sync; check-changeset-no-major enforces it, and Changeset Bump Policy / Claim Re-read / Declaration / Fixed Group Check are all green on the head). The precedent is exact: .changeset/9736-twins-spec-by-reference.md and .changeset/9409-retire-page-assigned-profiles.md are both '@object-ui/types': minor for a key moving from a parse-time refusal to a compile-time one. Not patch: the TS accept set narrows. Not skip-changeset: complex.ts is published source, and the dev's check-changeset-presence reading (2 source files of 1 released package, 1 changeset) matches the file list.
  • Clause-②: yes — right. A published face's accept set moves (a narrowing on the TS face), and this lane reads narrowing as yes (objectstack#17751's ACCEPT record: clause ② covers accept-set movement in both directions). The claim 5922989064 and the PR body agree. The changeset's text matches the diff: zod "no change", TypeScript "changed", the remedy is to delete the key, and description is named as the accessible-name channel the chart renderer does honour, which is what the spec's own tombstone says.

③ Boundary flags

  1. No assignee on PR feat(types): the dashboard widget's TypeScript chartConfig refuses the retired aria, and both faces are pinned (objectui#4044) #11310 (dev deviation 1) — assignees reads empty. The dev's label-write --assign os-warren was refused by the local permission classifier and was correctly not re-routed. Seat-owned gap: the seat sets it. No bearing on the verdict.

  2. The class-b finding: real, measured, fileable as ONE card, not this PR's — and the claim's fence rests on a misreading.

    • What the installed spec says. The tombstone on DashboardWidgetChartConfigSchema reads, per key: "dashboard.widgets[].chartConfig.KEY was removed in @objectstack/spec 17.5.0 (ADR-0021 · ADR-0049 D2) — on a dataset-bound widget the dataset already decides …, so the authored value could only agree with the dataset selection or silently disagree with it. Delete the key. … The key is NOT gone from the chart config itself: it stays authorable on the react ObjectChart tier … Run os migrate meta --from 17 to list the mechanical edits for existing sources; apply them by hand." Its docblock states the cost in as many words: "objectui merged that presentation onto the derived bindings (mergeAuthoredPresentation) … Refusing the keys by name takes the presentation with the binding, and the combo chart … goes with it."
    • When. Ruled 2026-09-12 (objectstack#17385 comment 5644017639, C+D, batch Fix CI lockfile error by removing @objectstack/spec dependency #121 item 1). Landed on spec main as squash 8271c814253 (PR objectstack#19363) at 2026-09-20T14:47:59Z, closing #17385 at 2026-09-20T14:48:01Z. Released in @objectstack/spec 17.5.0 (tag 0f6dcac5e9, 2026-09-29), which objectui main resolves since PR objectui#11086. The aria retirement (objectstack#17751, PR objectstack#18300) landed 2026-09-15 and shipped in the same release.
    • The fence. The claim says xAxis / yAxis / series were "answered live by objectstack#17385", carried from triage's unlock scan 5818732131 of 2026-09-24, which read #17385's half 1 (the liveness drill, 12 keys live) and not its half 2 (the retirement, landed four days before that scan). The spec seat's landing record on #17385 (5750317613, repeated in 5750557775) routes the consequence by name: objectui's mergeAuthoredPresentation path becomes metadata-unreachable and DatasetWidget.comboPresentation.test.tsx authors keys the spec now refuses ⇒ "objectui#4044's half, in the sibling repo." So the fence was wrong on the facts, and the obligation was already addressed to this card.
    • Defect and reach, at the branch point and unchanged by this diff. (i) The published TS face DashboardWidgetSchema.chartConfig accepts all four keys through its any index signature while the published zod face and the spec refuse them — the declared-surfaces-disagree class. (ii) @object-ui/core's exported mergeAuthoredPresentation, called from DatasetWidget.tsx, still reads config.series, config.xAxis and config.yAxis, so a widget that reaches the renderer without the validator (TS-authored, inline) still has a renderer honouring keys the contract retired. (iii) DatasetWidget.comboPresentation.test.tsx authors series[] / yAxis[] / xAxis and pins the combo behaviour the spec says goes with the keys; the negative pins on chartConfig.type survive. The spec's liveness ledger now grades the three keys dead; objectui carries no copy of that fact.
    • Filing gate. class: b, a reach: line and evidence are all present, which is the rule for an out_of_scope_findings entry, so it is fileable — and as ONE card: one ruling, one carrier schema, one renderer path, one pin family. It is not in scope of this PR: ruling C scoped the card's last key to aria and the claim fenced the four keys, so the dev's stop-and-report is the instruction working. Dedupe against open cards is the seat's step at filing.
    • ⇒ Escalated to the seat, to settle before enqueue. The PR says Fixes #4044, but the spec seat routed the four-key consumer half to DashboardWidget.chartConfig 在 dashboard 元数据面只有 showLegend 落地 —— 12 个已声明键里 11 个惰性,liveness 台账那一行高估了证据 #4044 by name, and ruling 5617466747 itself deferred those keys to "after #17385 answers", with Part of. Either (a) file the ONE follow-up card and keep Fixes — the card body's premise has been falsified three times over, so a fresh card with the measured premise is the cleaner carrier, and it must name the #17385 routing it supersedes — or (b) flip this PR to Part of #4044 and keep the card open. Merging with Fixes and no carrier would close the card the spec seat named as the carrier. This is a card-state decision, not a defect in the diff; the verdict below stands under either choice.
  3. Config-panel model DashboardWidgetConfigSchema.chartConfig: z.any() (dev: carrier none) — no producer (DashboardConfigPanel / DashboardWithConfig never write chartConfig) and it is not a spec twin. Acceptance note under the filing gate (no class, no reach, no carrier). One line on the follow-up card is enough, since it is the same class — an objectui face that still admits retired chart keys — not a card of its own.

  4. Stale comments in packages/core/src/utils/chart-presentation.ts and in the plugin-dashboard / plugin-charts negative pins ("declared by ChartConfigSchema", "pending objectstack#5175") — Acceptance note. Outside this card's file surface; the follow-up's PR touches chart-presentation.ts anyway and should correct them there.

  5. Same-day churn (PRs objectui#11303 and objectui#11301 after the branch point, neither touching this diff's files or DashboardWidgetSchema) — accepted; mergeable reads true.

  6. CI on the head, read at 2026-10-01T02:23Z: 43 check-runs, 40 success, 3 skipped (Test (coverage), the coverage shard matrix, dependabot), 0 failing, 0 in progress. At the first read (2026-10-01T02:18Z) Test (shard 1/8) through Test (shard 5/8) were still in_progress; all five have since concluded success. The gates this diff implicates — Type Check, Test (dist pins), Lint, Spec Main Shape Gate, and the four changeset checks — are green. A skip is not a pass and is not counted as one.

  7. Dev deviations 3 to 5 (the TS narrow route, model-free commit trailers, no merge of main) — answered in ① item 2 and ③ item 5, or accepted. open_questions is empty.

Implemented-by: claude/issue-4044-chartconfig-aria-tombstone
Reviewed-by: session_0122Knsowci76D2rBWReCzzZ

VERDICT: PASS

@objectstack-fleet
objectstack-fleet Bot marked this pull request as ready for review October 1, 2026 02:38
@objectstack-fleet
objectstack-fleet Bot enabled auto-merge October 1, 2026 02:38
@objectstack-fleet
objectstack-fleet Bot added this pull request to the merge queue Oct 1, 2026
Merged via the queue into main with commit f3c2bb0 Oct 1, 2026
45 checks passed
@objectstack-fleet
objectstack-fleet Bot deleted the claude/issue-4044-chartconfig-aria-tombstone branch October 1, 2026 02:54
akarma-synetal pushed a commit to akarma-synetal/objectui that referenced this pull request Oct 7, 2026
… 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>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

1 participant