The product, its assistant, the repo, the host and every unit on the box now
share one name. 638 files, ~3,000 mentions: UI copy, config, env keys
(FLEETCROWN_* -> LOKI_*), systemd units (fleetcrown-* -> loki-*), docs,
articles, the deploy workflow other repos reuse, and nine file names.
- Three article slugs carried the old name and had been shared; permanent
redirects keep those links alive (next.config.ts).
- test-no-retired-name.sh now also forbids the old product name across the
whole repo, so the rename cannot creep back through templates and examples.
- ASSISTANT_STACK collapses the product and the assistant into one entry,
because they are now the same name.
Infra was cut over ahead of this merge: /opt/loki, loki-* units, the `loki`
database and role, loki.orangecat.ch (old host 308s to it; /api, /widget,
/embed keep proxying), GitHub repos bitbaum/loki and bitbaum/loki-releases.
The Resend sending domain stays fleetcrown.orangecat.ch until the new domain
is verified in DNS.
Claude-Session: https://claude.ai/code/session_016YJVAanfj8keVSXyZnTemh
Co-authored-by: Claude Fable 5.1 <noreply@anthropic.com>
Tier-1 DevX fixes for pains hit repeatedly in practice:
1. ci-gate: cancelled != failed. CI runs with cancel-in-progress, so a
follow-up push cancels the earlier commit's run; the gate counted that
as a failure and printed "CI FAILED", blocking a deploy that never
should have run. Now a cancelled run on a SUPERSEDED (non-tip) commit
exits 3 → the hook skips it quietly (the newer commit deploys); only
genuine failure/timeout/action_required block.
2. Per-SHA deploy logs. Every deploy wrote to one shared
/tmp/push-deploy-fleetcrown.log, so completion-greps matched stale
lines from prior deploys (false PROBLEM/DEPLOYED). Each deploy now
writes /tmp/push-deploy-fleetcrown-<sha>.log (+ a -latest symlink),
and `npm run deploy:status` shows live SHA vs origin/main, health,
in-flight deploy, and the last log's verdict — no more curl|grep.
3. `npm run db:apply-box <file.sql>` applies box DDL AS THE APP ROLE, so
objects are owned by `fleetcrown` and visible to the app. Applying as
`postgres` (the reflex) left tables invisible to the app role — the
drift-check false-failed and rolled back twice. Verified: a table it
creates is owned by the app role.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>