Migration log · entry 016 · November 2026

The robot that squints.

The stakeholder verdict was blunt: parts of the portal were “a mobile nightmare.” We had two options — squint at pages by hand, one phone and one hunch at a time, forever — or build a robot that squints. This entry is about the robot, and about what happened when it outlived its first job.

The robot is two small scripts living in the repo. The first loads every customer-facing page at fourteen different screen widths, in two browser engines — Chromium and WebKit, because Safari breaks differently and pretending otherwise is how iPhone users suffer — and checks each render for the cardinal sin: sideways scroll. When it finds one, it screenshots the evidence; when the cause isn’t any single element, a diagnostic mode hunts the layout math that overflowed. The second script handles what page loads never see: the click-only states — menus open, lightboxes up, panels slid out — because a dialog that breaks at phone width is invisible to any test that doesn’t click. Flags narrow a run to one engine or a few widths, so a fix can be retested in seconds instead of re-sweeping the world.

One design decision mattered more than the code: the fourteen widths came from our real analytics, not from a blog post’s device list. That audit produced the finding regular readers already know — our desktop traffic is mostly bots, so the resolutions actual humans use are phones and tablets — which means the robot squints hardest exactly where the real customers are.

The same page rendered at four widths; the phone-width render is flagged red for sideways scroll 1280 px · pass desktop (mostly bots, it turns out) 768 px · pass tablet 390 px · FAIL sideways scroll — screenshot taken 360 px · pass phone Fourteen widths, two engines, every page — and one table hanging thirteen pixels over the edge has nowhere to hide.
What the robot sees: the same page at four of the fourteen widths, one render flagged.

What did the squinting catch? Things no human had reported and no human spot-check would have. A missing attribute that made some “Add” buttons silently redirect to the product page instead of adding to the cart — a commerce bug wearing a layout bug’s clothes. A thirteen-pixel overflow that existed only in WebKit, traced to one dropdown’s hidden overflow text — thirteen pixels, one engine; no person squints that hard. A dead “Previous” button in the catalog that had simply never been pressed by anyone testing on a desktop. The fixes themselves followed a philosophy the sweep taught us: trigger layout changes by whether content actually fits its box, not by hardcoded breakpoints, so the fixes don’t rot as content changes. And the robot’s limits were respected too — the final pass ran on the whole team’s actual phones, because a robot can prove a page doesn’t overflow, but only a thumb can prove it feels right.

Then came the part that earned this entry: the robot outlived its first job. A month after the mobile campaign ended, a completely different project — the site-wide style consolidation from recent recaps — needed proof that collapsing a dozen button, pill, and dialog systems into shared components hadn’t broken anything anywhere. The same harness came back off the shelf and ran 940 page sweeps plus 490 clicked-state checks across the whole site, catching a real regression (a badge that stopped wrapping) before any customer could. It also needed one fix of its own along the way — the robot gets debugged like everything else — which is fine: a test harness is code, and code earns trust the same way everything here does.

That second life is the actual lesson, and it’s the oldest one in the trade: a one-off fix decays, but a repeatable check compounds. The afternoon spent building the sweep tool instead of just fixing the first broken page felt slower that day. It has since verified two entire campaigns, caught bugs in three categories nobody predicted, and become infrastructure — when the question came up of deleting the toolkit now that the sweeps are “done,” the answer was easy: it stays in the repo permanently, because the standards file now cites it and future regression testing depends on it. Entry 10 called our rules scar tissue; the robot is the scar tissue’s enforcement arm. Rules write down what must stay true. The robot checks that it did.