Files
Volve-DIA/paper/sections/06b_results_labels.tex
lamlvh 221399260f 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>
2026-11-25 02:02:43 +00:00

362 lines
29 KiB
TeX

% Second half of Sec. 6. Every number is traced in paper/provenance/06b.md.
% Primary values are those of subset "all" in outputs/m34/classification.csv (see the provenance note on plan Sec. 1.6).
\subsection{Code leakage in NPT recognition (T1--T3)}
\label{sec:res:leak}
All scores in this subsection are for models trained and tested with leave-one-well-out splits over the 11 wells
(Section~\ref{sec:design:splits}). T2 has 23,447 activities. Under definition (b), the share of NPT activities is 0.183,
which is also the average precision (AP) of the majority baseline. \emph{Masked} input hides the three fields from which
the label is built (\texttt{proprietaryCode}, \texttt{stateDetailActivity} and \texttt{state};
Section~\ref{sec:design:labels}). The model then sees the activity comment and the comments of the neighbouring
activities. \emph{Unmasked} input shows those fields as text. Table~\ref{tab:leakage} and Fig.~\ref{fig:leakage}
collect the results.
\paragraph{With codes masked, the text still carries part of the NPT coding, and DistilBERT recovers the most.}
On T2(b), the fine-tuned DistilBERT reached an AP of 0.579--0.603 over three seeds. TF-IDF with logistic regression
reached 0.463 (95\% CI 0.418--0.513), the keyword lexicon 0.251 and the majority baseline 0.183. The comment-length
baseline (0.162) did not exceed the prevalence, so the length of a comment alone does not mark NPT. The interval of every
DistilBERT seed lies above that of TF-IDF; the lowest lower limit is 0.554 against an upper limit of 0.513. The protocol
did not fix a paired contrast between the two models, so we attach no interval to their difference.
\paragraph{Showing the codes almost reproduces the label, so H2 is supported on T2.}
With codes shown, TF-IDF reached an AP of 0.995 (0.991--0.999). The paired difference, unmasked minus masked, was
$+0.531$ (0.480--0.580). For DistilBERT the difference was $+0.266$ to $+0.291$ over the three seeds, and each interval
excluded zero. H2 predicted that showing the codes would raise the scores. The size of the rise matters more than its
sign. The label is a deterministic function of the unmasked fields, and a linear model over word counts learns that
function almost perfectly. The unmasked score is dominated by access to the fields used to construct the label. DistilBERT gained less and stayed at 0.869--0.880 with codes shown. We did not test why it
uses the code tokens less well than the linear model.
\paragraph{The paired DeepSeek comparison leaves its difference from TF-IDF unresolved.}
DeepSeek (the hosted DeepSeek-V4.1-Flash model, three repetitions) reached an AP of 0.406--0.408 with codes masked. Its
paired difference to TF-IDF was $-0.055$ to $-0.058$, and the interval contained zero in each repetition (for example
$-0.134$ to $0.011$ in repetition 0). Qwen3-8B, an incomplete run reported as such, scored 0.264 on seed~0. That is $0.200$
below TF-IDF ($-0.250$ to $-0.152$). Its second seed was stopped at 17,827 of 23,447 activities and is not scored. H1
expected no clear advantage of a zero-shot model over TF-IDF once codes are masked. The data agree, and every DeepSeek
point estimate lies below TF-IDF, although that difference is not resolved. A zero-shot model never sees the convention by
which the supervisors coded these reports, whereas the supervised baselines learn it from the training wells. This is one
plausible reason for the gap; we did not test it. The point estimates spread from 0.406 to 0.408 across the three repetitions.
\paragraph{Grouping by wellbore instead of well raised the learned scores slightly, and no difference is resolved.}
When the folds held out wellbores instead of wells, DistilBERT reached 0.612--0.624 on T2(b) with codes masked. The paired
difference to the well split was $+0.015$ to $+0.040$, and every interval contained zero. TF-IDF rose to 0.489, a
difference of $+0.026$ ($-0.001$ to $0.042$). The majority and lexicon scores were unchanged under the wellbore split. All learned point estimates are positive. This is consistent with sidetracks of one well sharing wording
and context across folds (Section~\ref{sec:design:splits}), but with 26 wellbores in 11 wells the effect could not be
resolved. It is also an order of magnitude smaller than the effect of showing the codes. The well split remains primary.
\paragraph{The same pattern holds under definition (a), without sidetrack rows and with OCR input.}
Under definition (a), the majority AP is 0.153. With codes masked, TF-IDF reached 0.437, DistilBERT 0.552--0.578 and
DeepSeek 0.389--0.391. Showing the codes added $+0.563$ for TF-IDF and $+0.298$ to $+0.337$ for DistilBERT. For TF-IDF
the difference between the definitions, (b) minus (a), was $+0.026$ ($-0.003$ to $0.068$). The 202 activities coded as
sidetrack were removed in a sensitivity run, leaving 23,245. On that set TF-IDF scored 0.457, DistilBERT 0.589--0.611 and
DeepSeek 0.401--0.404. TF-IDF trained and tested on the OCR text of 23,387 activities reached 0.464, the same as on XML
text. For this baseline, the OCR errors measured in Section~\ref{sec:data} do not change T2. Section~\ref{sec:res:c4}
reports the corresponding comparison for T4.
\paragraph{Hole sections can be learned on days with a published hole size, not on filled days.}
T1 has 932 drilling days: 672 with a hole size published in the report and 260 whose section was filled forward from an
earlier day. On published days, TF-IDF reached an accuracy of 0.621 (0.504--0.742) against 0.286 for the majority
section. On filled days it reached 0.819 against 0.815 for the majority. A filled label mostly continues the section in
progress, so the majority baseline already predicts it and the text adds nothing. DistilBERT was below TF-IDF on published
days (0.301--0.369) and close to the majority on filled days (0.754--0.808); we did not investigate why. The LLM raters
show the same split (Section~\ref{sec:res:labels}): their median $\kappa$ with the section label was 0.707 on published
days and 0.059 on filled days. TF-IDF on OCR text reached 0.625 on published days. Published sections therefore support
the T4 analyses. Filled sections stay a convenience label whose accuracy on days without a published hole size is unknown.
\begin{table}[t]
\centering
\caption{Code leakage in NPT recognition, definition (b), leave-one-well-out. AP: average precision of the pooled
out-of-fold predictions. Masked: activity codes hidden from the model input; unmasked: codes shown. Single values are one
run with its 95\% well-cluster bootstrap interval in brackets. DistilBERT (three seeds) and DeepSeek (three repetitions)
are given as the mean, with the range of the runs in parentheses. $\Delta$: unmasked minus masked, paired on the same
folds; for DistilBERT, the range of the three per-seed differences, all of whose intervals exclude zero on T2 and include
zero on T3. Qwen3-8B is an incomplete run (seed 0 only). n.r.: not run.}
\label{tab:leakage}
\footnotesize
\begin{tabular}{llll}
\toprule
Method & masked & unmasked & $\Delta$ \\
\midrule
\multicolumn{4}{l}{\emph{T2(b): NPT activity, 23,447 activities}} \\
Majority (prevalence) & 0.183 & n.r. & n.r. \\
Comment length & 0.162 & n.r. & n.r. \\
Lexicon & 0.251 & n.r. & n.r. \\
TF-IDF + logistic & 0.463 [0.418, 0.513] & 0.995 [0.991, 0.999] & $+0.531$ [0.480, 0.580] \\
DistilBERT & 0.593 (0.579--0.603) & 0.873 (0.869--0.880) & $+0.266$ to $+0.291$ \\
DeepSeek zero-shot & 0.407 (0.406--0.408) & n.r. & n.r. \\
Qwen3-8B (incomplete) & 0.264 [0.206, 0.340] & n.r. & n.r. \\
\midrule
\multicolumn{4}{l}{\emph{T3(b): NPT depth cell, 4,894 cells}} \\
Majority (prevalence) & 0.1136 & n.r. & n.r. \\
TF-IDF + logistic & 0.1225 [0.093, 0.195] & 0.1273 & $+0.0048$ [$-0.0005$, 0.0238] \\
DistilBERT & 0.1212 (0.1175--0.1245) & 0.1235 (0.1189--0.1312) & $-0.0011$ to $+0.0066$ \\
\bottomrule
\end{tabular}
\end{table}
\begin{figure}[t]
\centering
\includegraphics[width=0.9\linewidth]{leakage.pdf}
\caption{Code leakage, definition (b), leave-one-well-out. (a) T2 NPT activity and (b) T3 NPT depth cell: average
precision of TF-IDF + logistic and DistilBERT with activity codes masked (hatched) and shown (filled). Points are single
runs or seeds with their 95\% well-cluster bootstrap intervals. The text above each pair gives the paired difference,
unmasked minus masked. Horizontal lines: majority baseline (equal to the prevalence) and, in (a), the lexicon baseline.}
\label{fig:leakage}
\end{figure}
\subsection{Depth intervals and similar-interval retrieval (T3, T5)}
\label{sec:res:diag}
\paragraph{T3 stays near chance whether or not the codes are shown, so H2 is not supported on T3.}
T3 asks which 10\,m depth cells of the own hole contain an NPT interval. It covers 4,894 cells on 21 wellbores with
WITSML logs in 10 wells, and 556 of them are positive under definition (b), a prevalence of 0.114. With codes masked,
TF-IDF reached an AP of 0.1225 (0.093--0.195) and DistilBERT 0.1175--0.1245, against 0.1136 for the majority baseline
(Table~\ref{tab:leakage}). The interval intersection over union was 0.119 for TF-IDF and 0.108--0.124 for DistilBERT.
Showing the codes changed the AP of TF-IDF by $+0.0048$ ($-0.0005$ to $0.0238$) and that of DistilBERT by $-0.0011$ to
$+0.0066$, with every interval containing zero. Only the intersection over union of TF-IDF rose by an interval that
excludes zero, and only by 0.017 (0.0003--0.061). T3 inputs are restricted to the record before each cell
(Section~\ref{sec:design:splits}), so the codes that define a positive cell never reach the model. The near-zero effect of
unmasking is consistent with earlier codes saying little about where the next NPT interval will fall. The comparison leaves the magnitude of any AP effect unresolved. Under the wellbore split, TF-IDF reached 0.141, a difference of $+0.019$ ($-0.033$ to $0.043$).
\paragraph{Depth neighbours give the higher forecast AP.}
We scored each cell by the mean label of its 10 nearest cells in measured depth, taken from the other wells. This gave an
AP of 0.150 (0.116--0.204) against a prevalence of 0.114. Adding the WITSML summaries of hook load, rate of penetration,
rotary speed and standpipe pressure lowered it to 0.135 (0.110--0.183). Under definition (a) the two values were 0.132 and
0.120, against a prevalence of 0.098. These comparisons suggest some depth dependence in the labels. The run with WITSML summaries has a lower point estimate. Section~\ref{sec:res:planted} puts a scale on how weak the hazard is.
\paragraph{T5 asks whether an interval can be matched to similar intervals elsewhere in the field.}
The 410 queries are own-hole NPT (b) intervals with a known hole section and formation, on 19 wellbores in 10 wells. The
candidates for each query are the intervals of the other wells (a median of 358). A candidate earns one point each for the
same section, the same formation and a shared NPT cause, so its gain runs from 0 to 3. No representation reads codes,
causes, labels, sections or formations. The protocol (v5) was locked before any retrieval score was computed.
\paragraph{Depth is the strongest individual representation.}
Ranking candidates by the difference in measured depth gave an nDCG@10 of 0.666 (0.644--0.685), against 0.463 for a
random order (Table~\ref{tab:t5}). Reciprocal rank fusion of depth, the 24\,h of WITSML before the event and the masked
text of the 24\,h before it reached 0.670. Its paired difference to depth was $+0.004$ ($-0.010$ to $0.018$). The
pre-event text alone reached 0.611, which is 0.055 below depth ($-0.063$ to $-0.048$). The pre-event WITSML summaries
reached 0.495, only 0.032 above random (0.008--0.053). The text of the event itself, a description view rather than a
forecast, reached 0.528. The conclusions did not change under definition (a), where depth reached 0.660 and fusion
differed from it by $+0.005$ ($-0.012$ to $0.022$). Pooling candidates by wellbore instead of well gave 0.663 and $+0.003$
($-0.012$ to $0.016$).
\paragraph{Depth retrieves more intervals from the same formation.}
Within a single field, the hole section and the formation are both functions of depth. Depth put a candidate from the
same formation in 71\% of the top-10 slots, against 23\% for a random order. The masked pre-event text named hole sizes
often enough to place the same section in 58\% of the slots, more than depth (45\%). The share of top-10 candidates
that share a cause with the query barely moved, from 0.70 for a random order to at most 0.75. On this corpus T5
therefore rewards stratigraphic position. None of the baselines retrieves intervals with a similar cause much better than
chance. T5 lies outside the G2 coverage rule and stays a diagnostic.
\begin{table}[t]
\centering
\caption{T5 similar-interval retrieval, definition (b), candidates from the other wells (410 queries). nDCG@10 with
linear gain (same section, same formation, shared cause; 0--3) and its 95\% well-cluster bootstrap interval. $\Delta$:
paired difference to depth. MRR: reciprocal rank of the highest-ranked fully relevant candidate (374 queries have one). P@10: share
of fully relevant candidates in the top 10. The last three columns: share of the top 10 with the same section, the same
formation and an overlapping cause (descriptive). Fusion uses reciprocal rank fusion with $k = 60$.}
\label{tab:t5}
\footnotesize
\setlength{\tabcolsep}{2pt}
\begin{tabular}{lccccccc}
\toprule
Representation & nDCG@10 & $\Delta$ vs depth & MRR & P@10 & section & formation & cause \\
\midrule
Random order & 0.463 [0.444, 0.478] & $-0.203$ [$-0.228$, $-0.184$] & 0.161 & 0.052 & 0.369 & 0.234 & 0.703 \\
Depth & 0.666 [0.644, 0.685] & reference & 0.397 & 0.194 & 0.451 & 0.711 & 0.708 \\
WITSML, 24\,h before & 0.495 [0.462, 0.527] & $-0.171$ [$-0.209$, $-0.136$] & 0.219 & 0.086 & 0.418 & 0.270 & 0.720 \\
Text, 24\,h before & 0.611 [0.590, 0.630] & $-0.055$ [$-0.063$, $-0.048$] & 0.379 & 0.166 & 0.576 & 0.371 & 0.746 \\
Text of the event & 0.528 [0.506, 0.544] & $-0.138$ [$-0.163$, $-0.118$] & 0.271 & 0.109 & 0.405 & 0.301 & 0.754 \\
Fusion, pre-event & 0.670 [0.653, 0.687] & $+0.004$ [$-0.010$, 0.018] & 0.435 & 0.221 & 0.560 & 0.566 & 0.737 \\
Fusion, all four & 0.661 [0.638, 0.680] & $-0.005$ [$-0.024$, 0.009] & 0.434 & 0.217 & 0.546 & 0.540 & 0.746 \\
\bottomrule
\end{tabular}
\end{table}
\subsection{How far the labels can be trusted without a human rater}
\label{sec:res:labels}
No human rated any item. Every label is computed from the XML by code (Section~\ref{sec:design:labels}). What can be
checked is whether readers of the masked text agree with that code. We used blind LLM raters for this
(Section~\ref{sec:design:validation}). A trial of 100 masked activities was rated by Sonnet, Opus and Haiku. The main
sample (M2) drew 300 masked activities from all 11 wells in 225 strata, excluding the trial items, and 90 T1 days (45
published, 45 filled). Qwen3-8B, Gemma~3 12B and Ministral~3 8B rated it twice on the same day. Agreement is Cohen's
$\kappa$ against the code label, weighted by the inverse selection probability (Table~\ref{tab:labelkappa}).
\begin{table}[t]
\centering
\caption{Agreement of blind LLM raters with the code labels: Cohen's $\kappa$ weighted by inverse selection probability,
per rater and median; Fleiss' $\kappa$ between the three raters. Trial: 100 masked activities (operation class: 65 items;
Haiku left 2 items unrated). M2: 300 masked activities (operation class: 195) and 90 T1 days; pass 2 is a same-day repeat
on the same items. H3 required $\kappa \ge 0.6$ for binary NPT.}
\label{tab:labelkappa}
\footnotesize
\setlength{\tabcolsep}{1.5pt}
\begin{tabular}{lcccccccccc}
\toprule
& \multicolumn{4}{c}{Trial (Sonnet, Opus, Haiku)} & \multicolumn{4}{c}{M2 pass 1 (Qwen, Gemma, Ministral)}
& M2 pass 2 & Fleiss \\
\cmidrule(lr){2-5}\cmidrule(lr){6-9}
Target & S & O & H & median & Q & G & M & median & median & trial / M2 \\
\midrule
NPT (a) & 0.553 & 0.584 & 0.529 & 0.553 & 0.108 & 0.258 & 0.258 & 0.258 & 0.242 & \multirow{2}{*}{0.662 / 0.512} \\
NPT (b) & 0.564 & 0.683 & 0.574 & 0.574 & 0.129 & 0.283 & 0.292 & 0.283 & 0.283 & \\
Cause (a) & 0.476 & 0.448 & 0.456 & 0.456 & 0.092 & 0.220 & 0.220 & 0.220 & 0.200 & \multirow{2}{*}{0.644 / 0.392} \\
Cause (b) & 0.487 & 0.524 & 0.469 & 0.487 & 0.105 & 0.228 & 0.239 & 0.228 & 0.229 & \\
Operation class & 0.434 & 0.624 & 0.389 & 0.434 & 0.162 & 0.175 & 0.211 & 0.175 & 0.169 & 0.662 / 0.255 \\
Section, published & n.r. & n.r. & n.r. & n.r. & 0.556 & 0.707 & 0.721 & 0.707 & 0.629 & \multirow{2}{*}{n.r. / 0.480} \\
Section, filled & n.r. & n.r. & n.r. & n.r. & 0.067 & 0.054 & 0.059 & 0.059 & 0.049 & \\
\bottomrule
\end{tabular}
\end{table}
\paragraph{Agreement with the code remains below the H3 threshold.}
In the trial, the median $\kappa$ for NPT was 0.553 under definition (a) and 0.574 under (b). Only Opus exceeded 0.6, with
0.683 on (b). In M2 pass 1, the medians were 0.258 and 0.283. Gemma and Ministral reached 0.258--0.292, and Qwen
only 0.108--0.129. Agreement on cause groups and operation classes was lower still, with M2 medians of 0.220--0.228 and
0.175. H3 required a $\kappa$ of at least 0.6 for binary NPT, and neither sample met it. The two samples differ in both
items and raters, so the gap between 0.574 and 0.283 mixes model size with sample composition. We did not separate the
two.
\paragraph{The raters agree with each other more than with the code, and their answers are stable.}
Fleiss' $\kappa$ for NPT between the three raters was 0.662 in the trial and 0.512 in M2 (0.528 in pass 2),
higher in each sample than the median agreement with the code. Pass 2 started 25.6--29.2 minutes after pass 1 ended.
Each model's agreement with its own pass-1 answers was 0.912 for Qwen, 0.9999 for Gemma and 0.824 for Ministral, and
the median agreement with code (b) stayed at 0.283. The low agreement with the code is therefore not random noise in the
raters. It is systematic: the raters read the activity text differently from the way the code accounts for it. Two
caveats limit what follows from this. The raters share training data and reading conventions with each other and with the
LLM baselines, so their mutual agreement is evidence of a common reading, not of a correct one. A same-day repeat also
measures only short-term stability.
\paragraph{The disagreement runs in both directions.}
Weighted by selection probability, the M2 raters in pass 2 would call 23.0--49.3\% of activities NPT. The code (b)
marks 18.1\% of the 23,347 activities that remain after the trial items are excluded. Qwen called the most, nearly half.
In pass 2, all three raters agreed in calling 22 of the 150 code-negative items NPT and 34 of the 150 code-positive items
not NPT. Item A062 describes a failed pressure test that the code marks as not NPT. Item A157
carries a sidetrack code while its comment describes running the string in hole. A code can reflect how the supervisor
booked a whole phase of work, whereas a rater judges the single line. Eight sampled waiting activities sit outside the
interruption codes and are negative under (b); four to seven of them were rated NPT, depending on the rater. Without a
human rater we cannot say which reading is right.
\paragraph{Gate G1 chose definition (b) by a narrow margin that is fragile.}
The locked rule selects (b) when its median $\kappa$ in pass 1 exceeds that of (a) by at least 0.02. The
difference was 0.025, so (b) became the primary definition. Exploratory checks show how thin that margin is. Dropping one
well at a time gave differences of 0.015--0.037, and 10 of the 11 deletions kept the margin. Without selection weights the
difference was 0.019, below the margin. A bootstrap over the 11 wells gave a 95\% interval of $-0.0095$ to $0.0741$. The
sample has one item in 185 of its 225 strata, and its Kish effective size is about 126 before any dependence within wells
is considered. We therefore report definition (a) as a sensitivity analysis throughout. Neither T2 nor T3 changes its
conclusion between the definitions (Section~\ref{sec:res:leak}).
\paragraph{No class met the thresholds for a separate score.}
A class is scored on its own only if its median $\kappa$ reaches 0.60 with at least 20 rated items and at least 3 wells
of 5 items each (Section~\ref{sec:design:validation}). The 12\textonequarter-inch section reached a $\kappa$ of 0.701, but
with 18 rated items. The \texttt{drill\_ream} operation class reached 0.655 with 15 items. The equipment cause group had
enough items (62) but a $\kappa$ of only 0.277. The pooled downhole group reached 0.173 with 20 items, and the failed-operation
group 0.009 with 25. No per-class score is reported. Cause and operation scores appear only as pooled diagnostics.
\paragraph{The external cross-checks confirm the parsing, not the labels.}
DrillScribe \citep{paul2026drillscribe} rebuilds an NPT ledger from the same Volve reports. All 1,758 of its episodes
matched ours over the 23,447 activities. Both are built from \texttt{stateDetailActivity}, so the match confirms our
parsing and episode grouping; it is not an independent NPT label. The text rules of the Anatoly5ms repository
\citep{grigorovich2026complication} marked 219 of the 4,894 T3 cells with strong or weak matches. Of the 556 cells
positive under (b), 83 were among them (Jaccard index 0.120); under (a) the overlap was 72 of 478 (0.115). With strong
matches only, the overlaps fell to 36 and 34. The rules look for four kinds of complication while T3 counts every NPT
interval, so a low overlap is expected and says little about either set. The TSPP set \citep{cao2024tspp,cao2023tsppdata}
gives three stuck-pipe events on wells 15/9-F-4, 15/9-F-9~A and 15/9-F-1. Windows of $\pm 3$\,h around them, assuming
UTC, contain 9, 14 and 15 DDR activities and no stuck-equipment code. The F-4 window has three activities coded as
equipment failure and the F-9~A window one. Either the reports booked these events under other codes or the clocks
differ. We did not resolve which.
\paragraph{What this does and does not establish.}
The labels are a reproducible function of the XML, and an independent rebuild from the same fields agrees with them.
Blind LLM raters of the masked text agree with the labels to a limited but stable degree, and they disagree in a
systematic way. None of this shows that the DDR codes mark real NPT. T2, T3 and T5 scores therefore measure how well a
model reproduces the DDR coding, and the paper treats them as diagnostics. The next subsection asks a narrower question
that does not depend on the codes being right.
\subsection{What a planted signal tells us about the pipeline}
\label{sec:res:planted}
H3 was not met, and the real T2 and T3 labels are derived from codes. The real scores therefore cannot show whether the
pipeline would find a signal that is known to be present. Protocol v6, locked before any planted score was computed
(Appendix~\ref{app:record}), addresses this. It draws labels at random, so they are known exactly, and writes a signal of
known strength into the model input. For T2, labels are drawn at the real prevalence of 0.183. A fixed cue phrase is
appended to the comment of a fraction $c$ of the planted NPT rows (the cue fraction) and of a fraction $f$ of the other
rows (the decoy rate). The same TF-IDF + logistic baseline then runs with leave-one-well-out splits. For T3, cell labels
are drawn with log-odds that rise by $s$ per standard deviation of measured depth (the signal strength). They are
forecast from the 10 nearest cells by depth in the other wells, as in Section~\ref{sec:res:diag}. Each setting ran with
five seeds. Real labels are not used, and the study has no gate.
\paragraph{Two of the three null checks passed; the check for T2 at $f = 0.10$ failed, and that setting is not interpreted.}
At the locked null settings ($c = 0$ or $s = 0$), the mean AP must lie within 0.01 of the prevalence, and the seed-0 interval must
contain it. For T2 at $f = 0.02$ the mean AP was 0.182 against 0.183, and for T3 it was 0.118 against 0.114; both passed
(Table~\ref{tab:planted}). For T2 at $f = 0.10$ the mean AP was 0.193, 0.0101 above the prevalence and just outside the
tolerance. Its seed-0 interval, 0.193--0.208, excluded the prevalence. Under the locked rule this setting fails. Its
curve is not interpreted, and the verdict stands.
\paragraph{A post hoc diagnosis, not part of protocol v6, traces the failure to the definition of the null.}
On 23 November we examined the failure. At $c = 0 < f$, no planted row carries the cue while a share $f$ of the other
rows do. The absence of the cue is then itself a signal of a planted row. A score that only flags rows without the cue
gave an AP of 0.200 at $f = 0.10$, against 0.199 expected in theory. At $f = 0.02$ it gave 0.185 (0.186 expected), and
the model reached 0.193 and 0.182. The setting with no information is $c = f$. At $c = f = 0.10$ the model reached 0.182
(seed-0 interval 0.176--0.188), which would pass the check. The cue rates explain why the original check still contained information about the planted class. A planted null must give the cue at the same rate in both classes. Using the $f = 0.10$ curve
would require a new locked protocol with the null at $c = f$.
\begin{table}[t]
\centering
\caption{Planted-signal study (protocol v6, 5 seeds). Upper part: null checks; a check passes if the mean AP lies within
0.01 of the prevalence $\pi$ and the seed-0 95\% well-cluster interval contains $\pi$. The last row is a post hoc
diagnosis (23 November) that is not part of protocol v6. Lower part: the planted strength at which the planted curve
reaches the real score, by linear interpolation of the mean curve; the range is that of the five per-seed values.}
\label{tab:planted}
\footnotesize
\begin{tabular}{llcccl}
\toprule
Task & Setting & mean AP & $\pi$ & seed-0 interval & Result \\
\midrule
T2 & $c = 0$, $f = 0.02$ & 0.182 & 0.183 & 0.179--0.195 & passed \\
T2 & $c = 0$, $f = 0.10$ & 0.193 & 0.183 & 0.193--0.208 & \textbf{failed}; not interpreted \\
T3 & $s = 0$ & 0.118 & 0.114 & 0.107--0.124 & passed \\
T2 & $c = f = 0.10$ (post hoc) & 0.182 & 0.183 & 0.176--0.188 & would pass; outside v6 \\
\midrule
& & real score & & planted strength & \\
\cmidrule(lr){3-3}\cmidrule(lr){5-5}
T2 & masked TF-IDF AP, $f = 0.02$ & 0.463 & & $c \approx 0.82$ (0.785--0.840) & \\
T3 & depth-neighbour AP & 0.150 & & $s \approx 0.66$ (0.554--0.716) & oracle AP $\approx 0.21$ \\
\bottomrule
\end{tabular}
\end{table}
\paragraph{The real T2 score matches a planted cue rate of about 82\%.}
At $f = 0.02$, the AP rose monotonically with the cue fraction, from 0.182 at $c = 0$ through 0.258 at $c = 0.25$ and
0.363 at $c = 0.5$ to 0.521 at $c = 1$ (Fig.~\ref{fig:planted}a). The real masked TF-IDF score of 0.463 is reached at
$c \approx 0.82$, with a range of 0.785--0.840 over the seeds. Put plainly, for TF-IDF to reach its real score through one
explicit phrase, about four in five NPT rows would need to carry it. Even at $c = 1$ the AP is 0.521, not 1. The text
fed to the model joins each comment with those of the neighbouring activities, so the cue spills into other rows. At
$c = 1$, 34.7\% of the rows without a planted label see the cue somewhere in their input. Cue spill could raise the cue rate needed to match the real score. The calibration did not isolate the size of that effect.
\paragraph{The real T3 score corresponds to a very weak depth hazard.}
The depth-neighbour forecast rose from an AP of 0.118 at $s = 0$ to 0.131 at $s = 0.5$, 0.191 at $s = 1$ and 0.379 at
$s = 2$ (Fig.~\ref{fig:planted}b). An oracle that knows the true planted hazard reached 0.176, 0.283 and 0.489 at the same
strengths. The real forecast AP of 0.150 is reached at $s \approx 0.66$ (0.554--0.716 over the seeds). At that strength
even the oracle would reach an AP of only about 0.21. Under that planted depth model, even exact knowledge of the hazard gives limited discrimination. This provides a
scale against which to interpret the T3 scores of Section~\ref{sec:res:diag}.
\paragraph{The calibration quantifies detectability under the planted mechanisms.}
Three limits apply. The cue is one artificial phrase, whereas real NPT text holds many partial and varied cues. The
value of $c$ measures the strength of that one simulated cue. The fraction of real NPT rows with an explicit cue is unknown.
Planted labels are independent across rows and cells. The ranges over seeds omit the event and well dependencies in real NPT. What the study shows is
that the pipeline finds a planted signal of known strength and returns the prevalence when there is none, once the null
is defined correctly. It says nothing about whether the DDR codes mark real NPT.
\begin{figure}[t]
\centering
\includegraphics[width=0.9\linewidth]{planted.pdf}
\caption{Planted-signal study (protocol v6, 5 seeds, range shaded), leave-one-well-out. (a) T2: average precision of
TF-IDF + logistic against the cue fraction $c$ at decoy rate $f = 0.02$. (b) T3: average precision of the depth-neighbour
forecast and of an oracle that knows the true hazard, against the signal strength $s$ (log-odds per standard deviation of
measured depth). Dashed lines: prevalence. Dotted lines: the real scores (masked TF-IDF on T2, depth-neighbour forecast on
T3). The vertical line and band mark the planted strength that matches the real score and its range over seeds.}
\label{fig:planted}
\end{figure}