Commit Graph
230 Commits
Author SHA1 Message Date
Claude 8ac22d3312 templates/app: deploy.yml grants actions: read, as Loki's register shim does
On a private repo the shared deploy's CI gate cannot read Actions without it
and passes every deploy unverified.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01W7K2Gm5wcbfCi7THtmV1Hy
2026-10-11 22:11:02 +02:00
Claude 3364739010 templates/app: gitleaks allows NEXT_PUBLIC_* values, which every page prints
A kickoff writes the Loki widget token to .env.production; it is public by
design (data-fc-project in the HTML) and gitleaks' generic-api-key rule would
otherwise turn every seeded repo's secret scan red. Default rules stay on.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01W7K2Gm5wcbfCi7THtmV1Hy
2026-10-11 22:05:23 +02:00
Claude 57b883c037 templates/app: the one starter every new product is created from
A complete, tested Next.js 16 app — next-intl (en/de/fr, localePrefix
"always", parity test, Swiss spelling), better-auth accounts on Drizzle + pg
(email+password with verification, magic link via mail-kit, passkeys, TOTP
2FA, the shared bitbaum sign-in and OrangeCat as env-gated OIDC with
client_secret_post + PKCE, roles in the app's own users table), nonce CSP with
strict-dynamic and connect-src 'self', limitkit on every auth path keyed on the
proxy's hop, secrets sealed with ai-kit seal, ai-kit complete() example route,
own-model settings, bip-kit roadmap/changelog, /api/health asserting the app
can read its own tables, and CI/deploy/live-check/CodeQL/gitleaks/audit
workflows.

scripts/templates/render-app.sh fills the placeholders;
scripts/templates/test-app-template.sh holds the render to the fleet's own
judges (version-currency gapsFor, verify-floor predicates, cicd-hygiene audit)
on every PR, and the new app-template CI job installs it, runs verify and
drives sign-up/sign-in against a real Postgres.

STACK.md records the owner's 2026-10-11 sign-in decision: every app owns its
accounts and offers every method; it supersedes the 2026-09-11 federate-only
rule. SHARED.md and README point new products at templates/app. The
duplication ratchet skips the starter itself (the one canonical copy).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01W7K2Gm5wcbfCi7THtmV1Hy
2026-10-11 21:47:26 +02:00
Claude 81f5d25b71 name-check: is a name free as .com and .ch, asked of the registries
Every new project starts with a name, and the check was redone by hand each
time. RDAP from a runner, with a nonsense control name so a registry outage
cannot read as 'everything is taken'.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012EJFFkKhmaVnnH8E3mHnaZ
2026-10-11 20:42:26 +02:00
fleet-bot 1c30248ef5 chore(registers): readings 2026-10-11 2026-10-11 10:59:28 +00:00
fleet-bot 5abc03053c chore(proofs): origin proof 2026-10-11 2026-10-11 09:59:59 +00:00
fleet-bot bbff39f088 chore(registers): readings 2026-10-10 2026-10-10 10:46:41 +00:00
fleet-bot 720ceacd20 chore(proofs): origin proof 2026-10-10 2026-10-10 09:51:03 +00:00
fleet-bot 5c9f5a2b5d chore(registers): readings 2026-10-09 2026-10-09 11:29:15 +00:00
fleet-bot 9e714137fe chore(proofs): origin proof 2026-10-09 2026-10-09 10:29:54 +00:00
CatoandClaude Opus 5.5 545f0ec915 docs(shared): deckkit — presentations as data, so nobody hand-writes another HTML deck (#164)
@bitbaum/deckkit lives in orangecat packages/deckkit (workspace package,
own repo + npm when a second app adopts it). Listed now so it is findable
before anyone builds a third deck engine: evig's decks copied ~450 lines of
engine into every deck and drifted. The registry audit skips listed
packages without their own repo, so the row is safe there.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-08 09:23:50 -07:00
CatoandClaude Sonnet 5.5 24177e5b98 docs(shared): whenkit 0.3.2 — DateInput drop-in, the codemod, and who has adopted it (#163)
The row now says how to replace an existing date input (change the TAG; or
delegate inside the app's own Input), names the codemod, the two traps found
adopting it in nine repos (element-selector styling, a newer pnpm rewriting
the lockfile), and what was deliberately not migrated.

Signed-off-by: Cato <41178744+catomean@users.noreply.github.com>
Co-authored-by: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-08 08:44:16 -07:00
CatoandClaude Opus 5.5 5530931989 fix(sweep): re-run a base run marked failure in which no job failed (#162)
On orangecat (2026-10-07, 2 of 45 merges) GitHub never created CI's post-main
job: every real job was green, the run still concluded failure. The guard
refused every merge ('no failing job could be identified') and nothing re-ran
CI, so main sat un-deployed ~25 min until something unrelated did.

A failure with jobs listed and none failed is a non-verdict, like a failure
confined to 'Set up job': re-run it, bounded by MAX_RUN_ATTEMPTS. An empty
job list still is NOT treated as one (case 4: absence of evidence). The jq was
checked against the real stalled run (NO_FAILED_JOB), a real failure (its
steps) and an empty list (nothing). New case 2b, 61/61; mutation-proved.


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

Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-10-08 07:32:08 -07:00
CatoandClaude Opus 5.5 02c1bd2c5c feat(sweep): Dependabot's routine updates merge on green, majors still wait (#161)
Every Dependabot PR was an "outside PR" needing a maintainer's approving
review, so none ever merged on its own: orangecat sat on 26 alerts (2
critical) whose fixes were waiting for a review nobody gives. The owner asked
for that toil to go away.

The review rule is about a stranger's CODE reaching production unread.
Dependabot writes no code, only version numbers, so it is trusted — narrowly
— when all hold:
  - the author is the bot itself (login dependabot[bot] AND type Bot);
  - only dependency manifests/lockfiles change (a workflow file runs with
    the repo's secrets, so Actions bumps still wait);
  - no update crosses a major (for 0.x, a minor), read from the
    "Bumps/Updates X from A to B" lines, grouped PRs included.
Majors, unreadable PRs and lookalike authors still need a person.
DEPENDABOT_AUTOMERGE=0 opts a repo out. pnpm's minimum release age remains
the guard against a too-new upstream release.

Harness: 8 new cases (60/60). Mutation-proved: dropping the major check fails
the 3 hold cases; trusting any author fails the lookalike case.


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

Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-10-08 05:36:07 -07:00
fleet-bot 7836d19d2b chore(registers): readings 2026-10-08 2026-10-08 11:34:56 +00:00
CatoandClaude Opus 5.5 be885be112 docs(shared): register whenkit — dates and times picked without typing (#160)
New shared package (bitbaum/whenkit, v0.2.1), first adopter OrangeCat
bookings. Listed so the next date field installs it instead of writing a
sixteenth picker.

Signed-off-by: Cato <41178744+catomean@users.noreply.github.com>
Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-10-08 03:43:10 -07:00
CatoandClaude Opus 5.5 3e5b952b6c fix(sweep): look for the push-triggered CI run before re-arming (#159)
The re-arm guard checked once, seconds after the merge, before GitHub had
listed the run the PAT merge's push had already started. Finding nothing, it
dispatched a second run for the same commit, and the CI concurrency group
cancelled the first. On orangecat that was 28 of 45 merges (2026-10-02..07):
a cancelled run per merge, and the bare deploy reconcilers then found "no
green CI for the tip" and left a red CD run behind.

It now looks for up to REARM_WAIT_SECONDS (45) every REARM_POLL_SECONDS (5).
A GITHUB_TOKEN merge, which triggers nothing, is still re-armed — 45s later.
New harness case 19b: the run appears on the second look → no dispatch;
mutation-proved (looking once fails it). 52/52.


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

Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-10-08 03:40:03 -07:00
CatoandClaude Opus 5.5 feb7666c8f docs(shared): accountkit owns Sign in with OrangeCat (v0.2.1, nine adopters) (#158)
The row still described v0.1.0 — the account menu, adopted by loki — so the
next agent asked to add OrangeCat sign-in would not find it here and would
write the tenth copy. Now: what ./orangecat holds, the failures each piece
came from, the styles.css trap, and the nine adopters.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-08 03:39:21 -07:00
fleet-bot 729672bd1a chore(proofs): origin proof 2026-10-08 2026-10-08 10:31:17 +00:00
fleet-bot 954392514e chore(registers): readings 2026-10-07 2026-10-07 11:18:18 +00:00
fleet-bot ec55084d56 chore(proofs): origin proof 2026-10-07 2026-10-07 10:12:52 +00:00
fleet-bot a1c9b5a344 chore(registers): readings 2026-10-06 2026-10-06 11:28:35 +00:00
fleet-bot 73bdf6e214 chore(proofs): origin proof 2026-10-06 2026-10-06 10:13:45 +00:00
fleet-bot 280a7ae4ab chore(registers): refresh derived package registry 2026-10-05 15:18:59 +00:00
fleet-bot ad9209cefc chore(registers): readings 2026-10-05 2026-10-05 11:48:18 +00:00
fleet-bot eaf34402cc chore(proofs): origin proof 2026-10-05 2026-10-05 10:21:48 +00:00
fleet-bot fdfcf2693a chore(registers): readings 2026-10-04 2026-10-04 10:44:00 +00:00
fleet-bot beea083719 chore(proofs): origin proof 2026-10-04 2026-10-04 09:44:17 +00:00
fleet-bot 78d3f82fdc chore(registers): readings 2026-10-03 2026-10-03 10:01:04 +00:00
fleet-bot 819da8d395 chore(proofs): origin proof 2026-10-03 2026-10-03 09:06:32 +00:00
CatoandClaude Opus 5.5 672b0e32c5 revert(auth): remove the OrangeCat-only sign-in gate — it enforced the wrong rule (#156)
fleet#139 shipped a daily check that treated every sign-in method other
than OrangeCat on our own products as a deviation, built from STACK.md's
2026-09-01 row. George's actual requirement (2026-10-02): every app offers
working sign-up and sign-in with email + password, Google, GitHub, X,
Facebook/Meta AND OrangeCat. The gate would have raised a Telegram alert
the moment an app ADDED Google or GitHub — fighting exactly what he wants.

Removed: the audit, its baseline, its self-test, both workflow steps, the
SHARED.md row. The origin audit in the same workflow is untouched and
its alert text is back to describing only itself.

STACK.md's auth row no longer claims enforcement and records the new
requirement as under revision; the mechanism (methods hosted once at
OrangeCat, or per app) is George's call and is being decided.

check-workflows: 26 workflows parse; origin self-test passes.

Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-10-02 09:04:05 -07:00
CatoandClaude Opus 5.5 670aaa7db1 docs(shared): register accountkit, the one account menu (#155)
Built 2026-10-02 from loki AccountMenu + orangecat UserProfileDropdown.
Listed so the next product installs it instead of writing a third menu.
Adopted by loki (loki#1006); orangecat, solon, heidi, substrata next.

Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-10-02 06:35:46 -07:00
CatoandClaude Opus 5.5 792c2d2731 ci(auth): own products may only sign in via OrangeCat — enforced, not just written (#139)
STACK.md decided on 2026-09-01 that our own products federate to
OrangeCat and keep no users, passwords or reset flows. The rule lived in
prose, and prose does not stop drift. Measured 2026-09-24 from each
product's live /api/auth/providers:

  loki            OrangeCat + email-password, github, google, local,
                  user-password, x-1a  (seven ways in)
  datacat         + credentials
  evig            + credentials
  petvity         + credentials, google
  surf-your-life  + credentials, google
  solon, heidi, substrata   OrangeCat only

Each extra path is a second identity for the same person, a second reset
flow to secure, and a second place for a sign-out to miss.

own-product-signin-audit.mjs reads the same public endpoint the origin
audit already probes, so it judges what is DEPLOYED — no source parsing,
no secret, no quota. Who counts as ours comes from loki's /api/fleet/map
(owner = org, live, not a demo, not OrangeCat itself). The first draft
read apps.conf and could not see Loki at all: apps.conf omits the
handcrafted services, which is the same reason product-identity-audit
moved to the map. Client apps are never judged — their users belong to
the client, and STACK.md gives them their own auth.

Today's deviations are a RATCHET (own-product-signin.baseline):
- HELD rows print on every run, never read as a pass;
- a NEW provider fails even beside a baselined one;
- a baselined provider that is gone fails until its row is deleted;
- a row for something no longer an own product fails too.

Non-next-auth products SKIP and say this check cannot see them (today:
revamp-info, wild-spirit) — a stated blind spot, not a pass. A 5xx SKIPs
here because nextauth-origin-audit already fails it; paging twice for one
fault teaches people to ignore one of the two.

Runs daily as two steps in nextauth-origin.yml (if: !cancelled(), so a
red origin audit cannot hide it); its self-test also runs in ci.yml.
The Telegram alert text now names both findings.

Self-test: 17 checks, no network. Proved by mutation — tolerating every
extra provider turns three of them red. check-workflows.sh: 25 workflows
parse, 105 run blocks are shell.

Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-10-02 04:58:46 -07:00
fleet-bot 7c58b0d2ad chore(registers): readings 2026-10-02 2026-10-02 10:42:31 +00:00
fleet-bot e941c9a95c chore(proofs): origin proof 2026-10-02 2026-10-02 09:42:57 +00:00
fleet-bot 3fd7684eec chore(registers): readings 2026-10-01 2026-10-01 11:08:45 +00:00
fleet-bot 54a620cd92 chore(proofs): origin proof 2026-10-01 2026-10-01 10:05:07 +00:00
fleet-bot c33bcac52d chore(registers): readings 2026-09-30 2026-09-30 10:42:03 +00:00
fleet-bot 13030266a0 chore(proofs): origin proof 2026-09-30 2026-09-30 09:39:26 +00:00
CatoandCursor d98048358e registers: retire the town thesis names (#154)
Townsism, Deyville, Mightville, Dayville and Nightville are dropped, not
renamed. Recording them lets org-drift and hardcoded-values find any copy
that comes back. Changelog history is left as it is: .md is outside
hardcoded-values, root CHANGELOG.md is outside org-drift, and the bitbaum
map snapshot is already allowlisted as a cache.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-29 06:04:49 -07:00
fleet-bot a8e800c81f chore(registers): readings 2026-09-29 2026-09-29 10:52:33 +00:00
fleet-bot e02f9485a5 chore(proofs): origin proof 2026-09-29 2026-09-29 09:46:51 +00:00
fleet-bot e5c98127d6 chore(registers): refresh derived package registry 2026-09-28 14:29:03 +00:00
fleet-bot 68799b3637 chore(registers): readings 2026-09-28 2026-09-28 11:11:44 +00:00
fleet-bot 922c879053 chore(proofs): origin proof 2026-09-28 2026-09-28 09:42:41 +00:00
fleet-bot ce842061f2 chore(registers): readings 2026-09-27 2026-09-27 10:10:25 +00:00
fleet-bot 6718f19b77 chore(proofs): origin proof 2026-09-27 2026-09-27 09:12:58 +00:00
CatoandClaude Opus 5.5 b34e61915b feat(ci): every npm-installed package must release from a tag (#153)
shared-registry-audit --check now fails when a registered package that
consumers install from npm has no .github/workflows/publish.yml. Five
packages were released from a laptop npm login; when it went (2026-09-26)
none could ship. Adds templates/ci/publish.yml (tag-driven OIDC Trusted
Publishing) and the README steps. 62/62 self-tests; live run found paykit,
since fixed (paykit#1).

Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-09-26 13:22:28 -07:00
CatoandClaude Opus 5.5 cfb23afbc1 docs(shared): your own model — one flow for every app (#152)
Every app that takes a reader's AI key now has one standard: ai-kit's closed
vendor list, probeByokKey (checked on paste, strongest model preselected),
sealed or browser-only storage, never a key returned, an empty field keeps the
key, own-model calls charged to nobody else, subscriptions never collected.
Reference: loki #921. Adoption table as of 2026-09-26.

Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-09-26 12:36:37 -07:00
CatoandClaude Opus 5.5 272011b004 fix(auto-merge): an author with write access is not an outside PR (#151)
* fix(auto-merge): an author with write access is not an outside PR

A private repo on the Free plan gets no org secrets, so the sweep runs on the
default token, which cannot see PRIVATE org membership: the owner's own agent
read as CONTRIBUTOR and every agent PR was held for a maintainer review of
itself (bitbaum/farmhouse#2). Ask what the association stands in for: the
author's permission on the repo. admin/maintain/write = inside; bots,
strangers and an unreadable answer stay outside.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>

* fix(auto-merge): an author with write access is not an outside PR

A private repo on the Free plan gets no org secrets, so the sweep runs on the
default token, which cannot see PRIVATE org membership: the owner's own agent
read as CONTRIBUTOR and every agent PR was held for a maintainer review of
itself (bitbaum/farmhouse#2). Ask what the association stands in for: the
author's permission on the repo. admin/maintain/write = inside; bots,
strangers and an unreadable answer stay outside.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-09-26 11:45:54 -07:00