* 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>
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>
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>
13 chats in 10 repos (2026-09-25), none packaged, each re-learning or missing
the same fixes — most often the mic. SHARED.md now names the reference (loki
/loki, with its four known gaps), a nine-line checklist where every line cites
the repo that already fixed it, and each chat's gaps. AGENTS.md points to it.
shared-inventory gains chat-composer (baseline 5 repos / 6 files); a mutated
baseline (6 -> 5) makes --check fail on it, so the guard can fail.
Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
The 2026-09-15 cleanup campaign moved seven repos off hand-rolled rate
limiters. Verified on each repo's DEFAULT BRANCH, merged only:
botsmann #198 merged 08:24Z 2 limiter files → 1 (lib/middleware/rate-limit.ts deleted)
evig #488 merged 05:42Z 3 → 2 (src/lib/auth/rate-limiter.ts deleted)
petvity #95 merged 09:09Z 1 → 1 (hand-rolled body replaced by limitkit)
surf-your-life #70 merged 06:33Z 1 → 1 (same)
truthseeker #54 merged 06:46Z 1 → 1 (same)
kivvi #96 OPEN (draft, client) — NOT counted
aoz-housing #242 OPEN (client) — NOT counted
rate-limit 13 → 11 files. Only two files left because five adopters keep a
thin local module holding their own limit values and call limitkit from it —
the intended shape. The row was lowered by hand rather than by --update,
because --update would also have absorbed the logger rise below.
logger is LEFT RED at 6 while the fleet sits at 7, deliberately. The extra
file is datacat's backend/lib/logger.js, created the same day by datacat #271
("one logger") — a repo with no matching file now has exactly one, so a
consolidation scores as a rise. The offsetting fix exists and is unmerged:
kivvi #96 takes kivvi from two loggers to one, which returns the count to 6
on its own. Raising the baseline now would retire the only pressure on it.
The counting half was also lying. `gh api .../git/trees` was `|| continue`,
so any transient failure dropped a repo silently and that repo contributed
zero files — indistinguishable from a repo that deleted its duplicate. One
sweep over 43 repos dropped NINE and showed phantom falls in email-send
(7 → 4), health-route (13 → 11) and slug-util (4 → 3); none had happened.
Now it retries with backoff, names what it could not read, and refuses to
judge OR to write a baseline from an incomplete read — the same guard the
truncation case already had. Six new self-test cases pin both directions.
SHARED.md, next to the limitkit row:
- install is `pnpm add limitkit@^0.2.0` (npm, verified 0.2.0), not the
`github:` form: under pnpm 11 a git dep's `prepare` build is refused
without an allowBuilds entry, so the package installs with no build
output and the adopter's CI fails on an import resolving to nothing.
heidi is still pinned to the github: form and will hit this next rebuild.
- the security finding, because it recurred SEVEN for seven: every
hand-rolled limiter keyed its bucket on the FIRST X-Forwarded-For hop.
That hop is written by the caller, so a client sending a fresh value per
request got a fresh bucket per request and was never limited — the
limiter was decorative. The last hop is the one the trusted proxy
appended; limitkit's clientIp() reads that. vitareba has no IP-derived
limiter at all. botsmann's additionally FAILED OPEN on any database
error, switching itself off under exactly the load it existed for.
- adopter count from registers/packages.json, not by hand: eight
(botsmann, evig, heidi, loki, orangecat, petvity, surf-your-life,
truthseeker). The prose claiming orangecat unified "without limitkit" is
now contradicted by its own package.json — corrected in place.
Also corrected: SHARED.md and README both claimed the ratchet "runs on every
PR here". It does not — a PR runs only the network-free self-test; --check
runs weekly. A gate described in the wrong place is a gate nobody checks.
Claude-Session: https://claude.ai/code/session_012KAn51JHFcTrPeCjZDGXM8
Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
Filtering, sorting, searching and paging were the concern this file did not
track, and they are past the rule of three several times over. A survey of
twelve repos on 2026-09-11 found twelve incompatible filter-state shapes
with no two alike, ~34 hand-built URL builders, ~25 copies of
toggle-a-value-in-a-set in two encodings, ~11 debounces at five delays, ~11
copies of Math.ceil(total / pageSize), and four of the seven repos that put
a reader's text into a SQL LIKE doing it without escaping % or _.
Two of the toggle copies are character-for-character identical in repos
that share no code. One repo writes that three-line body eight times for
eight facets plus eleven more for its flags.
Four live bugs sit among the URL builders: a preset that rebuilt the params
from scratch and wiped the reader's search, a date range that did not clear
page and stranded them past the end, a builder that preserved three params
by name so every later param had to be remembered in six template strings,
and a debounced box using push rather than replace, so the back button
walked through every spelling of the word.
listkit ships the decisions and none of the markup. The registry row says
so, and says why: nine token vocabularies and six chip treatments among
those same repos, several different on purpose — a monochrome marketplace
fork, a Bitcoin-orange rule, the one RTL-aware surface in the fleet. This
file's own navigation section is the post-mortem of centralizing markup,
and the answer it reaches is the one taken here.
FleetCrown is the proving consumer as of today, because a package with zero
adopters removes zero duplication. The adoption line names the next target
by the same rule the others use: whichever repo's hand-rolled filter bar is
touched next, with hirnli the richest — eight toggle copies, eleven flag
toggles, and two live defects the package's own tests would have caught.
The ratchet row is scoped to the HEADLESS half — hooks and lib files, never
components. A row that counted filter components would score deliberate
divergence as duplication, which is exactly the mistake documented above it.
Baseline set in this commit: list-query 2 5.
Claude-Session: https://claude.ai/code/session_018Z7YRpgsEtNjRqr1usHMQY
Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
Adds a `messaging-threads` concern to shared-inventory.sh, with a baseline
entry measured rather than asserted:
messaging-threads 2 repos 3 files orangecat(2) vitareba(1)
The intuition that prompted this was "many of our apps have messaging, treat it
like the other fleet-wide duplication". Measuring says otherwise: only two repos
carry thread logic at all. Recorded as such in SHARED.md, because a row that
overstates its own case is worth less than no row.
It still earns its place. The duplicate that existed was not merely a second
copy, it was wrong in three ways that are invisible below three participants —
read receipts reporting READ when any ONE recipient had caught up, a reader
counted outside their own visibility window, and an optimistic bubble sharing
no identity with its stored row, so realtime winning the race rendered the
message twice. threadkit (506 lines, already published, one adopter) made all
three unrepresentable; orangecat converted as the proving consumer.
`--check` still reports two rises, and they are DELIBERATELY not absorbed here:
✗ health-route: 9 → 11 files
✗ slug-util: 2 → 3 files
Both predate this change and neither is mine. Running --update would have
locked all three in under a messaging PR, which is precisely how an increase
stops being reviewed — the failure mode this ratchet exists to prevent. They
need their own look.
test-shared-inventory.sh: 7 passed, including that every baseline concern still
exists in the script.
Claude-Session: https://claude.ai/code/session_01G2LBioUzJP4oBL9LeH9qAe
Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
The audits, the golden CI templates, the shared-package registry and the
reusable auto-merge sweep now live in a repo whose only job is gating the
fleet. dotfiles goes back to being the environment — a repo holding a .bashrc
is the wrong place for machinery that 16 repos call as a reusable workflow,
and keeping them together made every fleet change look like an environment
change and vice versa (three sessions and the owner collided there in one
week).
Layout is unchanged (SHARED.md, scripts/{ci,fleet,audit}, templates/ci,
.github/workflows), so every script's relative paths still hold. The
reusable sweep now checks out bitbaum/fleet; dotfiles keeps a forwarding
shim so its 16 existing callers keep working unchanged.
All six test suites pass in the new location: shared-inventory 7,
verify-predicates 29, auto-merge-sweep 17, stranded-work 24, worktree-gc 9,
model-pin-audit 102.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AZCNYHwjEeqxNpYCUk6Yna