* feat(research): runs record what their search backends did, and /api/health/web says it now
The event sweep and producer sourcing failed for a day on production with
nothing on /data/freshness but "no search reached a search backend".
- Each sweep and sourcing run records its search backends' outcome in
ai-kit's own words (search_note, e.g. "searxng unreachable"); migration
018 adds the column. /data/freshness shows it beside a failing run.
- /api/health/web searches once for a fixed phrase and reports which
backends are configured (names only) and what each did. One probe per
ten minutes, shared by concurrent callers.
- docs/operations/auto-updates.md: what runs, when, what it needs, where
it leaves a trace, and what to do when a run is failing.
Claude-Session: https://claude.ai/code/session_019MDtmuvTGrpo3VChP3skH8
* fix(data-layer): read double-quoted identifiers in migrations
declaredObjects read `CREATE TABLE IF NOT EXISTS "users"` as a table named
"if", so 017-accounts.sql looked incomplete on any database that predates
the ledger: it would be re-run, and the ownership hand-over would miss its
real tables. CI's real-Postgres test caught it once 017 stopped being the
newest file ("must be owner of table accounts").
Tables, indexes, ALTER TABLE targets and added columns may now be quoted.
Claude-Session: https://claude.ai/code/session_019MDtmuvTGrpo3VChP3skH8
---------
Co-authored-by: Claude <noreply@anthropic.com>
* feat(deploy): the deploy applies migrations, installs timers and runs the one-time price backfill
Before the release goes live, deploy.yml now applies pending scripts/db/*.sql
(one transaction each, recorded in public.schema_migrations, first run checks
existing objects before baselining) and installs deploy/systemd units. A failure
stops the deploy with the live release untouched. After the release, the price
backfill runs once and is recorded in public.schema_oneshots.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018WZnBnaLP6RhwFkLxRTKgE
* docs: name no migration file that does not exist
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018WZnBnaLP6RhwFkLxRTKgE
---------
Co-authored-by: Claude <noreply@anthropic.com>
Refuses until substrata.ch and www resolve to the box (Let's Encrypt
rate-limits failed validations). Then: Caddy serves substrata.ch, www and
substrata.orangecat.ch 308 to it with the path kept; health checked;
AUTH_URL switched; restart; old-link redirect checked. Backs up and
restores on a failed caddy validate. The Caddy block was validated against
a copy of the box's live config (and a broken block fails that check).
Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>