contextlift
contextlift

CI for the context your SQL agent reads.

Rules, dbt metrics, semantic views, LookML: every change gets a verdict before it merges.

Three context changes, three verdicts: +23.1 REAL GAIN, +2.0 NOT PROVEN, -8.6 REAL LOSS.

Some context helps. Some does nothing. Some makes your agent worse. Every row is pinned by a test to a committed run.

uvx contextlift demo

Live interactive artifacts

Generated from real CLI runs over an Enterprise Finance DuckDB warehouse. Open either report directly in your browser.

contextlift pr-summary pull request comment

Three-Band Verdict Bundle

Zero-JavaScript strict-CSP verdict report with held-out REAL GAIN headline, MIXED safety banner, HMAC-SHA256 integrity seal, and folded SQL diffs.

verdict.html preview
Inspect live verdict.html →

Business Steward Review Pack

Offline HTML contract cards with plain-English filters, join date bases, and PII-masked currency previews for non-SQL business stewards.

steward_review.html preview
Inspect live steward_review.html →

Every published result

Generated straight from docs/assets/results.json. Intervals are per-question 95% paired Tango score intervals with exact McNemar p-values. See How it works: Results for the full breakdown, boundary conditions, and retraction record.

Context change Questions Lift, points (95% CI) McNemar p Verdict
BIRD evidence sentences, 3 databases
source: examples/bird/run.py · people
K=1 (single repetition), no holdout split.
39+23.1 pts
[+1.2, +43.6]
p = 0.0352REAL GAIN
BIRD evidence sentences, 11 databases
source: examples/bird/enterprise_result.json · people
25.4% selective coverage (65 of 256 reserved questions); oracle table routing.
65+18.5 pts
[+4.6, +32.7]
p = 0.0044REAL GAIN
verified-query examples, 97-table warehouse
source: examples/beaver/result.json · people
Verified-query worked examples selected after hand-written rules scored -0.7 on the working set; 3 template twins banned; 1 regression (dw_247).
69+10.1 pts
[+0.2, +21.8]
p = 0.0391REAL GAIN
a BI model with no written descriptions
source: examples/thelook/lookml-arm/round-2026-09-12.txt · a machine
Looker's 2022-02-09 public LookML project also carries a legacy schema mismatch (orders.id in examples/thelook/lookml-arm/rules/00-from-lookml.md vs orders.order_id in BigQuery thelook_ecommerce).
102+2.0 pts
[-4.8, +9.3]
p = 0.6875NOT PROVEN
oracle selection vs 22 KB blob (3 DBs)
source: docs/evidence/blob-vs-selection.txt · people
without = every sentence (the blob), with = this question's own sentence. A negative lift means the blob won.
450-2.2 pts
[-5.9, +1.4]
p = 0.2451NOT PROVEN
oracle selection vs 22 KB blob (Toxicology)
source: docs/evidence/blob-vs-selection.txt · people
without = every sentence (the blob), with = this question's own sentence. A negative lift means the blob won.
139-8.6 pts
[-17.0, -0.8]
p = 0.0290REAL LOSS
repairing quoted values against the real column values
source: docs/evidence/repaired-literals.txt · a machine
without = the sentence as written, with = every quoted literal repaired. A positive lift means the repair helped.
450+1.3 pts
[-1.1, +3.9]
p = 0.3075NOT PROVEN