MBZUAI Institute of Foundation ModelsInception

An agentic harness that makes formation evaluation auditable and more accurate.

A language model investigates the raw LAS with Petrophys, one recorded step at a time. Every number it gives you traces back to the log, and the models we measured answer more accurately with PetroHarness.

You

What are the porosity, water saturation and permeability of the Brent Group, and is any of it hydrocarbon-bearing?

PetroHarness

Total porosity (PHIT) pools to 0.1988 v/v over the 567 zoned samples … SW pools to 0.6929 v/v … core-calibrated PERM_CC pools to 342.5 mD … Hydrocarbon bearing. Weak, screen-only indication …

0.1988 v/vthe number in the answer
E1, E6the results that show it, kept whole
PHITtotal porosity curve
Petrophys porosity stepneutron-density, matrix from the lithology log
NPHI, RHOB, DTC, VCLthe curves it was computed from
30_6-5.lasBrent Group, 2841 to 2958 m, 768 samples
A recorded run, as delivered: 8 steps, 14 results
  1. Petrophys calculatesevery curve and number
  2. The model investigatesone step at a time
  3. Code checks and recordsevery result and step
  4. You decidewith the evidence in hand

Scored on WellLogBench

We put our post-trained K2-Horizon-7B into PetroHarness. On WellLogBench's 347 single-formation questions it scores 69.3, up from 64.0 for the same model without the harness, and the other models we measured also score higher with PetroHarness. PetroHarness v1 focuses on a single well; every system is scored as the WellLogBench leaderboard scores it (W, 0 to 100).

Leaderboard

347 single-formation questions

ours, inside PetroHarnessours, DFS contextother systems

More accurate with PetroHarness

Each model without the harness and inside PetroHarness, on 347 single-formation questions. Three models are measured in two forms: post-trained by us for well logs, and base.

without the harnessPetroHarness

All the numbers RA, trust, style and reasoning quality, with intervals

One question, end to end

The model makes every call; code routes, checks and records.

  1. 1PreparePetrophys interprets the LAS and zones the interval
  2. 2ReadThe model reads the question and picks a route
  3. 3Look or investigatedirect: up to 2 looksinvestigation: up to 8 steps
  4. 4WriteThe answer, from every result opened
  5. 5CheckEvery number must trace to a result
  6. 6RecordFigures, methods and the session log
Explore the full graph every node, route and loop
model callcodekept stateoutput↻ a loop
PrepareInvestigateConcludeAfterthe mapdirectinvestigatehand overactionsnew + opened resultsclaim editsdirect: the short answerfindingsrepaired↻ a follow-up question starts again at READ, from the session logQuestionthe user’s wordsRaw LAS + intervaltops, depths or whole wellinterprets the raw LASInterval viewlithology zones Z1…ZnThe mapcurves, steps, sectionsREADtopics, direct or notLook steps ≤ 2≤ 4 lookups eachSteps 1 … 8points, claims, actionsTools →29 tools, 7 verbsLedger E1 … Enevery result kept wholeClaimscite E ids, code flagsSettlethe claims become finalWritershort or report formVerifyevery number, every wordRepair ≤ 2the findings, fixedDeliverzone table, ids outAnswer + tracewith the draft as writtenProjectmethods, number linksFigureschosen, drawn bySession logevery result, every turnEvidence graphaudit trail, report↻ looks again, at most 2↻ one step per turn, up to 8↻ until clean, at most 2 rounds

Four real runs, replayed

Recorded on tuhua-7, a sample well that ships with Petrophys. Pick one and press replay.

Made to be checked

Keep asking, from what was already found

  • Follow-ups reuse the results already opened
  • A brief reply, or a new investigation when it needs one
  • One session log: resume any conversation

From any number back to the log

  • Click a number to light its path to the logs
  • Methods and parameters under every answer
  • No number is delivered without a result behind it
  • petroharness audit rebuilds it all from the session folder

Choose how interprets the well

  • Every Petrophys setting, with its own help and default
  • Zones previewed on the well before you ask
  • Change one mid-conversation: /set m=1.8
  • Field notes keep a team’s standing choices
2 m minimum zone, 6 zones0.5 m minimum zone, 9 zones

What’s inside

Any chat modelAny OpenAI-compatible endpoint; K2-Horizon-7B by default.
A short routeA direct question gets a short answer in a few calls.
InvestigationsUp to eight steps; every result kept whole.
29 toolsLookups, comparisons and seven Petrophys verbs.
Petrophys on requestAbout 300 Petrophys functions, by search and run.
FiguresChosen by the model, drawn by Petrophys.
Skill libraryA sourced guide for each topic area.
Session logAppend-only; resume any conversation.
Audit and reportaudit, report and setup from the session folder.
Web UIA chat with settings, runs and number links.
Command line and Pythonpetroharness, chat, ask().
Replay gatesA public conversation replays with no server.

Install, connect a model, ask

pip install petroharness
# Python 3.10 or later; Petrophys comes with it
export PETROHARNESS_MODEL_URL=http://localhost:8000/v1
# any other chat model: give its served name
petroharness --model Qwen/Qwen3-32B --las well.las --question "..."
petroharness --las well.las --tops tops.csv --formation "Mount Messenger" \
    --question "Where are the best reservoir intervals, and is any of them hydrocarbon-bearing?"
petroharness chat --las well.las --tops tops.csv --formation "Mount Messenger"
petroharness audit ./petroharness-sessions/<session>
petroharness --launch-ui             # opens http://localhost:7860
from petroharness.ask import ask

r = ask("tuhua-7.las", "Which zone has the best reservoir quality?", formation="Mount Messenger",
        tops="formations_tuhua-7.csv", interpretation={"rw": 0.05, "sw_model": "indonesia", "m": 2.2})
print(r.answer)          # r.trace: every call and every result opened

Python 3.10 or later and any chat model behind an OpenAI-compatible endpoint (K2-Horizon-7B by default). Serve the model yourself and the well data stays on your machines.

Citation

PetroHarness: An Open-Source Agentic Harness for Auditable Formation Evaluation
S. Shikhar, Z. Kabashev, S. Umurzak, M. Lee, L. Barillas, S. Bharadwaj, J. Thomas, J. Lahoud, F. Castanedo, H. Cholakkal
ADIPEC 2026, paper SPE-236034-MS
Mohamed bin Zayed University of Artificial Intelligence (MBZUAI), Khalifa University, Inception42, AIQ; Abu Dhabi, United Arab Emirates

BibTeX
@inproceedings{shikhar2026petroharness,
  title     = {PetroHarness: An Open-Source Agentic Harness for Auditable Formation Evaluation},
  author    = {Shikhar, S. and Kabashev, Z. and Umurzak, S. and Lee, M. and Barillas, L. and Bharadwaj, S. and Thomas, J. and Lahoud, J. and Castanedo, F. and Cholakkal, H.},
  booktitle = {ADIPEC 2026},
  number    = {SPE-236034-MS},
  publisher = {Society of Petroleum Engineers},
  year      = {2026}
}