contextlift

Empirical results

Every number published in contextlift is pinned by a test in tests/ to a committed run in docs/evidence/ or examples/. The machine-readable source of truth is docs/assets/results.json.

All intervals below are per-question 95% paired Tango score intervals with continuity correction (metrics.paired_difference_interval), paired with exact two-sided McNemar p-values.

Published results table

Context changeQuestionsLift, points [95% CI]McNemar pVerdictEvidence
BIRD evidence sentences written by people, 3 databases (K=1, no holdout split)39+23.1 [+1.2, +43.6]0.0352REAL GAINexamples/bird/run.py
BIRD evidence sentences, 11 databases (25.4% selective coverage, oracle table routing)65+18.5 [+4.6, +32.7]0.0044REAL GAINexamples/bird/enterprise_result.json
BEAVER verified-query worked examples, 97-table warehouse69+10.1 [+0.2, +21.8]0.0391REAL GAINexamples/beaver/result.json
LookML read into rules, no written descriptions102+2.0 [-4.8, +9.3]0.6875NOT PROVENround-2026-09-12.txt
Oracle selection vs 22 KB blob, 3 databases450-2.2 [-5.9, +1.4]0.2451NOT PROVENblob-vs-selection.txt
Oracle selection vs 22 KB blob, Toxicology139-8.6 [-17.0, -0.8]0.0290REAL LOSSblob-vs-selection.txt
Repairing quoted enum literals against live column values450+1.3 [-1.1, +3.9]0.3075NOT PROVENrepaired-literals.txt

Reproduce the headline BIRD row offline with zero keys and zero network:

make example-bird

Reproduce the BEAVER 97-table warehouse tour and 11-database BIRD tour offline:

make example-beaver
make example-bird-enterprise
make example-thelook

Three findings that shaped contextlift

  1. Sending everything beat perfect retrieval. Giving each question only its own oracle-selected sentence instead of sending the full 22 KB context bundle scored -2.2 points across 450 questions (NOT PROVEN) and -8.6 points [-17.0, -0.8] on Toxicology (7 fixed, 19 broke, p = 0.0290, REAL LOSS). Even perfect per-question filtering can starve cross-table context when the whole ruleset fits easily in the prompt. (Run)
  2. A BI model with no written descriptions is not context. Reading LookML straight into rules without human business descriptions scored +2.0 points over 102 held-out questions (p = 0.6875, NOT PROVEN). Looker's public project also carried a silent schema mismatch (orders.id vs BigQuery orders.order_id), which motivated building live warehouse checks into lint. (Run)
  3. Models almost never ask for more context. Instructed to reply INSUFFICIENT rather than guess when definitions were missing, the model escalated on only 2 of 139 questions (1.4%). That run had no positive control, so it cannot separate a model that refuses to escalate from a prompt instruction it ignores. (Run)

On the 97-table BEAVER warehouse, hand-written rules scored -0.7 points on the working set; switching to leak-checked verified-query worked examples (with 3 template twins banned) delivered +10.1 points [+0.2, +21.8] (p = 0.0391, REAL GAIN, 1 regression dw_247).

Retraction postmortem (WITHDRAWN)

An earlier v0.1.0 class ablation on thelook reported a large worked-examples penalty (-27.0 points [-37.8, -16.2] and -24.3 points [-34.8, -13.9], with cost per correct answer halving from $0.0004 to $0.0002). Those figures were WITHDRAWN on 2026-12-02 (v0.2.0):

Research monographs and archive

For readers who want the full campaign narratives, methodology proofs, and historical engineering notes: