Decisions
Architecture decisions are recorded one file per decision, in MADR form, under docs/adr/ in the repository. That folder is canonical; this page is built from its README.md index at build time and links to the files on GitHub, so there is nothing here to keep in sync.
Each ADR states the decision and its consequences. The consequences are the part worth reading.
How to add or change a decision
Section titled “How to add or change a decision”- Copy
docs/adr/template.mdtoNNNN-kebab-title.md, taking the next free number in the index. - Fill in every section; keep the headings even when a section is short.
- Add a row to the index in the same PR. A decision is not recorded until it is in the index.
- To change an accepted decision, write a new ADR that supersedes it and set the old one’s status to
Superseded by ADR-NNNN. Do not rewrite the body of an accepted ADR.
The rules in full, and the meaning of each status, are in the folder’s README.
Where the numbers come from
Section titled “Where the numbers come from”0001to0015are the production-landscape decisions that used to live indocs/PRODUCTION.md§12 (Production landscape); they kept their numbers.0016is the native API contract decision (PRO-77).0017to0025are the former Key Design Decisions ofdocs/ARCHITECTURE.md(System overview).0026onwards come from the PRO-165 architecture review;Reservedrows are claimed by the linked issue and have no file yet.
| ADR | Title | Status | Date | Supersedes | Source or owner |
|---|---|---|---|---|---|
| 0001 | PRD and STG run on GCP us-central1 (Iowa) | Accepted | 2026-08-08 | — | PRODUCTION.md ADR-001 (moved by PRO-176) |
| 0002 | Cloud Run services for the four web deployables, a Cloud Run worker pool for the queue consumer | Accepted | 2026-08-16 | — | PRODUCTION.md ADR-002 (moved by PRO-176) |
| 0003 | Cloud SQL for PostgreSQL with HA and PITR | Accepted | 2026-08 | — | PRODUCTION.md ADR-003 (moved by PRO-176) |
| 0004 | Memorystore for Valkey, Cluster Mode Disabled (mandatory) | Accepted | 2026-08 | — | PRODUCTION.md ADR-004 (moved by PRO-176) |
| 0005 | Meilisearch self-hosted in-region | Accepted | 2026-08-08 | — | PRODUCTION.md ADR-005 (moved by PRO-176) |
| 0006 | Cloud Storage for GCP tiers; retain Cloudflare R2 for DEV | Accepted | 2026-08-28 | — | PRODUCTION.md ADR-006 (moved by PRO-176) |
| 0007 | Google edge: Cloud DNS, HTTPS load balancer, Cloud Armor, Cloud CDN | Accepted | 2026-08 | — | PRODUCTION.md ADR-007 (moved by PRO-176) |
| 0008 | US hosting is lawful; residency was a preference, not a requirement | Accepted | 2026-08-08 | — | PRODUCTION.md ADR-008 (moved by PRO-176) |
| 0009 | Three environments: DEV on Railway, STG and PRD on GCP | Accepted | 2026-08-28 | — | PRODUCTION.md ADR-009 (moved by PRO-176) |
| 0010 | Secret Manager, with one named exception | Accepted | 2026-08-28 | — | PRODUCTION.md ADR-010 (moved by PRO-176) |
| 0011 | Recovery targets per store | Accepted | 2026-08-08 | — | PRODUCTION.md ADR-011 (moved by PRO-176) |
| 0012 | Post-cutover: shrink Meilisearch's surface | Accepted | 2026-08 | — | PRODUCTION.md ADR-012 (moved by PRO-176) |
| 0013 | Payments: Stripe (built), with CFDI stamping via FacturAPI | Accepted | 2026-08-16 | — | PRODUCTION.md ADR-013 (moved by PRO-176) |
| 0014 | One organization, folder per GCP environment, project per GCP environment, plus shared projects | Accepted | 2026-08 | — | PRODUCTION.md ADR-014 (moved by PRO-176) |
| 0015 | apps/docs is not deployed to PRD | Accepted | 2026-08-16 | — | PRODUCTION.md ADR-015 (moved by PRO-176) |
| 0016 | Native API contract stays on tRPC, enforced at runtime | Accepted | 2026-10-21 | — | PRO-77 (moved from api-contract-decision.md by PRO-176) |
| 0017 | SvelteKit over Next.js for the web app | Accepted | 2026-01 | — | ARCHITECTURE.md Key Design Decision 1 (written up by PRO-176) |
| 0018 | Valkey GEOSEARCH over Typesense for property search | Accepted | 2026-02 | — | ARCHITECTURE.md Key Design Decision 2 (written up by PRO-176) |
| 0019 | imgproxy over build-time image processing | Accepted | 2026-02 | — | ARCHITECTURE.md Key Design Decision 3 (written up by PRO-176) |
| 0020 | Better Auth over Supabase Auth | Accepted | 2026-01 | — | ARCHITECTURE.md Key Design Decision 4 (written up by PRO-176) |
| 0021 | bits-ui over opinionated UI frameworks | Accepted | 2026-01 | — | ARCHITECTURE.md Key Design Decision 5 (written up by PRO-176) |
| 0022 | S3-compatible object storage over Supabase Storage | Accepted | 2026-03 | — | ARCHITECTURE.md Key Design Decision 6 (written up by PRO-176) |
| 0023 | Paraglide JS over runtime i18n | Accepted | 2026-01 | — | ARCHITECTURE.md Key Design Decision 7 (written up by PRO-176) |
| 0024 | Portal and Dashboard split | Accepted | 2026-01 | — | ARCHITECTURE.md Key Design Decision 8 (written up by PRO-176) |
| 0025 | Per-app Dockerfiles over platform builders | Accepted | 2026-02 | — | ARCHITECTURE.md Key Design Decision 9 (written up by PRO-176) |
| 0026 | Authorization lives in the service layer, not in Postgres Row Level Security | Accepted | 2026-11-08 | — | PRO-166 |
| 0027 | Promotion model for STG and PRD: branches, not tags | Accepted | 2026-11-09 | — | PRO-177 |
| 0028 | Valkey topology: a durable and a volatile instance | Accepted | 2026-11-09 | — (amends 0004) | PRO-169 |
| 0029 | Upload route ownership: one handler, two mounts | Accepted | 2026-11-09 | — | PRO-167 |
| 0030 | Property search engine: PostGIS behind the Services.propertySearch port, Valkey GEOSEARCH until the cutover | Accepted | 2026-11-09 | — (will supersede 0018 at cutover) | PRO-174 |
| 0031 | Shared native Core modules instead of four drift-guarded copies | Accepted | 2026-11-09 | — | PRO-175 |
| 0032 | @repo/integrations sits below @repo/api: adapters import nothing from the domain layer | Accepted | 2026-11-09 | — | PRO-172 |
| 0033 | Identity verification with Didit, in the native apps only | Accepted | 2026-11-12 | — | PRO-184 |