How the semantic layer maintains itself
A semantic layer is easy to build once and hard to keep true. Tables change, a methodology document is revised, analysts start to calculate a metric a new way, and a definition that was right last month is wrong today. Colrows traces every change to the definitions it affects, repairs what it can prove, and sends the rest to a person. This page explains what happens for each kind of change, and what you can rely on while it happens.
What happens when something changes
| When this changes | Colrows does this |
|---|---|
| The schema changes. A table or column is dropped or reshaped. | Metadata scans record the change. Every metric, dataset, verified query, and relationship that depends on it becomes invalid and is withdrawn from runtime until it is repaired. Cached SQL built on it is marked stale. |
| A document is revised. A new version of a methodology redefines a term. | The new claim is compared with the current definition. When they disagree, a definition conflict opens in the Review Inbox. Nothing is overwritten; a person decides. |
| New usage appears. Query history, dashboards, and BI models show a calculation that people repeat. | The signals become proposals, each with its evidence: a candidate metric, a business term, or a suggested verified query with its parameters drafted. |
| A person corrects an answer. | The correction helps that person at once. When several people make the same correction, it opens an inquiry for a curator. See Learning from corrections. |
| An agent cannot resolve a term. | The agent reports a semantic gap. The gap opens as an inquiry that lists the agents and example runs that hit it. |
| A metric or verified query that an agent uses changes. | Colrows finds the agent versions that have the asset in their scope and marks them as needing evaluation. An agent that follows the latest version is evaluated again at once. See When the semantic layer changes. |
The mechanics behind this table are change records and dependency-aware invalidation. Semantic Pipelines describes each scanner and pipeline. This page stays with the behavior you see.
The machine proposes, and a person decides when it matters
Colrows learns business definitions from the sources you already have: schemas and column profiles, query history, analytics platforms, data catalogs, and documents. A person does not write the semantic model by hand. The pipeline turns signals into claims and proposals, and it promotes a proposal without a person only when the evidence is strong enough. Agreement between independent sources lowers that bar.
Three cases always go to a curator: a proposal that conflicts with a current definition, a correction that several users made, and a proposal with weak evidence.
- Proof against data. When a proposed metric conflicts with the current one, Colrows runs both definitions on the warehouse and compares the results. The curator sees whether the two definitions give the same numbers, in the Checked Against Data panel on the conflict. See Published figures.
- Highest impact first. Each open inquiry gets an impact score from the answers and agent uses that depend on it, from data disagreements, and from user corrections. The Review Inbox lists the highest impact first.
Decisions are remembered
A curator answers a question once. Colrows keeps the decision and applies it on later scans, retries, and model changes.
| What happens next | What Colrows does |
|---|---|
| The next scan finds the same ambiguous columns. | It does not ask again about a question that was answered or dismissed. |
| One new ambiguous column appears beside the dismissed ones. | It asks only about the new column. |
| A new proposal run repeats a definition that a curator rejected. | The definition stays rejected, even with a new proposal ID. |
| A model repeats the original text after a curator edited it. | The curator's edit is restored when the current checks allow it. |
| A scan repeats an input that did not change. | It reuses the completed result and does not generate it again. |
A remembered decision is not permanent against the facts. When the facts under a decision change, Colrows can ask for a new one. A dismissal means that Colrows stops asking the question; it does not create a business definition.
Learning from corrections
Users find wrong answers before anyone else. Colrows learns from their corrections, and it stops one user from changing what everyone sees. A correction moves through three levels.
- Private. The corrected query is saved for the user who made it and helps that user at once. It must pass the same validation as any generated query, under the user's own access.
- Candidate. Colrows counts the users who make the same correction. Each user counts once.
- Organization. When three different users make the same correction, Colrows opens an inquiry. Only a curator's answer changes the semantic layer.
Colrows never shares a correction automatically. The private level is the same agent memory that keeps a user's preferences.
Answers say how much a definition is trusted
Colrows adds many definitions without a person, when their evidence is strong enough. An answer does not hide this. Each definition that an answer used carries a trust value for the exact version used.
| Trust | Meaning |
|---|---|
CONFIRMED | A person decided or confirmed the version. Verified queries are always confirmed, because a person writes or approves each one. |
INFERRED | The pipeline promoted the version on its own, and no person has confirmed it. |
UNKNOWN | The definition was not found, or its history does not say who decided it. |
compileSQL on the agent interface and askData on the MCP client connector return the definitions that the SQL used, each with its version and trust. An inferred definition adds a warning, and so does a definition that changed after the SQL used it. Code writes these warnings, not a model. When a curator later confirms a version, earlier answers that used it show it as confirmed.
What you can rely on
- Immutable versionsEvery change makes a new version. Every earlier version stays readable, so an answer is point-in-time reproducible.
- Change recordsEvery change is logged with who or what decided it, and is carried to the assets that depend on it. The Change Log shows each one.
- Valid-only servingOnly current, valid versions reach runtime. An agent never reads a broken definition.
- Decided onceA curator's decision is kept and applied again. The same question is not asked twice.
Published figures test a definition
A published figure is a number that the business published for a metric, such as a quarter's revenue in a board deck. Each figure is a test case for the metric's definition: when the metric runs on the warehouse, it must give the same number.
- A curator adds, deletes, and checks figures in the Published Figures section of the metric's page. A figure is for a period, or for one row at the metric's grain.
- Each figure has a tolerance, in percent of the published value. The default is 0.5%.
- A check result is
MATCHES,DIFFERS,NO_ROW, orNOT_CHECKED, with the value that the metric gave. - Find in documents suggests figures from your connected documents. Nothing is saved until the curator accepts a suggestion.
When a proposed metric conflicts with the current one, the Checked Against Data panel shows a verdict: EQUIVALENT (every row has the same value, so the definitions differ in wording only), DIFFERENT, NOT_COMPARABLE (the grains are different, or a side returned more than 5,000 rows), or NOT_CHECKED. Colrows also checks both definitions against each published figure, so the curator sees which definition matches the number that the business published. Each check is one read-only query with a time limit and a scan limit. A datasource whose metric dry-run is off or set to plan only is not checked.
Context quality shows where the layer is weak
When an answer is wrong, the cause can be the model, or it can be context that is missing, out of date, or in conflict. Consensus → Context Quality shows where the semantic layer is weak, so curators know where to spend time. These numbers never block an agent or a question.
The page has one row for each datasource, one row for documents, and one row for assets that belong to the whole organization. You select a period; the default is the last 30 days. Any signed-in user can read the counts.
| Number | What it tells you |
|---|---|
| Governed SQL | The share of database answers whose SQL came from a verified query or a structured plan, and not from SQL that a model wrote. The details split the share by whether a person confirmed every definition the SQL used. A governed answer can still be wrong, and the page says so. |
| Reviewed Accuracy | The share of answers, chosen at random, that a reviewer found correct. It is the only number on the page that measures correctness. |
| Open Issues | What waits in the Review Inbox: invalid assets, challenged assets, open definition conflicts, and semantic gaps whose inquiry is open. |
| Confirmed Use | Each time an answer in the last 90 days used a definition counts as one use: one distinct question, or one agent run. Confirmed Use is the share of those uses whose definition a person confirmed. |
- Small samples show counts. A rate appears only from 50 questions or 20 reviews. Below that, the page shows the counts.
- Daily snapshot. Colrows writes a snapshot each day at 02:15 UTC. A curator or administrator can select Update Today to see the effect of a change at once.
- Questions without governed SQL. The worklist shows up to 50 questions, the most asked first, from at most 90 days. Each has a link that opens a verified query with the question filled in.
- Confirm Definitions. This list shows the definitions that answers use and that no person has confirmed. By default it shows definitions used three or more times. A confirmation applies to one version. It does not expire with time; it ends when evidence against the definition arrives, for example a user's correction or a change to something under it.
- Answer reviews. Curators and administrators review a sample of answers, 25 each week by default. An organization can set the target to 0 to turn reviews off. A reviewer sees the question, the SQL, and the definitions with their trust, and never reviews their own question.
The human work is measured
The claim that the layer maintains itself can be checked with numbers. Each counted change records who decided it: the pipeline, a curator who answered an inquiry or approved a proposal, or a person who edited the definition directly. The Curation Effort section of the Context Quality page shows these counts for the period you select, for the organization and for each datasource. Colrows counts decisions, not screen time.