3 min read
Sandboxing AI-generated React code: four layers that make it safe to run
When a model writes the React your users see, treat its output as hostile. Here's the defence in depth we use: a shared contract, AST validators, a quality gate and a cross-origin sandbox.

