ORIGINAL EXECUTABLE EXAMPLE / SEMANTIC RELIABILITY

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.

6SYNTHETIC TRANSACTIONS
3CONSUMER EXECUTION PATHS
4CONTRACT TEST SCENARIOS

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.

4 cases passed
0 cases failed

The initial synthetic contract checks are ready.

Contract questionSQL · referenceBI · resultAI agent · resultVerdict

Run the tests to inspect discrepancies.

A method you can reproduce.
Not a production guarantee.

WHAT IT TESTS

Business correctness

Return and discount handling, reporting periods, authorized regional scope, and equivalence across simulated consumers for the same inputs.

WHAT REAL DEPLOYMENTS REQUIRE

Execution-path evidence

Actual SQL/BI/agent queries, join and grain assertions, security identities, production snapshots, differential tests, lineage, and regression results over time.