Writing

Let the model suggest; let code do the parts that have to be right

A rule keeps showing up across my AI labs. Models are useful for ideas, drafts, and pictures. Anything that has to be right, especially anything about accessibility, goes in code, where it cannot be hallucinated.

Where the rule shows up

The same idea runs through my essays: gate an agent on a measured number, and test agents against planted failures with known answers. Accessibility checks belong in the part of the system that can't make things up.

Two-column diagram separating probabilistic model suggestions (drafts, layouts, palettes, prompt variations) from deterministic code enforcement (WCAG contrast math, accessibility tree checks, readability rules, and pixel diffs).
The rule across every lab: let the model suggest, and let deterministic code enforce what must be right.

A2UI Accessibility Lab

The Observatory is where I read a scenario run. A notice at the top says the announcements are computed from the accessibility tree. The timeline then lists, for each step, the DOM mutations, the accessibility tree changes, what was announced, what stayed silent, and the findings.

A2UI Accessibility Lab on the Observatory tab. A notice reads Computed, not a screen reader. The scenario is Simple Login Form (fx-00_simple-login-form), 2 steps, 1045 ms. The Timeline table tracks DOM mutations, accessibility tree changes, announced updates, silent updates, and findings for each step.
I use the timeline to see which step changed the accessibility tree, and which updates stayed silent.

Differentiable Contrast Lab

This is the rules-as-math version of a contrast check. The lab rewrites the four WCAG contrast formulas as affine transforms and ReLU gadgets, then runs that circuit in the browser. The default scenario is the Orange brand palette.

Differentiable Contrast Lab using the Orange brand (default) palette. Ten text elements move from 1 of 10 passing before optimization to 10 of 10 passing after 1000 steps, with 136 nodes per element. The four WCAG contrast formulas are written beside the counts as affine transforms and ReLU gadgets.
Passing is a count the circuit computes. The formulas beside it are the contrast check, written so a gradient can move a color.

Limits

Code checks cover what can be computed. Image descriptions and many design judgments still need a person, which is the finding of my document transformation pilot: automation fixes structure, not meaning. That pilot is on Projects. The longer essay under that title is still in preparation.

Sources