diff --git a/.changeset/18459-objectui-pin-citations-remeasured.md b/.changeset/18459-objectui-pin-citations-remeasured.md new file mode 100644 index 00000000000..5bc3c6f767e --- /dev/null +++ b/.changeset/18459-objectui-pin-citations-remeasured.md @@ -0,0 +1,66 @@ +--- +'@objectstack/spec': patch +--- + +fix(spec): the `ComponentPropsMap` objectui read-point records are re-measured at the live pin and now assert it (#18459) + +Clause-②: no + +`packages/spec/src` carries READ-POINT RECORDS: docblocks that say "this key is +LIVE, and here is the objectui `file:line` that reads it". A record anchors +itself to the objectui tree its numbers were counted in, and +`check:objectui-pin-citations` recognises two spellings for that anchor — an +ASSERTING one (`.objectui-sha` = ``, checked against the pin file on every +run, so a pin bump reds on it) and a HISTORICAL one (`.objectui-sha` pin +``, a dated record that a later bump does not falsify, and that nothing +re-checks). + +Eleven records — ten in `src/ui/component.zod.ts`, one in its sibling test — +were in the historical spelling naming the RETIRED pin `53ded82b`, although +every one of them is a live read-point record whose whole purpose is to stay +re-checkable. Each was re-READ +against objectui at `87af769e9a3e` and converted to the asserting spelling, so +the next pin bump fails on them instead of carrying them. + +**The drift was real, not hypothetical, and three anchors could not have been +repaired by refreshing numbers:** + +- `ObjectMap.tsx`'s array-shorthand head inside `getDataConfig` is DELETED + (objectui#8348); an authored `data` array now reaches that renderer through + the React props channel alone, never through the record-source ladder. +- `ObjectTree.tsx`'s `?? schema.titleField` rung is DELETED (objectui#8841). + The flat-spelling prescription that names `titleField` stays TRUE on its + other half — `ListView`'s flatten still resolves `treeCfg.titleField` into + `labelField` before emitting — and that is now what the record cites. +- `object-kanban`'s navigation read no longer carries the `(schema as any)` + cast the record quoted, while its `object-calendar` twin still does. + +A fourth is a count rather than an anchor: the `plugin-tree` registry shell's +`ElementDataSourceGate` control reading. It was re-taken at BOTH ends of the hop +by ONE method — occurrences of that identifier in each control's own +`src/index.tsx` — and nothing moved: 3 each for `plugin-map`, `plugin-gantt`, +`plugin-grid` and `plugin-calendar`, 0 for `plugin-tree`, at +`87af769e9` and at `53ded82bf` alike, so the ZERO that discriminates is the +whole reading. The `7 each` the record used to carry is reproducible at neither +pin by that method, nor by a whole-package count (7 / 5 / 11 / 5). ⛔ A count is +a reading only with its METHOD beside it — without one, re-stating the carried +number is exactly what survives a re-measure. + +`plugin-timeline/src/renderer.tsx:1215` is at the same number with the same +content at both pins — and it is not alone there: +`plugin-timeline/src/index.tsx:333` (`limit: 'limit',`), an anchor of that same +record, is too, read by the same method at both pins. Which is exactly why a +number that did not move is no more a reading on its own than one that did. + +Three further records in the same blocks cited an objectui sha WITHOUT naming +`.objectui-sha`, so they sat outside the gate's population entirely — neither +asserting nor historical, simply unseen. They are re-measured and spelled so +the gate can see them. + +**Why `Clause-②: no`.** Every changed line is a comment. No schema, describe +string, export, key or refusal text moves, so no input's accept/reject verdict +can change; `check:generated` reports all fifteen spec artifacts up to date +with nothing to regenerate. It ships as a `patch` rather than as no changeset +because the bytes are published: `src/ui/component.zod.ts` ships verbatim under +this package's `files[]` entry `src/**/*.zod.ts`, measured against the packed +tarball with a positive and a negative control. diff --git a/packages/spec/src/ui/component.test.ts b/packages/spec/src/ui/component.test.ts index 5279794ce70..51de61700dd 100644 --- a/packages/spec/src/ui/component.test.ts +++ b/packages/spec/src/ui/component.test.ts @@ -3618,7 +3618,13 @@ describe('ObjectMetricPropsSchema icon liveness (#10053)', () => { // 「8348 以协议为准」 (batch #83, 2026-09-08) and batch #136 item 3 (Q1-C). // // The acceptance the card names, pinned: each row's KEY SET is the one the -// renderer's read points support at the `.objectui-sha` pin `53ded82b`, and +// renderer's read points support at the pin this repo builds against +// (`.objectui-sha` = `87af769e9`; re-READ at that pin 2026-09-22 — all three +// renderers moved hard on the hop from `53ded82bf`, so NO anchor in this +// block is carried and every one was re-derived from the pinned tree. Four +// changed CONTENT rather than position and say so where they are cited: the +// map's array-shorthand head, the tree's record-source ARM, the cast on the +// tree's `schema.data` read, and the tree's `titleField` rung), and // `Object.keys(ComponentPropsMap)` lists the three. The key sets are asserted // WHOLE rather than by spot-check — a row derived from read points is a claim // about a complete set, and only an equality can hold a later addition to @@ -3635,21 +3641,29 @@ describe('the three #18305 object blocks — key sets derived from the renderers }; it('object-map declares exactly its measured read set', () => { - // ObjectMap.tsx @ 53ded82b: data (:169 -> resolveRecordSourceConfig :174), - // staticData / objectName (the shared ladder's rungs 2 and 3), filter - // (:742), sort (:743), map (:370), mapStyle (:365), navigation (:889), - // enableClustering (:905). + // ObjectMap.tsx @ 87af769e9: data (:183 — `getDataConfig` is now that one + // `resolveRecordSourceConfig(schema, 'view-data')` statement; the + // array-shorthand head that used to open it is GONE, and the docblock at + // :168-176 records that an authored array now reaches this renderer only + // through the React props channel), staticData / objectName (the shared + // ladder's rungs 2 and 3, record-source.ts :296 and :303), filter (:814 + // and :895 — the inline and the object fetch), sort (:815 and :896), map + // (:382), mapStyle (:377), navigation (:1042), enableClustering (:1058). expect(keysOf('object-map')).toEqual([ 'data', 'enableClustering', 'filter', 'map', 'mapStyle', 'navigation', 'objectName', 'sort', 'staticData', ]); }); it('object-gantt declares exactly its measured read set', () => { - // ObjectGantt.tsx @ 53ded82b: the ladder (:593), filter (:738), sort - // (:739), gantt (:499), navigation (:1487), label (:1849), skipWeekends - // (:1205), holidays (:1206), persistLayout (:1357), viewName (:1359), - // markers (:1826), criticalPath (:1829), showBaselines (:1832), readOnly - // (:1833), mobileReadOnly (:1834). + // ObjectGantt.tsx @ 87af769e9: the ladder (:613), filter (:844), sort + // (:845), gantt (:501-503), navigation (:1615), label (:2181 — the + // `resolveI18nLabel` call in the export-file-name chain; the retired + // reading :1849 was the COMMENT above that chain even at its own pin, and + // at this one is a BLANK line two above an unrelated callback's comment), + // skipWeekends (:1333), holidays (:1334), persistLayout (:1485), + // viewName (:1487), markers (:2136), + // criticalPath (:2139), showBaselines (:2142), readOnly (:1985 and + // :2143), mobileReadOnly (:2144). expect(keysOf('object-gantt')).toEqual([ 'criticalPath', 'data', 'filter', 'gantt', 'holidays', 'label', 'markers', 'mobileReadOnly', 'navigation', 'objectName', 'persistLayout', 'readOnly', 'showBaselines', 'skipWeekends', @@ -3659,14 +3673,19 @@ describe('the three #18305 object blocks — key sets derived from the renderers it('object-tree declares exactly its measured read set — and `data` IS in it', () => { // The card's open question, answered by measurement rather than by family - // symmetry: ObjectTree.tsx @ 53ded82b reaches `schema.data` through - // `resolveRecordSourceConfig(schema)` at :359 — rung 1 of the shared - // ladder, which returns the authored value VERBATIM as a `ViewData`. That + // symmetry: ObjectTree.tsx @ 87af769e9 reaches `schema.data` through + // `resolveRecordSourceConfig(schema, 'undeclared')` at :582 — rung 1 of + // the shared ladder, which returns the authored value VERBATIM. That // ONE site is the whole support for the object arm, and it is sufficient. - // ⛔ :496 is NOT a second one: `(rest as any).data ?? (schema as any).data` - // is gated by `Array.isArray(passed)` on the next line, so it honours only + // ⚠️ The ARM is `'undeclared'` here, not the `'view-data'` its siblings + // pass, so rung 1 honours any truthy value at the renderer — WIDER than + // this row, which is the harmless direction: the door below refuses the + // bare array the renderer would have taken. + // ⛔ :775 is NOT a second one: `(rest as any).data ?? schema.data` (the + // cast on `schema` went away with objectui#8655) is gated by + // `Array.isArray(passed)` on the next line, so it honours only // the bare-ARRAY shorthand this row REFUSES (pinned below). objectui#9234 - // left the :359 read marked `undeclared` because neither published face + // left the rung-1 read marked `undeclared` because neither published face // carried the key; the protocol row follows the READ POINTS, which is what // 「以协议为准」 resolving for this block means. expect(keysOf('object-tree')).toEqual([ @@ -3740,14 +3759,23 @@ describe('the three #18305 object blocks — key sets derived from the renderers // renderer's flat branch still reads beside `dependenciesField`. expect(setFor('object-gantt', 'OBJECT_GANTT_FLAT_CONFIG_KEYS')) .toEqual([...Object.keys(GanttConfigSchema.shape), 'dependencyField'].sort()); - // tree: `TreeConfigSchema`'s shape PLUS `titleField`, which `getTreeConfig` - // reads only as `labelField`'s last fallback (ObjectTree.tsx:117). + // tree: `TreeConfigSchema`'s shape PLUS `titleField`. ⚠️ Re-READ at + // 87af769e9 and the read point is GONE, not moved: objectui#8841 deleted + // the `?? schema.titleField` rung from `getTreeConfig` (now :235-248), + // and the docblock above it (:197-218) records why — it read the + // FLATTENED NODE, never the block, and the key is declared on neither + // face. The key stays in THIS set, and the prescription that names it + // stays TRUE, on the OTHER half of the sentence: `ListView`'s flatten + // still resolves `treeCfg.titleField` into `labelField` before emitting + // (`ListView.tsx:3270` at this pin), so an authored `titleField` is still + // only ever the block's `labelField`. What died is the renderer's own + // fallback, not the flatten's. expect(setFor('object-tree', 'OBJECT_TREE_FLAT_CONFIG_KEYS')) .toEqual([...Object.keys(TreeConfigSchema.shape), 'titleField'].sort()); }); it('the config blocks are the spec own schemas where the renderer names one, `z.unknown()` where it does not', () => { - // gantt: `ObjectGantt.tsx:501` validates the authored block against + // gantt: `ObjectGantt.tsx:503` validates the authored block against // `GanttConfigSchema` imported from `@objectstack/spec/ui`, so the read // point names the schema and the door takes it — a misspelling inside the // block is refused here exactly as the renderer's own safeParse warns. @@ -3762,7 +3790,7 @@ describe('the three #18305 object blocks — key sets derived from the renderers expect(door('object-tree').safeParse({ tree: { labelFeild: 'name' } }).success).toBe(false); // map: `ListMapConfigSchema` — the ratchet the previous posture deferred, // taken now that `style` is declared on that block (the key `getMapConfig` - // reads at `ObjectMap.tsx:365`, `schema.mapStyle || schema.map?.style`). The + // reads at `ObjectMap.tsx:377`, `schema.mapStyle || schema.map?.style`). The // two assertions that used to record the divergence are INVERTED here: the // list-view face accepts the style URL, and the door accepts it through the // spec's own schema rather than through an open value. diff --git a/packages/spec/src/ui/component.zod.ts b/packages/spec/src/ui/component.zod.ts index f770c554d8b..4cbb0a606d9 100644 --- a/packages/spec/src/ui/component.zod.ts +++ b/packages/spec/src/ui/component.zod.ts @@ -3223,11 +3223,20 @@ export const ObjectKanbanPropsSchema = lazySchema(() => strictObject({ * maintainer ruling, verbatim `B`: declare `navigation` on the platform * element schemas). * - * Measured at the `.objectui-sha` pin `53ded82b`: `ObjectKanban.tsx:689` - * reads `(schema as any).navigation ?? { mode: 'drawer' }` and hands it to - * `useNavigationOverlay` (`:697`), whose result drives the card click - * (`:939`) and the detail overlay (`:972-994`) — on a STANDALONE board, - * with no enclosing view to resolve a mode from. Until this key the same + * Measured at the pin this repo builds against (`.objectui-sha` = + * `87af769e9`; re-READ there 2026-09-22 — every anchor re-derived from the + * pinned tree rather than carried, none of them at its `53ded82bf` + * number and one of them no longer spelled the way this record quoted it): + * `ObjectKanban.tsx:1210` + * reads `schema.navigation ?? { mode: 'drawer' }` and hands it to + * `useNavigationOverlay` (`:1218-1219`), whose result drives the card click + * (`:1587`) and the detail overlay (`:1468`, whose `NavigationOverlay` is + * `:1484-1497`) — on a STANDALONE board, with no enclosing view to resolve + * a mode from. ⚠️ The `(schema as any)` cast this record used to quote is + * GONE at this pin: the read is spelled `schema.navigation` and compiles + * through `BaseSchema`'s index signature, which the comment above it + * records (objectui#9726). The READ is unchanged — only its spelling is — + * so nothing this record says about the key moves. Until this key the same * document ran correctly in the renderer and was refused BY NAME at the * authoring door, through the generic `unrecognized_keys` rule a typo gets. * @@ -3343,10 +3352,15 @@ export const ObjectCalendarPropsSchema = lazySchema(() => strictObject({ * maintainer ruling, verbatim `B`), the same carrier and the same def as * `object-kanban`'s above. * - * Measured at the `.objectui-sha` pin `53ded82b`: `ObjectCalendar.tsx:597` - * reads `(schema as any).navigation ?? { mode: 'drawer' }`, `:599` hands it - * to `useNavigationOverlay`, `:809` fires it on an event click and - * `:958-979` renders the overlay — standalone, with no enclosing view. + * Measured at the pin this repo builds against (`.objectui-sha` = + * `87af769e9`; re-READ there 2026-09-22 — every anchor re-derived from the + * pinned tree rather than carried, none of them at its `53ded82bf` number. + * Unlike its `object-kanban` twin the cast is still spelled here, ledgered + * at `:921-935` as the one objectui#8651 left standing): `ObjectCalendar.tsx:936` + * reads `(schema as any).navigation ?? { mode: 'drawer' }`, `:938-939` hands + * it to `useNavigationOverlay`, `:1293` fires it on an event click and + * `:1218` renders the overlay (its `NavigationOverlay` is `:1228-1241`) — + * standalone, with no enclosing view. */ navigation: NavigationConfigSchema.optional() .describe("Event-click navigation config — the same block `ListViewSchema.navigation` declares ({ mode, size, openNewTab, preventNavigation }). The renderer's own default is `{ mode: 'drawer' }` when the key is absent; it is documented rather than declared, so a parsed calendar carries the key only when the author wrote it"), @@ -3558,25 +3572,38 @@ const OBJECT_MAP_FLAT_CONFIG_GUIDANCE: readonly KeySetGuidance[] = [ /** * `object-map` (objectui `plugin-map/src/ObjectMap.tsx` plus the registry shell - * `plugin-map/src/index.tsx`, measured at the `.objectui-sha` pin `53ded82b`). - * Read points per key: `data` (`:169`, the array-shorthand head, then - * `resolveRecordSourceConfig` at `:174` — rung 1 of the ruled record-source - * ladder, `core/src/utils/record-source.ts:151`), `staticData` (rung 2, - * `record-source.ts:155`), `objectName` (rung 3, `record-source.ts:162`; also - * `:793` and `:890` here), `filter` (`:742`, handed verbatim to `$filter`), - * `sort` (`:743`, through the shared `convertSortToQueryParams` sink to - * `$orderby`), `map` (`:370` — `getMapConfig` branch 1, the author face and the - * registration's declared `{ name: 'map', type: 'object' }` input), `mapStyle` - * (`:365`, `schema.mapStyle || schema.map?.style`), `navigation` (`:889`) and - * `enableClustering` (`:905`). + * `plugin-map/src/index.tsx`, read at the pin this repo builds against — + * `.objectui-sha` = `87af769e9`, re-READ there 2026-09-22. ⛔ No anchor below + * is carried from `53ded82bf`: every one was re-derived from the pinned tree, + * and one of them is a read that no longer exists rather than a number that + * moved.) + * Read points per key: `data` (`:182-183` — `getDataConfig` is now that one + * `resolveRecordSourceConfig(schema, 'view-data')` call, rung 1 of the ruled + * record-source ladder, `core/src/utils/record-source.ts:292`. ⚠️ The + * array-shorthand head this record used to cite beside it is GONE, deleted on + * objectui#8348 — `:150-157` records the deletion and `:168-176` records what + * survives it: an authored array still reaches this renderer, but through the + * React props channel, never through the ladder), `staticData` (rung 2, + * `record-source.ts:296`), `objectName` (rung 3, `record-source.ts:303`; also + * here at `:1043`, the `useNavigationOverlay` binding, and as a cache or + * dependency key at `:236`, `:239`, `:298`, `:341` and `:946`), + * `filter` (`:814` and `:895`, handed verbatim to + * `$filter` on the inline and the object fetch respectively), + * `sort` (`:815` and `:896`, through the shared `convertSortToQueryParams` sink + * to `$orderby`), `map` (`:382` — `getMapConfig` branch 1, the author face and + * the registration's declared `{ name: 'map', type: 'object' }` input, + * `plugin-map/src/index.tsx:68` and `:78`), `mapStyle` + * (`:377`, `schema.mapStyle || schema.map?.style`), `navigation` (`:1042`) and + * `enableClustering` (`:1058`). * * Measured and deliberately NOT declared: * * - the flat `map`-config spellings — the ObjectView/ListView flatten product, * ruled an internal transport form (objectui#5018). They get * {@link OBJECT_MAP_FLAT_CONFIG_GUIDANCE}'s wrong-layer prescription. - * - `style`. `ObjectMap.tsx:283` reads it only to say it is NOT consumed as a - * map style (objectui#5017): it is `BaseSchema.style`, the node's inline CSS + * - `style`. `ObjectMap.tsx:295`, inside `warnOnTopLevelStyleUrl` (`:289`), + * reads it only to say it is NOT consumed as a map style (objectui#5017): + * it is `BaseSchema.style`, the node's inline CSS * record, and `COMPONENT_NODE_KEYS` above already sends it back to the node. * - `clusterRadius`, `data` as an ARRAY, `onMarkerClick` / `onRowClick` / * `onEdit` / `onDelete`, `className` and `dataSource` — React props of @@ -3584,11 +3611,11 @@ const OBJECT_MAP_FLAT_CONFIG_GUIDANCE: readonly KeySetGuidance[] = [ * * VALUE posture for `map`: {@link ListMapConfigSchema}, this repo's own block — * the later value ratchet the previous posture here deferred, taken now that the - * one-key gap is closed. `:373` validates the authored block against objectui's + * one-key gap is closed. `:385` validates the authored block against objectui's * `ObjectMapConfigSchema` and this block declares the same eight keys, `style` * included; until that declaration landed the door had to stay `z.unknown()`, * because pointing it at a schema missing `style` would have refused a value - * `getMapConfig` honours at `:365` (`schema.mapStyle || schema.map?.style`). + * `getMapConfig` honours at `:377` (`schema.mapStyle || schema.map?.style`). * `mapStyle` above is unaffected: it stays the component-level spelling read * FIRST, and is not a member of the config block. */ @@ -3609,10 +3636,14 @@ export const ObjectMapPropsSchema = lazySchema(() => strictObject({ * happens to spell it the same way — read after the derivation, as a check on * it, never as the source of it.) * - * The bare-array shorthand `ObjectMap.tsx:169-172` normalizes is NOT declared: - * `ViewData` is a discriminated union over OBJECT variants, so an array under - * `data` cannot be published, and `staticData` below is this block's declared - * door for inline rows — the renderer's own comment says so. + * The bare-array shorthand is NOT declared: `ViewData` is a discriminated + * union over OBJECT variants, so an array under `data` cannot be published, + * and `staticData` below is this block's declared door for inline rows — the + * renderer's own comment says so. ⚠️ At `87af769e9` the renderer no longer + * normalizes it either: the head this record used to cite at + * `ObjectMap.tsx:169-172` was deleted on objectui#8348, and `:168-176` is + * now the note that an authored array reaches the component on the React + * props channel alone. */ data: ViewDataSchema.optional() .describe("Data source binding (ViewDataSchema — discriminated on `provider`: object | api | value | schema), read FIRST by `getDataConfig`. Static inline rows live at `{ provider: 'value', items: [...] }` or at `staticData`; the bare-array shortcut is refused"), @@ -3622,9 +3653,11 @@ export const ObjectMapPropsSchema = lazySchema(() => strictObject({ * Base query filter — the `ViewFilterRule` ARRAY form, the one filter * orthography every `filter` door in this map shares (ui#6206-B reaching the * `object-*` family: #15449, decision batch #55, option A). Measured at the - * objectui pin `53ded82b`: `ObjectMap.tsx:742` hands `schema.filter` verbatim - * to `$filter`, where the adapter lowers a rule array exactly as it does for - * the kanban and the calendar. The record form is refused at `filter`. + * pin this repo builds against (`.objectui-sha` = `87af769e9`, re-READ + * 2026-09-22): `ObjectMap.tsx:814` and `:895` hand `schema.filter` verbatim + * to `$filter` on the inline and the object fetch, where the adapter lowers a + * rule array exactly as it does for the kanban and the calendar. The record + * form is refused at `filter`. */ filter: z.array(ViewFilterRuleSchema, { error: ruleArrayFilterError({ @@ -3636,8 +3669,10 @@ export const ObjectMapPropsSchema = lazySchema(() => strictObject({ /** * Marker order — the `SortItem` ARRAY form, the one sort orthography every * DECLARED `sort` door on this platform carries (objectui#8221, decision batch - * #77, option B). Measured at the objectui pin `53ded82b`: `ObjectMap.tsx:743` - * hands `schema.sort` to the shared `convertSortToQueryParams` sink as the + * #77, option B). Measured at the pin this repo builds against + * (`.objectui-sha` = `87af769e9`, re-READ 2026-09-22): `ObjectMap.tsx:815` + * and `:896` + * hand `schema.sort` to the shared `convertSortToQueryParams` sink as the * fetch's `$orderby` — the same sink `object-grid` and `object-calendar` * declare against, so the legacy string clause is refused here for the same * ruling. `plugin-map/src/index.tsx` declares no `sort` input at all, so @@ -3712,32 +3747,40 @@ const OBJECT_GANTT_FLAT_CONFIG_GUIDANCE: readonly KeySetGuidance[] = [ /** * `object-gantt` (objectui `plugin-gantt/src/ObjectGantt.tsx` plus the registry - * shell `plugin-gantt/src/index.tsx`, measured at the `.objectui-sha` pin - * `53ded82b`). Read points per key: `data` (`resolveRecordSourceConfig` at - * `:593` — rung 1, `core/src/utils/record-source.ts:151`), `staticData` (rung 2, - * `record-source.ts:155`), `objectName` (rung 3; also `:1359` and `:1491` here), - * `filter` (`:738`, verbatim to `$filter`), `sort` (`:739`, through - * `convertSortToQueryParams` to `$orderby`), `gantt` (`:499-501` — + * shell `plugin-gantt/src/index.tsx`, read at the pin this repo builds against + * — `.objectui-sha` = `87af769e9`, re-READ there 2026-09-22. ⛔ Not one anchor + * below is carried from `53ded82bf`; every number was re-derived from the + * pinned tree, and the `label` one moved far enough that the retired reading + * now lands in an unrelated callback.) + * Read points per key: `data` (`resolveRecordSourceConfig` at + * `:613` — rung 1, `core/src/utils/record-source.ts:292`), `staticData` (rung 2, + * `record-source.ts:296`), `objectName` (rung 3; also `:1487` and `:1682` here), + * `filter` (`:844`, verbatim to `$filter`), `sort` (`:845`, through + * `convertSortToQueryParams` to `$orderby`), `gantt` (`:501-503` — * `getGanttConfig` branch 1, the author face and the registration's declared - * `{ name: 'gantt', type: 'object' }` input, validated there against this - * repo's own {@link GanttConfigSchema}), `navigation` (`:1487`), `label` - * (`:1871`, resolved through `resolveI18nLabel` for the export file name — - * `:1849` is the comment ABOVE that chain, not a read), - * `skipWeekends` (`:1205`), `holidays` (`:1206`), `persistLayout` (`:1357`), - * `viewName` (`:1359`), `markers` (`:1826`), `criticalPath` (`:1829`), - * `showBaselines` (`:1832`), `readOnly` (`:1833` and `:1916`) and - * `mobileReadOnly` (`:1834`). + * `{ name: 'gantt', type: 'object' }` input (`plugin-gantt/src/index.tsx:121`), + * validated there against this + * repo's own {@link GanttConfigSchema}), `navigation` (`:1615`), `label` + * (`:2181`, resolved through `resolveI18nLabel` for the export file name — + * ⚠️ the retired reading `:1849` was the comment ABOVE that chain and at this + * pin is a BLANK line, two above a dependency-delete callback's own comment, + * so it is re-READ here, not re-pointed), + * `skipWeekends` (`:1333`), `holidays` (`:1334`), `persistLayout` (`:1485`), + * `viewName` (`:1487`), `markers` (`:2136`), `criticalPath` (`:2139`), + * `showBaselines` (`:2142`), `readOnly` (`:1985` and `:2143`) and + * `mobileReadOnly` (`:2144`). * * Measured and deliberately NOT declared: the flat `GanttConfig` spellings (the * flatten product — {@link OBJECT_GANTT_FLAT_CONFIG_GUIDANCE}); `title`, which * this renderer never reads (the export-name chain is `gantt.exportFileName` → - * `label` → the OBJECT's label → `objectName`, `:1869-1874`); a row cap — the - * reload's `$top` is the platform ceiling `NON_GRID_ROW_CEILING_TOP` and the - * renderer's own comment marks it "⛔ Not authorable"; and the `onTaskClick` / - * `onRowClick` / `onBeforeTaskUpdate` callbacks, which are host props. + * `label` → the OBJECT's label → `objectName`, `:2179-2185`); a row cap — the + * reload's `$top` is the platform ceiling `NON_GRID_ROW_CEILING_TOP` (`:855`) + * and the renderer's own comment marks it "⛔ Not authorable" (`:853`); and + * the `onTaskClick` / `onRowClick` / `onBeforeTaskUpdate` callbacks, which are + * host props. * * VALUE posture: `gantt` is the one config block in this family whose value - * contract is already the SPEC's — `ObjectGantt.tsx:500` validates it against + * contract is already the SPEC's — `ObjectGantt.tsx:503` validates it against * `GanttConfigSchema` imported from `@objectstack/spec/ui` — so the read point * names the schema and this door takes it rather than `z.unknown()`. The * scalars below are read as their coercions say: `!!schema.readOnly`, @@ -3811,19 +3854,30 @@ export type ObjectGanttPropsParsed = z.infer; /** * The flat `TreeConfig` spellings `getTreeConfig` reads ahead of the `tree` - * block (`ObjectTree.tsx:108-119`) and that `ObjectView` / `ListView` EMIT when - * they flatten `options.tree` (`ListView.tsx:2597-2606`, `case 'tree'`: the - * product carries these keys and NO `tree` key). Read, but NOT authorable — + * block (`ObjectTree.tsx:235-248`) and that `ObjectView` / `ListView` EMIT when + * they flatten `options.tree` (`ListView.tsx:3261-3275`, `case 'tree'`: the + * product carries these keys and NO `tree` key). Both halves re-READ at the + * pin this repo builds against (`.objectui-sha` = `87af769e9`) on + * 2026-09-22 — this record carried no pin at all before, so nothing re-checked + * it when the pin moved. Read, but NOT authorable — * one composition key per concept (Prime Directive #12), the ruling the map and * the gantt carry from objectui#5018 / #6469 and the channel `object-calendar` * uses above. The registration agrees: `plugin-tree/src/index.tsx` declares * `{ name: 'tree', type: 'object' }` and no flat input. * * `titleField` is in the set although no `tree` block key is spelled that way: - * `getTreeConfig` reads it as the last fallback for `labelField` - * (`:117`), and `ListView`'s flatten resolves `treeCfg.titleField` into - * `labelField` before emitting, so the author's intent is always the block's - * `labelField`. + * `ListView`'s flatten resolves `treeCfg.titleField` into `labelField` before + * emitting (`ListView.tsx:3270`, `labelField: treeCfg.labelField || + * treeCfg.titleField || 'name'`), so the author's intent is always the block's + * `labelField`, and the prescription below says so. + * + * ⚠️ The renderer's own half of that sentence is GONE, and it is a DELETED + * read rather than a moved one: `getTreeConfig`'s `?? schema.titleField` rung + * — the `:117` this record used to cite — was removed on objectui#8841 + * because it read the FLATTENED NODE and never the block, and the docblock at + * `ObjectTree.tsx:197-218` records the three measurements that retired it. + * The flatten half above is what keeps the key in this set; ⛔ do not restore + * the renderer half from this record's history. */ const OBJECT_TREE_FLAT_CONFIG_GUIDANCE: readonly KeySetGuidance[] = [ ...COMPONENT_LEVEL_GUIDANCE, @@ -3841,15 +3895,26 @@ const OBJECT_TREE_FLAT_CONFIG_GUIDANCE: readonly KeySetGuidance[] = [ /** * `object-tree` (objectui `plugin-tree/src/ObjectTree.tsx` plus the registry - * shell `plugin-tree/src/index.tsx`, measured at the `.objectui-sha` pin - * `53ded82b`). Read points per key: `data` (`resolveRecordSourceConfig` at - * `:359` — rung 1, `core/src/utils/record-source.ts:151`, which returns the - * authored value VERBATIM as a `ViewData`; that ONE site is the whole support - * for the arm this row declares), `staticData` (rung 2, - * `record-source.ts:155`), `objectName` (rung 3; also `:534`, `:570` and - * `:605` here), `filter` (`:474`, verbatim to `$filter`), `tree` (`:108`, the - * nested config block `getTreeConfig` reads and the registration's declared - * `{ name: 'tree', type: 'object' }` input) and `navigation` (`:591`). + * shell `plugin-tree/src/index.tsx`, read at the pin this repo builds against + * — `.objectui-sha` = `87af769e9`, re-READ there 2026-09-22. ⛔ No anchor + * below is carried from `53ded82bf`; every one was re-derived from the pinned + * tree, and the ladder call changed in CONTENT as well as position.) + * Read points per key: `data` (`resolveRecordSourceConfig` at + * `:582` — rung 1, `core/src/utils/record-source.ts:292`, which returns the + * authored value VERBATIM; that ONE site is the whole support + * for the arm this row declares. ⚠️ The ARM this renderer passes is + * `'undeclared'`, not the `'view-data'` its siblings pass, so rung 1 honours + * any truthy value there — WIDER than this row, which is the harmless + * direction: the bare array this door refuses is one the renderer would have + * taken, never the reverse), `staticData` (rung 2, + * `record-source.ts:296`), `objectName` (rung 3; also `:871`, `:922` and + * `:985` here, each behind `resolveRecordSourceObjectName`, plus the + * parent-field detection at `:813-814`), + * `filter` (`:742`, verbatim to `$filter`), `tree` (`:236`, the + * nested config block `getTreeConfig` (`:235-248`) reads, and the + * registration's declared `{ name: 'tree', type: 'object' }` input + * (`plugin-tree/src/index.tsx:27-31`)) and `navigation` (`:908`, handed to + * `useNavigationOverlay` at `:891`). * * ⚠️ `data` IS declared here, and that is the measurement, not a family * symmetry. objectui#9234 left this block's rung-1 read marked `undeclared` @@ -3860,23 +3925,24 @@ const OBJECT_TREE_FLAT_CONFIG_GUIDANCE: readonly KeySetGuidance[] = [ * resolving for this block means, and the mirror is the face that has to * follow. * - * ⛔ `:496` is NOT a second site for the object arm, and citing it as one would - * be citing a read of the opposite SHAPE: `(rest as any).data ?? (schema as - * any).data` is gated by `Array.isArray(passed)` on the very next line, so it + * ⛔ `:775` is NOT a second site for the object arm, and citing it as one would + * be citing a read of the opposite SHAPE: `(rest as any).data ?? schema.data` + * (the cast on `schema` went away with objectui#8655; the one on `rest` stays) + * is gated by `Array.isArray(passed)` on the very next line, so it * honours only the bare-ARRAY shorthand this row REFUSES — the same shorthand * `object-map` measures and declines one section up. One ladder site is - * sufficient, and `:359` is it. + * sufficient, and `:582` is it. * * Measured and deliberately NOT declared: the flat `TreeConfig` spellings * ({@link OBJECT_TREE_FLAT_CONFIG_GUIDANCE}); the bare-array `data` shorthand - * `:496-497` accepts, which `ViewData` cannot publish (a discriminated union + * `:775-776` accepts, which `ViewData` cannot publish (a discriminated union * over OBJECT variants) and for which `staticData` is this block's declared * door; `sort` — this renderer's fetch - * (`:473-484`) carries `$filter`, `$top` and `$expand` and NO `$orderby`, and + * (`:741-753`) carries `$filter`, `$top` and `$expand` and NO `$orderby`, and * nothing else reads an order, so declaring one would publish a key with no read * site; a row cap, for the same reason `object-gantt` declares none (the `$top` - * is the platform ceiling, marked "⛔ Not authorable" at `:482`); and - * `filter.tree`, the legacy stash `:108` still reads, which is a shape to stop + * is the platform ceiling at `:751`, marked "⛔ Not authorable" at `:750`); and + * `filter.tree`, the legacy stash `:236` still reads, which is a shape to stop * writing rather than a key to declare. * * This is also the one block of the three whose type is absent from the tracked @@ -3888,7 +3954,8 @@ const OBJECT_TREE_FLAT_CONFIG_GUIDANCE: readonly KeySetGuidance[] = [ * VALUE posture for `tree`: {@link TreeConfigSchema}, this repo's own block — * #15469 closed it against unknown keys on exactly this measurement * (`getTreeConfig` reads precisely those four keys from the block; the - * undeclared read set was EMPTY), re-measured here at `53ded82b` and unchanged. + * undeclared read set was EMPTY), re-measured at `87af769e9`; unchanged since + * `53ded82b`. */ export const ObjectTreePropsSchema = lazySchema(() => strictObject({ surface: 'this `object-tree`', @@ -3903,10 +3970,18 @@ export const ObjectTreePropsSchema = lazySchema(() => strictObject({ * component-level `dataSource` binding can supply the object instead"; that * holds for them because each registers through `ElementDataSourceGate`, * which lowers the spec binding onto `objectName` before the renderer sees - * the node. `plugin-tree/src/index.tsx` does NOT: at the `.objectui-sha` pin - * `53ded82b` its registry shell has ZERO hits for that wiring, against 7 + * the node. `plugin-tree/src/index.tsx` does NOT: at the pin this repo + * builds against (`.objectui-sha` = `87af769e9`, re-COUNTED there + * 2026-09-22) its registry shell has ZERO hits for that wiring, against 3 * each in `plugin-map`, `plugin-gantt`, `plugin-grid` and `plugin-calendar` - * — four controls, so the zero discriminates. Its shell pulls a `dataSource` + * — four controls, so the zero discriminates. ⚠️ Re-counted at BOTH ends of + * the hop with ONE method (occurrences of that identifier in each + * `src/index.tsx`): `53ded82bf` reads 3 each and 0 for the tree as well, so + * nothing about this reading moved. The `7 each` this record used to carry is + * reproducible at neither pin by that method, nor by a whole-package count + * (7 / 5 / 11 / 5, not 7 each). ⛔ A count is a reading only with its METHOD + * written beside it — without one, re-stating the carried number is exactly + * what survives a re-measure. Its shell pulls a `dataSource` * off the schema context and hands it down as the data ADAPTER; nothing on * that path writes an object name. * @@ -3983,8 +4058,14 @@ const OBJECT_TIMELINE_FLAT_CONFIG_GUIDANCE: readonly KeySetGuidance[] = [ /** * `object-timeline` (objectui `plugin-timeline/src/ObjectTimeline.tsx`, the * presentational `plugin-timeline/src/renderer.tsx` it composes into, and the - * registry shell `plugin-timeline/src/index.tsx` — all read at the - * `.objectui-sha` pin `53ded82b` this repo builds against). + * registry shell `plugin-timeline/src/index.tsx` — all read at the pin this + * repo builds against (`.objectui-sha` = `87af769e9`), re-READ there + * 2026-09-22. + * + * ⛔ This record used to be MIXED, and the historical spelling is what let it + * be: its `limit` clause was re-read at this pin on 2026-09-21 while every + * other anchor beside it was still a `53ded82bf` reading, in the same file, + * with nothing to tell the two apart. Every anchor below is now at this pin.) * * #17987 executes the objectui#8652 maintainer ruling (verbatim `B`). The * ruling's carrier is `navigation`, declared below beside its `object-kanban` @@ -3996,39 +4077,47 @@ const OBJECT_TIMELINE_FLAT_CONFIG_GUIDANCE: readonly KeySetGuidance[] = [ * directions: nothing accepted a real key and nothing refused a typo. * * Read points per key, in `ObjectTimeline.tsx` unless named otherwise: - * `objectName` (`:172`, `:194-204`, `:215-247`, `:314`, `:459-464` — the - * fetch, the object-def load and the pull-to-refresh gate), `timeline` (`:179`, + * `objectName` (`:256` the fetch gate, `:325-328` the object-def load through + * `useSettledSchema`, `:346` / `:404` / `:420` inside the fetch effect, + * `:647` the pull-to-refresh gate, `:502` the entry composition and `:652` + * the navigation binding), `timeline` (`:262`, * the canonical nested config every field resolution prefers), `filter` - * (`:210`, `:232` — verbatim to `$filter`), `sort` (`:211`, `:233` — through + * (`:341`, `:405` — verbatim to `$filter`), `sort` (`:342`, `:406` — through * the shared `convertSortToQueryParams` sink, as `object-calendar`'s does), - * `limit` (⭐ re-READ at the CURRENT pin `87af769e9` on 2026-09-21T06:30Z, - * #19228 — the other anchors in this list are still the `53ded82b` readings - * the header names: `:407`, the fetch's one top-level `$top`, through + * `limit` (`:407`, the fetch's one top-level `$top`, through * `resolveRowLimit(schema.limit, DEFAULT_TIMELINE_LIMIT)` with the default * `100` at `:29` and the refused-cap diagnostic at `:279`. ⚠️ It is this FLAT * key that is read — this node's own nested `timeline.limit` is not, on any * route. What reaches this flat key is a VIEW document's `timeline.limit`, - * flattened onto the generated node by `ObjectView.tsx:1725`; see the - * `timeline` door below), `items` (`:170`, `:247`, `:299`, - * `:480` — the authored pass-through that short-circuits the object query), - * `data` (`:171`, `:247`, `:254`, `:256` — the pre-fetched record source, + * flattened onto the generated node by `plugin-view/src/ObjectView.tsx:1725` + * (`...(viewOptions.timeline || {})`, spelled with its package because objectui + * carries a second `ObjectView.tsx` in `app-shell`); see the + * `timeline` door below), `items` (`:254`, `:420`, `:487`, + * `:668` — the authored pass-through that short-circuits the object query), + * `data` (`:255`, `:420`, `:442`, `:444` — the pre-fetched record source, * read off REACT PROPS rather than `schema`; the door's own docblock carries * how an authored key reaches that channel and why a `schema.*` sweep alone * publishes a false refusal), - * `descriptionField` (`:290`), `mapping` (`:263`, `:288`, `:290`, `:291`), - * `variant` (`:518`) and `navigation` (`:462-466` → `:597` → `:652`). + * `descriptionField` (`:478`), `mapping` (`:451`, `:476`, `:478`, `:479`), + * `variant` (`:706`) and `navigation` (`:650-653` → `:785` → `:840-841`). * Four more are read by the presentational renderer off the schema this - * component spreads into it (`effectiveSchema`, `:581-602`): `dateFormat` - * (`renderer.tsx:1215`, every variant) and the gantt trio `rowLabel` - * (`renderer.tsx:1499`), `minDate` / `maxDate` (`renderer.tsx:1436-1451`). + * component spreads into it (`effectiveSchema`, `:769-788`): `dateFormat` + * (`plugin-timeline/src/renderer.tsx:1215`, every variant — its number is the + * same at both pins, as `plugin-timeline/src/index.tsx:333`'s also is, which is + * why the number alone is never the reading) and the gantt trio `rowLabel` + * (`plugin-timeline/src/renderer.tsx:1505`), `minDate` / `maxDate` + * (`plugin-timeline/src/renderer.tsx:1442-1457`). ⚠️ All three name their + * package because objectui has a second `renderer.tsx` (in `plugin-chatbot`): + * a suffix that matches two files names neither, and the gate drops it from + * the population rather than guessing. * * Measured and deliberately NOT declared, each with its reason: * - the flat field spellings and `scale` * ({@link OBJECT_TIMELINE_FLAT_CONFIG_GUIDANCE}) — the runtime handoff * `ListView` emits, not a second authoring spelling; * - `bind` — the objectui data-scope key the section header above rules out - * for every block in this family (`:188` here); - * - `className` (`:584`) — a node-level key on `PageComponentSchema`, not a + * for every block in this family (`:283` here); + * - `className` (`:772`) — a node-level key on `PageComponentSchema`, not a * per-block prop; * - `onItemClick` / `onRowClick` — host callbacks JSON cannot carry. * @@ -4051,18 +4140,26 @@ const OBJECT_TIMELINE_FLAT_CONFIG_GUIDANCE: readonly KeySetGuidance[] = [ * `groupByField`, `colorField`, `metaFields` (`:520`, through an `as any` * cast, which is why a `timelineConfig?.x` sweep alone under-counts) and * `scale`. `limit` is not among them, and NO spread of a node's own - * `timeline` block exists anywhere in objectui (0 hits; lit control, same - * shape, the view-block spreads `...mergedTimeline` / + * `timeline` block exists anywhere in objectui (0 hits on the NODE face — + * method: `git grep '\.\.\.(schema\.timeline'` at this pin returns four + * lines and every one is on the VIEW face, where `schema` is the view + * document: the block spread at `plugin-list/src/ListView.tsx:3066` and the + * three member-conditional ones at `:3114-3116`. ⛔ Without that scope + * written beside it the count is not 0. Lit control, same shape: the + * view-block spreads `...mergedTimeline` / * `...(viewOptions.timeline || {})`, which do fire). The * `ElementDataSourceGate` mapping is `limit: 'limit'` * (`plugin-timeline/src/index.tsx:333`) — FLAT, so it never touches the * nested key either. * - **VIEW FACE — a `ListViewSchema` document's `timeline.limit`: that is * the route-dependent one**, and it is a different key on a different - * document. `ObjectView.tsx:1725` flattens the view block onto the node it - * returns (which then carries no `timeline` block at all), so the value - * arrives as this node's FLAT `limit` and is read; `ListView.tsx:3084` - * forwards it nested instead, where nothing reads it. Recorded on + * document. `plugin-view/src/ObjectView.tsx:1725` flattens the view block + * onto the node it returns (which then carries no `timeline` block at all), + * so the value arrives as this node's FLAT `limit` and is read; + * `ListView.tsx:3084` forwards it nested instead, where nothing reads it. + * The package is spelled because objectui carries a second `ObjectView.tsx` + * (in `app-shell`), where that same line number is an unrelated `catch` — + * a bare spelling here names neither file. Recorded on * `rowLimitKey` in `view.zod.ts`, which is where that key lives. * * ⚠️ Flagged, not fixed — a THIRD route neither the card nor the first two @@ -4081,12 +4178,19 @@ const OBJECT_TIMELINE_FLAT_CONFIG_GUIDANCE: readonly KeySetGuidance[] = [ * reference, for the reason the ruling gives. * * ⚠️ `variant: 'gantt'` is declared because the registration declares it - * (`index.tsx:361-362`) and the renderer reads it — but the OBJECT-BOUND - * composed path REFUSES it loudly (objectui#6655: `:518` renders - * `timeline-unsupported-variant`), so on this block it is usable only - * together with authored `items`. Declared-and-refused-with-a-diagnostic is not - * the accepted-and-dropped class this section exists to close: the author is - * told, in the renderer, by name. + * (`plugin-timeline/src/index.tsx:361-362`) and the renderer reads it — but the + * OBJECT-BOUND composed path REFUSES it loudly (objectui#6655, + * `ObjectTimeline.tsx:706-708`: + * `:706` gates on `!hasAuthoredItems && schema.variant === 'gantt'` and `:708` + * renders `timeline-unsupported-variant`. ⚠️ The `:518` this clause carried is + * that gate at the RETIRED `53ded82bf` and a comment line at this pin. It sat on + * a line the 2026-09-22 conversion never touched — and so did eight other + * anchors of this record, so the untouched line is not what singles it out. + * RE-READING all nine at this pin does: the other eight say here what this + * record claims they say, and this one alone did not), so on this block it is + * usable only together with authored `items`. + * Declared-and-refused-with-a-diagnostic is not the accepted-and-dropped class + * this section exists to close: the author is told, in the renderer, by name. */ export const ObjectTimelinePropsSchema = lazySchema(() => strictObject({ surface: 'this `object-timeline`', @@ -4128,13 +4232,14 @@ export const ObjectTimelinePropsSchema = lazySchema(() => strictObject({ * `schema.` OR `props.`, and a measurement that greps only the * first publishes a refusal for a key the renderer honours. * - * Read points at the `.objectui-sha` pin `53ded82b`, all in - * `ObjectTimeline.tsx`: `:171` seeds the loading state off it, `:247` - * SKIPS the object query when it is present, `:254` tracks it, and `:256` + * Read points at the pin this repo builds against (`.objectui-sha` = + * `87af769e9`, re-READ 2026-09-22), all in + * `ObjectTimeline.tsx`: `:255` seeds the loading state off it, `:420` + * SKIPS the object query when it is present, `:442` tracks it, and `:444` * is the row source itself — `(props as any).data || boundData || * fetchedData`, so it wins over both the data-scope binding and the fetch. * Unlike `items` one line down, these rows are RECORDS: they go through the - * same `timeline` field bindings a fetched row takes (`:300`, `:367`). + * same `timeline` field bindings a fetched row takes (`:555-556`, `:570`). */ data: z.array(z.unknown()).optional() .describe("Pre-fetched records — read FIRST as the rail's row source, ahead of the data-scope binding and the fetch, and composed into entries through the same `timeline` field bindings a fetched row takes; authoring it suppresses the object query entirely. Distinct from `items`, which is the already-composed entry shape and wins over this key when both are written"), @@ -4335,9 +4440,11 @@ export const ComponentPropsMap = { // #5068 gate skipped them and objectui's OWN mirror stood in as the // authority for map and gantt while tree's rung-1 `data` read stayed // undeclared on every face. Key sets measured from the renderers' read - // points at the `.objectui-sha` pin `53ded82b` — per-block citations in each - // schema's header, including what each block reads and deliberately does NOT - // declare. + // points at the pin this repo builds against (`.objectui-sha` = + // `87af769e9`), all three re-READ there 2026-09-22 — per-block citations in + // each schema's header, including what each block reads and deliberately + // does NOT declare, and what the hop from `53ded82bf` deleted rather than + // moved. 'object-map': ObjectMapPropsSchema, 'object-gantt': ObjectGanttPropsSchema, 'object-tree': ObjectTreePropsSchema, @@ -4347,7 +4454,8 @@ export const ComponentPropsMap = { // type union's open string arm, and with no row here the #5068 gate skipped // it — so `object-timeline` was unjudged in both directions, a real key and // a typo riding through alike. Key set measured from the renderer's read - // points at the `.objectui-sha` pin `53ded82b`; the schema's own header + // points at the pin this repo builds against (`.objectui-sha` = + // `87af769e9`), re-READ there 2026-09-22; the schema's own header // carries the per-key citations and what it deliberately does NOT declare. 'object-timeline': ObjectTimelinePropsSchema, } as const;