Repository navigation
Description
Part of #1528.
Why
Five decisions in the epic rest on reading OpenUI's docs and tarballs, not on running it. Prove them in this stack before building on them.
Questions to answer
Each question gets a recorded answer.
-
Rendering in our stack. Does
<Renderer>from@openuidev/react-lang1.2.0 render inside a"use client"component on Next 16.4.6 and React 19.3.1?- It must raise no CSP violation report under
script-src 'self' 'unsafe-inline'andconnect-src 'self'. - It must make no network request beyond same-origin.
- It must raise no CSP violation report under
-
Partial programs. Feed the Renderer one SSE delta at a time. What does it show:
- mid-statement;
- mid-string;
- with a forward reference?
Does anything flash, reflow or animate? Check against
frontend-design-system/references/motion.md. -
Prose. Most answers are mostly sentences. Does that need a
Prosecomponent, or does the Renderer tolerate plain text? Pick one. -
Binding. Pick how a component names a tool result. Two options:
- (a) A prop such as
source: "toolu_…", resolved by our components from a client-side map that a newresultSSE event fills. - (b) OpenUI's
Query()with atoolProvider, which fetches again in the browser.
The recommendation is (a): (b) fetches twice, and can show data the model never saw.
- (a) A prop such as
-
Prompt size. Count tokens with
messages.count_tokensfor:library.prompt()with a 3-component library;- the same with a 10-component library;
- each of those plus the existing system prompt and tools.
Does the stable prefix clear the model's minimum cacheable length?
-
Model fit. Take 10 hand-written questions against the mock-erserver fixture data, using the deployment model (
ERWEB_ASSISTANT_MODEL, defaultclaude-opus-5).- Does the output parse?
- Does it use only library components?
- Does it bind rather than restate numbers?
Deliverable
- A short write-up that amends design §5.8 in
.claude/skills/frontend-design-system/references/frontend-design.md. It records the answers and the chosen binding mechanism. That doc PR closes this ticket. - The experiment branch is throwaway and is not merged.
Acceptance criteria
- Each of the six questions has an answer backed by an observation: a screenshot, a count or a CSP report log, not a quote from the docs.
- If any of the epic's decisions 1 to 5 is overturned, the epic body says so before The answer component library: a closed OpenUI library built from our primitives and hand-rolled charts #1531 and The assistant route speaks OpenUI Lang: result events, binding rules, prompt caching, stop reasons #1532 start.
-
make skills-checkpasses for the reference edit.
Activity