Files
Volve-DIA/AGENTS.md
lamlvh 2b59d635ce Complete M2 validation and lock the G1 evaluation protocol
Run and record both blind LLM validation passes and the external
cross-checks. Freeze the evaluation inputs, well splits, and reporting
scope with a SHA-256 checksum.

Use NPT definition b for DDR-code prediction with definition a as a
sensitivity analysis. Retain the class reporting thresholds and record
the empty set of eligible classes. Make T4 and OCR fidelity the headline
analyses and align the progress report and project documentation.

Co-authored-by: OpenAI Codex <noreply@openai.com>
2026-11-18 04:13:13 +00:00

12 KiB
Raw Blame History

AGENTS.md

Volve-DIA: a public benchmark and baselines for drilling-context recognition, NPT/trouble-interval identification and evidence-grounded question answering over the Volve daily drilling reports (DDR) and WITSML real-time data. Paper title (decided 17/11/2026, plan §12 item 22): Volve-DIA: A leakage-controlled benchmark for daily drilling reports and real-time drilling data; never put "first", "expert" or "human-annotated" in the title. One author; target a Q2 journal (Geoenergy Science and Engineering first). Direction chosen on 29/10/2026 (docs/danh-gia-huong-NCKH-2026-10-29.md, local only).

Read first: docs/plan.md (plan, gates, decisions; §1 data facts, §6 roadmap, §10 forbidden claims, §12 decision log), README.md (setup, scripts, logging), docs/danh-gia-huong-NCKH-2026-10-29.md (why this direction, competitors, references; local only, not in git), docs/technical_overview.md (a lecture for newcomers: drilling, DDR, leakage, tasks, labels, OCR, evaluation, code map). Progress page: report.html. These docs are in Vietnamese.

Status (18/11/2026)

  • P0 (infrastructure) done and committed (first commit on main, 29/10/2026). The project folder is /home/jovyan/lamlvh/Volve-DIA; remote origin https://gitea.vts-ai.space/lamlvh/Volve-DIA is public. scripts/run_p0.sh runs scripts 00–05 and the tests.
  • M1 machine work committed (17/11/2026, 1791665). The M1 driver generated the machine outputs; its final pytest step recorded 140 passes and one runlog test failure. The test had matched its own command line as the child readiness signal. Corrected on 18/11; the current suite passed 145 tests.
  • Data: data/Volve is now a real directory (no longer a symlink); /home has about 75 GB free (98%). The manifest holds 25,571 files (formation tops added), --check ok. Third-party material is in data/third_party/ (untracked).
  • DDR XML: 1,759 reports, 26 wellbores (11 wells), 23,447 activities; counts locked in EXPECTED. Render bugs: Tight well and HPHT ("Y" in every HTML), and the Bit Record "End mMD" column (prints bitRun_mdHoleStart). 03 covers only the header, 31 fields, summaries and Operations.
  • OCR: a colleague ran the full OCR and exported it through Dataset Hub (credentials only in .env, never in committed files or runlog commands). scripts/04_ocr_hub.py matches pages to DDRs by content (3,059 of 3,066 pages, 1,752 of 1,759 reports complete; 7 pages unmatched, 16 pages with a date disagreement not yet inspected). QC on the hub pages (scripts/05_ocr_qc.py --source hub, 1,752 reports): content CER 2.40%, WER 5.56%, exact 0.9181; depth fields and rig name are the weakest. The shared vLLM service is not used any more; 04_ocr.py and its page cache stay for the pilot.
  • WITSML (06_parse_witsml.py, written by a subagent; its figures are locked in EXPECTED and 30 tests): 21 DDR wellbores have time logs (not 14), 1,384 reports (not 964); WITSML 15/9-F-15 S is DDR 15/9-F-15 and two more names are shifted by one. Formation tops: 409 picks, 24 DDR wellbores with own picks, 2 with shared picks. Tables in outputs/witsml/ (2.2 GB, gitignored).
  • Labels T1–T3 (07_labels.py, configs/labels.yaml): T1 section with forward fill (672 published + 260 filled drilling days), T2 NPT (a) 3,577 rows / (b) 4,286 rows, T3 844 / 979 positive cells (only 50% of NPT rows can be located in depth).
  • T4 (08_t4_questions.py, configs/t4_templates.yaml): 1,662 questions from 39 templates; SQL, independent pandas and raw-XML answers agree 100%.
  • G1 passed and protocol v1 locked on 18/11/2026. Verify with sha256sum -c configs/protocol_v1.yaml.sha256. T4 and C4 are the headline analyses. Published T1 sections support them. T2/T3 are DDR-derived prediction diagnostics using NPT (b), with (a) as sensitivity. No class passed all thresholds for separate baseline scores.
  • Trial audit: 100 masked items drawn (09_audit.py sample, outputs/audit/trial_100/) and rated blind by three LLM raters (Sonnet, Opus, Haiku; RATINGS_llm_*.csv, scripts/09_rater_agreement.py -> raters.json). They are LLM raters, not an author audit: never describe them as the author's, a human or an expert audit. Median weighted kappa against the code labels: NPT a 0.553, NPT b 0.574, cause a 0.456, operation class 0.434; Fleiss between raters about 0.66. No human rated; there is no human time per row.
  • Literature: docs/literature_notes.md, docs/references.bib. No public NPT label set on Volve is independent of the DDR codes; the plan's "three independent label sets" was dropped. PetroAgents full text read (docs/lit_petroagents.pdf): well-day unit, 60-example samples, leakage ablation on 30 examples, split by wellbore.
  • M2 started 18/11/2026. run_m2.sh prepare drew 300 masked activities from 11 wells (225 strata, excluding the 100 pilot items) and 90 masked T1 section days (45 published, 45 filled). Qwen3-8B, Gemma 3 12B and Ministral 3 8B completed all 1,170 ratings. First-pass median weighted κ is 0.258 for NPT (a), 0.283 for (b); Δ = 0.025 selected (b) under the G1 rule. No individual or proposed pooled class meets all reporting thresholds. T1 section agreement is 0.707 on published days and 0.059 on filled days (45 sampled days per source).
  • M2 pass 2 complete on 18/11/2026. The same-day repeat returned 1,170 ratings. Within-rater weighted NPT κ was 0.912 (Qwen), 0.9999 (Gemma) and 0.824 (Ministral). Median κ against XML-derived NPT (b) was 0.283. Exploratory first-pass leave-one-well-out sensitivity kept the 0.02 selection margin in 10/11 deletions (Δκ 0.015–0.037). See plan §1.5 for code-vs-text disagreements and near-threshold classes.
  • M2 cross-checks complete. DrillScribe 1,758/1,758 episode keys matched. Anatoly5ms strong-or-weak text rules marked 219 of 4,894 own-hole T3 cells with WITSML, including 72 NPT (a) and 83 NPT (b) overlaps. TSPP2–4 have 9/14/15 DDR rows in the sensitivity windows and zero stuck-equipment codes. G1 preflight verified all 10 T3 training folds contain positives and negatives for both definitions (21 eligible wellbores).
  • Agents: delegate to Sonnet; to Opus only for very complex work; do not use Fable (user decision 17/11/2026).

Next

Roadmap and gates: docs/plan.md §6, §12 item 1.

  1. Implement M3 baselines using the locked reporting scope. Both blind LLM passes and the class review are complete. The timing amendment records the same-day repeat with distinct seeds.
  2. C4 reports results with and without the 16 date-disagreement pages; the 7 unmatched reports are dropped.
  3. Decided 17/11 (plan §12 item 21): WITSML suspect values (-999, -99999, 99999, 9999, |v| > 1e15) are missing at feature stage; formation picks file is the label source; 7 unmatched OCR reports are dropped from C4; G1 locked NPT (b) (+0.025 median weighted κ in the first pass).
  4. At G4, confirm the release terms for this copy. Local license.txt states CC BY-NC-SA 4.0 and no resale, while the public Equinor terms (§3.1–3.3) permit commercial use and forbid sale of licensed material.
  5. Read in full when access is available: EAGE 2026101276, SPE-236554-MS, SPE-235330-MS, IPTC-25191-MS.

Conventions

  • Ground truth: every label and every T4 answer comes from the XML (and WITSML), by code, with provenance. HTML and PDF are renders: never take a label from them. Labels are only validated (blind LLM raters, cross-checks with third-party sets, calibrated judge), never created by raters. No human rater is available, so no result may be called a human, author or expert audit.
  • No leakage: activity codes (proprietaryCode, stateDetailActivity, state) are masked in model inputs for T2 and T3. T3 uses only features from before the event. Primary splits group by well, with leave-one-well-out externally and GroupKFold internally. Baseline tuning uses training or development wells. Report results with and without the masked codes.
  • Locked protocols: the evaluation protocol is locked by SHA-256 before the first benchmark baseline run. Never edit a locked protocol or relax a threshold. New decisions go into a new protocol with a recorded deviation. Report results as they come out, including failures.
  • OCR service and Dataset Hub: the Hub URL, dataset id and API key live only in the untracked .env (DATASET_HUB_URL, DATASET_HUB_API_KEY, VOLVE_DIA_OCR_HUB_DATASET); never put them on a command line, in a committed file or in output shown to the user. The OCR service URL lives only in the untracked .env (VOLVE_DIA_OCR_URL; template .env.example). Read it only through volve_dia.ocr.service_url(). Never put it on a command line (runlog records the command in logs/index.csv), in a committed file, or in output shown to the user. The service is shared with vopec-chatbot: keep workers: 4. The model, prompt hash, dpi, max_tokens and temperature form the page-cache key, so changing one re-reads every page.
  • Git: work on main. Do not create branches unless the user explicitly asks. Commit only when the user asks. End commit messages with a co-author line for the agent.
  • Language: code, figures, paper text and commit messages in academic English. README.md, docs/plan.md, docs/technical_overview.md, report.html and explanations to the user in Vietnamese.
  • Decisions: decide from evidence and proceed.
  • Keep docs in sync (every task): whenever a run starts, finishes, fails or is stopped, or a result, decision, script or file changes, update in the same turn every file that states it: report.html (task status, results, decisions, log), docs/plan.md (§0, §1, §6, §12), AGENTS.md (Status, Next) and where relevant README.md (scripts, run commands) and docs/technical_overview.md (results story, code map). Before ending the turn, grep these files for older statements about the same item (for example "not started", old counts or dates) and correct them, so no two files disagree.
  • Shared server: never touch other users' jobs. Set OMP_NUM_THREADS, MKL_NUM_THREADS and OPENBLAS_NUM_THREADS explicitly when running by hand (the machine default is 40); run_p0.sh sets them to 4.
  • Long runs: detach multi-hour runs with setsid nohup ... > /dev/null 2>&1 & so they survive the agent session, and wrap them with scripts/runlog.sh (the log is in logs/runs/). 04_ocr.py resumes from the page cache.
  • Licence and confidentiality: This Volve copy ships with license.txt stating CC BY-NC-SA 4.0, no resale and attribution. The public Volve terms allow commercial use and forbid sale of licensed material. Keep the local non-commercial convention with attribution and resolve the applicable release terms before G4. docs/NCKH_Ban TD.DOCX is an internal PVEP document: never commit or publish it. docs/danh-gia-huong-NCKH-2026-10-29.md quotes it, so it is gitignored and stays local. The remote is public: before every push, check that no committed file quotes the internal proposal.
  • Code style: lines of at most 120 characters; scripts are numbered scripts/NN_name.py; tests that need the data carry the data marker.

Not in git (other machines)

data/ (the Volve copy, OCR hub export, third-party repos), outputs/, logs/runs/, .env, docs/*.DOCX, docs/*.pdf, docs/danh-gia-huong-NCKH-2026-10-29.md and the .venv are gitignored. Check the data with scripts/00_data_manifest.py --check and regenerate outputs/ with scripts/run_p0.sh, except the OCR page cache outputs/ocr/pages/: it holds hours of GPU time, so copy it rather than reading the pages again.

Skills

Agent skills live in .agents/skills/ (sources in skills-lock.json): scikit-learn, pymc, statistical-analysis, scientific-visualization, scientific-writing, scientific-critical-thinking, literature-review, citation-management, academic-humanizer, mlflow.