mirror of
https://github.com/bitbaum/fleet.git
synced 2026-12-04 05:30:18 +01:00
docs/chatkit
36
Commits
| Author | SHA1 | Message | Date | |
|---|---|---|---|---|
|
|
d31842925b |
docs(shared): chatkit is the one chat — registry row, the rule, and where each chat stands
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> |
||
|
|
4bc7b51534 |
docs(shared): chat — the standard every chat meets, and a ratchet on composers (#141)
13 chats in 10 repos (2026-09-25), none packaged, each re-learning or missing the same fixes — most often the mic. SHARED.md now names the reference (loki /loki, with its four known gaps), a nine-line checklist where every line cites the repo that already fixed it, and each chat's gaps. AGENTS.md points to it. shared-inventory gains chat-composer (baseline 5 repos / 6 files); a mutated baseline (6 -> 5) makes --check fail on it, so the guard can fail. Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com> |
||
|
|
7ddc4d787f | ci(currency): reconcile registered unscoped npm packages | ||
|
|
896f4f23a2 | fix(registry): refresh package adoption facts (#130) | ||
|
|
8682f97a5b | fix(registry): use published npm versions (#127) | ||
|
|
6cfb50832d |
fix(ci): the cap fired on its first run, and my arithmetic was why (#122)
The reconciler's first live run swept 43 repos, found 13 wanting a bump, and
refused to open any of them because the cap was 12.
The plan was entirely correct. The cap was not.
`MAX_PRS = 12` came from this script's own docblock, which said "Eleven of
fourteen are behind" — arithmetic that contradicted its very next sentence,
since ten on major 1 plus three stranded on 0.x is thirteen. So the guard went
off on a first run it should have passed: the right behaviour for the wrong
reason, and exactly the false positive that teaches someone to raise a cap
without reading the plan under it.
Corrected against the run rather than re-derived by hand:
13 of 14 consumers behind (only heidi current)
10 of those 13 on major 1 — invisible to a major-only audit
3 stranded on 0.x — datacat backend/, kivvi packages/ai/,
sbb-fundbuero
Note the figure that was NOT wrong: "ten of its fourteen consumers sat on
major 1 with an older minor", in SHARED.md and blessed-versions.json, is
correct and stays. Only the script's own count was off, and only by conflating
"behind on major 1" with "behind".
CAP 12 -> 20, and the test now pins it against reality rather than taste: it
must clear the 13 a real run found, and must stay well under the 43 repos
swept so "the whole fleet at once" still refuses. Raising it again requires
another run's output, and the comment says to name which run.
THE RUN ALSO FOUND DRIFT NOBODY HAD MEASURED. `@bitbaum/mail-kit` 0.1.0 ->
0.1.1 in botsmann, evig, kivvi (apps/web/), loki and surf-your-life. I had only
ever counted ai-kit; the `@bitbaum/*` scope caught the rest, which is the
argument for scoping by owner rather than by package.
And the monorepo paths resolved correctly on the first try — datacat backend/,
kivvi packages/ai/ AND kivvi apps/web/ as three separate manifests. That was
the blind spot SHARED.md recorded about this class of audit, and it is closed.
Still report-only. This change does not open the 13 PRs; it makes the next
`go=true` dispatch able to.
All CI self-tests green locally (org-drift and repo-metadata excepted: they
need the gh CLI this sandbox lacks).
Claude-Session: https://claude.ai/code/session_014RpRyAd15YvFmQ1c1p1Rsk
Co-authored-by: Claude <noreply@anthropic.com>
|
||
|
|
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>
|
||
|
|
fbe9cec233 |
feat(ui-audit): render three widths, because one was never a sample (#119)
The fleet's rendered-defect gate swept 1440x1000 and nothing else. That was the hole it could not see through, and it cost substrata a header that was broken at three widths for months while every gate stayed green. substrata shipped a mobile menu whose panel was positioned against a button in the middle of the header, so `right: 0` measured from there put 22rem of panel off the LEFT edge of a 390px screen — the search field and every link label painted where nobody could see them. Contract rules 1-6 all passed on it: the links had boxes, cleared 44px, and marked the current page. They were simply not on the screen, and nothing rendered the screen they were missing from. The same header hid its entire nav between 768 and 1099px, so an iPad got a lone "MENU" in an empty bar. So: 390 / 834 / 1440, overridable with VIEWPORTS. Each is a different branch of this fleet's CSS — below every breakpoint, in the gap where `md:` has fired and `lg:` has not, and the desktop already covered. Two new detectors, and they are contract rules 7 and 8 because the first sweep found them live, not because they sounded right: surf-your-life "Jetzt starten" crosses the right edge by 93px at 834 vitareba "ANMELDEN" crosses by 19px at 834 kivvi "Demo anfragen" crosses by 15px, page scrolls sideways 15px Every one of those is clean at 1440. Rule 3 moves with width too: petvity is clean at 390 and has three sub-44px targets at 834; datacat has three at 390 and seven at 834; botsmann is clean at both and has six at 1440. CROSSING the edge is the defect, not being past it — a closed drawer parked at translateX(-100%) is entirely outside the viewport and is how a drawer waits. Requiring part on screen and part off separates the two with no list of exceptions. The floor is 4px, because the sweep found loki's "Get started" one pixel over, which is rounding and not a clipped button. A panel is closed on arrival, so nothing measures it. DISCLOSE opens every <details> in a nav or header by setting the property — no event fires, so nothing can navigate — and main() clicks up to six button[aria-expanded=false] with a URL guard, because a click in this fleet may do anything. The off-viewport rule gets a WIDER root set than rules 1-4, and that is the finding rather than a convenience: substrata's mobile menu is not inside a <nav> at all. It is a <details> beside one in the header, which is where a menu button usually lives. Scoped to <nav> it would have missed the exact defect it was written for — the fixture caught that before the fleet did. Findings merge across widths and print once, annotated with every width they were seen at, so three renders do not treble a report a human reads. Keys deliberately ignore absolute coordinates: the same crooked stack sits at a different x at each width, and keying on edges printed one decision three times. Also: a site that could not be rendered at ANY width is no longer folded into the closing check mark. This script's own header says a clean report from a detector that never looked is worse than no report at all, and it was doing exactly that. SHARED.md: rules 7 and 8 with the evidence above; the enforcement paragraph now describes what the sweep actually does; and the 2026-08-31 "open gap" note is corrected — s-ink and substrata are in FLEET_SITES now, camille-boulangerie and wild-spirit still are not. Self-tests 20 -> 24, all passing: the off-left panel is caught, the anchored fix stays silent, a closed drawer stays silent, DISCLOSE is pinned separately so a regression there cannot masquerade as a clean fleet, and a malformed VIEWPORTS throws instead of silently skipping. Verified end to end against a live local site and against all 14 fleet sites. Job timeout 20 -> 30 minutes; the three-width sweep ran in ~8. Claude-Session: https://claude.ai/code/session_01NkjZ1jJPhHzxAPvbSSG3wH Co-authored-by: Claude <noreply@anthropic.com> |
||
|
|
dae108c1d6 |
docs(shared): bitbaum/revampit does not redirect, it 404s (#101)
SHARED.md explained a withdrawn measurement by saying `bitbaum/revampit` *redirects* to `bitbaum/evig`. Checked today: that name does not resolve at all — no redirect to follow. The reasoning about the withdrawn duplicate is unchanged; the present-tense claim about the redirect was simply no longer true, and it was found by an agent that trusted it and got a 404. Co-authored-by: Claude Opus 5 (1M context) <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> |
||
|
|
5960621749 |
chore(ratchet): rate-limit 13 → 11, and stop counting a repo we could not read as progress (#84)
The 2026-09-15 cleanup campaign moved seven repos off hand-rolled rate limiters. Verified on each repo's DEFAULT BRANCH, merged only: botsmann #198 merged 08:24Z 2 limiter files → 1 (lib/middleware/rate-limit.ts deleted) evig #488 merged 05:42Z 3 → 2 (src/lib/auth/rate-limiter.ts deleted) petvity #95 merged 09:09Z 1 → 1 (hand-rolled body replaced by limitkit) surf-your-life #70 merged 06:33Z 1 → 1 (same) truthseeker #54 merged 06:46Z 1 → 1 (same) kivvi #96 OPEN (draft, client) — NOT counted aoz-housing #242 OPEN (client) — NOT counted rate-limit 13 → 11 files. Only two files left because five adopters keep a thin local module holding their own limit values and call limitkit from it — the intended shape. The row was lowered by hand rather than by --update, because --update would also have absorbed the logger rise below. logger is LEFT RED at 6 while the fleet sits at 7, deliberately. The extra file is datacat's backend/lib/logger.js, created the same day by datacat #271 ("one logger") — a repo with no matching file now has exactly one, so a consolidation scores as a rise. The offsetting fix exists and is unmerged: kivvi #96 takes kivvi from two loggers to one, which returns the count to 6 on its own. Raising the baseline now would retire the only pressure on it. The counting half was also lying. `gh api .../git/trees` was `|| continue`, so any transient failure dropped a repo silently and that repo contributed zero files — indistinguishable from a repo that deleted its duplicate. One sweep over 43 repos dropped NINE and showed phantom falls in email-send (7 → 4), health-route (13 → 11) and slug-util (4 → 3); none had happened. Now it retries with backoff, names what it could not read, and refuses to judge OR to write a baseline from an incomplete read — the same guard the truncation case already had. Six new self-test cases pin both directions. SHARED.md, next to the limitkit row: - install is `pnpm add limitkit@^0.2.0` (npm, verified 0.2.0), not the `github:` form: under pnpm 11 a git dep's `prepare` build is refused without an allowBuilds entry, so the package installs with no build output and the adopter's CI fails on an import resolving to nothing. heidi is still pinned to the github: form and will hit this next rebuild. - the security finding, because it recurred SEVEN for seven: every hand-rolled limiter keyed its bucket on the FIRST X-Forwarded-For hop. That hop is written by the caller, so a client sending a fresh value per request got a fresh bucket per request and was never limited — the limiter was decorative. The last hop is the one the trusted proxy appended; limitkit's clientIp() reads that. vitareba has no IP-derived limiter at all. botsmann's additionally FAILED OPEN on any database error, switching itself off under exactly the load it existed for. - adopter count from registers/packages.json, not by hand: eight (botsmann, evig, heidi, loki, orangecat, petvity, surf-your-life, truthseeker). The prose claiming orangecat unified "without limitkit" is now contradicted by its own package.json — corrected in place. Also corrected: SHARED.md and README both claimed the ratchet "runs on every PR here". It does not — a PR runs only the network-free self-test; --check runs weekly. A gate described in the wrong place is a gate nobody checks. Claude-Session: https://claude.ai/code/session_012KAn51JHFcTrPeCjZDGXM8 Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com> |
||
|
|
6b364ef561 |
feat(identity): the six things a product owes a reader, and the number that notices (#78)
Every product is supposed to carry problem, solution, mission, vision, roadmap
and changelog. All six already have a producer — a Loki project profile, where
they are attribute keys, the `goals` table and `user_projects.dev_log`, injected
into every dispatch. Nothing published them, nothing rendered them, and nothing
counted them, so the state of it was invisible.
Measured against the live register on 2026-09-15:
35 projects; `description`, its only prose field, null on all 35
7 of 35 have an OrangeCat profile — two of those seven are dead experiments
1 of 35 has a Solon organisation: OrangeCat itself
20 of 33 repos ship none of the six on their own site
loki, orangecat and wild-spirit have no register row at all, so every
register-derived rule already skipped them while they served the internet
The register's null description is the sharpest one: build.ts reads
user_projects.description through usefulDescription(), which correctly nulls the
site factory's "Website at <url>" boilerplate — so a 100% gap presented exactly
like a working filter. That is this repo's own thesis (a producer with no
consumer looks wired) landing on the register itself.
So: the contract in AGENTS.md, and a ratchet that reports it. The audit judges
only mechanical claims — a field is empty, a profile is absent — never whether
prose is good, for the reason repo-metadata-audit.mjs gives. It reports two
things it deliberately does not count: generated experiment litter, and live
projects with no register row, because folding those in would let a register fix
look like progress on identity.
Baseline 31. Weekly, not per-PR: the register is served by Loki on the box, and
a gate that goes red for reasons the author cannot fix is a gate that gets muted.
The judgement is a pure function of the rows, so its test runs per-PR with no
network — 36 assertions including a mutation: flipping one FIELDS row to
published must turn a previously clean product red, or the table is decoration.
Verified by exit status, not output: 31→0, 30→1, no baseline→2, dead register→2.
Publishing a field into the API is one row in FIELDS. That is the whole migration.
SHARED.md also gains the two chat rows this measurement produced: ai-kit has no
streaming API, which is why six repos hand-roll a provider client and two SSE
readers drop frames on chunk boundaries.
Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
|
||
|
|
97da8a75d9 |
feat(ci): the auto-merge caller is a template, and a miswired caller turns hygiene red (#77)
## What the inventory showed Read every bitbaum repo's `.github/workflows/auto-merge.yml` from its default branch via the API (not local checkouts): 33 repos carry one. **32 are already callers of `auto-merge-sweep.yml` (`workflow_call`)**; the 33rd is this repo, which runs the script inline because it *is* the reusable workflow. The ratchet in `shared-inventory.baseline` already reads `automerge-script 1 1`. So the consolidation the SHARED.md row still described as "6 remaining, datacat/petvity/solon convert when clear" finished a while ago — that row was stale, and the caller was documented nowhere in `templates/ci/`. Eight repos across six caller shapes (heidi, ai-kit, sbb-fundbuero, datacat, petvity, solon, evig, orangecat) were checked to actually *run* the reusable job today: each latest Auto-merge run has the nested `sweep / sweep` job checking out `bitbaum/fleet` and executing `Sweep`. ## What it also turned up - **dotfiles** declared `secrets:` twice under the same job. GitHub refused the file: the workflow is listed by its *path*, every run since 2026-09-13 is a zero-job failure, and the repo has merged nothing — silently. Fixed in bitbaum/dotfiles#69. - **substrata** and **camille-boulangerie** re-armed a `publish.yml` neither repo has; the sweep dispatched it after every merge and logged an error. Fixed in bitbaum/substrata#36 and bitbaum/camille-boulangerie#34. ## What this PR does (all additive) - `templates/ci/auto-merge.yml` — the caller, with `CHANGEME` lines, so the next repo copies a template instead of a neighbour. - `templates/ci/README.md` — "Auto-merge: call it, never copy it": the snippet, an inputs table with what each wrong value looks like, and the findings above. - `scripts/ci/cicd-hygiene-audit.sh` — a fourth ratcheted check, `automerge-miswired`: a duplicate mapping key, a job that neither calls the reusable workflow nor runs the canonical script, or an input naming a workflow file the repo does not have. Baseline `0` (the three findings have PRs open; see below). - `scripts/ci/test-cicd-hygiene-audit.sh` — six new mutation cases, both directions: fires on the dotfiles shape, the substrata shape and a hand-rolled job; stays quiet on a sound caller (including two `- cron:` list items, which a naive key counter would flag), on fleet's own inline run, and on a repo with no caller at all. 16/16 pass. Run over the real 33-repo inventory it reports exactly the three known cases and nothing else. - `SHARED.md` — the row now says 1, and why. If `--check` runs before the three repo PRs merge it will report `0 → 3`; they are green one-liners and should be in before Monday's scheduled run. Claude-Session: https://claude.ai/code/session_012KAn51JHFcTrPeCjZDGXM8 Co-authored-by: Claude Fable 5.1 <noreply@anthropic.com> |
||
|
|
cae2df179d |
chore(ratchet): raise health-route 12 → 13 and ai-provider-client 17 → 19, investigated (#73)
`shared-inventory.sh --check` has been red since the rises landed through repos the gate cannot reach. The first hypothesis — that the FleetCrown → Loki rename double-counted a repo — is wrong: GitHub renames in place, and the repo list holds `loki` alone (no `fleetcrown`). What actually rose, dated by first commit on each path: - health-route 12 → 13: substrata added app/api/health/route.ts on 2026-09-14 11:23 UTC (heidi's, 2026-09-10, was the 12th and already in the baseline). Its assertion is the research meter; per SHARED.md the health-route envelope is deliberately not extracted, so raised, not absorbed. - ai-provider-client 17 → 19: both files in heidi, after the 2026-09-11 baseline — lib/auth/provider.ts (an OIDC config) and lib/domain/model/providers.ts (a BYOK vendor allowlist that uses ai-kit, which heidi installs). Neither is a hand-rolled caller; the path pattern cannot tell an auth provider from an AI one. Raised knowingly and said so in SHARED.md rather than narrowing the pattern in the same PR. --check is green again: "duplication did not increase (inspected 44 repos)". Claude-Session: https://claude.ai/code/session_012KAn51JHFcTrPeCjZDGXM8 Co-authored-by: Claude Fable 5.1 <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> |
||
|
|
f84c5392f4 |
docs(shared): register bip-kit and design-tokens, and measure the coupling risk (#57)
Two packages were in real fleet-wide use and absent from the registry that exists to prevent exactly that. bip-kit has eight adopters, which makes it the third-most-used package here; it appeared in this file only as a *source* of slug-helper duplication. design-tokens appeared not at all. The instruction at the top of the file is only as true as the table under it. design-tokens is also a deliberate exception to "each app owns its design tokens", so the must-NOT-centralize bullet now says so and names the line: ownership, not taste. OrangeCat/FleetCrown/Solon are one company's products and are supposed to look alike; a client's site is not and must never install it. Adopter counts are read from origin/main after fetching. The first pass, read from the working checkouts in ~/dev, was wrong in both directions, and the second pass, read from unfetched remote-tracking refs, was wrong again in a way that looked authoritative — both traps are now written down next to the number they corrupted. Also answers the question that prompted this: if a shared package breaks, does it break every app? No. Consumers pin through committed lockfiles and install --frozen-lockfile, so a publish reaches nobody by itself and the blast radius of a bad version is the one repo that bumps first. The real problem is the mirror image: seven of ai-kit's thirteen consumers sit on 0.x carets, so a fix shipped today reaches six of thirteen, and blessed-versions.json measures none of it — ai-kit fell through the seam between `internal_tags` (deleted on graduation to npm) and `majors` (never added, because it was 0.x that day and is 1.4.1 now). Two findings are reported but NOT fixed here, because each is a decision rather than an edit: - orangecat hand-copies design-tokens values under a comment naming the package as "the SSOT" while not depending on it — the precise defect the package was extracted to end, inside the product it is named after. - version-currency reads only each repo's root package.json, so datacat (backend/) and kivvi (packages/ai/) are invisible to the currency ratchet. Docs only; no script or config touched. Claude-Session: https://claude.ai/code/session_01NLZ6vs1jsWw2kKbpWTZHf2 Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com> |
||
|
|
959d13c760 |
docs(shared): where listkit does NOT fit, and why that is worth writing down (#55)
The listkit line named hirnli as "next adopter" — hirnli adopted the following day — and said nothing about where the package does not belong, which is the part that cost two repeat surveys. Records both declines with their reasons. datacat: escapeLikePattern is byte-identical to listkit's escapeLike on every adversarial input tried, so adopting would add a dependency in order to delete three correct, tested lines. orangecat /discover: four of its eight params have no facet representation — country, city and postal are free text a reader types, and radius_km is a distance around them, where `range` is a min/max over a row's own numeric field. Adopting would leave two codecs writing one URLSearchParams in one effect, split by which half owns which param. The rule both produced, stated once: a shared package earns a dependency when it removes a decision you would otherwise keep re-making, not when it merely matches code you already have right. A partial adoption that leaves a seam through one function is the sitekit failure in miniature. And a boundary worth naming before someone crosses it: listkit's core sentinel is "empty selection filters nothing", which is exactly the wrong default for a visibility gate. orangecat's public-surface predicates serve the public internet through the admin client with RLS bypassed; an in-memory array filter has no business there. Claude-Session: https://claude.ai/code/session_01TE8oRvuwExm6GXkQVW3Jf9 Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com> |
||
|
|
9f5e3bbd40 |
docs(shared): register listkit, and give list-query a ratchet row (#52)
Filtering, sorting, searching and paging were the concern this file did not track, and they are past the rule of three several times over. A survey of twelve repos on 2026-09-11 found twelve incompatible filter-state shapes with no two alike, ~34 hand-built URL builders, ~25 copies of toggle-a-value-in-a-set in two encodings, ~11 debounces at five delays, ~11 copies of Math.ceil(total / pageSize), and four of the seven repos that put a reader's text into a SQL LIKE doing it without escaping % or _. Two of the toggle copies are character-for-character identical in repos that share no code. One repo writes that three-line body eight times for eight facets plus eleven more for its flags. Four live bugs sit among the URL builders: a preset that rebuilt the params from scratch and wiped the reader's search, a date range that did not clear page and stranded them past the end, a builder that preserved three params by name so every later param had to be remembered in six template strings, and a debounced box using push rather than replace, so the back button walked through every spelling of the word. listkit ships the decisions and none of the markup. The registry row says so, and says why: nine token vocabularies and six chip treatments among those same repos, several different on purpose — a monochrome marketplace fork, a Bitcoin-orange rule, the one RTL-aware surface in the fleet. This file's own navigation section is the post-mortem of centralizing markup, and the answer it reaches is the one taken here. FleetCrown is the proving consumer as of today, because a package with zero adopters removes zero duplication. The adoption line names the next target by the same rule the others use: whichever repo's hand-rolled filter bar is touched next, with hirnli the richest — eight toggle copies, eleven flag toggles, and two live defects the package's own tests would have caught. The ratchet row is scoped to the HEADLESS half — hooks and lib files, never components. A row that counted filter components would score deliberate divergence as duplication, which is exactly the mistake documented above it. Baseline set in this commit: list-query 2 5. Claude-Session: https://claude.ai/code/session_018Z7YRpgsEtNjRqr1usHMQY Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com> |
||
|
|
bf1cd53049 |
docs(shared): ai-kit/web — where an agent gets eyes (#50)
* ci(auto-merge): fleet's own sweep should use FLEET_PAT too Every other repo calls the reusable workflow, whose token line is `secrets.token || github.token` — so all 30 of them pick up FLEET_PAT now that the org secret exists. This repo runs the sweep inline, because it IS the reusable workflow, and so it was the one repo still hardcoded to secrets.GITHUB_TOKEN. Left alone, fleet would be the only repo whose queue still drains at the throttled schedule rather than at CI speed — the exact asymmetry that made the copies worth deleting in the first place. Same fallback shape as the callers, so nothing changes if the secret is ever removed. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01UvjGNAS9CMfEGNW26tUR4P * docs(shared): ai-kit/web — where an agent gets eyes Same-day row for an extraction, per this file's own rule. `ai-kit/web` shipped in v0.16.0 and is already the reason OrangeCat's Cat can look something up instead of answering from its weights. The row says more than "it does search" because the three things that are easy to get wrong are not the search: - a backend CHAIN, for the reason the model chain exists — one pinned backend is a scheduled outage; - a THREE-valued result, so a dead backend is never reported as "there is nothing about that on the internet"; - fetching a url the MODEL chose, which is a different security problem from fetching one a user typed — there is no human to blame for the address, and any page the agent reads can hand it a link to the metadata service. And the reason not to hand-roll it at all: search without citation binding makes hallucination WORSE, because the invented sentence now arrives surrounded by real ones. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_014nayuDvAPd5BYkSfsVPHHA --------- Co-authored-by: Claude Opus 5 <noreply@anthropic.com> |
||
|
|
9d572b6abf |
feat(ci): check that a repo's GitHub metadata agrees with the register (#47)
A repository page is the first thing anyone opens and the surface furthest from the code, so it drifts first and silently. Measured 2026-09-11 across 44 live repos: 13 registered apps had NO homepage while the register knew their host, evig's pointed at revamp-it.ch (not the app), 4 had no description, and one described a product by a name its own brand file had retired. None of that breaks anything, which is why it sat there. The register already knows the canonical host of every deployed app; nothing compared the two. All of it is fixed, including the four site-factory scaffolds that appeared during the sweep. Audit now: 49 repos, 25 registered, clean. CHECKS ONLY THE MECHANICAL CLAIMS — a registered app's homepage is its canonical host; a live repo has a description. Deliberately NOT whether a name or description is right: the live <title> is not a reliable product name (a multi-tenant app serves the TENANT's title; some sites put the brand after a pipe), and a gate that guesses at prose gets muted. Retirements are enforced precisely by org-drift-audit.sh against registers/retired.json. Exceptions are decisions: repo-metadata.allow carries a reason per line. One entry — hirnli, whose homepage is the PLATFORM's own host while its register row holds the tenant's, because listing both would make sync-infra emit the host twice and fail `caddy validate`. Verified: 17 checks, no network. The judgement is a pure function of (repos, register, allow) so the fixtures are the shapes that were live today. Both directions pinned: a clean fleet passes, each defect fails AND is named, an archived repo is exempt, and a homepage exception does not excuse a missing description. The first version of the test printed the live audit and asserted nothing, because importing the module executed its top-level CLI. The CLI now sits behind an is-main guard — a test that runs the real thing and checks nothing is the same shape as a gate that cannot go red. Claude-Session: https://claude.ai/code/session_01HVudRzEmLqLHvGNqFSpJq6 Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com> |
||
|
|
2a7319f898 |
feat(org-drift): find documents using a name or host that has been replaced (#43)
* feat(org-drift): find documents using a name or host that has been replaced A rename that is only remembered is a rename that drifts. aoz-wohnen.orangecat.ch, revampit.orangecat.ch, sbb.orangecat.ch and sink.orangecat.ch all answer 200 — every one is a redirect. So a document naming any of them looks perfectly healthy from the outside, and nothing ever reports it. All four were found in 2026-09 by tripping over them, including on the public studio page, which named a real transport company on a demo that has no connection to it. That is the same failure this audit already exists for — a document saying something that is no longer true — so it is the same sweep, not a second script with its own copy of the exemption and baseline logic. THE GAP WAS A REGISTER, NOT A SCRIPT Nothing recorded that a name had been replaced, so no check could have found a document still using it. registers/retired.json is that record: kind, from, to, since, why, and how the retirement was VERIFIED rather than who asserted it. Adding a retirement is a ROW; the script does not change. Nine entries to start, each confirmed rather than remembered — the four hosts by following them with curl, "AOZ Housing" against the app's own brand.ts and live <title>, "SBB Fundbüro" against the title it actually ships, and the two repo renames against the commits that made them. Findings say what to use instead and since when. "This document is wrong" costs a reader a search; "say X instead, since 2026-09-10" costs them an edit. THE RATCHET 51 files across 7 repos already use a retired form. Baselined with a reason, not fixed here: one PR touching 51 files in 7 repos would be a worse change than the drift it removes. Most are one host (revampit). The sbb-fundbuero ones are worth doing first — a repo still calling itself "SBB Fundbüro" while the site it ships is titled "Nordbahn Fundbüro". A TEST THAT DAMAGED THE ARTIFACT IT CHECKED Found while running the suite: the vacuous-scan case ran the real script without overriding INVENTORY, so a test whose entire point is "scan nothing" overwrote the committed 41-repo inventory with "Scanned 0 repos, found 0 violation(s)" — the tracked record of the fleet's drift, replaced by the output of a deliberately empty run, every time anyone ran the tests. Redirected to a temp file. Same shape as the sed range in #42: a check satisfied just as well by a broken reader as by a clean file. Verified: 49 passed, 0 failed (13 new). The new cases pin the mechanism, not live data — a fixture register, so retiring something tomorrow does not break the suite. Regex metacharacters must be escaped (an unescaped old.example.ch also matches oldXexampleYch), a name containing '&' must survive the sed replacement, a clean line must yield no hint, and the register that RECORDS a retirement must be exempt from it or the ratchet can never reach zero. Note: this audit is already red on main for pre-existing org-claim violations ("bitbaum AG", incorporation language in four fleetcrown docs). Confirmed by running the committed version against the same tree; not introduced here, and not baselined here either — that is a decision about incorporation wording, not a drift fix. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01HVudRzEmLqLHvGNqFSpJq6 * fix(org-drift): baseline the file the API scan found and the local sweep missed CI caught sbb-fundbuero/CLAUDE.md, which my local USE_LOCAL sweep did not. That asymmetry is the point of the audit's default: USE_LOCAL greps local checkouts, which go stale, while the real scan reads the org's default branches. A ratchet that sees less than production prevents less than it claims. Also corrects the previous commit message. It said this audit was "already red on main for pre-existing org-claim violations". It is NOT — that came from the same misleading local sweep. main's baseline holds three entries and CI was green before this branch; the only genuinely new finding was the one file above. The fleetcrown docs mentioning incorporation appear in a local grep because it walks every docs/*.md, while the API scan reads a narrower set of paths. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01HVudRzEmLqLHvGNqFSpJq6 * fix(org-drift): baseline from the API scan, not the local sweep; list the audit in SHARED.md The baseline is now generated by the instrument that judges it. The previous commit baselined 51 files from a USE_LOCAL=1 sweep, and CI correctly rejected 44 of them as entries matching nothing production can see — the local sweep greps every docs/*.md in stale checkouts, while the real scan reads a narrower set of paths from the org's default branches. A baseline full of unreachable entries is a ratchet that cannot fall. Seven real entries remain, in four other repos, each an agent-facing file (CLAUDE.md / AGENTS.md / README.md) — the worst place for a stale address. The inventory is committed as the API scan regenerated it: 46 repos, 10 violations. Also lists org-drift-audit.sh in SHARED.md's central-audits table. It was missing, which is exactly why a duplicate of it was nearly written today — the table exists so that "is there already a checker for this?" has an answer. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01HVudRzEmLqLHvGNqFSpJq6 --------- Co-authored-by: Claude Opus 5 <noreply@anthropic.com> |
||
|
|
e86a766ce5 |
docs(shared): a sed comment-range deletes the evidence it was meant to read (#42)
Third trap alongside the two #41 recorded. This one is mine, found while gating the site-template's palette. `sed '/\/\*/,/\*\//d'` looks like "strip C comments". A sed range never matches its end address on the START line, so a single-line `/* ... */` opens a range that searches for the closing `*/` from the next line onward — running to the NEXT comment and deleting every declaration in between. The gate that used it checked globals.css for a forbidden colour. Run against the very file that DECLARED that colour, it passed: the declaration sat in a primitives block the stripper had eaten. It had only ever worked on files that did not contain what it was looking for, which is the definition of a check nobody can rely on. The general form is the part worth keeping: an absence-shaped check is satisfied just as well by a broken reader as by a clean file. Comment-awareness is still required — a gate that cannot tolerate its own rule being written down forces the explanation to be deleted — so strip comments correctly, and give the stripper its own two-way self-check. Claude-Session: https://claude.ai/code/session_01G2LBioUzJP4oBL9LeH9qAe Co-authored-by: Claude Opus 5 <noreply@anthropic.com> |
||
|
|
f1ffd057df |
docs(shared): register the register-vs-reality drift check (#41)
This table is where you look before writing a fleet-wide checker, so a drift
check that exists but is not listed here is a drift check someone writes twice.
check-register-reality.sh lives in fleetcrown rather than here, and that is
deliberate: it reads apps.conf (fleetcrown's SSOT) and needs SSH to bitbaum, so
it can run from neither this repo nor CI. The daily fleet-register-check drives
it. Listed anyway, because discoverability is the point of the table.
Also records the two traps it encodes, both measured rather than argued:
- a daily check must run the JUDGE from the same commit as the data.
fleet-register-check read the register from origin/main — with a comment
explaining that ~15 sessions make the working tree a scratchpad — then ran
the checking script out of that scratchpad, so an old judge called three
good rows of a new register "drift".
- `printf '%s\n' "$x" | grep -q ...` under `set -o pipefail` reports FAILURE
on a SUCCESSFUL match. 20/20 false failures on a large payload, 0/20 on a
small one, which is why it looks like a flaky gate rather than a wrong one.
Here-strings are not pipelines and have nothing to signal.
Claude-Session: https://claude.ai/code/session_01HVudRzEmLqLHvGNqFSpJq6
Co-authored-by: Claude Opus 5 <noreply@anthropic.com>
|
||
|
|
82cd576fb5 |
feat(ci): guard every next-auth app's advertised origin, daily (#40)
Behind Caddy a Next.js app never sees its own public URL, so next-auth builds sign-in and callback URLs from the INTERNAL origin unless NEXTAUTH_URL (v4) or AUTH_URL (v5) is pinned in the box env. AUTH_TRUST_HOST=true does NOT cover this path, which is exactly what makes a broken app look configured. Nothing 500s when it happens. The site renders, and only Google sign-in and sign-out are impossible. petvity shipped this, fixed it in petvity#39 around 2026-08-14 with a per-app assertion supposedly added — and on 2026-09-10 was serving https://localhost:4013/api/auth/callback/google again. The regression stated itself in public JSON for weeks and nothing read it. next-auth publishes GET /api/auth/providers unauthenticated, and every entry carries the app's configured origin, so the detector needs no secret, no login and no box access: fetch it per site, fail if any signinUrl/callbackUrl origin is not the origin that served the JSON. 404 is a site without next-auth and SKIPs; 5xx FAILs, because an auth stack that cannot answer is broken too and reading "no data" as "no problem" is how this check would certify a dead auth. Sites come from fleetcrown's footer, the same SSOT ui-defect-audit.mjs reads, so this adds no second app list and no exclusion list — a repo that is not a deployment is absent by construction. Self-tested from captured payloads, both sides pinned: the real localhost regression is caught, the real repaired payload stays silent. The self-test runs in this repo's CI and again before each scheduled sweep, because a detector that has quietly stopped detecting prints a ✓ over a broken fleet. Claude-Session: https://claude.ai/code/session_01WqKqMnHQHSmkGFfc5t7Rxn Co-authored-by: Claude Opus 5 <noreply@anthropic.com> |
||
|
|
e96fcb5495 |
chore(ratchet): raise two counts on purpose, lock one win in (#26)
The weekly run was green on 2026-08-31 and red on 2026-09-07. Three changes, none of which could have been blocked where they happened: automerge-script 6 -> 5 a win — locked in so it cannot silently regress health-route 9 -> 11 raised knowingly slug-util 2 -> 3 raised knowingly **health-route.** The row claimed "identical shape in 8 repos; a 20-line contract". The shape is identical; the content is not. vitareba's health route asserts the app's own role can still read its own tables — written because a migration once created a table the app could not read — while orangecat's checks Supabase reachability. Extracting the envelope leaves every app still writing the only part that differs. Raised rather than absorbed. **slug-util.** Not one function copied three times: three functions that disagreed, two of them broken, found by reading them rather than counting them. evig declares eight locales and deleted seven — 'Café Genève' became 'caf-gen-ve', and a Russian or Japanese title produced the EMPTY string, which under a unique constraint means the second such record cannot save at all. hirnli transliterated a hand-written list missing ç, so 'Association Française' became 'association-fran-aise' in a directory of Swiss foundations. Both are fixed in place today (evig 32 tests, hirnli 26), which is why this PR raises the count instead of reducing it: the bug was worth fixing now, and consolidating into sitekit needs a publish plus a minimumReleaseAgeExclude entry in each consumer — a chain not worth delaying two live fixes for. Recorded in SHARED.md as the intended end state rather than left as an unexplained number. Also documents what this ratchet structurally cannot do: it runs here and measures 38 other repos, so it can name a rise and never block one. Both rises arrived through repos the gate cannot reach. A detector without an owner is the muting SHARED.md exists to prevent. Verified: `--check` exits 0 across 38 repos. Claude-Session: https://claude.ai/code/session_01G2LBioUzJP4oBL9LeH9qAe Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com> |
||
|
|
a7fb23c97f |
chore(inventory): message threads on the ratchet, and the count corrects the claim (#24)
Adds a `messaging-threads` concern to shared-inventory.sh, with a baseline
entry measured rather than asserted:
messaging-threads 2 repos 3 files orangecat(2) vitareba(1)
The intuition that prompted this was "many of our apps have messaging, treat it
like the other fleet-wide duplication". Measuring says otherwise: only two repos
carry thread logic at all. Recorded as such in SHARED.md, because a row that
overstates its own case is worth less than no row.
It still earns its place. The duplicate that existed was not merely a second
copy, it was wrong in three ways that are invisible below three participants —
read receipts reporting READ when any ONE recipient had caught up, a reader
counted outside their own visibility window, and an optimistic bubble sharing
no identity with its stored row, so realtime winning the race rendered the
message twice. threadkit (506 lines, already published, one adopter) made all
three unrepresentable; orangecat converted as the proving consumer.
`--check` still reports two rises, and they are DELIBERATELY not absorbed here:
✗ health-route: 9 → 11 files
✗ slug-util: 2 → 3 files
Both predate this change and neither is mine. Running --update would have
locked all three in under a messaging PR, which is precisely how an increase
stops being reviewed — the failure mode this ratchet exists to prevent. They
need their own look.
test-shared-inventory.sh: 7 passed, including that every baseline concern still
exists in the script.
Claude-Session: https://claude.ai/code/session_01G2LBioUzJP4oBL9LeH9qAe
Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
|
||
|
|
ebef32a482 |
feat(email): fleet email canary + mail-kit registered as THE email layer (#23)
email-canary.yml: daily key+domain probe against the shared Resend account, Mondays one REAL delivery to a filtered inbox, Telegram alert on any failure — the automation that ends the "dead mail cred rots for months" class (Brevo, found 2026-09-05). SHARED.md registers @bitbaum/mail-kit (npm, zero deps, never-throwing sendMail) as the one email layer replacing ~12 bespoke implementations; STACK.md email row updated to match reality (the 2026-09-02 "Listmonk primary" review predates discovering the dead SMTP cred) and the AI row closes the git-pin straggler note (zero remain). 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> |
||
|
|
bc7b503830 |
docs: sync docs with actual stack (#20)
* docs: sync docs with actual stack STACK.md: - AI row: git-tag pins are not fully retired — surf-your-life still installs ai-kit as github:bitbaum/ai-kit#v0.6.2 and kivvi's @kivvi/ai pins #v0.5.0; named as stragglers, and the ledger now says '7 npm consumers'. - pnpm row: kivvi (already-pnpm before the sweep) still pins pnpm@9. SHARED.md: - orangecat ADR-0002 is Accepted (2026-08-25), no longer 'still Proposed'; rate-limiting row updated — orangecat unified in-repo, not via limitkit. - Registry install commands: pnpm, current pins (ai-kit from npm, @fleet/ai-forms#v0.1.2, sitekit#v0.3.0, limitkit#v0.2.0). - ai-kit adopters: now fleetcrown, aoz-housing, truthseeker, botsmann, evig, orangecat, hirnli from npm (+ surf-your-life/kivvi via git tag); evig uses tryChain, kivvi wraps createHealthTracker; ai-forms adopters + kivvi. - threadkit has its first adopter: vitareba (lib/domain/messages.ts). - sitekit 'Next: camille (PR open), then s-ink' removed — camille is merged and live, s-ink deliberately not adopted (both stated just above). - auto-merge-sweep row: canonical home is this repo, not dotfiles (dotfiles dropped its copy, ai-forms converted); datacat/petvity/solon remain. templates/ci/README.md: - adoption bullets note the fleet is all-pnpm since 2026-09-04; - sweep aside made historical (22 repos/8 variants, now canonical here). Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WqKqMnHQHSmkGFfc5t7Rxn * docs(shared): install commands match how consumers actually declare the deps ai-forms' package name is 'ai-forms'; every consumer carries it as the manifest alias "@fleet/ai-forms": "github:bitbaum/ai-forms#v0.1.2" — show that line, not a CLI alias pnpm cannot parse for git specs. sitekit/limitkit use their real names, so plain 'pnpm add github:...#tag' is correct. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> 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> |
||
|
|
3abb6eeeb8 |
feat(ci): a scheduled source-level nav-contract audit, closing the authed-surface gap (#11)
* feat(ci): a repo-level check for the nav defect the rendered audit can't see ui-defect-audit.mjs renders each site's PUBLIC entry page — it cannot reach a sidebar behind a login, which is exactly where the original bug in this sweep lived. This is the other half: a source sweep run from this repo against every default branch, the same pattern hosted-supabase-audit.sh already uses (central, not a copy per repo). THE RULE IS REPO-LEVEL, DELIBERATELY. A first per-FILE draft — "a file that renders links and computes an active state must contain aria-current" — produced 19 findings of which roughly a quarter were wrong, because the active state and the announcement legitimately live in different files: evig spreads a helper that supplies the attribute, fleetcrown's parent passes `current` to a child that announces it, a tab list correctly uses aria-selected. A gate wrong a quarter of the time gets ignored. The repo- level assertion — somewhere in this repo, aria-current exists at all — has no false positive in that class, at the cost of not pinpointing the file. The rendered audit's job is the per-surface precision a live DOM can give; this gate's job is coverage no renderer can reach. Proven live, not just by fixture: on the first real run it named botsmann, datacat, petvity, printcraft, s-ink and surf-your-life by their genuine defect (checked against each repo's origin/main before any of them were fixed), and cleared to green as each was fixed and merged during this same session. check:test-nav-contract-audit.sh, the self-test that runs before the sweep, caught a second real bug in the process: SKIP_FILE's `tabs?\.(tsx|jsx)$` was unanchored, so it matched any file merely ENDING in "Tabs.tsx" as a substring — evig's AnalyseTabs.tsx included — and skipped it silently. All four SKIP_FILE alternatives now anchor to `(^|/)`, matching a whole basename rather than a suffix. The anchor fix surfaced 7 more nav files across the fleet that a prior sweep had silently excluded; re-run after fixing, the fleet is still fully green — the files were skipped, not violating. Two things a fresh reader would ask, answered in the script itself: - Two directories are not two repos. fleetcrown/fleetcrown-scripts and hirnli/revamp-info are each one repo cloned twice; the loop dedupes by origin URL so a finding is not doubled or a merge missed on one clone. - `set -e` traps: `cmd && continue` is fatal when cmd's grep does not match, and `git symbolic-ref -q` on a clone with no default-branch tracking is the same trap. Every such probe here is an explicit `if`, not a `&&`. Baseline file (nav-contract.baseline) ships empty with the ratchet's own convention: a repo with a genuine no-current-page nav (a single-page tool whose nav is anchors) gets a line with a reason, decided in a PR, not by silently going green. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01XeELB8b3N4JrT2asYL9WvE * feat(ci): schedule the nav-contract audit — a script alone enforces nothing nav-contract-audit.sh existed in the previous commit and nothing called it. A check nothing runs is a suggestion, not a gate — the exact failure mode SHARED.md already names for the accent-ink and duplication checks. Mirrors hosted-supabase.yml's established pattern for this shape of audit exactly: self-test before the sweep, shallow-clone the fleet with --depth 1 --filter=blob:none (this repo has no package.json on purpose), FLEET_READ_TOKEN for private repos with the gap stated rather than hidden, weekly schedule plus workflow_dispatch, findings into the job summary where a human actually looks. Proven end-to-end against a real shallow clone, not just asserted: `gh repo clone --depth 1 --filter=blob:none` sets refs/remotes/origin/HEAD correctly (verified — some shallow-clone paths do not), and the audit script reads it and runs clean against the result. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01XeELB8b3N4JrT2asYL9WvE * docs(shared): record the nav-contract gate landing, and the discovery gap The nav contract section described a two-gate plan (rendered audit + a couple of per-repo checks) as the working state. As of this session there is a third gate that actually shipped and ran: nav-contract-audit.sh, weekly, central, self-tested, found and fixed six real repos on its first sweep. Recorded with the date and the six names, not just "it exists." Also records a finding the sweep surfaced but should not silently fix: s-ink, substrata, camille-boulangerie and wild-spirit are all outside FLEET_SITES, the hand-maintained editorial list that drives the rendered audit's site discovery. Three of the four are actually on orangecat.ch subdomains and would match the discovery regex if linked — only s-ink is genuinely off-pattern (sinktattoo.com). Adding entries to FLEET_SITES is a product/content decision ("each site's own words," per its own doc comment), not a mechanical nav fix, so it is written down here for a human rather than edited as a side effect of this sweep. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01XeELB8b3N4JrT2asYL9WvE --------- Co-authored-by: Mao Nakamoto <41178744+maonakamoto@users.noreply.github.com> Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com> |
||
|
|
8dde0f1db5 |
feat(ci): the UI audit can now see what nav FORGOT, not just what it wrote (#9)
* feat(ci): the UI audit can now see what nav FORGOT, not just what it wrote
The audit's two detectors both look for something someone put on the page: ink
below the contrast floor, rows that start at different x. An entire class of
navigation defect is invisible to that shape, because each instance is
something someone left out.
A fleet-wide nav audit across 20 repos found three, repeatedly:
1. A current page no link announces. Every repo styles the active item;
nine of them never set aria-current, and four more set it on every
surface but one. The highlight exists only for people who can see it.
2. Nav targets below 44px. That is this fleet's own floor, not the WCAG 2.2
AA minimum of 24px — fleetcrown enforces it centrally, kivvi and
wild-spirit state it explicitly — so the message says "out of step with
the fleet", not "non-compliant".
3. A label that looks like a control but is not: the orangecat sidebar
shipped an <h3> beside a chevron-only button carrying the whole onClick.
Visitors aimed at the word and nothing happened.
Rendered, not grepped, and that is the point. This fleet holds Next apps, CSS
modules, Tailwind, and one hand-rolled static generator with no framework at
all. No source-level lint spans that; the DOM does.
Each detector refuses to fire where the absence is CORRECT:
- aria-current is only demanded when a link in that nav really does point at
the page being rendered. A footer of outbound links has no current page to
mark, and flagging it would fire on every site that has one.
- A dead label is only claimed when the heading is outside any control AND a
sibling control has no text of its own. That pairing is the bug; a heading
next to a labelled button is not.
- Nested controls are measured by their parent, so one small icon inside a
large row is not reported as the row.
Small targets print one line per distinct SIZE rather than per element: a nav
of twelve identical 32px links is one decision, and twelve lines of it buries
everything else.
Seven new self-tests, both sides pinned as the existing ones are — 19/19 pass.
The failing side of each is the real bug from a real repo; the passing side is
the corrected markup.
Lands while the workflow still defaults to --warn-only, so the findings surface
in the job summary before anything fails on them.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01XeELB8b3N4JrT2asYL9WvE
* docs(shared): the navigation contract, and why nav markup stays per-app
Records the outcome of the 2026-08-29 fleet nav audit (20 repos, ~13,300 lines
of navigation, nothing shared between them).
Adds navigation chrome to "What must NOT be centralized", with the evidence
rather than the opinion: sitekit is the one shared renderer, it serves 2 of 20
repos, and it shipped ~28px targets and no focus style to BOTH consumers —
unfixable downstream, because a consumer cannot patch markup it does not own.
Its flat {path,label} model also cannot express solon's mega-menu or
reparaturbonus-zh's drawer, which is why every repo with real nav complexity
reinvented its own instead of adopting it.
Adds the six-rule contract that IS shareable, and says where each rule is
enforced — the rendered central audit for public pages, a repo-local check for
anything behind a login, because those cover disjoint surfaces and neither
substitutes for the other.
Records one reversal: the audit first recommended putting nav duplication on
the ratchet. Writing the "do not centralize" section is what showed the two
cannot both be right — the ratchet counts concerns that should converge on ONE
implementation, and every repo is SUPPOSED to have its own nav config, so the
number would score the correct outcome as duplication.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01XeELB8b3N4JrT2asYL9WvE
---------
Co-authored-by: Mao Nakamoto <41178744+maonakamoto@users.noreply.github.com>
Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
|
||
|
|
bd47f4e92f |
docs(shared): hirnli adopted; hirnli and "revamp-info" are one repo, not two (#8)
hirnli converted to ai-kit's tryChain/createHealthTracker (same fix shape as botsmann), closing its silent-outage gap and deleting a second hand-rolled Groq fetch that duplicated groq-client.ts's own, despite that file's docstring saying it was "extracted from" the route it was never wired back into. While verifying the deploy, found the 2026-08-29 audit had double- counted this repo: /home/g/dev/revamp-info's git remote points at github.com/bitbaum/hirnli -- same repo, two local checkout directories. "revamp-info" is only the apps.conf deploy name. This is the exact trap this file's own registry already withdrew an extraction for once; corrected here so the "next" list doesn't send a future session to fix a repo that does not separately exist. Co-authored-by: Mao Nakamoto <41178744+maonakamoto@users.noreply.github.com> Co-authored-by: Claude Sonnet 5 <noreply@anthropic.com> |
||
|
|
28468b6de7 |
docs(shared): tryChain/createHealthTracker shipped; botsmann's ai-kit "adopted" was overstated (#7)
ai-kit v0.5.0 adds tryChain (walk a provider+model chain, one pass) and createHealthTracker, extracted from botsmann's own hand-rolled generateWithBestProvider/getProviderChain/llm-health.ts -- the exact failure shape this file exists to prevent, just contained to one repo. A fleet-wide AI-tooling audit found the registry's "ai-kit adopted: ...botsmann" line was misleading: botsmann only used ai-kit for its model list, and kept the retry/health logic hand-rolled. Converted botsmann to the new functions the same day as the proving consumer, and recording precisely that tryChain/createHealthTracker have exactly ONE real adopter so far -- the older ai-kit dependency in fleetcrown/aoz-housing/truthseeker predates this release. Co-authored-by: Mao Nakamoto <41178744+maonakamoto@users.noreply.github.com> Co-authored-by: Claude Sonnet 5 <noreply@anthropic.com> |
||
|
|
822297e214 |
feat(ci): audit the fleet for the Supabase we retired (#4)
The fleet self-hosts Supabase on bitbaum. Two managed-cloud projects are dead —
orangecat's ohkueislstxomdjavyhs, retired 2026-06, and botsmann's
jkjmhtirxwhljpkcfxqe before it. The repos kept describing them in the present
tense.
botsmann's setup doc opened with "Completed Setup" for its dead project and
said to apply migrations by pasting SQL into a supabase.com dashboard. Two
scripts printed the same instruction, one handing out a psql string against
pooler.supabase.com, and the CLI's cache with the old project ref was committed
twice. Nobody pasted anything, its eleven migrations were never applied, and
/api/health served PGRST205 for months while every deploy went green. The docs
were not stale clutter; they were the outage. A wrong pointer to a real-looking
place is worse than no pointer: no pointer makes someone ask, a plausible one
makes them assume it was handled.
The first live sweep found one more of the same shape, which is the argument
for auditing rather than trusting the cleanup: printcraft's seed script
hardcoded the retired host AND omitted `db: { schema }`, so repointing it
naively at the box would have written one customer's rows into orangecat's
`public`. Deleted in bitbaum/printcraft#30.
Central, not a copy per repo — the rule this repo exists to keep. Three repos
use Supabase and thirty do not. botsmann additionally keeps a local
check:selfhost in its own verify, deliberately: it is the repo the outage
happened in, and blocking the commit beats finding it a week later.
Two judgements decide whether this is useful or merely loud, and both are
pinned by 28 tests. It allows supabase.com/docs, because the product
documentation is still correct for us, and your-project.supabase.co, because a
placeholder misleads nobody — a gate that fires on either gets muted. And
legitimate mentions, like a decommission runbook naming what it
decommissioned, live in the baseline WITH A REASON rather than widening the
pattern: a ratchet that may fall or hold, never rise.
Unlike verify-floor-audit.sh this reads local checkouts, because it is a
full-text sweep and GitHub code search returns nothing for these repos — even a
known-present token finds no hit. So the workflow shallow-clones the fleet and
runs the same script unchanged. When it sweeps nothing it says SKIPPED, loudly,
rather than printing a tick: a vacuous pass reads exactly like coverage, which
is the failure this audit exists to prevent.
Claude-Session: https://claude.ai/code/session_018waGt1ieA9TjpscqrbrnGb
Co-authored-by: Mao Nakamoto <41178744+maonakamoto@users.noreply.github.com>
Co-authored-by: Claude Opus 5 <noreply@anthropic.com>
|
||
|
|
d8027e2f6f |
docs: sitekit adopter status — camille live, s-ink assessed and deliberately not adopted (#3)
s-ink is a current Next 16.3 app with seven-locale routing, a gallery and an enquiry API; sitekit has no locale concept or gallery kind, so adoption would regress a real client's live site for nothing. The union grows on the first multilingual prospect instead, the way camille grew it. Claude-Session: https://claude.ai/code/session_01AZCNYHwjEeqxNpYCUk6Yna Co-authored-by: Mao Nakamoto <41178744+maonakamoto@users.noreply.github.com> Co-authored-by: Claude Opus 5 <noreply@anthropic.com> |
||
|
|
b31e9c531b |
docs: camille forced v0.2.0; wild-spirit is a port decision, not a conversion (#1)
Claude-Session: https://claude.ai/code/session_01AZCNYHwjEeqxNpYCUk6Yna Co-authored-by: Mao Nakamoto <41178744+maonakamoto@users.noreply.github.com> Co-authored-by: Claude Opus 5 <noreply@anthropic.com> |
||
|
|
f1d5549a36 |
feat: the fleet's central automation, moved out of dotfiles
The audits, the golden CI templates, the shared-package registry and the
reusable auto-merge sweep now live in a repo whose only job is gating the
fleet. dotfiles goes back to being the environment — a repo holding a .bashrc
is the wrong place for machinery that 16 repos call as a reusable workflow,
and keeping them together made every fleet change look like an environment
change and vice versa (three sessions and the owner collided there in one
week).
Layout is unchanged (SHARED.md, scripts/{ci,fleet,audit}, templates/ci,
.github/workflows), so every script's relative paths still hold. The
reusable sweep now checks out bitbaum/fleet; dotfiles keeps a forwarding
shim so its 16 existing callers keep working unchanged.
All six test suites pass in the new location: shared-inventory 7,
verify-predicates 29, auto-merge-sweep 17, stranded-work 24, worktree-gc 9,
model-pin-audit 102.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AZCNYHwjEeqxNpYCUk6Yna
|