ViewSpec Rendering

Generative UI should produce a validated view specification executed by a deterministic renderer—not improvise pixels.

Place typed component vocabulary, data binding, accessibility rules, policy validation, and visual regression at the rendering boundary.

01

Problem definition

Direct model-generated markup and behavior is difficult to constrain for accessibility, security, and brand consistency.

Storing only prompt output cannot reproduce which data and rules created a screen.

  • Screens must adapt to work context within an allowed UI system
  • Generated screens must be validated, audited, and replayed
  • A few fixed screens fully meet the requirement
  • No team owns component, data, and action schemas
02

ViewSpec Rendering: system plate

  1. 01

    Stage 1

    Define allowed components, properties, data shapes, and actions in a versioned schema.

  2. 02

    Stage 2

    Constrain model output to a parseable, policy-validatable ViewSpec rather than executable code.

  3. 03

    Stage 3

    A deterministic renderer applies authority, data binding, and accessibility defaults.

  4. 04

    Stage 4

    Validate schema, semantics, accessibility, and visual regression with fixed fixtures each release.

A decision and validation view for ViewSpec Rendering; labels describe architecture, not a measured deployment result.
  1. The workflow begins with Define allowed components, properties, data shapes, and actions in a versioned schema..
  2. It reaches an acceptance decision through Schema and policy pass rate.

03

Design method

Generative UI should produce a validated view specification executed by a deterministic renderer—not improvise pixels.

  1. 01

    Stage 1

    Define allowed components, properties, data shapes, and actions in a versioned schema.

  2. 02

    Stage 2

    Constrain model output to a parseable, policy-validatable ViewSpec rather than executable code.

  3. 03

    Stage 3

    A deterministic renderer applies authority, data binding, and accessibility defaults.

  4. 04

    Stage 4

    Validate schema, semantics, accessibility, and visual regression with fixed fixtures each release.

04

Application scenarios

Hypothetical application scenario

Screens must adapt to work context within an allowed UI system

Direct model-generated markup and behavior is difficult to constrain for accessibility, security, and brand consistency.

APPROACH
Define allowed components, properties, data shapes, and actions in a versioned schema.
BOUNDARY
Schema validity is not equated with usability or task correctness.
Hypothetical application scenario

Generated screens must be validated, audited, and replayed

Storing only prompt output cannot reproduce which data and rules created a screen.

APPROACH
Constrain model output to a parseable, policy-validatable ViewSpec rather than executable code.
BOUNDARY
Unapproved code, URLs, and actions cannot escape the renderer boundary.

05

Design choices

DecisionGainCostWatch
Screens must adapt to work context within an allowed UI systemDefine allowed components, properties, data shapes, and actions in a versioned schema.Schema validity is not equated with usability or task correctness.Schema and policy pass rate
Generated screens must be validated, audited, and replayedConstrain model output to a parseable, policy-validatable ViewSpec rather than executable code.Unapproved code, URLs, and actions cannot escape the renderer boundary.Accessibility and visual regression
06

ViewSpec Rendering: system plate

Is ViewSpec Rendering the next justified intervention?

  1. Screens must adapt to work context within an allowed UI systemProceed to design

    Define allowed components, properties, data shapes, and actions in a versioned schema.

  2. A few fixed screens fully meet the requirementUse the alternative path

    Schema validity is not equated with usability or task correctness.

A decision and validation view for ViewSpec Rendering; labels describe architecture, not a measured deployment result.
  1. The workflow begins with Define allowed components, properties, data shapes, and actions in a versioned schema..
  2. It reaches an acceptance decision through Schema and policy pass rate.

07

Validation plan

MeasureMethodPass conditionCaveat
Schema and policy pass rateDefine allowed components, properties, data shapes, and actions in a versioned schema.Repeated runs satisfy the acceptance threshold agreed during discoverySchema validity is not equated with usability or task correctness.
Accessibility and visual regressionConstrain model output to a parseable, policy-validatable ViewSpec rather than executable code.Repeated runs satisfy the acceptance threshold agreed during discovery—
Rendering reproducibility and failure isolationA deterministic renderer applies authority, data binding, and accessibility defaults.Repeated runs satisfy the acceptance threshold agreed during discovery—

08

Constraints and failure conditions

A few fixed screens fully meet the requirement

Schema validity is not equated with usability or task correctness.

No team owns component, data, and action schemas

Unapproved code, URLs, and actions cannot escape the renderer boundary.

10

Durable deliverables

ViewSpec Rendering decision record
Generative UI should produce a validated view specification executed by a deterministic renderer—not improvise pixels.Client-owned · Patty-reviewed
Validation harness and acceptance criteria
Schema and policy pass rate · Accessibility and visual regression · Rendering reproducibility and failure isolationJointly maintained
Operations and recovery runbook
Schema validity is not equated with usability or task correctness. · Unapproved code, URLs, and actions cannot escape the renderer boundary.Operating-team owned

11

Terminology

ViewSpec Rendering
Place typed component vocabulary, data binding, accessibility rules, policy validation, and visual regression at the rendering boundary.
Acceptance criterion
Schema and policy pass rate
Operating boundary
Schema validity is not equated with usability or task correctness.

REFERENCES

References and primary material

  1. JSON Schema

    Primary material for the method and terminology.

  2. WAI-ARIA Authoring Practices

    Primary material for the method and terminology.