13 Commits
Author SHA1 Message Date
CatoandClaude Fable 5.1 bade0a1b8e chore: rename FleetCrown to Loki (#197)
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>
2026-09-13 16:23:24 -07:00
CatoandClaude Opus 5 39ee973130 fix(ci): a commit must not cancel another commit's run (#195)
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>
2026-09-11 14:34:40 -07:00
dependabot[bot] 6cfe33e090 chore(deps): bump actions/cache from 4 to 6 (#192)
Bumps [actions/cache](https://github.com/actions/cache) from 4 to 6.
- [Release notes](https://github.com/actions/cache/releases)
- [Changelog](https://github.com/actions/cache/blob/main/RELEASES.md)
- [Commits](https://github.com/actions/cache/compare/v4...v6)

---
updated-dependencies:
- dependency-name: actions/cache
  dependency-version: '6'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-09-08 23:41:50 -07:00
CatoandClaude Opus 5 8f57cd9117 ci: cache Next's build output so CI stops recompiling from scratch (#182)
* 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>
2026-09-07 14:09:13 +00:00
ee5ffa1c97 chore: pnpm — the fleet has one package manager (#176)
- packageManager pnpm@11.25.0; lockfile via pnpm import, package-lock.json
  removed
- npm "overrides" moved to pnpm-workspace.yaml overrides (pnpm ignores the
  npm-only package.json field); $postcss reference spelled out (pnpm 11
  deprecates $ syntax)
- allowBuilds for native/postinstall deps; temporary minimumReleaseAgeExclude
  for our own @bitbaum/ai-kit@0.6.2 (published <24h ago — pnpm 11's
  supply-chain window would refuse it)
- CI: pnpm/action-setup@v6, store-dir pinned outside the action's bin dir,
  cache: pnpm, frozen-lockfile install, pnpm run verify
- phantom deps declared: dotenv + tsx (used by scripts/test-db-connection.ts
  and the test:db script, previously resolved via npm hoisting only)
- verify/build:ci scripts and husky pre-commit converted to pnpm


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>
2026-09-04 01:23:53 +00:00
dependabot[bot] 8baf6c215f chore(deps): bump actions/setup-node from 4 to 7 (#157)
Bumps [actions/setup-node](https://github.com/actions/setup-node) from 4 to 7.
- [Release notes](https://github.com/actions/setup-node/releases)
- [Commits](https://github.com/actions/setup-node/compare/v4...v7)

---
updated-dependencies:
- dependency-name: actions/setup-node
  dependency-version: '7'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-08-29 07:18:31 +00:00
dependabot[bot] 9e583e911a chore(deps): bump actions/checkout from 4 to 7 (#156)
Bumps [actions/checkout](https://github.com/actions/checkout) from 4 to 7.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v4...v7)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-version: '7'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-08-29 06:58:34 +00:00
GandClaude Opus 5 8fde6923a7 ci: make the verify job actually run verify (#133)
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>
2026-08-16 10:50:00 +00:00
G 7e03d649a6 ci: green PRs merge and deploy themselves (#127)
* 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
2026-08-05 19:16:22 +02:00
GandClaude Opus 5 bcdb94c93b chore: declare Node 22 once, in .nvmrc (#125)
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>
2026-08-03 10:53:37 +02:00
GandClaude Opus 5 0406ecca20 ci: replace Vercel deploy with self-host CD, split CI into its own workflow (#124)
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>
2026-08-03 10:26:55 +02:00
GandClaude Opus 4.8 7bf59b27dc ci: strict verify gate + verify SSOT script (#121)
* 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>
2026-07-28 10:10:11 +02:00
GandClaude Opus 4.8 26b042cd86 chore(infra): remove Vercel references — self-hosted now (#120)
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>
2026-07-28 09:23:49 +02:00