Repository navigation
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
Conversation
…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
|
changeset-claim-re-read
|
✅ Console Performance Budget
The eager closure is every chunk the entry reaches through static imports — what the browser fetches and parses before the app renders. The entry chunk on its own is a small fraction of it. 📦 Bundle Size Report
Size Limits
|
Contract reviewServed-tier: Read-only, adversarial to the dispatch: card #8348 (body and all 16 comments — ruling ① Derived judgments
② Semver level
③ Boundary flags
Implemented-by: 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 |
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-treestops honouring the onedataspelling 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:datastaticDatadata{ provider: 'value', items }underdataobject-mapViewDataunion (object,api,value,schema)invalid_type, expected objectobject-ganttobject-treeobject-calendarinvalid_type, expected arrayBOGUS_CONTROL_BLOCKThis 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 itsstaticDatarung is kept, because the same row declares it.What changed
@object-ui/corerecord-source.ts. InRECORD_SOURCE_DATA_ARM_BY_TYPE, the four tree spellings move fromundeclaredtoview-data. Before, those rows only documented the default; now they decide, soSchemaRenderer'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-treeObjectTree.tsx.'view-data'.rest.data ?? schema.data+Array.isArrayread becomesrest.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.tsxplugin-ganttdataArmSpecRow-8348.test.tsObjectTree.dataArmSpecRow-8348.test.tsxEach one walks
ComponentRegistry.getAllTypes()for the keys that resolve to its renderer, reads the arm offComponentPropsMap[type].shape.databy parsing one value of each arm, and requiresrecordSourceDataArmForTypeto agree for every key. Controls in each: the calendar row readsarray, and a bogus block readsno row.Behaviour pins for the tree, all through the real
SchemaRendererand the package's own registration except row 6:{ provider: 'value', items }draws its rows;No records), with oneSchemaRendererdev warning;objectNamebeside it, the tree queries that object;staticDatastill draws;dataprop still draws;Existing pins moved with the table:
SchemaRenderer.dataPropArm-9571andSchemaRenderer.legacyPropsDataStrip-9758list the tree spellings on the object arm, andrecord-source-config.behaviourNeutrality-7632passes the tree theview-dataarm, with a control leg showing that the tree's pre-8348 body took the array.Map and gantt: comments only. The
getDataConfigdocblock inObjectMap.tsx, therawDataConfigcomment inObjectGantt.tsxand the map shorthand pin's docblock stated the interim reading, "noComponentPropsMaprow 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-overwritereports that edit, as designed.The outcome for a stored tree, named
A tree authored
data: [ …rows… ]stops drawing those rows. The ladder falls through tostaticData, thenobjectName. With neither, the tree showsNo records. With anobjectName, it queries that object. In a development buildSchemaRendererwarns once, naming the key and the spelling that works; in production the change is quiet.object-mapandobject-ganttalready 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/treenode in this repo's examples, apps, docs or skills, or in objectstackorigin/main's examples, carriesdata. The two hosts (ListView,ObjectView) put nodataon 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/gaveTest Files 121 passed (121),Tests 1969 passed (1969).pnpm exec vitest runover the following gaveTest Files 237 passed | 1 skipped (238),Tests 2615 passed | 114 skipped (2729). The skips are the pre-existingdescribe.runIf(DRIVEN)timezone rows inplugin-gantt.packages/plugin-map/,packages/plugin-gantt/,packages/react/;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__/gaveTest 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 --auditexits 0.pnpm --filter @object-ui/PKG type-checkforcore,react,plugin-tree,plugin-mapandplugin-ganttexits 0 with noerror TSin any of them. The dependency closure was built first with turbo (14 tasks). Each package'stsconfig.test.jsonprogram lists the new pins (--listFilesOnly).Ablations
All legs ran at
bdea39fc6, each through objectstack'sscripts/ablation-replace.mjsin 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 HEADwas 0 bytes andgit status --porcelainwas empty. The directions were predicted before running, and every leg went red where predicted:undeclaredrest.data ?? schema.dataagainRemoving 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
bdea39fc6and exited 0:check-changeset-presence: 13 source files, 5 released packages, 3 changesetscheck-control-bytescheck:new-line-citations: 0 newcheck:spec-symbolscheck-changeset-claimscheck-changeset-overwritecheck-pending-changeset-literalscheck:installed-pin-claimscheck-changeset-no-majorcheck:phantom-depscheck:vi-mock-specifiers,check:vi-mock-inherit,check:vi-mock-override-shapecheck:test-path-rootscheck-governed-queue-guard --testover the 17 changed paths: NOT GOVERNEDDeclared narrowing, eslint. The run covered the 13 changed
.ts/.tsxfiles only, and reported 0 errors and 163 warnings; none are new rule classes, and the new files' warnings areno-explicit-anyon the zod-internals read and thereact-map-glmock. The narrowing rests on three facts:ESLint#isPathIgnoredanswers false for each, and true for a control path undernode_modules);--format jsonreturns 13 results;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 declaresobjectNameREQUIRED, and declares nodata/staticData. The installed row hasobjectNameoptional and declares both. This diff does not move that face. The registrationtreeInputshas the same gap. Carrier: objectui#11168, which owns the 17.5.0 blocks' inputs and member pins. For the types mirror half, 承接者:无.navigationcomment inObjectTree.tsxstill says onlyobject-griddeclaresnavigationand that this element has no row. Both halves are stale on 17.5.0, asObjectTree.schemaTyped-8655.test.tsalready records. Carrier: objectui#8652.'undeclared'arm any more. It survives asrecordSourceDataArmForType's default for unlisted types, where it is load-bearing. Its admission as aresolveRecordSourceConfigargument is now zero-pull. 承接者:无.ObjectMap.tsxandObjectGantt.tsx(the interim judgement's own carriers), fixture triage inObjectTree.invalidationRefetch-10778(its first inline tree used the retired bare-array spelling; it now usesstaticData, the row's other inline rung) and inObjectTree.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