Address simulated referee reports: same-information point ties, wording, benchmark sigma_a stress

- Exploratory analyses, each declared and hashed before computing and kept
  outside every lock: sharpening transfer, permutation null of the decision
  rules and a truth-free warp check (script 42); BCa and t intervals and the
  comparison with the anchor-only mean (43); point ties with the same
  information as the SMC posterior, SMC-MAP and Anchor-LS (44); a powered
  independence test for the Berkson structure and sign, Wilcoxon and paired-t
  power for the number of blind wells (45).
- Findings: the mode of the SMC posterior already gives most of the gain over
  deterministic ties and averaging adds at most 3%; no sharpening was seen
  and the tie error is not independent of the data; paired tests need 25-50%
  fewer blind wells than the sign test.
- Paper: "hash-locked" replaces "pre-registered"; Berkson sharpening is a
  prediction that failed where testable; new Sec. 3.3 on the benchmark
  package; abstract, introduction, Secs. 5-7, App. C and conclusions revised;
  eight further verified references.
- Benchmark package: two anchor-uncertainty settings (R10__sa3.5, R10__sa14);
  658 tasks, 1316 content hashes (no earlier hash changed), 46,320 reference
  runs.
- Reproduction package: post-review outputs archived, six new verify steps;
  the clean-room check passes 18/18 steps with no differing file.
- Record the Fable (R4) and Opus (R5) referee reports.

No verdict, threshold or locked protocol changed.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-10 14:47:07 +00:00
parent 894fbdfc59
commit 760dbfea4f
46 changed files with 4768 additions and 124 deletions

View File

@@ -64,6 +64,7 @@ RUN = ["setting", "c", "n_train", "rid", "seed", "method"]
PRED = re.compile(r"r(\d+)_c([\d.]+)_n(\d+)_s(\d+)")
WIDE_MS = 1.5 # rules.wide of protocol_bench
N_BOOT = 2000
SIGMA_A_STRESS = (3.5, 14.0) # σ_a stated in the task file of the settings R10__sa3.5 and R10__sa14 (true value 7 ms)
# ---------------------------------------------------------------- tasks
@@ -76,6 +77,9 @@ def settings(p: dict) -> list[dict]:
for r in st["S2"]["regimes"] for axis in st["S2"]["presets"].values() for pr in axis]
out += [dict(setting=f"{r}__s8d{d:g}", regime=r, preset="nominal", delta_ms=float(d), cs=st["S8"]["drift_factors"])
for r in st["S8"]["regimes"] for d in st["S8"]["delta_ms"]]
# σ_a stress (added 10/11/2026, after review): the data are those of R10, c = 1; the task file states the wrong σ_a
out += [dict(setting=f"R10__sa{v:g}", regime="R10", preset="nominal", delta_ms=None, cs=[1.0], sigma_a_stated=v, tag=f"sa{v:g}")
for v in SIGMA_A_STRESS]
return out
@@ -83,7 +87,7 @@ def task_arrays(inp, R, s: dict, c: float) -> tuple[dict, dict]:
reg = inp.regime(s["regime"])
obs, test = inp.observe(R, c, s["regime"], len(R.pool))
task = {"rid": np.int64(R.rid), "c": np.float64(c), "snr_db": np.float64(reg["snr_db"]),
"anchor_density": np.array(reg["anchor_density"]), "sigma_a_ms": np.float64(inp.sigma_a),
"anchor_density": np.array(reg["anchor_density"]), "sigma_a_ms": np.float64(s.get("sigma_a_stated", inp.sigma_a)),
"t_seis_ms": R.t_ext, "t_label_ms": R.t_main, "tau_ms": R.tau_fine,
"train_names": np.array([o["name"] for o in obs]), "train_seis": np.stack([o["seis"] for o in obs]),
"train_phi_log": np.stack([o["phi_log"] for o in obs]), "train_ai_log": np.stack([o["ai_log"] for o in obs]),
@@ -133,7 +137,10 @@ def analyst(p: dict, inp) -> dict:
"patch": "3 × 3 traces around each well: inline offset −1..1 (outer) × crossline offset −1..1 "
"(inner); the centre trace is index 4; labels refer to the centre trace"},
"anchors": {"sigma_a_ms": inp.sigma_a,
"model": "unit-boundary picks: anchor_tau_ms exact on the log, anchor_t_ms = true time + N(0, σ_a²)"},
"model": "unit-boundary picks: anchor_tau_ms exact on the log, anchor_t_ms = true time + N(0, σ_a²)",
"note": "the σ_a to use is the `sigma_a_ms` of the task file; it equals sigma_a_ms here except in the settings "
"R10__sa3.5 and R10__sa14, where it is deliberately wrong (the picks were generated with the value "
"given here)"},
"rock_physics_nominal": {"phi_dt": [synth_d2.PHI_DT_A, synth_d2.PHI_DT_B], "rhob": [synth_d2.RHO_0, synth_d2.RHO_1],
"formula": "DT = (φ − A)/B µs/m; RHOB = ρ0 − ρ1·φ kg/m³; AI = RHOB·1e6/DT; "
"train_ai_log = AI(train_phi_log)"},
@@ -170,7 +177,7 @@ def generate(a) -> None:
(out / d / rel).parent.mkdir(parents=True, exist_ok=True)
np.savez_compressed(out / d / rel, **arr)
files[f"{d}/{rel}"] = content_sha(arr)
rows.append({"split": sp, "setting": s["setting"], "regime": s["regime"], "preset": s["preset"],
rows.append({"split": sp, "setting": s["setting"], "regime": s["regime"], "preset": s.get("tag", s["preset"]),
"delta_ms": s["delta_ms"], "c": float(c), "rid": rid, "snr_db": float(task["snr_db"]),
"anchor_density": str(task["anchor_density"]), "n_pool": len(task["train_names"]),
"n_test": len(task["test_names"]), "n_anchors": len(task["anchor_tau_ms"]),
@@ -238,6 +245,9 @@ def setting_of(df: pd.DataFrame) -> pd.Series:
def reference_runs(p: dict) -> pd.DataFrame:
parts = [S.p2r_runs(p).assign(study="P2r")]
for v in SIGMA_A_STRESS: # P2r σ_a arm: methods registered with σ_a = v on data generated with 7 ms
f = REPO_ROOT / p["reference"]["p2r"]["root"] / "train" / f"R10_sa{v:g}" / "runs.csv"
parts.append(pd.read_csv(f).assign(regime="R10", preset=f"sa{v:g}", study="P2r-sa"))
for st in ("S1", "S2", "S3", "S4", "S8"):
parts.append(S.load_study(p, bench_root(), st)[1].assign(study=st))
df = pd.concat(parts, ignore_index=True)
@@ -251,6 +261,7 @@ def reference_runs(p: dict) -> pd.DataFrame:
def sigma_post(p: dict) -> pd.DataFrame:
a = pd.read_csv(REPO_ROOT / p["reference"]["p2r"]["root"] / "summary" / "sigma_post.csv")
a["setting"] = a["setting"].str.replace("_sa", "__sa", regex=False)
d = bench_root() / "posterior"
b = S.sigma_post_table({x.name: x for x in sorted(d.iterdir()) if x.is_dir()})
cols = ["setting", "c", "n_train", "sigma_post_ms", "warp_rmse_ms", "warp_cov90"]