Skip to content

fix(plugin-charts)!: ObjectChartBlock declares its pre-gate props instead of (props: any) - #10573

Merged
objectstack-fleet[bot] merged 2 commits into
mainfrom
claude/issue-8885-object-chart-block-props
Sep 25, 2026
Merged

objectstack-fleet[bot] merged 2 commits into
mainfrom
claude/issue-8885-object-chart-block-props

Conversation

@objectstack-fleet

Copy link
Copy Markdown
Contributor

Fixes #8885
Clause-②: yes — a published component signature narrows from any (ruling 5810232641).

Part 2 of objectui#8885. Part 1 landed as PR #8895. ObjectChartBlock, the registry shell that wraps ObjectChart behind ElementDataSourceGate, now declares its props. Before, it was published as (props: any).

Notation: GitHub strips angle-bracket fragments from PR bodies, so generics are spelled in words below. Omit OF ObjectChartProps MINUS 'schema' means the TypeScript Omit of ObjectChartProps with its 'schema' key removed.

What changed

  • ObjectChartBlock's parameter is now Omit OF ObjectChartProps MINUS 'schema', intersected with { schema: BaseSchema }. Both parts are existing exported names, and no new type is minted.
    • schema is BaseSchema, the node SchemaRenderer hands every registered renderer (the object arm of SchemaRendererProps.schema).
    • Every other prop (dataSource, onSegmentClick) is ObjectChart's own, so the type is closed.
  • The one loose member is the hand-off schema={bound as ObjectChartSchema} into ObjectChart. That line is where the pre-gate node becomes the component's post-gate schema. The gate maps the dataSource binding but does not validate, so the post-gate claim is made there, at one line, and not on the published signature.
    • Measured: this is the single diagnostic the narrowing costs, TS2741 Property 'chartType' is missing in type 'BaseSchema' but required in type 'ObjectChartSchema'.
  • Both registrations still type-check. The shell is registered as object-chart and under the chart alias. ObjectChartSchema's type: 'object-chart' literal would be false for the alias. BaseSchema's type: string is correct for both.
  • A new compile-time pin, packages/plugin-charts/src/__tests__/ObjectChartBlock.props-8885.test.tsx. It is compiled by tsc -p tsconfig.test.json, and --listFiles confirms it is in that program.
  • A changeset: '@object-ui/plugin-charts': minor, with a BREAKING section written in migration terms. Published 17.6.0 ships ObjectChartBlock: (props: any) => React.JSX.Element.

Why BaseSchema (the seat's reading)

The ruling types the shell's schema as "the registry renderer's raw node input", and it stops only "if no shared pre-gate node type exists to name". BaseSchema is exported, and it is exactly what SchemaRenderer passes every registered renderer as schema, so naming it invents nothing. The dispatch order had added a stricter stop, "if the shells disagree", and the first round of this claim stopped on it. The measured reading was 15 of 17 elementDataSourceBlock shells declaring any, 1 declaring a component-specific shape and 1 declaring a post-gate schema. That stricter condition was the dispatching seat's, not the ruling's, and the seat lifted it, choosing option A of the needs_decision report on the card.

Evidence (final HEAD 5fb961c13)

Consumer cost, measured before writing with the objectui#7483 comment 5647422745 method. Only plugin-charts' dist was re-emitted, and each type-check leg ran separately. Re-run at 5fb961c13 against the head dist:

leg exit error TS
plugin-charts tsc --noEmit / tsc -p tsconfig.test.json 0 / 0 0 / 0
plugin-dashboard src / test 0 / 0 0 / 0
runner src / test 0 / 0 0 / 0
app-shell src / test 0 / 0 0 / 0
console src 0 0
example-console-starter src / test 0 / 0 0 / 0
example-schema-catalog src / test 0 / 0 0 / 0
example-byo-backend-console src 0 0
site src (after next typegen) 0 0

No dependant references ObjectChartBlock by name. Both registrations go through ComponentRegistry, which is Registry OF any, and registerLazy loaders are typed () => Promise OF unknown. The built dist/index.js is byte-identical to the base build (cmp exit 0). The only dist change is ObjectChart.d.ts: the ObjectChartBlock declaration and its docblock, plus the BaseSchema type import.

Red on base, green on head. For the red leg, the pin file stayed at HEAD while ObjectChart.tsx was set back to its base blob (6ad6d4e1 to 1f26145d, proven by hash). Then tsc -p tsconfig.test.json exited 2 with 8 errors:

  • TS2344 on assertionShellParamIsNotAny, assertionShellSchemaIsNotAny, assertionSchemaIsTheRawNode and assertionRestIsObjectChartProps;
  • TS2578 (unused @ts-expect-error) on P1 (misspelled prop name dataSorce), P2 (schem), P3 (string schema) and P4 (node without type).

Controls C1 (the chart alias node), C2 (a binding-only node { type, dataSource: { object, view } }) and C3 (ObjectChart's own props passed through) compiled on both sides. It was restored with git checkout HEAD -- and proven by blob 6ad6d4e1 == HEAD and an empty git diff HEAD. On head, pnpm run type-check for plugin-charts runs tsc --noEmit && tsc -p tsconfig.test.json and exits 0.

Closedness ablation. Adding [key: string]: any to the props type through ablation-replace.mjs reds exactly assertionRestIsObjectChartProps (TS2344) and P1 (TS2578). The any-guards and P2 to P4 stay green, so P1 catches an open props bag, not only any. Output: ok mutation landed: anchor 1 -> 0 and ok restored: blob == HEAD (6ad6d4e17f77).

Tests. pnpm exec vitest run --maxWorkers=2 packages/plugin-charts/ plus three packages/types census tests that read ObjectChart.tsx as text (object-chart-undeclared-keys-8885, widget-schema-anchors-7946, base-bind-declared) gave Test Files 77 passed (77) and Tests 874 passed (874). That is 74 plugin-charts test files plus the 3 census files, so every file ran.

Lint. eslint on the 2 touched source files, with --no-inline-config --format json, reported 0 errors. ObjectChart.tsx has 41 warnings against 42 on base: one fewer no-explicit-any, because the (props: any) is gone. The pin file has 1 warning, the deliberate any in assertionAnyProbeCanFire, which proves the any-probe can fire. Repo-wide pnpm lint belongs to CI.

Gates (unlocked, exit captured before any pipe):

  • check-changeset-presence exit 0: "3 file(s) changed, 2 of them published source of a package the release covers".
  • check-changeset-no-major exit 0. check-changeset-fixed exit 0. check:changeset-claims exit 0 (report-only). check:pending-changeset-literals exit 0.
  • check:new-line-citations exit 0: "VERDICT new-cross-file-line-citations: 0 new citation(s)".
  • check:control-bytes exit 0.
  • check:element-data-source-declaration exit 0: "all reach the seam and take it from core".
  • check:unreferenced-sources, check:test-path-roots, check-type-check-coverage, check:spec-symbols, check:doc-fences and check:shell-escape-residue: each exit 0.
  • check-governed-queue-guard --test on the 3 paths: NOT GOVERNED.
  • check:readme-exports exit 1 is PREREQUISITE NOT MET: 417 self-imports unjudgeable because their packages' dist is not built. None is in plugin-charts, and no README or doc mentions ObjectChartBlock, so this diff does not reach it. NOT MEASURED, not red.

Acceptance notes

Noted, not filed:

  • Most other shells still publish any. Read at base 3261e6479: 15 of the 17 elementDataSourceBlock shells publish schema: any, and two of them (object-map and object-timeline) publish a bare React.FC OF any. This PR types only ObjectChartBlock. A family-wide pre-gate type was option C of the decision, and it was not taken. Carrier: none.
  • The two published examples of this pattern disagree. The @object-ui/react README types the shell FC OF { schema: BaseSchema }, as this PR now does. The elementDataSourceBlock doc comment beside ElementDataSourceGate shows elementDataSourceBlock OF React.FC OF any. Carrier: the next edit to that file.
  • Ceiling. A misspelled key INSIDE the node (for example objectNme) still compiles, through BaseSchema's passthrough index signature. That is protocol-level, not this card's; the pin keeps a counter-probe so the ceiling stays visible.

Generated by Claude Code

…ead of `(props: any)`

The registry shell around ObjectChart was published as `(props: any)`, so a
misspelled prop, a string schema or a node without `type` all compiled.
Its props are now `Omit<ObjectChartProps, 'schema'> & { schema: BaseSchema }`,
built from existing exported names only. `schema` is BaseSchema, the node
SchemaRenderer hands every registered renderer, because the shell receives
the node before ElementDataSourceGate maps its binding. It is deliberately
not the post-gate ObjectChartSchema, which is also false for the `chart`
alias this same shell is registered under.

The one loose member is the hand-off into ObjectChart
(`bound as ObjectChartSchema`): that is where the pre-gate node becomes the
component's post-gate schema.

Pinned at compile time by ObjectChartBlock.props-8885.test.tsx: an
any-guard, @ts-expect-error on a misspelled prop name, a missing schema, a
string schema and a type-less node, and controls for the `chart` alias node
and a binding-only node.

Claude-Session: https://claude.ai/code/session_014mXUNuFomfj24w7s1pZzhN
Co-authored-by: Claude <noreply@anthropic.com>
@github-actions

Copy link
Copy Markdown
Contributor

changeset-claim-re-read

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

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

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

.changeset/8650-chart-foreign-dialect-retired.md

  • names ObjectChart.tsx → packages/plugin-charts/src/ObjectChart.tsx — edited by this change

    Also deletes six (schema as any) casts that the published declarations had already made unnecessary — colors, categoryColors and categoryOrder on ChartRenderer, and colors, compareTo and series on ObjectChart (the objectui#8327 bucket-(b) class: declared, then read through a needless cast). No behaviour changes with them; ObjectChart.tsx now has no (schema as any) read left at all.

.changeset/8885-object-chart-drilldown-title-compareto.md

  • names ObjectChart.tsx → packages/plugin-charts/src/ObjectChart.tsx — edited by this change

    ObjectChart.tsx reads all three off schema, and until now neither published copy declared any of them: not the TS interface (packages/types/src/objectql.ts) and not the zod mirror (packages/types/src/zod/objectql.zod.ts). They rode BaseSchema's index signature / .passthrough() and arrived unvalidated. drillDown was the sharpest case — this component's registry inputs advertise it to the designer palette, and @objectstack/spec publishes ChartDrillDownSchema for exactly this carrier, so an author was offered a key that neither published shape mentioned.

.changeset/humanize-label-single-home-5444.md

  • names ObjectChart.tsx → packages/plugin-charts/src/ObjectChart.tsx — edited by this change

    humanizeLabel turns a stored value into a display string when nothing else resolves it — an option with no declared label, an object name, a chart axis member. It existed twice, byte for byte: once in @object-ui/fields (read by plugin-grid, plugin-gantt, plugin-detail and by that package's own renderers) and once as a deliberate local copy in plugin-charts' ObjectChart.tsx, whose comment said it was there "to avoid a dependency on @object-ui/fields".

.changeset/objectchart-schema-anchor-7946.md

  • names ObjectChart.tsx → packages/plugin-charts/src/ObjectChart.tsx — edited by this change

    • ObjectChartProps.schema is ObjectChartSchema; the published .d.ts no longer says props: any. ObjectChartProps is exported. - The four keys are declared on BOTH copies, with value types taken from their READ sites (ChartRendererProps for xAxisKey / series, ObjectChart.tsx for filter) rather than copied from any producer's literal — except where @objectstack/spec already owns the shape, which is aggregate: that one is declared BY REFERENCE as ChartAggregate / ChartAggregateSchema, so the authoring door here and at the react-page publish gate are one shape and cannot drift into two dialects. - colors converges: the zod mirror has declared it since objectui#3913 and the TS interface did not, a drift no ratchet could see because a mirror-only key is in neither of the parity guard's two difference ledgers.

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

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

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

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

@github-actions

Copy link
Copy Markdown
Contributor

✅ Console Performance Budget

Metric Value Budget
Eager closure (gzip, 329 chunks) 3046.9 KB 3104.5 KB
Main entry chunk (gzip) 147.8 KB 350 KB
Entry file index-BhLR9Muv.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.68KB 6.20KB
app-shell (runtime-config.js) 20.68KB 7.36KB
app-shell (types.js) 0.01KB 0.04KB
app-shell (urlParams.js) 10.06KB 3.86KB
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.18KB 10.59KB
auth (AuthShell.js) 3.49KB 1.40KB
auth (ForgotPasswordForm.js) 12.21KB 3.45KB
auth (LoginForm.js) 18.15KB 5.39KB
auth (PreviewBanner.js) 0.90KB 0.50KB
auth (RegisterForm.js) 6.65KB 2.22KB
auth (SocialSignInButtons.js) 9.61KB 3.89KB
auth (UserMenu.js) 3.41KB 1.23KB
auth (auth-gate-events.js) 1.29KB 0.66KB
auth (authStyles.js) 5.04KB 1.72KB
auth (createAuthClient.js) 40.21KB 10.80KB
auth (createAuthenticatedFetch.js) 8.52KB 3.45KB
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) 545.30KB 130.42KB
core (index.js) 9.22KB 3.71KB
create-plugin (index.js) 27.94KB 9.51KB
data-objectstack (index.js) 223.91KB 62.28KB
fields (index.js) 258.75KB 65.60KB
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 (useDisplayLocale.js) 3.52KB 1.76KB
i18n (useObjectLabel.js) 34.34KB 9.17KB
i18n (useSafeTranslation.js) 5.60KB 2.33KB
layout (index.js) 39.28KB 11.09KB
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.52KB 4.88KB
permissions (PermissionContext.js) 0.31KB 0.25KB
permissions (PermissionGuard.js) 0.89KB 0.45KB
permissions (PermissionProvider.js) 6.24KB 2.16KB
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) 51.40KB 14.61KB
plugin-charts (index.js) 74.95KB 20.88KB
plugin-chatbot (index.js) 198.36KB 47.20KB
plugin-dashboard (index.js) 133.50KB 35.37KB
plugin-designer (index.js) 216.25KB 44.39KB
plugin-detail (index.js) 232.59KB 61.50KB
plugin-editor (index.js) 2.23KB 1.05KB
plugin-form (index.js) 147.58KB 37.78KB
plugin-gantt (index.js) 169.62KB 41.91KB
plugin-grid (index.js) 215.37KB 58.92KB
plugin-kanban (index.js) 48.26KB 15.04KB
plugin-list (index.js) 114.43KB 28.26KB
plugin-map (index.js) 22.42KB 7.38KB
plugin-markdown (index.js) 13.88KB 4.80KB
plugin-report (index.js) 43.55KB 11.99KB
plugin-timeline (index.js) 30.64KB 8.94KB
plugin-tree (index.js) 10.52KB 3.69KB
plugin-view (index.js) 87.31KB 21.78KB
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.66KB 3.50KB
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) 114.58KB 37.60KB
react (data-invalidation.js) 5.05KB 2.08KB
react (index.js) 4.03KB 1.86KB
react (schema-input.js) 4.25KB 2.04KB
react (spec-input.js) 0.20KB 0.18KB
sdui-parser (body-dialect.js) 4.78KB 2.09KB
sdui-parser (codegen.js) 6.58KB 2.74KB
sdui-parser (dashboard-widget-options.js) 3.08KB 1.30KB
sdui-parser (index.js) 5.78KB 2.56KB
sdui-parser (input-type.js) 2.84KB 1.40KB
sdui-parser (kanban-quick-add.js) 3.89KB 1.87KB
sdui-parser (parse.js) 25.28KB 7.80KB
sdui-parser (provenance.js) 3.66KB 1.82KB
sdui-parser (types.js) 0.28KB 0.23KB
sdui-parser (validate.js) 18.27KB 6.20KB
types (ai.js) 4.11KB 2.06KB
types (api-types.js) 0.20KB 0.18KB
types (app.js) 2.87KB 1.00KB
types (base.js) 0.20KB 0.18KB
types (blocks.js) 0.20KB 0.18KB
types (complex.js) 2.93KB 1.49KB
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.25KB
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) 0.20KB 0.18KB
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) 5.05KB 1.93KB
types (spec-ui-namespace.js) 0.20KB 0.19KB
types (strict-authoring-face.js) 17.15KB 6.32KB
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: 5fb961c137de3e67310f21b26083d4b2b834f370

① Derived judgments

  • Head confirmed: git rev-parse refs/review/pr-10573 = 5fb961c137de3e67310f21b26083d4b2b834f370; 2 commits past merge-base 3261e6479; 3 files, +171/-12. The shared checkout was not touched (no checkout, no worktree; probes ran in a scratch sandbox built from npm tarballs).
  • BaseSchema IS the raw node input. packages/react/src/SchemaRenderer.tsx:818 declares SchemaRendererProps.schema: BaseSchema | string | null | undefined; the string and nullish arms return before React.createElement(Component, { schema: schemaForComponent, ... }) at line 2165, so the object arm handed to every registered renderer is BaseSchema. Component comes from Registry OF any, so no typed hand-off exists beyond this. BaseSchema is exported from @object-ui/types (packages/types/src/index.ts:95, defined base.ts:72 with required type: string and a [key: string]: any passthrough), and @object-ui/plugin-charts already lists @object-ui/types: workspace:* in dependencies. The @object-ui/react README (line 203) documents the canonical shell as FC OF { schema: BaseSchema }. No new exported name: the only export lines in the non-test diff are the pre-existing export const ObjectChartBlock; the 7 export type assertion* lines live in the test file, which the build tsconfig excludes.
  • Ruling fit. The ruling's parenthetical ("the same pre-gate node type other elementDataSourceBlock shells receive") is factually false: 0 of 17 shells use BaseSchema. The dev stopped and reported on that (5829954656), and the seat record 5830027843 lifted its own stricter "shells disagree" stop, reading the ruling's operative target ("the registry renderer's raw node input") as BaseSchema. That reading matches SchemaRenderer's actual hand-off and the README, and invents nothing, so I do not find the record misreads the ruling; the false parenthetical was surfaced, not hidden.
  • Closedness. ObjectChartProps (ObjectChart.tsx:464-485) is { schema: ObjectChartSchema; dataSource?: any; onSegmentClick?: (ev) => void } with no index signature, so Omit OF ObjectChartProps MINUS 'schema' AND { schema: BaseSchema } is closed at the prop level; the passthrough exists only inside BaseSchema and the pin's ceiling counter-probe states it. Inherited note: ShellProps['dataSource'] is any via the pre-existing, documented ObjectChartProps.dataSource; not new, not introduced here.
  • Loose member. grep of added non-test lines: zero @ts- directives, zero new any outside comments, exactly one cast, schema={bound as ObjectChartSchema} (ObjectChart.tsx:1590 region). Legal downcast since ObjectChartSchema extends BaseSchema (objectql.ts:4239), and ElementDataSourceGate OF S types children: (schema: S) (ElementDataSourceGate.tsx:697) so bound is BaseSchema. Named in a 6-line code comment and in the PR body's "The one loose member" bullet.
  • Required props: ObjectChartProps minus schema has only optional members (dataSource?, onSegmentClick?). ObjectChart reads exactly props.schema, props.dataSource, props.onSegmentClick (grep, 0 others), so the closed type hides no live input.
  • Pins. packages/plugin-charts/tsconfig.test.json includes src/**/*.test.tsx; type-check script is tsc --noEmit && tsc -p tsconfig.test.json; CI "Type Check" on head: success. Root vitest.config.mts:412 includes packages/**/*.test.tsx; the file has one runtime it (expect(typeof probes).toBe('function')), so no "No test suite found"; all 8 test shards: success. Sandbox probe (published @object-ui/types@17.6.0, stub d.ts for base (props: any) vs head shape, pin file byte-identical to the PR ref): base = 8 errors, 4x TS2344 (any-guards, raw-node, rest) + 4x TS2578 (P1-P4); head = 0 errors (C1 chart alias node, C2 binding-only node, C3 ObjectChart's own props, ceiling probe all compile); open-bag ablation ([key: string]: any added) = exactly TS2344 on assertionRestIsObjectChartProps + TS2578 on P1; directives removed on head: P1 TS2322 (excess dataSorce), P2 TS2322 (missing schema), P3 TS2322 (string not assignable to BaseSchema), P4 TS2741 (type missing). All four fire for the stated reason; controls are real.
  • No runtime change: non-test diff is one type import, one parameter annotation, one as cast, comments and reformatting; vite lib build (esbuild transform) strips all of it. The dev's cmp byte-identical claim is consistent with that; I did not rebuild dist.
  • Census tests: all three (object-chart-undeclared-keys-8885, widget-schema-anchors-7946, base-bind-declared) run schemaReads(stripComments(source)); no new schema.KEY read is added in non-comment code (props.schema and bound as ObjectChartSchema do not match); anchors export const ObjectChart = (props: ObjectChartProps), ComponentRegistry.register('object-chart' and useDataScope(schema.bind) survive. Test shards green on head.

② Semver level

  • Published narrowing confirmed: npm pack @object-ui/plugin-charts@latest = 17.6.0, dist/ObjectChart.d.ts:71 reads export declare const ObjectChartBlock: (props: any) => React.JSX.Element;. minor + BREAKING body is the objectui rule (AGENTS.md §9 版本号策略: never declare major, breaking changes are minor with semantics in the body; enforced by check-changeset-no-major, CI "Changeset Bump Policy" success).
  • Changeset prose checked sentence by sentence: all true (shell name and location, 17.6.0 signature, new signature, no export added/removed/renamed, no runtime change, BaseSchema not ObjectChartSchema, binding-only node legal, chart alias legal via index.tsx:79, misspelled prop is now an excess-property error, registry path unaffected because Registry OF any). Migration section names what fails (extra props, string schema, node without type) with before/after code and the fix. Nit: the prose "Migration:" sentence covers extra props and missing type but leaves the string-schema case to the code block only.
  • Title form: fix(plugin-charts): ... for a BREAKING minor. AGENTS.md prescribes type(scope): subject and no ! rule. On main, 18 recent BREAKING-changeset squash commits: 9 use feat(scope)!:, 4 refactor(...), 2 feat( without !, 2 fix( (b46c58f34, 6ee259a8f), 1 docs(. So fix( is house-tolerated with precedent, not wrong; feat(plugin-charts)!: would match the majority form. Not a stop.
  • Pending .changeset/*.md (2034 files) scanned for ObjectChartBlock and props: any: only the PR's own file and objectchart-schema-anchor-7946.md, which speaks of the inner ObjectChart only and stays true. No falsified changeset, no reconciliation owed.

③ Boundary flags

  • CI on head at final read: 43 check runs, 40 success, 3 skipped (matrix/dependabot placeholders), 0 failed, 0 in progress. Type Check, Lint, Test shards 1-8, Test (dist pins), Spec Main Shape Gate, Build Docs, Changeset gates, README Export Check, Line Citation Gate: all success.
  • Merge: PR fix(plugin-charts): keep the xAxis object on any declared presentation key (objectui#10516) #10571 (normalizeChartSchema.ts) merged to main at 10:03Z as a50600166; its files do not include ObjectChart.tsx. git merge-tree --write-tree refs/review/main(a50600166) refs/review/pr-10573 exit 0, no conflict. PR is still draft: true, mergeable_state: behind; the queue rebuilds on main, so no action beyond the normal ready+queue step.
  • Out-of-scope notes verified accurate: 17 elementDataSourceBlock( non-test call sites; 15 declare an any-shaped schema (record_picker, calendar, grid, kanban, detail, metric, pivot, form, embeddable-form, master-detail-form, line-items-panel, gantt, chart-at-base, plus React.FC OF any on map and timeline); 1 component-specific (RecordRelatedListRendererProps), 1 post-gate (ListViewProps). README packages/react/README.md:203 uses FC OF { schema: BaseSchema } while ElementDataSourceGate.tsx:612 doc comment shows elementDataSourceBlock OF React.FC OF any; the drift is real and unowned.
  • Nothing found that should stop landing.

Implemented-by: claude/issue-8885-object-chart-block-props
Reviewed-by: session_014mXUNuFomfj24w7s1pZzhN

VERDICT: PASS


Generated by Claude Code

@objectstack-fleet objectstack-fleet Bot changed the title fix(plugin-charts): ObjectChartBlock declares its pre-gate props instead of (props: any) fix(plugin-charts)!: ObjectChartBlock declares its pre-gate props instead of (props: any) Sep 25, 2026
@objectstack-fleet
objectstack-fleet Bot marked this pull request as ready for review September 25, 2026 10:13
@objectstack-fleet
objectstack-fleet Bot added this pull request to the merge queue Sep 25, 2026
Merged via the queue into main with commit 47ba790 Sep 25, 2026
45 checks passed
@objectstack-fleet
objectstack-fleet Bot deleted the claude/issue-8885-object-chart-block-props branch September 25, 2026 10:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

2 participants