Status: Accepted (2026-11-27)
Ops must name nodes created offline by many peers, carry property changes compactly, and accept future properties (layout, effects, components) without protocol changes. The deprecated layout-feature branch showed layout needs ~42 style fields and a parent/child tree.
clientId * 2^29 + counter (shared/src/ids.ts). The realtime tier assigns clientId per connection, unique per file (reserved in blocks of 1,024 from files.next_client_id, so one DB write per 1,024 connections), bound to the user by a signed clientId grant; clients allocate counters locally. External form "client:counter". ROOT_ID = 0 is each page’s root.node-kinds.ts) are fixed at creation; numeric values match the engine’s primitive/object kinds.props.ts): numeric PropId with a fixed ValueType. Ranges: 1-63 core, 64-127 reserved for the layout module, 128-1023 extensions. The wire carries the value type with every prop, so peers skip and preserve unknown ids; the doc stores them in a side table and writes them back into snapshots.PARENT_INDEX = {parent, key} (one prop, so parent and position change atomically) with fractional-index keys; ties broken by node id. Sibling order = paint order = future flow order.packages/layout module; no protocol version bump.