# Verification Playbook Use this playbook for every nontrivial implementation and any claim of exact, pixel-close, production-ready, or Awwwards-level output. ## Contents - Verification manifest - Deterministic capture - Visual correction loop - Responsive and state validation - Accessibility, performance, and build gates - Readiness verdict - Failure recovery - Evidence handoff ## Verification manifest Create one row per authoritative target: | Route | Viewport/DPR | Theme/locale | State/scroll | Reference | Implementation | Diff/overlay | Largest mismatch | Result | |---|---|---|---|---|---|---|---|---| | `/` | `1440×900 / 1` | light/en | default/top | `` | `` | `` | `` | pass/fail | Do not compare screenshots taken under different routes, widths, DPRs, fonts, themes, content, or animation states. ## Deterministic capture Stabilize: - Browser engine and version when controllable. - CSS viewport width and height. - Device-pixel ratio and browser zoom. - Font availability and completed font loading. - Theme, color scheme, contrast mode, and reduced-motion setting. - Locale, timezone, direction, and canonical content. - Authentication/mock data and network-dependent states. - Route, query, scroll position, open overlays, selections, and focus. - Animation timeline, cursor position, caret, timers, random values, and current time. Wait only for the actual app-ready condition. Avoid arbitrary sleeps when a deterministic element, font, asset, or state signal exists. Capture: - Full page for macro rhythm. - First viewport for primary hierarchy. - Component crops for typography, controls, and stubborn local differences. - Before/after states for interaction and motion. ## Visual correction loop Repeat for each authoritative target: 1. Render at the exact manifest conditions. 2. Capture the implementation. 3. Compare side by side. 4. Use transparent overlay, blink comparison, pixel diff, or heatmap when available. 5. Ignore isolated antialiasing noise; investigate coherent shapes and repeated offsets. 6. Classify the largest mismatch. 7. Measure the suspected root cause. 8. Fix one high-impact cause. 9. Recapture under identical conditions. 10. Update the manifest. Correct in this order: 1. Wrong route, content, data, theme, or state. 2. Canvas, page shell, section order, section height, and container geometry. 3. Grid, alignment anchors, overlaps, sticky offsets, and dominant image placement. 4. Font files, real weights/styles, scale, measure, line height, tracking, baselines, and wrapping. 5. Image bounds, crop, focal point, mask, frame, and quality. 6. Spacing rhythm and repeated gaps. 7. Semantic colors, surfaces, borders, radii, shadows, texture, and depth. 8. Icons, dividers, optical offsets, and minor decoration. 9. Interaction states and motion timing. Fix global causes before local symptoms. A wrong font, container, or asset crop can create dozens of apparent spacing errors. Complete at least two deliberate comparison-and-correction passes for every nontrivial reconstruction. Continue while a normal viewer can immediately identify a material difference at the target size. Do not require an arbitrary universal pixel-diff percentage. Browser rasterization, fonts, subpixel layout, and generated substitutions need project-specific tolerance. Record the remaining coherent differences instead. ## Responsive and state validation Match supplied viewports first. Then test representative widths around the inferred system: - Narrow mobile. - Typical mobile. - Tablet. - Small laptop. - Target desktop. - One intermediate width. - One ultra-wide width when relevant. - Immediately below and above every breakpoint. - One short viewport height. At each applicable width verify: - No unintended horizontal overflow. - No clipped, covered, or unreachable content. - Logical reading and focus order. - Navigation transformation and safe-area behavior. - Text wrapping, long labels, localized content, RTL, and zoom/reflow. - Media crop and focal point. - Sticky/fixed offsets and anchor links. - Touch target size and coarse-pointer behavior. - Mobile platform baseline from [interface-craft.md](interface-craft.md): no stuck hover, no tap flash, no input zoom, correct `svh`/`dvh`, safe-area padding. Mark hardware-only items as unverified when no real device is available. - Container-query component behavior inside narrow and wide parents. Exercise applicable states: - Default, hover, focus, pressed, selected, disabled. - Loading, skeleton, empty, partial, error, success. - Open/closed, expanded/collapsed, active/inactive. - Permission denied, offline, expired, destructive, and recovery. - Long/short content, no image, slow media, and failed media. - Reduced motion, high contrast/forced colors, and both themes. ### Worst-case content Swap in realistic worst-case values, then re-check layout at the narrowest width and inside narrow parent containers. Use `example.com` or `.test` domains for fixtures. | Field type | Values to try | Usually breaks | |---|---|---| | Names | `Aleksandra Wiśniewska-Kowalczyk`, `Jo`, `王秀英`, `نور الهدى عبد الرحمن`, missing name | Wrapping, initials, RTL, fallback | | Unbreakable strings | `bartholomew.fitzgerald@northwind-industries-holdings.example.com`, long URLs, UUIDs, long file names | Row overflow without `overflow-wrap: anywhere` or deliberate truncation | | Labels and copy | `Benachrichtigungseinstellungen`, French or German translations (about 30% longer), 12 tags, empty title, pasted 2,000-character text, `