Add P0 infrastructure for the Volve-DIA benchmark

Set up the data, parsing and quality-control layer for a public benchmark
on the Volve daily drilling reports (DDR) and WITSML real-time data.

- Data manifest with SHA-256 hashes of the three Volve subtrees in use.
- DDR XML parser into DuckDB (1,759 reports, 26 wellbores, 23,447
  activities, 17 tables) with locked expected counts.
- Render QC of the publisher HTML against the XML (272,544 items).
- OCR client for the shared chandra vLLM service, with a page cache keyed
  on model, prompt hash, dpi, max_tokens and temperature, and OCR QC
  against the HTML on a 26-report pilot.
- Run logging (scripts/runlog.sh, logs/index.csv), the P0 runner and
  40 tests.
- Research plan, technical overview and progress page (in Vietnamese).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-10-29 12:45:34 +00:00
commit a3c175638f
172 changed files with 145856 additions and 0 deletions

27
logs/index.csv Normal file
View File

@@ -0,0 +1,27 @@
run_id,parent,name,status,exit_code,start,end,wall_s,wall,device,git,dirty,code_sha,source,cmd
20261029-093401_00_data_manifest,,00_data_manifest,ok,0,2026-10-29T09:34:01+00:00,2026-10-29T09:34:27+00:00,26.0,0:00:26,,,False,f50bf49ac06e1d1c,runlog,/home/jovyan/lamlvh/Scientific/.venv/bin/python scripts/00_data_manifest.py
20261029-093857_01_inventory,,01_inventory,ok,0,2026-10-29T09:38:57+00:00,2026-10-29T09:40:15+00:00,78.3,0:01:18,,,False,e7d526f94d16b4b9,runlog,/home/jovyan/lamlvh/Scientific/.venv/bin/python scripts/01_inventory.py
20261029-094214_01_inventory,,01_inventory,ok,0,2026-10-29T09:42:14+00:00,2026-10-29T09:43:36+00:00,81.7,0:01:22,,,False,c65846ae3dedb1a2,runlog,/home/jovyan/lamlvh/Scientific/.venv/bin/python scripts/01_inventory.py
20261029-094420_02_parse_ddr,,02_parse_ddr,ok,0,2026-10-29T09:44:20+00:00,2026-10-29T09:44:29+00:00,9.2,0:00:09,,,False,05b4d36c2cfef94b,runlog,/home/jovyan/lamlvh/Scientific/.venv/bin/python scripts/02_parse_ddr.py
20261029-094502_02_parse_ddr,,02_parse_ddr,ok,0,2026-10-29T09:45:02+00:00,2026-10-29T09:45:11+00:00,9.6,0:00:10,,,False,a47ae848cc457e4f,runlog,/home/jovyan/lamlvh/Scientific/.venv/bin/python scripts/02_parse_ddr.py
20261029-094619_03_render_qc,,03_render_qc,ok,0,2026-10-29T09:46:19+00:00,2026-10-29T09:46:59+00:00,40.7,0:00:41,,,False,207ca83e23caa50c,runlog,/home/jovyan/lamlvh/Scientific/.venv/bin/python scripts/03_render_qc.py
20261029-094819_ocr_pilot,,ocr_pilot,ok,0,2026-10-29T09:48:19+00:00,2026-10-29T09:53:22+00:00,302.8,0:05:03,,,False,b03aae69009e4833,runlog,/home/jovyan/lamlvh/Scientific/.venv/bin/python scripts/04_ocr.py --pilot
20261029-095448_05_ocr_qc,,05_ocr_qc,ok,0,2026-10-29T09:54:48+00:00,2026-10-29T09:54:50+00:00,1.3,0:00:01,,,False,b4f4e34786dc1ec7,runlog,/home/jovyan/lamlvh/Scientific/.venv/bin/python scripts/05_ocr_qc.py
20261029-100845_03_render_qc,,03_render_qc,ok,0,2026-10-29T10:08:45+00:00,2026-10-29T10:09:03+00:00,18.1,0:00:18,,,False,4684b2da1d8b95b1,runlog,/home/jovyan/lamlvh/Scientific/.venv/bin/python scripts/03_render_qc.py
20261029-100907_05_ocr_qc,,05_ocr_qc,ok,0,2026-10-29T10:09:07+00:00,2026-10-29T10:09:08+00:00,1.1,0:00:01,,,False,4684b2da1d8b95b1,runlog,/home/jovyan/lamlvh/Scientific/.venv/bin/python scripts/05_ocr_qc.py
20261029-101523_p0/01_00_data_manifest,20261029-101523_p0,00_data_manifest,ok,0,2026-10-29T10:15:23+00:00,2026-10-29T10:15:34+00:00,11.2,0:00:11,,,False,2351b58715b1571b,runlog,.venv/bin/python scripts/00_data_manifest.py --check
20261029-101523_p0/02_01_inventory,20261029-101523_p0,01_inventory,ok,0,2026-10-29T10:15:34+00:00,2026-10-29T10:16:06+00:00,31.8,0:00:32,,,False,2351b58715b1571b,runlog,.venv/bin/python scripts/01_inventory.py
20261029-101523_p0/03_02_parse_ddr,20261029-101523_p0,02_parse_ddr,ok,0,2026-10-29T10:16:06+00:00,2026-10-29T10:16:10+00:00,3.7,0:00:04,,,False,2351b58715b1571b,runlog,.venv/bin/python scripts/02_parse_ddr.py
20261029-101523_p0/04_03_render_qc,20261029-101523_p0,03_render_qc,ok,0,2026-10-29T10:16:10+00:00,2026-10-29T10:16:28+00:00,18.1,0:00:18,,,False,2351b58715b1571b,runlog,.venv/bin/python scripts/03_render_qc.py
20261029-101523_p0/05_04_ocr,20261029-101523_p0,04_ocr,ok,0,2026-10-29T10:16:28+00:00,2026-10-29T10:16:38+00:00,9.2,0:00:09,,,False,2351b58715b1571b,runlog,.venv/bin/python scripts/04_ocr.py --pilot
20261029-101523_p0/06_05_ocr_qc,20261029-101523_p0,05_ocr_qc,ok,0,2026-10-29T10:16:38+00:00,2026-10-29T10:16:39+00:00,1.7,0:00:02,,,False,2351b58715b1571b,runlog,.venv/bin/python scripts/05_ocr_qc.py
20261029-101523_p0/07_pytest,20261029-101523_p0,pytest,ok,0,2026-10-29T10:16:40+00:00,2026-10-29T10:16:45+00:00,5.4,0:00:05,,,False,2351b58715b1571b,runlog,.venv/bin/python -m pytest -q
20261029-101523_p0,,p0,ok,0,2026-10-29T10:15:23+00:00,2026-10-29T10:16:45+00:00,82.5,0:01:23,,,False,2351b58715b1571b,runlog,bash scripts/run_p0.sh
20261029-105934_p0/01_00_data_manifest,20261029-105934_p0,00_data_manifest,ok,0,2026-10-29T10:59:34+00:00,2026-10-29T11:00:01+00:00,26.4,0:00:26,,,False,78ad01e2c88d637d,runlog,.venv/bin/python scripts/00_data_manifest.py --check
20261029-105934_p0/02_01_inventory,20261029-105934_p0,01_inventory,ok,0,2026-10-29T11:00:01+00:00,2026-10-29T11:01:12+00:00,71.3,0:01:11,,,False,78ad01e2c88d637d,runlog,.venv/bin/python scripts/01_inventory.py
20261029-105934_p0/03_02_parse_ddr,20261029-105934_p0,02_parse_ddr,ok,0,2026-10-29T11:01:13+00:00,2026-10-29T11:01:21+00:00,8.2,0:00:08,,,False,78ad01e2c88d637d,runlog,.venv/bin/python scripts/02_parse_ddr.py
20261029-105934_p0/04_03_render_qc,20261029-105934_p0,03_render_qc,ok,0,2026-10-29T11:01:21+00:00,2026-10-29T11:02:16+00:00,54.3,0:00:54,,,False,78ad01e2c88d637d,runlog,.venv/bin/python scripts/03_render_qc.py
20261029-105934_p0/05_04_ocr,20261029-105934_p0,04_ocr,ok,0,2026-10-29T11:02:16+00:00,2026-10-29T11:02:27+00:00,11.3,0:00:11,,,False,78ad01e2c88d637d,runlog,.venv/bin/python scripts/04_ocr.py --pilot
20261029-105934_p0/06_05_ocr_qc,20261029-105934_p0,05_ocr_qc,ok,0,2026-10-29T11:02:28+00:00,2026-10-29T11:02:35+00:00,7.6,0:00:08,,,False,78ad01e2c88d637d,runlog,.venv/bin/python scripts/05_ocr_qc.py
20261029-105934_p0/07_pytest,20261029-105934_p0,pytest,ok,0,2026-10-29T11:02:36+00:00,2026-10-29T11:02:51+00:00,15.3,0:00:15,,,False,78ad01e2c88d637d,runlog,.venv/bin/python -m pytest -q
20261029-105934_p0,,p0,ok,0,2026-10-29T10:59:34+00:00,2026-10-29T11:02:52+00:00,197.6,0:03:18,,,False,78ad01e2c88d637d,runlog,bash scripts/run_p0.sh
1 run_id parent name status exit_code start end wall_s wall device git dirty code_sha source cmd
2 20261029-093401_00_data_manifest 00_data_manifest ok 0 2026-10-29T09:34:01+00:00 2026-10-29T09:34:27+00:00 26.0 0:00:26 False f50bf49ac06e1d1c runlog /home/jovyan/lamlvh/Scientific/.venv/bin/python scripts/00_data_manifest.py
3 20261029-093857_01_inventory 01_inventory ok 0 2026-10-29T09:38:57+00:00 2026-10-29T09:40:15+00:00 78.3 0:01:18 False e7d526f94d16b4b9 runlog /home/jovyan/lamlvh/Scientific/.venv/bin/python scripts/01_inventory.py
4 20261029-094214_01_inventory 01_inventory ok 0 2026-10-29T09:42:14+00:00 2026-10-29T09:43:36+00:00 81.7 0:01:22 False c65846ae3dedb1a2 runlog /home/jovyan/lamlvh/Scientific/.venv/bin/python scripts/01_inventory.py
5 20261029-094420_02_parse_ddr 02_parse_ddr ok 0 2026-10-29T09:44:20+00:00 2026-10-29T09:44:29+00:00 9.2 0:00:09 False 05b4d36c2cfef94b runlog /home/jovyan/lamlvh/Scientific/.venv/bin/python scripts/02_parse_ddr.py
6 20261029-094502_02_parse_ddr 02_parse_ddr ok 0 2026-10-29T09:45:02+00:00 2026-10-29T09:45:11+00:00 9.6 0:00:10 False a47ae848cc457e4f runlog /home/jovyan/lamlvh/Scientific/.venv/bin/python scripts/02_parse_ddr.py
7 20261029-094619_03_render_qc 03_render_qc ok 0 2026-10-29T09:46:19+00:00 2026-10-29T09:46:59+00:00 40.7 0:00:41 False 207ca83e23caa50c runlog /home/jovyan/lamlvh/Scientific/.venv/bin/python scripts/03_render_qc.py
8 20261029-094819_ocr_pilot ocr_pilot ok 0 2026-10-29T09:48:19+00:00 2026-10-29T09:53:22+00:00 302.8 0:05:03 False b03aae69009e4833 runlog /home/jovyan/lamlvh/Scientific/.venv/bin/python scripts/04_ocr.py --pilot
9 20261029-095448_05_ocr_qc 05_ocr_qc ok 0 2026-10-29T09:54:48+00:00 2026-10-29T09:54:50+00:00 1.3 0:00:01 False b4f4e34786dc1ec7 runlog /home/jovyan/lamlvh/Scientific/.venv/bin/python scripts/05_ocr_qc.py
10 20261029-100845_03_render_qc 03_render_qc ok 0 2026-10-29T10:08:45+00:00 2026-10-29T10:09:03+00:00 18.1 0:00:18 False 4684b2da1d8b95b1 runlog /home/jovyan/lamlvh/Scientific/.venv/bin/python scripts/03_render_qc.py
11 20261029-100907_05_ocr_qc 05_ocr_qc ok 0 2026-10-29T10:09:07+00:00 2026-10-29T10:09:08+00:00 1.1 0:00:01 False 4684b2da1d8b95b1 runlog /home/jovyan/lamlvh/Scientific/.venv/bin/python scripts/05_ocr_qc.py
12 20261029-101523_p0/01_00_data_manifest 20261029-101523_p0 00_data_manifest ok 0 2026-10-29T10:15:23+00:00 2026-10-29T10:15:34+00:00 11.2 0:00:11 False 2351b58715b1571b runlog .venv/bin/python scripts/00_data_manifest.py --check
13 20261029-101523_p0/02_01_inventory 20261029-101523_p0 01_inventory ok 0 2026-10-29T10:15:34+00:00 2026-10-29T10:16:06+00:00 31.8 0:00:32 False 2351b58715b1571b runlog .venv/bin/python scripts/01_inventory.py
14 20261029-101523_p0/03_02_parse_ddr 20261029-101523_p0 02_parse_ddr ok 0 2026-10-29T10:16:06+00:00 2026-10-29T10:16:10+00:00 3.7 0:00:04 False 2351b58715b1571b runlog .venv/bin/python scripts/02_parse_ddr.py
15 20261029-101523_p0/04_03_render_qc 20261029-101523_p0 03_render_qc ok 0 2026-10-29T10:16:10+00:00 2026-10-29T10:16:28+00:00 18.1 0:00:18 False 2351b58715b1571b runlog .venv/bin/python scripts/03_render_qc.py
16 20261029-101523_p0/05_04_ocr 20261029-101523_p0 04_ocr ok 0 2026-10-29T10:16:28+00:00 2026-10-29T10:16:38+00:00 9.2 0:00:09 False 2351b58715b1571b runlog .venv/bin/python scripts/04_ocr.py --pilot
17 20261029-101523_p0/06_05_ocr_qc 20261029-101523_p0 05_ocr_qc ok 0 2026-10-29T10:16:38+00:00 2026-10-29T10:16:39+00:00 1.7 0:00:02 False 2351b58715b1571b runlog .venv/bin/python scripts/05_ocr_qc.py
18 20261029-101523_p0/07_pytest 20261029-101523_p0 pytest ok 0 2026-10-29T10:16:40+00:00 2026-10-29T10:16:45+00:00 5.4 0:00:05 False 2351b58715b1571b runlog .venv/bin/python -m pytest -q
19 20261029-101523_p0 p0 ok 0 2026-10-29T10:15:23+00:00 2026-10-29T10:16:45+00:00 82.5 0:01:23 False 2351b58715b1571b runlog bash scripts/run_p0.sh
20 20261029-105934_p0/01_00_data_manifest 20261029-105934_p0 00_data_manifest ok 0 2026-10-29T10:59:34+00:00 2026-10-29T11:00:01+00:00 26.4 0:00:26 False 78ad01e2c88d637d runlog .venv/bin/python scripts/00_data_manifest.py --check
21 20261029-105934_p0/02_01_inventory 20261029-105934_p0 01_inventory ok 0 2026-10-29T11:00:01+00:00 2026-10-29T11:01:12+00:00 71.3 0:01:11 False 78ad01e2c88d637d runlog .venv/bin/python scripts/01_inventory.py
22 20261029-105934_p0/03_02_parse_ddr 20261029-105934_p0 02_parse_ddr ok 0 2026-10-29T11:01:13+00:00 2026-10-29T11:01:21+00:00 8.2 0:00:08 False 78ad01e2c88d637d runlog .venv/bin/python scripts/02_parse_ddr.py
23 20261029-105934_p0/04_03_render_qc 20261029-105934_p0 03_render_qc ok 0 2026-10-29T11:01:21+00:00 2026-10-29T11:02:16+00:00 54.3 0:00:54 False 78ad01e2c88d637d runlog .venv/bin/python scripts/03_render_qc.py
24 20261029-105934_p0/05_04_ocr 20261029-105934_p0 04_ocr ok 0 2026-10-29T11:02:16+00:00 2026-10-29T11:02:27+00:00 11.3 0:00:11 False 78ad01e2c88d637d runlog .venv/bin/python scripts/04_ocr.py --pilot
25 20261029-105934_p0/06_05_ocr_qc 20261029-105934_p0 05_ocr_qc ok 0 2026-10-29T11:02:28+00:00 2026-10-29T11:02:35+00:00 7.6 0:00:08 False 78ad01e2c88d637d runlog .venv/bin/python scripts/05_ocr_qc.py
26 20261029-105934_p0/07_pytest 20261029-105934_p0 pytest ok 0 2026-10-29T11:02:36+00:00 2026-10-29T11:02:51+00:00 15.3 0:00:15 False 78ad01e2c88d637d runlog .venv/bin/python -m pytest -q
27 20261029-105934_p0 p0 ok 0 2026-10-29T10:59:34+00:00 2026-10-29T11:02:52+00:00 197.6 0:03:18 False 78ad01e2c88d637d runlog bash scripts/run_p0.sh