Add the M6 manuscript draft, figure script and number check

First full draft of the Volve-DIA paper in paper/ (13 LaTeX sections, 44 pages),
four figures built from outputs/ with assertions, a checker that traces every
number to plan.md or outputs/, and a source audit with its fixes. Correct the
pooled T2(b) values in the notes to the primary values and sync the plan, README,
overview and progress page.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-25 02:02:43 +00:00
parent 8c924b7f0d
commit 221399260f
37 changed files with 4198 additions and 46 deletions

74
paper/provenance/01_02.md Normal file
View File

@@ -0,0 +1,74 @@
# Provenance: sections 01_introduction.tex and 02_related.tex
Sources: `docs/plan.md` (section numbers given), `outputs/` files, `docs/literature_notes.md` (LN) for literature
facts that `plan.md` does not repeat. "Derived" marks a value computed from listed source values.
## Introduction (01_introduction.tex)
| Claim | Value | Source |
| --- | --- | --- |
| DDR reports, wellbores, wells | 1,759; 26; 11 | plan §1.2; AGENTS Status |
| Activities | 23,447 | plan §1.2 |
| Wellbores with WITSML time logs; reports covered | 21; 1,384 | plan §1.1 |
| NPT (b) activities and share | 4,286 (18.3%) | plan §1.2 |
| PetroAgents leaked-code ablation | 0.355 to 0.431 on 30 examples | plan §2.2, §9; LN §2.1 |
| PetroAgents sample size per seed | 60 examples | plan §2.2 |
| Tight well / HPHT render bug | "Y" in all 1,759 HTML; 0 (N) in XML | plan §1.3 |
| OCR against HTML for all reports with complete OCR | CER 2.40%, WER 5.56% | outputs/ocr_qc_hub/summary.json (1,752 reports) |
| T4 questions and templates; three-way answer agreement | 1,662; 39; 100% | plan §1, §6 (M1); AGENTS Status |
| M2 raters, items | 3 LLM raters, 300 masked activities | plan §1.5 |
| Rater median weighted kappa NPT (b) | 0.283 (both passes) | plan §1.5 table |
| kappa threshold; classes qualified | 0.60; 0 | plan §6 (G1) |
| DrillScribe episode keys | 1,758/1,758 | plan §1.5 cross-checks |
| Judge kappa (Sonnet vs automatic score) | 0.98 | plan §1.7 (G3) |
| T4 main scope, C4 pairs and well-scoped C4 pairs | 1,652; 1,376 and 1,366; 1,293 and 1,284 without date flags | outputs/m34/qa.csv and report.json |
| DeepSeek T4 macro-family accuracy | tool_only 0.712, agent 0.618, RAG 0.148, zero-shot 0.071 | plan §1.6/§1.7 G2 table; outputs/m34/report.json |
| agent minus RAG (per repetition) | +0.461 to +0.479 | plan §1.7 (values +0.461/+0.479/+0.471) |
| agent minus tool_only (per repetition) | -0.075 to -0.116 | plan §1.7 (-0.116/-0.075/-0.089) |
| Abstention share, text retrieval | 0.535 to 0.678 | plan §1.7 error taxonomy (C4 HTML 0.535 ... C4 XML 0.678; RAG 0.638, OCR 0.580 inside range; zero-shot 0.891 excluded because it is not retrieval) |
| Wrong-wellbore rate text modes; tool modes | 0.198 to 0.381; about 0.05 | plan §1.7 (C4 XML 0.198, HTML 0.381, OCR 0.361, RAG 0.299; tool_only 0.050, agent 0.046) |
| OCR minus XML (per repetition), CI includes 0 | +0.023 to +0.038 | plan §1.7 (+0.023/+0.028/+0.038) |
| Code leakage T2 (b), TF-IDF | +0.531 | plan §1.6, §1.7 (CI 0.480-0.580) |
| Code leakage T2 (b), DistilBERT | +0.266 to +0.291 | plan §1.7 (+0.291/+0.283/+0.266) |
| Code leakage T3 about 0 | DistilBERT -0.001/+0.001/+0.007; TF-IDF +0.0048 | plan §1.7 |
| Masked T2 (b) AP DistilBERT by well, seeds | 0.579 to 0.603 | plan §1.6; outputs/m34/classification.csv (0.5790/0.5964/0.6030) |
| Masked T2 (b) AP TF-IDF by well | 0.463 | plan §1.6, §1.9; classification.csv 0.4634 |
| T2 prevalence | 0.183 | plan §1.9 (pi in planted study); derived 4,286/23,447 = 0.1828 |
| DeepSeek minus TF-IDF on T2 (b) | -0.055 to -0.058, CI includes 0 | plan §1.7 (-0.055/-0.058/-0.055) |
| Planted signal: cue fraction among simulated positives | about 82% (0.78–0.84 across seeds) | outputs/m5/synthetic/report.json, t2_cues.effective_cue_rate |
| Planted null failure setting | f = 0.10 (off by 0.0101) | plan §1.9 |
| T1 section rater agreement, published vs filled days | 0.707; 0.059 | plan §1.5 table (pass one) |
## Related work (02_related.tex)
| Claim | Value | Source |
| --- | --- | --- |
| TADI: tables, tools, question taxonomy | 12 DuckDB tables, 12 tools, 130 questions | plan §2.2; LN §2.2 |
| TADI: no quantitative result; EGS not computed | - | plan §2.2 |
| PetroAgents: tasks specified | 6 | plan §2.2 |
| PetroAgents: well-day examples, classes | 1,750; 7 | plan §2.2 |
| PetroAgents: per-seed sample | 60 | plan §2.2 |
| PetroAgents: split by wellbore, F-11 sub-wellbores separate | - | plan §2.2; LN §2.1 |
| PetroAgents macro-F1 | 0.464 (all), 0.442 (WITSML subset) | plan §2.2 |
| PetroAgents multi-agent gain | +0.048 (p = 0.22) | plan §2.2 |
| PetroAgents code ablation | 0.355 to 0.431 on 30 examples | plan §2.2 |
| Hussain and Reddy: DDRs | 1,266 (abstract only) | plan §2.2; LN §3 |
| Bihani et al.: DDRs; five knowledge organizations | 1,681; 5 (abstract only) | plan §2.2; LN §3 (the "five" is LN only) |
| Boden et al.: users | 75 (abstract only) | plan §2.2; LN §2.8 |
| DrillScribe text-only F1 | 0.866 | plan §2.2 |
| DrillScribe episode keys reproduced | 1,758 of 23,447 activities | plan §1.5 |
| Anatoly5ms interval size | 10 m | plan §1.5, §2.2 |
| Anatoly5ms post-event contamination | 53% to 4% (rate, not a score) | plan §9; LN §2.7 |
| Anatoly5ms text rules on T3 cells | 219 of 4,894; 72 of 478 (Jaccard 0.115); 83 of 556 (Jaccard 0.120) | plan §1.5 |
| Anatoly5ms rule groups | 4 | plan §1.5 |
| TSPP: stuck events; no label column; no licence | 3 | LN §2.5, §3 |
| TSPP: time-ordered split within a series; two case studies | - | LN §2.5 (0.7:0.1:0.2 split not quoted in text) |
| TSPP DDR rows in windows; stuck codes | 9, 14, 15; 0 | plan §1.5 |
| Mbamarah: wells, F1 | F-10 train, F-9 test; 0.436 (abstract only) | plan §2.2 |
| IPTC-25191: F1; validation; wells | 0.993; leave one well out; 4 wells (abstract only) | plan §9 (F1, LOWO); LN §3 ("4 wells" is LN only) |
| Bassey: events, production wells | 236; 6 | plan §2.2 |
| Planted / design facts cited by reference only | - | no number |
## Numbers not in plan.md (taken from literature_notes.md only)
- "five ways of organizing the knowledge" (Bihani et al.), "4 wells" (IPTC-25191-MS table row). Both are abstract-level facts in LN §3.

View File

@@ -0,0 +1,49 @@
# Provenance: Sections 3-5 and Appendices A-B
| Claim | Value | Source |
|---|---|---|
| DDR reports, wellbores, wells, activities | 1,759; 26; 11; 23,447 | `AGENTS.md` Status; `volve_dia` `EXPECTED`; `outputs/labels/summary.json` |
| Wellbores per well | 15/9-19 and F-15: 5; F-1 and F-11: 4; F-9: 2; six wells 1 | `docs/plan.md` §1 (line on well grouping) |
| Shared report dates; sibling vs other-well comment repeats | 16; 0.30% vs 0.96% | `docs/plan.md` §1 |
| WITSML coverage | 21 wellbores, 1,384 reports; name mismatches (F-15 S, two more) | `AGENTS.md` Status; `scripts/06_parse_witsml.py` `EXPECTED` |
| Suspect WITSML values missing at feature stage | -999, -99999, 99999, 9999, abs >= 1e15 | `configs/protocol_v1.yaml` `witsml_features`; plan §12 item 21 |
| Formation picks | 409; 24 wellbores own, 2 shared | `AGENTS.md` Status |
| OCR hub matching | 3,059/3,066 pages; 1,752/1,759 reports; 7 unmatched; 16 date disagreements | `AGENTS.md` Status; `scripts/04_ocr_hub.py` |
| Full-corpus OCR QC | CER 2.40%, WER 5.56%, exact 0.9181; depth exact 0.9241; rig exact 0.3385 | `docs/plan.md` §1 (OCR QC); `outputs/ocr_qc/by_field.csv` |
| Placeholder report | 15_9_19_A_1980_01_01; spud 25/7/1997 | `docs/plan.md` §1; `configs/labels.yaml` reports |
| diaHole missing including placeholder; with drilling activity | 990; 260 | `outputs/ddr/reports.parquet`, `docs/plan.md` §1 |
| T1 drilling days | 932 (672 published, 260 filled), 818 other days | `outputs/labels/summary.json` t1.scope, filled_by |
| T1 fill rule recovery | ffill 1.0000 tail, 0.9051 single; text 7/8, bit 23/30; leading 17 | `configs/labels.yaml` fill; `outputs/labels/summary.json` |
| T1 sections after fill (drilling days) | 8.5 in 404, 12.25 196, 17.5 151, 26 93, 36 57, 6 27, 9.875 4 | `outputs/labels/summary.json` t1.section.drilling_day |
| NPT (a) | 3,577 rows, 15.3%, 8,343 h, 21.2% of hours | `outputs/labels/summary.json` t2.npt_a |
| NPT (b) | 4,286 rows, 18.3%, 9,626 h, 24.4%; 709 not in (a) | `outputs/labels/summary.json` t2.npt_b |
| Cause groups (a)/(b) | Table tab:causes | `outputs/labels/summary.json` counts.t2_cause_a/b |
| Code/detail cause conflicts | 192 rows | `configs/labels.yaml` comments (precedence) |
| Operation classes | 15 classes, counts in App. B (sum 23,447) | `outputs/labels/summary.json` t1.op_class |
| T3 locatable NPT | 50.3% rows, 44.6% hours; depth 0: 9,116; above mud line 2,923 | `docs/plan.md` line on T3 (§1) |
| T3 grid | 8,757 cells; 844 (a) / 979 (b) positive; 191 inherited | `docs/plan.md` §1 |
| T3 own-hole universe | 4,894 cells; 556 (b), 478 (a) positive | `configs/protocol_v6.yaml`; `docs/plan.md` §1.5 |
| T4 | 1,662 questions (1,638/24), 39 templates, 3,915 candidates, 371 dropped (311 ambiguous) | `outputs/t4/summary.json` |
| T4 families (templates/questions) | lookup 16/825, aggregation 9/513, temporal 6/134, comparison 3/102, multi-hop 5/88 | `outputs/t4/summary.json` |
| T4 scope | 1,560 single, 92 pair, 10 field; median 3 evidence rows, max 488 | `outputs/t4/summary.json` |
| T4 tolerances | depth 1.0 m, density 0.01, inclination 0.1, hours 0.25, ROP 2%, size 0.01 in | `configs/t4_templates.yaml` |
| C4 questions | 1,376; 1,293 without date pages | `configs/protocol_v2.yaml` unchanged_from_v1 |
| T5 items | 410 (b), 373 (a); 19 wellbores, 10 wells; gain 0-3 | `configs/protocol_v5.yaml`; `AGENTS.md` Status |
| M2 rater sample | 300 activities (105/45/150, 225 strata), 90 T1 days (45/45); 1,170 ratings per pass | `configs/m2_validation.yaml`; `AGENTS.md` |
| G1 class rule | kappa >= 0.6, >= 20 items, >= 3 wells x 5 items; NPT margin 0.02, observed 0.025 | `configs/protocol_v1.yaml`; plan §12 item 24 |
| Judge (v3) | 100 answers; Sonnet primary, Haiku sensitivity; threshold 0.6 | `configs/protocol_v3.yaml` |
| Bootstrap | 2,000 resamples, 95%, seed 20261117 | `configs/protocol_v2.yaml` unchanged_from_v1 |
| Dev wells | 15/9-F-7, 15/9-F-9 | `configs/protocol_v2.yaml` session_sample |
| TF-IDF settings | C in {0.25, 1, 4}, min_df 2, 24 h history, thresholds 0.1-0.5, 10 WITSML channels | `configs/m34_baselines.yaml` |
| DistilBERT settings | 2 epochs, lr 2e-5, batch 32, 192 tokens, 3 seeds | `configs/m34_baselines.yaml` |
| QA settings | temperature 0.2, 320 tokens, 12,000 chars, 8 passages, 3 tool calls, 2 examples | `configs/m34_baselines.yaml`; `configs/protocol_v2.yaml` |
| DeepSeek full matrix | T4/C4 48,951, T2 70,341, 3 repetitions | `AGENTS.md` Status |
| Qwen partial v1 | T4/C4 10,214/16,317; agent 545/1,662; T2 seed 0 23,447, seed 1 17,827 | `configs/protocol_v2.yaml` deviation; `AGENTS.md` |
| Session sample | 300 T4 x 5 conditions, 500 T2, seed 20261117; batches 15/50 (planned 30/100); ~42,000 chars | `configs/protocol_v2.yaml`; `AGENTS.md` |
| EGS adaptation | (has_measurement + has_ddr_quote + 0)/3 | `configs/protocol_v4.yaml` egs |
| T5 representations, RRF k | random, depth, witsml_pre, text_pre, text_event, rrf; 1/(60 + rank) | `configs/protocol_v5.yaml` |
| Planted null failure | T2 f = 0.10, off by 0.0101 vs 0.01; diagnosis 23/11 post hoc | `AGENTS.md` Status; `docs/plan.md` §1.9 |
| Protocol hash prefixes | v1 fb11c6074b27 ... v6 0376aa18ea7a | `configs/protocol_v*.yaml.sha256` |
| v1 lock time | 2026-11-18T04:09 UTC | `configs/protocol_v1.yaml` locked_at_utc |
| Incidents | AP weight order, field pairing, runlog test 140+1 -> 145, JSON errors 1/1/4 | `docs/plan.md` §1.6, §12; `AGENTS.md` |
| OCR error examples (pilot) | 43 degree insertions, 207 of 393 spacing cases | `docs/plan.md` §1 (chandra error types) |

78
paper/provenance/06a.md Normal file
View File

@@ -0,0 +1,78 @@
# Provenance: sections/06a_results_qa.tex
DeepSeek = `vai-deepseek-v4-1-flash`, seeds 0-2. "qa.csv" rows use `subset == well`, `average == macro_families`.
Means and ranges over the three seeds are computed from those rows. Rounded to three decimals in the text.
| Claim | Value | Source |
|---|---|---|
| Well-scoped T4 questions; single / pair / field | 1,652; 1,560 / 92 / 10 | `outputs/m34/qa.csv` (`n`); plan.md §1.6 |
| Family sizes, well-scoped (lookup, aggregation, temporal, comparison, multi-hop) | 825, 513, 134, 92, 88 | `outputs/m5/errors/taxonomy.csv` (`n`, DeepSeek, non-C4 modes) |
| C4 family sizes (lookup, aggregation, comparison, temporal, multi-hop) | 731, 497, 92, 27, 19 (sum 1,366) | `taxonomy.csv` (`mode == c4`) |
| Bootstrap: 95% well-cluster, 2,000 resamples | 2,000 | `qa_contrasts.csv` (`finite_resamples`); plan.md §4.4 |
| Tool-only accuracy, mean [range] | 0.712 [0.704-0.722] | qa.csv |
| Agent accuracy | 0.618 [0.606-0.629] | qa.csv |
| C4 XML / HTML / OCR accuracy | 0.151 [0.145-0.154] / 0.177 [0.169-0.187] / 0.181 [0.176-0.184] | qa.csv (`mode == c4`) |
| RAG / few-shot / zero-shot accuracy | 0.148 [0.145-0.151] / 0.151 [0.144-0.154] / 0.071 [0.066-0.076] | qa.csv |
| Citation precision (report_precision), mean | tool 0.920, agent 0.878, C4 XML 0.506, HTML 0.415, OCR 0.433, RAG 0.352 | qa.csv |
| Wrong wellbore, mean | tool 0.050, agent 0.046, C4 XML 0.198, HTML 0.381, OCR 0.361, RAG 0.299, few 0.079, zero 0.026 | qa.csv |
| "about four times" | 0.712 / 0.181 = 3.93 | derived from qa.csv |
| Agent − RAG per rep [CI] | +0.461 [0.420, 0.544]; +0.479 [0.453, 0.514]; +0.471 [0.422, 0.551] | `outputs/m34/qa_contrasts.csv` (`agent_minus_rag`, subset well) |
| Agent − tool-only | −0.116 [−0.172, −0.063]; −0.075 [−0.112, −0.030]; −0.089 [−0.171, −0.024] | qa_contrasts.csv |
| Few-shot − zero-shot | +0.068 [0.052, 0.095]; +0.088 [0.080, 0.102]; +0.083 [0.073, 0.089] | qa_contrasts.csv |
| RAG − zero-shot | +0.069 [−0.016, 0.145]; +0.084 [−0.008, 0.173]; +0.078 [−0.016, 0.165] | qa_contrasts.csv |
| C4 OCR − XML (n 1,366) | +0.023 [−0.012, 0.067]; +0.028 [−0.011, 0.081]; +0.038 [−0.002, 0.085] | qa_contrasts.csv (`ocr_minus_xml`, well) |
| C4 OCR − XML without date flags (n 1,284, rebuilt corpus) | +0.011 [−0.012, 0.056]; +0.016 [−0.013, 0.066]; +0.027 [−0.002, 0.088] | qa_contrasts.csv (`ocr_minus_xml_clean`, well); matches plan.md §1.7 |
| C4 OCR − HTML range | −0.000 to +0.015 (all CIs include 0) | qa_contrasts.csv (`ocr_minus_html`); text writes −0.005 to +0.015 (seed 1 −0.0046) |
| Qwen OCR − XML; without date flags | −0.018 [−0.057, 0.012]; −0.009 [−0.065, 0.033] | qa_contrasts.csv (qwen, `ocr_minus_xml`, `ocr_minus_xml_clean`) |
| C4 without date flags accuracy XML / HTML / OCR | 0.156 / 0.170 / 0.175 | qa.csv (`mode == c4_clean`) |
| Qwen accuracy C4 XML / HTML / OCR / RAG | 0.214 / 0.235 / 0.196 / 0.154 | qa.csv (qwen, seed 0) |
| Aggregation correct: tool 0.726, RAG 0.016, C4 0.017-0.027, agent 0.451 | as stated | taxonomy.csv (family aggregation) |
| Multi-hop correct: tool 0.723, RAG 0.011; agent 0.636 | as stated | taxonomy.csv |
| Comparison correct: agent 0.688, tool 0.514; zero-shot 0.185, few-shot 0.576 | as stated | taxonomy.csv |
| Comparison abstention zero-shot 0.685, few-shot 0.029 | as stated | taxonomy.csv |
| Zero-shot temporal 0.159; lookup 0.011; aggregation and multi-hop 0 | as stated | taxonomy.csv; checked against `outputs/m5/errors/predictions.parquet` |
| Few-shot fabricated rate | 0.986 | qa.csv (`metrics.fabricated`); not interpreted; definition in `volve_dia/m34_qa.py` (numeric, incorrect, absent from context) |
| Few-shot ties C4 XML through macro weighting | (0 + 0.576 + 0.013 + 0 + 0.164) / 5 = 0.151 | derived from taxonomy.csv |
| 26 wellbores, 11 wells | 26 / 11 | plan.md §1; AGENTS.md |
| Retriever is TF-IDF without a wellbore filter | code | `volve_dia/m34_qa.py` (`Retriever.search`) |
| Qwen v1 stopped, C4 and RAG complete; Llama smoke only | as stated | plan.md §12 item 32; AGENTS.md |
| Judge sample: 100 items, 10 wells, 50 auto-correct | 100 / 10 / 50 | `outputs/m5/judge/report.json` |
| Sonnet κ 0.98 [0.947, 1.0], agreement 0.99; Haiku κ 0.90 [0.826, 0.966]; between κ 0.92 [0.833, 1.0] | as stated | judge report.json; plan.md §1.7 |
| Five disagreements (J008 sentence-form; J026, J027, J037, J071 OCR "MERSK INSPIRER") | 5 | judge report.json |
| Auto-incorrect answers accepted by Sonnet in the balanced sample | 1 / 50 | judge report.json, confusion matrix |
| Session sample: 300 questions, 11 wells, seed 20261117, one repetition | as stated | `outputs/m34/v2/session/{sonnet,haiku}/summary.json`; plan.md §12 item 32 |
| Session accuracy Sonnet / Haiku | C4 XML 0.123/0.083, HTML 0.177/0.147, OCR 0.187/0.150, RAG 0.128/0.098, zero-shot 0/0 | session summary.json |
| Sonnet C4 XML interval | 0.038-0.206 | sonnet summary.json |
| Batches of 15; no read isolation; outside G2 | as stated | AGENTS.md (session sample limitations) |
| C4 pairs 1,376; well-scoped 1,366; date-flagged 83; without flags 1,293 (1,284 well-scoped) | as stated | `outputs/m34/report.json` (`c4`); qa.csv `n` |
| 1,752 complete reports; 7 unmatched dropped; 16 date-disagreement pages | as stated | plan.md §1.3; AGENTS.md |
| OCR: 1,752 reports, 3,056 pages, 365,698 items, exact 0.9181, CER 2.4020%, WER 5.5560% | as stated | `outputs/ocr_qc_hub/summary.md` (full corpus, hub source; not the pilot) |
| Cells 280,995 / 0.9116 / 2.67%; Operations 140,322 / 0.8605 / 2.985%; Drilling Fluid 108,342 / 0.9648 / 1.093%; Survey 8,595 / 0.9944 / 0.239%; Casing 3,500 / 0.9394 / 4.717%; Bit Record 1,652 / 0.9576 / 1.428% | as stated | summary.md |
| Operations is half of all cells | 140,322 / 280,995 = 0.499 | derived |
| Fields 54,312 / 0.9280 / 2.999%; headers 3,504 / 0.9777 / 2.507%; texts 3,504 / 0.7740 / 0.527% | as stated | summary.md |
| depth mMD 0.9241 / 6.967%; mTVD 0.9418 / 5.421%; plug back 0.9578 / 7.452%; rig name 0.3385 / 5.162% | as stated | summary.md; `by_field.csv` |
| Pressure 50% (42 chars), temperature 33.3% (24 chars) | as stated | by_field.csv |
| Character errors: insert space 9,507; delete "-" 9,160; "-" to en dash 7,952; insert "°" 2,524; "Æ" to "E" 1,152 | as stated | `outputs/ocr_qc_hub/confusions.csv` |
| Æ occurs in 1,384 reference items, 1,378 of them rig name "MÆRSK INSPIRER" | 1,378 / 1,384 | derived from `outputs/ocr_qc_hub/items.parquet` (`ref` contains Æ) |
| Per-report CER median 0.93%, p90 4.98%, max 85.7%; 9 / 1,752 exact | as stated | plan.md §1.3 (from `doc_metrics.csv`) |
| Tight well / HPHT: XML N in 1,759, HTML Y in 1,759; OCR exact 0.9954 / 0.992 | as stated | plan.md §1.3; by_field.csv |
| Bit Record End mMD = bitRun_mdHoleStart, 16/16 rows, 90/90 T4 items | as stated | plan.md §1.3 |
| Render QC scope: header, fields, summaries, Operations | as stated | AGENTS.md (DDR XML bullet) |
| Abstention shares (macro, mean): C4 XML 0.678, HTML 0.535, OCR 0.580, RAG 0.638, zero 0.891, few 0.739, tool 0.083, agent 0.129 | as stated | taxonomy.csv (family macro) |
| Wrong wellbore class 0.095-0.190 (C4), RAG 0.110; tool 0.049, agent 0.026 | as stated | taxonomy.csv |
| Wrong report cited, wrong value, call failure, other | table values | taxonomy.csv (`evidence_missed`, `wrong_with_evidence`, `failed`, `no_citation` + `answered_unanswerable`) |
| Agent call failure range | 0.048-0.080 | taxonomy.csv (`failed_min`, `failed_max`) |
| Lookup: C4 XML correct 0.089 / abstained 0.762; HTML 0.285 / 0.448; OCR 0.285 / 0.462 | as stated | taxonomy.csv |
| Aggregation abstention C4 and RAG 0.69-0.71; C4 multi-hop abstention 0.912-1.0 | as stated | taxonomy.csv |
| Multi-hop wrong value: tool 0.254, agent 0.269 | as stated | taxonomy.csv |
| Comparison wrong wellbore: C4 0.210-0.225, RAG 0.214, tool 0.246, agent 0.120, zero 0.130, few 0.395 | as stated | taxonomy.csv |
| EGS definition (measurement + DDR citation, item 0, /3) | {0, 1/3, 2/3} | plan.md §1.7, §12 item 35; `configs/protocol_v4.yaml` |
| H4 rule ρ ≥ 0.3 means not supported | 0.3 | plan.md §12 item 35 |
| Pooled ρ 0.538 / 0.535 / 0.535; rep 0 CI 0.530-0.551; mean 0.536 | as stated | `outputs/m5/errors/report.json` (`rq4`, primary, pooled) |
| Pooled n (rep 0) and levels: 6,242 / 0.013; 6,489 / 0.221; 3,211 / 0.669 | as stated | report.json; accuracy is micro over predictions; pooled includes the `c4_clean` rows and excludes unanswerable questions |
| No-abstention pooled ρ 0.233 / 0.234 / 0.231; rep 0 CI 0.196-0.296; mean 0.232 | as stated | report.json (`no_abstentions`) |
| Within-mode ρ means and ranges (Table tab:egs) | as tabulated | derived: mean, min, max over seeds of report.json rows |
| Tool-only no-abstention ρ −0.095 [−0.133, −0.051], −0.073 [−0.134, −0.030], −0.097 [−0.157, −0.050] | as stated | report.json |
| Tool-only accuracy at EGS 1/3 vs 2/3, rep 0 | 0.787 vs 0.766 | report.json (`by_level`, primary) |
| Few-shot EGS 1/3 answers: 54 / 48 / 51, all wrong, measurement True, ddr_reference False | as stated | report.json; predictions.parquet |
| Qwen pooled ρ 0.331 [0.295, 0.372] | as stated | report.json (qwen, primary, pooled) |

163
paper/provenance/06b.md Normal file
View File

@@ -0,0 +1,163 @@
# Provenance: sections/06_results.tex and sections/06b_results_labels.tex
Conventions. `classification.csv` = `outputs/m34/classification.csv`; contrasts = `outputs/m34/classification_contrasts.csv`.
Unless stated, rows are task T2 or T3, definition (b), split `well`, input XML, subset `all`. DistilBERT = seeds 0-2;
DeepSeek = `vai-deepseek-v4-1-flash` repetitions 0-2; means and ranges over those runs are computed from the rows.
CIs are 95% well-cluster bootstrap intervals as written in the files. Rounded to three decimals (four for T3) in the text.
**Note on plan.md §1.6 / AGENTS.md headline T2 values.** The plan values are means over subsets `all` and
`without_sidetrack` (and XML + OCR input for TF-IDF), as `PLAN_POOLED` / `pooled_plan_check` in
`scripts/22_paper_figures.py` confirm. The paper uses the `all` subset on XML, so its values differ from the plan:
| Quantity | plan.md §1.6 | file (`all`) used in paper |
|---|---|---|
| Majority T2(b) masked | 0.179 | 0.183 |
| Lexicon | 0.249 | 0.251 |
| TF-IDF masked | 0.461 | 0.463 |
| DistilBERT masked (mean) | 0.597 | 0.593 |
| DeepSeek zero-shot (mean) | 0.405 | 0.407 |
| Qwen zero-shot seed 0 | 0.261 | 0.264 |
| DistilBERT by wellbore (mean) | 0.619 | 0.618 |
| TF-IDF by wellbore | 0.484 | 0.489 |
| TF-IDF unmasked | 0.994 | 0.995 |
| DistilBERT unmasked (mean) | 0.869 | 0.873 |
## 06_results.tex
| Claim | Value | Source |
|---|---|---|
| Intervals are 95% percentile well-cluster bootstrap | 95% | plan.md §4.4; contrasts (`ci_low`, `ci_high`); "percentile" assumed from the bootstrap code |
## Sec. res:leak (T2, T1)
| Claim | Value | Source |
|---|---|---|
| 11 wells, leave-one-well-out | 11 | plan.md §1; classification.csv (`split == well`) |
| T2 activities | 23,447 | classification.csv (`n`); AGENTS.md |
| T2(b) prevalence = majority AP | 0.183 | classification.csv (majority, masked) |
| DistilBERT T2(b) masked, 3 seeds | 0.579-0.603, mean 0.5928 | classification.csv (distilbert seeds 0-2) |
| TF-IDF T2(b) masked [CI] | 0.463 [0.418, 0.513] | classification.csv (tfidf) |
| Lexicon; comment length | 0.251; 0.162 | classification.csv (lexicon, length) |
| Lowest DistilBERT lower limit vs TF-IDF upper limit | 0.554 vs 0.513 | classification.csv (`ci_low` min over seeds; tfidf `ci_high`) |
| TF-IDF T2(b) unmasked [CI] | 0.995 [0.991, 0.999] | classification.csv (tfidf, unmasked) |
| TF-IDF unmasked - masked [CI] | +0.531 [0.480, 0.580] | contrasts (`unmasked_minus_masked`, tfidf) |
| DistilBERT unmasked - masked per seed; all CIs exclude 0 | +0.266 to +0.291 (mean 0.280) | contrasts (distilbert seeds 0-2) |
| DistilBERT unmasked | 0.869-0.880, mean 0.8729 | classification.csv |
| DeepSeek T2(b) masked, 3 reps | 0.406-0.408, mean 0.4074 | classification.csv (`t2_llm`, vai-deepseek) |
| DeepSeek - TF-IDF per rep; CI rep 0 | -0.055 to -0.058; [-0.134, 0.011] | contrasts (`llm_minus_tfidf`) |
| Qwen3-8B seed 0 [CI]; minus TF-IDF [CI] | 0.264 [0.206, 0.340]; -0.200 [-0.250, -0.152] | classification.csv; contrasts; AGENTS.md |
| Qwen seed 1 stopped | 17,827 / 23,447 | AGENTS.md; plan.md §12 item 32 |
| DistilBERT by wellbore, 3 seeds | 0.612-0.624 | classification.csv (`split == wellbore`) |
| DistilBERT wellbore - well per seed; all CIs include 0 | +0.015 to +0.040 | contrasts (`wellbore_minus_well`) |
| TF-IDF by wellbore; difference [CI] | 0.489; +0.026 [-0.001, 0.042] | classification.csv; contrasts |
| 26 wellbores in 11 wells | 26, 11 | AGENTS.md; plan.md §1 |
| Definition (a): majority; TF-IDF; DistilBERT; DeepSeek | 0.153; 0.437; 0.552-0.578; 0.389-0.391 | classification.csv (`definition == a`) |
| Definition (a) unmasked - masked: TF-IDF; DistilBERT | +0.563; +0.298 to +0.337 | contrasts (definition a) |
| TF-IDF (b) - (a) [CI] | +0.026 [-0.003, 0.068] | contrasts (`b_minus_a`, tfidf) |
| Sidetrack rows removed; rows left | 202; 23,245 | classification.csv (`subset == without_sidetrack`, `n`); 23,447 - 23,245 = 202 |
| Without sidetrack: TF-IDF; DistilBERT; DeepSeek | 0.457; 0.589-0.611; 0.401-0.404 | classification.csv (`without_sidetrack`) |
| TF-IDF on OCR input; rows | 0.464; 23,387 | classification.csv (`input == ocr`) |
| T1 days; published; filled | 932; 672; 260 | AGENTS.md; classification.csv (T1 `n`) |
| T1 TF-IDF published [CI]; majority | 0.621 [0.504, 0.742]; 0.286 | classification.csv (T1, published) |
| T1 TF-IDF filled; majority | 0.819; 0.815 | classification.csv (T1, filled) |
| T1 DistilBERT published; filled | 0.301-0.369 (mean 0.342); 0.754-0.808 | classification.csv (T1 distilbert seeds 0-2) |
| LLM-rater section κ published / filled | 0.707 / 0.059 | `outputs/audit/m2_300/agreement_pass1.json`; AGENTS.md |
| T1 TF-IDF OCR published | 0.625 | classification.csv (T1, `input == ocr`) |
## Table tab:leakage (beyond the above)
| Claim | Value | Source |
|---|---|---|
| T3 cells | 4,894 | classification.csv (T3 `n`); AGENTS.md |
| T3(b) majority (prevalence) | 0.1136 | classification.csv; 556 / 4,894 = 0.1136 |
| T3 TF-IDF masked [CI]; unmasked | 0.1225 [0.093, 0.195]; 0.1273 | classification.csv |
| T3 TF-IDF unmasked - masked [CI] | +0.0048 [-0.0005, 0.0238] | contrasts; AGENTS.md |
| T3 DistilBERT masked; unmasked | 0.1175-0.1245 (mean 0.1212); 0.1189-0.1312 (mean 0.1235) | classification.csv seeds 0-2 |
| T3 DistilBERT unmasked - masked per seed; all CIs include 0 | -0.0011 to +0.0066 | contrasts |
## Sec. res:diag (T3, T5)
| Claim | Value | Source |
|---|---|---|
| 10 m cells; 21 wellbores; 10 wells | 10, 21, 10 | plan.md §1; `configs/labels.yaml`; AGENTS.md (G1 preflight, 21 eligible wellbores) |
| T3(b) positive cells; prevalence | 556; 0.114 | `outputs/m5/t5/report.json` (knn prevalence); `cross_checks/summary.json` (`code_positive` b) |
| IoU TF-IDF; DistilBERT | 0.119 (0.1185); 0.108-0.124 | classification.csv (`iou`); AGENTS.md |
| TF-IDF IoU unmasked - masked [CI] | +0.017 [0.0003, 0.061] | contrasts (`iou`) |
| T3 TF-IDF by wellbore; difference [CI] | 0.141; +0.019 [-0.033, 0.043] | classification.csv; contrasts |
| Depth-neighbour forecast k; AP [CI] | 10; 0.150 [0.116, 0.204] | `outputs/m5/t5/report.json` (knn); plan.md §1.8 |
| With WITSML [CI] | 0.135 [0.110, 0.183] | t5 report.json |
| Definition (a): depth; WITSML; prevalence | 0.132; 0.120; 0.098 | t5 report.json (definition a); 478 / 4,894 = 0.098 |
| T5 queries; wellbores; wells | 410; 19; 10 | t5 report.json; plan.md §1.8 |
| Median candidates | 358 | t5 report.json / `per_query.parquet` |
| Gain 0-3 | 0-3 | `configs/protocol_v5.yaml` |
| Depth nDCG@10 [CI]; random | 0.666 [0.644, 0.685]; 0.463 | t5 report.json |
| Fusion pre-event; minus depth [CI] | 0.670; +0.004 [-0.010, 0.018] | t5 report.json; plan.md §1.8 |
| Text pre-event; minus depth [CI] | 0.611; -0.055 [-0.063, -0.048] | t5 report.json |
| WITSML pre-event; minus random [CI] | 0.495; +0.032 [0.008, 0.053] | t5 report.json |
| Text of the event | 0.528 | t5 report.json |
| Definition (a): depth; fusion - depth [CI] | 0.660; +0.005 [-0.012, 0.022] | t5 report.json (definition a) |
| Candidates by wellbore: depth; fusion - depth [CI] | 0.663; +0.003 [-0.012, 0.016] | t5 report.json (wellbore sensitivity) |
| Same formation in top 10: depth; random | 0.711 (71%); 0.234 (23%) | t5 report.json (shares) |
| Same section: pre-event text; depth | 0.576 (58%); 0.451 (45%) | t5 report.json |
| Shared cause share: random to best | 0.703 to 0.754 (text "0.70 ... at most 0.75") | t5 report.json |
| RRF k | 60 | `configs/protocol_v5.yaml` |
| tab:t5 all cells (nDCG, CI, Δ, MRR, P@10, shares) incl. fusion-all 0.661 / -0.005 / 0.434 / 0.217 / 0.546 / 0.540 / 0.746 | as in table | t5 report.json |
| Queries with a fully relevant candidate | 374 | t5 report.json / per_query.parquet |
## Sec. res:labels
| Claim | Value | Source |
|---|---|---|
| Trial: 100 items; raters Sonnet, Opus, Haiku | 100 | `outputs/audit/trial_100/raters.json`; AGENTS.md |
| Trial κ (weighted) per rater and median, all targets | table values | trial_100/raters.json |
| Trial operation class items 65; Haiku 2 unrated | 65; 2 | trial_100/raters.json |
| M2: 300 activities, 11 wells, 225 strata, 90 days (45/45) | as stated | `outputs/audit/m2_300/sample.json`; key_activity.csv (300 rows, npt_b 150 / 150) |
| M2 pass 1 κ per rater and median, all targets (Ministral NPT b 0.29150 -> 0.292) | table values | `m2_300/agreement_pass1.json` |
| M2 pass 2 medians | table values | `m2_300/agreement_pass2.json` |
| M2 operation class items | 195 | agreement_pass1.json |
| Fleiss NPT trial / M2 / M2 pass 2 | 0.662 / 0.512 / 0.528 | raters.json; agreement_pass1.json; agreement_pass2.json |
| Fleiss cause; operation; section (n = 77) | 0.644 / 0.392; 0.662 / 0.255; 0.480 | same files |
| Only Opus > 0.6 on NPT; Opus NPT (b) | 0.683 | raters.json |
| Within-rater pass 1 vs 2: Qwen; Gemma; Ministral | 0.912; 0.9999; 0.824 | agreement_pass2.json; AGENTS.md |
| Gap between passes | 25.6-29.2 min | plan.md §1.5 (`pass2_schedule.json` timestamps) |
| Weighted NPT-call rate, pass 2 | Qwen 0.4934, Gemma 0.2304, Ministral 0.2730 -> 23.0-49.3% | derived: ratings/pass2 joined with key_activity.csv `weight`, sum(weight x yes) / sum(weight) |
| Code (b) share of non-trial frame | 0.1814 (18.1%) of 23,347 | derived: 23,447 - 100 trial items = 23,347; npt_b mean over `outputs/labels/t2_labels.parquet` without trial act_ids |
| All three raters NPT on code-negative; not NPT on code-positive (pass 2) | 22 of 150; 34 of 150 | derived from `m2_300/disagreements_pass2.csv` (`target == npt_b`, all three equal and opposite to `code_label`) |
| A062 (casing_cement, npt_b False, all rate yes); A157 (interruption/sidetrack, npt_b True, all rate no) | items | disagreements_pass2.csv |
| Waiting activities outside interruption codes | 8; rated NPT by 7 / 4 / 6 | derived: key_activity.csv joined with pass-2 ratings (Qwen 7, Gemma 4, Ministral 6) |
| G1 rule margin; observed Δκ | 0.02; 0.025 | `configs/protocol_v1.yaml`; agreement_pass1.json; AGENTS.md |
| Leave-one-well-out Δκ; kept | 0.015-0.037; 10 of 11 | plan.md §1.5 (no output file) |
| Unweighted Δκ | 0.019 | plan.md §1.5 |
| Well bootstrap interval for Δκ | [-0.0095, 0.0741] | plan.md §1.5 |
| Strata with one item; Kish n | 185 of 225; about 126 | plan.md §1.5 |
| Class thresholds | κ 0.60, 20 items, 3 wells x 5 items | `configs/protocol_v1.yaml` |
| 12 1/4 in section 0.701 (18 items); drill_ream 0.655 (15); equipment 0.277 (62); downhole 0.173 (20); failed operation 0.009 (25) | as stated | `m2_300/g1_class_review_pass1.json` (`classes`) |
| DrillScribe episodes matched | 1,758 of 1,758; 23,447 activities | `m2_300/cross_checks/summary.json` (`drillscribe`) |
| Anatoly5ms strong-or-weak cells | 219 of 4,894 | cross_checks/summary.json (`cells_own_hole_with_witsml`) |
| Overlap (b): 83 of 556, Jaccard 0.120; (a): 72 of 478, 0.115 | as stated | cross_checks/summary.json |
| Strong only overlap (b); (a) | 36; 34 | cross_checks/summary.json (`strong`) |
| Four complication rules | lost circulation, well control, stuck pipe, wellbore instability | cross_checks/summary.json (`strength_by_rule`) |
| TSPP wells; ±3 h windows; activities | F-4, F-9 A, F-1; 3 h; 9, 14, 15 | `cross_checks/TSPP2-4_ddr.csv`; AGENTS.md |
| Equipment-failure codes in F-4 / F-9 A windows | 3 / 1 | TSPP2_ddr.csv, TSPP3_ddr.csv |
## Sec. res:planted
| Claim | Value | Source |
|---|---|---|
| T2 planted prevalence | 0.183 | `outputs/m5/synthetic/report.json`; `configs/protocol_v6.yaml` |
| k nearest cells; seeds | 10; 5 | protocol_v6.yaml |
| Null tolerance | 0.01 of π, seed-0 CI contains π | protocol_v6.yaml |
| T2 f = 0.02 null: mean AP; π; seed-0 CI | 0.182; 0.183; 0.179-0.195 | synthetic report.json; settings_t2.csv; seeds_t2.csv |
| T3 s = 0 null: mean AP; π; seed-0 CI | 0.118; 0.114; 0.107-0.124 | report.json; settings_t3.csv; seeds_t3.csv |
| T2 f = 0.10 null: mean AP; difference; seed-0 CI | 0.193 (0.19314); 0.0101; 0.193-0.208 | report.json; settings_t2.csv; seeds_t2.csv |
| Post hoc diagnosis date | 23 November 2026 | AGENTS.md; plan.md §1.9 |
| No-cue indicator AP f = 0.10 (theory); f = 0.02 (theory) | 0.2004 (0.1993); 0.1848 (0.1860) | `outputs/m5/synthetic/null_diagnosis_t2.csv` |
| c = f = 0.10: AP; seed-0 CI | 0.1819; 0.1760-0.1883 | null_diagnosis_t2.csv |
| T2 curve at f = 0.02: c = 0 / 0.25 / 0.5 / 1 | 0.182 / 0.258 / 0.363 / 0.521 | settings_t2.csv |
| c matching real TF-IDF 0.463 | 0.823 (text 0.82); per seed 0.7846-0.8401 | report.json (calibration); seeds_t2.csv; target 0.46346 |
| Unplanted rows exposed to cue at c = 1 | 0.347 (34.7%) | settings_t2.csv (`exposure_unplanted_mean`) |
| T3 curve s = 0 / 0.5 / 1 / 2 | 0.118 / 0.131 / 0.191 / 0.379 | settings_t3.csv |
| Oracle s = 0.5 / 1 / 2 | 0.176 / 0.283 / 0.489 | settings_t3.csv |
| s matching real depth forecast 0.150 | 0.6567 (text 0.66); per seed 0.554-0.716 | report.json; seeds_t3.csv; target 0.14952 |
| Oracle AP at s ≈ 0.66 | about 0.21 | derived: 0.1763 + (0.6567 - 0.5) / 0.5 x (0.2830 - 0.1763) = 0.2097 |
| "about four in five" | 0.82 | restatement of c ≈ 0.82 |