mirror of
https://github.com/bitbaum/fleet.git
synced 2026-12-04 02:07:30 +01:00
docs/chatkit
7
Commits
| Author | SHA1 | Message | Date | |
|---|---|---|---|---|
|
|
ab0d407c44 |
feat(ci): internal packages get a reconciler, not another report (#120)
* feat(ci): internal packages get a reconciler, not another report
THE HOLE
`version-currency.mjs` judges a dependency by its MAJOR — `blessed-versions
.json` is literally called `majors`. That is the right instrument for `next`
and `react`, where a major is the event, and the wrong one for our own
packages, where we ship features in MINORS.
Measured 2026-09-21, `@bitbaum/ai-kit` was published at 1.10.0 and read:
heidi ^1.10.0 · loki ^1.8.0 · substrata ^1.7.0 · orangecat ^1.6.0
aoz-begleitung, botsmann, evig, hirnli, surf-your-life, truthseeker,
vitareba ^1.4.0
kivvi (packages/ai) ^0.15.0 · sbb-fundbuero ^0.15.0 · datacat (backend) ^0.13.0
Eleven of fourteen behind. TEN of those on major 1 — so the ratchet reported
zero gaps while the fleet spanned seven minor versions of the package that owns
model ids, failover, the three kinds of 429 and now vision routing. A fix
published for everyone reached two repos.
REPORTING IS WHAT ALREADY FAILED
SHARED.md has said "version spread is the metric to watch" and "getting a repo
current is the cheapest work in this file and nobody schedules it" since before
the spread was measured. Both true. Neither moved a version. This file's own
history is explicit that adoption has only ever moved as a side effect of
repairing an outage.
So the reconciler opens the pull request. Everything downstream already exists:
PR → the repo's CI → auto-merge-sweep → CD → box. A green bump ships itself. A
red bump is the useful outcome — it names the repo that cannot take the new
version, which nothing in the fleet tells a package author today.
WHAT IT WILL NOT DO
`@bitbaum/*` only. Auto-bumping someone else's major across the fleet on a
schedule is a different risk and our CI is not a safety net for it; third-party
majors stay with version-currency.mjs and a human.
It never fails a pipeline for being behind. A gate that FIXES what it measures
has nothing to gain from also going red, and a red nobody can clear by hand is
the dead end this fleet's doctrine forbids.
It does not hand-patch a manifest. Every repo installs frozen, so an
API-patched package.json without its lockfile is a PR that fails CI in every
repo every week for a reason unrelated to the bump — and a bot whose PRs are
always red gets muted, taking the real signal with it. The workflow checks the
repo out and lets pnpm write both files.
Capped at 12 PRs per run: a whole fleet going stale at once is likelier a bug
in the predicate than twelve stale repos.
DOCUMENTATION THAT HAD GONE FALSE
Three claims in SHARED.md were still being read as current:
- "kivvi, orangecat and evig already own model REGISTRIES ... which ai-kit
does not model" — it does. src/registry.ts carries contextWindow,
capabilities incl. vision, inputCostPer1M and a live-probed toolProtocol.
- "ai-kit has no streaming API" — completeStream() + ai-kit/sse shipped in
v1.9, and src/stream.ts opens by quoting that very row.
- the transcription row — transcribe() shipped; heidi migrated.
Three reasons repos gave for keeping their own AI layer, all built into the
package and left unclaimed, because the consumers are pinned below the fix.
Corrected in place with what is genuinely still missing (embeddings, a local
provider, image generation, anything not JavaScript) marked deliberate.
The general lesson is recorded there: a reason a repo gave for not adopting
something becomes a FACT in that file the moment it is written, and nothing
re-reads it when the reason expires. Date a reason, or it outlives its subject.
45 self-test checks, no network, no token, no checkout. Both sides pinned: the
same-major drift is caught, a current repo stays silent, and `workspace:*`, a
git pin and `>=1.2 <2` come back untouched — quietly rewriting a range somebody
chose deliberately is the worst bug this script could have.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_014RpRyAd15YvFmQ1c1p1Rsk
* ci: run the reconciler's self-test, like every other audit's
Caught reviewing my own diff. This repo's CI names each audit's self-test
explicitly rather than globbing, which is the right call — a glob quietly
covers a file that does not exist yet and quietly stops covering one that is
renamed. It also means a NEW audit is uncovered until someone adds the line,
and I had not.
That matters more here than for most: this is the one audit that WRITES.
A scheduled run pushes a branch and opens a pull request in up to twelve
repositories, so its predicates are the last ones that should reach a schedule
unproven. They are pure precisely so they can be proved without a network, and
the proof has to actually run.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_014RpRyAd15YvFmQ1c1p1Rsk
* fix(ci): the re-arm gate asked a wider question than its own name
It went red on this PR, correctly as written and wrongly as intended:
internal-currency.yml pushes to main but never re-arms CI
internal-currency.yml re-arms CI but lacks 'actions: write'
That workflow pushes a FEATURE branch, to a DIFFERENT repository, with a PAT.
Three independent reasons it cannot strand this repo's merge queue, which is
the invariant the gate is named for. What it was actually keyed on was
`grep -q 'git push'`.
The gate is not wrong and is not weakened here. It indexed more than it was
trusted to cover — this file's own recurring shape, recorded about
version-currency and the hosted-supabase sweep in the same table — and the
remedy is the one this repo keeps arriving at rather than an exemption:
narrow the predicate to the invariant, and put it where fixtures can reach it.
Satisfying it literally was the alternative and would have been worse: adding
`actions: write` and a `gh workflow run ci.yml` to a workflow that has no
business dispatching fleet's CI, purely so a grep would pass. A gate answered
that way stops meaning anything.
WHAT NOW COUNTS AS PUSHING TO MAIN
git push the CURRENT branch — on a scheduled run
here that is main. COUNTS
git push origin main says so. COUNTS
git push origin HEAD:main same. COUNTS
git push origin "$BRANCH" an explicit non-main ref does not,
UNLESS the file sets that variable to main
That last clause is the doorway, and it is pinned: naming your target $BRANCH
must not buy an exemption while `BRANCH: main` sits ten lines above it. Both
the YAML-env and shell-assignment spellings are fixtures.
A comment is also no longer a push. Without that the gate reported ITSELF —
ci.yml quotes the old predicate in the comment explaining it, and was listed
as a pushing workflow.
MOVED OUT OF ci.yml, because a rule that can only be exercised by editing a
real workflow is a rule nobody re-tests after changing its regex. Same
reasoning that put the verify-contract rules in verify-predicates.sh.
Eleven fixtures, no network, red half written first. And the claim the old
inline comment made — "proven by mutation: deleting any of the three re-arms
turns this red" — re-run against the real readings.yml: deleted, red; restored,
green.
The remaining limit is stated in the script rather than implied: a workflow
pushing to ANOTHER repo's default branch is not covered, because it cannot
strand THIS queue, and a gate for it belongs with whatever owns that queue.
All 27 of this repo's CI self-tests pass locally.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_014RpRyAd15YvFmQ1c1p1Rsk
---------
Co-authored-by: Claude <noreply@anthropic.com>
|
||
|
|
144855dea6 |
chore(aoz): rename the repo to aoz-begleitung, and record why (#94)
* chore(aoz): rename the repo to aoz-begleitung, and record why `bitbaum/aoz-housing` is now `bitbaum/aoz-begleitung`. It was the last public place the product was still called Housing: registers/retired.json retired "AOZ Housing" as the PRODUCT name on 2026-09-10, but the repo kept it, and the repo is PUBLIC — so the retired name sat on the org page, in every clone URL, and in ~55 references across this repo alone. The deploy name `aoz-wohnen` is deliberately NOT renamed with it, and that is the decision, not an omission. It is an infrastructure identifier — systemd unit, /opt path, database — and nothing on the box keys on the repo name; renaming it would touch a live site for no visible gain. Two names now instead of three. The registers are DERIVED and were regenerated, not hand-edited: origin.json (aoz's `stamped` and `swh` drop to null, correctly and temporarily — Software Heritage archived the old origin URL and the OpenTimestamps manifest names the old repo; the nightly origin-proof re-stamps) and packages.json. proofs/origin/*.json are untouched on purpose. They are hash-chained and append-only, so a past proof naming bitbaum/aoz-housing is correct history; rewriting one would both falsify the record and break the chain. retired.json gains the `repo` row, which is what makes the old name traceable — and what makes org-drift-audit.sh start flagging documents that still use it. Three were flagged: this repo's AGENTS.md (fixed here), the renamed repo's README (fixed in aoz-begleitung#243) and its CLAUDE.md, which is BASELINED with a reason rather than fixed: `JWT_ISSUER` is still the literal string `aoz-housing` and must stay so — src/proxy.ts and src/lib/auth/config.ts pass it as the JWT issuer, and changing it invalidates every live session. A live auth value, not a name. Verified across the rename: bitbaum/aoz-housing redirects to the new repo, https://aoz.orangecat.ch still 200, aoz-wohnen-app still active, and the new clone URL resolves to 431bae7 — the same tip as before. Tests green: deploy-freshness 24, deploy-reconciler 34, repo-metadata 17, model-pin, version-currency, product-identity 45, verify-predicates 29. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01NLZ6vs1jsWw2kKbpWTZHf2 * chore(aoz): defer the retired-name row until the docs it polices have landed org-drift-audit.sh reads the org's DEFAULT BRANCHES, not the working tree. So adding the `aoz-housing -> aoz-begleitung` row to retired.json in the same PR that fixes AGENTS.md is a deadlock by construction: the audit judges main, where AGENTS.md is still unfixed, so `--check` fails — and the fix cannot merge while it fails. The row is a POST-condition, not a co-requisite. Fix the documents first, let them reach the default branches, then declare the name retired and let the audit hold the line from there. The row returns in its own PR once this and loki#732 are on main. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01NLZ6vs1jsWw2kKbpWTZHf2 * chore(aoz): the baseline exception belongs with the row that creates it Same sequencing lesson, mirrored. Without the retired-name row nothing flags aoz-begleitung/CLAUDE.md, so a baseline entry for it matches no violation — and org-drift rejects that correctly: "baseline entries with no matching violation — the ratchet fell". A baseline full of entries that match nothing is a ratchet that cannot fall, which the file's own header already says. So the row and its one exception land together, in the PR after this one. 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> |
||
|
|
231ad50706 |
chore: rename FleetCrown to Loki (#65)
The product was renamed on 2026-09-14: bitbaum/loki, loki.orangecat.ch, LOKI_* env keys, loki-* units. This repo referenced the old name in 38 files changed, 119 insertions(+), 119 deletions(-). Email addresses at the old sending domain stay until the new domain is verified in Resend. Claude-Session: https://claude.ai/code/session_016YJVAanfj8keVSXyZnTemh Co-authored-by: Claude Fable 5.1 <noreply@anthropic.com> |
||
|
|
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>
|
||
|
|
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> |
||
|
|
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> |
||
|
|
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> |