My Tests Are on the Page. Run Them.

Essay

You are the engineer on the interview panel, and a designer has just said they ship code. Here is what I would hand you instead of a screenshot, and exactly what it does and does not prove.

Every other page tells you what I decided. One lets you check.

For years I had no such page. The trust patterns I keep writing about came out of shipped products, and they lived where principles usually live: in slides, in review comments, in my head. Reasonable people agreed with every one of them in the meeting and shipped the naked confidence score anyway. I would find it in the next release and start the argument again.

A principle you can nod at costs nothing to ignore. That was the failure, and it was mine: I had been asking people to agree, when I should have been giving the rule a way to fail without me.

Written as code, the same rules get exactly that. An opinion becomes testable the day it compiles.

Four things you can run

loop.js. The decisions behind four trust patterns, written as functions with tests. Which verb a confidence score turns into: act, review or ignore. Whether that confidence has earned belief, using two standard calibration measures, a Brier score and expected calibration error, that both ask how often the model’s stated confidence matched what actually happened. When the system should say “I don’t know”. What to show while the model is thinking. Zero dependencies, 42 tests, 76 assertions, one module.

trustlint. Paste an AI answer and it flags the seven habits that lose a reader’s trust: figures with no source, absolutes, hedges used as decoration, and the expensive one, confidence with nothing underneath. No network. Runs in the tab. And it says in its own output the thing it cannot judge: whether the answer is true. You can lint how an answer is shaped. You cannot lint whether it is true.

This site, torn down. A site that asks for evidence should stand being inspected. How the page you are reading is built, measured rather than described: no framework and no bundler, the size of its stylesheet to a tenth of a kilobyte, two third-party services across four domains, one type scale, and the gaps, including the one the page caught in itself. No typed numbers. Every figure comes from a command shown beside it.

ember-design-system. A design system a machine can read is one that gets applied. This is the public twin of a plugin I shipped inside a client: the tokens with their measured contrast, one type scale, the spacing grid, and the ten checks that decide whether a change may ship.

What these prove, and what they do not

Three different things get called evidence. Only the first lives on that page.

What it saysWhere it lives
ImplementationThe code does what it says. 76 assertions across 42 tests, run in your browser, on the same module the demos import. That is all a green test proves.The Lab
UsageThe rules came out of shipped products, not a notebook. The code is my restatement of those decisions, not the client’s source.The case studies
OutcomeWhether a pattern moves adoption is a claim about a product, not about a function. A passing suite will never stand in for a result.On the case, with its baseline and window
A test suite you can run is exactly one kind of evidence, and it should say which.

I put that boundary on the page because the alternative is letting a green tally imply more than it means. A demo you can’t run is a screenshot with ambitions.

Where the line sits

I ship the front-end of what I design, in the pull request under my name, with senior engineers reviewing. These artifacts are pure functions by choice, not by ceiling: logic any stack can adopt and any test can pin down. The stateful counterpart is the book edition of the site, around 180 KB of my own code.

What I don’t claim is the backend. That is the honest boundary, and it is the same one I give on the technical screen.

The thresholds are defaults

One more thing the page says about itself. Where a confidence band starts is a product decision someone owns and revisits. The rule is only that a score lands on one verb, never that 0.7 is the right place to put the line. The code enforces the shape of the decision, not the number.

If you are the engineer on the panel

Open it, run it, then try to break it. If you find a rule you disagree with, the argument is now about a line of code with a test beside it, not about my taste. That is the only kind of argument about design principles I have ever seen end.

The half-second of doubt is the only thing I design.

The reference version

Want the code, not the argument? The source is public and MIT.

Open the Lab: the suite runs when you arrive →