Technical Publication
architecture note

00 Vision Paper

4 August 2026Revision 013 min readShreyas Agarwal
Dry Read

Vision Paper: A Shared Semantic Layer

Note

Audience: Architects, product strategy, and engineering leadership. Answers the fundamental question: Why does this problem exist in the world, and why is a new architecture needed to solve it?

The Problem

Modern analytical systems repeatedly encode business meaning independently across dashboards, reports, APIs, AI assistants, alerts, and automation. Every consumer reconstructs semantics from physical schemas, creating duplicated logic, inconsistent interpretations, and increasing maintenance cost as the number of consumers grows.

OBSObservation

The failure mode of fragmented semantics isn't a crash — it's quiet disagreement. Two features answer the same business question correctly, differently, and nobody notices until numbers are already trusted by leadership.

This problem compounds with AI-driven data interfaces. AI is the first consumer class that must resolve business meaning on the fly in response to open-ended natural-language questions, rather than consuming pre-built reports. AI exposes this semantic gap; it doesn't create it.

Existing Approaches & Limitations

ApproachRepresentative ToolsPhilosophical AssumptionLimitations in Local/Edge Environments
Vendor BI ModelsPower BI, Microsoft FabricCentralized, warehouse-boundRound-trip latencies, proprietary lock-in
Declarative ModelsLookMLCentralized query targetsMonolithic server execution
Transformation Layersdbt Semantic Layer, MetricFlowMetric-first batch transformationHigh server latency for real-time edge UI
Semantic ServersCube.js, AtScaleCentralized OLAP serversAssumes server in the loop for every interaction
Warning

Existing tools optimize for centralized warehouse execution. They assume a central server resolves meaning and runs every query over the network.

Core Principles

STEPEntity-First, Not Column-First

A business concept (customer, revenue, transaction date) is the stable unit of meaning. Physical column names are temporary implementation details.

STEPProjection Compilation

Authored once, compiled into thin, purpose-built views (Prompt View, Planner View, Resolver View, Tool Registry). Raw objects are never shipped to models.

STEPDecoupled Multi-Registry Architecture

Definitions, relationships, value mappings, and live statistics evolve on independent lifecycles across four peer registries.

STEPStateless, Read-Only Runtime

Registry definitions are a shared, immutable reference. Session state lives 100% outside registry definitions.

Design Goals

TRD — Trade-off
Gain

Edge-first, local-first execution. Resolvable and executable in-browser or desktop runtimes with zero server round trips.

Cost

Requires precomputing thin compiled projections for UI and LLM prompt windows.

  • Local-First & Edge-Executable: Resolvable in the client without server round trips.
  • Deterministic: The same request against the same ontology version yields identical queries every time.
  • AI-Native: Designed from the start to serve open-ended natural language intent.
  • Human-Authorable: Domain experts can declare business concepts without understanding compiler internals.

Non-Goals

  • Not replacing data warehouses or query engines.
  • Not a general-purpose graph database.
  • Not an ETL or batch data transformation framework.