mirror of
https://github.com/bitbaum/fleet.git
synced 2026-12-04 06:28:15 +01:00
The fleet's rendered-defect gate swept 1440x1000 and nothing else. That was the hole it could not see through, and it cost substrata a header that was broken at three widths for months while every gate stayed green. substrata shipped a mobile menu whose panel was positioned against a button in the middle of the header, so `right: 0` measured from there put 22rem of panel off the LEFT edge of a 390px screen — the search field and every link label painted where nobody could see them. Contract rules 1-6 all passed on it: the links had boxes, cleared 44px, and marked the current page. They were simply not on the screen, and nothing rendered the screen they were missing from. The same header hid its entire nav between 768 and 1099px, so an iPad got a lone "MENU" in an empty bar. So: 390 / 834 / 1440, overridable with VIEWPORTS. Each is a different branch of this fleet's CSS — below every breakpoint, in the gap where `md:` has fired and `lg:` has not, and the desktop already covered. Two new detectors, and they are contract rules 7 and 8 because the first sweep found them live, not because they sounded right: surf-your-life "Jetzt starten" crosses the right edge by 93px at 834 vitareba "ANMELDEN" crosses by 19px at 834 kivvi "Demo anfragen" crosses by 15px, page scrolls sideways 15px Every one of those is clean at 1440. Rule 3 moves with width too: petvity is clean at 390 and has three sub-44px targets at 834; datacat has three at 390 and seven at 834; botsmann is clean at both and has six at 1440. CROSSING the edge is the defect, not being past it — a closed drawer parked at translateX(-100%) is entirely outside the viewport and is how a drawer waits. Requiring part on screen and part off separates the two with no list of exceptions. The floor is 4px, because the sweep found loki's "Get started" one pixel over, which is rounding and not a clipped button. A panel is closed on arrival, so nothing measures it. DISCLOSE opens every <details> in a nav or header by setting the property — no event fires, so nothing can navigate — and main() clicks up to six button[aria-expanded=false] with a URL guard, because a click in this fleet may do anything. The off-viewport rule gets a WIDER root set than rules 1-4, and that is the finding rather than a convenience: substrata's mobile menu is not inside a <nav> at all. It is a <details> beside one in the header, which is where a menu button usually lives. Scoped to <nav> it would have missed the exact defect it was written for — the fixture caught that before the fleet did. Findings merge across widths and print once, annotated with every width they were seen at, so three renders do not treble a report a human reads. Keys deliberately ignore absolute coordinates: the same crooked stack sits at a different x at each width, and keying on edges printed one decision three times. Also: a site that could not be rendered at ANY width is no longer folded into the closing check mark. This script's own header says a clean report from a detector that never looked is worse than no report at all, and it was doing exactly that. SHARED.md: rules 7 and 8 with the evidence above; the enforcement paragraph now describes what the sweep actually does; and the 2026-08-31 "open gap" note is corrected — s-ink and substrata are in FLEET_SITES now, camille-boulangerie and wild-spirit still are not. Self-tests 20 -> 24, all passing: the off-left panel is caught, the anchored fix stays silent, a closed drawer stays silent, DISCLOSE is pinned separately so a regression there cannot masquerade as a clean fleet, and a malformed VIEWPORTS throws instead of silently skipping. Verified end to end against a live local site and against all 14 fleet sites. Job timeout 20 -> 30 minutes; the three-width sweep ran in ~8. Claude-Session: https://claude.ai/code/session_01NkjZ1jJPhHzxAPvbSSG3wH Co-authored-by: Claude <noreply@anthropic.com>