Part of Milestone E — Intelligence and Launch. Ref: #27
Allow managed and external products to report health, releases, errors, events and usage.
Alex tasks
Tables
Integration key scopes
Ingestion endpoints
Aggregation jobs (do not query raw events for dashboard cards)
Safety
Analytics must never block: Stripe webhooks, entitlement checks, licence validation, admin login, deploy rollback.
Tests
Tomas tasks
Exit gate
- External test app can report heartbeat
- Managed app can send events
- Dashboard shows product analytics from aggregates (not raw events)
- Integration keys can be rotated and revoked
Rollback
Disable ingestion endpoints. Existing infra stats unaffected.
Part of Milestone E — Intelligence and Launch. Ref: #27
Allow managed and external products to report health, releases, errors, events and usage.
Alex tasks
Tables
integration_keysintegration_key_eventsproduct_eventsproduct_metric_hourlyproduct_metric_dailyerror_groupsrelease_reportsexternal_heartbeatsIntegration key scopes
heartbeat:writeevents:writeerrors:writereleases:writemetrics:writeentitlements:checklicences:validateIngestion endpoints
POST /api/ingest/heartbeatPOST /api/ingest/releasesPOST /api/ingest/errorsPOST /api/ingest/eventsPOST /api/ingest/metricsAggregation jobs (do not query raw events for dashboard cards)
analytics.aggregate.hourlyanalytics.aggregate.dailyanalytics.compact.rawanalytics.retention.cleanupSafety
Analytics must never block: Stripe webhooks, entitlement checks, licence validation, admin login, deploy rollback.
Tests
Tomas tasks
Exit gate
Rollback
Disable ingestion endpoints. Existing infra stats unaffected.