Commit Graph
64 Commits
Author SHA1 Message Date
CatoandClaude 987f77d61b feat(box): an accounts database beside a supabase schema (#1562)
Printcraft and Botsmann keep their data in a schema of the supabase-db
container, which publishes no port, so AccountKit (Drizzle) cannot reach
it. scripts/hetzner/accounts-db.conf (app|database) gives such an app a
second, host database for its accounts, without a new apps.conf column:

- provisionable-db.sh accepts a supabase app with a row, so
  provision-db.yml creates its database, role and DATABASE_URL;
- deploy.sh applies drizzle/ to that database in its own step after the
  schema step; apply-schema.sh takes ONLY_LAYOUT, and a supabase schema
  only ever takes supabase/migrations;
- check-accounts-db.sh (in verify) fails when the file drifts from
  apps.conf: unknown, archived, non-supabase, misnamed, duplicate or
  colliding rows;
- accountkit-supabase.yml / accountkit-supabase.sh survey, rehearse
  (always rolled back) and import an app's GoTrue people as AccountKit
  accounts under their old ids, linked to OrangeCat by actor id, never by
  address. Counts only; nothing empties a table.

test-accounts-db.sh (in test:ops) covers the register, the gate, the
layout split, the deploy order and the import's refusals.


Claude-Session: https://claude.ai/code/session_019MDtmuJhiHPASaR5k8raL9

Co-authored-by: Claude <noreply@anthropic.com>
2026-11-02 21:53:29 +01:00
CatoandClaude 81f920a108 chore(register): the leftover signin database is gone (#1523)
Dropped with drop-db.yml (run 41335134500): 0 users, 0 sessions; its
rows were one schema-history row and the 7 OIDC client registrations
morulia holds for itself. The role went with it. The morulia row's
comment no longer says the database is on the box.


Claude-Session: https://claude.ai/code/session_019MDtmuJhiHPASaR5k8raL9

Co-authored-by: Claude <noreply@anthropic.com>
2026-11-01 19:26:33 +01:00
CatoandClaude Opus 5.5 089235bb46 fix(register): biaslens has a host database (#1517)
* fix(register): biaslens has a host database

The box's register says biaslens's db column is biaslens; main said '-'.
The box is right: register-site.sh provisioned the database there, and
biaslens.orangecat.ch/api/health reports its accounts ready, which needs
DATABASE_URL. With '-' every deploy skipped the app's schema step. Found
by register-drift (only biaslens's db column differed).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019MDtmuJhiHPASaR5k8raL9

* docs(register): say which deploys read main's biaslens row

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019MDtmuJhiHPASaR5k8raL9

---------

Co-authored-by: Claude <noreply@anthropic.com>
2026-11-01 19:07:01 +01:00
CatoandClaude 6628a951d4 ops(register): remove the retired signin row (#1505)
retire-site.sh --mode delete cleared signin from the box on 2026-11-01
(run 41293394217): unit, vhost, /opt/signin, checkout and watchdog
target. The rename guard skipped every GitHub step, so bitbaum/morulia
kept its workflows and deploy key. Port 4040 is free again. The host
database `signin` is still there; the morulia comment says so.


Claude-Session: https://claude.ai/code/session_019MDtmuJhiHPASaR5k8raL9

Co-authored-by: Claude <noreply@anthropic.com>
2026-11-01 10:42:34 +01:00
CatoandClaude 6859c7271e ops(register): the shared sign-in is morulia; signin is archived (#1504)
bitbaum/signin was renamed to bitbaum/morulia (fleet #413) before any app
used it. The service moves to morulia.orangecat.ch:

- apps.conf: a morulia row (port 4041, db morulia, live). The signin row
  is archived so no sync regenerates it; it goes once retire-site --mode
  delete has cleared the box.
- app-secrets.sh: the registry entry is morulia, SIGNIN_URL is
  https://morulia.orangecat.ch, same seven pair lines. With morulia's
  side empty and each app holding its SIGNIN_CLIENT_SECRET, ensure copies
  the app's value over; nothing is regenerated.
- retire-site.sh: a renamed repository still answers under its old name,
  so retiring signin would have disabled morulia's workflows, removed its
  deploy key and, with --repo archive, archived it. Every GitHub step is
  now skipped when the repository belongs to another name. Tested.
- provision-db tests and examples name morulia.

The SIGNIN_* env names stay: they are generic.


Claude-Session: https://claude.ai/code/session_019MDtmuJhiHPASaR5k8raL9

Co-authored-by: Claude <noreply@anthropic.com>
2026-11-01 10:21:06 +01:00
CatoandClaude 8b40759825 fix(register): signin moves to 4040; biaslens and keller rows reach main (#1492)
signin was registered on 4038, which biaslens already held on the box:
register-site.sh wrote biaslens's row (4038) and keller's (4039) into
the box's checkout on 2026-10-22 and 2026-10-29, and the PRs that carry
them to main (#1404, #1469) never merged. The upstream register did not
know either port, so #1481 handed 4038 out again. Caddy now sends
signin.orangecat.ch to biaslens, and signin's own wake socket could not
bind.

Both rows are added exactly as the box wrote them, so the register's
unique-port check covers them, and signin takes 4040, the next port no
row holds.


Claude-Session: https://claude.ai/code/session_019MDtmuJhiHPASaR5k8raL9

Co-authored-by: Claude <noreply@anthropic.com>
2026-10-31 20:29:22 +01:00
CatoandClaude 40b98c00ab ops(register): signin goes live (always on) (#1490)
signin is the shared sign-in issuer every consuming app redirects to; a
sleeping issuer makes each first sign-in wait for a cold start. Live also
skips the wake socket, whose first sync collided with the units a deploy
had already started (see PR body).


Claude-Session: https://claude.ai/code/session_019MDtmuJhiHPASaR5k8raL9

Co-authored-by: Claude <noreply@anthropic.com>
2026-10-31 20:07:51 +01:00
CatoandClaude f76ffe4e29 feat(box): register signin (shared sign-in) and its paired client secrets (#1481)
- apps.conf: signin on 4038, signin.orangecat.ch, its own host database
  `signin`, kind infra, status prospect until it serves.
- app-secrets.sh: signin's SIGNIN_URL, BETTER_AUTH_SECRET and
  SIGNIN_PAIRWISE_SECRET, and a `pair:<app>:<VAR>` kind: one value in two
  apps' env files, generated once, copied on the box when one side has it,
  reported (never fixed) when both differ, never printed. Restart is skipped
  when the app has no unit yet.
- test-app-secrets.sh runs the remote half locally; wired into test:ops.


Claude-Session: https://claude.ai/code/session_019MDtmuJhiHPASaR5k8raL9

Co-authored-by: Claude <noreply@anthropic.com>
2026-10-30 22:26:27 +01:00
Catoandcatomean 9faf4d8dd8 fix(apps.conf): Kivvi is a bitbaum product, not a RevampIT favour (#1385)
* fix(apps.conf): Kivvi is a bitbaum product, not a RevampIT favour

* chore: regenerate fleet-sites.ts

---------

Co-authored-by: catomean <catomean@users.noreply.github.com>
2026-10-21 20:54:29 +02:00
CatoandClaude 9e953a8c1f fix(sites): a site retired offline stays offline; one name per site (#1330)
center-com.orangecat.ch (the older Center SOM build) was taken offline with
retire-site.yml and its repository archived; the preview at
centersom.orangecat.ch is Center SOM. Its apps.conf row is now archived, and
an archived row is skipped by a full sync (lib.sh app_names), the push-deploy
installer and the watchdog — otherwise the next sync-sites run would have put
it back online, and the watchdog would have paged it as down.

The previews doc gains the rule the owner asked for: address, project and
repository are one word.


Claude-Session: https://claude.ai/code/session_01HyfPCAeTFi2sjpVY44Y1JJ

Co-authored-by: Claude <noreply@anthropic.com>
2026-10-19 18:09:16 +02:00
CatoandClaude 5359720879 fix(register): a project says what it is from its README, and Diplodoctor and Causius are live (#1306)
Found 2026-10-18: diplodoctor.orangecat.ch and causius.orangecat.ch have
been running since 2026-09-10 (health green, changelogs moving), but the
fleet map — and so bitbaum.orangecat.ch and the public chat — still said
"prospect" / "validating", and Diplodoctor's description and identity still
told its first idea: cross-border healthcare and medical tourism.

- The map's `what` reads the README's opening paragraph first, the way the
  roadmap and changelog already come from ROADMAP.md and CHANGELOG.md
  (repo-records.ts: readmeLead). Headings, badges, lists, code, generator
  boilerplate and sentences meant for contributors ("defined in HEIDI.md",
  "Built with Next.js") are skipped; the stored description is the fallback.
  Audited against the fifteen shown projects: the README was right in every
  case where the two disagreed (evig, Hirnli, Diplodoctor, Causius).
- Migration 0116: Diplodoctor's project gets its repository link (it had
  none, so Loki never read its README, roadmap or changelog) and its public
  identity is rewritten from its README. The replaced texts are kept in the
  migration's comment.
- apps.conf: diplodoctor prospect → live, causius validating → live. Both
  are served products in beta ("live" means served, not released). They
  stop sleeping when idle, like Heidi. fleet-sites.ts regenerated; the
  public footer gets their names and a line each from their own headlines.

Tests: repo-records covers the lead (heading glued to its paragraph, badges,
contributor sentences, boilerplate, the length cut) and the third fetch.
tsc, eslint, prettier, fleet-map, fleet-register, fleet-sites-derived and
widget-chat-concierge pass.


Claude-Session: https://claude.ai/code/session_01HyfPCAeTFi2sjpVY44Y1JJ

Co-authored-by: Claude <noreply@anthropic.com>
2026-10-18 13:41:15 +02:00
CatoandClaude 711a03f2c0 chore(register): retire orangecat-2 (#1259)
Taken off the box by the Retire site workflow (mode delete) at the owner's
request; the row goes so the register no longer claims it and port 4035 is free.


Claude-Session: https://claude.ai/code/session_014d9r6dNr1vW789Q75hPcHF

Co-authored-by: Claude <noreply@anthropic.com>
2026-10-17 17:24:54 +02:00
CatoandClaude d9af1c7594 chore(hosting): Vita is served at vita.orangecat.ch (#1242)
The row's first host is now vita.orangecat.ch; vitareba.orangecat.ch stays
served so sent email links, calendar subscriptions and cron callers keep
working. The app redirects its pages to the new host (bitbaum/vitareba).
Apply with Sync sites (apps: vitareba) after merge.


Claude-Session: https://claude.ai/code/session_014d9r6dNr1vW789Q75hPcHF

Co-authored-by: Claude <noreply@anthropic.com>
2026-10-17 15:34:04 +02:00
CatoandCato 34cb890f17 chore(register): add center-com (#1233)
Co-authored-by: Cato <catomean@users.noreply.github.com>
2026-10-16 08:51:38 -07:00
CatoandClaude 4beae5ce99 chore(apps): Diplodoctor has a database now (#1192)
Accounts need one; deploy applies its drizzle migrations from this column.
Provisioned by the diplodoctor repo's one-off Provision workflow.


Claude-Session: https://claude.ai/code/session_01UzP8kyUAz5uhKE3mt87Yi7

Co-authored-by: Claude <noreply@anthropic.com>
2026-10-14 07:32:32 -07:00
CatoandClaude 8a20e4c8a1 apps.conf: causius has a host database now (#1135)
Provisioned by causius's provision-matters workflow (role, database,
pg_hba lines, schema 0000 applied). Naming it here lets the shared deploy
apply later migrations; its first run baselines the ledger at 0000.


Claude-Session: https://claude.ai/code/session_012EJFFkKhmaVnnH8E3mHnaZ

Co-authored-by: Claude <noreply@anthropic.com>
2026-10-11 13:02:32 -07:00
CatoandCato 2f9a13ebfa chore(register): add farmaciadelparco (#1075)
Co-authored-by: Cato <catomean@users.noreply.github.com>
2026-10-07 11:25:09 -07:00
CatoandClaude Opus 5.5 5aa521e08d feat(sites): give a site its own domain — evig.orangecat.ch → evig.ch (#1065)
* feat(sites): give a site its own domain — evig.orangecat.ch → evig.ch

A site starts on <slug>.orangecat.ch. When its owner buys a domain, Loki can
now make that domain the site's address: the domain (and www. when it points
here) is served, the free address answers with a 308 to it, and the project's
live URL, production URL and widget origin list follow. Nothing the visitor
sees says where the site is hosted, and the site stays one repo, one Loki
project, on the same box.

- lib.sh caddy_vhost: the one rule for what a row's domains field means. A
  row mixing an own domain with its free host serves the own domain and 308s
  the free one. sync-infra now calls it; every existing row's vhost is
  byte-identical (pinned against the real register in test-custom-domain.sh).
- attach-domain.sh <slug> <domain> | --detach: checks DNS first (A to the box,
  no stray AAAA) and refuses with the exact records when it is not set —
  Caddy would otherwise retry a failing certificate for hours while the free
  address already redirects there. Edits the row, publishes it to main via
  the shared publish_register_row (moved out of register-site.sh), syncs,
  waits for HTTPS. Refuses the handcrafted 4001-4004 services (evig among
  them) whose Caddy blocks are hand-written.
- GET/POST/DELETE /api/projects/[id]/domain + an "Own domain" panel next to
  the live link: type the domain, see the records and whether they are set,
  connect, or go back to the free address. Studio-box gating is the same as
  site registration; everyone else gets the command.

Docs: docs/infrastructure/custom-domains.md, including why sites are not
hosted inside OrangeCat (removed 2026-08-27) and the two things a site's own
code may still need after a move (metadataBase, OrangeCat OAuth redirect URIs).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0191FbipnTCBDKHiKftp9W7B

* fix(env): document LOKI_SITES_IP / LOKI_SITES_IPV6 in .env.example

env-example-covers-src requires every variable src/ reads to be named there.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0191FbipnTCBDKHiKftp9W7B

---------

Co-authored-by: Claude <noreply@anthropic.com>
2026-10-07 05:53:32 -07:00
CatoandCato 446549564e chore(register): add orangecat-2 (4035) (#1064)
Co-authored-by: Cato <catomean@users.noreply.github.com>
2026-10-07 05:28:01 -07:00
CatoandClaude Opus 5.5 63f1ebf4fa ops(xhiva): xhiva.orangecat.ch is the preview's name; the long one stays as an alias (#1053)
The operator, through the site's feedback button: "why not just xhiva.orangecat.ch".
The agent traced it here (its audit D8): the hostname is this row's domains column,
applied to Caddy by sync-infra.sh. Wildcard DNS already resolves.

Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-10-06 07:40:38 -07:00
CatoandCato a6453cf574 chore(register): add xhiva-art-refresh-300d1519783b47d3ab1c7ddb77c5febf (4032) (#1017)
Co-authored-by: Cato <catomean@users.noreply.github.com>
2026-10-02 11:20:14 -07:00
CatoandCato 0e97c5e64e chore(register): add zurich-sublet-compliance-concierge-service (4031) (#953)
Co-authored-by: Cato <catomean@users.noreply.github.com>
2026-09-28 04:43:18 -07:00
CatoandClaude Opus 5.5 3829e63cb9 chore(register): retire aoz-demo — the AOZ demo moves back onto aoz.orangecat.ch (#941)
George's decision 2026-09-26, relayed by the aoz session: no separate demo
instance. Removes the apps.conf row (port 4028, db aoz_demo) and its nightly
reset-demo cron. aoz-wohnen is unchanged. The box teardown (unit, timer,
Caddy vhost, database, /opt/aoz-demo) is done from the aoz session once this
is merged, so sync-infra cannot re-create it. test-demo-instance.sh keeps its
guard that no non-demo app carries the reset route; zero demos is now valid.

Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-09-26 12:37:44 -07:00
CatoandClaude Opus 5.5 f34c15cd62 fix(infra): aoz-demo serves at aoz-demo.orangecat.ch, which resolves (#931)
demo.aoz.orangecat.ch did not: *.orangecat.ch covers one label only, and
aoz.orangecat.ch is its own DNS node, so the deploy's final check failed
with "does not resolve — DNS gap". Checked against 1.1.1.1:
aoz-demo.orangecat.ch -> 167.233.22.31, demo.aoz.orangecat.ch -> nothing.
Only the domain field changes.

Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-09-25 22:53:44 -07:00
CatoandCato 97200d1d4f chore(register): add farmhouse (4029) (#927)
Co-authored-by: Cato <catomean@users.noreply.github.com>
2026-09-25 18:57:16 -07:00
CatoandClaude Opus 5.5 f76e6bf212 chore(infra): register aoz-demo, a no-account AOZ demo that never takes aoz-wohnen's push hook (#922)
- apps.conf: aoz-demo|4028|demo.aoz.orangecat.ch, kind demo, owner bitbaum
  (same aoz-begleitung checkout as aoz-wohnen; not a client app).
- install-push-deploy: a demo sharing its repo with a real app is skipped.
  install_hook REPLACES the marked block, so the last row sharing a repo
  won; appended after aoz-wohnen, the demo would have made every push to
  aoz-begleitung deploy the demo instead of the app.
- install-app-crons: nightly /api/cron/reset-demo for aoz-demo ONLY (the
  route truncates the database).
- test-demo-instance.sh (in test:ops): the push-hook guard, and reset-demo
  registered only on a kind=demo app, never aoz-wohnen.

Requested by the aoz session (box side: DB, env, sync-infra, crons is
theirs). No box changes here.

Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-09-25 09:59:01 -07:00
CatoandClaude Opus 5.5 c63ae4ef61 fix(register): Skif has a database, and it is our product (#889)
skif's row said db=- and kind=client-site.

db=- makes every deploy skip the schema step, so drizzle/0000_init.sql
would never be applied: the signed-in pages would serve against a
database with no tables (the exact botsmann shape the format note
records). The database now exists on the box: role and db `skif`,
pg_hba rules inserted above the reject block, public schema owned by
the role, verified by connecting and creating a table.

kind=client-site was wrong on its face: Skif is bitbaum's own product,
owner=bitbaum, federating to OrangeCat. And bitbaum has no clients.

Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-09-24 21:51:40 -07:00
CatoandCato 13e433c4dd chore(register): add skif (4027) (#878)
Co-authored-by: Cato <catomean@users.noreply.github.com>
2026-09-24 13:24:11 -07:00
Cato 171b00cf93 fix: register dedicated Substrata database (#738) 2026-09-15 23:17:52 -07:00
CatoandClaude Opus 5 baa8e2e6fb chore(aoz): follow bitbaum/aoz-housing -> bitbaum/aoz-begleitung (#732)
The repo was renamed today. It was the last place the product was still called
Housing: the name row in fleet's registers/retired.json retired "AOZ Housing" as
the PRODUCT name on 2026-09-10, but the repo kept it, and the repo is public.

The deploy name `aoz-wohnen` is deliberately NOT renamed with it. It is an
infrastructure identifier — systemd unit, /opt path, database — nothing on the
box keys on the repo name, and moving it would touch a live site for no visible
gain. apps.conf's comment block already said as much and still does.

The load-bearing change is apps.conf's fourth field. repo-metadata-audit.mjs
keys the register on that path's BASENAME, so while it read /home/g/dev/
aoz-housing the join against GitHub missed and every metadata check for this
repo was silently skipped — the audit went green by not looking at it. The local
checkout was moved to match and its three worktrees repaired (`git worktree
repair`), not pruned: they hold branches.

Two test failures worth keeping, because both were the rename telling the truth:

  - project-mention asserted that "the AOZ housing rebuild" resolves to the
    project. With the slug renamed it does not, and should not. The case exists
    to prove "a slug with a hyphen, typed with a space" matches, so the INPUT
    moved to the current name rather than the expectation being loosened.
  - tab-match asserted a terminal tab literally named "AOZ Housing" matches the
    slug. Same thing: the fixture now uses the name the tab would actually have.

Consequence worth naming: someone who types "aoz housing" at Loki will no longer
be understood. There is an alias mechanism for exactly this shape
(register/build.ts maps the deploy name to the repo), but wiring the retired
name into mention-matching is a product decision, not a rename chore.

Left alone on purpose: scripts/db/retire-stale-projects.ts, whose data row
records the project names the database actually held when that migration ran;
and content/thoughts/*.md, published essays — one of which quotes a filesystem
path observed during a debugging session, so rewriting it would falsify the
anecdote.

The production user_projects row was updated too (name and git_url), because the
database is a second copy of the repo identity and a past rename left 21 rows
pointing at a dead account. New URL proven to resolve: 431bae7.

Tests green: fleet-register 44, project-mention 28, tab-match 10, fleet-map 7,
loki-project-ranking all.


Claude-Session: https://claude.ai/code/session_01NLZ6vs1jsWw2kKbpWTZHf2

Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-09-15 12:17:25 -07:00
CatoandClaude Opus 5 2d49a2d1c2 fix(register): heidi is served, and the register said it was a prospect (#727)
heidi.orangecat.ch answers 200 and has since it launched. Its apps.conf row
said `prospect`, and because the studio site derives from this register, that
word was rendered on heidi's public page.

`live` in this column means the process is SERVED — a provisioning fact, like
`client-app` two columns over. It is not a release claim, and nothing in this
fleet makes one: everything is beta, OrangeCat included (fleet AGENTS.md,
"Names agents must share"). So this row now reads `live` and bitbaum renders
"Beta — running, not released", which is both true statements at once.

src/config/fleet-sites.ts is derived from this file and is regenerated here
rather than hand-edited — scripts/test/fleet-sites-derived.ts caught the drift
before CI did, which is the entire point of having the pair.

Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-09-15 04:37:36 -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 Opus 5 a3f6b6805b chore(apps): heidi gets a database (#682)
heidi's row read `db=-`, meaning the deploy's schema step skipped it. It is
about to ship drizzle migrations for study groups, and `apply-schema.sh`
resolves the target database from THIS column rather than from the app's
DATABASE_URL — so without this line the migrations would be silently
skipped, exactly as botsmann and printcraft shipped green for months while
the pipeline never saw a file.

The database, role, pg_hba rules and credentials are provisioned on the box.
Provisioning set default privileges FOR ROLE postgres in heidi's public
schema, because the schema step runs as the superuser: a table a migration
creates is owned by `postgres`, and the app role is granted nothing on a
table it does not own. That is the failure vitareba's schema-usable health
check exists to catch, and on that database it was repaired by hand
afterwards — `pg_default_acl` there is still empty. Setting it before the
first table exists is cheaper than granting after every one.

The rest of the row was checked at the same time, per the lesson from the
hirnli/evig mix-up: port 4025 matches launch.sh, repo_path, domains, owner
and app_dir are all current. Only `db` was wrong.


Claude-Session: https://claude.ai/code/session_01FzYBD3sZroCAYeRgTYrpfT

Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-09-12 12:43:27 -07:00
Cato 69b5926ff4 chore(register): delete the six experiment sites, and gate what let them linger (#678)
* chore(register): delete the six experiment sites, and gate what let them linger

Six sites from dogfood and site-factory runs on 10-11 September were still
live today, five with GitHub repositories behind them. Two of them read as
real Zurich businesses that do not exist — "Velokiosk — Bike Repair at
Zürich HB" and "Kaffeeklappe – Kaffee to go in Zürich Wiedikon" — on the
founder's own domain. Nobody decided to keep them. They were never removed
once the thing they proved was proved.

All six are gone from the box (service, vhost, /opt, checkout, port, row,
workflows, and this box's deploy key revoked from each repo first), and the
five repositories are deleted. This removes their rows here, which had
drifted from the box copy.

The gate is the point. check-no-experiment-litter.sh fails the build when a
generated throwaway name reaches the committed register — a dated suffix
(-sep11-0040) or a throwaway prefix (dogfood-, factory-, probe-, e2e-). No
grace period: spinning one up for an hour leaves no trace here, so
committing its row IS the moment a test becomes permanent.

It matches names, not kinds. A first version judged kind=demo and flagged
sbb-fundbuero and camille-boulangerie, which are real work that happens to
sit at demo status — exactly the false positive that gets a gate widened
until it catches nothing. No product is ever called factory-sep11-0040.

* docs(retire): delete the project first, or the box puts the site back

Deleting the six sites in the obvious order looked like it worked — units
stopped, vhosts gone, directories removed. Two minutes later:

  [box-prepare] cloning velokiosk-sep10 <- github.com/bitbaum/velokiosk-sep10

and three of the six checkouts were back. A FleetCrown project row that
still names a dirPath is a standing instruction to restore the site, and
it is invisible from the box, so the box cannot know the site was retired
on purpose. The order is now part of the documented cleanup.
2026-09-12 10:39:22 -07:00
CatoandClaude Opus 5 e61615c5b7 Revert(register): sbb-fundbuero — the SBB name is the pitch, not drift (#649)
Reverts the rename I made earlier today. The demo is being pitched TO SBB, so
being named after the prospect is the artefact, not drift. The repo's own README
called the name "an open question, not a settled decision"; I settled it, and
that was not mine to do.

Row, domain, repo_path and the cron unit are back. Port 4016 never moved.
lib/tenant.ts is untouched: Nordbahn remains the neutral default tenant, SBB the
opt-in livery with noindex — the design that makes pitching it safe.


Claude-Session: https://claude.ai/code/session_01HVudRzEmLqLHvGNqFSpJq6

Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-09-11 06:37:49 -07:00
CatoandClaude Opus 5 1aa90a64f1 chore(register): sbb-fundbuero -> nordbahn-fundbuero on nordbahn.orangecat.ch (#642)
The repo and the public host both carried the name of a real transport company
this demo has no connection to. The site has always titled itself Nordbahn
Fundbüro, on an operator invented on purpose, and the repo's own Naming section
said the working name "is probably the wrong one". The addresses now say what
the product says.

  name       sbb-fundbuero            -> nordbahn-fundbuero
  domain     sbbfundbuero.orangecat.ch-> nordbahn.orangecat.ch
  repo_path  ~/dev/sbb-fundbuero      -> ~/dev/nordbahn-fundbuero (moved)
  cron unit  appcron-sbb-fundbuero-*  -> appcron-nordbahn-fundbuero-purge

Port 4016 is kept: it is an address with no name in it, and moving it would
mean a second migration for nothing.

nordbahn-fundbuero#74 already landed the app side (deploy `app:` input,
package.json, its own fallback URLs), so this row is what lets the new app be
provisioned. The old unit keeps serving until the new one is verified; the old
host then becomes a permanent redirect in its own vhost file, which sync-infra
cannot regenerate over — the pattern aoz and sink already use.


Claude-Session: https://claude.ai/code/session_01HVudRzEmLqLHvGNqFSpJq6

Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-09-11 05:29:12 -07:00
CatoandClaude Fable 5.1 abb00b911c feat(register): one register for every project, joined from the owners of each fact (#610)
* feat(register): one register for every project, joined from the owners of each fact

"Which projects do we have, and which one has a site, a FleetCrown profile, an
OrangeCat profile, a Solon organisation?" had no answer. It had seven: apps.conf,
this database, OrangeCat's, Solon's, bitbaum's companies.json, the public footer's
config, and 24 markdown dossiers. Each is right about its own facts and wrong
about the others; joined by hand they disagreed on 5 names, the footer named a
host that had been renamed and missed 12 live ones, the showcase listed hosts
the hosting register did not know, and Caddy served 38 vhosts of which the
register knew 23.

This does not add an eighth list. It adds the JOIN, computed from the owners:

  src/lib/register/apps-conf.ts   the one parser for apps.conf (hosting SSOT)
  src/lib/register/build.ts       pure join keyed on the canonical slug
  src/lib/register/solon.ts       Solon membership via its public org endpoint,
                                  reported UNCHECKED (not "none") when unreachable
  GET /api/fleet/register         public JSON — consumers derive, never copy
  /fleet                          the same join, rendered

The join key is the repository name. Names have drifted into several spellings
(aoz-housing/aoz-wohnen, datacat/datacat-web, s-ink/sink, sbb-fundbuero/
sbb-lost-found, wild-spirit/annushka); `canonicalSlug` folds every alias that
has actually bitten, and each is pinned by a test. The durable fix is three
nullable columns on user_projects — slug, hosted_app, solon_org_slug — with
scripts/backfill-project-registry.ts to assign them once (drizzle/0065; the
applier is filename-based, matching how 0064 was shipped).

The footer stops being a list anyone edits. src/config/fleet-sites.ts is now
GENERATED from apps.conf by scripts/generate-fleet-sites.ts (the footer is a
client component and cannot read the register at render, and Atlas needs static
anchors), with editorial copy kept in fleet-site-copy.ts keyed by slug. A gate,
scripts/test/fleet-sites-derived.ts, fails the moment the file drifts.

apps.conf itself gets two corrections found by comparing it with the box:
evig (live on 4004 from the main Caddyfile, never registered) and
hirnli.orangecat.ch, which revamp-info's app serves.

Not done here, on purpose: the bitbaum showcase still renders its own
companies.json — it moves to the API once this is live; annushka and bitbaum are
static Caddy roots with no app process and do not fit the register's app shape.

Verified: 145/145 unit files (24 new assertions in fleet-register, drift gate
green), tsc clean, register gates (port-alloc, register-reality, client-ledger)
green with the new rows.

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

* fix(register): evig row names its host database, revampit

The deploy-ready gate found drizzle migrations in the evig checkout and a
db of '-', which is the shape that let botsmann serve PGRST205 for months.
evig is not deployed by deploy.sh at all — its own workflow applies its
migrations — but the register should still say which database that is.

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

* fix(watchdog): evig left the hand-list the day it entered the register

The hand-list is built to die one row at a time: the test that failed is
the one that forces a duplicate out the moment apps.conf registers it.

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

---------

Co-authored-by: Claude Fable 5.1 <noreply@anthropic.com>
2026-09-11 00:23:03 -07:00
CatoandCato 7e38ca5e0e chore(register): add kaffeeklappe-sep11 (4032) (#606)
Co-authored-by: Cato <catomean@users.noreply.github.com>
2026-09-10 23:42:28 -07:00
CatoandClaude Fable 5.1 b06fde7d85 chore(register): factory-sep11-0110 on 4031 — second hosted creation, from the dedicated worktree (#603)
Created by the hosted runner from /home/ubuntu/dev/fleetcrown-factory (a git
worktree at origin/main, not the standalone output). This time the repo carries
.github/workflows and .nvmrc, its CI passed on push, and the register row
persisted in the tree. Its own PR because #602 was merged by the sweep between
its first and second commit, so the second never landed. Port 4031, not 4030:
the allocator saw 4029 live but unregistered and stepped past it.


Claude-Session: https://claude.ai/code/session_018Z7YRpgsEtNjRqr1usHMQY

Co-authored-by: Claude Fable 5.1 <noreply@anthropic.com>
2026-09-10 18:11:52 -07:00
CatoandClaude Fable 5.1 690d47a0aa chore(register): factory-sep11-0040 on 4029 — created by the hosted runner, then lost by a deploy (#602)
The first site the fleet created without a human at a terminal. Dispatched as a
`hosted_new_site` command (#598), claimed by the hosted runner 0.75 s later,
executed in 37 s with ok:true: repo bitbaum/factory-sep11-0040, Caddy vhost,
release 20260911-003309-c9d257c, unit factory-sep11-0040-app active, and the
promoted day-zero page served on :4029.

The register row it appended did not survive. The runner was pointed at
/opt/fleetcrown/app/scripts/hetzner/new-site.sh — Next's standalone output,
which deploy-hetzner.sh rsyncs with --delete on every ship. The vhost was
written at 00:32:53; app/ was re-synced at 00:34:12; the row was gone. A site
running on the box with no register entry is the camille failure again, eight
days of it compressed into eighty seconds. This restores the row by hand and
records what the runner should have been able to keep.

Also ships scripts/new-site-dispatch.ts to the runner: deploy-hetzner.sh syncs an
explicit list of scripts into /opt/fleetcrown/runner and the dispatch CLI was
not on it, so the only way to enqueue a site from the box was to copy the file
there by hand — which is how this one was enqueued.

Gates: test-port-alloc (6), test-register-reality (10), check-client-ledger
(demo kind, no terms owed) all pass with the row.


Claude-Session: https://claude.ai/code/session_018Z7YRpgsEtNjRqr1usHMQY

Co-authored-by: Claude Fable 5.1 <noreply@anthropic.com>
2026-09-10 17:55:38 -07:00
CatoandClaude Opus 5 b9c3ecc1f9 fix(register): sbb-fundbuero's app is at the repo root, not in frontend/ (#590)
The deploy failed with:

  resolved sbb-fundbuero → port 4016, dir 'frontend'
  scp: open local ".../sbb-fundbuero/frontend/.env.selfhost.local":
       No such file or directory

The app collapsed from four services plus a frontend/ into one Next
application at the repository root (bitbaum/sbb-fundbuero#63), so there is no
frontend/ directory any more. This register row still pointed at it, and it is
the row deploy.sh resolves paths from.

`.` is what most apps here already use — aoz-wohnen, petvity, revamp-info,
solon, vitareba and six others.

check-deploy-ready.sh green: 18 apps, CI and CD present for all.

Co-authored-by: Claude Opus 5 <noreply@anthropic.com>
2026-09-10 16:12:05 -07:00
CatoandCato 36ba1dd26c chore(register): add velokiosk-sep10 (4028) (#588)
Co-authored-by: Cato <catomean@users.noreply.github.com>
2026-09-10 15:57:38 -07:00
Cato 9d7c77e241 chore(register): coldstart-sep10-2339 on 4027 (#586)
Dogfood after #585: repo + deploy.yml exist; register hostname/port so
selfhost-deploy and sync-infra can find the app. Port 4027 (4024 is diplodoctor).
2026-09-10 15:13:59 -07:00
CatoandClaude Fable 5.1 71762e4649 fix(cold-start): register lands deploy.yml; scaffold installs/builds/serves (#585)
* fix(register): a site registered from the box gets its shim, its port, and its builder

Walked the cold start on production after #569 (velokiosk-sep10). The repo
was seeded; then four defects on the register-and-run path:

- The OAuth grant had no workflow scope, so GitHub refused to write
  .github/workflows/deploy.yml and register-site.sh carried on saying the
  remote may already have it. The grant now requests workflow; the script
  falls back to the host's own gh login for the shim and fails when the file
  is not on the remote.
- box() named no SSH identity; ubuntu's only key is the CI deploy key, so the
  box refused itself. box() passes DEPLOY_KEY_PATH when readable.
- The durable register was behind main and handed out a port main had already
  given away. Ports and conflicts are read from both registers, the durable
  checkout is fast-forwarded when all its rows are on main, and every new row
  goes to main as a PR.
- A dirPath under the box clone root was routed to the operator's laptop
  because it was present; that runner cannot clone on demand and reported
  "inject did not stick". projectChannelLock returns cloud for box-rooted
  workspaces.

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

* fix(scaffold): a new site that actually installs, builds and serves

Diplodoctor was scaffolded on 2026-09-10, provisioned completely — repo,
systemd unit, Caddy vhost, register entry — and served 502. Its session
diagnosed it and fixed it IN THE DIPLODOCTOR REPOSITORY. The template was left
exactly as it was, so the next site would have rediscovered the same three
faults from scratch. This is that fix moved to where it belongs.

The template was never internally consistent about its package manager. It
shipped no lockfile at all, yet its CI ran `npm ci`, which REQUIRES
package-lock.json — so a freshly scaffolded site's CI could not pass on its
first commit, or any commit. Meanwhile the box deploys with `pnpm run build`.
Two managers, one repo, and the half that ran in production was not the half CI
described. Everything here converges on pnpm, which is what actually ships.

  pnpm-workspace.yaml   NEW. `allowBuilds: sharp, unrs-resolver`. pnpm 11
                        refuses to run a dependency's build script unless it is
                        approved and EXITS NON-ZERO when one is not, so without
                        this a fresh clone cannot install and the deploy dies
                        before the build. It must not go in package.json's
                        `pnpm` field: pnpm 11 no longer reads that field and
                        ignores it with a warning, which makes the setting look
                        present while doing nothing.
  .nvmrc                20 -> 22. pnpm 11 imports node:sqlite, absent before
                        Node 22.13. Harmless while CI used npm; fatal the moment
                        it uses pnpm.
  ci.yml                npm -> pnpm throughout, and the Next cache key now
                        hashes pnpm-lock.yaml instead of package-lock.json — a
                        file that never existed here, and hashFiles() returns
                        an empty string for a missing path, so the key was
                        constant and the cache could never invalidate.
  package.json          `verify` uses pnpm; `packageManager` pins pnpm@11.25.0
                        so a stray `npm i` cannot mint a second lockfile.

Two things this also fixes that were not in diplodoctor's repair.

**The scaffold now resolves a lockfile into the first commit.** Without one the
repository is born unbuildable in two places at once: CI's
`pnpm install --frozen-lockfile` refuses to invent a lockfile, and the box
resolves versions afresh on every release, so the site that was verified is not
the site that ships. `--lockfile-only` keeps this to a few seconds and unpacks
no node_modules.

**next 16.2.4 -> 16.3.4.** The template was minting every new site with a
CRITICAL unauthenticated RCE — GHSA-2xp9-vwfh-vxw4, the Next image-optimization
hole, patched at >=16.3.3. orangecat was patched for this today; the scaffold
would have kept issuing fresh vulnerable sites afterwards.

**And the port race, which nearly shipped an hour ago.** Ports are allocated
from `apps.conf` in a LOCAL checkout, and this studio runs five to ten agent
sessions at once, each in its own worktree. A stale copy reports a stale highest
port. A dry run in one such checkout offered 4024 for a new site while origin
already had diplodoctor on 4024 and heidi on 4025 — two sites, one port, caught
by hand one command before it would have shipped. The script now fetches and
REFUSES when its register differs from origin/main, naming the pull that fixes
it, rather than guessing a number another session already took.

Verified: `bash -n` clean; a dry run against an up-to-date register allocates
4026 and the staleness guard passes.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018Z7YRpgsEtNjRqr1usHMQY

* chore(register): causius on 4026 — the first site the fixed scaffold built

causius.orangecat.ch is live: systemd active, HTTP 200, its own certificate, on
the first deploy. Diplodoctor needed two follow-up pull requests to reach that
same state yesterday; this one needed none, because the template was repaired
before it was used rather than after.

Registered as `product` / `validating` — ours, and not yet claiming to be a
live client engagement, so the client-ledger gate is satisfied without inventing
terms for something that has no customer.

Port 4026 came from a register that the new staleness guard had just verified
against origin. The stale local copy this was first attempted from offered 4024,
which diplodoctor already holds.

Deliberately NOT bought: causius.com and causius.ch are unregistered and stay
that way for now, by George's call. The site therefore lives at its free
orangecat.ch address, which is exactly the ladder /domains sells — start free,
move to your own domain later, keep every link alive. Dogfooding it means the
first customer of that offer is us.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018Z7YRpgsEtNjRqr1usHMQY

* fix(scaffold): site-template CI floor test expects pnpm

The scaffold now installs with `pnpm install --frozen-lockfile` (#583 onto
main). The floor test still demanded `npm ci`, so verify would fail every
run after the template switch even though the template itself is correct.

---------

Co-authored-by: Claude Fable 5.1 <noreply@anthropic.com>
2026-09-10 15:00:27 -07:00
CatoandClaude Opus 5 5412b7d769 chore(register): record the four live client engagements as favours, baseline 4 -> 0 (#572)
George, 2026-09-10, asked directly: all four are favours, nobody pays anything
yet. So they are no longer '-'.

  kivvi       RevampIT   favour|0
  aoz-wohnen  AOZ        favour|0     (AOZ Begleitung)
  vitareba    clinic     favour|0
  sink        S-Ink      favour|0

`favour|0` is a RECORDED ANSWER, not a placeholder. It is the opposite of '-':
'-' means nobody knows, `favour|0` means unpaid on purpose. Until now those two
states were indistinguishable, which is exactly why "what am I maintaining for
free" had no answer — the honest answer was "all of it", and nothing said so.

The ledger baseline therefore goes 4 -> 0, and that is the point of writing it
down rather than just knowing it. The ratchet may never rise, so the NEXT live
client engagement cannot silently become the fifth favour: it fails CI unless it
arrives with terms, and new-site.sh already refuses `--status live` on client
work without --plan/--price before the repo or box exist.

  ✓ client ledger: all 4 live client engagement(s) have recorded terms

TESTS DECOUPLED FROM THE FLEET'S COMMERCIAL STATE

Banking this broke three of the gate's own cases, which had pinned "at baseline",
"a baseline of 4" and "all 4 live client engagement(s)". A test that fails when
the thing it guards SUCCEEDS is measuring the register's contents, not the gate —
and it would have broken again on the first real invoice.

The ratchet-direction cases now build their own two-row register and their own
baseline, so they test the DIRECTION regardless of what the fleet charges. The
committed-register case asserts a verdict was produced rather than a count. Added
a case pinning the distinction this commit relies on: `favour|0` must read as
settled, or recording the truth would look identical to never having asked.

Verified: client-ledger 13 passed (1 new), deploy-ready 20, uptime-sweep 66,
apply-schema 34.


Claude-Session: https://claude.ai/code/session_01HVudRzEmLqLHvGNqFSpJq6

Co-authored-by: Claude Opus 5 <noreply@anthropic.com>
2026-09-10 13:14:10 -07:00
CatoandClaude Opus 5 fefdc64320 fix(register): name the host that actually serves, and stop calling a box path drift (#567)
Three defects, all the same shape: the register recorded an address that was
true once, and something downstream believed it.

1. aoz-wohnen's domain was a REDIRECT, not the canonical host

   The row said `aoz-wohnen.orangecat.ch`. That host only 301s to
   `aoz.orangecat.ch`, which is where AOZ Begleitung actually serves — the box's
   own vhost comment says so ("One product, one URL"), and George settled it
   months ago: "it should consistently be aoz. not wg, not aoz-wohnen."

   This was not cosmetic. sync-infra.sh rewrites /etc/caddy/apps.d/<name>.caddy
   from this field with an unconditional `tee`, so the next sync would have
   emitted a block for the redirect host only and DELETED the aoz.orangecat.ch
   site block — taking a live client's real URL off the air. Fixed by naming the
   canonical host.

2. revamp-info listed a domain that must NOT be generated

   `hirnli.orangecat.ch` is the same app, but it is served by a hand-maintained
   hirnli.caddy (the middleware reads the Host header for tenant chrome). Listing
   it here meant a sync would emit it a SECOND time inside revamp-info.caddy, and
   two site blocks for one address fails `caddy validate` — which sync-infra runs
   immediately before `systemctl reload`, so the reload aborts and every other
   app's pending vhost change silently fails with it.

3. A repo_path on the box was reported as drift, and blocked everyone

   dogfood-site-sep10-1201 was scaffolded directly onto the box, so its
   repo_path is /home/ubuntu/dev/... — a path that cannot exist on the laptop
   however healthy the fleet is. check-deploy-ready.sh called that drift and
   exited 1, failing pre-push for every laptop push, on a register row that was
   correct and a site serving 200. That is the category error this file's own
   header warns about: judging state that is not in front of you.

   Now split by DEV_ROOT: missing under DEV_ROOT is still drift and still fails;
   anywhere else is announced ("not checkable here — repo_path lives on another
   host") and does not fail.

   The CI/CD verdicts were also fixed to count what was INSPECTED, not every
   register row. With one app uninspected they said "all 16 deployed apps have
   it" — absence reading as success, one level up, in the number itself.

The register's `domains` field is provisioning input, not documentation: it must
name the host that serves, and must not name a host that must not be generated.
The register NAME (`aoz-wohnen`), the systemd unit, /opt path and `aoz_wohnen`
database keep the housing-era name on purpose — they are addresses nobody reads,
and renaming them is a migration. The product is AOZ Begleitung; its SSOT is the
app's own brand.ts. Comments now say all of this in the file itself.

Verified: deploy-ready gate 20 passed (2 new cases — a box-side path is
announced and does not fail; the verdict counts only inspected apps),
client-ledger 12, uptime-sweep 66, apply-schema 34.

NOT done here, needs a box change: aoz-wohnen.orangecat.ch's 301 still lives
INSIDE the generated vhost, so a sync drops it (bookmarks break, canonical
survives). It belongs in its own aoz-legacy-redirect.caddy, the way
sink-legacy-redirect.caddy already does it.


Claude-Session: https://claude.ai/code/session_01HVudRzEmLqLHvGNqFSpJq6

Co-authored-by: Claude Opus 5 <noreply@anthropic.com>
2026-09-10 12:18:42 -07:00
CatoandClaude Fable 5.1 cc135862c0 chore(register): add heidi (4025) and the missing diplodoctor row (4024) (#566)
heidi.orangecat.ch is provisioned on the box (unit, vhost, monitoring) and
needs this row on main before selfhost-deploy.yml can resolve it.

diplodoctor was provisioned today and is live on 4024 with a Caddy vhost,
but never got its apps.conf row — so the allocator's "max port + 1" would
have handed heidi the same port. Registering it is what made 4025 correct.


Claude-Session: https://claude.ai/code/session_01KXoMmDTW3jq6xb1JC1Yh4e

Co-authored-by: Claude Fable 5.1 <noreply@anthropic.com>
2026-09-10 12:05:27 -07:00
CatoandCato 43d9296ed1 chore(register): add dogfood-site-sep10-1201 to apps.conf (#553)
Registered on the studio box after #552 so Make it happen CD dogfood has a
durable apps.conf row (port 4023, orangecat.ch host).

Co-authored-by: Cato <catomean@users.noreply.github.com>
2026-09-10 03:37:42 -07:00
CatoandClaude Opus 5 95e85a511d feat(ci): ratchet the client ledger — no new live client work without terms (#534)
apps.conf carries plan/price columns that were added before the numbers
existed, on the explicit reasoning that "the gaps are the point — right now
'what am I owed this month' and 'what am I maintaining for free' are
unanswerable, which is why these columns exist before the numbers do".

That reasoning was right and nothing acted on it. All 15 rows still read
plan=- price=-, including four LIVE client engagements: kivvi (RevampIT),
aoz-wohnen (AOZ), vitareba (clinic) and sink (S-Ink). The columns made the
gap recordable; they did not make it visible, nothing ever read them, and
months of '-' looked exactly like having no clients. This is the reader.

  check-client-ledger.sh — counts LIVE client-app/client-site rows whose
  plan or price is '-'. Ratcheted at 4: may fall, never rise. Deliberately
  narrow — a product owes nobody an invoice, and a prospect with no price is
  honest, so both are excluded and the near-misses are printed rather than
  silently dropped.

  new-site.sh — the same rule, enforced earlier: --status live on client
  work now requires --plan/--price and refuses at argument validation,
  before the repo, the box and the deploy exist. CI would reject the row
  anyway, but by then the site is created, pushed and serving.

Not wired into the daily fleet-register-check on purpose: a recurring
message about a number that does not change is how alerts get muted. It
fires at the one moment the answer is cheap — the PR that puts a client
app live.

Proved by mutation, both directions, on copies (12 cases): a regression
goes red, an improvement goes green and prints how to bank it, products
are never counted, and a register with nothing to announce still reaches
its verdict. The last one exists because the two trailing announcements
are `[ -n "$x" ] && echo`, a shape that can end a `set -e` script early on
exactly the register that has nothing wrong with it.

Also fixes scripts/hetzner/verify.sh, which read 6 variables from a
12-field line, so $db silently carried "-|S-Ink|client-site|live|-|-|-" on
every row — harmless only while that loop ignores $db, and the same trap
app_lookup() in lib.sh already documents having been bitten by.

Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-09-08 11:27:13 -07:00
CatoandClaude Opus 5 ea4af6174d chore(register): rename sbb-lost-found to sbb-fundbuero (#529)
The app is now "SBB Fundbüro" and moves to sbbfundbuero.orangecat.ch. This
repo owns the register that provisioning reads, so the rename has to land
here before the app's next deploy: sync-infra.sh generates the unit and the
Caddy vhost from apps.conf, and deploy.sh resolves /opt/<name> from the same
line. A rename in the app repo alone would deploy to a directory the Caddy
vhost does not serve.

Changed only what is operationally load-bearing plus the docs table:
apps.conf (name, domain, repo path), the public site list, the URL seed, the
runner hardening InaccessiblePaths, and the port/domain table. Historical
incident comments that mention sbb-lost-found are left alone — they record
what happened under that name, and rewriting them would make them false.


Claude-Session: https://claude.ai/code/session_01NfPenJdSXVtN8SQ9wHG4Hp

Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-09-08 08:43:20 -07:00