mirror of
https://github.com/bitbaum/orangecat.git
synced 2026-12-05 12:28:15 +01:00
The live hand-over walk found that accepting a link with an address that already has an account answered 500. acceptHandover learned an address was taken only from the auth server's refusal at the last step, after the link was cut and the identity's ways in removed, and it read the refusal's wording to tell taken from failed. On orangecat.ch the wording did not read as taken. - New service-role function auth_user_id_for_email. Acceptance asks it right after the offer is spent, and refuses a taken address with the link, the ways in and the offer untouched. - When the auth server still refuses the address (taken in the moment), the check is asked again; the wording and the email_exists code are only a fallback. Claude-Session: https://claude.ai/code/session_019MDtmubu4vMeqp2pdae1Zy Co-authored-by: Claude <noreply@anthropic.com>
OrangeCat Documentation
Documentation for the OrangeCat platform. Start with the area you need.
| Area | What's inside |
|---|---|
| getting-started/ | First-time setup and orientation |
| architecture/ | System design, entity model, the Cat, ADRs (adr/), DB schema (SUPABASE_SCHEMA_GUIDE.md) |
| development/ | Day-to-day dev: standards, contributing, guides, examples, templates, components |
| operations/ | Running prod: deployment, devops/runbooks, self-hosted Supabase |
| design-system/ | Design tokens, UI/UX, navigation, branding |
| features/ | Feature-level docs (posting, messaging, etc.) |
| security/ | Security model and practices |
| testing/ | Test strategy and coverage |
| business/ | Executive, legal, marketing |
| reference/ | API, changelog, content, misc reference material |
| forward-looking/ | Plans, proposals, in-flight ideas |
| non-public/ | Internal-only material |
| archive/ | Frozen historical docs (incl. the retired managed-cloud era) |
Ground truth (checked 2026-10)
- Database — self-hosted Supabase at
supabase.orangecat.chon the Hetzner box (bitbaum). The managed Supabase Cloud was retired 2026-06. Schema = SQL files in../supabase/migrations/, applied automatically on every deploy byscripts/apply-migrations.sh— never by hand. See operations/supabase/. - Deployment — self-hosted on Hetzner behind Caddy. A green PR is merged by
.github/workflows/auto-merge.yml; CI onmainthen hands off to.github/workflows/cd.yml, which deploys. See operations/deployment/ and "Deploy path" in../AGENTS.md. - Bitcoin — BTC is the canonical stored unit (
NUMERIC(18,8)) and the only Bitcoin unit; SATS is not a currency code.
Conventions
- Point-in-time reports, audits, and completed runbooks live in archive/ — keep active docs current, not historical.
- Engineering rules the AI agent follows live in
../.claude/, not here.