# Figure provenance Written by `scripts/22_paper_figures.py`; do not edit by hand. Every plotted value is read from the files below (sha256, first 16 hex). Checks against `docs/plan.md`: 107/107 within tolerance. | Input | sha256 | | --- | --- | | `outputs/m34/report.json` | `cfa9612b5ec468dd` | | `outputs/m5/errors/report.json` | `4e4aa52a0b52bd12` | | `outputs/m5/synthetic/report.json` | `e2f2b70c2b5b7b77` | | `outputs/m5/synthetic/settings_t2.csv` | `8a3e97ca68178008` | | `outputs/m5/synthetic/settings_t3.csv` | `0a20db4f61312d51` | ## t4_modes.pdf Source: `outputs/m34/report.json` key `qa`, model `vai-deepseek-v4-1-flash`, subset `well`, average `macro_families`, metric `correct`; one point and 95% well-cluster bootstrap CI per repetition (0, 1, 2); black tick = mean of the three estimates. | Mode | n | Rep 0 | Rep 1 | Rep 2 | Mean | | --- | ---: | ---: | ---: | ---: | ---: | | Zero-shot | 1652 | 0.076 (0.036-0.123) | 0.066 (0.023-0.114) | 0.070 (0.024-0.130) | 0.071 | | Few-shot | 1652 | 0.144 (0.092-0.206) | 0.154 (0.111-0.199) | 0.154 (0.106-0.206) | 0.151 | | RAG (XML) | 1652 | 0.145 (0.108-0.188) | 0.151 (0.108-0.199) | 0.148 (0.109-0.194) | 0.148 | | C4 XML | 1366 | 0.153 (0.067-0.248) | 0.154 (0.066-0.254) | 0.145 (0.065-0.240) | 0.151 | | C4 HTML | 1366 | 0.176 (0.075-0.258) | 0.187 (0.095-0.256) | 0.169 (0.074-0.239) | 0.177 | | C4 OCR | 1366 | 0.176 (0.085-0.261) | 0.182 (0.095-0.260) | 0.184 (0.087-0.266) | 0.181 | | Tool-only | 1652 | 0.722 (0.705-0.759) | 0.704 (0.689-0.736) | 0.709 (0.675-0.747) | 0.712 | | Agent | 1652 | 0.606 (0.564-0.679) | 0.629 (0.604-0.668) | 0.620 (0.553-0.705) | 0.618 | ## taxonomy.pdf Source: `outputs/m5/errors/report.json` key `taxonomy_macro`, model `vai-deepseek-v4-1-flash`, family `macro` (macro over question families, mean of 3 repetitions, protocol v4 classes). The last segment merges `no_citation` and `answered_unanswerable`. | Mode | n | Correct | Abstention | Wrong wellbore | Wrong report cited | Right report, wrong value | Call failure | No citation or answered unanswerable | | --- | ---: | ---: | ---: | ---: | ---: | ---: | ---: | ---: | | Zero-shot | 1652 | 0.071 | 0.891 | 0.026 | 0.012 | 0.000 | 0.000 | 0.000 | | Few-shot | 1652 | 0.151 | 0.739 | 0.079 | 0.009 | 0.000 | 0.000 | 0.022 | | RAG (XML) | 1652 | 0.148 | 0.638 | 0.110 | 0.030 | 0.066 | 0.000 | 0.008 | | C4 XML | 1366 | 0.151 | 0.678 | 0.095 | 0.026 | 0.047 | 0.000 | 0.002 | | C4 HTML | 1366 | 0.177 | 0.535 | 0.190 | 0.025 | 0.072 | 0.000 | 0.001 | | C4 OCR | 1366 | 0.181 | 0.580 | 0.137 | 0.026 | 0.074 | 0.000 | 0.003 | | Tool-only | 1652 | 0.712 | 0.083 | 0.049 | 0.008 | 0.144 | 0.004 | 0.000 | | Agent | 1652 | 0.618 | 0.129 | 0.026 | 0.014 | 0.146 | 0.064 | 0.003 | ## leakage.pdf Source: `outputs/m34/report.json` keys `classification` (AP, `definition` b, `split` well, `modality` xml, `subset` all) and `classification_contrasts` (`unmasked_minus_masked`, subset all, paired 95% well-cluster bootstrap CI). Bars: TF-IDF single run, DistilBERT mean of seeds 0-2. | Task | Method | Masked AP (CI) | Unmasked AP (CI) | Unmasked - masked (CI) | | --- | --- | --- | --- | --- | | T2(b) | TF-IDF | 0.463 (0.418 to 0.513) | 0.995 (0.991 to 0.999) | 0.531 (0.480 to 0.580) | | T2(b) | DistilBERT | 0.579 (0.554 to 0.630); 0.596 (0.575 to 0.628); 0.603 (0.591 to 0.634) | 0.870 (0.834 to 0.904); 0.880 (0.839 to 0.907); 0.869 (0.826 to 0.902) | 0.291 (0.214 to 0.341); 0.283 (0.222 to 0.318); 0.266 (0.198 to 0.305) | | T3(b) | TF-IDF | 0.1225 (0.0934 to 0.1953) | 0.1273 (0.0942 to 0.2031) | 0.0048 (-0.0005 to 0.0238) | | T3(b) | DistilBERT | 0.1216 (0.0976 to 0.1692); 0.1175 (0.1023 to 0.1692); 0.1245 (0.0934 to 0.1648) | 0.1206 (0.0968 to 0.1563); 0.1189 (0.0979 to 0.1788); 0.1312 (0.0964 to 0.1807) | -0.0011 (-0.0240 to 0.0068); 0.0014 (-0.0204 to 0.0323); 0.0066 (-0.0135 to 0.0305) | Reference lines (masked, by well, subset all): T2(b) majority 0.1828, lexicon 0.2511; T3(b) majority 0.1136. **Discrepancy with plan Sec. 1.6 (final paragraph).** The values stated there equal the mean over the subsets `all` and `without_sidetrack` (and over XML and OCR for TF-IDF), not the primary subset `all`. The figure plots `all` (XML), the subset behind the earlier TF-IDF statement in plan Sec. 1.6, the DistilBERT deltas in Sec. 1.7 and the protocol v6 reference AP (`references.t2.source`). | Mode / split / method | Plan value | Pooled mean (= plan) | Primary `all`, XML | Rows pooled | | --- | ---: | ---: | ---: | ---: | | masked/well/majority | 0.179 | 0.1792 | 0.1828 | 2 | | masked/well/lexicon | 0.249 | 0.2493 | 0.2511 | 2 | | masked/well/tfidf_logistic | 0.461 | 0.4606 | 0.4635 | 4 | | masked/well/distilbert | 0.597 | 0.5974 | 0.5929 | 6 | | masked/well/vai_deepseek_zero_shot | 0.405 | 0.4052 | 0.4074 | 6 | | masked/well/qwen_zero_shot | 0.261 | 0.2608 | 0.2638 | 2 | | masked/wellbore/distilbert | 0.619 | 0.6186 | 0.6183 | 6 | | masked/wellbore/tfidf_logistic | 0.484 | 0.4844 | 0.4894 | 2 | | unmasked/well/tfidf_logistic | 0.994 | 0.9945 | 0.9947 | 2 | | unmasked/well/distilbert | 0.869 | 0.8690 | 0.8729 | 6 | ## planted.pdf Sources: `outputs/m5/synthetic/settings_t2.csv` (rows f = 0.02; f = 0.10 is not drawn because its protocol v6 null check failed), `outputs/m5/synthetic/settings_t3.csv`, and `outputs/m5/synthetic/report.json` (`design.t2_pi`, `design.t3_pi`, `references.t2.ap`, `references.t3.ap`, `t2_cues.effective_cue_rate.reference_report`, `t3_hazard.effective_strength.reference_report`). Lines: mean over 5 seeds; bands: seed min-max. | c | mean AP | min | max | | ---: | ---: | ---: | ---: | | 0 | 0.1821 | 0.1769 | 0.1884 | | 0.1 | 0.2007 | 0.1952 | 0.2070 | | 0.25 | 0.2581 | 0.2498 | 0.2657 | | 0.5 | 0.3625 | 0.3584 | 0.3662 | | 0.75 | 0.4395 | 0.4313 | 0.4527 | | 1 | 0.5215 | 0.5163 | 0.5306 | | s | depth AP mean | min | max | oracle AP mean | min | max | | ---: | ---: | ---: | ---: | ---: | ---: | ---: | | 0 | 0.1177 | 0.1097 | 0.1247 | 0.1154 | 0.1107 | 0.1199 | | 0.25 | 0.1185 | 0.1101 | 0.1270 | 0.1390 | 0.1316 | 0.1467 | | 0.5 | 0.1306 | 0.1182 | 0.1427 | 0.1763 | 0.1612 | 0.1882 | | 1 | 0.1909 | 0.1759 | 0.2058 | 0.2830 | 0.2526 | 0.3020 | | 2 | 0.3794 | 0.3453 | 0.3987 | 0.4894 | 0.4832 | 0.4958 | T2: prevalence 0.183, real masked TF-IDF AP 0.4635, effective cue fraction 0.823 (seed range 0.785 to 0.840). T3: prevalence 0.1136, real depth-forecast AP 0.1495, effective strength 0.657 (seed range 0.554 to 0.716). ## Checks against docs/plan.md | Quantity | File | Plan | Tolerance | OK | | --- | ---: | ---: | ---: | --- | | T4 zero_shot/xml mean of 3 reps | 0.0710 | 0.071 | 0.002 | yes | | T4 few_shot/xml mean of 3 reps | 0.1506 | 0.151 | 0.002 | yes | | T4 rag/xml mean of 3 reps | 0.1479 | 0.148 | 0.002 | yes | | T4 c4/xml mean of 3 reps | 0.1510 | 0.151 | 0.002 | yes | | T4 c4/html mean of 3 reps | 0.1773 | 0.177 | 0.002 | yes | | T4 c4/ocr mean of 3 reps | 0.1807 | 0.181 | 0.002 | yes | | T4 tool_only/xml mean of 3 reps | 0.7118 | 0.712 | 0.002 | yes | | T4 agent/xml mean of 3 reps | 0.6183 | 0.618 | 0.002 | yes | | taxonomy zero_shot/xml correct | 0.0710 | 0.071 | 0.002 | yes | | taxonomy zero_shot/xml abstained | 0.8910 | 0.891 | 0.002 | yes | | taxonomy zero_shot/xml wrong_wellbore | 0.0261 | 0.026 | 0.002 | yes | | taxonomy zero_shot/xml evidence_missed | 0.0119 | 0.012 | 0.002 | yes | | taxonomy zero_shot/xml wrong_with_evidence | 0.0000 | 0 | 0.002 | yes | | taxonomy zero_shot/xml failed | 0.0000 | 0 | 0.002 | yes | | taxonomy few_shot/xml correct | 0.1506 | 0.151 | 0.002 | yes | | taxonomy few_shot/xml abstained | 0.7395 | 0.739 | 0.002 | yes | | taxonomy few_shot/xml wrong_wellbore | 0.0790 | 0.079 | 0.002 | yes | | taxonomy few_shot/xml evidence_missed | 0.0093 | 0.009 | 0.002 | yes | | taxonomy few_shot/xml wrong_with_evidence | 0.0000 | 0 | 0.002 | yes | | taxonomy few_shot/xml failed | 0.0000 | 0 | 0.002 | yes | | taxonomy rag/xml correct | 0.1479 | 0.148 | 0.002 | yes | | taxonomy rag/xml abstained | 0.6384 | 0.638 | 0.002 | yes | | taxonomy rag/xml wrong_wellbore | 0.1100 | 0.11 | 0.002 | yes | | taxonomy rag/xml evidence_missed | 0.0300 | 0.03 | 0.002 | yes | | taxonomy rag/xml wrong_with_evidence | 0.0656 | 0.066 | 0.002 | yes | | taxonomy rag/xml failed | 0.0000 | 0 | 0.002 | yes | | taxonomy c4/xml correct | 0.1510 | 0.151 | 0.002 | yes | | taxonomy c4/xml abstained | 0.6782 | 0.678 | 0.002 | yes | | taxonomy c4/xml wrong_wellbore | 0.0954 | 0.095 | 0.002 | yes | | taxonomy c4/xml evidence_missed | 0.0259 | 0.026 | 0.002 | yes | | taxonomy c4/xml wrong_with_evidence | 0.0475 | 0.047 | 0.002 | yes | | taxonomy c4/xml failed | 0.0000 | 0 | 0.002 | yes | | taxonomy c4/html correct | 0.1773 | 0.177 | 0.002 | yes | | taxonomy c4/html abstained | 0.5346 | 0.535 | 0.002 | yes | | taxonomy c4/html wrong_wellbore | 0.1898 | 0.19 | 0.002 | yes | | taxonomy c4/html evidence_missed | 0.0253 | 0.025 | 0.002 | yes | | taxonomy c4/html wrong_with_evidence | 0.0717 | 0.072 | 0.002 | yes | | taxonomy c4/html failed | 0.0000 | 0 | 0.002 | yes | | taxonomy c4/ocr correct | 0.1807 | 0.181 | 0.002 | yes | | taxonomy c4/ocr abstained | 0.5805 | 0.58 | 0.002 | yes | | taxonomy c4/ocr wrong_wellbore | 0.1367 | 0.137 | 0.002 | yes | | taxonomy c4/ocr evidence_missed | 0.0257 | 0.026 | 0.002 | yes | | taxonomy c4/ocr wrong_with_evidence | 0.0738 | 0.074 | 0.002 | yes | | taxonomy c4/ocr failed | 0.0000 | 0 | 0.002 | yes | | taxonomy tool_only/xml correct | 0.7118 | 0.712 | 0.002 | yes | | taxonomy tool_only/xml abstained | 0.0827 | 0.083 | 0.002 | yes | | taxonomy tool_only/xml wrong_wellbore | 0.0493 | 0.049 | 0.002 | yes | | taxonomy tool_only/xml evidence_missed | 0.0082 | 0.008 | 0.002 | yes | | taxonomy tool_only/xml wrong_with_evidence | 0.1445 | 0.144 | 0.002 | yes | | taxonomy tool_only/xml failed | 0.0035 | 0.004 | 0.002 | yes | | taxonomy agent/xml correct | 0.6183 | 0.618 | 0.002 | yes | | taxonomy agent/xml abstained | 0.1285 | 0.129 | 0.002 | yes | | taxonomy agent/xml wrong_wellbore | 0.0264 | 0.026 | 0.002 | yes | | taxonomy agent/xml evidence_missed | 0.0136 | 0.014 | 0.002 | yes | | taxonomy agent/xml wrong_with_evidence | 0.1464 | 0.146 | 0.002 | yes | | taxonomy agent/xml failed | 0.0637 | 0.064 | 0.002 | yes | | T2(b) TF-IDF masked AP | 0.4635 | 0.463 | 0.002 | yes | | T2(b) TF-IDF unmasked AP | 0.9947 | 0.995 | 0.002 | yes | | T2(b) TF-IDF unmasked-masked | 0.5313 | 0.531 | 0.002 | yes | | T2(b) DistilBERT masked AP seed 0 | 0.5791 | 0.579 | 0.002 | yes | | T2(b) DistilBERT masked AP seed 1 | 0.5964 | 0.596 | 0.002 | yes | | T2(b) DistilBERT masked AP seed 2 | 0.6030 | 0.603 | 0.002 | yes | | T2(b) DistilBERT unmasked-masked seed 0 | 0.2908 | 0.291 | 0.002 | yes | | T2(b) DistilBERT unmasked-masked seed 1 | 0.2833 | 0.283 | 0.002 | yes | | T2(b) DistilBERT unmasked-masked seed 2 | 0.2660 | 0.266 | 0.002 | yes | | T2(b) majority masked AP (= prevalence) | 0.1828 | 0.183 | 0.002 | yes | | T3(b) TF-IDF masked AP | 0.1225 | 0.1225 | 0.0002 | yes | | T3(b) TF-IDF unmasked AP | 0.1273 | 0.1273 | 0.0002 | yes | | T3(b) TF-IDF unmasked-masked | 0.0048 | 0.0048 | 0.0002 | yes | | T3(b) DistilBERT masked AP mean | 0.1212 | 0.121 | 0.002 | yes | | T3(b) majority AP (= prevalence) | 0.1136 | 0.114 | 0.002 | yes | | plan pooled T2(b) masked/well/majority | 0.1792 | 0.179 | 0.002 | yes | | plan pooled T2(b) masked/well/lexicon | 0.2493 | 0.249 | 0.002 | yes | | plan pooled T2(b) masked/well/tfidf_logistic | 0.4606 | 0.461 | 0.002 | yes | | plan pooled T2(b) masked/well/distilbert | 0.5974 | 0.597 | 0.002 | yes | | plan pooled T2(b) masked/well/vai_deepseek_zero_shot | 0.4052 | 0.405 | 0.002 | yes | | plan pooled T2(b) masked/well/qwen_zero_shot | 0.2608 | 0.261 | 0.002 | yes | | plan pooled T2(b) masked/wellbore/distilbert | 0.6186 | 0.619 | 0.002 | yes | | plan pooled T2(b) masked/wellbore/tfidf_logistic | 0.4844 | 0.484 | 0.002 | yes | | plan pooled T2(b) unmasked/well/tfidf_logistic | 0.9945 | 0.994 | 0.002 | yes | | plan pooled T2(b) unmasked/well/distilbert | 0.8690 | 0.869 | 0.002 | yes | | planted T2 f=0.02 c=0.0 mean AP | 0.1821 | 0.182 | 0.002 | yes | | planted T2 f=0.02 c=0.1 mean AP | 0.2007 | 0.201 | 0.002 | yes | | planted T2 f=0.02 c=0.25 mean AP | 0.2581 | 0.258 | 0.002 | yes | | planted T2 f=0.02 c=0.5 mean AP | 0.3625 | 0.363 | 0.002 | yes | | planted T2 f=0.02 c=0.75 mean AP | 0.4395 | 0.44 | 0.002 | yes | | planted T2 f=0.02 c=1.0 mean AP | 0.5215 | 0.521 | 0.002 | yes | | planted T3 s=0.0 mean AP | 0.1177 | 0.118 | 0.002 | yes | | planted T3 s=0.0 oracle AP | 0.1154 | 0.115 | 0.002 | yes | | planted T3 s=0.25 mean AP | 0.1185 | 0.119 | 0.002 | yes | | planted T3 s=0.25 oracle AP | 0.1390 | 0.139 | 0.002 | yes | | planted T3 s=0.5 mean AP | 0.1306 | 0.131 | 0.002 | yes | | planted T3 s=0.5 oracle AP | 0.1763 | 0.176 | 0.002 | yes | | planted T3 s=1.0 mean AP | 0.1909 | 0.191 | 0.002 | yes | | planted T3 s=1.0 oracle AP | 0.2830 | 0.283 | 0.002 | yes | | planted T3 s=2.0 mean AP | 0.3794 | 0.379 | 0.002 | yes | | planted T3 s=2.0 oracle AP | 0.4894 | 0.489 | 0.002 | yes | | planted t2_pi | 0.1830 | 0.183 | 0.002 | yes | | planted t2_real | 0.4635 | 0.463 | 0.002 | yes | | planted c_eff | 0.8230 | 0.82 | 0.005 | yes | | planted c_lo | 0.7846 | 0.78 | 0.005 | yes | | planted c_hi | 0.8401 | 0.84 | 0.005 | yes | | planted t3_pi | 0.1136 | 0.114 | 0.002 | yes | | planted t3_real | 0.1495 | 0.15 | 0.002 | yes | | planted s_eff | 0.6567 | 0.66 | 0.005 | yes | | planted s_lo | 0.5541 | 0.55 | 0.005 | yes | | planted s_hi | 0.7163 | 0.72 | 0.005 | yes |