Visual Route Sweep
Run a fail-closed visual matrix without claiming the application is fully battle-tested.
Invocation
text$visual-route-sweep <url> $visual-route-sweep <url> --fix $visual-route-sweep --resume
--fix authorizes owned UI/runtime remediation and exact-build reruns. It does not authorize
deployment unless the user separately requested deployment. Use credentials only through environment
variables or an existing saved browser state.
Contract
- Record repository SHA, running image/revision, URL, auth method, roles, themes, and viewports.
- Inventory runtime routes plus reachable same-origin links. Classify every route as tested, nonvisual, destructive, superseded, unresolved-dynamic, or quarantined with a reason.
- Authenticate before protected routes. A login page, error page, blank page, or fixture is not proof.
- Capture viewport and full-page screenshots for every safe resolved route at desktop, tablet, and mobile widths in light and dark themes.
- Record HTTP status, final URL, console errors, page errors, failed requests, bad responses, screenshot failures, document width, and responsive findings for every matrix cell.
- Use
../validation/scripts/responsive-audit.js. On mobile, nested horizontal scrolling is a high finding unless a semantically reviewed carousel explicitly hasdata-validation-horizontal-scroll="allow". Tables and forms may not opt out. - Actually inspect every required screenshot. Generate a contact sheet, but do not equate capture with review. Record semantic findings per route family.
- With
--fix, work in an isolated worktree, remediate findings, test, deploy only when authorized, and rerun against the exact candidate build until green or honestly blocked. - Write an append-only route ledger and JSON/HTML report with exact evidence paths and unresolved dynamic routes. Never fabricate representative records.
Read the coverage contract before discovery.
Verdict
The strongest verdict is VISUAL ROUTE SWEEP GREEN. It requires zero application-owned browser
errors, zero unaccounted safe routes, zero high responsive findings, and completed screenshot review
on the exact candidate build. It never means security, CRUD, data integrity, or full battle-test green.


