mirror of
https://github.com/bitbaum/orangecat.git
synced 2026-12-04 06:18:00 +01:00
* docs: correct drift in agent instructions, README and ops docs - Auto-merge sweep lives in bitbaum/fleet, not bitbaum/dotfiles; cd.yml is dispatch-only (handed off by ci.yml post-main), not a workflow_run listener - Design-system docs match globals.css / tailwind.config.ts: warm accent #ff5c00, bg-bitcoinOrange (no bitcoin-orange utility), tiffany/orange are legacy; display typography is shipped - .claude rules: real paths (src/lib/validation/, entityCrudHandler.ts, standardResponse.ts, withZod/withRateLimit/withRequestId, services/actors), real Button/Alert APIs, real rate limits, search via @bitbaum/searchkit, real payment modules, PostgREST instead of the POSTGRES_URL tunnel, lint-staged pre-commit, eslint.config.mjs - README/AGENTS/REVIEW: Next 16 / TS 6 / Tailwind 4, pnpm, messaging is not E2E-encrypted yet, beta not Live, CD deploys, migrations apply on deploy - docs/: deploy process, CI/CD, migrations guide, moved docs/ paths, stale CLI-entity and edge-function docs flagged Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01PJkbo18cRNXtgPWZN2S9cD * style(docs): prettier on the docs touched by the drift fix lint-staged would have run this; the commit was made without hooks. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01PJkbo18cRNXtgPWZN2S9cD --------- Co-authored-by: Claude <noreply@anthropic.com>
1.8 KiB
1.8 KiB
REVIEW.md — orangecat review bar
Judge the DIFF against these gates, in order. Flag correctness and requirement gaps only — lint owns style. Global standards load via CLAUDE.md; this file is ONLY orangecat's scars.
Fatal invariants (one violation = block)
- Ownership is
actor_id— neveruser_id— across schema, queries, and types. Mixed ownership columns fork the identity model. - BTC is
NUMERIC(18,8)— the canonical storage AND display unit. Never integer satoshis in storage (price_btc, notprice_sats). SATS is not a currency code either (removed fromsrc/config/currencies.ts); BTC is the only Bitcoin unit. No "satoshi-first" language anywhere. - Money paths need tests — Lightning top-ups, Cat Credit charges, BTC-pass plan grants: any change requires the money-path suite green. Untested charge code does not merge.
- Supabase is SELF-HOSTED only — the managed cloud project and the
mcp_supabase_*MCP tooling are RETIRED. Migrations: files insupabase/migrations/(never edit applied ones), applied automatically on deploy byscripts/apply-migrations.sh— never by hand. - Entity taxonomy from
src/config/entity-registry.ts— no entity types, labels, or routes defined anywhere else.
Product-language gates
- "pseudonymous" NEVER appears on the homepage (use "any identity", "no verification required"); deeper pages (/about, docs) may use it.
- CHF is the default fiat display currency.
- The warm accent
#ff5c00(bg-accent-warm) is the only brand accent. Bitcoin orange#f7931ais for Bitcoin-related UI only.
Process gates
verify/CI green before review (incl. migration-replay + gitleaks jobs).- Diff updates CLAUDE.md/docs if it changes documented structure/behavior.
- Second fix of the same bug class ships the rule/test that ends the class.