Files from bitbaum/fleet `templates/package` that this repository does not have yet:
- `.github/dependabot.yml`
- `.github/workflows/git-release.yml`
- `.github/workflows/release.yml`
Only missing files are added — no file this repository already has is changed. `release.yml` is what lets the package owner release a new version from Loki (the package page: "Release vX.Y.Z"), or from the Actions tab.
Opened by bitbaum/fleet `scripts/packages/sync-package-template.mjs` (`.github/workflows/package-repos.yml`). It merges itself when this repository's CI is green.
Co-authored-by: bitbaum-fleet <fleet@bitbaum.invalid>
The fleet's org-drift audit reads every package README and fails when one
names a door (a host in apps.conf) that is not its own; the example here
named skif's, which turned fleet's main red on 2026-10-22. The example is
now the pattern, not a product.
Claude-Session: https://claude.ai/code/session_018WZnBnaLP6RhwFkLxRTKgE
Co-authored-by: Claude <noreply@anthropic.com>
A manual run on main publishes package.json's version (the provenance
attestation names the commit); the tag-match check applies only to tag
pushes. Needed because an automated session cannot push tags, and a
merged version that is never published reaches nobody.
Claude-Session: https://claude.ai/code/session_01TTH5cy8bKmEqzdTyAsbbT8
Co-authored-by: Claude <noreply@anthropic.com>
- 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>
One merge starts Publish twice — the PAT-made push and the auto-merge
sweep's workflow_dispatch re-arm, seconds apart. Both ask the registry
before either publishes, both build, and the loser gets E403 "cannot
publish over previously published versions" (bip-kit 0.2.6, 0.2.7 on
2026-09-11). A red run that means nothing is wrong teaches everyone to
ignore the workflow.
- concurrency group "publish", never cancelled: the second run waits,
then sees the version on the registry and skips
- registry check writes a green step summary ("already published —
nothing to do") and gates install/verify/publish
- npm publish failure is re-checked against the registry: if the
version is there, that is the goal state, not an error
OIDC trusted publishing, verify-before-publish, tag checks and the
re-arm list are unchanged.
Claude-Session: https://claude.ai/code/session_01WqKqMnHQHSmkGFfc5t7Rxn
Co-authored-by: Claude Fable 5.1 <noreply@anthropic.com>
The comment added a few hours ago says GITHUB_TOKEN cannot merge a PR that
touches .github/workflows. That is contradicted by this fleet's own history:
github-actions[bot] merged datacat#253 and ai-kit#42 today, and both change a
workflow file. I asserted it from the reusable workflow's docstring without
checking, then found the counter-evidence while looking for something else.
Two stalled PRs were offered as proof and neither survives either. ai-kit#11
opened 2026-08-29 and this repo's sweep was not added until 2026-09-04, so for
most of that PR's life nothing was sweeping at all. aoz-housing#122 is still
unexplained — I merged it before diagnosing it, which destroyed the evidence.
The THROUGHPUT reason is unaffected and is why the line stays. A dispatch made
with GITHUB_TOKEN triggers no workflows — the same rule the deploy reconciler
exists for — so after a merge the re-armed CI run's completion fires no
workflow_run and nothing wakes the sweep for the next PR. It waits for the
cron, which GitHub throttles: fleetcrown's sweeps land 50-65 minutes apart
against a */10 schedule. A PAT-created dispatch does emit workflow_run.
The wrong claim is recorded in the file rather than quietly deleted, so the
next reader does not re-derive it from the same docstring I did.
No behaviour change: an undefined secret still resolves to empty and the
reusable workflow still falls back to github.token.
Claude-Session: https://claude.ai/code/session_01UvjGNAS9CMfEGNW26tUR4P
Co-authored-by: Claude Opus 5 <noreply@anthropic.com>
GITHUB_TOKEN cannot merge a PR that touches .github/workflows. The sweep tries,
the merge API refuses, it logs "leaving for the next sweep", and repeats — while
still exiting 0. So the failure is invisible: every run reports success and the
PR simply never merges.
That is not hypothetical. ai-kit #11 (bump actions/checkout) sat green, CLEAN
and MERGEABLE for nine days; aoz-housing #122 (bump actions/upload-artifact)
for nine more. Both had to be merged by hand today. Every Dependabot
`github_actions` bump in the fleet is in this class, permanently.
A PAT fixes a second thing that costs more: THROUGHPUT. A dispatch made with
GITHUB_TOKEN emits no workflow_run, so after each merge nothing wakes the sweep
to take the next PR — it waits for the cron, and GitHub throttles scheduled
workflows to roughly hourly regardless of what the cron says. Observed in
fleetcrown: sweeps ~50-65 minutes apart against a */10 schedule. A PAT-created
dispatch does emit workflow_run, so the queue drains at CI speed instead.
The reusable workflow has always supported this — GH_TOKEN is
`secrets.token || github.token`. This just passes it.
SAFE BEFORE THE SECRET EXISTS: an undefined secret resolves to empty, and the
fallback picks github.token. So this changes nothing until FLEET_PAT is created
as an organisation secret, and needs no second pass afterwards.
Claude-Session: https://claude.ai/code/session_01UvjGNAS9CMfEGNW26tUR4P
Co-authored-by: Claude Opus 5 <noreply@anthropic.com>
npmjs.com now trusts this repo+workflow (trusted publisher configured
2026-09-05): the NPM_TOKEN skip-dance is gone, a version tag publishes
unconditionally via the OIDC exchange npm >= 11.5 performs itself, and
npm (not pnpm) runs the publish step because the npm CLI implements
that exchange natively. v0.1.1 carries no code change — it exists to
prove the tokenless path end to end.
Claude-Session: https://claude.ai/code/session_01WqKqMnHQHSmkGFfc5t7Rxn
Co-authored-by: Mao Nakamoto <41178744+maonakamoto@users.noreply.github.com>
Co-authored-by: Claude Fable 5 <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