2 Commits
Author SHA1 Message Date
CatoandClaude Fable 5.1 95c40a9cd8 refactor: rename the product from FleetCrown to Loki (#695)
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>
2026-09-13 16:13:10 -07:00
4b08e2f099 feat(solon): Loki's voting edge — signed votes from this box, doorbell receiver, reserved proposer action (#199)
FC1 of the Solon v1 plan (Solon spine live at solon.orangecat.ch; OrangeCat's
decision edge in oc#657). FleetCrown becomes a governance participant with
its own key and its own crypto:

- src/lib/integrations/solon-message.ts: Bitcoin signed-message signing for
  exactly one key (LOKI_SOLON_PRIVKEY) + the canonical Solon vote message.
  Pinned to Solon's signer by a fixed vector — RFC6979 is deterministic, so
  the unit test asserts byte-identical signatures; drift breaks CI, not
  Loki's votes.
- scripts/solon/cast-vote.ts: operator-run vote cast (fetch nothing, sign
  locally, POST; the key never leaves the environment). A future autonomous
  path stays behind the approval queue — no auto-approve, ever — and reuses
  this as its executed step.
- src/app/api/solon/events: HMAC doorbell receiver mirroring the
  /api/orangecat/events shape (env-gated 503, timing-safe verify via the new
  solon-webhook.ts, zod-parsed, unknown-but-authentic events acknowledged).
  v1 records decision.finalized to debug-logs and nothing more: FleetCrown
  has no Solon-governed artifact yet, and when one lands the receiver grows
  the fetch-and-re-verify shape OrangeCat's decision-verify implements.
- RESERVED_ACTION_PROPOSE_SOLON_CHANGE constant: the name is stable now;
  nothing dispatches it in v1.

Unit test (auto-discovered scripts/test/solon-message.ts): address
derivation, canonical message, exact signature vector, webhook verification
accept/reject matrix. verify exit 0.

Co-authored-by: test <test@test>
Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
2026-08-07 22:37:44 +00:00