MVG: Interactive Native UI Controls
Customer Benefit: Agents answer with working controls (choices, tables, charts) your app renders natively, and each click returns to the same run.
Overview
Traditional AI agents return markdown text, static images, or unstructured JSON. When an agent returns tabular data, a chart, or a set of options, users cannot interact with it directly. When they reply, the conversation restarts a new reasoning turn, losing state and risking hallucination.
MVG (Machine-Verified Geometry) returns typed UI instructions—stat cards, sortable/filterable tables, interactive charts, and choice buttons—that your application renders natively. Every user interaction (clicking a bar, selecting a row, clicking an option) emits a typed event that resumes the exact same run.
Comparison: Siliqun Rotor vs. Google A2UI
Both Siliqun Rotor and Google A2UI share the foundational principle that UI is data, never code. Here is how Siliqun Rotor differs in design and runtime execution:
| Capability | Google A2UI (v0.9.1 / v1.0) | Siliqun Rotor MVG |
|---|
| Run & State Binding | Client actions return as a generic actionResponse to the agent; state lifecycle management is delegated entirely to the external model or agent framework. | Events carry run_id, render_id, state_version, and a per-render sequence. The host resumes that specific run and rejects stale state, out-of-order calls, or replays. |
| Validation Before Execution | An action response sends user selections directly to the agent runtime. | Selected values are validated against the run's pending ask before state changes. A click that leads to an action changing data still waits for confirmation. |
| Security & Authority | Actions execute within client component contexts. | Authority never originates from the browser. Organization, project, tenant, and principal boundaries are derived strictly from the authenticated server session. |
| Model Dependency | Typically generated by an LLM interpreting component catalog definitions. | Generated deterministically by the Tier 1 shaper from grammar and data rows on CPU; an external LLM is completely optional. |
Supported MVG Controls
- Stat Cards: Key metrics, trend percentages, and currency values with semantic badges.
- Interactive Bar Charts: Scalable SVG/DOM charts with category labels, series legends, hover value tooltips, and bar selection events (
select_bar). - Searchable & Selectable Tables: Full-width data tables with live client-side search filtering (
.sqr-table-filter), sortable column headers, and selectable rows emitting select_row. - Choice Buttons: One button per option, emitting
choice_select.
Resuming the Run
A saved workflow run that waits for one value from a list of options returns that ask with a render_id. The run's revision is the state_version. Your application renders the options as choice buttons (the SDK's renderMvg and mount), and a click emits choice_select. resumeMvgChoice passes the choice to your authenticated call to the run's answer route:
POST /v1/runs/{run_id}/answer
{
"values": { "leave_type": "vacation" },
"mvg": { "render_id": "rnd_04b2c1...", "state_version": 3, "sequence": 1 }
}
The engine checks the choice before the run changes:
- The run must belong to the authenticated organization and project. The event carries no tenant or project.
state_version and render_id must be the run's current ones. Otherwise it answers stale_state.sequence must be higher than any sequence already accepted for that render_id. Otherwise it answers replayed_event.- The value must be one of the options the run is waiting for. Otherwise it answers
invalid_choice.
A refused choice changes nothing. An accepted choice continues the same run from its waiting step, and the run's recorded steps keep the render and sequence. An action that changes data still waits for confirmation. In Studio, a saved workflow run that waits for one of a list of options shows these buttons.
Motion: tell an answer as a story
MVG Motion turns your agent's answers into a short animated video. Every number in it is a number the engine returned, drawn from the same typed answer your application renders. Motion never recounts your rows, and a model never writes the values.
Languages and sizes. One story renders in each language it declares, Arabic right to left included, and in each declared size, such as 9:16, 4:5 and 16:9. The values stay the same; the layout is mirrored for Arabic.
Export. exportMotionMp4 makes the video in your user's browser with the browser's own video encoder. Your data and frames are not uploaded. A browser without that encoder says so and offers no fallback. Each export comes with a receipt:
- the frame digest identifies the render itself. The same story, language, size and answers give the same frame digest in any browser and in the SDK's native core.
- the file's SHA-256 identifies only that MP4. Two browser exports of the same story are not byte-identical files.
Sample data is labelled on every frame.
Export on your own engine. An SDK or on-prem engine can make the MP4 without a browser. POST /v1/motion/export takes the timeline, the language, the size, the answers and any pictures, and returns the MP4 with its receipt. The engine does not ship a video encoder: it calls an ffmpeg that you install, found on the path or at the path in SILIQUN_ROTOR_FFMPEG (SILIQUN_ROTOR_FFMPEG_ENCODER picks the encoder, libx264 by default). Without one the route answers encoder_not_installed and names the setting. Text is drawn with one bundled open font (IBM Plex Sans Arabic, SIL Open Font License) that covers Latin and Arabic. The receipt names the rasterizer, the font's SHA-256 and the encoder's version beside the frame digest. (timeline_sha256 is of the timeline's compact JSON, not of the file you sent.) Two exports of one timeline on the same build and the same encoder give the same file, so the receipt's file SHA-256 is equal for both; a different encoder or build may give a different file with the same frame digest. The hosted engine does not offer this route, and it never writes a meter row for a render, because a render is not a decision.
A storyline proposed by a model. With a Tier 3 model set for the project, a signed-in member can ask for a draft storyline: the order of the scenes, their titles and their captions. POST /v1/motion/storyboard checks the draft on the server before you see it. It must be a valid mvg-motion/1 timeline, and every number in a title, heading, caption or spoken line must be a number in the answer that scene shows. A number the answer does not hold refuses the draft with unsupported_number, naming the number, the scene and the field; the model never writes a value. A draft is only a proposal: it is not exported or shared until you accept it. Without a Tier 3 model the route answers tier3_off and a story is still built by hand (the timeline and the SDK need no model).
In your application. The SDK's wasm exports Motion (frames as SVG or as a drawing list, digests, a receipt) and motionValidate. The TypeScript SDK adds renderMotion (a player), exportMotionMp4 (browser export) and renderShapedAnswer. On an on-prem engine, exportMotionMp4 is the browser path; the engine route above is the one for servers. The timeline format is mvg-motion/1; its schema and limits are in the SDK.
Rendering and exporting are not metered.