mirror of
https://github.com/bitbaum/fleet.git
synced 2026-12-04 05:30:18 +01:00
main
5
Commits
| Author | SHA1 | Message | Date | |
|---|---|---|---|---|
|
|
755c021f1c |
fix(version-currency): read workspace manifests, not just the root (#59)
The audit read only each repo's root package.json. A monorepo consumer was
therefore invisible — and worse than invisible, it sat in the "current (0 gaps)"
line, which claims more than "not looked at" and was not true.
Measured before this change: kivvi installed @bitbaum/ai-kit in packages/ai at
^0.15.0 and datacat in backend at ^0.13.0, against a published 1.4.1. Neither
appeared in any gap report. Both repos read as current.
Reading workspace manifests raises the measured total from 13 to 40. The 27 new
findings were all already true; nothing regressed today. The largest were never
once reported by this audit:
kivvi apps/web next 14.2.35 < 16, react/react-dom ^18 < 19,
tailwindcss ^3.4.1 < 4, eslint ^8.57 < 10
evig packages/* typescript ^5.3.2 < 6, jest ^29 < 30, @types/node ^20 < 26
datacat backend @bitbaum/ai-kit ^0.13.0 < 1, openai ^5.10.2 < 7
Every probe is evidence-based: a directory is LISTED before a manifest inside
it is fetched, so "no package.json here" is something the listing said rather
than a 404 being read as an answer. Two shapes are handled because the fleet
has two — pnpm workspaces with packages/ and apps/ (kivvi, evig, orangecat,
petvity, fleetcrown), and plain sibling directories with no workspace marker at
all (datacat's frontend/ and backend/). A workspace-only rule would have kept
missing datacat, which is half the reason this exists.
Only repos that actually have those directories pay for the extra listings;
a flat repo issues exactly the same requests as before.
Gaps from a non-root manifest are labelled with their directory, because
"kivvi" and "kivvi packages/ai" are facts about different files and a report
that prints them identically sends someone to edit the wrong one. Root gaps are
unlabelled, so existing output is unchanged.
UNCHECKED still means the ROOT manifest could not be read — that is what "this
repo was measured" has always meant, and a workspace member that fails to load
is not grounds for discarding the repo's real findings. But it is not silent
either: such manifests are listed under PARTIAL, so a repo can never reach
"current (0 gaps)" on the strength of files nobody read.
Baseline raised 13 -> 40 in the same commit, as the process requires.
Claude-Session: https://claude.ai/code/session_01NLZ6vs1jsWw2kKbpWTZHf2
Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
|
||
|
|
c8c0c6077a |
feat(fleet): make throwaway repos disposable, and point the audits inward (#58)
* 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> |
||
|
|
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> |
||
|
|
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> |
||
|
|
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> |