Skip to content

feat(types): declare ObjectKanbanSchema.groupBy and .limit, retire groupField on both faces (objectui#7322 item 1) - #7774

Merged
os-justin merged 3 commits into
mainfrom
claude/issue-7322-object-kanban-group-by-limit
Sep 5, 2026
Merged

os-justin merged 3 commits into
mainfrom
claude/issue-7322-object-kanban-group-by-limit

Conversation

@os-justin

Copy link
Copy Markdown
Collaborator

Refs #7322 (item ①). Item ② — ObjectKanbanComponentProps.schema in packages/plugin-kanban — is not addressed here; it lands in domain:ui after this is on main, and #7322 stays open for it.

What this does

ObjectKanbanSchema now declares the two keys the object-kanban renderer reads and retires the one it never read, on BOTH published faces:

key TS face (packages/types/src/objectql.ts) zod face (packages/types/src/zod/objectql.zod.ts)
groupBy groupBy: string — REQUIRED z.string()
limit limit?: number z.number().int().positive().optional()
groupField groupField?: never — @deprecated RETIRED (objectui#7322) — author groupBy (the TimelineSchema.timeScale shape, #6355) retirementTombstone('RETIRED (objectui#7322) — groupField is not read by the object-kanban renderer; author groupBy. (The view-level kanban.groupField alias is unaffected.)')

Every other member and its docblock is unchanged; member order is the same on both faces. The tombstone stays a MEMBER of the mirror shape, so the parity ratchet's key sets stay equal and an authored groupField is refused BY NAME at its own path (not stripped, not admitted).

Plus: the row-cap block on content/docs/plugins/plugin-kanban.mdx is annotated const board: ObjectKanbanSchema = { … } with import type { ObjectKanbanSchema } from '@object-ui/types' (the page's semicolon-free import style) — triage's completion signal; the one in-repo fixture that authored groupField on this node now authors groupBy; a new pin packages/types/src/__tests__/object-kanban-group-by-limit-7322.test.ts; a changeset (@object-ui/types: minor, "Breaking for authored metadata").

Measured on the branch base (53ded82b; the two faces are byte-identical on the merge-base tip 2760075f)

Read sites (packages/plugin-kanban/src/ObjectKanban.tsx): schema.groupBy at 13 sites — lane materialisation :601, :602, :613, :625, :626, :631, :640, :641, deps :649, card moves :747, :837, :865, :895; schema.limit at :264 ($top: schema.limit ?? DEFAULT_KANBAN_LIMIT, DEFAULT_KANBAN_LIMIT = 100 at :71) and :291 (deps). groupField: 0 hits under packages/plugin-kanban/ (control: the 13 groupBy hits in the same query).

Before → after, from source, both entry paths (ObjectKanbanSchema.safeParse and safeValidateSchema):

document before after
{ type, objectName, groupBy: 'status', limit: 20 } — the documented shape REFUSED at groupField (required, missing) accepted; groupBy and limit survive
{ …, groupField: 'status' } — the old declared shape accepted (grouped nothing at runtime) REFUSED at groupField, message names groupBy; and at groupBy (required)
{ …, groupField, groupBy } accepted REFUSED at groupField
{ …, groupBy: 42 } / { …, limit: 'twenty' } masked by the groupField refusal; under .passthrough() the wrong-typed value was admitted unexamined REFUSED at groupBy / at limit
{ type, objectName } — lane-less REFUSED at groupField REFUSED at groupBy
{ …, laneField: 42 } — control, a key the renderer does not read admitted, survives admitted, survives (unknown-key policy byte-identical; BaseSchema untouched, #5155)

groupBy required-ness measurement (the dispatch's open question): declared REQUIRED. Evidence: the retired contract required a lane field; the renderer's if (!schema.groupBy) branches at :601 / :613 are defensive early-returns; the docs page has exactly 1 object-kanban node (:159) and it authors groupBy; packages/plugin-kanban tests carry 20 object-kanban node literals, 19 author groupBy, and the one that does not (registration.test.tsx:32, { type: 'object-kanban' }) mocks ./ObjectKanban wholesale and tests only that the renderer wrapper forwards dataSource — not a lane-less board; ElementDataSourceGate (packages/react) maps a bound dataSource.object onto objectName and never derives a lane key, and its own object-kanban case authors groupBy: 'status' next to the binding. Two readings considered and NOT counted as a lane-less mode: content/docs/utilities/data-objectstack.mdx:322 is a json fragment (not compiled, not validated) that omits groupBy AND objectName — an illustration of the binding keys, never a complete node under the old contract either; and ListView.tsx:2411 can emit a runtime-generated node with groupBy: undefined until objectDef loads (ADR-0085 then fills it from the object's lifecycle field) — a typed-any adapter output, not authored metadata. If the PM reads either as a documented lane-less mode, groupBy?: string is a one-line change on each face plus the two required-ness pins.

Corpus rewrite count. Named docs / app corpus (plugin-kanban.mdx, guide/data-source.md, guide/react-pages.md, utilities/data-objectstack.mdx, apps/console/src/register-plugins.ts and its tests): 2 object-kanban node literals, 0 author groupField, 0 rewritten. packages/** test files: 24 object-kanban node literals across 16 files, 1 authors groupField (kanban-conditional-formatting.test.ts:22) → rewritten to groupBy; the other 23 untouched. skills/objectui/guides/*: 2 prose mentions, 0 node literals.

Node-local. The view-level groupField alias is live and untouched: packages/core/src/utils/normalize-list-view.ts:191, packages/plugin-list/src/ListView.tsx:1462 / :1816 / :2091, packages/plugin-view/src/ObjectView.tsx:1234, and the KanbanConfig.groupField declaration in the same zod file (objectql.zod.ts:352). The pin reads all four sites plus that declaration off disk as a control.

Runtime reach of the tombstone. SchemaRenderer runs @object-ui/core's structural validateSchema (no zod); the zod validator is reached by the CLI validate / check commands, the VS Code extension and tests. Boards render exactly as before.

Parity

Key sets on both faces move together (groupBy, limit added; groupField kept as a tombstone). WiderThanDeclared (the fifth ledger, #7758) / NarrowerThanDeclared / UnmirroredDeclared: undefined vs undefined, string vs string, number | undefined vs number | undefined — no ledger row needed, none added. Measured on the tip that already carries #7758.

Gates (exit captured before any pipe; verdict lines quoted)

gate command exit head verdict line
build pnpm --filter @object-ui/types build (verify lock) 0 d7250015 ✓ dist completeness: 1 package(s) complete (124 emitted files verified)
tests pnpm exec vitest run --maxWorkers=2 packages/types/ (verify lock) 0 d7250015 Test Files 122 passed (122) · Tests 2116 passed (2116) (on b99b8ad2, before the merge: 122 / 2109)
tests pnpm exec vitest run --maxWorkers=2 packages/plugin-kanban/ (verify lock; the plugin's tests author the node shape) 0 d7250015 Test Files 22 passed (22) · Tests 112 passed (112)
type-check pnpm --filter @object-ui/types type-check (tsc --noEmit, tsconfig.examples.json, tsconfig.test.json — the last compiles the pin's type-level legs and its two @ts-expect-error lines) 0 d7250015 no error TS line
type-check pnpm --filter @object-ui/plugin-kanban type-check, read-only, against the dependency-closure dists (pnpm exec turbo run build --filter='@object-ui/plugin-kanban^...' --concurrency=2 under the lock: Tasks: 12 successful, 12 total, 1m15s shared-box) 0 d7250015 no error TS line — the plugin imports no ObjectKanbanSchema and resolves @object-ui/types through the root tsconfig paths to SOURCE, so this gate is structurally independent of the diff
lint pnpm --filter @object-ui/types lint 0 d7250015 ✖ 268 problems (0 errors, 268 warnings) — 0 findings on the two touched test files
changesets node scripts/check-changeset-presence.mjs · check-changeset-fixed.mjs · check-changeset-no-major.mjs 0 · 0 · 0 d7250015 ✅ 4 source file(s) of 1 released package(s) changed, and this change declares 1 changeset(s) · ✅ All workspace packages are in the changeset fixed group. · ✅ No changeset declares a major bump.
bytes node scripts/check-control-bytes.mjs 0 d7250015 ✅ check-control-bytes: OK (scanned 6329 tracked text file(s); skipped 85 binary)
spec pnpm check:spec-symbols 0 d7250015 ✅ spec member citations: no comment cites a key its spec symbol does not declare.
docs pnpm check:doc-types · pnpm check:doc-fences · node scripts/check-doc-links.mjs 0 · 0 · 0 d7250015 ✅ Every documented component type is registered. · ✅ check:doc-fences — every TypeScript block in 227 document(s) is fenced ts/tsx/typescript … · Links are valid across 17 scan roots.
governed node scripts/pm/check-governed-merges.mjs --test … (objectstack, the six paths) 0 — 0 of 6 path(s) hit the register — NOT governed

NOT MEASURED locally, declared: pnpm check:doc-snippets — its --build-filter closure is 26 packages, which the shared box cannot build inside a foreground turn; CI's Doc Snippet Type Check is the measurement. Narrowed measurement in its place: the annotated block, extracted from the page and compiled with the gate's own COMPILER_OPTIONS (ES2020 / ESNext / bundler / react-jsx / strict / skipLibCheck / types: []) and its paths derivation (@object-ui/types → packages/types/dist/index.d.ts, rebuilt from this branch): tsc exit=0; the same block against a dist rebuilt from the BASE faces: TS2741: Property 'groupField' is missing in type … but required in type 'ObjectKanbanSchema' — the card's own diagnostic, reproduced. pnpm --filter @object-ui/console type-check: skipped — apps/console does not author the node (register-plugins.ts:120 registers it; the two tests list the type name in string arrays).

Ablation (red-first, both faces reverted to 53ded82b, restore proven)

Run 1's docs leg was VOID — the probe tsconfig used baseUrl, which TypeScript 6 refuses (TS5101) before compiling anything — and was re-run; run 2 is the reading. Mutation on disk: objectql.ts blob 2714449218… (= BASE, ≠ HEAD 1db955cf26…), objectql.zod.ts blob 70fec93c61… (= BASE, ≠ HEAD 45c5facc52…); anchors: groupField: string; x1, groupField?: never x0, retirementTombstone('RETIRED (objectui#7322) x0, groupBy in the zod block x0. Legs: the pin + fixture + parity from source → vitest exit=1, Test Files 2 failed | 1 passed (3), Tests 18 failed | 33 passed (51) (parity stays green: the reverted faces are a consistent pair); tsc -p tsconfig.test.json → exit 2, 8 errors — six TS2344 on the type-level pins, TS2741 on the documented literal, TS2578 unused @ts-expect-error; a dist rebuilt from the reverted faces (marker x0, groupField: string x1) → the docs block fails TS2741. Restore by git checkout HEAD -- … under trap … EXIT INT TERM: blobs equal HEAD (1db955cf26…, 45c5facc52…), git diff HEAD empty, dist rebuilt from HEAD (marker objectui#7322 x4 in objectql.d.ts, x2 in zod/objectql.zod.js, groupField?: never x1).

Serial constraints / overlap

Out of scope — filed, not touched here

Not in this PR by dispatch: item ② (packages/plugin-kanban/**), the view-level alias sites, BaseSchema's index signature (#5155), the declarative KanbanSchema.

Angle-bracket shapes are spelled out in words throughout this body because GitHub's sanitizer strips tag-shaped fragments (see AGENTS.md).

Generated by Claude Code


Generated by Claude Code

…oupField on both faces

The object-kanban renderer reads schema.groupBy (thirteen sites) and
schema.limit (the $top row cap); groupField had zero read sites under
packages/plugin-kanban yet was the REQUIRED lane key on both published
faces, so the documented working node failed validation and a node
authored from the declaration grouped nothing, with no diagnostic.

- objectql.ts: groupBy: string (required), limit?: number, and a
  groupField?: never tombstone in the TimelineSchema.timeScale shape;
  node-local — the view-level kanban.groupField alias is untouched
- objectql.zod.ts: groupBy / limit declared and validated; groupField is
  a retirementTombstone() whose message names groupBy
- docs: the row-cap block on plugin-kanban.mdx is annotated
  ObjectKanbanSchema and imports it from @object-ui/types
- fixture: kanban-conditional-formatting.test.ts authors groupBy
- pin: object-kanban-group-by-limit-7322.test.ts
- changeset: @object-ui/types minor, breaking for authored metadata

Card: objectui#7322, item 1 of 2 (item 2 is the plugin's prop type and
lands separately).

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01BAZFhALsQsGqxui8sNqM8s
@github-actions

github-actions Bot commented Sep 5, 2026

Copy link
Copy Markdown
Contributor

✅ Console Performance Budget

Metric Value Budget
Eager closure (gzip, 50 chunks) 3187.3 KB 3191.4 KB
Main entry chunk (gzip) 143.2 KB 350 KB
Entry file index-CDNWPRmD.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) 15.67KB 5.75KB
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) 25.05KB 9.16KB
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.46KB 3.43KB
auth (index.js) 3.19KB 1.44KB
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) 5.13KB 2.35KB
collaboration (CommentThread.js) 26.08KB 7.56KB
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) 510.63KB 116.21KB
core (index.js) 6.96KB 2.79KB
create-plugin (index.js) 10.08KB 3.26KB
data-objectstack (index.js) 182.08KB 50.62KB
fields (index.js) 242.44KB 61.25KB
i18n (LocalizationContext.js) 1.76KB 0.96KB
i18n (builtinAggregateLabels.js) 0.86KB 0.49KB
i18n (currency.js) 1.22KB 0.64KB
i18n (fallbackInterpolation.js) 6.25KB 2.77KB
i18n (i18n.js) 4.28KB 1.75KB
i18n (index.js) 3.65KB 1.47KB
i18n (pickLocalized.js) 7.62KB 3.26KB
i18n (provider.js) 26.89KB 9.04KB
i18n (useDisplayLocale.js) 2.85KB 1.45KB
i18n (useObjectLabel.js) 34.34KB 9.17KB
i18n (useSafeTranslation.js) 5.60KB 2.33KB
layout (index.js) 38.98KB 10.98KB
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) 2.53KB 0.85KB
mobile (useResponsive.js) 0.72KB 0.42KB
mobile (useSpecGesture.js) 4.39KB 1.66KB
mobile (useTouchTarget.js) 1.01KB 0.54KB
permissions (MePermissionsProvider.js) 11.71KB 4.29KB
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) 5.12KB 1.74KB
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) 15.75KB 3.80KB
plugin-calendar (index.js) 47.87KB 13.31KB
plugin-charts (index.js) 70.92KB 19.75KB
plugin-chatbot (index.js) 196.19KB 46.37KB
plugin-dashboard (index.js) 132.87KB 34.68KB
plugin-designer (index.js) 212.86KB 43.19KB
plugin-detail (index.js) 250.55KB 64.06KB
plugin-editor (index.js) 2.46KB 1.10KB
plugin-form (index.js) 132.87KB 32.66KB
plugin-gantt (index.js) 167.26KB 41.00KB
plugin-grid (index.js) 209.29KB 56.78KB
plugin-kanban (index.js) 52.71KB 14.55KB
plugin-list (index.js) 113.28KB 27.59KB
plugin-map (index.js) 20.44KB 6.78KB
plugin-markdown (index.js) 13.93KB 4.81KB
plugin-report (index.js) 43.59KB 11.97KB
plugin-timeline (index.js) 30.84KB 8.85KB
plugin-tree (index.js) 9.20KB 3.19KB
plugin-view (index.js) 85.24KB 20.94KB
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) 81.07KB 26.86KB
react (data-invalidation.js) 5.05KB 2.08KB
react (index.js) 4.63KB 2.18KB
react (schema-input.js) 2.32KB 1.24KB
react (spec-input.js) 0.20KB 0.18KB
sdui-parser (codegen.js) 5.41KB 2.34KB
sdui-parser (dashboard-widget-options.js) 3.08KB 1.30KB
sdui-parser (index.js) 4.93KB 2.24KB
sdui-parser (input-type.js) 2.84KB 1.40KB
sdui-parser (parse.js) 20.57KB 5.88KB
sdui-parser (provenance.js) 3.66KB 1.82KB
sdui-parser (types.js) 0.28KB 0.23KB
sdui-parser (validate.js) 10.35KB 3.60KB
types (ai.js) 0.20KB 0.17KB
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.74KB 1.41KB
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) 4.73KB 2.28KB
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 (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

Copy link
Copy Markdown
Collaborator Author

Gate re-run on the current head 4593cde6 (a second origin/main merge, past 91f92768 = #7764 + #7766, neither touching this PR's surface; the diff against origin/main is unchanged: 6 files, +537 / −6). The body's table above was measured on d7250015; this comment supersedes it for the head, and is a comment rather than a body edit because a body PATCH downgrades the session-URL footer.

gate command exit head verdict line
build pnpm exec turbo run build --filter='@object-ui/plugin-kanban^...' --concurrency=2 (verify lock; includes @object-ui/types) 0 4593cde6 Tasks: 12 successful, 12 total · 11 dist completeness lines · 1m12s shared-box
tests pnpm exec vitest run --maxWorkers=2 packages/types/ (verify lock) 0 4593cde6 Test Files 122 passed (122) · Tests 2116 passed (2116)
tests pnpm exec vitest run --maxWorkers=2 packages/plugin-kanban/ (verify lock) 0 4593cde6 Test Files 22 passed (22) · Tests 112 passed (112)
type-check pnpm --filter @object-ui/types type-check 0 4593cde6 no error TS line
type-check pnpm --filter @object-ui/plugin-kanban type-check (read-only, against the rebuilt closure dists) 0 4593cde6 no error TS line
lint pnpm --filter @object-ui/types lint 0 4593cde6 ✖ 268 problems (0 errors, 268 warnings) — 0 findings on the touched test files
docs block the annotated row-cap block compiled with the doc-snippet gate's COMPILER_OPTIONS + paths against packages/types/dist 0 4593cde6 tsc exit=0 against ./dist/index.d.ts (4593cde6 tree; dist marker objectui#7322 x4)
changesets check-changeset-presence.mjs · check-changeset-fixed.mjs · check-changeset-no-major.mjs 0 · 0 · 0 4593cde6 ✅ 4 source file(s) of 1 released package(s) changed, and this change declares 1 changeset(s) · ✅ privatePackages declared · ✅ No changeset declares a major bump.
bytes / spec / docs check-control-bytes.mjs · check:spec-symbols · check:doc-types · check:doc-fences · check-doc-links.mjs 0 ×5 4593cde6 ✅ check-control-bytes: OK (scanned 6333 tracked text file(s); skipped 85 binary) · ✅ spec member citations … · ✅ Every documented component type is registered. · ✅ check:doc-fences … · Links are valid across 17 scan roots.
governed check-governed-merges.mjs --test (objectstack, the six paths) 0 — 0 of 6 path(s) hit the register — NOT governed

Still NOT MEASURED locally: pnpm check:doc-snippets (26-package closure) — CI's Doc Snippet Type Check is the measurement. Labels after the union write, read back: package: types, tests, needs:contract-review.


Generated by Claude Code

@github-actions

github-actions Bot commented Sep 5, 2026

Copy link
Copy Markdown
Contributor

✅ Console Performance Budget

Metric Value Budget
Eager closure (gzip, 50 chunks) 3187.3 KB 3191.4 KB
Main entry chunk (gzip) 143.2 KB 350 KB
Entry file index-ClYlhEWO.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) 15.67KB 5.75KB
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) 25.05KB 9.16KB
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.46KB 3.43KB
auth (index.js) 3.19KB 1.44KB
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) 5.13KB 2.35KB
collaboration (CommentThread.js) 26.08KB 7.56KB
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) 510.61KB 116.20KB
core (index.js) 6.96KB 2.79KB
create-plugin (index.js) 10.08KB 3.26KB
data-objectstack (index.js) 182.08KB 50.62KB
fields (index.js) 242.44KB 61.25KB
i18n (LocalizationContext.js) 1.76KB 0.96KB
i18n (builtinAggregateLabels.js) 0.86KB 0.49KB
i18n (currency.js) 1.22KB 0.64KB
i18n (fallbackInterpolation.js) 6.25KB 2.77KB
i18n (i18n.js) 4.28KB 1.75KB
i18n (index.js) 3.65KB 1.47KB
i18n (pickLocalized.js) 7.62KB 3.26KB
i18n (provider.js) 26.89KB 9.04KB
i18n (useDisplayLocale.js) 2.85KB 1.45KB
i18n (useObjectLabel.js) 34.34KB 9.17KB
i18n (useSafeTranslation.js) 5.60KB 2.33KB
layout (index.js) 38.98KB 10.98KB
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) 2.53KB 0.85KB
mobile (useResponsive.js) 0.72KB 0.42KB
mobile (useSpecGesture.js) 4.39KB 1.66KB
mobile (useTouchTarget.js) 1.01KB 0.54KB
permissions (MePermissionsProvider.js) 11.71KB 4.29KB
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) 5.12KB 1.74KB
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) 15.75KB 3.80KB
plugin-calendar (index.js) 47.87KB 13.31KB
plugin-charts (index.js) 70.92KB 19.75KB
plugin-chatbot (index.js) 196.19KB 46.37KB
plugin-dashboard (index.js) 132.88KB 34.69KB
plugin-designer (index.js) 212.86KB 43.19KB
plugin-detail (index.js) 250.55KB 64.06KB
plugin-editor (index.js) 2.46KB 1.10KB
plugin-form (index.js) 132.87KB 32.66KB
plugin-gantt (index.js) 167.26KB 41.00KB
plugin-grid (index.js) 209.29KB 56.78KB
plugin-kanban (index.js) 52.71KB 14.55KB
plugin-list (index.js) 113.28KB 27.59KB
plugin-map (index.js) 20.44KB 6.78KB
plugin-markdown (index.js) 13.93KB 4.81KB
plugin-report (index.js) 43.59KB 11.97KB
plugin-timeline (index.js) 30.84KB 8.85KB
plugin-tree (index.js) 9.20KB 3.19KB
plugin-view (index.js) 85.24KB 20.94KB
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) 81.07KB 26.86KB
react (data-invalidation.js) 5.05KB 2.08KB
react (index.js) 4.63KB 2.18KB
react (schema-input.js) 2.32KB 1.24KB
react (spec-input.js) 0.20KB 0.18KB
sdui-parser (codegen.js) 5.41KB 2.34KB
sdui-parser (dashboard-widget-options.js) 3.08KB 1.30KB
sdui-parser (index.js) 4.93KB 2.24KB
sdui-parser (input-type.js) 2.84KB 1.40KB
sdui-parser (parse.js) 20.57KB 5.88KB
sdui-parser (provenance.js) 3.66KB 1.82KB
sdui-parser (types.js) 0.28KB 0.23KB
sdui-parser (validate.js) 10.35KB 3.60KB
types (ai.js) 0.20KB 0.17KB
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.74KB 1.41KB
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) 4.73KB 2.28KB
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 (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

Copy link
Copy Markdown
Collaborator Author

needs:contract-review cleared (2026-09-05T16:54Z) — provenance: in-seat contract review at tier PASSED on head 4593cde6, recorded on the card as objectui#7322 comment 5553334000 (carries the Implemented-by: / Reviewed-by: pair, the three-item judgment, and the ruling on the groupBy required-ness question: A, REQUIRED stays). Cleared by the domain:spec execution seat, session session_01BAZFhALsQsGqxui8sNqM8s, via read-current → write-union-minus-target → read-back (read-back at 16:54Z: package: types, tests; the carrier absent). The flip waits for every check run on 4593cde6 to complete green (farm started 16:50Z; re-check armed). If this head moves, the label is re-hung and the delta re-reviewed before any flip.


Generated by Claude Code

@os-justin
os-justin marked this pull request as ready for review September 5, 2026 17:07
@os-justin
os-justin added this pull request to the merge queue Sep 5, 2026
Merged via the queue into main with commit 669d71b Sep 5, 2026
34 checks passed
@os-justin
os-justin deleted the claude/issue-7322-object-kanban-group-by-limit branch September 5, 2026 17:23
os-justin pushed a commit that referenced this pull request Sep 5, 2026
… objectui#7322 landed

objectui#7322 (PR #7774, 669d71b) made groupBy the required lane key on
ObjectKanbanSchema and retired groupField as a never-typed tombstone. The
ts-expect-error control in object-calendar-record-source-7313.test.ts wrote
groupField: 'status', so after the merge the literal would miss two members and
carry a tombstone violation — the directive would be satisfied by omissions
unrelated to objectName and stop saying anything about it. It now supplies
groupBy so objectName is again the one member the literal is missing.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01BAZFhALsQsGqxui8sNqM8s
This was referenced Sep 25, 2026
huangyiirene pushed a commit that referenced this pull request Sep 30, 2026
…array (objectui#11070)

`@objectstack/spec` 17.5.0 types `ElementDataSourceSchema.filter` as the
ViewFilterRule array (`[{ field, operator, value }]`, migration
`element-data-source-and-object-block-filter-rule-array`), and this branch
declares `dataSource` by reference to that schema. Three literals still wrote
the record form, which the merge queue's run on 17.5.0 refused:

- `strict-face-read-keys-11070.test.ts`: `BINDING`, used by the seven
  `BOUND_NODES` pins, moves to the rule array. The pins still measure only
  that the key is declared.
- `object-kanban-record-source-7780.test.ts` ("PR #7774's two EXCLUDED
  readings"): the fragment moves to the rule array, so the refusal it asserts
  is again the record-source rule's `RECORD_SOURCE_REQUIRED`, not the filter
  shape.
- `content/docs/utilities/data-objectstack.mdx`: the Kanban fence that pin
  mirrors moves to the same form, so the two do not diverge.

Refs objectui#11070

Claude-Session: https://claude.ai/code/session_012UwY3ahMixEFkfTUxMVkYm
Co-authored-by: Claude <noreply@anthropic.com>
akarma-synetal pushed a commit to akarma-synetal/objectui that referenced this pull request Oct 7, 2026
…(objectui#11070) (objectstack-ai#11115)

Refs objectstack-ai#11070
Clause-②: yes — declaring a read key widens the strict accept set of the
published `StrictAnyComponentSchema` (`@object-ui/types/zod`); a
runtime-only ruling instead corrects corpus documents. The PR waits for
the director seat's contract review.

`Refs`, not a closing keyword, on purpose. Of the card's 32 pairs, 20
leave class (ii) here: 14 are declared, and 6 leave because their
documents are corrected. The other 12 stay on objectui#11070 (see
"Remaining on objectui#11070"), so the card stays open after this lands.
Two rounds are in this PR; round 2 carries the seat's answers to round
1's questions. Draft, for the director seat's contract review; the dev
does not mark it ready.

## What changed

- **Declared on the TypeScript face and the zod mirror.**
  - `form.showSubmit` on `FormSchema`: a boolean, default `true`.
- `form.fields[]` on `FormField` / `FormFieldSchema`: `multiple`,
`rows`, `accept`, `dimensions`, `reference`, `min`, `max`, `minLength`,
`maxLength` and `pattern`. A hand-authored form has no object schema
behind it, so the renderer hands each field widget the field ENTRY
ITSELF as its metadata carrier (`field: field.field || field` at the one
`renderFieldComponent` call in `renderers/form/form.tsx`). The built-in
`input` / `textarea` branches spread the entry onto the native control.
All but `pattern` are the spec's `FieldSchema` members by reference, on
both faces: `SpecField['KEY']` on the TypeScript face, and
`stripImportedDefaults(SpecFieldSchema).shape.KEY` on the zod face.
`pattern` is a string: the spec does not declare it, and JSON has no
`RegExp`. It is also the field-level spelling that the
`validation.pattern` refusal already directs JSON authors to. `multiple`
is read by the `file`, `image`, `lookup` and `user` widgets; the
built-in `select` branch still ignores it (objectui#11116). `reference`
is round 2: it is the spec spelling of a lookup's target, which the
`lookup` and `user` widgets read beside the legacy `reference_to`, and
`reference_to` stays refused by the strict face.
- `dataSource` on `object-grid`, `object-form`, `object-kanban` and
`list-view`, and (round 2, the seat folding in the same family under
objectui#6678) on `object-gantt`, `object-map` and `object-calendar`.
Each is the spec's `ElementDataSourceSchema`, by reference, as
`element:number` already declares it in `public-blocks.zod.ts`. Every
one of these registrations is gate-wrapped (`elementDataSourceBlock`),
so `ElementDataSourceGate` reads the binding off the node and lands its
`object` on `objectName`. The tolerant face still refuses the documented
bindings on the nodes that require their own `objectName` / `mode` /
record source, and nothing here changes that (objectui#11117).
- **`object-chart`'s `dataSource` is withdrawn, and pinned as still
refused (round 2).** `buildComponentScope` in
`renderers/layout/react-page.tsx` builds every public data block's node
as `{ dataSource, ...props, type: tag }`, with the host's ADAPTER (or
`null`) under `dataSource`. `object-chart-react-tier-node-10770.test.ts`
pins that node, with `dataSource: null`, as valid on the mirror and
through `safeValidateSchema`. Declaring the binding refused it: 7 red.
See "Remaining on objectui#11070".
- **`list-view`'s `dataSource` in app-shell's relay census (round 2; the
claim widened to this one line).**
`ObjectView.relayRungCensus-7559.test.ts` gains one `ABSENCES` entry,
`dataSource`, of kind `unread`. The reason is measured: `ListView` has
no read of `schema.dataSource`. The binding is resolved one layer up, by
the registered `list-view` renderer `ListViewBlock` through
`ElementDataSourceGate`, and `renderListView` bypasses that layer: it
renders `ListView` directly with `schema={fullSchema}` and takes the
adapter as its separate `dataSource` argument (`ds`). The census's own
`unread` check re-derives the first half on every run.
- **`object-view` slots.** `ObjectViewSchema.table` withholds
`dataSource` on both faces, as a record source the view owns. It joins
`data` / `staticData` / `bind` under the objectui#10976 rule, and the
zod twin refuses it by name. `ObjectViewSchema.form` carries it, because
that slot withholds nothing but the identity keys.
- **Documents corrected (round 2; the claim widened to exactly these).**
- `fields-lookup/basic-lookup.json` and `multi-select-lookup.json`:
`reference_to` becomes `reference`.
- `fields-password/with-minimum-length.json`: `min_length` becomes
`minLength`.
- `fields-auto-number/date-based-ticket-id.json` and
`invoice-number-format.json`: `format` is DROPPED, not renamed.
`FormField` declares no `autonumberFormat`, and nothing on the form path
reads an auto-number format: `AutoNumberField` renders the value only.
- `guide/schema-playground.md`: the flat `validation: { pattern, message
}`, which objectui#5186 removed, now reads as the field-level `pattern`
string. The dialect objectstack-ai#5186 kept cannot carry this rule in JSON, because
its `pattern.value` must be a compiled `RegExp`. The message has no
field-level spelling, so it is gone.
- `api/schema-reference.md`: the page region's `children` becomes
`components`, which is what the page renderer reads.
- `plugins/plugin-detail.mdx`: the `page:tabs` `items` move under
`properties`, the spelling the platform's producers write. ⛔ This is no
ruling on whether the flat spelling is an authoring channel for `page:`
/ `record:` blocks; that stays objectui#10872's open question.
- Round 1 also corrected `guide/objectos-integration.mdx`, whose snippet
put the adapter into `ObjectGridSchema.dataSource` (TS2741 under
`check:doc-snippets` once the binding was typed).
- **Ledger rows the declarations move, and only those.**
  - `form-field-zod-coverage` gained 10 keys.
- `zod-mirror-parity`: `SPEC_DERIVED_PAIRS` gained `FormFieldSchema` and
`ObjectKanbanSchema`. `FormFieldSchema`'s one-key `UnmirroredDeclared`
entry (`field`) is now SPEC-DERIVED by membership, so the header's split
figures and history moved with it. No ledger KEY set changed.
- `imported-defaults-8317`: `IMPORTED` gained `FieldSchema`, whose walk
reaches a fifth `z.lazy`.
- `object-view-slot-key-lists`: the source member counts moved, and
`dataSource` is classified in both slots.
- `list-view-spec-parity`: `dataSource` goes in a new
`PAGE_COMPONENT_ENVELOPE` category, checked to behave as the spec
binding.
- **Changeset:** `.changeset/11070-strict-face-read-keys.md`,
`@object-ui/types` **minor**. It names every declared key and what now
refuses. Among those refusals: a node whose `dataSource` holds an
adapter or `null` (the react-page wrapper's in-memory nodes, which are
rendered, not validated) is refused by `safeValidateSchema` on the
declared blocks.
- ⛔ Not touched: `strict-authoring-face.ts`, the `.passthrough()` of the
rendering face, the class (iii) pairs (objectui#6152), PR objectstack-ai#11069, and
the widgets' dual reads.
- Merged `origin/main` once (`6fe4b631e`, no rebase), because main had
moved `api/schema-reference.md`. At `d1e683fa1` main has no further
change on this PR's paths.

## M3, before and after

My port of PR objectstack-ai#11069's M3 classifier (a scratch script, never committed)
is `scripts/measure-strict-authoring-face.mjs`'s corpus loaders plus
objectstack-ai#11069's `findUndeclaredKeys` (at `a11f73347`). It runs over the SHIPPED
`StrictAnyComponentSchema` from a freshly built `packages/types/dist`.
At base it read exactly the card's figures.

| reading | base `88fbd793d` | head `42feeeb25` |
| --- | --: | --: |
| node documents | 588 | 588 |
| refused by the strict face | 158 | 96 |
| of them strict-only | 120 | 58 |
| refused by the tolerant face | 38 | 38 (the same documents) |
| **class (ii)** pairs / occurrences / strict-only | **32 / 149 / 141**
| **12 / 38 / 38** |
| class (iii) | 10 / 15 / 13 | 10 / 15 / 13 |
| class (i), M1 corpora | 47 / 69 / 49 | 47 / 69 / 49 |

The 12 left are exactly the seat's expectation: the 9 dashboard pairs,
`return_type`, `summary_type` and `columns`. No pair entered any class.
The tolerant face refused the same 38 documents both times. The
corrected documents that it refused before are still refused for OTHER
reasons: `schema-reference`'s page for `pageType: "detail"`, and
`schema-playground`'s form for its string `options`.

## Per pair

Read sites are cited by symbol and quoted expression, not by line
(AGENTS.md objectstack-ai#11). "Probe" means a scratch test, never committed. It
rendered each corpus document through the real `SchemaRenderer` and
registry, with `@object-ui/fields` registered, once with the key and
once without it, and compared the settled markup.

| # | pair | read site | docs | route | ruling / evidence |
| --: | --- | --- | --: | --- | --- |
| 1 | `form` · `showSubmit` | form renderer: `showSubmit = true` in the
schema destructure; submit button under `{showSubmit && (` | 76 | **(a)
declared** | probe: the submit button appears only when the key is
removed |
| 2 | `form` · `fields[].multiple` | `FileField` / `ImageField`
(`?.multiple`), `LookupField` (`fieldMeta?.multiple`), `UserField`
(delegates) | 6 | **(a) declared** | probe: `input multiple` on file and
image |
| 3 | `form` · `fields[].rows` | built-in `textarea` branch (spread);
`RichTextField` (`richField?.rows \|\| 8`, markdown) | 5 | **(a)
declared** | probe: `rows="6"` against `rows="8"` or none |
| 4 | `form` · `fields[].accept` | `FileField`
(`fileField.accept.join(',')`) | 1 | **(a) declared** | probe:
`accept="application/pdf"` |
| 5 | `form` · `fields[].dimensions` | `VectorField`
(`vectorField?.dimensions \|\| value.length`) | 2 | **(a) declared** |
probe: `(768D)` against `(5D)` |
| 6 | `form` · `fields[].min` | `NumberField` (`numberField?.min`);
built-in `input` spread | 2 | **(a) declared** | probe: native `min`.
The form sets no `noValidate` |
| 7 | `form` · `fields[].max` | as `min` | 2 | **(a) declared** | probe:
native `max` |
| 8 | `form` · `fields[].minLength` | built-in `input` / `textarea`
spread | 1 | **(a) declared** | probe: native `minlength` |
| 9 | `form` · `fields[].maxLength` | built-in `input` branch
(`maxLength ?? max_length`), `textarea` branch and counter | 1 | **(a)
declared** | probe: native `maxlength` |
| 10 | `form` · `fields[].pattern` | built-in `input` spread | 1 | **(a)
declared** | probe: native `pattern`. A string |
| 11 | `form` · `fields[].return_type` | `FormulaField`
(`formulaField?.return_type \|\| 'text'`), snake only | 3 | **remaining
on objectui#11070** | spec `returnType`, which no widget reads |
| 12 | `form` · `fields[].summary_type` | `SummaryField`
(`summaryField?.summary_type \|\| 'count'`), snake only | 3 |
**remaining on objectui#11070** | spec `summaryOperations` (an object) |
| 13 | `form` · `fields[].reference_to` | `LookupField` (`reference_to
\|\| reference`), `UserField` (`reference \|\| reference_to`) | 2 |
**declared the spec's `reference`; fixtures corrected** | seat's answer
A. `reference_to` stays refused by the strict face |
| 14 | `form` · `fields[].min_length` | `buildValidationRules`
(`minLength ?? min_length`), object-bound paths only | 1 | **fixture
corrected to `minLength`** | seat's answer A. `min_length` stays refused
|
| 15 | `form` · `fields[].columns` (grid field) | `GridField`
(`cfg.columns`) | 3 | **remaining on objectui#11070** |
`GridColumnDefinition` is not the shape `GridField` reads |
| 16 | `form` · `fields[].format` (auto-number) | none on this path | 2
| **documents corrected (dropped)** | probe: identical markup. No
`autonumberFormat` is declared or read |
| 17 | `form` · `fields[].validation.message` | the form renderer only
REPORTS it as a rule that validates nothing | 1 | **document corrected**
| the regex is now the field-level `pattern` |
| 18–23 | `dashboard` · `widgets[].options.` `data` / `xField` /
`yField` / `value` / `description` / `trend` | `DashboardGridLayout` /
`DashboardRenderer` (`options.data`, `options.xField \|\| 'name'`,
`options.yField \|\| 'value'`, `options.value ?? …`; `{ ...widget,
...options }`) | 7 / 6 / 6 / 5 / 1 / 1 | **remaining on objectui#11070**
(to a decision) | the spec's widget `options` is an OPEN object the
strict face closes; TS types `options` as `unknown` |
| 24–26 | `dashboard` · `widgets[].component.` `chartType` / `xAxisKey`
/ `series` | `DashboardRenderer` renders `widget.component` as a node |
1 / 1 / 1 | **remaining on objectui#11070** | the slot is `BaseSchema`
by the objectui#8344 / objectstack#8593 routing |
| 27 | `object-grid` · `dataSource` | `ElementDataSourceGate` (binding
read off the node; `object` lands on `objectName`) | 2 | **(a)
declared** | objectui#6678 |
| 28 | `object-form` · `dataSource` | same gate (`ObjectFormRenderer`) |
1 | **(a) declared** | same |
| 29 | `object-kanban` · `dataSource` | same gate
(`ObjectKanbanRenderer`) | 1 | **(a) declared** | same |
| 30 | `list-view` · `dataSource` | same gate (`ListViewBlock`) | 2 |
**(a) declared** (round 2) | census entry `unread`, reason measured
above |
| 31 | `page` · `regions[].children` | none: the page renderer reads
`region.components` | 1 | **document corrected** | now `components` |
| 32 | `page:tabs` · `items` (flat) | `PageTabsRenderer`
(`schema?.items`, the hoisted key) | 1 | **document corrected** | now
`properties.items`. No ruling on the flat position (objectui#10872) |

Outside the 32-pair population, the same declaration (round 2, same
family) also lands on `object-gantt`, `object-map` and `object-calendar`
· `dataSource`. The strict face refused it by name there, measured,
while the tolerant face accepted the same documents.

## Remaining on objectui#11070

- `fields[].return_type` and `fields[].summary_type`: snake_case
spellings with no read of the spec's spelling to declare instead.
- The grid field's `columns`: the element shape is undecided.
- The 9 dashboard pairs: to a decision.
- `object-chart` · `dataSource`: withdrawn in round 2 (see "What
changed"). The react-page wrapper writes the adapter on the node;
SchemaRenderer strips it, and the gate ignores a non-binding value.

## Tests and gates

Round 2 figures unless marked. Commits: `863d71e87` (declarations),
`184d3c165` (documents), `e7afb7d96` (changeset), `42feeeb25` (the
exact-type pin; head). Exit codes were captured before any pipe.

| gate | commit | exit | verdict |
| --- | --- | --: | --- |
| `pnpm --filter @object-ui/types type-check` (including `tsc -p
tsconfig.test.json`, which judges the parity ledgers) | `42feeeb25` | 0
| clean |
| `pnpm exec vitest run packages/types/` | `42feeeb25` | 0 | `Test Files
282 passed (282)` · `Tests 6506 passed (6506)` |
| `pnpm --filter @object-ui/types build` | `863d71e87` source | 0 |
`dist completeness: 1 package(s) complete` |
| downstream consumers `type-check`, against the rebuilt `dist`: `core`,
`components`, `fields`, `react`, `plugin-form`, `plugin-grid`,
`plugin-kanban`, `plugin-list`, `plugin-view`, `app-shell`,
`plugin-designer`, `plugin-detail`, `plugin-calendar`, `plugin-gantt`,
`plugin-map`, `plugin-timeline`, `plugin-tree`, `plugin-dashboard`,
`sdui-parser`, `plugin-charts` | `184d3c165` | 0 | 20 of 20 `type-check:
Done` |
| app-shell's census plus every `elementDataSource` reader test,
`ListViewBlock`, `ObjectView.tableSlotRelay-10976`, `gridNonAuthorKeys`,
and every test outside `packages/types` that imports
`@object-ui/types/zod` (81 files) | `184d3c165` | 0 | `Test Files 81
passed (81)` · `Tests 1032 passed (1032)` |
| `examples/schema-catalog/`, `packages/cli/`, `packages/core/` |
`184d3c165` | 0 | `Test Files 242 passed (242)` · `Tests 6184 passed /
27 skipped` |
| `packages/components/src/renderers/form/` | `184d3c165` | 0 | `Test
Files 67 passed (67)` · `Tests 459 passed / 17 skipped` |
| `packages/fields/` | `184d3c165` | 0 | `Test Files 219 passed / 1
skipped (220)` · `Tests 3497 passed / 7 skipped` |
| `pnpm check:doc-snippets` (Doc Snippet Type Check), after building its
closure | `42feeeb25` | 0 | `681 of 681 block(s) judged, 0 failed` |
| `pnpm --filter @object-ui/types lint`, and eslint on the census file |
`42feeeb25` | 0 | 0 errors; no finding on an added line (eslint JSON
over the 11 touched types files and the census file) |
| `node scripts/check-changeset-presence.mjs` · `pnpm changeset:check` |
`42feeeb25` | 0 · 0 | declares
`.changeset/11070-strict-face-read-keys.md` · `No changeset declares a
major bump` |
| `pnpm check:changeset-claims` · `check:pending-changeset-literals` |
`42feeeb25` | 0 · 0 | report-only |
| `pnpm check:control-bytes` · `check:new-line-citations` | `42feeeb25`
| 0 · 0 | `OK (scanned 9443 tracked text file(s))` · `0 new citation(s)`
|
| `pnpm check:spec-symbols` · `check:element-data-source-declaration` ·
`check:handler-key-reads` · `check:test-path-roots` · `check:doc-types`
· `check:doc-fences` · `docs:check-links` · `check:doc-examples` ·
`check:doc-example-ids` | `42feeeb25` | all 0 | OK |
| `node scripts/check-governed-queue-guard.mjs --test` over the 22
changed paths | `42feeeb25` | 0 | `NOT GOVERNED` |

NOT MEASURED locally, left to CI: the Spec Main Shape Gate (it builds
`@objectstack/spec` main) and the repository-wide lint.

### Reverse verification

- **Ablations.** Each was predicted before the run and applied through
objectstack's `scripts/ablation-replace.mjs`, which checks that the
anchor hit, that the blob moved, and that the restore left the blob
equal to HEAD with `git diff HEAD` empty.

  | ablation | predicted | measured |
  | --- | --- | --- |
| A1 zod `FormFieldSchema.multiple` deleted (round 1) | 2 red + parity
`tsc` red | 2 red / 34 green; `tsc -p tsconfig.test.json` exit 2 |
| A2 zod `FormSchema.showSubmit` deleted (round 1) | 2 red + `tsc` red |
2 red / 34 green; `tsc` exit 2 |
| A3 zod `ObjectKanbanSchema.dataSource` renamed away (round 1) | 1 red
+ `tsc` red | 1 red / 35 green; `tsc` exit 2 |
| A4 zod `FormFieldSchema.reference` deleted | 2 red + `tsc` red | 2 red
/ 60 green; `tsc` exit 2 |
| A5 zod `ObjectGanttSchema.dataSource` renamed away | 1 red + `tsc` red
| 1 red / 61 green; `tsc` exit 2 |
| A6 zod `ListViewSchema.dataSource` renamed away | 3 red (the pin,
sanctioned-local, envelope) + `tsc` red | 3 red / 59 green, **but `tsc`
exit 0** |
| A6b the same, after the fix below | `tsc` red | `tsc` exit 2 (TS2344,
TS2559 on the binding pin) |
| A7 the census `dataSource` line deleted | 1 red | 1 red / 24 green
(`leaves NO member both unrelayed and undeclared`) |

A6 showed that the type-level pin was blind for `list-view`.
`ListViewSchema` is derived from its mirror, so a member that leaves the
mirror resolves to the index signature's `unknown`, and an `IsAny` check
passes `unknown`. The pin now asserts that each binding member IS the
spec's `ElementDataSource` (`42feeeb25`).
- **Consumers read the rebuilt declarations** (round 1). A temporary
`plugin-form` file assigned `rows: 'four'` and an adapter-shaped
`dataSource`; `tsc --noEmit` exited 2 (TS2322, TS2353). The file was
removed.

## Acceptance notes

- **`object-chart` and the react-page wrapper.** `buildComponentScope`
in `renderers/layout/react-page.tsx` still writes the adapter (or
`null`) under `dataSource` on every public data block's node. It
comments that data blocks read it "from props", but `SchemaRenderer`
strips that key from the props it spreads, and `ElementDataSourceGate`
ignores a value that is not a binding. So on the blocks declared here,
such a node now fails `safeValidateSchema`; it is rendered, never
validated. Only `object-chart` has a pin that validates one.
- **Docs pages still teach the legacy spellings, out of this PR's
surface.** `fields/lookup.mdx` still teaches `reference_to` and
`fields/password.mdx` teaches `min_length`, in TypeScript fences. The
`fields/auto-number.mdx` headings ("Custom Format", "Date-Based Format")
now show only the seeded values.


## Queue fix (17.5.0 `filter` shape)

Round 3, after the merge queue dequeued this PR on `CI_FAILURE` (merge
group head `7c3a0340`, CI run `36674156292`; the seat's diagnosis is
comment `5905013609`). Written by the dev dispatched from session
`https://claude.ai/code/session_012UwY3ahMixEFkfTUxMVkYm`, 2026-09-30.

**Cause.** `main` resolves `@objectstack/spec` 17.5.0, whose
`ElementDataSourceSchema.filter` takes the ViewFilterRule array (`[{
field, operator, value }]`, migration
`element-data-source-and-object-block-filter-rule-array`). This PR
declares `dataSource` by reference to that schema, and the previous
head's CI ran on 17.4.0. Three literals on this PR's surface still wrote
the record form.

**Commits.**

- `e2c19f95d`: merge of `origin/main` at `0ffc423b1` (a merge commit; no
rebase, no force-push). No conflicts; six files auto-merged:
`imported-defaults-8317.test.ts`, `zod-mirror-parity.test.ts`,
`objectql.ts`, `zod/form.zod.ts`, `zod/imported-defaults.ts`,
`zod/objectql.zod.ts`.
- `bdd950ec6`: the fix, and the head. Three paths:
- `packages/types/src/__tests__/strict-face-read-keys-11070.test.ts`:
`BINDING`, which the seven `BOUND_NODES` pins use, moves to `filter: [{
field: 'project', operator: 'equals', value: 'acme' }]`. The pins still
measure only that the key is declared.
-
`packages/types/src/__tests__/object-kanban-record-source-7780.test.ts`
("PR objectstack-ai#7774's two EXCLUDED readings"): the fragment moves to the same
rule array, so the refusal it asserts is again the record-source rule's
`RECORD_SOURCE_REQUIRED`, not the filter shape.
- `content/docs/utilities/data-objectstack.mdx`: the fence under
"Kanban", which that pin mirrors, moves to the same form. No other fence
on the page changed.

**Reproduced first, on the merged tree** (`e2c19f95d`, spec 17.5.0,
before the fix): the two files gave `Tests 8 failed | 39 passed (47)`.
The seven `BOUND_NODES` pins got `invalid_type` at `dataSource.filter`
("`filter` on this element data source takes the ViewFilterRule ARRAY
form"), and the 7780 pin got `expected [ undefined ] to include
'RECORD_SOURCE_REQUIRED'`. These are the queue's two failures.

### Census of `filter` under a `dataSource`

The instrument is a scratch script, not committed; its method is stated
here so the reading can be re-taken. Population: every tracked file of
the ref, enumerated with `git ls-tree` and read with `git cat-file` from
that same ref. It parsed 637 `.json` files, 349 json fences and 1128
ts/tsx/js fences in `.md` / `.mdx`, and walked 5992 ts/tsx/js sources
with the TypeScript compiler. A hit is a `filter` member of a
`dataSource` object literal, or of a `const` that a `dataSource` names.
Each hit's value is judged by the installed 17.5.0
`ElementDataSourceSchema.shape.filter`, not by its spelling. Control: a
text scan for a `dataSource` object whose `filter` comes before its
first closing brace matched 34 files. Every one of them without a
structural hit is CHANGELOG prose naming the binding's key list, or a
code comment (`RelatedList.listFilter.test.tsx`).

On the merged tree `e2c19f95d` it read 37 `filter` literals under a
`dataSource`. 12 of them sit on one of the seven declared blocks by
literal `type`, and `BINDING` reaches all seven through `it.each`. The
record form on the seven blocks: 7 literals, counting `BINDING` once.
Fixed here: the 3 that went red or that a pin mirrors. Left as they are,
not edited:

| where | block | literal | why it is left |
| --- | --- | --- | --- |
| `data-objectstack.mdx`, the fence under "Narrowing a saved view" |
`object-grid` | `{ "total": { "$gt": 100 } }` | No pin mirrors it and
nothing goes red. The tolerant face already refuses that fence on
`main`, for `objectName` (objectui#11117); on this head it reports
`dataSource.filter` as well. The page still teaches a `filter` spelling
the 17.5.0 spec refuses, and so does its TypeScript excerpt of the
binding (`filter?: FilterCondition`). |
| `ListView.elementDataSource.test.tsx`, "AND-combines the binding
filter with the view's, never replacing it" | `list-view` | `{ owner:
'me' }` | A render test through the gate, never validated. Green. |
| `ListView.sharedGate.test.tsx`, "AND-combines the component's own
filter with the view's and the binding's" | `list-view` | `{ owner: 'me'
}` | The same. |
| `strict-face-read-keys-11070.test.ts`, the refusal case "a binding
that names no `object`" | `object-kanban` | `{ a: 1 }` | Still refused,
so green. On 17.5.0 it is refused at `dataSource.object` AND at
`dataSource.filter`, so the case no longer isolates the reason it is
named for. Measured: with a rule-array `filter` it is refused at
`dataSource.object` alone. |

Also refused by the 17.5.0 `filter`, though not the record form: 6
legacy tuple arrays (such as `[['owner', '=', 'me']]`) on the seven
blocks, in the render tests `ObjectGrid.elementDataSource.test.tsx` (2),
`ObjectKanban.elementDataSource.test.tsx` (2),
`ObjectGantt.elementDataSource.test.tsx` (1) and
`ObjectMap.elementDataSource.test.tsx` (1). All green: none of them
validates the node. On `bdd950ec6` the same census reads 4 record-form
literals on the seven blocks, the four in the table.

### Changeset

`.changeset/11070-strict-face-read-keys.md` is unchanged, because no
sentence in it is false on 17.5.0. The one sentence a 17.5.0 move could
falsify, "the tolerant face refused the same documents both times", was
measured again. 613 node documents were judged by the tolerant face of
`main` `0ffc423b1` and of this head, both on 17.5.0: 179 docs json
fences, 432 schema-catalog documents, and the two pre-fix
`data-objectstack.mdx` fences. No verdict differs; each tree refuses 58.
The apps' authored documents were not measured again; the census found
no `dataSource` `filter` among them.

### Gates, at `bdd950ec6`

Exit codes were captured before any pipe.

| gate | exit | verdict |
| --- | --: | --- |
| `pnpm exec vitest run packages/types/` | 0 | `Test Files 284 passed
(284)` · `Tests 6532 passed (6532)` |
| `pnpm --filter @object-ui/types type-check` (`tsc`,
`tsconfig.examples.json`, `tsconfig.test.json`) | 0 | clean |
| 166 test files outside `packages/types`: each one that imports
`@object-ui/types/zod`, names `ElementDataSourceSchema`,
`ElementDataSourceGate`, `elementDataSource` or a `dataSource: { object`
literal, or holds a census hit, plus all of `examples/schema-catalog` |
0 · 0 · 0 | three batches: 59, 51 and 56 files passed; 2975, 748 and 896
tests passed |
| closure build of the packages the doc gates compile against (turbo,
`--concurrency=2`) | 0 | `35 successful, 35 total` |
| `pnpm check:doc-snippets` | 0 | `679 of 679 block(s) judged, 0 failed`
|
| `pnpm check:doc-examples` | 0 | every covered example compiles, or
fails exactly as its ledger row declares |
| `pnpm check:doc-fences` · `check:doc-types` | 0 · 0 | OK · every
documented component type is registered |
| `pnpm check:control-bytes` · `check:new-line-citations` | 0 · 0 | `OK
(scanned 9536 tracked text file(s); skipped 85 binary)` · `0 new
citation(s)` |
| `node scripts/check-changeset-presence.mjs` · `pnpm changeset:check` |
0 · 0 | declares `.changeset/11070-strict-face-read-keys.md` · `No
changeset declares a major bump` |
| `pnpm check:changeset-claims` · `check:pending-changeset-literals` | 0
· 0 | report-only · `No test source names a pending changeset` |
| eslint on the two edited test files | 0 | 0 errors, 0 warnings |

NOT MEASURED locally, left to CI: the repository-wide lint, the Spec
Main Shape Gate, and the test shards outside the files named above.

### Ablation

`BINDING` was put back to the record form through objectstack's
`scripts/ablation-replace.mjs`. The anchor hit once and the blob moved
from `11d08d26d` to `c8a32682b`. Predicted: the 7 `BOUND_NODES` pins go
red. Measured: `Tests 7 failed | 23 passed (30)`, and the 7 failures are
those pins. Restored: the blob equals HEAD's (`11d08d26d`) and `git diff
HEAD` is empty.

### State

The PR stays a draft. `needs:contract-review` is back on it for the
director's review of the new head; the seat re-enqueues only after that
record.

---

_Generated by [Claude
Code](https://claude.ai/code/session_012UwY3ahMixEFkfTUxMVkYm)_

---------

Co-authored-by: Claude <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants