Celiq
v0.12Open app โ†—
Docs/Building with Celiq/Metric Contracts

Metric Contracts

Formal, versioned agreements on what each metric means. Revenue = X, signed by CFO. When Orion answers, it cites the active contract.

WeaverLuminaryUpdated Jun 2026 ยท 4 min read
โœฆ
In this section
Part of Celiq's semantic layer platform. Connect your warehouse, model your data once, query it everywhere.
๐Ÿ’ก
Tip
What it is: Versioned, signed definitions for what each metric means โ€” enforced in every Orion answer.
Why use it: Eliminate "whose definition is right?" arguments. When Revenue v2 is signed by the CFO, that's what Orion uses.
Where to find it: Suite โ†’ Governance โ†’ Contracts
Who can use it: Weaver and Luminary can create and sign contracts. All roles see contract citations in Orion answers.

Metric Contracts

Formal, versioned agreements on what each metric means. Revenue = X, signed by CFO. When Orion answers, it cites the active contract. When two definitions conflict, it flags which contract applies.

Creating a contract

Suite โ†’ Governance โ†’ Contracts โ†’ "New Contract"

What a contract contains

FieldDescription
Metric nameThe canonical name (e.g. revenue)
SQL definitionThe exact query that produces this metric
Plain English descriptionWhat it means in business terms
Signed byName and role of the person signing
Signature dateWhen the contract was signed
NotesOptional context (edge cases, exclusions, etc.)

Versioning

Contracts are versioned. When you update a definition:

  • v1 is preserved and marked as superseded
  • v2 becomes active immediately
  • Full version history is always available under the contract detail page

This means you can answer "what did Revenue mean in Q1?" by looking at which version was active at that time.

How Orion uses contracts

Every Orion answer that involves a contracted metric cites the active contract:

"Source: orders_analysis ยท Contract: Revenue v2 ยท Aisha (CFO)"

If a metric appears in multiple contracts, Orion flags the conflict and shows which version it used and why.

Conflict resolution

When Orion detects two active contracts that define the same metric differently, it:

  1. Notes the conflict in the answer provenance footer
  2. Uses the most recently signed contract
  3. Flags the conflict in the Lumen Metric Conflicts panel

Resolve conflicts in the Metric Conflicts panel โ€” either archive one version or update both to share a definition.