Commit Graph
6 Commits
Author SHA1 Message Date
CatoandClaude Opus 5 e0b321212d chore(fixtures): HamsterCheek -> Zeitkastli, drop concealment wording (#731)
bitbaum/hamstercheek was renamed to bitbaum/zeitkastli because its framing read
as a tool for concealing assets. This repo is public and carried the same
wording in test fixtures and code comments:

  "A box you hide outside."
  "HamsterCheek is a weatherproof box for valuables."
  "HamsterCheek allows people to hide physical items in various locations."
  "a hiding box"

Fixture text only — no behaviour changes. Each replacement preserves what its
test was actually checking:

- "a hiding box" -> "a time capsule" still clears the 10-char brief floor
- the one-sentence brief is still under KICKOFF_THIN_DESCRIPTION, so it is
  still flagged as thin
- the hero-note fixture is still under 80 chars, so it still passes through
  publicHeroNote unchanged
- site-cd.ts used "Hamster Cheek" to test slugifying a TWO-WORD display name;
  "Time Capsule" -> "time-capsule" keeps that exact property

The comment on KICKOFF_THIN_DESCRIPTION records that the project was called
HamsterCheek when the incident it describes happened, so renaming the fixtures
does not quietly falsify the history they document.

Verified: 181/181 unit test files pass, tsc --noEmit clean, prettier clean.

Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-09-15 08:41:15 -07:00
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
CatoandClaude Fable 5.1 a1aed85daa fix(cold-start): a brief becomes a repo and a live site through the normal path (#569)
* fix(cold-start): the starter ships a lockfile, so its first Deploy can install

selfhost-deploy.yml refuses to install without a lockfile and installs with
--frozen-lockfile; the Next starter declared pnpm and shipped no lock, so every
fresh site failed before building. The lock is resolved once by
scripts/templates/refresh-starter-lock.ts into a generated asset and seeded
with the starter (one Git tree call, no pnpm on the app box).
scripts/test/starter-lock.ts fails on drift, missing standalone output, a
missing packageManager, or starter docs that point at npm.

Seeding failures are recoverable: provision on a linked but bare repo re-seeds
it instead of refusing with 409. The starter embeds the project-scoped
feedback widget from its first commit.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0118cLNxoB3dt2w74vU1PH6w

* fix(cold-start): liveUrl means a Deploy on the current commit and a public 200

Registration persisted liveUrl because register-site.sh exited 0 with
--no-deploy. Now: strict setup, then a workflow dispatch; GET reports
pending/failed/live and the UI polls it. describeSiteDeployment (pure, tested)
treats a queued run or a just-sent dispatch as starting, closing the race where
the first poll after dispatch read as "no deployment exists". A status the
client cannot read is shown as a failure, not swallowed.

The deploy workflow resolves a freshly registered slug from the box register
and proves the checkout belongs to the caller; deploy.sh builds with the same
package manager that installed; register-site.sh runs release siblings, locks
the register, fails without a deploy secret, and seeds a runtime env.

check:deploy-ready no longer reads a box-registered checkout as laptop drift.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0118cLNxoB3dt2w74vU1PH6w

* fix(feedback): Implement addresses the project id, never a same-named tab

Feedback and kickoff dispatch resolve user_projects by stable entity id; a
renamed project or a same-named sibling can no longer redirect a run, and the
hosted fallback is off for actions tied to a tracked run. Batch Implement only
advances when a run was accepted. Fix prompts require the normal ship path and
live evidence; Resolve stays with the operator.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0118cLNxoB3dt2w74vU1PH6w

* docs: FleetCrown builds independently; tab names are transport, not identity

Product copy and agent docs describe FleetCrown as an independent product with
optional OrangeCat linking that is not publication consent. Control drops the
Focus terminal chip (Open terminal stays). Adds the cold-start handoff.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0118cLNxoB3dt2w74vU1PH6w

---------

Co-authored-by: Claude Fable 5.1 <noreply@anthropic.com>
2026-09-10 12:51:11 -07:00
CatoandCato 40f80e5118 fix(cold-start): idempotent register + cross-owner deploy secrets (#554)
Register site must succeed when apps.conf already has the slug (compatible
repo path): re-ensure deploy.yml, secret, and sync-infra, print live URL,
and let registerProjectSiteCd write liveUrl — do not refuse as already exists.

Prefer the /opt release copy of register-site.sh so a stale durable checkout
cannot keep refusing after Deploy. Pass HETZNER_SSH_PRIVATE_KEY explicitly in
deploy shims; secrets: inherit fails for catomean/* → bitbaum/fleetcrown and
left dogfood Deploy dead on arrival.

Co-authored-by: Cato <catomean@users.noreply.github.com>
2026-09-10 03:54:45 -07:00
CatoandCato 8bcbe93675 fix(cold-start): auto-register CD when box has script+key (#552)
* fix(cold-start): auto-register CD when box has script+key

Dogfood after #551 got a repo and a bash command only: kickoff hid the
reason, and canRunRegisterSiteLocally failed because the deploy key lived
on the laptop, not under ubuntu on fleetcrown.orangecat.ch.

Probe script/key/SITE_CD_AUTO with an explicit gate+reason, prefer
/home/ubuntu/dev for durable apps.conf, show the reason in Make it
happen, add Register site retry, and document the one-time box key/env.

* fix(lint): drop unused canRunRegisterSiteLocally import

---------

Co-authored-by: Cato <catomean@users.noreply.github.com>
2026-09-10 03:24:48 -07:00
CatoandCato f7438b64aa fix(cold-start): register Hetzner CD after kickoff provision (#551)
* fix(cold-start): register Hetzner CD after kickoff provision

Make it happen created a GitHub repo but never wired apps.conf / deploy
secret / live URL. After provision, call register-cd: seed deploy.yml,
run register-site.sh on the studio box when possible, otherwise return
that one command — and record liveUrl only when registration succeeds.

* style: prettier on kickoff + site-cd-register

---------

Co-authored-by: Cato <catomean@users.noreply.github.com>
2026-09-10 02:07:21 -07:00