Files
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
..

TITLE

Beta — running, not released.

Run it

pnpm install
cp .env.example .env.local   # fill in DATABASE_URL at least
pnpm run db:migrate          # create the tables
pnpm dev                     # http://localhost:3000

pnpm run verify is the definition of done: format, lint, typecheck, unit tests and a production build. pnpm run test:integration drives sign-up and sign-in against a real Postgres (DATABASE_URL must name a *_test database — the suite recreates its schema).

What is already here

  • Accounts — email and password (with email confirmation when mail is configured), a sign-in link by email, passkeys, two-factor codes, and "Continue with" buttons for the shared bitbaum sign-in and for OrangeCat, each shown only when configured. Roles: customer, helper, professional, staff, admin.
  • Three languages — English, German and French under /en, /de, /fr.
  • Security — a nonce-based Content-Security-Policy, HSTS, no framing, no referrer, camera/microphone/location/payment switched off; rate limits on every sign-in path; provider tokens never stored; secrets sealed at rest.
  • A model — POST /api/ai through @bitbaum/ai-kit, on the shared free chain or the person's own key (Account → Your own model).
  • /api/health — green only when the database answers and accounts work.
  • Roadmap and changelog at /roadmap and /changelog, from ROADMAP.md and CHANGELOG.md via Loki's fleet map.

The environment the app reads is documented in .env.example.

Deploy

Push to main deploys through Loki's shared self-host workflow (.github/workflows/deploy.yml — the only file that knows about our infrastructure). After each deploy, live-check.yml checks the live site from outside.

Made from bitbaum/fleet templates/app. MIT licensed.

Shared building blocks

Review package-plan.json before adding a feature. The root layout composes sitekit chrome, accountkit owns account behavior and screens, and bip-kit renders the journal plus roadmap/changelog. Chat surfaces use chatkit's shared composer and thread through components/chat/SharedChat.tsx. Publish real journal entries as reviewed Markdown in content/blog; drafts stay excluded by bip-kit. Empty records say they are empty. Shared package composition CI checks actual adoption and the release-to-dependency-update-to-deployment path.