@@ -864,11 +864,11 @@ type FormMode = 'create' | 'edit' | 'view';
864864 * ## The verdict
865865 *
866866 * The delegation branch in `renderContent` below reads 30 distinct keys off
867- * the object-view node through `(schema as any).K` and forwards them to the
868- * host's list renderer. Three of them — `data`, `navigation`,
869- * `searchableFields`, listed in
867+ * the object-view node and forwards them to the host's list renderer. Three
868+ * of them — `data`, `navigation`, `searchableFields`, listed in
870869 * {@link OBJECT_VIEW_DECLARED_FORWARDED_KEYS} — are declared members of
871- * `ObjectViewSchema`. The other 27, listed here, are not, and stay that way:
870+ * `ObjectViewSchema` and are read without a cast. The other 27, listed here,
871+ * are read through `(schema as any).K`, are not declared, and stay that way:
872872 * they are HOST-COMPOSITION surface, not authored surface. This constant is
873873 * their single home; the branch is fenced by `#region` markers so the pin in
874874 * `src/__tests__/objectViewHostSurface.test.tsx` fails BY NAME when a read is
@@ -986,9 +986,10 @@ export const OBJECT_VIEW_HOST_COMPOSITION_KEYS = [
986986] as const ;
987987
988988/**
989- * The other three keys the same branch reads through `(schema as any)`: these
990- * ARE declared members of `ObjectViewSchema` (`data` via `BaseSchema`), so
991- * they are authored surface and are NOT part of the objectui#5097 exemption.
989+ * The other three keys the same branch reads off the node: these ARE declared
990+ * members of `ObjectViewSchema` (`data` via `BaseSchema`), so they are
991+ * authored surface, are read as `schema.K` with no cast, and are NOT part of
992+ * the objectui#5097 exemption.
992993 * They are listed so the pin can assert the split, not just the exempt half —
993994 * a read that moves from this list into the one above is a key losing its
994995 * declaration, and must fail loudly.
@@ -2954,9 +2955,11 @@ export const ObjectView: React.FC<ObjectViewProps> = ({
29542955 // If a custom renderListView is provided, use it
29552956 // #region object-view HOST-COMPOSITION SURFACE (objectui#5097)
29562957 //
2957- // 30 of the values assembled below are read off the object-view node with
2958- // `(schema as any).K`. Three are declared members of `ObjectViewSchema`;
2959- // the other 27 are NOT, deliberately: the maintainer ruling of 2026-08-18
2958+ // 30 of the values assembled below are read off the object-view node. Three
2959+ // are declared members of `ObjectViewSchema`
2960+ // (`OBJECT_VIEW_DECLARED_FORWARDED_KEYS`) and are read as `schema.K`, with
2961+ // no cast; the other 27 are read with `(schema as any).K` because they are
2962+ // NOT declared, deliberately: the maintainer ruling of 2026-08-18
29602963 // on objectui#5097 (verbatim 「同意」) ruled them HOST-COMPOSITION surface,
29612964 // not authored surface, because this branch is entered only when a HOST
29622965 // passes `renderListView` and the registered renderer never does.
@@ -3106,16 +3109,16 @@ export const ObjectView: React.FC<ObjectViewProps> = ({
31063109 // never reaches the renderer.
31073110 // objectui#8980 / objectui#7928's open half: the cast on the
31083111 // named-view config is GONE — `data` is a declared `NamedListView`
3109- // member now, so the read and the declaration are one fact. The
3110- // `activeView` and node rungs keep their casts: the host `views` entry
3111- // is an untyped host shape and `data` on the node is one of the 27
3112- // objectui#5097 host-composition keys .
3113- data : currentNamedViewConfig ?. data ?? ( activeView as any ) ?. data ?? ( schema as any ) . data ,
3112+ // member now, so the read and the declaration are one fact. The node
3113+ // rung is uncast for the same reason: `data` is declared on the node
3114+ // (via `BaseSchema`). The `activeView` rung keeps its cast: the host
3115+ // `views` entry is an untyped host shape .
3116+ data : currentNamedViewConfig ?. data ?? ( activeView as any ) ?. data ?? schema . data ,
31143117 // Propagate new spec properties (P0/P1/P2)
3115- navigation : currentNamedViewConfig ?. navigation ?? activeView ?. navigation ?? ( schema as any ) . navigation ,
3118+ navigation : currentNamedViewConfig ?. navigation ?? activeView ?. navigation ?? schema . navigation ,
31163119 selection : currentNamedViewConfig ?. selection ?? activeView ?. selection ?? ( schema as any ) . selection ,
31173120 pagination : currentNamedViewConfig ?. pagination ?? activeView ?. pagination ?? ( schema as any ) . pagination ,
3118- searchableFields : currentNamedViewConfig ?. searchableFields ?? activeView ?. searchableFields ?? ( schema as any ) . searchableFields ,
3121+ searchableFields : currentNamedViewConfig ?. searchableFields ?? activeView ?. searchableFields ?? schema . searchableFields ,
31193122 resizable : currentNamedViewConfig ?. resizable ?? activeView ?. resizable ?? ( schema as any ) . resizable ,
31203123 hiddenFields : currentNamedViewConfig ?. hiddenFields ?? activeView ?. hiddenFields ?? ( schema as any ) . hiddenFields ,
31213124 // objectui#8980 — TWO SLOTS THAT HAD NO RUNG ON THIS BRANCH AT ALL.
0 commit comments