## What the inventory showed Read every bitbaum repo's `.github/workflows/auto-merge.yml` from its default branch via the API (not local checkouts): 33 repos carry one. **32 are already callers of `auto-merge-sweep.yml` (`workflow_call`)**; the 33rd is this repo, which runs the script inline because it *is* the reusable workflow. The ratchet in `shared-inventory.baseline` already reads `automerge-script 1 1`. So the consolidation the SHARED.md row still described as "6 remaining, datacat/petvity/solon convert when clear" finished a while ago — that row was stale, and the caller was documented nowhere in `templates/ci/`. Eight repos across six caller shapes (heidi, ai-kit, sbb-fundbuero, datacat, petvity, solon, evig, orangecat) were checked to actually *run* the reusable job today: each latest Auto-merge run has the nested `sweep / sweep` job checking out `bitbaum/fleet` and executing `Sweep`. ## What it also turned up - **dotfiles** declared `secrets:` twice under the same job. GitHub refused the file: the workflow is listed by its *path*, every run since 2026-09-13 is a zero-job failure, and the repo has merged nothing — silently. Fixed in bitbaum/dotfiles#69. - **substrata** and **camille-boulangerie** re-armed a `publish.yml` neither repo has; the sweep dispatched it after every merge and logged an error. Fixed in bitbaum/substrata#36 and bitbaum/camille-boulangerie#34. ## What this PR does (all additive) - `templates/ci/auto-merge.yml` — the caller, with `CHANGEME` lines, so the next repo copies a template instead of a neighbour. - `templates/ci/README.md` — "Auto-merge: call it, never copy it": the snippet, an inputs table with what each wrong value looks like, and the findings above. - `scripts/ci/cicd-hygiene-audit.sh` — a fourth ratcheted check, `automerge-miswired`: a duplicate mapping key, a job that neither calls the reusable workflow nor runs the canonical script, or an input naming a workflow file the repo does not have. Baseline `0` (the three findings have PRs open; see below). - `scripts/ci/test-cicd-hygiene-audit.sh` — six new mutation cases, both directions: fires on the dotfiles shape, the substrata shape and a hand-rolled job; stays quiet on a sound caller (including two `- cron:` list items, which a naive key counter would flag), on fleet's own inline run, and on a repo with no caller at all. 16/16 pass. Run over the real 33-repo inventory it reports exactly the three known cases and nothing else. - `SHARED.md` — the row now says 1, and why. If `--check` runs before the three repo PRs merge it will report `0 → 3`; they are green one-liners and should be in before Monday's scheduled run. Claude-Session: https://claude.ai/code/session_012KAn51JHFcTrPeCjZDGXM8 Co-authored-by: Claude Fable 5.1 <noreply@anthropic.com>
fleet
The fleet's central automation: the checks that run from this repo against every other repo, the golden CI templates, and the shared-package registry. One copy of each, so nothing can drift.
Moved out of dotfiles on 2026-08-28 — a repo holding someone's .bashrc is
the wrong place for the machinery that gates thirty other repos, and keeping
them together made every fleet change look like an environment change and vice
versa. dotfiles is the environment again; this repo is the automation.
SHARED.md |
the shared-package registry and the duplication ratchet — read before building anything cross-cutting |
STACK.md |
the blessed technology per job — ONE ORM, ONE test runner, ONE auth stack; deviations are documented exceptions, not habits |
registers/readings.json |
derived nightly: the numbers the bet rests on — stars, forks, npm downloads, paying clients and CHF/month, originator share paid — as a time series that gains a row only when a reading changes. Zero is a reading. |
registers/origin.json |
derived nightly: for every public repo, GitHub's first commit, the OpenTimestamps manifest and Bitcoin block it is proven in, and its Software Heritage snapshot. What bitbaum.orangecat.ch says about origin comes from here. |
registers/org.json |
machine-readable register of org facts — agents read this, not READMEs. A new claim is a register row or it does not ship. |
scripts/ci/auto-merge-sweep.sh |
the canonical merge policy; the fleet calls it via the reusable workflow below. Includes the contributor gate: an outside PR merges only when every commit is Signed-off-by, certifying bitbaum/.github/CONTRIBUTING.md — the DCO plus the licence grant that keeps relicensing possible |
scripts/ci/model-pin-audit.mjs |
runs daily: is any model id the fleet pins still served by its vendor? |
scripts/ci/verify-floor-audit.sh |
does every repo's verify actually run lint + typecheck + test? |
scripts/ci/shared-inventory.sh |
counts duplication across the fleet and holds it as a ratchet |
scripts/ci/org-drift-audit.sh |
does any public document contradict the org register? A ratchet that prevents new lies from landing. |
scripts/ci/cicd-hygiene-audit.sh |
is the pipeline AROUND the gates sound — no self-cancelling deploys, no deploy re-running CI's bundle, no cold Next builds? |
scripts/ci/version-currency.mjs |
measures every repo against blessed-versions.json (SSOT of blessed majors + internal-package tags) and holds the gap count as a ratchet |
scripts/ci/ui-defect-audit.mjs |
do any live sites ship WCAG AA contrast failures or misaligned stacks? |
scripts/ci/origin-proof.sh |
runs nightly: stamps every repo's HEAD through OpenTimestamps and asks Software Heritage to snapshot it — third-party proof of WHEN the code existed, since git dates prove nothing. Proofs live in proofs/origin/. |
scripts/ci/bus-factor-audit.sh |
runs weekly: could someone who is not Cato operate each live app? Are its secrets NAMED in a committed env example (ratchet), and with --box: can it roll back, is its database dump fresh, do dumps leave the disk |
scripts/ci/nextauth-origin-audit.mjs |
runs daily: does every next-auth app advertise its own public origin, or is it publishing localhost from behind Caddy? |
scripts/fleet/ |
local upkeep: worktree GC, stranded-work guard |
templates/ci/ |
golden CI workflows + pre-commit — deliberately ONE central copy |
templates/CONTRIBUTING.md |
a pointer only: the terms live in bitbaum/.github, which GitHub shows on every repo's PR form. Do not copy them into a repo |
The reusable auto-merge sweep
Repos adopt it with ~10 lines:
jobs:
sweep:
uses: bitbaum/fleet/.github/workflows/auto-merge-sweep.yml@main
secrets:
token: ${{ secrets.GITHUB_TOKEN }}
All sixteen callers point here directly. The forwarding shim that briefly
lived in bitbaum/dotfiles was removed once the last one migrated — a shim
that forwards nothing is just a second place the sweep appears to live, and
drift between copies is the problem this repo exists to end.
Org drift prevention
Agents read the register and apps.conf. They do not restate the org story. A new claim is a register row or it does not ship.
The register (registers/org.json) holds facts that have no other producer:
public name, legal status, house domain, host, design system. The drift audit
(scripts/ci/org-drift-audit.sh) fails when a public document contradicts it.
Existing violations are baselined; new ones cannot land. The inventory is
generated, and the number is a ratchet.
Live doors come from bitbaum/loki:scripts/hetzner/apps.conf, the SSOT
manifest for self-hosted apps. A README claiming a door that disagrees with
apps.conf is a drift violation.
Rules of the house
- Every audit has a test suite beside it (
test-*.sh,test-*.mjs). Keep it that way — these gate every repo, so a broken checker is a fleet-wide outage. - The duplication ratchet (
scripts/ci/shared-inventory.sh --check) runs on every PR here: counts may fall, may hold, and may never rise.