{"spec_id":"runtime-telemetry-db-precedence","title":"Spec: Runtime Telemetry DB Precedence","summary":"Ensure production readiness (`GET /api/ready`) does not fail due to runtime telemetry persistence being routed to a JSON file when a database is available, keeping the public deploy contract green.","potential_value":0.0,"actual_value":1.0,"estimated_cost":0.0,"actual_cost":1.0,"value_gap":0.0,"cost_gap":1.0,"estimated_roi":0.0,"actual_roi":1.0,"idea_id":"data-infrastructure","process_summary":"When a runtime database URL is configured, runtime telemetry events must be persisted to the database even if `RUNTIME_E; `GET /api/health/persistence` must not fail the global persistence contract due to runtime telemetry being file-routed w; Add a regression test proving DB precedence when both `RUNTIME_DATABASE_URL` and `RUNTIME_EVENTS_PATH` are set.","pseudocode_summary":null,"implementation_summary":"api/app/services/telemetry_persistence_service/__init__.py (backend_info(), checkpoint())","created_by_contributor_id":null,"updated_by_contributor_id":null,"created_at":"2026-04-09T03:10:09.018490Z","updated_at":"2026-04-09T03:10:09.018490Z","content_path":"specs/runtime-telemetry-db-precedence.md","content_hash":"cbd7a4afa022fbab","workspace_id":"coherence-network"}