Commit Graph
4 Commits
Author SHA1 Message Date
CatoandClaude fbe9cec233 feat(ui-audit): render three widths, because one was never a sample (#119)
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>
2026-09-21 00:46:09 -07:00
CatoandClaude Fable 5.1 231ad50706 chore: rename FleetCrown to Loki (#65)
The product was renamed on 2026-09-14: bitbaum/loki, loki.orangecat.ch,
LOKI_* env keys, loki-* units. This repo referenced the old name in
38 files changed, 119 insertions(+), 119 deletions(-).
Email addresses at the old sending domain stay until the new domain is
verified in Resend.


Claude-Session: https://claude.ai/code/session_016YJVAanfj8keVSXyZnTemh

Co-authored-by: Claude Fable 5.1 <noreply@anthropic.com>
2026-09-13 16:23:38 -07:00
8dde0f1db5 feat(ci): the UI audit can now see what nav FORGOT, not just what it wrote (#9)
* feat(ci): the UI audit can now see what nav FORGOT, not just what it wrote

The audit's two detectors both look for something someone put on the page: ink
below the contrast floor, rows that start at different x. An entire class of
navigation defect is invisible to that shape, because each instance is
something someone left out.

A fleet-wide nav audit across 20 repos found three, repeatedly:

  1. A current page no link announces. Every repo styles the active item;
     nine of them never set aria-current, and four more set it on every
     surface but one. The highlight exists only for people who can see it.
  2. Nav targets below 44px. That is this fleet's own floor, not the WCAG 2.2
     AA minimum of 24px — fleetcrown enforces it centrally, kivvi and
     wild-spirit state it explicitly — so the message says "out of step with
     the fleet", not "non-compliant".
  3. A label that looks like a control but is not: the orangecat sidebar
     shipped an <h3> beside a chevron-only button carrying the whole onClick.
     Visitors aimed at the word and nothing happened.

Rendered, not grepped, and that is the point. This fleet holds Next apps, CSS
modules, Tailwind, and one hand-rolled static generator with no framework at
all. No source-level lint spans that; the DOM does.

Each detector refuses to fire where the absence is CORRECT:

  - aria-current is only demanded when a link in that nav really does point at
    the page being rendered. A footer of outbound links has no current page to
    mark, and flagging it would fire on every site that has one.
  - A dead label is only claimed when the heading is outside any control AND a
    sibling control has no text of its own. That pairing is the bug; a heading
    next to a labelled button is not.
  - Nested controls are measured by their parent, so one small icon inside a
    large row is not reported as the row.

Small targets print one line per distinct SIZE rather than per element: a nav
of twelve identical 32px links is one decision, and twelve lines of it buries
everything else.

Seven new self-tests, both sides pinned as the existing ones are — 19/19 pass.
The failing side of each is the real bug from a real repo; the passing side is
the corrected markup.

Lands while the workflow still defaults to --warn-only, so the findings surface
in the job summary before anything fails on them.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01XeELB8b3N4JrT2asYL9WvE

* docs(shared): the navigation contract, and why nav markup stays per-app

Records the outcome of the 2026-08-29 fleet nav audit (20 repos, ~13,300 lines
of navigation, nothing shared between them).

Adds navigation chrome to "What must NOT be centralized", with the evidence
rather than the opinion: sitekit is the one shared renderer, it serves 2 of 20
repos, and it shipped ~28px targets and no focus style to BOTH consumers —
unfixable downstream, because a consumer cannot patch markup it does not own.
Its flat {path,label} model also cannot express solon's mega-menu or
reparaturbonus-zh's drawer, which is why every repo with real nav complexity
reinvented its own instead of adopting it.

Adds the six-rule contract that IS shareable, and says where each rule is
enforced — the rendered central audit for public pages, a repo-local check for
anything behind a login, because those cover disjoint surfaces and neither
substitutes for the other.

Records one reversal: the audit first recommended putting nav duplication on
the ratchet. Writing the "do not centralize" section is what showed the two
cannot both be right — the ratchet counts concerns that should converge on ONE
implementation, and every repo is SUPPOSED to have its own nav config, so the
number would score the correct outcome as duplication.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01XeELB8b3N4JrT2asYL9WvE

---------

Co-authored-by: Mao Nakamoto <41178744+maonakamoto@users.noreply.github.com>
Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-08-31 07:45:51 +00:00
Mao NakamotoandClaude Opus 5 f1d5549a36 feat: the fleet's central automation, moved out of dotfiles
The audits, the golden CI templates, the shared-package registry and the
reusable auto-merge sweep now live in a repo whose only job is gating the
fleet. dotfiles goes back to being the environment — a repo holding a .bashrc
is the wrong place for machinery that 16 repos call as a reusable workflow,
and keeping them together made every fleet change look like an environment
change and vice versa (three sessions and the owner collided there in one
week).

Layout is unchanged (SHARED.md, scripts/{ci,fleet,audit}, templates/ci,
.github/workflows), so every script's relative paths still hold. The
reusable sweep now checks out bitbaum/fleet; dotfiles keeps a forwarding
shim so its 16 existing callers keep working unchanged.

All six test suites pass in the new location: shared-inventory 7,
verify-predicates 29, auto-merge-sweep 17, stranded-work 24, worktree-gc 9,
model-pin-audit 102.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AZCNYHwjEeqxNpYCUk6Yna
2026-08-28 10:10:21 +02:00