* fix(registry-audit): a manifest we could not read is not a repo that does not use it
Every gh failure was swallowed by `catch { continue }`, so a rate-limited,
unauthenticated or offline run reported the same thing as a clean one:
zero adopters. "Nothing depends on this package" is the sentence that gets
a package deleted.
That is not hypothetical. On 2026-09-12 the same blind spot in a grep —
searching for `@bitbaum/<name>` when bip-kit, limitkit and threadkit
install under bare names — produced "imported by nothing" for three
packages with 8, 3 and 3 adopters, and a recommendation to delete them.
This audit had the right answer the whole time.
So the result is three-valued, the way ai-kit/web's search already is:
found, absent, or COULD NOT LOOK.
- gh's stderr is piped rather than inherited, so the thirteen expected
404s stop making a working audit look broken
- a 404 means the manifest is absent; anything else is recorded
- the report says the counts are a floor, not a count, and names what it
could not read
- --emit REFUSES to write registers/packages.json from a partial scan,
because that file is read as the answer to "who uses this"
isMissing and firstLine are exported and tested against the shapes that
matter: 404 vs rate limit vs bad credentials vs DNS failure. 54 passing.
* chore(org-drift): baseline hire/README.md — it records the rename, it is not an instance of it
The line reads: it named the clinic "VitaReBa", replaced by "Vita".
Editing that sentence to remove the retired name would destroy the record
it exists to keep. The audit's own instructions cover this case: baseline
a historical record with a reason.
* Revert the hire/README.md baseline: another session fixed the file instead
Between two CI runs on the same PR, hire#7 removed the retired name from
the README outright. The baseline line I added forty seconds earlier now
describes a violation that no longer exists, and the ratchet correctly
refused it: a baseline full of unreachable entries is a ratchet that
cannot fall.
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/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 |
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/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 |
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/fleetcrown: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.