% Section 5: Baselines. Every number is traced in paper/provenance/03_05_AB.md. \section{Baselines}\label{sec:baselines} The baselines range from a constant predictor to a tool-using language model (Table~\ref{tab:baselines}). They were fixed in protocol v1, except for the replacement of the two local language models described in Sec.~\ref{sec:baselines:deviation}. No baseline is tuned on a test well, and every run that started is reported, including the stopped ones. Results are in Sec.~\ref{sec:results}. \begin{table}[t] \centering \caption{Baselines and their runs. ``Repetition'' marks independent API calls whose seed is sent but not verified. Partial v1 runs are reported as partial and are not part of the G2 coverage.} \label{tab:baselines} \small \begin{tabular}{@{}p{0.25\textwidth}p{0.17\textwidth}p{0.22\textwidth}p{0.28\textwidth}@{}} \toprule System & Tasks & Runs & Notes \\ \midrule Majority (prevalence) & T1--T3 & deterministic & Reference score \\ Lexicon & T2 & deterministic & Public NPT keyword rules \\ TF-IDF + logistic regression & T1--T3 & deterministic & $C \in \{0.25, 1, 4\}$ chosen in the inner loop \\ DistilBERT & T1--T3 & 3 seeds & Fine-tuned; masked and unmasked \\ DeepSeek-V4.1-Flash & T4 (5 modes), C4 (3 sources), T2 zero-shot & 3 repetitions & Protocol v2, full matrix \\ Qwen3-8B & T4, C4, T2 zero-shot & stopped 19/11/2026 & Partial v1 \\ Llama 3.1 8B & T4, C4 & never ran beyond a smoke test & Retired in protocol v2 \\ Claude Sonnet, Claude Haiku & T4 (300 questions, 5 conditions), T2 (500 items) & 1 repetition & Session subagents, auxiliary sample \\ \bottomrule \end{tabular} \end{table} \subsection{Classification baselines} Four non-generative baselines cover T1--T3. The majority baseline uses the training-fold majority class and a constant ranking score for the binary tasks. On these tasks, its average precision equals the prevalence. The lexicon baseline flags a masked T2 comment that matches the public NPT keyword rules of the label configuration (Appendix~\ref{app:labels}); a comment-length score is also reported as a trivial reference. TF-IDF with logistic regression \citep{pedregosa2011sklearn} uses word features with a minimum document frequency of 2. The inverse regularisation strength $C$ is chosen from $\{0.25, 1, 4\}$ by the inner grouped cross-validation. For T3, the input concatenates the masked activity text of the previous 24~h with WITSML statistics of ten channels: \texttt{RPM}, \texttt{WOB}, \texttt{TORQ}, \texttt{SPPA}, \texttt{ROP}, \texttt{HKLD}, \texttt{RPMAV}, \texttt{WOBA}, \texttt{RPMA} and \texttt{ROPA}. T3 forecasts are cut at thresholds from 0.1 to 0.5 in steps of 0.1 to form intervals for IoU. DistilBERT \citep{sanh2019distilbert} is fine-tuned from the uncased base checkpoint at a fixed revision for two epochs, with learning rate $2 \times 10^{-5}$, batch size 32 and at most 192 tokens. It runs with three seeds for both NPT definitions, masked and unmasked, and for both splits. \subsection{Language-model baselines} DeepSeek-V4.1-Flash \citep{deepseekai2026v41flash} is the API baseline of protocol v2. It runs through an OpenAI-compatible gateway with thinking disabled, temperature 0.2, at most 320 output tokens and a JSON answer with the fields answer, unit and citations. Each call is repeated three times with the repetition index sent as the seed. The gateway does not confirm that the seed is honoured, so the three runs are repetitions, not seeded replicates. The full matrix has 48,951 T4 and C4 predictions and 70,341 T2 predictions, and all of them were collected. T4 is run in five modes. Zero-shot gives the model only the question. Few-shot adds two question--answer examples from the development wells, in a fixed order. RAG retrieves up to eight passages of the XML-derived text, within 12,000 characters. Tool-only gives the model a parameterised query tool over the DDR tables without a retrieved context. The agent adds an initial retrieved context and a search tool. Both modes allow up to three tool calls. C4 runs the RAG mode over the XML, HTML or OCR text of the same reports, on the 1,376 paired questions and again on the 1,293 questions without date-disagreement pages. Qwen3-8B \citep{yang2025qwen3} and Llama 3.1 8B \citep{grattafiori2024llama3} were the local open-weight baselines of protocol v1, run as 4-bit quantised GGUF files. Qwen completed T2 seed 0 (23,447 predictions) and reached 17,827 of 23,447 for seed 1. For T4 and C4, it completed seed 0 for the C4, date-clean C4 and RAG modes, with 10,214 of 16,317 predictions over all modes, and its agent mode stopped at 545 of 1,662. Llama ran only a smoke test. These runs are partial v1 results. They do not enter the comparison that gate G2 requires. Claude Sonnet and Claude Haiku run as subagents of the Claude Code session, because no API key was available for them. They answer a fixed auxiliary sample drawn with seed 20261117 over all 11 wells before any answer existed: 300 T4 questions in five conditions (zero-shot, RAG over XML text, and C4 over XML, HTML and OCR text) and 500 masked T2 items, with one repetition. The prompts are built by the same code as the DeepSeek prompts. The sample has three limitations, which Sec.~\ref{sec:results} carries. The subagents were told to read only their batch file, but file access was not enforced, and some agents listed the directory. Group outputs were quarantined and rerun as one batch per agent. The batches held 15 T4 questions or 50 T2 items, not the 30 and 100 of the protocol, because the reading tool returns about 42,000 characters. \subsection{Deviation: replacement of the local models}\label{sec:baselines:deviation} On 19/11/2026, after the v1 runs had started, the project owner stopped Qwen3-8B and Llama 3.1 8B and locked protocol v2. The change was not driven by a test-well result. DeepSeek-V4.1-Flash fills the API cell of v1 on the full matrix. Claude Sonnet and Claude Haiku replace the local models on the auxiliary sample. All v1 checkpoints stay unchanged and are reported as partial. Appendix~\ref{app:record} records the deviation and the two drafts that were replaced before any v2 call. \subsection{Later analyses} Three later analyses were locked before their scores in protocols v4--v6. Protocol v4 fixed an ordered error taxonomy, assigned by the earliest matching rule for each T4 prediction, and an evidence-grounding score (EGS). EGS is adapted from TADI \citep{lu2026tadi} to the JSON answer: one third for a number followed by a TADI drilling unit, one third for a citation that resolves to a known DDR report, and zero for sections, which the format does not have. Protocol v5 fixed the T5 representations, none of which reads codes, causes, labels, sections or formations: random order, depth, WITSML statistics and masked text before the interval, text after it (reported apart) and reciprocal-rank fusion \citep{cormack2009rrf} with $k = 60$. Protocol v6 fixed a planted-signal study. Labels are drawn at random with the real prevalence, and a signal of controlled strength is written into the model input: a cue phrase in the masked T2 text, or a depth hazard for T3. This bounds what TF-IDF and the depth forecast can detect. Their results are in Secs.~\ref{sec:res:errors}, \ref{sec:res:diag} and \ref{sec:res:planted}.