25 Commits
Author SHA1 Message Date
Catoandbitbaum-fleet 04cc36aa59 chore: add the fleet package template files this repo is missing (release-notify-tagged.yml) (#28)
Files from bitbaum/fleet `templates/package` that this repository does not have yet:

- `.github/workflows/release-notify-tagged.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>
2026-11-14 10:17:16 +01:00
bitbaum-fleet 63b29bb88d release v0.4.0 v0.4.0 2026-11-10 08:47:13 +00:00
Cato 64a3762fb3 feat(smtp): send through the app's own mail server as well as Resend (0.4.0) (#27)
MAIL_TRANSPORT=smtp (or { transport: "smtp" }) hands mail to the app's SMTP
server via nodemailer, an optional peer loaded only then. Resend stays the
default and SMTP is never inferred from which variables exist. Same call, same
never-throwing result; tests drive a real SMTP conversation on a local socket.
2026-11-10 09:34:21 +01:00
CatoandClaude 6285d57ff0 feat(template): one HTML email layout, signed one-click unsubscribe (0.3.0) (#26)
Extracted from OrangeCat's email layout and made brandable: the brand colour
and the product's name were written into it, it was English only, it had no
dark mode and it took raw HTML for the heading and body.

- renderMail(brand, content) -> { html, text }: content is plain text and
  escaped (only **bold**), dark mode, Outlook button, plain-text twin,
  preheader, 8 block kinds. Links must be http(s)/mailto.
- The footer is a required key: reason always, unsubscribe {label,url} or
  null (null only for mail asked for this minute).
- signUnsubscribe / verifyUnsubscribe (HMAC, no expiry) and
  listUnsubscribeHeaders (RFC 8058 one-click).
- sendMail takes headers.


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

Co-authored-by: Claude <noreply@anthropic.com>
v0.3.0
2026-11-10 06:47:34 +01:00
Catoandbitbaum-fleet d799d01a52 docs(agents): the org rules block, generated from bitbaum/fleet (#25)
Co-authored-by: bitbaum-fleet <fleet@bitbaum.invalid>
2026-11-06 09:57:47 +01:00
CatoandClaude 09829b1137 chore(deps): clear dev-toolchain audit findings inside existing ranges (#24)
pnpm audit critical/high (all deps):
  .: 0/4 -> 0/0


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

Co-authored-by: Claude <noreply@anthropic.com>
2026-10-30 22:29:40 +01:00
Catoandbitbaum-fleet 1fbfc67918 docs(agents): the org rules block, generated from bitbaum/fleet (#23)
Co-authored-by: bitbaum-fleet <fleet@bitbaum.invalid>
2026-10-30 10:40:07 +01:00
Cato cda8b6b498 fix(release): apply verified build-output staging contract (#22) 2026-10-29 01:32:59 +01:00
Cato 0aa1cd414f chore(deps): dependabot leaves TypeScript 7 alone until typescript-eslint supports it (#20) 2026-10-28 03:33:19 +01:00
Catoandbitbaum-fleet 9638a289fd docs(agents): the org rules block, generated from bitbaum/fleet (#19)
Co-authored-by: bitbaum-fleet <fleet@bitbaum.invalid>
2026-10-28 03:04:20 +01:00
Cato cf6af63c67 docs: record verified release history and its evidence limits (#18) 2026-10-28 00:19:57 +01:00
Catoandbitbaum-fleet 33eb8f69a9 chore: add the fleet package template files this repo is missing (release-notify.yml) (#17)
Files from bitbaum/fleet `templates/package` that this repository does not have yet:

- `.github/workflows/release-notify.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>
2026-10-26 20:53:06 +01:00
Catoandbitbaum-fleet 174e5850a2 chore: add the fleet package template files this repo is missing (AGENTS.md, CLAUDE.md) (#16)
Files from bitbaum/fleet `templates/package` that this repository does not have yet:

- `AGENTS.md`
- `CLAUDE.md`

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>
2026-10-26 12:06:04 +01:00
Catoandbitbaum-fleet 2086b4acaf chore: add the fleet package template files this repo is missing (dependabot.yml, git-release.yml, release.yml) (#11)
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>
v0.2.0
2026-10-25 09:31:07 +01:00
CatoandClaude e9a1f6026d docs(readme): the one-address example names no product's door (#10)
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>
2026-10-23 11:11:30 +02:00
CatoandClaude 1545d0ca86 ci(publish): allow publishing a merged version by hand (#9)
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>
2026-10-22 11:08:35 +02:00
CatoandClaude 532eaf29d6 feat: one address per app, mail to apps, and AI triage (v0.2.0) (#8)
- 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>
2026-10-22 11:02:47 +02:00
CatoandClaude Opus 5 adc31b76c6 docs: link back to bitbaum, and to who uses this package (#7)
Claude-Session: https://claude.ai/code/session_01DzY8KuwgUM7u95GVTpRL2m

Co-authored-by: Claude Opus 5 <noreply@anthropic.com>
2026-09-17 01:03:03 -07:00
CatoandClaude Fable 5.1 572f43fdeb fix: the sending domain is DNS, not the product name (#6)
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>
2026-09-13 16:41:06 -07:00
CatoandClaude Fable 5.1 5327df357a chore: rename FleetCrown to Loki (#5)
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>
2026-09-13 16:24:44 -07:00
CatoandClaude Fable 5.1 6df3c866a6 ci(publish): make publishing idempotent so a second run is green, not E403 (#4)
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>
2026-09-10 18:05:15 -07:00
CatoandClaude Opus 5 5bbf4ed9b6 ci(auto-merge): correct the reason this repo passes a PAT (#3)
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>
2026-09-07 15:54:13 +00:00
CatoandClaude Opus 5 d1de3a167c ci(auto-merge): hand the sweep a PAT so workflow PRs stop stalling (#2)
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>
2026-09-07 14:58:48 +00:00
f89b0a46d6 ci(publish): tokenless OIDC trusted publishing + v0.1.1 (#1)
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>
v0.1.1
2026-09-05 13:54:34 +00:00
Mao NakamotoandClaude Fable 5 076e8606ee feat: @bitbaum/mail-kit v0.1.0 — the fleet's one email layer
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
v0.1.0
2026-09-05 11:49:50 +02:00