The ratchet counted chatkit's own Composer (src + committed dist) as four
chat composers and bip-kit's slug.ts as a slug helper, so extracting a
package read as more duplication. Fleet packages are now skipped the way the
app starter is, read from the derived register so a new package is excluded
the day it is registered; dist/ is excluded at the repo root too.
Claude-Session: https://claude.ai/code/session_01M6u11m24oVkG98wAVbN7nf
Co-authored-by: Claude <noreply@anthropic.com>
* fix(inventory): date-utils stops counting *-updates.ts; a rise names its files
The ratchet went red on 2026-10-14 with six concerns up and no way to tell
where. Two fixes:
- date-utils was unanchored, so with grep -i '(dates)\.ts' matched
ballot-updates.ts, auto-updates.ts and useActivityUpdates.ts. Anchor it to
a path segment.
- The baseline holds counts only, so a failure now prints every file the
rising concern counts (repo: path).
Tests cover both.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01M6u11m24oVkG98wAVbN7nf
* test(inventory): match patterns with a here-string, not a pipe into grep -q
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01M6u11m24oVkG98wAVbN7nf
---------
Co-authored-by: Claude <noreply@anthropic.com>
The shared-inventory check fails when a package with two or more adopters
has no registry row, and that failure stopped the package register from
refreshing (searchkit, now with 6 adopters, could not reach
registers/packages.json, the bitbaum site or Loki's builder brief).
geo-kit is used by solon, substrata and orangecat; this is its row.
Claude-Session: https://claude.ai/code/session_01M6u11m24oVkG98wAVbN7nf
Co-authored-by: Claude <noreply@anthropic.com>
registers/package-repos.json lists the package repos that must exist. On
merge (and daily as a retry) .github/workflows/package-repos.yml creates
each missing one with FLEET_PAT: it copies the declared source folder,
makes it standalone from templates/package (CI, auto-merge, publish,
Dependabot, licence), runs the package's own verify, and only then creates
bitbaum/<name> and tags v<version>. An existing repo is never touched.
An agent session's GitHub integration may not create org repos, which kept
searchkit inside orangecat's packages/ folder: consumers pinned to commits,
no Dependabot, every release hand-edited into five lockfiles. The first
declaration is searchkit.
The self-test pins the refusals (bad names, a path that escapes its repo,
a package with no verify or no version) and that existing repos are never
targets. Rehearsed locally: the standalone searchkit installs, passes its
own 32 tests, and builds a byte-identical dist/.
Claude-Session: https://claude.ai/code/session_01M6u11m24oVkG98wAVbN7nf
Co-authored-by: Claude <noreply@anthropic.com>
* SHARED/AGENTS: searchkit — every search box goes through it
Registers @bitbaum/searchkit (orangecat packages/searchkit until it can
have its own repo) in the package table, and adds the one-line rule to
AGENTS.md beside the chat rule: no bare .includes(q) or ILIKE '%q%', which
lose a name to one wrong letter.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01M6u11m24oVkG98wAVbN7nf
* AGENTS: packages by default, discretion with a stated reason
Rewords the new Search rule from "every search box goes through it" to the
general rule it is an instance of: if a package already does it, use it —
it is written and tested, and a rewrite is more code and a second answer
that drifts — but where it genuinely does not fit, do not force it; say
why in one line where you chose otherwise.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01M6u11m24oVkG98wAVbN7nf
---------
Co-authored-by: Claude <noreply@anthropic.com>
GHSA-67mh-4wv8-2f99 reached the starter's lockfile through drizzle-kit's
@esbuild-kit loader and showed as a standing Dependabot alert here. An
override gives the loader esbuild ^0.25. The full template check now runs
drizzle-kit generate and fails when lib/db/schema.ts and drizzle/ disagree.
Claude-Session: https://claude.ai/code/session_01W7K2Gm5wcbfCi7THtmV1Hy
Co-authored-by: Claude <noreply@anthropic.com>
* 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
* 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
---------
Co-authored-by: Claude <noreply@anthropic.com>
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).
Claude-Session: https://claude.ai/code/session_01W7K2Gm5wcbfCi7THtmV1Hy
Co-authored-by: Claude <noreply@anthropic.com>
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
@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>
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>
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>
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>
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>
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>
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>
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>
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>
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>