Launch offer: the first 1,000 users get Settl free for a year* Claim your spot
settlbuilding in public

The design-experiment safety kit (flags first, Sentry first)

The short version

A purely cosmetic animation change went out and crashed the app 1,600 times in four minutes. It was reverted inside the hour, and the only reason that was possible is that crash reporting had been switched on before the experiment started.

The lesson is ordering, not caution. Turn on the thing that tells you it broke before you touch the thing that might break it, and put visual experiments behind a switch you can flip off without shipping again.

Copy these prompts

Paste them into Claude Code (or any AI that can see your project), in this order. Each one answers a different question, and the first is usually the one that matters.

1. Turn on crash alerts before you touch anything

Set up crash reporting for my app that alerts me within minutes rather than days. Give me the smallest version that actually works, and then tell me exactly how to verify the alert fires by deliberately causing a crash.

2. Put it behind a switch you can flip off

Show me how to put my next visual change behind a feature flag so I can turn it off without releasing a new version. Tell me how long it takes to actually take effect for users, because that number is what my worst case costs me.

3. Watch it for the first ten minutes

Give me a checklist for the ten minutes after I release something: what to look at, what number means stop, and how to roll back fastest. Assume I am on my phone and not at my computer.

I chased a fancy radial mic-fan animation. The OverflowBox with an unbounded canvas hit a Flutter render assertion, in production. Sentry lit up with 1,600+ crash events in 4 minutes. I reverted within the hour, and the only reason I could is that crash reporting was wired up before the experiment shipped.

The kit: before any "pretty" experiment ships

  1. Crash reporting before beauty. Non-negotiable ordering: observability first, design experiments second. If Sentry (or Crashlytics) isn't reporting from production yet, you are not allowed to ship visual experiments.
  2. Design experiments go behind flags. Every risky visual/UX change ships default-OFF behind a runtime flag you can flip without an app release:
if (config.radialFanEnabled) {          // server-controlled, default false
  return RadialFanLauncher(...);
}
return ClassicMicButton(...);
  1. Know your framework's landmines. In Flutter, OverflowBox / unbounded constraints / infinite-size assertions are release-build killers that behave fine in your simulator run. Whatever your stack, the "renders locally, asserts in prod" class exists. Respect it.
  2. Set a crash-rate alert with a tight window. 1,600 events in 4 minutes is unmissable if an alert pings you. Configure "N crashes in 5 min" → phone notification, not just a dashboard.
  3. Rehearse the revert. My revert took under an hour because it was one commit to flip back. Keep experiments in isolated commits/widgets so revert = git revert <sha>, not surgery.
  4. Canary when you can. Roll the flag to yourself → internal testers → a % of users. A render assertion found at 1% is a Tuesday; at 100% it's an incident.
  5. Log the experiment's blast radius. Tag experimental code paths in your crash reporter (release tag, feature tag) so the spike attributes itself. You want "which change did this" answered in seconds.

The uncomfortable lesson

The animation was optional. The crash reporting wasn't. Everything decorative must be droppable in minutes, and you only get that by paying the infrastructure tax up front.

Steal this for your app

Run this on your codebase

Paste this into a Claude session in your repo:

Audit this repo's readiness for visual/UX experiments. Report before fixing:
1. Is crash reporting wired and receiving events from production builds?
2. List risky UI changes from the last 20 commits that shipped without a feature flag.
3. Framework landmines: unbounded constraints, overflow boxes, release-only assertions.
4. Do we have a crash-rate alert with a tight window (N crashes in 5 min → notification)?
5. Estimate time-to-revert for the riskiest recent change. If over 15 minutes, say why.

Get the next one in your inbox