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

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/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.
S
Description
No description provided
Readme MIT
7.5 MiB
0 Stars 2 Watchers 0 Forks
Languages
JavaScript 57.6%
Shell 32.4%
TypeScript 6.1%
Python 3.7%
CSS 0.2%