- address: every app's address is hello@<its own host> (appAddress,
appAddressFromEnv), and sendMail sets it as Reply-To on every message,
so answers reach the app while mail still leaves the shared sender.
- inbound: the contract between the fleet mail gateway and an app.
InboundMail, HMAC-signed with a timestamp (signInbound/verifyInbound);
inboundHandler() refuses unsigned, tampered, stale or oversized
deliveries and answers 500 when storing fails so the gateway retries.
- triage: triageMail(mail, complete, context) asks any model for kind,
urgency, summary, language and needsHuman; never throws, falls back to
rules marked by: "rules", and treats instructions in a mail as content.
Still zero runtime dependencies.
Claude-Session: https://claude.ai/code/session_01TTH5cy8bKmEqzdTyAsbbT8
Co-authored-by: Claude <noreply@anthropic.com>
The rename sweep turned FLEET_SENDER_DOMAIN into loki.orangecat.ch, but only
fleetcrown.orangecat.ch is verified in Resend; every fleet app would have
sent from an unverified domain. Restored, with a comment that says why the
old name is the correct value here.
Claude-Session: https://claude.ai/code/session_016YJVAanfj8keVSXyZnTemh
Co-authored-by: Claude Fable 5.1 <noreply@anthropic.com>
The product was renamed on 2026-09-14: bitbaum/loki, loki.orangecat.ch,
LOKI_* env keys, loki-* units. This repo referenced the old name in
4 files changed, 6 insertions(+), 6 deletions(-).
Email addresses at the old sending domain stay until the new domain is
verified in Resend.
Claude-Session: https://claude.ai/code/session_016YJVAanfj8keVSXyZnTemh
Co-authored-by: Claude Fable 5.1 <noreply@anthropic.com>
Born from the 2026-09-05 email sweep: ~12 bespoke implementations across
three provider styles, and a dead Brevo SMTP credential that silenced
evig+kivvi outbound mail for months unnoticed. One provider (Resend over
raw fetch, zero deps), one env contract (RESEND_API_KEY + RESEND_FROM),
one call shape: sendMail() that never throws and returns honest
{sent}|{error,status,retryable}; isMailConfigured() treating placeholder
keys and production sandbox senders as UNCONFIGURED; mailHealth() for
health endpoints; the <app>@fleetcrown.orangecat.ch sender convention
encoded once. 15 tests, golden pnpm CI, tag-driven publish, fleet
auto-merge.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WqKqMnHQHSmkGFfc5t7Rxn