This repository was archived by the owner on Nov 4, 2026. It is now read-only.
Repository navigation
Commit 35d68c4
fix(plugin-view): the host delegation reads a named view's remaining protocol members off the named view (objectui#10758) (#10884)
Fixes #10758
Clause-②: no
Claim `5861950053`, seat `domain:ui#4`, PM session
`session_01MCg3z5cGrV51xEddpGcxEY`
(`https://claude.ai/code/session_01MCg3z5cGrV51xEddpGcxEY`). This is
bucket ① of the objectui#7924 ruling (`5690906005`). `densityMode` and
`allowExport` stay excluded, per the re-ruling `5852199633` as amended
by `5856690997`.
## Re-sample (step 1), on objectui `origin/main` `de1b879`
Each reading was taken off disk and off the installed
`@objectstack/spec` 17.4.0. A scratch script walked the spec schema,
parsed the `NamedListView` interface with the TypeScript parser, and
parsed both host literals. The types census re-derives the same
partition on every run.
- **The protocol's named view.** `ObjectListViewSchema` declares 50
keys. Five of them are retirement tombstones, so 45 are live.
`NamedListView` declares 64 members, and every one of the 45 live
protocol keys is among them.
- **What the renderer read off a named view: 20 names.** They are
`appearance`, `calendar`, `chart`, `columns`, `data`, `fieldOrder`,
`filter`, `gallery`, `gantt`, `grouping`, `kanban`, `label`, `map`,
`name`, `rowColor`, `sort`, `timeline`, `tree`, `type` and
`userActions`.
- The card says 21. PR objectui#10821 removed the `options` read after
the card was filed, and `options` is not a protocol key.
- The delegation itself (the `renderListView` literal) read 10 of the
20. Eight are read inside the fence: `label`, `columns`, `grouping`,
`userActions`, `rowColor`, `data`, `fieldOrder` and `appearance`.
`filter` and `sort` are read upstream, in `authoredFilters` and
`mergedSort`.
- **Bucket ①: 23 protocol members that no route read off a named view.**
These are the ruling's count and the ruling's names: `addRecord`,
`allowPrinting`, `aria`, `bulkActionDefs`, `bulkActions`,
`compactToolbar`, `conditionalFormatting`, `description`, `emptyState`,
`exportOptions`, `filterableFields`, `hiddenFields`, `inlineEdit`,
`navigation`, `pagination`, `resizable`, `rowActions`, `rowHeight`,
`searchableFields`, `selection`, `sharing`, `showRecordCount` and
`userFilters`.
- `tabs` and `pageName` are also unread. They stay out because
objectui#8980 ruled them declared-inert.
- **The delegation's rungs for these 23, before this PR.**
- 19 read the host `views` entry, then the node (`activeView?.X ??
(schema as any).X`).
- `rowHeight` read the host entry through the density fold.
- `description`, `exportOptions` and `bulkActionDefs` had no rung at
all.
- **App-shell's object page relay drops none of the 23.**
- 22 have a rung that reads its active view (`viewDef.X`).
- `compactToolbar` arrives through the plugin-view composition.
`ObjectView.relayRungCensus-7559.test.ts` records it as relayed
upstream.
- So `packages/app-shell/src/views/ObjectView.tsx` is not touched (N4).
App-shell hands its named view to plugin-view as the host `views` entry,
not as `listViews`.
- **The consumer (N3).** `ListView` reads all 23 off the `list-view`
node it is handed.
- Most are read directly.
- Seven are forwarded to the `object-grid` that ListView renders, and
`ObjectGrid` reads each one: `pagination`, `selection`, `resizable`,
`rowActions`, `bulkActions` (as `batchActions`), `bulkActionDefs` and
`conditionalFormatting`.
- No member reaches the node without a reader, so N3 has no
declared-not-enforced gap to list.
## What changed
- **`packages/plugin-view/src/ObjectView.tsx`**, in the
`renderListView({ schema: { … } })` literal inside the objectui#5097
HOST-COMPOSITION fence. Each of the 23 rungs now reads the active named
view first (`currentNamedViewConfig?.X`). Then it reads the host `views`
entry, and then the node, but only where the rung already read the node.
This is the precedence `grouping`, `rowColor` and `appearance` use.
- The three new rungs (`description`, `exportOptions`, `bulkActionDefs`)
read the two views only. They never read the node.
- A named view's `rowHeight` is read as itself: the strict record
refuses `densityMode`, so there is nothing to fold. The host entry still
goes through the fold (ruling A′).
- ⛔ No rung gained a `(schema as any)` read, so the objectui#5097
exemption stays at 27 names. ⛔ No alias and no non-protocol key is read
off the named view.
- **What moves for a host.** Only a host that supplies both `listViews`
and its own `renderListView` sees a change.
- Where the active named view and the host `views` entry both carry one
of these members, the named view's value now wins.
- A named view that carries none of them hands down exactly what it did
before.
- The registered `object-view` renderer passes no `renderListView`, so
an authored node is unaffected.
- **Changeset**: `10758-named-view-protocol-members.md`, `patch` for
`@object-ui/plugin-view`.
## Beyond the claimed file surface, and why
1.
**`packages/types/src/__tests__/object-view-unmirrored-keys-7779.test.ts`**,
the types census. It pins every bucket-① member UNREAD by name, so the
change turns it red by construction. Every pin that held one of these
members unread is inverted. ⛔ None is deleted.
- The census moves from 20 read / 44 unread to 43 read / 21 unread.
- Bucket ① is asserted EMPTY, derived rather than listed. The 23 names
are kept as the pinned reading of what moved, one READ assertion each.
- The census's negative twin moves from `rowHeight` to `allowExport`,
which is read off the host entry and the node and not off a named view.
- The absence pin for `bulkActionDefs` / `exportOptions` becomes a read
pin that also holds "no node read".
- The `densityMode` pin and the two `READ_TEXT` rows follow the new rung
text.
2. **`packages/plugin-view/README.md`** and
**`content/docs/plugins/plugin-view.mdx`** each gain one prose paragraph
describing the host-path precedence. This follows the docs-driven rule
(AGENTS.md section 5, #2). Neither file gains a code fence.
## Pins, one named view per member family
- **`ObjectView.namedViewProtocolKeys-8980.test.tsx`**, a new route-3
block. There are four families: list chrome (7), record actions (6),
grid presentation (6), and search, filter and navigation (4). Each
family runs four cases:
- the named view parses under the strict `ObjectListViewSchema`, so
every value is one a conforming author can write;
- **THE FIX**: the named view's value reaches the `list-view` node the
host renders, and wins over the host entry and the node;
- **CONTROL**: with the family absent from the named view, the host
entry supplies it;
- **CONTROL**: with neither view declaring it, the node supplies it. The
four rungs with no node read stay `undefined`.
- The members already read (`label`, `columns`, `fieldOrder`,
`grouping`) ride every fixture as the firing control. A last case holds
`rowHeight`: the named value is read as itself, and the host entry's
retired spelling still arrives through the fold.
- **`objectViewHostSurface.test.tsx`**, a new section 1b, derived with
the TypeScript parser over the fence only:
- the named-view read set inside the fence, by name;
- the property that every rung for a protocol member reads the named
view, except `type` (node identity) and `filter` / `sort` (read
upstream);
- no named-view read of a key the protocol does not declare there, with
`allowExport` as the control;
- no new cast read.
- **"The rendered view" here is the `list-view` node that the host's
`renderListView` receives.** A plugin-view test cannot import
`ListView`: `@object-ui/plugin-list` is not a plugin-view dependency,
and `check:phantom-deps` refuses the import. The link from that node to
the rendered list is `ListView`'s own reads, listed under N3 above.
## Verification at `5dc80e3`
Every heavy run went through `os-verify-lock.sh`, and each exit code was
captured redirect-first.
- **vitest `packages/plugin-view/`** plus the types census: 53 files,
745 tests passed, `VERDICT command-exit 0`.
- **vitest on the tests that read the three changed markdown files**
(from `scripts/markdown-test-inputs.mjs --list`), every app-shell
`ObjectView*` test (the relay census included) and
`StudioDesignSurface.gridRefresh`: 58 files, 1243 tests passed, `VERDICT
command-exit 0`.
- **`type-check`**, exit 0 for `@object-ui/plugin-view` (`tsc --noEmit
&& tsc -p tsconfig.test.json`) and for `@object-ui/types` (plus
`tsconfig.examples.json`). `--listFilesOnly` confirms the three edited
test files are in those programs.
- **ESLint `--no-inline-config`** on the 4 edited TS/TSX files, which is
the whole population: `eslint.config.js` covers them with `files:
['**/*.{ts,tsx}']`, and `--format json` reports 4 files.
- 0 errors and 86 warnings, per file identical to the base (60 / 26 / 0
/ 0).
- Not type-aware: `projectService` / `parserOptions` count 0 against a
`languageOptions` control of 1. So no untouched file's verdict can move.
- **Gates**, exit 0 each:
- `check-changeset-presence` (4 source files of 2 released packages, 1
changeset), `check-changeset-no-major`, `check-changeset-fixed`,
`check-changeset-overwrite`, and `check-changeset-claims` (report-only;
the six pending paragraphs it names were read and are still true);
- `check:pending-changeset-literals`, `check:new-line-citations` (0
new), `check:control-bytes`, `check:test-path-roots`, and the three
`check:vi-mock-*` gates;
- `check:spec-symbols` and `check:phantom-deps`;
- `check:doc-types`, `check:doc-fences`, `check:doc-example-ids`,
`check-doc-expression-carriage`, `check-doc-links` and
`check:doc-example-readers`;
- `check-governed-queue-guard --test` on the 7 paths: NOT GOVERNED.
- **NOT MEASURED:**
- `check:readme-exports`: prerequisite not met (the workspace dists are
not built). This diff adds no fenced block to any README.
- `check:doc-snippets` / `check:doc-examples`: not run, because no
fenced block was added.
- The full `@object-ui/types` suite: only a test file changed there, and
that file and the types tests that read the changed markdown ran.
- The full app-shell suite and the Spec Main Shape Gate: CI runs them.
## Reverse verification
Run once on the committed tree `59046a2` with `ablation-replace.mjs`.
The whole HOST-COMPOSITION fence was replaced by its base text; the
mutated blob `e1e9557` equals the base blob. The directions were
predicted before the run.
- **Result: 64 failed, 225 passed.**
- 8980 pin: 7 red. These are the four THE FIX cases, the host-entry
CONTROL of the two families holding a new rung, and the `rowHeight`
case.
- Host-surface pin: 3 red.
- Census: 54 red. These are the 23 READ rows, the 23 BUCKET ① → READ
rows, the counts, the partition, bucket ① empty, the inverted absence
pin, the `densityMode` pin and the two `READ_TEXT` rows.
- **The predicted-green controls stayed green**: the host CONTROL of the
other two families, all four node CONTROLs, the four protocol parses,
the off-protocol pin, the 21 UNREAD rows, and the bucket ② / ③ rows.
- **One prediction missed.** The four-way partition test stayed green.
It partitions the pinned literal, and the link from literal to
derivation is the "43 read + 21 unread" test, which went red.
- **The restore was proven**: the blob equals HEAD (`89b6c7e`) and `git
diff HEAD` is empty.
- The later commits (`2960ef6`, `5dc80e3`) touch only a test title and
the types of the probe helper. No assertion moved.
## Acceptance notes
- **Reach, measured on this tree.** No in-tree host passes both
`listViews` and `renderListView`. App-shell's object page passes its
named view as the host `views` entry, and the Studio grid passes
neither. So the new rungs serve an out-of-tree host that composes both,
which is the same reach as the objectui#8980 rungs beside them. This is
recorded, not claimed wider.
- **Route 2 (the registered renderer's grid path) still reads only
`columns`, `filter`, `sort`, `grouping` and `rowColor` off a named
view.**
- A scratch probe, not committed: `ObjectView` without `renderListView`,
which is exactly what the registered renderer mounts. A named grid view
authored `pagination`, `selection`, `hiddenFields`, `rowHeight`,
`conditionalFormatting`, `rowActions`, `bulkActions` and `resizable`,
and the `object-grid` schema carried `columns` only. `ObjectGrid` reads
each of those keys.
- This is outside the claimed literal: the ruling sends bucket ① to "the
`object-view` delegation".
- 1 parent 4f8b7f8 commit 35d68c4
7 files changed
Lines changed: 576 additions & 97 deletions
File tree
- .changeset
- content/docs/plugins
- packages
- plugin-view
- src
- __tests__
- types/src/__tests__
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
431 | 431 | | |
432 | 432 | | |
433 | 433 | | |
| 434 | + | |
| 435 | + | |
| 436 | + | |
| 437 | + | |
| 438 | + | |
| 439 | + | |
| 440 | + | |
| 441 | + | |
| 442 | + | |
| 443 | + | |
| 444 | + | |
| 445 | + | |
| 446 | + | |
434 | 447 | | |
435 | 448 | | |
436 | 449 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
497 | 497 | | |
498 | 498 | | |
499 | 499 | | |
| 500 | + | |
| 501 | + | |
| 502 | + | |
| 503 | + | |
| 504 | + | |
| 505 | + | |
| 506 | + | |
| 507 | + | |
| 508 | + | |
| 509 | + | |
| 510 | + | |
| 511 | + | |
| 512 | + | |
500 | 513 | | |
501 | 514 | | |
502 | 515 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2430 | 2430 | | |
2431 | 2431 | | |
2432 | 2432 | | |
| 2433 | + | |
| 2434 | + | |
| 2435 | + | |
| 2436 | + | |
| 2437 | + | |
| 2438 | + | |
| 2439 | + | |
| 2440 | + | |
| 2441 | + | |
| 2442 | + | |
| 2443 | + | |
| 2444 | + | |
| 2445 | + | |
| 2446 | + | |
| 2447 | + | |
| 2448 | + | |
| 2449 | + | |
| 2450 | + | |
| 2451 | + | |
| 2452 | + | |
2433 | 2453 | | |
2434 | 2454 | | |
2435 | 2455 | | |
| |||
2448 | 2468 | | |
2449 | 2469 | | |
2450 | 2470 | | |
2451 | | - | |
| 2471 | + | |
| 2472 | + | |
| 2473 | + | |
| 2474 | + | |
2452 | 2475 | | |
2453 | 2476 | | |
2454 | 2477 | | |
| |||
2472 | 2495 | | |
2473 | 2496 | | |
2474 | 2497 | | |
2475 | | - | |
| 2498 | + | |
2476 | 2499 | | |
| 2500 | + | |
2477 | 2501 | | |
2478 | 2502 | | |
2479 | 2503 | | |
| |||
2494 | 2518 | | |
2495 | 2519 | | |
2496 | 2520 | | |
2497 | | - | |
| 2521 | + | |
2498 | 2522 | | |
2499 | 2523 | | |
2500 | 2524 | | |
| |||
2514 | 2538 | | |
2515 | 2539 | | |
2516 | 2540 | | |
2517 | | - | |
2518 | | - | |
2519 | | - | |
2520 | | - | |
2521 | | - | |
2522 | | - | |
2523 | | - | |
| 2541 | + | |
| 2542 | + | |
| 2543 | + | |
| 2544 | + | |
| 2545 | + | |
| 2546 | + | |
| 2547 | + | |
2524 | 2548 | | |
2525 | 2549 | | |
2526 | 2550 | | |
| |||
2538 | 2562 | | |
2539 | 2563 | | |
2540 | 2564 | | |
2541 | | - | |
| 2565 | + | |
2542 | 2566 | | |
2543 | | - | |
2544 | | - | |
2545 | | - | |
2546 | | - | |
2547 | | - | |
2548 | | - | |
2549 | | - | |
2550 | | - | |
2551 | | - | |
| 2567 | + | |
| 2568 | + | |
| 2569 | + | |
| 2570 | + | |
| 2571 | + | |
| 2572 | + | |
| 2573 | + | |
| 2574 | + | |
| 2575 | + | |
| 2576 | + | |
2552 | 2577 | | |
2553 | 2578 | | |
2554 | 2579 | | |
| |||
0 commit comments