Commit Graph
187 Commits
Author SHA1 Message Date
Cato 930c176e95 fix(rollout): verify OrangeCat through CD and its served receipt (#490)
* fix(rollout): read OrangeCat CD and served receipt

* fix(rollout): bind workspace receipt artifacts to tracked source

* docs(writing): distinguish lifecycle rollout from shared composer adoption
2026-11-06 10:07:28 +01:00
CatoandClaude Sonnet 5.5 213d3f61b1 docs(experience): the experience belongs to the package, measured and enforced (#487)
* docs(experience): the experience belongs to the package, measured and enforced

The owner, 2026-11-06: every product installs the shared packages and the
screens people touch are still built per app — a text box with no microphone,
a header that is not ours, a comment list that works its own way. For a user
that is the same as no package at all. A non-technical person who says "make me
a website" must get the standard out of the door.

- AGENTS.md: "The experience belongs to the package". Packages ship behaviour
  and the layout skeleton; apps own words, backend and brand (tokens).
  Extending the package is the work, not a detour. A file that must be the
  exception says why on its first line.
- SHARED.md: "The experience standard" — what a person gets, from which
  package, measured per repo on 2026-11-06, how it is enforced.
- templates/agent-rules.md: one bullet, so the rule reaches every repo's
  AGENTS.md by the existing sync PRs and no future session can miss it.
- scripts/ci/experience-audit.mjs (+ tests): counts bare text areas, local
  chrome, composers, comment lists and article editors. package-composition
  runs it; a product whose package-plan.json sets experience.ceiling may not
  exceed it. The app template ships an empty ceiling, so a new product starts
  at zero.
- docs/experience-standard-plan.md: the living plan, status table and how to
  resume, for whoever picks this up next.
- shared-inventory.sh: its comment said UI markup was excluded so apps keep
  their own look; it now says behaviour is measured by the new audit.

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

* docs(agents): regenerate the template rule blocks from templates/agent-rules.md

The audit job compares the three template AGENTS.md copies with the shipped
block; they had not been regenerated after the experience bullet was added.

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

---------

Co-authored-by: Claude <noreply@anthropic.com>
2026-11-06 09:44:55 +01:00
CatoandClaude 35d8dc1a19 feat(auth-parity): the last five apps are on the standard (#466)
aoz-begleitung, botsmann, printcraft, skif and vitareba run AccountKit's
screens with Lightning login on, so each row is now judged against the
standard. aoz-begleitung has no open sign-up (/register claims an invitation
code), so only its sign-in page is compared; skif's Morulia-to-OC fold is no
longer needed. OrangeCat (GoTrue) is the one app outside the standard.


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

Co-authored-by: Claude <noreply@anthropic.com>
2026-11-03 03:26:13 +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 de546e3433 feat(auth-parity): Lightning login is a column (#464)
AccountKit 0.26.1 adds Lightning login (LNURL-auth), opt-in per app with
ACCOUNTKIT_LIGHTNING. The daily check now reports it: shown on the page
(any language AccountKit ships) and served (the wallet callback answers
LUD-04's own error for a malformed challenge; nothing is minted). Not yet
part of the standard while the floor raises carry 0.26.1+ to every app.


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

Co-authored-by: Claude <noreply@anthropic.com>
2026-11-03 01:47:32 +01:00
CatoandClaude 03999d4012 chore(fonts): the Google Fonts baseline is empty (#463)
aoz-begleitung#366 moved AOZ, the last app on next/font/google, to the faces
@bitbaum/design-tokens 1.4.0 ships. Its line leaves the baseline, which is now
empty: any file that loads fonts from Google fails the audit. Swept against
47 repos' default branches: no finding.

STACK.md no longer lists AOZ among the apps that pre-date better-auth: it has
answered sign-in from AccountKit since 2026-11-02 (aoz-begleitung#362).


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

Co-authored-by: Claude <noreply@anthropic.com>
2026-11-03 01:32:43 +01:00
CatoandClaude e37b401610 chore(google-fonts): sbb-fundbuero no longer reaches Google (#458)
sbb-fundbuero#116 removed the layout's two preconnects to Google Fonts;
nothing there loaded a font from Google. One line left: aoz-begleitung.


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

Co-authored-by: Claude <noreply@anthropic.com>
2026-11-03 00:19:29 +01:00
CatoandClaude e03f4b1324 chore(google-fonts): the ratchet falls to two (#453)
camille-boulangerie#51, farmaciadelparco#12, s-ink#55, truthseeker#74 and
Xhiva#23 merged, so their seven files no longer load from Google and
their baseline lines would now fail the audit as stale. Left: aoz-begleitung
and sbb-fundbuero.


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

Co-authored-by: Claude <noreply@anthropic.com>
2026-11-02 23:22:06 +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 ec3c72235f feat(composition): a block may bind through the package that wraps it (#451)
Account mail is mail-kit reached through AccountKit's createAuthMailer, the
way most apps send it. The audit asked the binding file to import
@bitbaum/mail-kit itself, so an app that dropped its hand-rolled mailer for
the shared one (biaslens#172) failed the check for using the package. A
binding may now name `via`: the wrapping package, which must be installed
and imported there.


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

Co-authored-by: Claude <noreply@anthropic.com>
2026-11-02 22:59:47 +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 a74122abb4 fix(rollout-gate): measure a pull request from its merge base (#391)
The gate read a PR's dependency change as depsAt(pr.base.sha) ->
depsAt(pr.head.sha). pr.base.sha is the base branch as GitHub last
recorded it, not where the branch forked. A branch that forked before the
base bumped a shared package therefore read as reverting the bump, even
when the PR touches no manifest or lockfile.

bitbaum/diplodoctor#59 (tests, a script, a workflow, .env.example) forked
at aebf711, which locks @bitbaum/chatkit 0.21.2. #58 then moved main to
0.21.3, and pr.base.sha is 8965fa3 (#58). The gate saw 0.21.3 -> 0.21.2
and held #59 until a canary deployed 0.21.2 (sweep run 41157383295:
"@bitbaum/chatkit@0.21.2: wait for bitbaum/kivvi to deploy this
artifact"). Both canaries already run 0.21.3 with green CI, browser smoke
and deploy, so that could never happen. The sweep runs the gate before it
refreshes a behind branch, so the update that would have cleared it was
never reached either.

The baseline is now the merge base from the compare API: the parent of
exactly the diff a squash merge lands. An unreadable merge base throws,
which holds the PR like any other missing evidence. Nothing about what the
gate requires of a real dependency change is relaxed.


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

Co-authored-by: Claude <noreply@anthropic.com>
2026-10-31 05:24:27 +01:00
CatoandClaude e6e1b87751 docs(remediation): auth migrations shipped; agent-file baseline empty (#370)
Every baselined agent-file finding is fixed on main (evig, kivvi, petvity,
surf-your-life, substrata merged this afternoon), so the baseline is empty.


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

Co-authored-by: Claude <noreply@anthropic.com>
2026-10-29 13:47:24 +01:00
CatoandClaude 5dc0be8081 chore(agent-files): drop four findings now fixed on main (#368)
biaslens #124, loki #1465, orangecat #1472 and vitareba #135 merged:
each CLAUDE.md is now the pointer to AGENTS.md.


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

Co-authored-by: Claude <noreply@anthropic.com>
2026-10-29 11:51:06 +01:00
Cato 2b0c40d87b fix(currency): schedule representative updates before consumers (#347) 2026-10-29 01:05:04 +01:00
Cato 49ff6b6572 fix(currency): preserve consumer repair commits on open PRs (#338) 2026-10-28 13:25:58 +01:00
Cato 06de7c23e6 fix(packages): accept Loki combined CI as consumer proof (#336)
* fix(packages): accept Loki combined CI as consumer proof

* test(packages): model Loki combined check evidence
2026-10-28 11:56:54 +01:00
Cato a8e3ad4350 fix(publish): wait for registry read-back before releasing the publish lock (#326) 2026-10-28 08:07:57 +01:00
Cato 649be8c213 docs(packages): reconcile verified releases and tighten drift baseline (#321) 2026-10-28 07:37:14 +01:00
Cato f65ace6f5a fix(agents): the org rules block never goes inside another tool's marked region (#318) 2026-10-28 03:51:35 +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 acd88d46e5 fix(rollout): verify actual browser jobs in combined consumer CI (#308)
* fix(rollout): verify browser jobs inside combined consumer CI

* refactor(rollout): keep existing formatting outside new evidence checks

* style(policy): keep the existing register layout

* test(rollout): model exact GitHub run identities in CLI fixtures
2026-10-28 00:14:44 +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 6295eecab6 fix(receipts): attest verified local packages by owning commit (#302) 2026-10-27 23:25:07 +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 0724f24429 fix: make shared GitHub reads resilient (#279)
* fix: keep cross-repo package scans resilient

* fix: retry transient read-only GitHub failures

* fix: reduce org drift audit API fanout

* fix: expose bounded drift audit read errors
2026-10-27 10:14:52 +00:00
Cato e84c077bd6 fix: use the studio actual verification workflow for package candidates (#275) 2026-10-27 09:32:58 +00:00
Cato ebd0e2fa4b fix: isolate canary evidence by workspace importer (#274) 2026-10-27 09:20:26 +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 c78d6bdf53 fix: share scoped generated PR writer with studio snapshot publication (#270) 2026-10-27 08:53:57 +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 c130999eb5 Allow successive verified releases into designated canaries (#264)
* fix: admit each verified canary release without a historical PR lock

* fix: retain initial binding audit context across later releases
2026-10-27 07:53:38 +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
CatoandClaude 48282a108b fix(rollout): no 24-hour wait while canaries have no traffic (#251)
The staged rollout held every product a day behind BiasLens for each
shared-package release. With almost no users on the canary that day
observes nothing: it only delays Heidi and Solon (owner, 2026-10-26:
'I don't know if it makes sense if we have like zero users'). soakHours
is now 0. The order stays: the canary deploys the exact artifact first
and must pass CI and browser checks before anyone else takes it. The
hold message drops 'soak for 0h', and docs/package-rollouts.md says when
to raise it again.


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

Co-authored-by: Claude <noreply@anthropic.com>
2026-10-26 20:41:39 +00:00
Cato fd6693a4aa feat(rollout): verify distinct chat layouts in authenticated app canaries (#249) 2026-10-26 18:23:13 +00:00
Cato a70e7618b9 fix(packages): block obsolete auth release and derive install guidance (#243)
* fix(rollout): block obsolete AccountKit downgrade artifact

* fix(docs): derive all kit install guidance from release registry
2026-10-26 15:54:08 +00:00
Cato ac30b5641f docs(agents): define shared auth ownership (#241)
* docs(agents): define shared auth ownership

* test(docs): detect stale auth package install commands

* docs(agents): prohibit merge policy bypasses
2026-10-26 10:47:24 +00:00
Cato 88be04b2a5 feat(packages): require declared feature surfaces (#240) 2026-10-26 11:17:36 +01:00