ARCHOS 525 BLUEPRINT · /d/dgm_int-bi-semantic-layer
BI & Semantic Layer Internals (Governed Metrics, SQL Compiler & Cache)
6 COMPONENTS · 6 FLOWS · UPDATED 2026-11-24
GITHUB README / PR PREVIEW CARD
[](https://archos.sageideas.dev/d/dgm_int-bi-semantic-layer) *Interactive architecture diagram powered by [ArchOS Studio](https://archos.sageideas.dev/d/dgm_int-bi-semantic-layer)*
NOTION / DOCS / CONFLUENCE EMBED
<iframe src="https://archos.sageideas.dev/embed/dgm_int-bi-semantic-layer" width="100%" height="580" style="border:1px solid rgba(240,236,225,0.14);border-radius:6px;" loading="lazy" title="BI & Semantic Layer Internals (Governed Metrics, SQL Compiler & Cache) — Interactive in ArchOS"></iframe>
PORTABLE MERMAID SPEC (GITHUB / NOTION / RFC)
flowchart LR
client_0["BI / AI Text-to-SQL"]
n1_1["Metric Query API"]
n2a_2["Semantic SQL Compiler"]
n2b_3[("Pre-Agg Rollup Cache")]
n3_4[("Cloud OLAP Warehouse")]
downstream_5["Downstream & OTel"]
client_0 -->|"1. Query KPI · SQL/API"| n1_1
n1_1 -->|"2a. Compile · AST"| n2a_2
n1_1 -.->|"2b. Hit rollup · Cache"| n2b_3
n2a_2 -->|"3a. Scan fact · SQL"| n3_4
n2b_3 -->|"3b. Sync · Control"| n3_4
n3_4 -.->|"4. Emit / · OTLP/API"| downstream_5COMPONENT STACK (6)
- BI / AI Text-to-SQLSTATELESSMetric + Dimension Query
- Metric Query APISTATELESSGraphQL/SQL/JDBC governed entry
- Semantic SQL CompilerSTATELESSResolves joins, grain & measures
- Pre-Agg Rollup CacheSTATEFULServes common grains in <50ms
- Cloud OLAP WarehouseSTATEFULClickHouse / Snowflake / Iceberg
- Downstream & OTelSTATELESSConsumers, metrics & SLOs
REQUEST & DATA FLOW (6)
- BI / AI Text-to-SQL → Metric Query API (Query KPI)[SQL/API]
- Metric Query API → Semantic SQL Compiler (Compile)[AST]
- Metric Query API → Pre-Agg Rollup Cache (Hit rollup)[Cache]
- Semantic SQL Compiler → Cloud OLAP Warehouse (Scan fact)[SQL]
- Pre-Agg Rollup Cache → Cloud OLAP Warehouse (Sync)[Control]
- Cloud OLAP Warehouse → Downstream & OTel (Emit /)[OTLP/API]