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

fix(core,plugin-tree): the record-source ladder judges map / gantt / tree against their spec rows; the tree stops honouring an undeclared bare-array data (objectui#8348) - #11200

Merged
objectstack-fleet[bot] merged 2 commits into
mainfrom
claude/issue-8348-rows-judge-map-gantt-tree-175
Sep 30, 2026

Conversation

@objectstack-fleet

Copy link
Copy Markdown
Contributor

Fixes #8348
Clause-②: no

The last slice of objectui#8348: the three ladder blocks that had no protocol row are now judged against the rows ruling batch #136 item 3 (Q1-C) had the protocol gain, and object-tree stops honouring the one data spelling its row does not declare.

What the installed spec says (step zero, re-measured before any edit)

Resolved from packages/plugin-tree/package.json (a package that declares the spec), entry @objectstack/spec/ui, installed version 17.5.0:

row present data staticData bare array under data { provider: 'value', items } under data
object-map yes ViewData union (object, api, value, schema) array refused, invalid_type, expected object accepted
object-gantt yes same array refused, same accepted
object-tree yes same array refused, same accepted
CONTROL A object-calendar yes array n/a accepted refused, invalid_type, expected array
CONTROL B BOGUS_CONTROL_BLOCK no

This is the reading the seat review on the card recorded from objectstack source, now on the installed artifact. The ruling's 「协议没有的能力删」 clause does not fire: the tree's row declares data. So the tree keeps the object arm and loses only the bare-array spelling, and its staticData rung is kept, because the same row declares it.

What changed

  • @object-ui/core record-source.ts. In RECORD_SOURCE_DATA_ARM_BY_TYPE, the four tree spellings move from undeclared to view-data. Before, those rows only documented the default; now they decide, so SchemaRenderer's objectui#9571 strip reaches tree nodes. The per-block docblocks now name the pins that derive each arm from the installed row, and no longer restate an answer tied to a version (AGENTS.md 完善设计器的每一个细节 #9).

  • @object-ui/plugin-tree ObjectTree.tsx.

    • The ladder call passes 'view-data'.
    • Leg C: the fetch effect's rest.data ?? schema.data + Array.isArray read becomes rest.data, the host prop only. The authored key now has ONE reader, the ladder. The old reader bypassed the ladder, so an arm move that left it in place would have removed nothing end to end.
  • Pins, one per block, each derived from the INSTALLED row and never restated:

    • ObjectMap.dataArmSpecRow-8348.test.tsx
    • plugin-gantt dataArmSpecRow-8348.test.ts
    • ObjectTree.dataArmSpecRow-8348.test.tsx

    Each one walks ComponentRegistry.getAllTypes() for the keys that resolve to its renderer, reads the arm off ComponentPropsMap[type].shape.data by parsing one value of each arm, and requires recordSourceDataArmForType to agree for every key. Controls in each: the calendar row reads array, and a bogus block reads no row.

  • Behaviour pins for the tree, all through the real SchemaRenderer and the package's own registration except row 6:

    • declared { provider: 'value', items } draws its rows;
    • a bare array draws nothing (No records), with one SchemaRenderer dev warning;
    • with an objectName beside it, the tree queries that object;
    • staticData still draws;
    • a host data prop still draws;
    • row 6: mounted directly, the authored array draws nothing.
  • Existing pins moved with the table: SchemaRenderer.dataPropArm-9571 and SchemaRenderer.legacyPropsDataStrip-9758 list the tree spellings on the object arm, and record-source-config.behaviourNeutrality-7632 passes the tree the view-data arm, with a control leg showing that the tree's pre-8348 body took the array.

  • Map and gantt: comments only. The getDataConfig docblock in ObjectMap.tsx, the rawDataConfig comment in ObjectGantt.tsx and the map shorthand pin's docblock stated the interim reading, "no ComponentPropsMap row exists, judged through @object-ui/types". They now point at the per-block pins. No logic moves on either block.

  • Changesets, one per block. The tree's is minor: a breaking behaviour change, stated per spelling. Map and gantt each get an empty frontmatter, since no behaviour moves on either. The card's earlier pending changeset is also corrected: its tree, map and gantt bullets had described the missing rows in the present tense, which would be false in the release that also carries this change. check-changeset-overwrite reports that edit, as designed.

The outcome for a stored tree, named

A tree authored data: [ …rows… ] stops drawing those rows. The ladder falls through to staticData, then objectName. With neither, the tree shows No records. With an objectName, it queries that object. In a development build SchemaRenderer warns once, naming the key and the spelling that works; in production the change is quiet. object-map and object-gantt already give this outcome for the same spelling, through the same ladder, arm and diagnostic. No third behaviour was invented.

Authored instances found: none. No authored object-tree / tree node in this repo's examples, apps, docs or skills, or in objectstack origin/main's examples, carries data. The two hosts (ListView, ObjectView) put no data on the tree schema; they hand rows down as the host prop, which is untouched.

Tests: the union at final head bdea39fc6 (clean tree)

Every command ran through the shared verify lock.

  • pnpm exec vitest run packages/plugin-tree/ packages/core/src/utils/ gave Test Files 121 passed (121), Tests 1969 passed (1969).
  • pnpm exec vitest run over the following gave Test Files 237 passed | 1 skipped (238), Tests 2615 passed | 114 skipped (2729). The skips are the pre-existing describe.runIf(DRIVEN) timezone rows in plugin-gantt.
    • packages/plugin-map/, packages/plugin-gantt/, packages/react/;
    • console: filterContextTokensSweep-10666, public-block-binding-reach, registry-inputs-spec-parity;
    • ObjectView.hostOnlyViewTypes, ObjectView.refreshInPlace-10035;
    • ListView.searchWithheldTreeChart-10326, ListView.selfQueryingViewsToolbarState-10250.
  • pnpm exec vitest run --maxWorkers=2 scripts/__tests__/ gave Test Files 177 passed | 2 skipped (179), Tests 5371 passed | 2 skipped (5373). It is owed because the diff adds and edits changeset markdown. node scripts/markdown-test-inputs.mjs --audit exits 0.
  • pnpm --filter @object-ui/PKG type-check for core, react, plugin-tree, plugin-map and plugin-gantt exits 0 with no error TS in any of them. The dependency closure was built first with turbo (14 tasks). Each package's tsconfig.test.json program lists the new pins (--listFilesOnly).

Ablations

All legs ran at bdea39fc6, each through objectstack's scripts/ablation-replace.mjs in wrap mode. Each mutation hit its anchor exactly once, the blob moved, and the file was restored to its HEAD blob. After the run, git diff HEAD was 0 bytes and git status --porcelain was empty. The directions were predicted before running, and every leg went red where predicted:

leg mutation red green
1 arm move table tree rows and call site back to undeclared 8: tree rows 2, 3, 7; 9571 row 1 for all four tree spellings; 9571 row 10 35
2 leg C fetch effect reads rest.data ?? schema.data again 2: tree rows 2, 6 41
1a table only 7: tree rows 2, 7; 9571 row 1 x4, row 10 36
1b call site only 1: tree row 3 42

Removing either half turns a pin red. Leg C is caught both through SchemaRenderer (row 2) and on a direct mount (row 6).

Gates

Each ran at bdea39fc6 and exited 0:

  • check-changeset-presence: 13 source files, 5 released packages, 3 changesets
  • check-control-bytes
  • check:new-line-citations: 0 new
  • check:spec-symbols
  • check-changeset-claims
  • check-changeset-overwrite
  • check-pending-changeset-literals
  • check:installed-pin-claims
  • check-changeset-no-major
  • check:phantom-deps
  • check:vi-mock-specifiers, check:vi-mock-inherit, check:vi-mock-override-shape
  • check:test-path-roots
  • check-governed-queue-guard --test over the 17 changed paths: NOT GOVERNED

Declared narrowing, eslint. The run covered the 13 changed .ts/.tsx files only, and reported 0 errors and 163 warnings; none are new rule classes, and the new files' warnings are no-explicit-any on the zod-internals read and the react-map-gl mock. The narrowing rests on three facts:

  • eslint's own config ignores none of the 13 files (ESLint#isPathIgnored answers false for each, and true for a control path under node_modules);
  • --format json returns 13 results;
  • the config is not type-aware (empty parserOptions), so this diff cannot move a verdict on an untouched file.

The repo-wide lint run belongs to CI.

Acceptance notes

Reported here, not filed:

  • @object-ui/types' ObjectTreeSchema (TypeScript and zod) still declares objectName REQUIRED, and declares no data / staticData. The installed row has objectName optional and declares both. This diff does not move that face. The registration treeInputs has the same gap. Carrier: objectui#11168, which owns the 17.5.0 blocks' inputs and member pins. For the types mirror half, 承接者:无.
  • The navigation comment in ObjectTree.tsx still says only object-grid declares navigation and that this element has no row. Both halves are stale on 17.5.0, as ObjectTree.schemaTyped-8655.test.ts already records. Carrier: objectui#8652.
  • No ladder call site passes the 'undeclared' arm any more. It survives as recordSourceDataArmForType's default for unlisted types, where it is load-bearing. Its admission as a resolveRecordSourceConfig argument is now zero-pull. 承接者:无.
  • Surface increment beyond the claim's file list, declared: comment-only edits in ObjectMap.tsx and ObjectGantt.tsx (the interim judgement's own carriers), fixture triage in ObjectTree.invalidationRefetch-10778 (its first inline tree used the retired bare-array spelling; it now uses staticData, the row's other inline rung) and in ObjectTree.ruleArrayFilter-10767's docblock, and the correction to the earlier pending 8348 changeset.
  • @objectstack/spec's row judgement lives in the three per-block pins. objectui#8348 has no further residual: objectui#9571 and objectui#9239 are both completed.

The session that wrote this is https://claude.ai/code/session_011p7ikEivgXefNDaE5S5Uec.


Generated by Claude Code

…otocol row declares

`ComponentPropsMap['object-tree']` in the installed `@objectstack/spec` now
declares `data` as the `ViewData` union and `staticData` as an array, so the
tree is judged against its own row like the other ladder blocks (decision
batch #83, 「8348 以协议为准」; ruling batch #136 item 3, Q1-C). The ruling's
「协议没有的能力删」 clause does not fire: the row declares `data`, so the tree
keeps the object arm and loses only the bare-array spelling.

- `record-source.ts`: the four tree spellings move from `undeclared` to
  `view-data` in the arm table, so `SchemaRenderer` stops spreading an
  authored `data` on a tree node as a prop.
- `ObjectTree.tsx`: the ladder call passes `view-data`, and the fetch effect
  no longer reads `schema.data` beside the host prop; that second reader
  bypassed the ladder, so the arm move alone removed nothing end to end.
- map, gantt, tree: one pin per block derives the arm from the installed row
  and compares it with the arm table for every registered key. The map and
  gantt call-site comments stop restating the interim reading.

Part of #8348

Co-authored-by: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_011p7ikEivgXefNDaE5S5Uec
…gantt bullets speak of the time they landed

The tree, map and gantt bullets described the absence of their protocol rows
in the present tense, and the release that carries them also carries the
object-tree arm move; they now say what held when that change landed and
point at the follow-up.

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

Copy link
Copy Markdown
Contributor

changeset-claim-re-read

⚠️ 6 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/6475-gantt-block-face-declared.md

  • names plugin-gantt/src/ObjectGantt.tsx → packages/plugin-gantt/src/ObjectGantt.tsx — edited by this change

    The gantt nested-block spelling of a gantt config ({ type: 'object-gantt', gantt: { … } }) had no mirror entry at all: it rode through BaseSchema's .passthrough() entirely unvalidated, and the published TypeScript never taught the shape either — an author writing gantt: { … } got no completion, no type checking, no error on a misspelt member. It was the 28th and last of the keys getGanttConfig (plugin-gantt/src/ObjectGantt.tsx) reads off the schema that objectui#6051 (PR feat(types,plugin-gantt): declare the flattened GanttConfig face ObjectGantt reads (#6051) #6472) did not declare — severed into its own card because, unlike the other 27, declaring it changes what a published tool refuses.

.changeset/6939-objectql-record-source-refinement.md

  • names plugin-map/src/ObjectMap.tsx → packages/plugin-map/src/ObjectMap.tsx — edited by this change

    Both renderers resolve their records from one of three keys, in this order — getDataConfig in plugin-map/src/ObjectMap.tsx and plugin-gantt/src/ObjectGantt.tsx: data, then staticData, then objectName. Both mirrors required objectName alone, so a document authored on staticData drew correctly and was refused by safeValidateSchema — six catalog entries, three per component.

  • names plugin-gantt/src/ObjectGantt.tsx → packages/plugin-gantt/src/ObjectGantt.tsx — edited by this change

    Both renderers resolve their records from one of three keys, in this order — getDataConfig in plugin-map/src/ObjectMap.tsx and plugin-gantt/src/ObjectGantt.tsx: data, then staticData, then objectName. Both mirrors required objectName alone, so a document authored on staticData drew correctly and was refused by safeValidateSchema — six catalog entries, three per component.

.changeset/7632-shared-record-source-config.md

  • names record-source-config.behaviourNeutrality-7632.test.ts → packages/core/src/utils/__tests__/record-source-config.behaviourNeutrality-7632.test.ts — edited by this change

    No behaviour changes. ObjectCalendar, ObjectGantt and ObjectTree now call the shared reader directly. ObjectGrid and ObjectMap keep their own bare-array data shorthand as a documented head above the shared call and are otherwise unchanged. record-source-config.behaviourNeutrality-7632.test.ts transcribes all five pre-collapse bodies verbatim and asserts the post-collapse spelling agrees with each across the whole input matrix, so a later edit to the shared reader that moves any site turns red.

.changeset/8253-export-tree-view-config.md

  • names plugin-tree/src/ObjectTree.tsx → packages/plugin-tree/src/ObjectTree.tsx — edited by this change

    What was wrong. tree is a host-composition-only view type — ruled deliberate on objectui#5321, it is a member of neither ObjectViewSchema.defaultViewType nor NamedListView.type, so the branch runs only when a host passes a views prop. On that path a per-view tree block is read at four sites, and its only description anywhere was a module-local, non-exported interface TreeConfig inside plugin-tree/src/ObjectTree.tsx. The live host is the console: it stores view records and passes them as views, and its create-view dialog offers tree. So a real consumer wrote this block with no type to write it against, and a misspelled parentFeild was admitted by the views entry's [key: string]: any, stored, read by nobody and reported by nothing. Declared ≠ enforced on a surface a non-author re-writes.

.changeset/9473-record-source-data-arm-type.md

  • names record-source.ts → packages/core/src/utils/record-source.ts — edited by this change

    Two stale docblock passages in record-source.ts and record-source-config.behaviourNeutrality-7632.test.ts explained ObjectCalendar's retired 'data' in schema guard by the props union ObjectGridSchema | CalendarSchema, which objectui#8651 retired — ObjectCalendarComponentProps.schema is the published ObjectCalendarSchema today. Both now say that the clause is history rather than a reading anyone can re-derive from main.

  • names record-source-config.behaviourNeutrality-7632.test.ts → packages/core/src/utils/__tests__/record-source-config.behaviourNeutrality-7632.test.ts — edited by this change

    Two stale docblock passages in record-source.ts and record-source-config.behaviourNeutrality-7632.test.ts explained ObjectCalendar's retired 'data' in schema guard by the props union ObjectGridSchema | CalendarSchema, which objectui#8651 retired — ObjectCalendarComponentProps.schema is the published ObjectCalendarSchema today. Both now say that the clause is history rather than a reading anyone can re-derive from main.

.changeset/9618-record-source-ladder-attribution.md

  • names ObjectMap.tsx → packages/plugin-map/src/ObjectMap.tsx — edited by this change

    Their zod .describe strings and TS docs said the data → staticData → objectName ladder is resolved by getDataConfig. Neither renderer has had a function by that name since the ladder moved into @object-ui/core's shared resolveRecordSourceConfig (ce2aaefe1), so the text now names that function. The ladder order is unchanged, and so is every accepted document. The ObjectMapSchema text still says getDataConfig, which is true: ObjectMap.tsx keeps a local wrapper by that name that delegates to the shared ladder. The resolveRecordSourceConfig docblock in @object-ui/core now says that the text it quotes is the map faces' text.

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 3f9d9263e (merge-base with origin/main): 13 file(s) changed outside .changeset/, read against 1797 pending declaration(s) that publish a body (2405 pending in total). · run

@github-actions

Copy link
Copy Markdown
Contributor

✅ Console Performance Budget

Metric Value Budget
Eager closure (gzip, 330 chunks) 3571.4 KB 3607.4 KB
Main entry chunk (gzip) 149.6 KB 350 KB
Entry file index-DGMx9I6H.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) 559.46KB 134.18KB
core (index.js) 9.94KB 3.94KB
create-plugin (index.js) 27.94KB 9.51KB
data-objectstack (index.js) 227.28KB 63.04KB
fields (index.js) 261.19KB 66.27KB
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.35KB 9.18KB
i18n (useSafeTranslation.js) 5.60KB 2.33KB
layout (index.js) 40.51KB 11.36KB
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.58KB 4.90KB
permissions (PermissionContext.js) 0.31KB 0.25KB
permissions (PermissionGuard.js) 0.89KB 0.45KB
permissions (PermissionProvider.js) 6.25KB 2.17KB
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.17KB 15.06KB
plugin-charts (index.js) 84.09KB 22.93KB
plugin-chatbot (index.js) 198.22KB 46.97KB
plugin-dashboard (index.js) 138.73KB 37.05KB
plugin-designer (index.js) 215.78KB 44.42KB
plugin-detail (index.js) 234.78KB 62.36KB
plugin-editor (index.js) 2.23KB 1.05KB
plugin-form (index.js) 172.30KB 44.19KB
plugin-gantt (index.js) 172.43KB 42.85KB
plugin-grid (index.js) 230.25KB 63.22KB
plugin-kanban (index.js) 48.43KB 15.11KB
plugin-list (index.js) 115.82KB 28.67KB
plugin-map (index.js) 22.90KB 7.62KB
plugin-markdown (index.js) 13.88KB 4.80KB
plugin-report (index.js) 44.04KB 12.21KB
plugin-timeline (index.js) 32.26KB 9.42KB
plugin-tree (index.js) 11.20KB 3.89KB
plugin-view (index.js) 90.43KB 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.78KB 2.09KB
sdui-parser (codegen.js) 9.45KB 3.76KB
sdui-parser (dashboard-widget-options.js) 3.08KB 1.30KB
sdui-parser (index.js) 6.17KB 2.73KB
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.84KB 1.90KB
sdui-parser (types.js) 0.28KB 0.23KB
sdui-parser (validate.js) 22.61KB 7.40KB
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) 5.05KB 1.93KB
types (spec-ui-namespace.js) 0.20KB 0.19KB
types (strict-authoring-face.js) 19.82KB 7.15KB
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: bdea39fc6fcc988206a332899974019b08aa5321
Local-runs: none

Read-only, adversarial to the dispatch: card #8348 (body and all 16 comments — ruling 5578818734 batch #83, ruling 5682915611 batch #136 item 3 Q1-C / Q2-C, restart contract 5737496254, unlock 5904111006, claim 5907950809, dev report 5909321230), PR #11200 (body, the 17-file list, the net diff against main at the head), the head's check-runs with filter=latest, and contents?ref= reads at base 3f9d9263e and at the head for context (ObjectTree.tsx, record-source.ts, the two tree fixture tests, the corrected 8348 changeset, pnpm-lock.yaml, plugin-tree/package.json, ObjectMap.schemaDataShorthand.test.tsx, the head tree listing). Nothing built, run or re-run.

① Derived judgments

  • Check-runs on the head (the gate verdicts) — all completed, none red. Read with filter=latest after waiting in the foreground for the last shards: 43 runs, 40 success, 3 skipped (the Test (coverage) pair and dependabot, matrix placeholders and a no-op, not gate families this diff owes). Green by name: Test and all eight Test (shard n/8), Test (dist pins), Type Check, Lint, Build & E2E, Build Docs, Bundle Analysis, Spec Main Shape Gate, Changeset Declaration, Changeset Bump Policy, Changeset Fixed Group Check, Changeset Overwrite Report, Changeset Claim Re-read, Governed Surface Queue Guard, Line Citation Gate, Control Byte Scan, Inert vi.mock Specifier Check, Pre-Install Import Graph Check, Shell Escape Residue Scan, the doc and skill checks, Action Ref Convention, README Export Check, label. The Test shards are the installed-row measurement for the three pins (① below), so the step-zero reading is CI's, not only the dev's.
  • Step zero on the installed 17.5.0 — right. The head's pnpm-lock.yaml resolves @objectstack/spec at 17.5.0 only (both lockfile entries); plugin-tree/package.json declares @objectstack/spec and is the resolution root the PR names. The PR body's row table (map / gantt / tree rows present, data the ViewData union refusing a bare array, staticData an array; control A calendar present with data refusing the object spelling; control B bogus absent) agrees with two independent earlier readings on the card — the seat's source read at 5737496254 and the triage probe on the published 17.5.0 at 5904111006 — and, decisively, it is not left as prose: the three dataArmSpecRow-8348 pins re-derive the arm from the installed row at test time, so a green Test shard in CI is the measurement, not the dev's word. Accept set: the ruling's 「协议没有的能力删」 conditional does not fire, and the record correctly says so.
  • The four tree spellings via ComponentRegistry.getAllTypes() — right. plugin-tree/src/index.tsx registers object-tree (namespace plugin-tree) and tree (namespace view), so the registry answers exactly object-tree, plugin-tree:object-tree, tree, view:tree; no other package registers tree. The table rows added to RECORD_SOURCE_DATA_ARM_BY_TYPE are those four and no others, and tree pin row 7 asserts the sorted registry list equals them, so an added spelling without a table row turns red.
  • Leg C, rest.data (host prop) only — right, and required. At base the fetch effect read (rest as any).data ?? schema.data; at the head it reads (rest as any).data and the effect's dependency list still names it. A grep of the head ObjectTree.tsx finds no other schema.data read outside the ladder call, so the authored key has one reader, resolveRecordSourceConfig(schema, 'view-data'). Row 6 (direct mount, no SchemaRenderer) is the pin that isolates this carrier, exactly what 5737496254 asked for as the non-vacuity proof.
  • Per-block installed-row pins — right. All three derive the arm by parsing one value of each arm through ComponentPropsMap[type].shape.data ({ provider: 'value', items: [] } and []), classify into view-data / array / both arms / neither arm / no data row / no row, and require recordSourceDataArmForType to agree for every registered sibling; each carries the calendar-reads-array and bogus-reads-no row controls, so a reader answering view-data for everything is refused. The helper is triplicated across the three files — a maintenance nit, not a contract defect.
  • The stored bare-array tree's outcome — right. Through the ladder a bare array is off the view-data arm, so rung 1 is skipped and the ladder falls to staticData, then objectName; dataProvider is then undefined or object, the fetch effect never reaches a value branch for it, and rest.data no longer carries it because the arm table stops the SchemaRenderer spread. Tree rows 2 and 3 pin No records plus one dev warning, and the query of objectName, the same outcome ObjectMap.schemaDataShorthand rows 3 and 3b pin for the map. staticData is rung 2 of the shared ladder for every arm (read at the head), so row 4's "unchanged" is a fact about the ladder, and row 5 keeps the host prop through SchemaRenderer (option B of 9571 refused, honoured).
  • SchemaRenderer's objectui#9571 strip reaching tree nodes — right. The strip is keyed on recordSourceDataArmForType, which now answers view-data for the four spellings; SchemaRenderer.dataPropArm-9571 moves the four from its UNDECLARED_TYPES control into OBJECT_ARM_TYPES (row 1 and row 10), and legacyPropsDataStrip-9758 does the same for its three. The undeclared default is still read on an unlisted type (9571 row 11), so the default's no-change direction is still measured.
  • Falsified Zone-2 assumption 4 — right to report, right response. The claim assumed an @object-ui/types-based map/gantt pin to replace; none existed, the interim was prose in four docblocks. The diff rewrites those docblocks to point at the new pins instead of restating a versioned answer (AGENTS.md 完善设计器的每一个细节 #9), and the map's docblock claim "both halves are pinned in ObjectMap.schemaDataShorthand.test.tsx" was checked at the head: rows 3 and 3c exist.
  • The fixture move in ObjectTree.invalidationRefetch-10778.test.tsx — a legitimate re-spelling, not a weakened test. That file pins subscription behaviour on the invalidation bus, not which data spellings are honoured. Its inline case rendered two trees (a bare array, and { provider: 'value', items }) and asserted both draw and neither re-reads on an invalidation; the bare array is now retired by ruling and would draw nothing. Re-spelling it as staticData keeps two inline trees, the same three assertions and the same intent; the retired spelling is pinned as retired elsewhere (tree rows 2 and 6). The ruleArrayFilter-10767 docblock's "object-tree admits no staticData rung" was false against the shared ladder at base; correcting it is right.
  • The four ablation legs — internally consistent with the code, not re-run here. Leg 1 (table and call site back to undeclared) reds rows 2, 3, 7 and the 9571 rows because the spread returns and the ladder takes the array; leg 2 (rest.data ?? schema.data restored) reds only rows 2 and 6, since with an objectName the object branch returns before the fallback, so row 3 stays green; leg 1a (table only) leaves row 3 green because the call site still falls through to objectName; leg 1b (call site only) reds only row 3, because the ladder returns the array as config with no provider, so no find is issued, while row 2 stays quiet because the table still strips the prop. Each predicted direction matches what the head code implies. Read-only shape held: the dev's restore proof (blob equals HEAD, empty porcelain) is taken as reported.
  • Fixes #8348 — right. The card's residuals named at 5665490499 are this slice (items 1 and 2, the three rows), objectui#9571 (item 3, read: closed / completed) and objectui#9239 (item 4, read: closed / completed); objectstack#18305 is closed per the card. No open residual remains on the card, and the closing keyword is on the PR body's first line.
  • Scope against the claim's file surface — right, declared. The increment (comment-only edits in ObjectMap.tsx / ObjectGantt.tsx, the two react pins, the core neutrality pin, two tree fixture docblocks, the corrected pending changeset) is inside the ladder's blast radius, named in the PR body and the report, and no logic moves on map or gantt (their diffs are comment-only, checked line by line).

② Semver level

  • Tree changeset 8348-object-tree-data-arm-view-data.md: @object-ui/core minor, @object-ui/plugin-tree minor — matches. It is headed "Breaking behaviour change", states what moves per spelling, and carries the migration (FROM a bare data: [...] TO staticData or data: { provider: 'value', items }), which is objectui AGENTS.md's rule for a breaking change in the fixed group: minor, with the breaking semantics in the body, never major (the Changeset Bump Policy and Changeset Fixed Group Check runs are green). @object-ui/react is not listed and need not be: its src moves only in tests, the behaviour it inherits is carried by core's table, and the fixed group releases together.
  • Map and gantt changesets, empty frontmatter — matches. Only comments and tests move in plugin-map and plugin-gantt; AGENTS.md names the empty frontmatter as the first-class "no release" declaration for exactly that.
  • The corrected 8348-record-source-data-arm-per-spec-row.md — right. Prose-only, frontmatter untouched, the tree / map / gantt bullets now speak of the time that change landed and point at the separate tree entry, so the release that carries both does not publish a present-tense "no row exists" beside a change that depends on the row. Changeset Overwrite Report recorded it as a deliberate correction, as designed. Changeset Declaration is green (13 source files, 5 released packages, 3 changesets), so no skip-changeset question arises.
  • Clause-②: no — right. The line answers 「本卡放宽接受集或扩大公开面吗」. The diff adds no key, no closed-set member, no export and no registration; ObjectTreeSchema and treeInputs are untouched; the only public function whose answer moves is recordSourceDataArmForType, and it moves toward the declared contract. Under the directional ruling this is "pulling code back to the declared contract", which does not trigger the tier, and check-widening-tells passes a removal-only diff with no by design. The optional (narrowing) arm is defined against a PUBLISHED accept set, and none moves here — ComponentPropsMap['object-tree'].data already refused the bare array; what narrows is runtime tolerance beyond the contract. An absent arm declares no direction, which is legal, and the breaking-ness is carried where objectui's rules put it: in the changeset body. The PR body carries the same line at its head, so the changeset gate reads the PR and not the card.

③ Boundary flags

  • @object-ui/types ObjectTreeSchema / treeInputs still say objectName required and declare no data / staticData, against a 17.5.0 row with objectName optional and both declared — escalated to the seat, not blocking. Pre-existing (the base ObjectTree.tsx comment already recorded it), moved by nothing in this diff, and a published declaration a dev seat may not move in passing. objectui#11168 is a correct carrier for the registration-inputs half: its body lists object-tree among the four lazily registered blocks "never judged" and decides each key by measurement. The types-mirror half has no carrier, as the dev says: 11168's body names neither ObjectTreeSchema nor @object-ui/types. This is the objectui#9239 shape (a mirror contradicting the spec row), which the maintainer ruled "stays its own card"; the seat should file it in domain:spec with that precedent, or name the carrier on the card, before the card closes on merge. Recommended, not a condition of this verdict.
  • The stale navigation comment in ObjectTree.tsx (carrier objectui#8652) — answered, acceptable. Comment-only, outside the claimed surface, already recorded as stale by ObjectTree.schemaTyped-8655.test.ts; 11168's body assigns navigation to 8652, so the carrier is the family card and the pointer is right.
  • The undeclared arm now having zero call sites — answered, acceptable. It stays load-bearing as recordSourceDataArmForType's default for unlisted types (measured by 9571 row 11) and is the no-change direction for blocks nobody measured; its admission as a resolveRecordSourceConfig argument is dormant. Retiring that admission would narrow the published RecordSourceDataArm type and is its own Clause-② card if anyone wants it; leaving it and saying so is the right disposition here.
  • Declared deviations — each answered. The surface increment: inside scope, declared (①). Assumption 4 falsified: accepted (①). Map / gantt empty, tree minor: matches (②). Commit trailers: both commits carry the model-free co-author plus session-URL trailer pair objectui AGENTS.md prescribes; no model identifier in the diff, the PR body, the changesets or the code comments (grepped); the first commit's "Part of finding(plugin-calendar): object-calendar honours a SECOND, off-spec spelling of data — the { provider, items } record-source config the contract refuses by kind #8348" is body text, not a trailer, and closes nothing — the closing keyword lives on the PR.
  • open_questions: none declared, and none owed — both of the card's questions were ruled at 5682915611 and the restart contract 5737496254 answered the lapsed conditional; the dev executed the direction (arm move plus leg C) rather than re-opening it. Options A and B refused by the ruling are not what shipped.

Implemented-by: claude/issue-8348-rows-judge-map-gantt-tree-175
Reviewed-by: session_011p7ikEivgXefNDaE5S5Uec

VERDICT: PASS

Record rendered at 2026-09-30T10:35Z by a subagent of the seat session named above, which adopts this verdict.


Generated by Claude Code

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

2 participants