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>
Reported from a phone 2026-08-26: the Activity page is "useless" — every row
read "assembled operator dispatch (brief + goals + autopilot rules; full text
hidden)" or just "custom", the same work appeared twice, and the generated
reports were vague filler. All three had the same root: the page rendered
records, not work.
The prompt text was never missing, only suppressed. lib/inject-prompt.ts wraps
each dispatch in ~2,000 words of preamble, context blocks and an exit contract,
and promptDisplayBody responded by hiding the whole envelope. extractOperatorTask
now unwraps it — a user-typed prompt comes back verbatim from its "Your task"
section, an intent dispatch keeps its rendered body — and every row can expand
to the exact bytes that were sent. A row with genuinely no recorded text says so
instead of printing the intent slug "custom" as if it were content.
One unit of work is now one row. A dispatch writes prompt_history AND
orchestration_runs; the feed rendered both, so each action appeared twice at the
same minute and neither copy was complete — the first had the ask with no
outcome, the second an outcome with no ask. lib/activity-events.ts joins them by
(project, adapter, intent) within a 2-minute window, consuming each dispatch at
most once by closest time so a burst pairs 1:1. Both half-events still render:
a dispatch nothing ran is "Sent" (your work is queued, not lost), a run with no
dispatch row shows its outcome with an honest empty ask.
The report was summarising the placeholder. buildUserPrompt fed the model
timeline PROMPT bodies only — never an outcome, duration or error — so it
structurally could not say what happened or what broke. It now reads the joined
events: failures first with their real cause (the blocked-event reason, not the
reaper's circular "exceeded max duration"), then completions with what the agent
reported doing, then in-flight work, then the agents' own next steps. Extracted
to lib/digest-input.ts so the thing deciding what the model is told is testable
without a database.
The page is triage-first. Counts at the top ARE the filter, so the number that
provokes the question is the control that answers it; rows group under Today /
Yesterday headings so the date is not reprinted twenty times; a failed row gets
a rail and a one-tap "Open session". Each row reads top-down at any width —
project/outcome/when, then the ask, then what came back, then what is next —
and simply drops lines it has nothing true to put in. The page-wide compact/
detailed toggle is gone: rows expand individually, so "more of THIS one" no
longer reflows the whole page. The static per-outcome tally line is gone too —
the triage tabs carry those counts and act on them.
Removed the now-unread parallel `timeline` representation rather than
maintaining two shapes of the same facts; the digest-email cron gates on the
same `events` the report is built from.
Verified: tsc, lint, check:design, and test:unit (94/94 files, +3 new suites
covering envelope extraction, the dispatch/run join and the report input).
Not visually verified — this container has no Postgres, so the dev server and
the authenticated responsive audit cannot run here.
Claude-Session: https://claude.ai/code/session_019imtHmWBrC94hVK1EMTpzi
Co-authored-by: Claude <noreply@anthropic.com>