AgentSmyth LabBack to AgentSmyth
Skip to article
Back to Lab NotesEngineering Note 2

Where the model stops

How we decide what an AI may put on a financial analyst's screen, and what it may not.

November 23, 202614 min readChris Flannery
On this page

A portfolio manager opens our platform and types a question: "How exposed is my Financials sleeve to the next CPI print?"

A few seconds later the answer arrives with a rates chart in the middle of the prose, then a table of the most rate-sensitive positions, then a card showing how options are positioned on the largest holding. Each one sits where the prose talks about it. It looks like the model built a small dashboard just to answer this one question.

An AgentSmyth answer to the question: how exposed is my Financials sleeve to the next CPI print? It opens with an analysis in prose, then a paragraph on the 10-year Treasury yield followed by a line chart of that yield over the past year, with diamonds marking CPI release dates. Small source numbers follow each sentence.

An illustrative answer: the question, the analysis and the rates chart

  1. Each claim ends in the numbers of its sources. Hovering the sentence previews them.
  2. The model placed the rates chart in the prose, under the paragraph that discusses it.
  3. The chart lists its sources under the plot.

In a certain sense, it did. It decided those three things mattered, and it decided where each one should go. But it did not type a single number in the chart, the table or the card. Each of those came from a tool call against market data and was drawn by code. The model can still be wrong here. It can show the wrong card, pick the wrong period or draw the wrong conclusion. What it can't do is change a figure, because the figures come straight from the data.

The positions table from the same answer: seven Financials holdings with weight, market value and an illustrative rate sensitivity, each value followed by a small source number.

The positions table

  1. The model placed the positions table here, under the paragraph that introduces it.
  2. Each value carries the number of the source it came from.
The rest of the same answer: a paragraph on options positioning for the largest holding, a note on data coverage, and below the answer an options activity card with tabs, filter buttons and a sortable table of option trades.

The rest of the answer, and the options card

  1. The model follows the table with options positioning on the largest holding.
  2. Code drew this card from tool output. The model typed none of its numbers.
  3. The analyst can switch views with the tabs.
  4. The analyst can filter the prints and sort by any column.

Most writing about generative UI today asks how much of an interface a model can produce. At AgentSmyth we build a product for people who act on numbers, so we have to ask the reverse question: where should the model stop, and what should decide in its place?

1. What generative UI means

Take the table of rate-sensitive positions from that answer. The model did not build it for this question. The table is a component our engineers wrote, and it draws whatever list of holdings it is handed. When someone asks about CPI, the model decides whether that table would help and where in the answer it belongs. Generative UI is an interface where a model makes some of the choices about what appears on screen, choices a designer would otherwise have fixed in advance.

Products differ in how many of those choices they hand over. Follow the same table through four levels:

LevelThe holdings tableWhat the model controls
0It appears on every portfolio answer, because a fixed rule says soNothing. Fixed rules map each tool to one component
1The model chooses it, because this question is about holdingsWhich tools and components to use, from a fixed library
2The model also arranges it, say beside a rates chartHow to compose a layout from primitives; behavior stays fixed
3The model also decides what happens when someone clicks a rowPresentation and behavior: arrangement, style and what controls do

I proposed these four levels in an earlier post. I argued there that most production systems sit at Level 1 with some Level 2, and that Level 3 is mostly still research. I wrote that framework from the outside. This note tests it from the inside, against the system we build and run at AgentSmyth: a market-analysis product that gives analysts, portfolio managers and traders conversational and dashboard access to market analytics, including options, macro, earnings and portfolio analytics, with every figure traced to its source. Our deployments include one that runs on-premises for a client.

The levels help because the term itself is unsettled. Nielsen Norman Group says generative UI is an interface generated in real time to fit the user. CopilotKit says it's UI "generated, selected, or controlled by an AI agent at runtime." Google Research takes the strongest version, where the model writes the entire page.

The evidence is thin too. The strongest result is Google's, where raters scored fully generated pages close to sites built by human experts. But they judged one page, once, with generation time left out. They didn't judge repeated use, latency, or whether the numbers were right. Three 2026 benchmarks (EvoGenUI-Bench, Design Theater, SchemaGUI) found that models still fail most multi-turn tasks and often don't build what they say they designed.

We found no benchmark for whether a model picks the right component from a real catalog, whether the figures it renders match the system of record, or whether its rendered citations support its claims. For a finance product the second of those, whether the figures are right, matters most. With no outside way to measure it, we chose to guarantee it by construction (section 3).

In finance a wrong number is worse than a missing one, and a screen is often the last thing someone reads before they act. That shapes everything below.

2. One product, every level

When we applied the levels to our own system, we found that it doesn't sit at just one level. Different layers of the same screen sit at different levels, on purpose:

LayerThe model decidesThe model doesn't decideLevel
Ticker dashboardsalmost nothing; the page asks for a fixed set of cardswhich cards appear, or their numbers0
Chat answerswhich cards to show, and where each sits in the prosethe numbers inside them1, plus placement
Desksa proposed layout of cardswhether it's saved; a person accepts it2, as a draft
HTML reportsthe arrangement and style of a whole documentanything it can do: the sandbox has no network3, presentation only
Actionsthat a card offers an actionwhat the action does; the server assigns it0, by design

The model gets less authority the more a mistake would cost. Placing a card in the wrong paragraph costs little. Saving a desk the user didn't want costs more, so a person decides. Defining what a button does on click could cost a great deal, with potentially disastrous consequences if, say, the model hallucinates, so the model never does that.

Under the cards sits the same machinery that declarative protocols are built on: a closed catalog of 67 components with Zod schemas, a flat spec format, and a registry that maps each spec node to a renderer. A2UI and json-render offer that stack as something for the model to write into. We use it the other way around. Our tools return typed card data, and the client turns that data into a spec and draws it. We get validated, consistent rendering, and nothing in production asks a model to compose a spec.

3. The model never types the figures

A model is good at deciding what matters and at explaining it. It is a poor store of numbers, and in a long answer about a dozen positions it will eventually transpose a digit: a fat-finger error without the fingers. So no figure a user relies on passes through the model's output:

  • Cards are projections of tool output, built by code.

  • Tables are embedded by reference. The model writes <table id="SOURCE_DOCUMENT_ID" index="0"/>, and the client draws the rows from the source document.

  • Charts must cite documents retrieved in the same run, or they are refused.

  • Custom cards, which users ask for in natural language, are saved as the script the model wrote, not as its output. Each time the card loads, the script runs again on fresh data with no model in the loop, so the numbers on it can't be the model's recollection of the data.

  • Reports get their source list built by code from the real document records. A model-written source list would be a second copy of the record, and one the model could get wrong.

Here is what that lets a reader trust, and what it doesn't. When code copies a table from a source document, the values on screen are the values in the source. Nobody retyped them. That says nothing about whether it was the right table. The model can still pick the wrong period, cite a document that doesn't answer the question, or draw the wrong conclusion from correct rows. Those are errors of judgment, and we catch them with evals (section 7) and by letting the reader check the source (section 4).

Prose still contains numbers, and its claims cite the documents the run retrieved.

4. A reader can check the claim

The model can be wrong about what the figures mean, so the reader needs a way to check. Take one sentence from the CPI answer, say a claim that one holding is especially sensitive to rates. The sentence ends in a small number.

Hover over the sentence and a preview shows the cited document's title, its source and its date. Choose "View Data" in the preview and a panel opens beside the answer with the document itself: the rows the claim rests on, the source's name, the date on the data, and a link to the original where there is one. The reader sees the rows the model saw and can decide whether "especially sensitive" is fair.

The same answer with a preview open over a cited sentence. The preview shows the document title Portfolio: Financials, the source name AgentSmyth Portfolio DB, a date, a pager reading 1 of 2, and a View Data button.

Hovering a cited sentence

  1. The sentence cites two sources. The preview pages through them.
  2. The preview names the document, its source and its date.
  3. "View Data" opens the document beside the answer.
The data source panel for source 1. It shows the date the data was updated, the source name AgentSmyth Portfolio DB, and a table of the seven holdings with symbol, name, weight, market value and sector, followed by sector and geography breakdowns.

The source document, opened from the preview

  1. The rail lists every source the answer cites.
  2. The date on the data and where it came from.
  3. The rows behind the answer. The weights and market values match the table above.

Some documents are computed from others. A sensitivity figure might come from a calculation over the holdings and a rates series. The panel marks each input with a letter. Choosing a letter opens that input, with a trail back to where the reader started, so a claim can be followed back through the documents it was derived from.

A citation appears only if the run retrieved the document. If the model cites something the run didn't retrieve, the sentence shows as plain text with no number.

The same answer can also be exported as a formatted PDF, with its date on the first page.

5. The screen decides what can be drawn

Usually the server defines a component catalog and the client draws whatever arrives. On our dashboard pages we reversed that. On every run, the client sends the backend the list of card kinds this page can draw for this user, or that the user has chosen from the catalog, and the backend can't emit anything outside it.

The reason is particular to finance: what a user may see is decided by entitlements. Data is licensed per firm and per dataset, an on-premises deployment carries a different catalog from our cloud product, and some card kinds are offered only to organizations that have authorized them. All of that resolves in the client, which holds the deployment, the organization's access and the user's chosen persona. Only the client knows what this user may legitimately see on this page.

Sending that list with every run has three effects. The model can't be prompted, or injected, into producing a card for data the firm isn't entitled to show. A page never shows an empty card that a reader could mistake for "no data", which in this domain is itself a claim. And the list is kept in state and never put in prompt text, so the constraint holds whether or not the model would have respected it.

6. Composition as a draft

The most open-ended thing our model does with a screen is compose a whole desk. If a user asks, "Build me a desk for tracking my Financials sleeve into the next CPI print," that is Level 2 composition, and it is where we trust the model least.

So the model only proposes a desk. The proposal is a card that lists the cards the desk would hold, the ticker, portfolio and region it would track, and a name with a one-line description. The client checks it against the full catalog, and only when the user accepts does the client create the desk. The backend has no path that writes one. Portfolio, watchlist and account changes work the same way: a proposal card, then the user's acceptance, then the client's own request.

A request to build a desk for tracking a Financials sleeve into the next CPI print, and the reply: a short message asking the user to review the offer, then a Proposed Desk card listing 18 modules, a ticker, a portfolio, a region, a name and a description, with a Create desk button.

A proposed desk, before the user accepts it

  1. The model proposes a desk and stops. Nothing is saved yet.
  2. The cards the model chose for this desk.
  3. The proposal's settings, which the user can change before deciding.
  4. The desk exists only after the user chooses "Create desk".

In practice, that makes Level 2 cheap to get wrong. The composition is free, and a bad proposal costs the user just a glance. Case Study 3 walks through one.

7. Prompts for judgment, mechanistic code for invariants

One common way to make an agent reliable is to wrap it in rules or guardrails. If the model sometimes forgets to place a card, have code append it. If it sometimes writes something odd, add a regex. We have a written doctrine against that, and it names two failure modes. The first is forcing behavior with machinery (gates, regex checks, NEVER and ALWAYS clauses), which "turns behavior bimodal… and converts degraded output into no output." The second is stacking prompts on prompts until no single instruction is clear. Code may carry out a decision the model already made; it never overrules the model's judgment.

That means judgment stays in prompts and evals. Where a card goes is the model's call. If it forgets to place one, the card falls to a grid below the answer, and nothing pastes it into the prose. When placement goes wrong, we fix the instructions and measure the fix with an eval.

Code takes over only for true invariants, the things that must hold every time. A custom card must pass its save gates, a report's sources must be real, and a chart must cite this run's documents. Even then, a gate's failure message is written for the model to read and act on, so a refused save usually comes back corrected.

8. A fooled model can't do much

In one of our tests, a news item contained an instruction to share a schedule. The user had asked an ordinary question. The model retrieved the news item while answering, followed the instruction and tried to share. The platform stopped the share, because the user's own message hadn't asked for one. In the same test, when users did ask to share, the shares went through.

A model reading the open web, news and filings will eventually read an instruction someone planted for it, and sometimes it will obey. Rather than bet on a filter catching every one, we limit what a fooled model can do:

  • Markdown answers can't run HTML or fetch anything. Raw HTML shows as text. Images render as their alt text, so a model-chosen image URL is never requested, which closes the channel behind the EchoLeak and ForcedLeak attacks. A link opens only after a confirmation that shows the full URL.

  • HTML reports run in an opaque-origin sandbox with no network. The frame never gets allow-same-origin, and the route it loads from allows no outbound connections.

  • Code the model runs can't reach the network either.

  • Actions are selectors. A card can offer an action, but the server assigns what it does, and the client dispatches it by id behind a confirmation.

  • Anything that reaches other people needs the person's own request. Sharing, changing shared work and writing to a connected service run only when the person's own message asks.

The last rule is the one that stopped the schedule share. Case Study 4 has the full test and its counts.

9. Where the levels bend

Applied honestly, the four levels describe our system badly in a few specific ways.

Autonomy isn't just one dimension. The levels fold together three separate questions: what the model decides, when it decides, and who writes the figures. A custom card is roughly Level 2 composition when it's written and Level 0 when it loads, because the saved script replays with no model. Neither number describes it.

Placement is its own freedom. Choosing where an existing card sits in prose is more than Level 1 selection and less than Level 2 composition, and it's the freedom we chose to leave with the model.

Presentation and behavior can be split. Level 3 bundles how things look with what they do. We grant the first inside a sandbox and withhold the second entirely. That split is arguably our most important safety decision, and it doesn't fit cleanly on the ladder.

A person's accept moves a surface down a level. A desk proposal is Level 2 composition with roughly Level 1 risk, because nothing takes effect until a human in the loop accepts it.

The usual classes blur too. The common taxonomies put developer-written apps, like MCP Apps, in one class, contained by a sandbox because the host doesn't fully trust the developer. They put model-written code in another, usually trusted even less. Our HTML reports are model-written, and we contain them the way a host contains a third-party app: an opaque origin, a strict content policy, no network. Neither the levels nor the classes have a name for model-authored content inside app-grade containment.

So we describe a surface with three coordinates instead of one level:

SurfaceWhat the model decidesWhen it decidesWho writes the figures
Chat cardwhich card, and wherewhile answeringthe system of record
Custom cardthe layout and the codeonce, when writtena script, on every load
Desk proposalthe compositionas a plan, until a person acceptsno figures
HTML reportpresentationwhile answeringthe model, from cited documents

The ladder survives as the first column. The other two explain how a product can be expressive and conservative at once.

10. What you saw yesterday

A saved card recomputes, so tomorrow its numbers may differ from today's. An analyst will reasonably ask whether they can still find out what they saw today. The answer depends on where they saw it.

In a chat answer, yes. We save a finished answer with its cards, charts, tables and source documents as they were shown, and reopening the conversation shows that saved answer. Nothing is fetched again. We keep a report file the same way, with one snapshot for each run that wrote it, so a later edit doesn't replace the earlier version.

A saved card is recorded too. We record every load of a card as a run, with what it drew and the source documents behind it, so what the card showed today stays on record after its numbers move.

We keep that record for the same reason we built the Lab. A call can only be graded against the record of what was said at the time, and the same holds for a screen someone acted on.

11. Who decides what

"How generative is it?" turns out to be precisely the wrong question. Our system is Level 0 and Level 3 on the same screen, and both are the right choice for their layer.

The more useful question is where the model stops, and what decides in its place. In our system the model chooses and places cards, and the system of record writes their figures. It drafts desks, and a person decides whether to keep them. It styles reports inside a sandbox with no network. It can name a button, and the server decides what the button does.

Sources

  • The four levels: the earlier post on the author's own site.
  • Google's study of generated pages: Leviathan et al., arXiv:2604.09577.
  • The three 2026 benchmarks: EvoGenUI-Bench, arXiv:2608.29387; Design Theater, arXiv:2607.22928; SchemaGUI, arXiv:2608.22390.
  • The count of 67 components: the component catalog in the AgentSmyth web client.
  • The planted-instruction test, including the attempted schedule share: the evaluation suite in the AgentSmyth Python backend service.