Commit Graph
20 Commits
Author SHA1 Message Date
CatoandClaude Opus 5 ff79e556b5 feat(ci): 17 of 24 repos could not report a CVE, and nothing measured that (#39)
* feat(ci): 17 of 24 repos could not report a CVE, and nothing measured that

surf-your-life.orangecat.ch served Next 16.2.3 — two CRITICAL unauthenticated
RCEs — plus a critical @auth/core flaw and six more high findings. Thirteen in
total, on a live site, for months.

Nothing was ignored. Dependabot alerts were simply OFF for that repo, so GitHub
never raised one and there was no number for anyone to act on. The correlation
across the fleet that day was exact:

  botsmann        alerts ON  -> Dependabot PR #193 took it to 16.3.3 on its own
  orangecat       alerts ON  -> its security job went red, which is how this surfaced
  surf-your-life  alerts OFF -> silence, 1 critical + 6 high

17 of 24 repos were off. The instrument was missing, not the diligence.

WHY THE EXISTING SWEEP COULD NOT SEE IT. version-currency.mjs compares MAJORS
parsed out of package.json ranges: parseMajor("^16.2.12") is 16, blessed is 16,
no gap. Every minor and patch is invisible, and it reads the declared RANGE
while the lockfile decides what ships — a caret that ALLOWS 16.3.4 sits on
16.2.12 forever, because an already-satisfied dependency is never upgraded on
install. Both vulnerable pins returned zero gaps from it. That limit is now
written into its own header rather than left to be rediscovered; the two audits
are complements, not overlaps.

A HARD FLOOR, NOT A RATCHET. Its siblings baseline a count because their
findings have legitimate exceptions. This one has none: a repo with alerts off
cannot report a CVE, so the correct number is zero permanently. A baseline here
would only make "some repos are deaf" an accepted state.

THE POPULATION COMES FROM `gh repo list`. Writing this, I first hand-typed the
repo list from `ls ~/dev` — which invented a repo that does not exist
(~/dev/revamp-info is a checkout whose remote points at bitbaum/hirnli) and
MISSED 17 that do, including every shared package (ai-kit, ai-forms, bip-kit,
limitkit, threadkit, design-tokens) that is published to npm and consumed
fleet-wide. Archived repos and forks are excluded, matching version-currency so
both audits measure the same population.

Ten tests, each a mutation: a repo with alerts off must exit 1, an UNREADABLE
repo must exit 1 rather than pass, and an empty repo list must exit 2 rather
than read as a clean fleet.

All 41 repos now have alerts and automated security-fix PRs enabled; the audit
reports 41/41.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NSLwXsPH8mLYtaM8h3oVto

* chore(ci): the org-drift ratchet fell and its baseline still claimed the violation

`org-drift-audit.sh --check` was failing every PR in this repo — not for
anything in the PR, but because fleetcrown/README.md was fixed and its baseline
line outlived it. The audit is built so that a baseline entry with no matching
violation is itself an error, precisely so the list cannot rot into a claim
about a problem that no longer exists. It did its job; nobody deleted the line.

Unrelated to the Dependabot work on this branch, and separated into its own
commit for that reason. Left alone it blocks everyone.

  46 repos swept, 3 known violations, no new contradictions (was: exit 1).

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NSLwXsPH8mLYtaM8h3oVto

---------

Co-authored-by: Claude Opus 5 <noreply@anthropic.com>
2026-09-10 15:57:27 -07:00
918a6d6f0e Use gh API by default, baseline existing violations (#33)
* Use gh API by default, baseline existing violations

- org-drift-audit.sh: Default to GitHub API scan via gh CLI, scans all
  bitbaum org repos. Finds 4 existing violations across 41 repos.
  Local DEV_ROOT scan available via USE_LOCAL=1.

- org-drift.baseline: Baselined 4 existing violations found in first run:
  bitbaum/CLAUDE.md (AI product studio claim)
  bitbaum/README.md (bitbaum AG claim)
  crewless/README.md (door disagreement with apps.conf)
  fleetcrown/README.md (door disagreement with apps.conf)

- org-drift-inventory.txt: Generated inventory showing 41 repos scanned,
  4 violations found. The ratchet now prevents new violations from landing.

First real run complete. The count can only fall.

Co-authored-by: Cato <catomean@users.noreply.github.com>

* Fix test suite for gh API mode

Test now uses USE_LOCAL=1 to test the vacuous-pass check,
since gh API mode connects to GitHub. All 36 tests pass.

Co-authored-by: Cato <catomean@users.noreply.github.com>

---------

Co-authored-by: Cursor Agent <cursoragent@cursor.com>
Co-authored-by: Cato <catomean@users.noreply.github.com>
2026-09-09 01:01:27 -07:00
a795806430 Add org register and drift-prevention system (#32)
- registers/org.json: machine-readable register for org facts (publicName,
  legalStatus, houseDomain, host, design, ventures). Agents read this, not
  READMEs. A new claim is a register row or it does not ship.

- scripts/ci/org-drift-audit.sh: check script that scans bitbaum org repos
  for public documents contradicting the register. Forbidden: incorporation
  pending, bitbaum AG, AI product studio as identity, github.io host, legal
  personal name. Validates live doors against apps.conf. Exits non-zero on
  new violations.

- scripts/ci/org-drift-inventory.txt: generated inventory of violations,
  updated by the audit script. A ratchet preventing new lies from landing.

- scripts/ci/org-drift.baseline: baseline for existing violations that
  predate the gate. May fall or hold, may never rise.

- scripts/ci/test-org-drift-audit.sh: test suite (36 checks, no network,
  no checkout). Tests forbidden_patterns, is_public_doc, is_exempt_path,
  baseline_keys, apps.conf parsing.

- README.md: documents the drift-prevention system.

Co-authored-by: Cursor Agent <cursoragent@cursor.com>
Co-authored-by: Cato <catomean@users.noreply.github.com>
2026-09-09 00:30:59 -07:00
CatoandClaude Opus 5 25de3dcc17 chore(inventory): auto-merge duplication is down to the canonical copy (#30)
automerge-script  5  5   →   1  1

The four repos still carrying their own auto-merge-sweep.sh now call the
reusable workflow instead: datacat #253, petvity #81, hamstercheek #21,
solon #154. What remains is fleet's own copy, which is the definition, not a
duplicate.

For scale: SHARED.md opens with this script as the worked example of writing a
rule down and watching it fail — "22 repos, 8 distinct versions, 11,787 to
19,344 bytes; a fix landing in one reaches at most 9 of them". That is now one
file in one repo, and every consumer picks up a fix the moment it merges here.

The copies were 293-371 lines against this repo's 446, differing on 149-227
lines each. None of them looked broken, which is the whole difficulty: a sweep
merges what it can and exits 0, so a copy missing a third of the canonical is
indistinguishable from a working one until the missing third is what you
needed. Concretely, three of the four listed deploy.yml in REARM_WORKFLOWS —
dispatch once, no idea whether it landed — instead of using the deploy
reconciler, which compares the base tip against the last successful deploy and
retries. Without it a commit sits merged-but-not-live with CI green and nothing
to signal it.

What was deliberately NOT unified: hamstercheek keeps its hourly cron. It is
private, Actions minutes are billed, and */10 would burn ~4,300 billed minutes
a month against a 2,000 allowance to discover there are no PRs. The policy is
what centralises; the triggers stay per-repo because that is where genuine
per-repo truth lives — the CI workflow's exact name, the base branch, and the
bill.

Every other line of the baseline is unchanged, so this ratchets one number down
and holds the rest. `--check` passes.


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

Co-authored-by: Claude Opus 5 <noreply@anthropic.com>
2026-09-07 14:42:41 +00:00
CatoandClaude Opus 5 4b959e5c10 chore(ratchet): all three pipeline checks now read zero (#29)
Re-measured across the same 32 repos after the last four adoptions:

  deploy-cancels      0
  deploy-reverifies   0
  cold-ci-build       0   (was 14 this morning)

Fourteen repos adopted the Next build cache today; evig's deploy stopped
cancelling itself and stopped re-running the bundle CI already runs.

Setting the baseline to 0 is the point of a ratchet that can fall. Left at 4,
four repos could regress unnoticed — and this check exists because 'we know we
have this problem' has never once changed a number in this fleet.

From here the ratchet is load-bearing on every new repo: the golden templates
ship the cache step, so a repo scaffolded from them starts at zero and any
regression has to be argued for in a PR rather than inherited.


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

Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-09-07 07:17:44 -07:00
CatoandClaude Opus 5 faabfd9621 chore(ratchet): lock in the cache win — cold-ci-build 14 → 4 (#28)
Ten repos adopted the Next build cache today (hirnli, petvity, vitareba, s-ink,
biaslens, reparaturbonus-zh, truthseeker, surf-your-life, hamstercheek,
aoz-housing). Re-measured across the same 32 repos: 14 → 4.

Lowering the baseline is the point of a ratchet that can fall — otherwise the
next repo to regress would be measured against a number nobody achieved, and
the win would silently evaporate.

The four remaining are the ones a mechanical sweep should NOT have touched:
botsmann, substrata and camille-boulangerie have no single Install anchor and
solon has two. Each needs reading rather than a regex, and guessing at them is
how one mechanical change breaks four repos.


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

Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-09-07 13:58:45 +00:00
CatoandClaude Opus 5 4d5d5273b8 ci(fleet): audit the shape AROUND the gates, and fix the templates that seed it (#27)
verify-floor-audit.sh asks whether each repo runs the right gates. Nothing asked
whether the pipeline around them was wasteful or unsafe, and on 2026-09-07 that
gap cost real deploys:

  - evig set `cancel-in-progress: true` on a ~13-minute deploy. 4 of its last 10
    deploys were CANCELLED — 40%, against 0% for all seven other repos measured.
    Three cancelled each other in a row and a merged fix needed three attempts
    to reach production.
  - evig's deploy ran `pnpm run verify`: the bundle CI runs, concurrently, on
    the same SHA. The commit was built FOUR times per merge and only the last
    build shipped.
  - Of eight repos measured, exactly ONE restored Next's .next/cache in CI.
    Everyone else recompiled from scratch every run, then the deploy compiled
    again.

Three checks, one per failure, ratcheted like the duplication count: may fall,
may hold, may never rise. Measured now across 32 repos —

  deploy-cancels      0   (was 1; evig fixed today)
  deploy-reverifies   0   (was 1; evig fixed today)
  cold-ci-build      14

The 14 convert as each repo is touched, which is the pattern SHARED.md already
uses for rate-limit adoption; the ratchet holds the line meanwhile. What stops
the number growing again is the other half of this commit: both golden CI
templates now ship the cache step, so a NEW repo is correct by construction
rather than by somebody remembering.

The predicates are deliberately narrow, because a noisy audit gets muted:
  - CI *may* cancel superseded runs — that is correct, and only deploy
    workflows are checked for it.
  - A deploy that is its repo's ONLY verifier is not duplicating anything and
    is not flagged; telling it to stop would delete its gate.
  - A non-Next repo has no .next/cache to restore and is not flagged.
  - Comments are stripped before matching, so a deploy whose comment EXPLAINS
    why it does not cancel is not reported as cancelling.

All four of those negatives are asserted by test-cicd-hygiene-audit.sh, along
with the three positives and both directions of the ratchet — 10 cases against
local fixtures, no network, so it runs on every PR. A predicate that never
matches passes exactly as quietly as one that works; this fleet has shipped
that twice.

templates/ci/README.md gains the reasoning as Rung 5, including the shape worth
copying once a repo earns it: build once, ship the artifact (orangecat, CD 2.5m
against CI 8.0m) — and the warning that the standalone tree must travel as a
TARBALL, because upload-artifact does not reliably preserve the pnpm symlink
farm and a flattened tree dies at boot on @swc/helpers.


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

Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-09-07 13:35:52 +00:00
CatoandClaude Opus 5 e96fcb5495 chore(ratchet): raise two counts on purpose, lock one win in (#26)
The weekly run was green on 2026-08-31 and red on 2026-09-07. Three changes,
none of which could have been blocked where they happened:

  automerge-script  6 -> 5   a win — locked in so it cannot silently regress
  health-route      9 -> 11  raised knowingly
  slug-util         2 -> 3   raised knowingly

**health-route.** The row claimed "identical shape in 8 repos; a 20-line
contract". The shape is identical; the content is not. vitareba's health route
asserts the app's own role can still read its own tables — written because a
migration once created a table the app could not read — while orangecat's checks
Supabase reachability. Extracting the envelope leaves every app still writing
the only part that differs. Raised rather than absorbed.

**slug-util.** Not one function copied three times: three functions that
disagreed, two of them broken, found by reading them rather than counting them.
evig declares eight locales and deleted seven — 'Café Genève' became
'caf-gen-ve', and a Russian or Japanese title produced the EMPTY string, which
under a unique constraint means the second such record cannot save at all.
hirnli transliterated a hand-written list missing ç, so 'Association Française'
became 'association-fran-aise' in a directory of Swiss foundations.

Both are fixed in place today (evig 32 tests, hirnli 26), which is why this PR
raises the count instead of reducing it: the bug was worth fixing now, and
consolidating into sitekit needs a publish plus a minimumReleaseAgeExclude entry
in each consumer — a chain not worth delaying two live fixes for. Recorded in
SHARED.md as the intended end state rather than left as an unexplained number.

Also documents what this ratchet structurally cannot do: it runs here and
measures 38 other repos, so it can name a rise and never block one. Both rises
arrived through repos the gate cannot reach. A detector without an owner is the
muting SHARED.md exists to prevent.

Verified: `--check` exits 0 across 38 repos.


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

Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-09-07 12:10:12 +00:00
CatoandClaude Opus 5 a7fb23c97f chore(inventory): message threads on the ratchet, and the count corrects the claim (#24)
Adds a `messaging-threads` concern to shared-inventory.sh, with a baseline
entry measured rather than asserted:

    messaging-threads   2 repos   3 files   orangecat(2) vitareba(1)

The intuition that prompted this was "many of our apps have messaging, treat it
like the other fleet-wide duplication". Measuring says otherwise: only two repos
carry thread logic at all. Recorded as such in SHARED.md, because a row that
overstates its own case is worth less than no row.

It still earns its place. The duplicate that existed was not merely a second
copy, it was wrong in three ways that are invisible below three participants —
read receipts reporting READ when any ONE recipient had caught up, a reader
counted outside their own visibility window, and an optimistic bubble sharing
no identity with its stored row, so realtime winning the race rendered the
message twice. threadkit (506 lines, already published, one adopter) made all
three unrepresentable; orangecat converted as the proving consumer.

`--check` still reports two rises, and they are DELIBERATELY not absorbed here:

    ✗ health-route: 9 → 11 files
    ✗ slug-util:    2 → 3 files

Both predate this change and neither is mine. Running --update would have
locked all three in under a messaging PR, which is precisely how an increase
stops being reviewed — the failure mode this ratchet exists to prevent. They
need their own look.

test-shared-inventory.sh: 7 passed, including that every baseline concern still
exists in the script.


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

Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-09-06 20:52:42 +00:00
8af048a117 chore(model-pins): install ai-kit from npm — the v0.3.0 git freeze thaws (#21)
The workflow comment said "switch to npm once it has a token"; that day
came 2026-09-04 (@bitbaum/ai-kit@0.6.2). The audit script learns the
scoped node_modules path; the legacy paths stay as fallbacks.


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

Co-authored-by: Mao Nakamoto <41178744+maonakamoto@users.noreply.github.com>
Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
2026-09-04 16:49:52 +00:00
955e2484d1 chore(ci): retire the ai-kit git-tag pin — it lives on npm now (#18)
ai-kit is published as @bitbaum/ai-kit@0.6.2 and all 7 consumers
(orangecat, fleetcrown, aoz-housing, botsmann, evig, hirnli, truthseeker)
have "^0.6.2" from the registry on their mains (verified 2026-09-04). The
internal_tags entry that policed the github-tag pins has nothing left to
police, so it graduates exactly the way blessed-versions.json always said
it would: delete the entry. As a 0.x package it joins drizzle-orm and
@anthropic-ai/sdk in the "no meaningful major, not listed" convention —
no new mechanism.

- blessed-versions.json: internal_tags now {}, comment records the
  graduation path and the 0.x convention
- test-version-currency.mjs: two new checks pin the now-live config shape
  (absent internal_tags counts only major gaps; empty internal_tags does
  not judge a leftover git pin) — the || {} in gapsFor is proven, not
  assumed
- STACK.md: AI row now names @bitbaum/ai-kit from npm; package-manager
  row and "still open" note say the npm bootstrap is DONE but the pnpm
  sweep is still in progress (5 repos converting) — NOT marked done

Measured before and after: TOTAL GAPS 1 with both main's config and this
one — identical, the ratchet does not move. That 1 is sbb-lost-found's
eslint ^8.57.1 < blessed 10, a pre-existing regression on main (baseline
is 0) that the weekly ratchet will flag; it belongs to sbb-lost-found,
not this PR.


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

Co-authored-by: Mao Nakamoto <41178744+maonakamoto@users.noreply.github.com>
Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
2026-09-04 09:33:42 +00:00
e637589003 feat(ci): forks are exempt, visibly — upstream owns their manifests (#14)
A fork that tracks an upstream does not own its dependency policy: patching
its lockfile buys merge friction and can never be more current than the next
sync. Learned on bitbaum/openclaw (2026-09-01): the openai bump's PR could
only ever be verified by a CI baseline that also belongs to upstream. A
fork's currency action is SYNCING, which this audit cannot ratchet.

listRepos now partitions by isFork; exempted forks are printed by name in
every report so the exemption is visible, never silent. Baseline re-measured
on a verified-clean run (zero UNCHECKED): the fleet's owned repos are fully
current at 0.

(The first push of this branch shipped the baseline without the code — the
patch had been swallowed by a blocked shell command and the commit script
never re-applied it; a rate-limited measurement then wrote 0 with 23 repos
UNCHECKED. Caught because UNCHECKED prints visibly, drafted before the sweep
could take it, re-measured clean, amended.)


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

Co-authored-by: Mao Nakamoto <41178744+maonakamoto@users.noreply.github.com>
Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
2026-09-01 13:03:03 +00:00
e3be335a3f chore(ci): the currency baseline tightens 80 -> 1 (#13)
The 2026-08-31 audit seeded the ratchet at the fleet's real number: 80
gaps. Waves 1-6 of the currency arc closed 79 of them in ~36 hours — every
repo current on its blessed majors, the box off EOL Node 20, both
flagships migrated (zod 4, Vitest, TS 6 fleet-wide).

The one counted survivor is deliberate: openclaw's openai 6->7 is held
until its fork-CI decision (the bitbaum fork has Actions disabled, so a
merge there is unverified; the gateway's own runtime already satisfies
v7's Node>=22 floor). The gap stays measured, not forgotten — exactly what
the ratchet is for.


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

Co-authored-by: Mao Nakamoto <41178744+maonakamoto@users.noreply.github.com>
Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
2026-09-01 01:38:30 +00:00
3abb6eeeb8 feat(ci): a scheduled source-level nav-contract audit, closing the authed-surface gap (#11)
* feat(ci): a repo-level check for the nav defect the rendered audit can't see

ui-defect-audit.mjs renders each site's PUBLIC entry page — it cannot reach a
sidebar behind a login, which is exactly where the original bug in this
sweep lived. This is the other half: a source sweep run from this repo
against every default branch, the same pattern hosted-supabase-audit.sh
already uses (central, not a copy per repo).

THE RULE IS REPO-LEVEL, DELIBERATELY. A first per-FILE draft — "a file that
renders links and computes an active state must contain aria-current" —
produced 19 findings of which roughly a quarter were wrong, because the
active state and the announcement legitimately live in different files:
evig spreads a helper that supplies the attribute, fleetcrown's parent
passes `current` to a child that announces it, a tab list correctly uses
aria-selected. A gate wrong a quarter of the time gets ignored. The repo-
level assertion — somewhere in this repo, aria-current exists at all — has
no false positive in that class, at the cost of not pinpointing the file. The
rendered audit's job is the per-surface precision a live DOM can give; this
gate's job is coverage no renderer can reach.

Proven live, not just by fixture: on the first real run it named botsmann,
datacat, petvity, printcraft, s-ink and surf-your-life by their genuine
defect (checked against each repo's origin/main before any of them were
fixed), and cleared to green as each was fixed and merged during this same
session.

check:test-nav-contract-audit.sh, the self-test that runs before the sweep,
caught a second real bug in the process: SKIP_FILE's `tabs?\.(tsx|jsx)$` was
unanchored, so it matched any file merely ENDING in "Tabs.tsx" as a
substring — evig's AnalyseTabs.tsx included — and skipped it silently. All
four SKIP_FILE alternatives now anchor to `(^|/)`, matching a whole basename
rather than a suffix. The anchor fix surfaced 7 more nav files across the
fleet that a prior sweep had silently excluded; re-run after fixing, the
fleet is still fully green — the files were skipped, not violating.

Two things a fresh reader would ask, answered in the script itself:

- Two directories are not two repos. fleetcrown/fleetcrown-scripts and
  hirnli/revamp-info are each one repo cloned twice; the loop dedupes by
  origin URL so a finding is not doubled or a merge missed on one clone.
- `set -e` traps: `cmd && continue` is fatal when cmd's grep does not match,
  and `git symbolic-ref -q` on a clone with no default-branch tracking is
  the same trap. Every such probe here is an explicit `if`, not a `&&`.

Baseline file (nav-contract.baseline) ships empty with the ratchet's own
convention: a repo with a genuine no-current-page nav (a single-page tool
whose nav is anchors) gets a line with a reason, decided in a PR, not by
silently going green.

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

* feat(ci): schedule the nav-contract audit — a script alone enforces nothing

nav-contract-audit.sh existed in the previous commit and nothing called it.
A check nothing runs is a suggestion, not a gate — the exact failure mode
SHARED.md already names for the accent-ink and duplication checks.

Mirrors hosted-supabase.yml's established pattern for this shape of audit
exactly: self-test before the sweep, shallow-clone the fleet with
--depth 1 --filter=blob:none (this repo has no package.json on purpose),
FLEET_READ_TOKEN for private repos with the gap stated rather than hidden,
weekly schedule plus workflow_dispatch, findings into the job summary where
a human actually looks.

Proven end-to-end against a real shallow clone, not just asserted: `gh repo
clone --depth 1 --filter=blob:none` sets refs/remotes/origin/HEAD correctly
(verified — some shallow-clone paths do not), and the audit script reads it
and runs clean against the result.

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

* docs(shared): record the nav-contract gate landing, and the discovery gap

The nav contract section described a two-gate plan (rendered audit + a couple
of per-repo checks) as the working state. As of this session there is a
third gate that actually shipped and ran: nav-contract-audit.sh, weekly,
central, self-tested, found and fixed six real repos on its first sweep.
Recorded with the date and the six names, not just "it exists."

Also records a finding the sweep surfaced but should not silently fix:
s-ink, substrata, camille-boulangerie and wild-spirit are all outside
FLEET_SITES, the hand-maintained editorial list that drives the rendered
audit's site discovery. Three of the four are actually on orangecat.ch
subdomains and would match the discovery regex if linked — only s-ink is
genuinely off-pattern (sinktattoo.com). Adding entries to FLEET_SITES is a
product/content decision ("each site's own words," per its own doc comment),
not a mechanical nav fix, so it is written down here for a human rather than
edited as a side effect of this sweep.

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 12:59:19 +00:00
503f476efa feat(ci): staleness is measured, and the measurement is a ratchet (#10)
The 2026-08-31 fleet audit found the box on an EOL Node, aoz-housing a full
framework generation behind on every axis, and ai-kit pinned at three tags
across seven consumers — one at the pre-org-move OWNER. None of it hidden,
all of it unmeasured. Same lesson shared-inventory encodes for duplication:
writing 'stay current' in a doc is what already failed.

blessed-versions.json is the SSOT (blessed major per key package + the tag
every internal git pin must carry); version-currency.mjs measures every
default branch against it, reports UNCHECKED for anything it could not read
rather than counting it clean, and --check ratchets the total: fall or hold,
never rise. Baseline seeded at the audit's real number: 80.

Self-test pins both sides with the audit's own fixtures (the aoz manifest,
the dead-owner pin) and runs in ci.yml beside the other detector tests.


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

Co-authored-by: Mao Nakamoto <41178744+maonakamoto@users.noreply.github.com>
Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
2026-08-31 08:48:06 +00: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
5dfdb1980f fix(ci): the hosted-Supabase test died on the runner instead of reporting (#5)
CI went red on main with exit 128 and no failure line — the suite stopped
mid-file, naming nothing.

Two causes, both mine. Sourcing the audit to get at its pure helpers also runs
its `set -euo pipefail` in the test's shell, so the first command that failed
took the whole suite with it. And the fixture repo committed with whatever git
identity happened to be lying around; a GitHub runner has none, so `git commit`
exits 128. Locally both were invisible: my identity is configured, so nothing
ever failed at that line.

A test suite whose job is to run commands that fail must not die on the first
one. Take -e back after sourcing, keep -u and pipefail, and give the fixture an
explicit identity so it does not care what the machine has.

Verified the way it actually breaks, not the way it passes:
HOME=$(mktemp -d) GIT_CONFIG_GLOBAL=/dev/null GIT_CONFIG_SYSTEM=/dev/null
reproduces exit 128 before the fix and 28/28 after.


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

Co-authored-by: Mao Nakamoto <41178744+maonakamoto@users.noreply.github.com>
Co-authored-by: Claude Opus 5 <noreply@anthropic.com>
2026-08-28 09:03:20 +00:00
822297e214 feat(ci): audit the fleet for the Supabase we retired (#4)
The fleet self-hosts Supabase on bitbaum. Two managed-cloud projects are dead —
orangecat's ohkueislstxomdjavyhs, retired 2026-06, and botsmann's
jkjmhtirxwhljpkcfxqe before it. The repos kept describing them in the present
tense.

botsmann's setup doc opened with "Completed Setup" for its dead project and
said to apply migrations by pasting SQL into a supabase.com dashboard. Two
scripts printed the same instruction, one handing out a psql string against
pooler.supabase.com, and the CLI's cache with the old project ref was committed
twice. Nobody pasted anything, its eleven migrations were never applied, and
/api/health served PGRST205 for months while every deploy went green. The docs
were not stale clutter; they were the outage. A wrong pointer to a real-looking
place is worse than no pointer: no pointer makes someone ask, a plausible one
makes them assume it was handled.

The first live sweep found one more of the same shape, which is the argument
for auditing rather than trusting the cleanup: printcraft's seed script
hardcoded the retired host AND omitted `db: { schema }`, so repointing it
naively at the box would have written one customer's rows into orangecat's
`public`. Deleted in bitbaum/printcraft#30.

Central, not a copy per repo — the rule this repo exists to keep. Three repos
use Supabase and thirty do not. botsmann additionally keeps a local
check:selfhost in its own verify, deliberately: it is the repo the outage
happened in, and blocking the commit beats finding it a week later.

Two judgements decide whether this is useful or merely loud, and both are
pinned by 28 tests. It allows supabase.com/docs, because the product
documentation is still correct for us, and your-project.supabase.co, because a
placeholder misleads nobody — a gate that fires on either gets muted. And
legitimate mentions, like a decommission runbook naming what it
decommissioned, live in the baseline WITH A REASON rather than widening the
pattern: a ratchet that may fall or hold, never rise.

Unlike verify-floor-audit.sh this reads local checkouts, because it is a
full-text sweep and GitHub code search returns nothing for these repos — even a
known-present token finds no hit. So the workflow shallow-clones the fleet and
runs the same script unchanged. When it sweeps nothing it says SKIPPED, loudly,
rather than printing a tick: a vacuous pass reads exactly like coverage, which
is the failure this audit exists to prevent.


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

Co-authored-by: Mao Nakamoto <41178744+maonakamoto@users.noreply.github.com>
Co-authored-by: Claude Opus 5 <noreply@anthropic.com>
2026-08-28 11:00:42 +02:00
GandClaude Opus 5 f6bf14ac36 chore: retire the maonakamoto handle (#2)
GH_OWNER defaulted to an owner that no longer exists (gh api users/maonakamoto
=> 404), so this audit enumerated nothing and would have reported an empty
fleet as a clean one.


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

Co-authored-by: Claude Opus 5 <noreply@anthropic.com>
2026-08-28 08:32:21 +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