Skip to main content

EP-MEL-14 — Analytics Pipeline (Events → BigQuery → Dashboards → AI Signals)

Companion: Backlog README · EPICS.md · canonical: 07-epics-and-user-stories.md §16

Summary

WaveR2
PriorityP1
Primary owneranalytics-service
Participating servicesevery event publisher; ai-orchestrator-service (consumer of derived signals)
Journeys realisedJ-12 (Reporting), J-21 (AI HITL)
WorkflowsWF-12
Frontend surfacesControl Plane (dashboards)
Story count5

Outcome

Domain events flow into BigQuery, are conformed into marts (occupancy, revenue, channel), exposed via a query API, defined as cohorts and funnels, and surfaced as input signals to ai-orchestrator-service for forecasting and anomaly detection.

Cross-cutting AC for this epic

  • Schema-on-write contracts for every event consumed; breaking changes require ADR + dual-write window.
  • Tenant isolation preserved in marts via tenant_id partitioning + RLS in query API.
  • PII never leaves the operational tier; analytics uses pseudonymised IDs.
  • AI-input signals are versioned; a model retraining is tied to a signal version.

Stories

IDTitle
US-MEL-0111Event ingestion to BigQuery
US-MEL-0112Conformed marts (occupancy, revenue, channel)
US-MEL-0113Query API for dashboards
US-MEL-0114Cohort & funnel definitions
US-MEL-0115AI input signals from analytics

Full AC in ../07-epics-and-user-stories.md §16.

Cross-references