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
15 files changed, 29 insertions(+), 29 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>
The concurrency group was keyed by branch with cancel-in-progress, so a
newer merge cancels an older commit's CI — and every deploy path keys off
that run. One that waits for CI to pass on the commit finds a cancelled run
and stops. One chained on workflow_run sees conclusion=cancelled and skips.
auto-merge also re-arms CI with a dispatch, and under one group-per-branch
that dispatch cancels the push run for the SAME commit.
Measured across the fleet on 2026-09-11: 28 of 39 ci.yml files had this
shape. It broke two repos that day, in the two ways it can break.
fleetcrown failed silently — Deploy skipped, four merges sat on main with
every check green and nothing red while the box served the previous build,
each needing a hand-dispatched deploy. hirnli failed loudly, erroring at
its wait-for-CI step, which is the better outcome because somebody sees it.
Keying main per commit lets both runs finish, so whatever the deploy path
looks for is there. Branch behaviour is unchanged: the newest push is still
the only one that matters there.
The templates this was copied from are fixed in bitbaum/fleet#53, which
also adds a ci-strands-commits rule to the hygiene audit so the remaining
repos are found by a sweep rather than by an outage.
Claude-Session: https://claude.ai/code/session_018Z7YRpgsEtNjRqr1usHMQY
Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
* ci: cache Next's build output so CI stops recompiling from scratch
Next keeps its compiler output in .next/cache and nothing restored it here, so
every CI run recompiled the whole app — and the deploy then compiled it again.
Measured across the fleet on 2026-09-07: of eight repos, exactly one cached
this in CI. 14 repos built cold; ten adopted the step today, and this is one of
the four that a mechanical sweep correctly declined — the install step here is
a bare `- run: pnpm install --frozen-lockfile` with no name, so the anchor missed it.
Read, then patched, rather than widened until it matched something.
Keyed on the lockfile so a dependency change invalidates it. The bare
restore-key is last on purpose: a stale cache still beats no cache, and Next
validates its own entries rather than trusting them.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01G2LBioUzJP4oBL9LeH9qAe
* style(ci): prettier
This repo's verify starts with `prettier --check .`, which covers
.github/workflows. A formatting-only miss reaches CI as a red build with
nothing else wrong.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01G2LBioUzJP4oBL9LeH9qAe
---------
Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
The CI job here is named "verify" and did not call `npm run verify`. It
re-inlined the chain by hand, and the hand-written copy had drifted:
package.json verify: format:check → lint → test → build
ci.yml: format:check → lint → test → build (--if-present ×3)
Neither ran a typecheck. `tsc --noEmit` existed nowhere in this repo, so type
errors were caught only as a side effect of `next build` — late, slow, and one
`typescript.ignoreBuildErrors` away from not being caught at all.
Two fixes, both the same principle:
1. Add a real `typecheck` script and put it in `verify`, before test/build so
it fails in seconds rather than after a full Next build. Verified: `tsc
--noEmit` is already clean (exit 0), so this gate goes green on arrival —
it is closing a hole, not papering over a backlog.
2. CI now calls `npm run verify` verbatim, and the `--if-present` flags are
gone. Those flags made three gates unable to fail: rename or delete the
`lint` script and the step passes green instead of erroring. A gate that
cannot go red is not a gate. That is exactly the defect that let evig
report "Run Tests ✓" on every PR for three weeks while 25 assertions were
failing (fixed in evig#306), and the same reason dotfiles#14 now sweeps the
fleet for discarded gates.
Full `npm run verify` passes locally: format, lint, typecheck, test, build,
exit 0. Green verify locally now genuinely means green CI, because they are
the same command.
Co-authored-by: Claude Opus 5 <noreply@anthropic.com>
* ci: add the auto-merge sweep policy
* ci: green PRs merge and deploy themselves
* ci: allow CI to be dispatched so auto-merge can re-arm it
* ci: allow deploy to be dispatched so an automated merge still ships
CI and the deploy pipeline each picked their own Node major, so a build
could ship from a toolchain CI never verified — npm 10 and 11 disagree
about optional platform deps, which failed 'npm ci' on a lockfile the
other npm wrote. One declaration both sides read.
Co-authored-by: Claude Opus 5 <noreply@anthropic.com>
Prod is bitbaum behind Caddy, not Vercel — the Vercel deploy workflow was
shipping to somewhere nobody looks while the real production build only
changed by hand.
The repo's only verification lived inside that deploy workflow, so it is
extracted to ci.yml first; the shared CD pipeline blocks on a red CI, and
without this file there would be no CI to be green.
Co-authored-by: Claude Opus 5 <noreply@anthropic.com>
* ci: strict verify gate + verify SSOT script
Reconciles PR #109's intent onto post-#120 main (self-hosted, no Vercel):
- add "verify" script (format:check && lint && test && build) — one
definition of "green", run identically locally and in CI
- ci.yml runs `npm ci` then a single `npm run verify` step (no --if-present:
a missing/renamed gate script fails loudly) instead of the old split steps
- add AGENTS.md, corrected to the real stack (Next.js 16 / React 19) and
self-hosted Hetzner deploy referencing ci.yml — NOT the stale Vercel/Next14
draft from #109 that would have re-added Vercel
Supersedes #109 (which conflicted on the workflow #120 renamed).
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
* style: prettier --write repo to make the verify gate green
The strict verify gate surfaced pre-existing format debt that main's long-red
CI (blocked-Vercel deploy step) had masked. prettier --write is mechanical and
content-preserving — the executive-docs keep their text (incl. the separate
Vercel-in-financials follow-up), only whitespace is normalised. Also excludes
the auto-generated next-env.d.ts from prettier. Build/lint/test already pass;
this clears format:check so verify is truly green (and un-reds main on merge).
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
* style: reformat with the repo-pinned prettier config (printWidth 100)
Prior format commit used a prettier invocation that didn't resolve .prettierrc
(fell back to printWidth 80); the pinned config (printWidth 100) rejected it.
Re-run with the repo's own prettier so format:check matches CI exactly.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
Botsmann now runs self-hosted on the Hetzner box "bitbaum" behind Caddy
(botsmann.orangecat.ch); Vercel is fully decommissioned.
- CI: rename the "Deploy to Vercel" workflow to a vendor-neutral CI workflow
(build/lint/test only). Actual deploy runs from .husky/pre-push → Hetzner
deploy script. Remove vercel.json and the Vercel-only deploy-monitor.sh.
- Docs: rewrite current-setup deploy/hosting text in .claude/CLAUDE.md,
README badge, docs/COMMANDS.md and docs/SHARED_CONTEXT.md to the self-hosted
box. Repoint the dead botsmann.vercel.app URL → botsmann.orangecat.ch.
- Code: neutralize "(Vercel)" route-segment comments; reword the warmup cron
comment; update the demo page tech-stack line to self-hosted.
- Keep: secret-scan guardrail (VERCEL_OIDC_TOKEN) and `env -u VERCEL` in the
husky hooks, the educational hosting-comparison page, historical docs/archive,
and executive-docs business/finance planning material (see PR body).
Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>