One metric. One meaning.
Everywhere.
What does it actually take for SQL, BI, and an AI agent to return the same business answer? This small browser-based test harness makes semantic drift visible, reproducible, and explainable.
Six explicitly synthetic transactions. Three simulated consumer implementations. Four executable assertions. All calculations happen locally in your browser; no data is sent to a server.
Specify meaning before
comparing numbers.
Net revenue = gross sales − discounts − refunds
Calculate in integer cents. Respect the authorized region and the requested reporting period. Compare consumer results only when the dataset, grain, scope, and period are equivalent.
Inject a defect.
Observe the failure.
Start with identical implementations and four passing cases. Select one or more intentional defects, then inspect the exact change to each consumer's result. These switches alter the calculation code, not just a visual mockup.
The initial synthetic contract checks are ready.
| Contract question | SQL · reference | BI · result | AI agent · result | Verdict |
|---|
Run the tests to inspect discrepancies.
A method you can reproduce.
Not a production guarantee.
Business correctness
Return and discount handling, reporting periods, authorized regional scope, and equivalence across simulated consumers for the same inputs.
Execution-path evidence
Actual SQL/BI/agent queries, join and grain assertions, security identities, production snapshots, differential tests, lineage, and regression results over time.
The data, simulated defects, and reference calculation on this page were authored as an educational example. No connection to Databricks, a customer environment, or an external data service is established. A passing result is not an endorsement or certification of any product.