Intelligence, Advanced Charting & Trading Platform
phase-1/data-proof-report
diagnostics/chartnova-blank-screen-2026-10-15
diagnostics/chartnova-stage2-v27-preview-2026-10-15
docs/chartnova-stage1-reconcile-manifest-2026-10-15
feature/chartnova-ios-widget
feature/chartnova-light-catalog-lazy-series-2026-10-15
feature/chartnova-market-terminal
feature/chartnova-multimarket-chart-ws-foundation
feature/chartnova-neon-direct-history
feature/chartnova-neon-history
feature/paper-trading-risk-controls-2026-10-14
fix/alpha-vantage-live-payload
fix/chartnova-progressive-loading-2026-10-15
fix/live-proof-runner-cwd-2026-10-14
foundation/phase-0
foundation/postgres-core
main
ops/chartnova-emergency-rollback-2026-10-15
phase-1/candle-builder
phase-1/data-proof-artifact
phase-1/data-proof-metrics
phase-1/data-proof-report
phase-1/external-gates-state
phase-1/gold-api-fallback
phase-1/ingestion-pipeline
phase-1/live-proof-runner
phase-1/market-calendar
phase-1/market-domain
phase-1/neon-live-proof
phase-1/persistence-contract
phase-1/postgres-ci
phase-1/provider-adapters
phase-1/provider-recovery
phase-1/quality-propagation
phase-1/spike-detection
phase-1/xau-provider-adapter
risk/chartnova-alert-runtime-atomic-2026-10-22
risk/chartnova-atomic-outbox-2026-10-22
risk/chartnova-seven-track-safety-2026-10-21
safety/p0-triage-2026-10-13
| 1 | # ADR-0003: Managed PostgreSQL Hosting Is Replaceable Infrastructure |
| 2 | |
| 3 | Status: Accepted |
| 4 | Date: 2026-10-05 |
| 5 | |
| 6 | ## Context |
| 7 | VELYQOR requires PostgreSQL, but the initial project must avoid foreign-payment dependencies. Supabase project capacity is constrained, Neon actions are not exposed in the current execution environment, and Render Free provisioning was observed to require payment credentials. |
| 8 | |
| 9 | ## Decision |
| 10 | - The product depends on PostgreSQL, not on a PostgreSQL hosting vendor. |
| 11 | - Runtime configuration exposes the database only as `DATABASE_URL` plus non-secret connection policy settings. |
| 12 | - Aiven Free PostgreSQL is the current initial hosting target if it can be provisioned without payment credentials. |
| 13 | - Hosting-provider SDKs, proprietary auth, proprietary realtime, and provider-specific SQL are prohibited from the core market domain. |
| 14 | - Cloudflare Hyperdrive may be introduced as a connection/edge optimization layer after a reachable PostgreSQL endpoint exists. |
| 15 | - Migrations remain plain PostgreSQL and versioned in the repository. |
| 16 | |
| 17 | ## Portability gate |
| 18 | Changing the managed PostgreSQL provider must not require changes to market symbols, pricing formulas, candle semantics, data-quality rules, or chart contracts. |
| 19 | |
| 20 | ## Consequences |
| 21 | Aiven, Neon, Supabase, Render, Railway, a VPS, or a future dedicated PostgreSQL cluster can be substituted without rewriting the product domain. Provider-specific operational configuration stays outside the domain layer. |