Green Tests Don't Catch Broken Layouts: Visual Sign-Off for Agent UI Changes
Coding agents pass unit and DOM tests while shipping clipped buttons and broken spacing. Here is how spatial screenshot approval closes the gap.
Founder, Task Machine
Last Tuesday, a coding agent wrapped up a redesigned onboarding modal, ran the full test suite, and reported back: 42 tests passing, zero compiler warnings, ready to ship. Everything in the pull request looked clean.
Opening the running app told a different story in two seconds. On mobile, the primary button overflowed its card. On desktop, a badge sat crooked against its heading, a dropdown menu opened twenty pixels off its trigger, and the read-only state looked like an unstyled paragraph stack.
The automated tests did their job. They proved the markup rendered, the permissions held, and the click handler fired. They proved nothing about how the page actually looked.
Treat visual sign-off as a spatial, human-only gate
Visual verification works when it rests on three simple rules: the agent captures real running states, the human keeps final sign-off, and feedback happens directly on the pixels.
In Task Machine, agents submit real rendered screenshots from the running app straight to your Inbox as a dedicated screenshot approval. You flip through desktop, mobile, and read-only states in a full-width filmstrip viewer and drag green region boxes straight onto anything that looks off.

Typing "the header inside the second card looks cramped next to the status pill" in a chat thread forces an agent to guess which element you mean. Dragging a box straight around that header with a one-line note removes every bit of ambiguity.
Why existing UI checks fail for agent work
When teams hit the visual gap, they usually try one of three approaches, and none holds up once agents are shipping interface changes every day.
| Verification approach | What it catches | Where it breaks down |
|---|---|---|
| Unit, DOM, and component tests | Missing elements, broken routes, permission gates, form submissions | Blind to spacing, clipping, overlap, visual hierarchy, and responsive polish |
| Automated pixel-diff snapshots | Unintended pixel shifts on static components | Constantly breaks on deliberate UI changes, dynamic data, and font rendering, creating noise everyone ignores |
| Checking out branches locally by hand | Real visual defects when you remember to boot the app | Slow to set up per branch, and describing tweaks in chat causes multi-round misunderstandings |
| Structured screenshot approval | Real layout, hierarchy, responsive, and permission-state defects from the running app | Takes a quick human glance once every changed state is already captured and annotatable |
If you are a solo founder or a small dev agency shipping customer-facing interfaces, you cannot afford to merge broken layouts, and you cannot afford to check out every agent branch locally just to click through five states. Just like DORA's findings on fast feedback loops, visual verification only sticks when it is fast enough to run on every UI change.
What the agent needs back to fix it on the first try
When a reviewer marks three regions on a screenshot and clicks Request changes, sending back plain text ("Region 1: fix padding") still leaves the agent guessing coordinates.
Task Machine turns each drawn box into a numbered comment carrying two visual references:
- The cropped region so the agent inspects the exact pixels you flagged up close.
- The full screenshot with every box outlined and numbered (highlighting that comment's own box) so the agent sees how the cropped region sits inside the surrounding layout.
That gives the agent both local detail and page-wide context in one turn, waking it once to fix every point in a single pass instead of firing off separate messages while you are still reviewing.
Guardrails that keep visual sign-off honest
Three small design rules separate a real quality gate from a formality:
- Block approval while annotations exist: If you drew a box asking for a tweak, you cannot click Approve by accident. Annotations only go out through Request changes, and removing them makes Approve available again.
- No silent dismissal: A pending screenshot approval never offers a "Dismiss" button that hides an unfinished visual gate. It ends only when you approve, request changes, or when a newer set of screenshots supersedes it.
- Hold completion until signed off: While a screenshot approval is pending, the task stays paused from moving to Done so unreviewed UI work cannot slip past, and an agent can never self-approve its own screenshots.
Stop merging broken layouts behind green test suites. Get started with Task Machine or check pricing to review agent UI work with spatial screenshot sign-off in Inbox, or see Inbox decisions to learn how visual sign-off fits alongside other approvals.