Core product infrastructure — all systems that power the Stratum platform
Stratum's platform is a hosted, multi-tenant precedent-based denial intelligence system. This architecture documents:
Decision made (2026-03-31): Hosted model over export. Precedent objects are durable + transferable only through a living platform, not static exports. This requires ongoing infrastructure, SaaS operations, and multi-tenant isolation.
Current authentication is Phase 1 placeholder (X-User-Id header lookup, not production-ready). Rated Critical in HIPAA audit. Phase 2 will implement Auth0/Clerk.
15 read-only public endpoints (no auth required). Base: https://stratum-platform-api.fly.dev/api/registries
?family=UnitedHealthcare&year=PY2026&state=WA/payers/UnitedHealthcare/profile?year=PY2026)?family=Humana)?year=PY2026?family=Aetna&state=CA&year=PY2026)?source_type=OIG)?year=PY2026&limit=31)/states/WA)?state=CA)?violation_type=Prior%20Auth)?state=IL&payer=Magellan)?type=NCD&service=psychotherapy)?category=Medical%20Necessity)?category=Appeal%20Success%20Rates&confidence=High)?payer=UnitedHealthcare&treatment=Residential&status=REVERSAL)15 endpoints loaded from stratum-corpus-data/registries/ (14 JSON files). Read-only, no tenant isolation (public intelligence). Aggregated metrics for payer/state/treatment analysis.
Documentation: See /src/routes/registries.ts in stratum-platform repo for full response schemas and query options.
Full documentation includes the following sections:
High-level diagrams and flows
Express architecture, routes, authentication, rate limiting
Postgres schema, multi-tenancy, data isolation
Structure, versioning, immutability patterns
Classification, precedent matching, payer intelligence
2+ tenant minimum, denial/LOC grouping, maturity tiers, credit minting
Precedent discovery, query performance, registry endpoints
Corpus metrics, dashboards, payer drift detection
Compliance tracking, system monitoring
PHI handling, encryption, retention, regulatory
Cluster processing, batch operations
Fly.io, Cloudflare Pages, CI/CD