Commit Graph
116 Commits
Author SHA1 Message Date
Claude 10732a37a7 feat(ci): fleet workflows prefer a short-lived GitHub App token
Each job that used secrets.FLEET_PAT first mints an app token when
vars.FLEET_APP_ID is set and uses it, falling back to FLEET_PAT otherwise, so
nothing changes until the owner creates the app (docs/fleet-app-token.md).
FLEET_PAT is one person's token over every repository; an app token lasts an
hour and carries only the app's permissions. 56 uses in 31 workflows;
actionlint reports nothing. Stacked on the daily package train, which edits
the same workflow.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019MDtmsUci3JMszzVB3ZhZZ
2026-11-16 05:56:27 +00:00
Claude 023c36fa64 feat(currency): one package train a day, with an urgent lane
Every trigger used to refresh the rolling update PR in every behind repo. On
2026-11-15 chatkit released 12 times and each release fanned out to ~25 repos,
each push running CI, browser smoke, the sweep and a deploy; 742 floor raises
merged in the 30 days before, a quarter of all merges. Now a run inside 20 hours
of the last run whose plan actually ran stops at its first step, so at most one
train a day carries every package that moved. The schedules and the release
dispatch stay as chances to run, since GitHub drops scheduled runs. A manual
run with urgent=true skips the wait for a fix that cannot.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019MDtmsUci3JMszzVB3ZhZZ
2026-11-15 21:26:39 +00:00
CatoandClaude f751ea3588 fix(currency): a declaration already at its target is skipped, not a failure (#551)
A release is now announced twice (CI, then the tag workflow), so two updater
runs can race: the first raises ^1.29 to ^1.30, the second finds ^1.30 where
it planned ^1.29 and threw "Stale declaration". ai-kit 1.30 on 2026-11-15:
six bump jobs red, every app already on ^1.30. A declaration already equal to
the target is now logged and skipped; any other change is still refused.


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

Co-authored-by: Claude <noreply@anthropic.com>
2026-11-15 14:09:55 +01:00
CatoandClaude 5086123de6 fix(currency): a branch that moved since the plan no longer stops its bump; the declaration is the lease (#535)
The updater plans once for every repository and bumps three at a time. The
bump step refused a repository whose main had moved at all since the plan.
A busy repository lost that race on every run: nine of thirty bumps failed
with 'Source changed since planning' on 2026-11-13, orangecat among them,
so it never received ai-kit 1.27 (the fleet usage log).

What must not have changed is the declaration being raised, and the step
already checks that line by line ('Stale declaration'). A moved branch is
now noted, not fatal; pnpm resolves against the tree as it is.

preferred-package-update.test.mjs: a stale declaration is still refused; a
moved branch with the planned declaration is bumped.


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

Co-authored-by: Claude <noreply@anthropic.com>
2026-11-13 22:04:13 +01:00
CatoandClaude fdd7b6ad19 ci: report a package released on GitHub but not on npm, with the fix (#531)
bip-kit 0.7.0 and 0.7.1 were tagged while npm served 0.6.1 for three days:
npm Trusted Publishing did not trust the workflow (ENEEDAUTH) and the only
trace was a red run in bip-kit's own Actions tab. It stalled Solon's and
OrangeCat's cross-posting behind the rollout gate.

npm-publish-lag-audit.mjs compares every registered npm package's version on
main with npm's latest; after a two-hour grace it opens (or updates) one
fleet issue naming the npm Trusted Publisher link and every value to enter,
and closes it when npm catches up. Runs every three hours; the pure
judgement has a self-test, also run in CI.

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

Co-authored-by: Claude <noreply@anthropic.com>
2026-11-13 11:57:45 +01:00
CatoandClaude 46aaba39d2 ci: a commit's runs are read to the last page, so a long-lived tip keeps its CI (#528)
actions/runs?head_sha= answers 100 runs a page, and three scripts read
only the first. A tip that stays the tip collects a sweep dispatch every
quarter hour on the same commit, so after about a day its own CI falls to
page two. On 2026-11-12 kivvi's e64eaec carried 129 runs, its green ci.yml
and browser-smoke.yml at positions 124 and 125, and the package rollout
gate held every @bitbaum/limitkit consumer (solon #569) behind 'wait for
bitbaum/kivvi to deploy this artifact and pass CI/browser checks' on a
canary that had deployed, matched its receipt and passed both.

- runs-for-sha.mjs: everyRunForSha reads every page, newest first, and
  throws past ten pages instead of answering from a cut list.
- The rollout gate, the Git package currency check and the deploy
  freshness audit read through it.
- runs-for-sha.test.mjs: the kivvi shape (127 newer dispatches) counts the
  buried green runs; a run created mid-read neither hides nor invents one.

Checked against live data: the gate on solon #569 exits 1 with the message
above before this change and 0 after it.

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

Co-authored-by: Claude <noreply@anthropic.com>
2026-11-12 18:32:36 +01:00
CatoandClaude 0b9b94e1f3 feat(packages): rename-package codemod for the @bitbaum scope move, with a self-test (#495)
Dry run by default; renames specifiers and dependency keys only, never prose,
lockfiles or changelogs (docs/package-scope-migration-plan.md, step 3). Status
table records what is published.


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

Co-authored-by: Claude <noreply@anthropic.com>
2026-11-06 14:04:11 +01:00
CatoandClaude cb31c58dab feat(auth-parity): Lightning login is part of the standard (#465)
Every app on AccountKit's screens now serves and shows Lightning login
(LNURL-auth): proven on the canary with a real LUD-04 signature, then
switched on per app. The daily check now fails an app on the standard
that drops it.


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

Co-authored-by: Claude <noreply@anthropic.com>
2026-11-03 02:50:59 +01:00
CatoandClaude 6c7016af7c feat(ci): no repo loads fonts from Google; content sites get browser evidence (#452)
Google Fonts audit (scripts/ci/google-fonts-audit.sh, daily in
google-fonts.yml, tested in CI): every repo's shared branch is swept for
an import of next/font/google or a fonts.googleapis.com /
fonts.gstatic.com URL in code. Comments, tests, markdown, vendoring tools
and fonts/faces.json are not judged. google-fonts.baseline lists what is
left, with where each move to @bitbaum/design-tokens stands; it may fall
or hold, never rise. One central check instead of a test copied into
every app (kivvi and vitareba each wrote their own).

Static browser smoke (.github/workflows/static-browser-smoke.yml +
scripts/test/static-browser-smoke.mjs): a content site with no accounts
or database calls it from its browser-smoke.yml, the workflow the
package rollout gate requires of a consumer. It builds, serves the
production build, draws each path at 320/390/1280px, fails on an error
status or any Google Fonts request, warns on overflow and keeps the
screenshots. Playwright is installed pinned in the runner, not in the
site's lockfile.


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

Co-authored-by: Claude <noreply@anthropic.com>
2026-11-02 23:13:55 +01:00
CatoandClaude 18f5a8c635 feat(auth-parity): hold the apps on AccountKit's screens to one standard (#444)
The daily check only failed on a method that was configured but not shown.
Fourteen apps now run AccountKit's own screens, and the owner asked that they
be uniform; nothing caught one that drifted.

- `standard: true` (the fourteen, and keller): every method but Morulia's is
  on, drawn in AccountKit's order (OrangeCat, passkey, sign-in link,
  recovery), and the links between sign-in and sign-up say AccountKit's own
  words, read from the published package the workflow installs.
- `served: false`: keller, which has accounts but is not served (keller#9),
  is listed and not probed.
- `ownProviders`: Loki's own GitHub sign-in is not counted as Morulia's
  button.
- datacat and reparaturbonus-zh run AccountKit directly now, so their 2FA is
  asked of the server.


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

Co-authored-by: Claude <noreply@anthropic.com>
2026-11-02 21:47:22 +01:00
CatoandClaude e19b6edbfd feat(auth): a daily live check of every sign-in method, and the full inventory (#429)
The owner's rule (2026-11-01): every app offers every sign-in method on every
auth page: email + password, the sign-in link, passkey, 2FA, recovery,
OrangeCat, and Google/Apple/GitHub/X/Facebook through Morulia.

- docs/auth-parity-2026-11-01.md: every non-archived bitbaum repo with a
  sign-in page (20, up from 16), its runtime, what its live page shows, and
  whether it is an OrangeCat and a Morulia client; the repos with none; what
  each app still lacks; how the morulia, loki and orangecat PRs of the same
  day register the rest.
- scripts/ci/auth-parity.mjs + auth-parity.yml: daily, Chromium at 390px plus
  the server's own answers. Fails on configured-but-missing and shown-but-
  broken (an IdP refusing the authorize leg, a recovery link that does not
  load, a button whose provider is not mounted); not-configured-yet is
  reported only. Read-only: no account, no credential, no mail.
- auth-parity.test.mjs pins the verdicts; ci.yml runs it.

Today's run: one failure, hirnli serves passkeys its page does not offer.


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

Co-authored-by: Claude <noreply@anthropic.com>
2026-11-01 21:46:47 +01:00
CatoandClaude Opus 5.5 3c4ad8ab90 test(auth): the shared journey proves the OrangeCat and shared sign-in buttons (#428)
* test(auth): the shared journey proves the OrangeCat and shared sign-in buttons

The shared account journey covered password, recovery, passkeys, the second
factor and the sign-in link, but no OIDC leg (auth-parity 2026-10-30, finding
12). An app could lose "Continue with OrangeCat" or the shared sign-in
(the Morulia button) and every journey stayed green.

A new `oidc` scenario, run by shared-auth-journey.yml after the others:

- starts the app with ORANGECAT_OAUTH_* and SIGNIN_* pointing at two test
  issuers served by the journey itself (discovery and an authorize endpoint
  that only records the arrival; no token is issued);
- asserts both buttons on the sign-in and sign-up pages, with the app's own
  localised labels;
- clicks each one and asserts that the browser reaches that button's own
  issuer with its client id, a code flow, PKCE S256 and a callback on this
  app.

Every product on the shared journey (biaslens, causius, diplodoctor, heidi,
solon) runs it unchanged. Checked locally against a biaslens production build
and Postgres: oidc and recovery pass.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019MDtmuJhiHPASaR5k8raL9

* style: format the oidc scenario

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019MDtmuJhiHPASaR5k8raL9

---------

Co-authored-by: Claude <noreply@anthropic.com>
2026-11-01 21:39:15 +01:00
CatoandClaude 7171e60328 feat(repos): keep each declared repo's description and homepage (#414)
A rename keeps the old description, and bitbaum/morulia still pointed at
signin.orangecat.ch; an agent session may not write repo settings. App
repos now sets each declared repo's description and optional https
`homepage` from the register on every run (only those two fields, best
effort). morulia declares https://morulia.orangecat.ch. The register
also notes that the old name of a renamed repo redirects to it, which
retiring tools must allow for (loki#1504).


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

Co-authored-by: Claude <noreply@anthropic.com>
2026-11-01 10:14:31 +01:00
CatoandClaude 3e9832d3a9 fix(repos): a new app repo starts with the auto-merge caller on main (#384)
The sweep runs from the default branch, so an app repo created empty has
no auto-merge.yml on main and never merges a PR: bitbaum/signin #1 sat
green and clean for 50 minutes until its author pushed the caller to
main by hand.

create-app-repos.mjs now commits templates/app-repo to main right after
creating the repo. That folder holds one file, the fleet auto-merge
caller with no deploy settings, since a new repo deploys nothing. No
placeholder CI is seeded: a CI that tests nothing would make green mean
nothing, so the register says the first PR must add ci.yml. Tests pin
the seed list, that the caller calls the fleet sweep and names no deploy
workflow, and the contents-API call.


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

Co-authored-by: Claude <noreply@anthropic.com>
2026-10-30 22:56:26 +01:00
CatoandClaude Opus 5.5 0ce7fac79e fix(repos): the existence probe captures gh's stderr, where the 404 is (#380)
* fix(repos): the existence probe captures gh's stderr, where the 404 is

repoExists ran `gh api repos/bitbaum/<name>` with stderr inherited, so
error.stderr was empty and the 404 that means "missing" never reached
the check: every missing repo read as "could not determine whether it
exists" and the run failed closed. Package repos never hit it because
every declared one already existed; App repos hit it on its first run
(bitbaum/signin, run 41126518242: "gh: Not Found (HTTP 404)" in the log,
then the error).

The probe now asks for stderr to be piped, and a test pins that.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019MDtmtfd1xjdH3XtnyNjXr

* fix(repos): App repos re-runs when the shared probe it imports changes

create-app-repos.mjs imports repoExists and toCreate from
scripts/packages/create-package-repos.mjs, so a fix there (this PR's)
must re-run App repos too.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019MDtmtfd1xjdH3XtnyNjXr

---------

Co-authored-by: Claude <noreply@anthropic.com>
2026-10-30 21:56:18 +01:00
CatoandClaude 5896cda44c feat(repos): app and service repos come from a declaration (#379)
An agent session's GitHub integration may not create org repos (403 on
POST /orgs/bitbaum/repos), so bitbaum/signin waited on an owner's click.
package-repos.yml already solves this for packages with FLEET_PAT; this
does the same for apps and services:

- registers/app-repos.json declares the repos that must exist
- scripts/repos/create-app-repos.mjs creates each missing one empty,
  with its stated visibility, and enables the merge settings the sweep
  relies on; existing repos are never touched
- app-repos.yml runs it on a change to the register and daily
- a no-network self-test, run in CI, covers the refusals

Declares bitbaum/signin (public), so merging this creates it.


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

Co-authored-by: Claude <noreply@anthropic.com>
2026-10-30 21:51:28 +01:00
Cato c2868a59a0 fix(release): handle ignored tracked and absent build output safely (#348) 2026-10-29 01:35:54 +01:00
Cato dcb6b76d20 test(currency): run repair preservation regressions before updates (#339)
* fix(currency): preserve consumer repair commits on open PRs

* test(currency): exercise repair preservation before reconciling
2026-10-28 13:28:34 +01:00
Cato 49ff6b6572 fix(currency): preserve consumer repair commits on open PRs (#338) 2026-10-28 13:25:58 +01:00
Cato 9a57486a37 feat(agents): one org-rules block in every repo's AGENTS.md, generated here, plus an audit (#315)
* feat(agents): one org-rules block in every repo's AGENTS.md, generated here, with an audit that fails a repo that starts without it

Problem: the org rules were restated by hand in CLAUDE.md essays (aoz-begleitung 1,850 lines), AGENTS.md intros and three differently worded starter templates; the starter said accounts are the app's own above a rule saying accountkit owns them. Nothing checked any of it, and 18 agent files import a personal ~/.claude file.

Change: templates/agent-rules.md is the only place the rules are written. sync-agent-rules.mjs opens one pull request per code repo putting it between fleet:rules markers (and a CLAUDE.md pointer where there is no CLAUDE.md; an existing CLAUDE.md is never rewritten). agent-files-audit.mjs fails on a finding not in agent-files.baseline; a baselined finding that has been fixed, or a block that is merely out of date, never fails it (the org-drift ratchet went red twice on 26 Oct because a file in another repo improved). All three templates carry the block and a test pins that. Own workflow, so a finding in another repo cannot hold this repo's merges.

Validation: 27 + 4 + 3 self-tests pass; the audit read 46 repositories and found 77 findings, all baselined; docs-truth-audit reports the same result on solon, petvity, aoz-begleitung and skif with and without the block.

* fix(agents): blank lines around the markers so prettier-checked repos accept the block
2026-10-28 02:43:34 +01:00
Cato 74f42f1ce5 ci: wake the merge sweeps when a canary deploys, and on the box's 15-minute tick (#306)
The shared-package rollout gate clears when a canary deploys and passes its checks, but nothing woke the held PR's sweep: it waited for the next CI completion in its own repo or for a per-repo hourly cron GitHub does not honour. sweep-wake.mjs dispatches each repo's own auto-merge.yml where a green dependency PR is open; sweep-wake.yml is the reusable entry for canaries and deploy-reconciler.yml runs it on the box timer tick.
2026-10-27 23:51:35 +01:00
Cato 875f30d089 fix(ci): preserve mirror ownership and restore Fleet sweep writes (#294)
* fix(ci): update governed starter mirrors through their owner

* fix(ci): supply Fleet sweep write identity
2026-10-27 17:18:27 +00:00
Cato 5da9886a52 fix(ci): attest nested lock roots and verify live release receipts (#293)
* feat(ci): verify live receipts against staged releases

* fix(ci): resolve nested receipt importers against their lock root
2026-10-27 18:05:41 +01:00
Catoandgithub-actions[bot] 6efb8328d1 fix(packages): reconcile repository auto-merge settings (#286)
* fix(packages): reconcile repository auto-merge settings

* fix(packages): align head-branch cleanup settings

* fix(ci): trigger checks when refreshing PR branches

* fix(packages): report only missing repo settings

* ci: schedule org-wide drift audit

* docs: clarify package merge settings

---------

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-10-27 12:07:33 +00:00
Cato 382738ac16 fix(ci): format generated package workspace config (#283) 2026-10-27 11:24:01 +00:00
Cato 00215923f3 fix(ci): reduce shared GitHub API pressure (#282)
* fix(ci): isolate auto-merge API quota

* fix(ci): preserve drift audit read diagnostics

* fix(ci): cut package census API fanout

* fix(ci): retain organization audit read errors
2026-10-27 11:16:21 +00:00
Cato 07f28a6e71 fix: admit automatic shared inventory checks (#281) 2026-10-27 10:52:57 +00:00
Cato c41da960e9 fix: re-arm package updates and inventory (#280)
* fix: admit automatic currency reconciliation events

* fix: re-arm package inventory after registry merges
2026-10-27 10:39:18 +00:00
Cato f673e33554 Fail closed on unavailable organization drift evidence (#272)
* chore: retire resolved AOZ documentation drift exception

* fix: fail closed on unavailable organization drift evidence

* fix: retain local no-checkout skips and bound transient audit retries
2026-10-27 08:58:47 +00:00
Cato cfea2a2971 fix: plan representative package updates before ordinary consumers (#269) 2026-10-27 08:17:07 +00:00
Cato 487ecf6a1d fix: enforce Fleet checks after verifying generated PR writers (#268) 2026-10-27 08:09:50 +00:00
Cato 02f5071ac4 fix: create generated PRs through permitted GitHub CLI path (#263) 2026-10-27 05:09:23 +00:00
Cato 9b104f0422 fix: route generated Fleet updates through normal pull request gates (#262) 2026-10-27 05:00:52 +00:00
Cato 0ac79869d5 Enforce verified Causius and Heidi checks through maintenance policy (#261)
* fix: enforce verified app checks through maintenance policy

* test: inspect app protection prerequisites with maintenance identity
2026-10-27 04:54:33 +00:00
Cato 3dc21a48b8 fix(registry): recover concurrent refreshes without losing publication (#258)
* fix(registry): recompute after concurrent main changes and recover dispatches

* test(registry): refuse to reset tracked checkout changes
2026-10-27 03:51:53 +00:00
Cato fd6693a4aa feat(rollout): verify distinct chat layouts in authenticated app canaries (#249) 2026-10-26 18:23:13 +00:00
Cato 7ac3e6deb5 fix(releases): refresh registry and consumers after verified releases (#247) 2026-10-26 18:07:18 +00:00
Cato e359fac11d feat(ci): collect read-only branch protection evidence (#246)
* feat(ci): inspect required-check protections with maintenance identity

* fix(ci): distinguish protection lookup status from absent rulesets
2026-10-26 17:10:05 +00:00
Cato 912857993d fix(automation): rearm currency after registry merges (#239) 2026-10-26 10:41:41 +01:00
Cato db23761d81 fix(currency): reconcile when package registry changes (#238) 2026-10-26 09:31:39 +00:00
Cato 9e0a23fa6c fix: serialize cross-repo currency updates (#235) 2026-10-26 09:17:49 +01:00
Cato 05275b98e6 fix(ci): keep routine audits off the owner API quota (#227)
* fix(ci): fetch public business facts without API quota

* fix(ci): use repository token for local auto-merge
2026-10-26 06:48:25 +01:00
Cato 9350549481 test(auth): require passkey and cross-method second-factor journeys (#211)
* test(auth): exercise shared passkey and second-factor account journeys

* fix(rollouts): block the reproduced AccountKit 0.6.2 MFA regression
2026-10-26 01:07:04 +01:00
Cato 53334582e0 fix(rollouts): enforce deployed receipts in root and starter promotion (#210) 2026-10-26 00:53:03 +01:00
Cato 8f6166e3e3 fix(packages): report failed update jobs without cancelling siblings (#208) 2026-10-25 19:25:56 +01:00
Cato 506198f9bd fix(packages): select the actual nested project toolchain (#206) 2026-10-25 19:15:25 +01:00
Cato 7c3c677cc7 fix(packages): reconcile preferred releases from complete locked project snapshots (#205) 2026-10-25 18:55:55 +01:00
Cato 4c954952a8 fix(auth): resolve browser from consumer Playwright package (#204) 2026-10-25 15:41:41 +01:00
Cato 8868691dd5 feat(rollout): verify live package release receipts (#203) 2026-10-25 14:36:51 +01:00
Cato 7f95c390d3 fix(registry): derive complete, verified package release targets (#202) 2026-10-25 14:06:07 +01:00