Your Agent's Layout Check Is Probably Measuring Nothing
An agent cannot look at a screen, so a script becomes its eyes, and a broken script does not throw: it reports success. Five versions of my phone-width layout check, what broke each one, and the rule I now apply to any check: return a verdict and evidence that it observed.