mirror of
https://github.com/bitbaum/fleet.git
synced 2026-12-05 06:47:10 +01:00
* feat(fleet): make throwaway repos disposable, and point the audits inward Six scaffolded repos appeared in two days and nobody created them carelessly — FleetCrown provisions one per project and agents scaffold sites to test that path. Together they were 15 of the 26 gaps that were about to turn the version-currency ratchet red against a committed baseline of 0. That is how a ratchet dies: not disputed, drowned. A gate whose number is mostly noise gets muted, and every true finding inside it is muted with it. The house rule (CLAUDE.md, "Clean up the experiment when the experiment is over") already says an experiment is torn down in the session that created it, repo included. This adds the backstop, because that rule covers the session that creates a repo and nothing covers the session that dies, is interrupted, or forgets — which is how all six survived. scripts/local/prune-ephemeral-repos.sh A throwaway repo carries the GitHub topic `fleet-ephemeral` from birth: on the repo, not in a list somebody must remember to update, so a later sweep can find it without recognising the name. The script lists by default, deletes on --delete --yes, and refuses anything unmarked — "it is obviously a test repo" is the reasoning that eventually deletes something real. Deletion is the intended action, per the house rule; --archive is only a holding position. Its selector is pinned in both directions on every fixture and its --yes guard runs through the script itself via an injected repo list, so no assertion is a re-implementation of the thing it checks. Four mutants were each confirmed to turn the test red before this shipped: selector ignores the topic, substring instead of exact match, guard removed, empty result reported silently. scripts/ci/shared-registry-audit.mjs Every audit in this repo sweeps the OTHER repos. None asked whether SHARED.md — the file whose first line is "check this file, if it is here, install it" — matches the dependency graph. It did not: bip-kit had eight adopters and no row. This derives the adopter count from package.json across the org and fails when a package with 2+ adopters has no registry row. It resolves the npm: and github: aliases half the fleet installs under, because a key-only reader reports zero adopters for a package with five, and it counts a row only from the registry TABLE — bip-kit was mentioned in the prose the whole time, and a substring search over the file would have called that covered. It does not judge the content of a row. A gate that guesses at prose gets muted. scripts/ci/blessed-versions.json @bitbaum/ai-kit fell through the seam between `internal_tags` (deleted when it graduated to npm, correctly) and `majors` (never added — it was 0.x that day). It shipped 1.0.0 and nothing noticed, because the comment explaining its absence still described it as a 0.x package. Seven of thirteen consumers sat on 0.x carets while the package was at 1.4.1 and no gate said so. Both it and design-tokens are now tracked, and the stale exemption is rewritten to say what actually happened: a version-tracking exemption must be re-read when the version moves. scripts/ci/org-drift-audit.sh The only org sweep that did not pass --no-archived, so a retired repo still had its README judged against the org register. The baseline is raised in the same commit, as the process requires. It covers real staleness on real repos (causius, diplodoctor, heidi, sbb-fundbuero) plus the ai-kit gaps that were previously unmeasurable — not the six scaffolds, which are already deleted. Known and deliberately not fixed here: version-currency reads only each repo's ROOT package.json, so kivvi/packages/ai (^0.15.0) and datacat/backend (^0.13.0) remain invisible to it. Attributing a gap to repo-vs-path changes the report shape and the fixtures, and folding it in would make this baseline number un-reviewable. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01NLZ6vs1jsWw2kKbpWTZHf2 * fix(shared-inventory): one red ratchet must not hide the other Both reports now run before either ratchet, and each ratchet carries `!cancelled()`. Without it the first failing check ends the job and the second never runs — reporting green by absence, which is worse than not having the gate at all. This was the live case, not a hypothetical: the duplication ratchet was already red (ai-provider-client 17 -> 19) when the registry gate was added below it, so the new gate would have been masked from its first scheduled run. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01NLZ6vs1jsWw2kKbpWTZHf2 --------- Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>