the generative-UI substrate
ADR-059three building blocks for the high-frequency cockpit · signals for sub-frame reactivity · streamUI for agent-composed surfaces · context tokens that flip at runtime without a single React render.
01 · signals
@preact/signals-react · 30 hz · zero reconciliationone rAF loop · two signal writes · no React state · the parent tree never re-renders. only the leaf spans that read .value update.
02 · streamUI
/api/agent-stream?mode=streamUI · A2UI delta channelthe agent emits paired AG-UI events and A2UI deltas. each delta upserts a node in the local tree. the renderer paints generative UI as it arrives.
0 deltas · 1 nodes
generated
canvas empty · click run to compose03 · context-aware tokens
data-alert-state · data-density · zero re-renderflipping the attribute on body cascades through every consumer · brand-signal becomes amber, then red · spacing trims with density · no react render runs in the leaves.
brand-signal
chip · cascaderow · h · density-bound