# Protocol v6: planted-signal studies with known ground truth (T2 text cues, T3 depth hazard). Extends locked v5. protocol: volve-dia version: 6 status: locked drafted: 2026-11-20 locked_before: any planted-signal score was computed; only the real masked T2 and T3 results (v1-v5) were known extends: file: configs/protocol_v5.yaml sha256: c99bb91bdca9a4ab00ef065847ec095121944ddccbffde32c34dc6f8fc125047 deviation: date: 2026-11-20 what: >- H3 (label agreement with raters) was not met and the real T2/T3 labels are derived from the DDR activity codes, so no result so far says whether the pipeline can recover a signal whose truth is known. v6 adds planted-signal studies: the label is drawn by a fixed random rule and is therefore known exactly; a signal of controlled strength is then written into the model input. The real labels and the real input text are not used as truth. consequence: >- The studies measure the null calibration and the power of the T2 and T3 pipelines and give an effective signal strength for the real scores. They do not validate the real labels and do not replace H3. The planted cues are synthetic phrases and the T3 hazard is a smooth function of depth, so they bound detectability, not realism. unchanged: - protocols v1 to v5 in full, including masking, splits, folds, regularisation grid and the real T2/T3 results common: seeds: 5 planting seeds, 20261117 + 0 ... 4 (numpy default_rng); one planting per seed and setting split: leave-one-well-out as in v1 (primary grouping by well) ci: whole-well cluster bootstrap, 2,000 resamples, seed 20261117, percentile 95% interval reporting: mean and range over the 5 seeds, plus the pooled out-of-fold AP interval of seed 0 t2_cues: universe: the 23,447 masked activities of outputs/labels/t2_inputs.parquet (all 11 wells) planted_label: >- y_i ~ Bernoulli(pi) independently per activity, pi = 0.183 (the real NPT (b) prevalence, 4,286 / 23,447); the real code labels are never read cue: >- a planted activity receives, with probability c, one phrase chosen uniformly from configs/synth_cues.yaml appended after its comment (one space); an unplanted activity receives a phrase with probability f (decoy rate). The phrase class is independent of the real activity settings: c: [0.0, 0.1, 0.25, 0.5, 0.75, 1.0] f_primary: 0.02 f_sensitivity: 0.10 model: >- the T2 TF-IDF + logistic baseline of M3-M4 unchanged (configs/m34_baselines.yaml: word 1-2 grams, min_df 2, C chosen by the same inner GroupKFold from [0.25, 1, 4]), leave-one-well-out, masked view plus the appended cue metrics: pooled out-of-fold average precision (AP) with the interval above; AP lift over pi null_check: >- at c = 0 (any f) the mean AP over seeds lies within pi +/- 0.01 and the seed-0 95% interval contains pi; otherwise the pipeline is reported as miscalibrated under the null and the cue results are not interpreted effective_cue_rate: >- the c at which the mean AP over seeds (f = 0.02) equals the real masked T2(b) TF-IDF AP by well (0.461 in the G2 v2 report), by linear interpolation between the grid points, reported with the range over seeds; if the real AP is above the AP at c = 1 or below the AP at c = 0, the interpolation is reported as out of range reading: >- descriptive; no gate. The effective cue rate says what fraction of planted-NPT-like rows would have to carry an explicit cue in the masked text to produce the real score. It is not a measure of label validity t3_hazard: universe: the 4,894 cells of outputs/m34/features_t3.parquet (10 wells) covariate: z = (md_top - mean) / sd of md_top over the 4,894 cells planted_label: >- y_i ~ Bernoulli(p_i), p_i = sigmoid(a + s * z_i) with a solved by bisection so that mean(p) = pi = 0.114 (the real NPT (b) cell prevalence 556 / 4,894); the real labels are never read settings: s: [0.0, 0.25, 0.5, 1.0, 2.0] model: >- the v5 neighbour forecast, depth representation (md_top; k = 10 nearest cells of the other wells, mean label), and the oracle score p_i as the ceiling metrics: pooled out-of-fold AP with the interval above; the oracle AP; AP lift over pi null_check: at s = 0 the mean AP over seeds lies within pi +/- 0.01 and the seed-0 95% interval contains pi effective_strength: >- the s at which the mean AP of the depth forecast equals the real v5 depth forecast AP (0.150, NPT (b)), by linear interpolation, with the range over seeds; out of range reported as such. Labels are independent across cells, so the intervals of the real data (neighbouring cells of one episode) are not reproduced code: scripts/21_m5_synthetic.py, volve_dia/m5_synthetic.py outputs: outputs/m5/synthetic/ inputs_hashed: configs/synth_cues.yaml: dfe395298a1f30b1fe6906a65bd03a06f83796206a19993beb530fa106b82107