diff --git a/AGENTS.md b/AGENTS.md index a75f710..84062f5 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -145,6 +145,7 @@ Read first: `docs/plan.md` (plan, gates, decisions; §6 roadmap, §10 forbidden - **Simulated GP referees (16/11/2026; `docs/plan.md` §12 item 58).** Two Fable referees (GP-A well ties/QI; GP-B statistics/UQ/benchmarks) reviewed `paper_gp/` independently, then cross-reviewed. They could read only the manuscript, SI, `paper/sections/`, `refs.bib`, figures, the benchmark/repro READMEs and the author guide; not `docs/` (earlier reports), `AGENTS.md`, `outputs/`, `scripts/` or git (`AGENTS.md` may still have been auto-loaded into their context). Red TODOs were ignored. Reusable prompt: `docs/research/gp-referee/PROMPT.md`; reports `GP-{A,B}_round{1,2}.md`; synthesis `summary.md`. Both: **major revision** in both rounds, scores 4/3/3/3/3/2/4, no proof errors, novelty stands. Shared must-fix list: self-contained article (headline evidence is in the SI); headline against the best point tie of any kind (2–22%); the independent 7 ms anchor-noise model is an assumption contradicted by the F3/Teapot evidence, and the true σ_a is never varied; one practitioner-grade or anchor-smoothing tie; link the theory to the compared ties (one-shift-per-well blur arm; l. 190–191 "<7%" vs about 51% in Table S7); blind-well requirements with an estimand and attainability of 1 ms; conservative intervals, an equal-budget Table 2, locked/exploratory rows marked; scorer, READMEs and Data Availability aligned. Verified small errors: `white2003goodpractice` reads "Rachel E." (Crossref R.E.; Roy E. White); the AI statement's "every citation against its source" overstates; the Fig. 5 colour bar and legend disagree. Nothing in the paper changed yet; the user decides. Not committed. - **Third GP referee and revision plan (16/11/2026; `docs/plan.md` §12 item 59).** The user pasted a report from an external model ("6.1 sol"; GP-C, main PDF and guide only, no SI, no cross-review): **major revision, 7/10**. Its two priorities: align theorem, loss and metric (Proposition A4(a) is about the posterior mean of labels E[y|D], while "SMC mean" uses labels at the posterior-mean warp — verified; fourth order only at λ → 0; Eq. A11 pools MSE while Fig. 4b averages per-well RMSE) and an optimized point tie of the same SMC target; also cite Di & Abubakar 2023 (in `refs.bib`, not cited). Report `docs/research/gp-referee/GP-C_round1.md`. Consolidated review of GP-A/B/C and a six-phase plan in `docs/research/gp-referee/review-and-revision-plan.md`: Q1–Q12 quick fixes, W1–W10 rewording/restructuring, A1–A9 analyses on existing outputs, E1–E5 new experiments (proposed: E1 true σ_a 1–7 ms plus per-well bulk anchor error, E2 practitioner-grade tie tuned on dev, E4 same-target optimizer, E5 posterior-mean-of-labels with NLL; E3 one-shift blur arm if A3 is not enough), R1–R4 release, then guards and a new referee round. Verified: 6.9 ms is the scaled MAD (raw MAD 4.65 ms, SD 16.5 ms over 18 pairs), so the paper must say "scaled MAD", and GP-A's "≈ 10 ms Gaussian" is wrong; most of GP-C's label/bank comparison already exists in `outputs/lambda_limit/`; warp RMSE in ms, power grids and per-seed predictions already exist. `PROMPT.md` had disappeared from disk and was restored from the transcript. Nothing in the paper changed; the user chooses experiments and approves phase 0. Not committed. - **Thực hiện kế hoạch sửa GP (17/11/2026; `docs/plan.md` §12 item 60).** E1, E2, E4, E5, E6 và A1–A9 xong (E3 không cần; khai báo và băm trước; kết quả `docs/research/gp-review-results.md`): headline 8–22% giữ trước tie thực hành, mọi budget và point tie tối ưu cùng hàm mục tiêu, nhưng gain mất khi anchor chính xác ≤ 2 ms và đảo chiều khi có lỗi bulk theo giếng (E1). Bài `paper/` và `paper_gp/` đã sửa (abstract 285 từ, ρ* là giới hạn quần thể, bảng mới); đã làm thêm: README scorer v1.1, bib nộp không annote, response letter; chưa làm: W1 trọn vẹn, W8, archive/verify cho `outputs/gp_review/`, vòng referee mới, cover letter. Đã commit 17/11/2026. +- **GP revision handoff (18/11/2026; `docs/plan.md` §12 item 61).** W1 and W8 are complete. GP contains the nominal and replication intervals, anchor uncertainty, misspecification and point-tie tables, methods definitions and the F3 timing and sonic-label audit. The original verdict-table wording is intact. Script 39 archives 3,384 GP files, six new clean-room stages regenerate 43 files byte for byte from 15,464 verified archive members (`repro/README.md` §8). `paper_gp/check_numbers.py` uses `eff975c`, confirms the source values in six tables and guards 1,479 tokens, and the SI cross-reference check passes 24/24. GP-D independently recommends major revision (`docs/research/gp-referee/GP-D_round1.md`), with the window-level shift-invariance proof the leading open issue. Final PDFs: GP 46 pages, SI 84, full paper 88. Cover letter and author actions remain open. ## Next @@ -163,7 +164,7 @@ No date deadline since 11/11/2026 (`docs/plan.md` §12 item 46); §6.1 is now on package: done 02/11/2026** (plan §12 item 32) except the deposit of `outputs/repro/*.tar.gz` (user's account and licence decisions). 6. **Next: review and submission (no date deadline):** the replication, the −5 dB σ_a test and the σ_a = 3.5 ms mechanism are done (plan §12 item 46); the remaining limits are listed there; internal review (hallucination audit done 04/11, plan §12 item 36; simulated three-referee review done 04/11, plan §12 item 37, with a five-item decision letter in `docs/research/referee-simulation.md` awaiting the user's choice on the new-experiment items), figures, final proofread of the proof appendix (reviewed 02/11), final novelty scan (Sec. 2 todoblock; preliminary scan done 02/11, plan §12 item 31), quartile check, preprint, then submit to - *Geophysical Prospecting* (submission version `paper_gp/` since 16/11/2026; plan §12 item 55) (free venues with a real-data-failure precedent only; fixed on 13/11/2026, plan §12 item 51; fallback *Mathematical Geosciences*; *Computers & Geosciences* only with a public repository): the GP format, Data Availability Statement and Supporting Information are done in `paper_gp/` (16/11/2026; plan §12 item 55; rewritten after the live guide the same day, plan §12 item 57); simulated GP referees (16/11, plan §12 items 58–59; two Fable and one external model): all major revision; consolidated review and six-phase revision plan in `docs/research/gp-referee/review-and-revision-plan.md` awaiting the user's choice of experiments (E1–E5) and approval of phase 0; still to write: the cover letter (theory and benchmark of well-tie error in seismic porosity prediction, two failed field cases, requirements for blind-well tests). The authors must fill the author list and declarations. + *Geophysical Prospecting* (submission version `paper_gp/` since 16/11/2026; plan §12 item 55) (free venues with a real-data-failure precedent only; fixed on 13/11/2026, plan §12 item 51; fallback *Mathematical Geosciences*; *Computers & Geosciences* only with a public repository): the GP format, Data Availability Statement and Supporting Information are done in `paper_gp/` (16/11/2026; plan §12 item 55; rewritten after the live guide the same day, plan §12 item 57); simulated GP referees (16/11, plan §12 items 58–59; two Fable and one external model): all major revision; consolidated review and six-phase revision plan in `docs/research/gp-referee/review-and-revision-plan.md` implemented in items 60–61, with the GP-D report and its open issues recorded in item 61; still to write: the cover letter (theory and benchmark of well-tie error in seismic porosity prediction, two failed field cases, requirements for blind-well tests). The authors must fill the author list and declarations. 7. **Loss-function ablation: dropped by the user on 13/11/2026** (plan §12 item 53); the paper states the rationale instead. Do not run it unless the user asks again. ## Conventions diff --git a/README.md b/README.md index cce30cc..ac83ea4 100644 --- a/README.md +++ b/README.md @@ -145,7 +145,7 @@ Biến môi trường máy đặt sẵn `OMP_NUM_THREADS=40` (cả MKL, OpenBLAS | `scripts/36_bench_verdicts.py` | Verdict cuối của protocol_bench (02/11/2026): kiểm lock (`freeze(check=True)`), đọc `verdict.json` của summarize và áp đúng lời phát biểu ở ba chỗ code đã khoá khác (S1-H1 lọc N ∈ {4, 16}; S2-H1 theo từng trục; S3-H1 đối thủ {B3b, B3c, B3c-R, B4a–d}, không có Ctl-GP) bằng chính hàm của `ml_porosity/benchmark/summary.py` → `outputs/bench/summary/{verdict_final.json,verdict_final.md,s3_h2a_stated.csv}`. Ngoài tập hash của lock; không sửa output của summarize (`docs/plan.md` §12 ý 28) | | `scripts/37_bench_package.py [--out DIR]` (generate, check, tables, score, selftest) | S7 đóng gói benchmark (02/11/2026; ngoài lock, generate và tables kiểm lock trước): `generate` ghi 658 task (test 8–15, dev 900–905; 5 regime danh nghĩa × 5 c, 14 setting S2, 6 setting S8, 2 setting σ_a sai), truth công khai, input và `inputs/analyst.json` vào `outputs/bench/package/` (khoảng 845 MB), rồi so sha256 nội dung với `benchmark/MANIFEST.json` (lần đầu thì ghi); `check` kiểm một bản tải về; `tables` gộp 46.320 run tham chiếu → `reference/runs.csv.gz`, `benchmark/reference/{cells.csv,main_table.md}`; `score --pred DIR --name TÊN` chấm dự đoán `r_c_n_s.npz` (metric của scripts/11, luật ô H2a và luật better của `summary.py`) → `DIR/score/`; `selftest` chép dự đoán tham chiếu đã lưu thành bài nộp và kiểm metric, truth và luật khớp. Hướng dẫn cho người dùng: `benchmark/README.md` | | `scripts/38_bench_figures.py [--only bench_s1,bench_s8] [--flipband]` | Hình Thí nghiệm 3 của bài (02/11/2026; ngoài lock, kiểm lock trước, không ghi vào `outputs/`): `bench_s1` (phase diagram S1 từ `outputs/bench/summary/s1_cells.csv`) và `bench_s8` (hàm truyền hai mode từ `s8_transfer_curves.json`; băng dùng được tính lại từ file dự đoán S8 như `summary.py`) → `paper/figures/{bench_s1,bench_s8}.pdf`, cùng style với scripts/22. `--flipband` chỉ in ra stdout bảng post hoc của Sec. 6.5: trung bình cos(πfΔ), cos²(πfΔ) (Hệ quả 3) và transfer đo được của PM2/BK2/HM2 trong băng 1/(2Δ) < f < 3/(2Δ) (D-14) | -| `scripts/39_repro_package.py [--out DIR]` (build, check, verify, code) | P5 gói tái lập (02/11/2026; ngoài mọi lock, không train, không ghi vào `outputs/` gốc): `build` chọn file của `outputs/` theo `RULES` và ghi 5 archive tar.gz tất định theo giấy phép dữ liệu (f3_results, f3_predictions, f3_volume: CC BY-SA 3.0; volve: CC BY-NC-SA 4.0; teapot: CC0, cần kiểm) vào `outputs/repro/`, cùng `repro/MANIFEST.json` (11.112 file, sha256 từng file, script sinh ra); `check --root DIR` kiểm một cây đã giải nén; `verify [--only …] [--keep]` dựng phòng sạch (code + archive, không SEG-Y/Volve/Teapot thô), chạy lại 12 bước tổng hợp, post hoc, bảng và hình, theo dõi file mở bằng audit hook rồi so với bản gốc → `repro/verify_report.md` (02/11: 12/12 bước khớp, 63 file trùng byte, 3 trùng giá trị, 0 khác); `code --rev REV` ghi `git archive` của một commit. Hướng dẫn cho người đọc (tiếng Anh): `repro/README.md` | +| `scripts/39_repro_package.py [--out DIR]` (build, check, verify, code) | P5 gói tái lập (02/11/2026; ngoài mọi lock, không train, không ghi vào `outputs/` gốc): `build` chọn file của `outputs/` theo `RULES` và ghi 5 archive tar.gz tất định theo giấy phép dữ liệu (f3_results, f3_predictions, f3_volume: CC BY-SA 3.0; volve: CC BY-NC-SA 4.0; teapot: CC0, cần kiểm) vào `outputs/repro/`, cùng `repro/MANIFEST.json` (15.464 tệp tính đến 18/11, sha256 từng tệp và script sinh ra); `check --root DIR` kiểm một cây đã giải nén; `verify [--only …] [--keep]` dựng phòng sạch (code + archive, không SEG-Y/Volve/Teapot thô), chạy các bước tổng hợp, post hoc, bảng và hình, theo dõi file mở bằng audit hook rồi so với bản gốc. Sáu bước GP mới được kiểm riêng (xem `repro/README.md` §8) → `repro/verify_report.md` (02/11: 12/12 bước khớp, 63 file trùng byte, 3 trùng giá trị, 0 khác); `code --rev REV` ghi `git archive` của một commit. Hướng dẫn cho người đọc (tiếng Anh): `repro/README.md` | | `scripts/40_band_spectra.py` | Mô tả post hoc (09/11/2026; ngoài mọi lock và ngoài các archive tái lập, không train): phân bố công suất trên 6 Hz trong cửa sổ 600–1100 ms của `PHIE_DT` F3 (4 giếng), nhãn synthetic và dự đoán Oracle ($N$ = 16, $c$ = 1; R10, R0, Rm5), cùng cách ước lượng periodogram với `scripts/31_p2r_posthoc.py` → `outputs/band_spectra/{table.csv,groups.csv,meta.json}`; dùng cho bảng `tab:bandspectra` (Phụ lục C) và mục "Band of the benchmark" của bài. | | `scripts/41_lambda_limit.py --stage all` | Exploratory (09–10/11/2026; ngoài mọi lock và archive tái lập): huấn luyện lại bank SMC ở λ = 10⁻³ và MSE trên nhãn trung bình của bank ở 8 ô rộng + 3 ô hẹp của P2r, kiểm hash khai báo `docs/research/lambda-limit.md` trước khi chạy; resume theo ô. Kết quả `docs/research/lambda-limit-results.md`. | | `scripts/49_bank_size.py --stage all` | Exploratory (16/11/2026; ngoài mọi lock và archive tái lập): bank SMC lồng nhau S = 16 ⊂ 64 ⊂ 256 ⊂ 1024 từ cùng 1024 hạt, cùng λ = 1/τ_c, ở 8 ô rộng + 3 ô hẹp của P2r (N = 16, 250 vòng), kèm S_eff và sai số Monte Carlo của warp trung bình; kiểm hash khai báo `docs/research/bank-size.md` trước khi chạy; resume theo ô (khoảng 1 giờ trên một H200). Kết quả `docs/research/bank-size-results.md`. | diff --git a/docs/plan.md b/docs/plan.md index 0a3101d..b3afed0 100644 --- a/docs/plan.md +++ b/docs/plan.md @@ -27,7 +27,7 @@ Quy ước nhãn: | **Không phải đóng góp** | Backbone mới, thêm attention, thêm loss, Cycle-GAN, hay chỉ sửa leakage. | | **Venue chính** | **Chốt cuối 13/11/2026 (chỉ nơi miễn phí có tiền lệ phương pháp thất bại trên dữ liệu thật):** *Geophysical Prospecting* (EAGE/Wiley), loại Original article; dự phòng *Mathematical Geosciences*; *Computers & Geosciences* chỉ khi đã có repo code công khai (mục 12 ý 51, `docs/research/venue-survey.md` §7). Ngày 12/11 đã chốt *Geoenergy Science and Engineering* (mục 12 ý 50), bỏ ngày 13/11 vì tạp chí này không có tiền lệ như vậy. Cũng ngày 12/11 đã chọn rồi bỏ *Earth Science Informatics* (mục 12 ý 49). Trước đó (29/10, mục 12 ý 22): *Computers & Geosciences*; dự phòng *Geophysical Prospecting*. Trước pivot: *Geophysical Prospecting* hoặc *Journal of Applied Geophysics*; dự phòng *Frontiers in Earth Science*, *Earth Science Informatics*, *Acta Geophysica*. Quartile phải kiểm tra lại trên SCImago khi nộp [XM]. | | **Thời gian** | **Từ 11/11/2026 người dùng bỏ mọi hạn ngày** ("ngày không quan trọng… làm tất cả những việc bạn cho là cần thiết"; mục 12 ý 46); lịch ở mục 6.1 chỉ còn là thứ tự việc. Trước đó: **chốt 29/10/2026: dời hạn sang thứ 7, 14/11/2026** (mức B của Pivot 1, mục 12 ý 22; lịch theo ngày ở mục 6.1). Ngưỡng và luật của mọi gate không đổi. Lịch nén trước đó (chốt 27/10/2026, hạn 31/10) đã chạy xong 4 cổng: G-A và G-B ngày 26/10, G-C cuối 28/10, G-D cuối 29/10; G-C và G-D không đạt tiêu chí claim (mục 12, ý 16 và 20). Lịch gốc 24 tuần (→ 02/05/2027) đã bỏ. | -| **Việc tuần này** | Mục 6.1 (lịch mức B theo ngày) và mục 12 ý 22. Ngày 02/11/2026 đã viết xong các mục kết quả của benchmark (Thí nghiệm 3, Sec. 6.5) và mục cơ chế T2 (Sec. 6.4), cùng trích dẫn dataset F3 và Volve (mục 12 ý 30). S7 đóng gói xong 02/11, trừ bước deposit Zenodo do người dùng làm (mục 12 ý 29). Cũng ngày 02/11, một lượt quét novelty sơ bộ cho todoblock Sec. 2 không thấy bài nào đưa bất định của tie vào huấn luyện; câu "to our knowledge" giữ nguyên (mục 12 ý 31). Cũng ngày 02/11 đã rà phụ lục chứng minh (Sec. 4, App. A) và dựng gói tái lập P5 (`repro/`, `scripts/39_repro_package.py`; mục 12 ý 32). Cũng ngày 02/11 đã đọc toàn văn AWSM, BootNet, P05 (Li, Grana & Liu 2024), Guillon et al. 2020 và hai bài Rizzuti: cách xếp trong Bảng `tab:positioning` không đổi, chú thích ᵃ của các bài này đã bỏ (mục 12 ý 33). Ngày 04/11 đã rà soát chống hallucination toàn bài: 87 phát hiện, trong đó 4 lỗi S1, đều đã sửa; không verdict nào đổi (mục 12 ý 36, `docs/research/paper-audit.md`). Cũng ngày 04/11 đã mô phỏng ba referee của venue (vòng độc lập và vòng phản biện chéo): 3/3 Major revision; yêu cầu số một là bổ sung đối thủ MAP/mode của cùng mô hình SMC để tách chất lượng tie khỏi vai trò của bất định; bài còn nói "hidden truth" trong khi gói giao truth và σ_a thật (mục 12 ý 37, `docs/research/referee-simulation.md`). Ngày 12/11 đã có bản rút gọn cho C&G trong `paper_cg/` (thân bài khoảng 5.050 từ, Supplementary material `\input` nguyên văn `paper/`; mục 12 ý 47); thư mục này đã bỏ khỏi working tree ngày 16/11, bản nộp GP nằm ở `paper_gp/`, mục 12 ý 55–56). Cũng ngày 12/11 đã khảo sát 16 nơi nộp và chốt *Geoenergy Science and Engineering*, chỉ xét nơi miễn phí (mục 12 ý 49–50); ngày 13/11 chỉ giữ nơi có tiền lệ phương pháp thất bại trên dữ liệu thật và đổi sang *Geophysical Prospecting*, dự phòng *Mathematical Geosciences* (mục 12 ý 51). Ngày 16/11 `paper_gp/main.tex` đã viết lại theo guide live của GP (thứ tự phần, Appendix A với các mệnh đề và chứng minh chính, "[dataset]", lời khai báo AI chi tiết; mục 12 ý 57). Cũng ngày 16/11, ba referee mô phỏng (hai Fable, một mô hình ngoài) đều cho Major revision; kế hoạch sửa sáu giai đoạn ở `docs/research/gp-referee/review-and-revision-plan.md` chờ người dùng chọn thí nghiệm (mục 12 ý 58–59). Tiếp theo (không còn hạn ngày): sửa theo kế hoạch đó, cover letter, review nội bộ, quét lại novelty, tác giả điền tên, khai báo và DOI, rồi nộp GP. | +| **Việc tuần này** | Mục 6.1 (lịch mức B theo ngày) và mục 12 ý 22. Ngày 02/11/2026 đã viết xong các mục kết quả của benchmark (Thí nghiệm 3, Sec. 6.5) và mục cơ chế T2 (Sec. 6.4), cùng trích dẫn dataset F3 và Volve (mục 12 ý 30). S7 đóng gói xong 02/11, trừ bước deposit Zenodo do người dùng làm (mục 12 ý 29). Cũng ngày 02/11, một lượt quét novelty sơ bộ cho todoblock Sec. 2 không thấy bài nào đưa bất định của tie vào huấn luyện; câu "to our knowledge" giữ nguyên (mục 12 ý 31). Cũng ngày 02/11 đã rà phụ lục chứng minh (Sec. 4, App. A) và dựng gói tái lập P5 (`repro/`, `scripts/39_repro_package.py`; mục 12 ý 32). Cũng ngày 02/11 đã đọc toàn văn AWSM, BootNet, P05 (Li, Grana & Liu 2024), Guillon et al. 2020 và hai bài Rizzuti: cách xếp trong Bảng `tab:positioning` không đổi, chú thích ᵃ của các bài này đã bỏ (mục 12 ý 33). Ngày 04/11 đã rà soát chống hallucination toàn bài: 87 phát hiện, trong đó 4 lỗi S1, đều đã sửa; không verdict nào đổi (mục 12 ý 36, `docs/research/paper-audit.md`). Cũng ngày 04/11 đã mô phỏng ba referee của venue (vòng độc lập và vòng phản biện chéo): 3/3 Major revision; yêu cầu số một là bổ sung đối thủ MAP/mode của cùng mô hình SMC để tách chất lượng tie khỏi vai trò của bất định; bài còn nói "hidden truth" trong khi gói giao truth và σ_a thật (mục 12 ý 37, `docs/research/referee-simulation.md`). Ngày 12/11 đã có bản rút gọn cho C&G trong `paper_cg/` (thân bài khoảng 5.050 từ, Supplementary material `\input` nguyên văn `paper/`; mục 12 ý 47); thư mục này đã bỏ khỏi working tree ngày 16/11, bản nộp GP nằm ở `paper_gp/`, mục 12 ý 55–56). Cũng ngày 12/11 đã khảo sát 16 nơi nộp và chốt *Geoenergy Science and Engineering*, chỉ xét nơi miễn phí (mục 12 ý 49–50); ngày 13/11 chỉ giữ nơi có tiền lệ phương pháp thất bại trên dữ liệu thật và đổi sang *Geophysical Prospecting*, dự phòng *Mathematical Geosciences* (mục 12 ý 51). Ngày 16/11 `paper_gp/main.tex` đã viết lại theo guide live của GP (thứ tự phần, Appendix A với các mệnh đề và chứng minh chính, "[dataset]", lời khai báo AI chi tiết; mục 12 ý 57). Cũng ngày 16/11, ba referee mô phỏng (hai Fable, một mô hình ngoài) đều cho Major revision; kế hoạch sửa sáu giai đoạn ở `docs/research/gp-referee/review-and-revision-plan.md` chờ người dùng chọn thí nghiệm (mục 12 ý 58–59). Ý 60–61 ghi thí nghiệm, lượt sửa W1/W8, archive và guard đã hoàn tất. GP-D đề nghị Major revision; điểm chính còn mở là chứng minh bất biến dịch của loss theo cửa sổ. Việc còn lại gồm xử lý báo cáo mới, cover letter, quét novelty và các khai báo của tác giả. | --- @@ -417,7 +417,7 @@ Chốt ngày 27/10/2026: toàn bộ bài, gồm cả review nội bộ và bản | **P4 Field 2** | T4 28/10 dựng pipeline (song song P3); T5 29/10 chạy (xong 02:21 UTC trên server Linux) | ROI Volve, tie, pipeline; chạy tập con B1, B3 tốt nhất, B4, B5, M2. Đã áp dụng mục cắt phạm vi 5: B3b, B3c, B3c-R (ứng viên B3), B3d-Sa, M2-Sa | Bảng field 2 (`outputs/p4/summary/`; paper mục 6.5) | **G-D (cuối 29/10):** báo cáo kết quả bất kể chiều nào; giới hạn phạm vi claim theo kết quả. Kết quả: M2-Sa tốt hơn B3 chọn ở 2/6 (lowo) và 3/6 (slot) giếng; coverage90 0,48/0,47; không phương pháp nào có kỹ năng ở giếng blind. Không claim cải thiện, hiệu chuẩn hay transfer (mục 12, ý 20–21) | | **P5 Viết** | Khung bài và mục audit, lý thuyết, D2 viết dần từ 27/10; viết chính T5 29/10 – T6 30/10; từ 29/10 theo lịch mức B (mục 6.1) | Bản nháp, hình, phụ lục chứng minh, gói tái lập (code + config + dữ liệu dẫn xuất theo CC BY-SA 3.0) | Draft v1 (cuối 29/10), v2 (cuối 30/10). Ngày 29/10: đã viết các mục Volve; trục bài đặt vào lý thuyết và benchmark synthetic, hai field là kiểm tra giới hạn phạm vi (mục 12, ý 21). **Mức A viết xong sớm ngày 29/10** (mục 6.1, mục 12 ý 24): bản nháp theo khung Pivot 1, 55 trang, biên dịch sạch; còn TODO đỏ cho S1–S8, T2, khai báo của tác giả. Rủi ro độ dài: thân bài khoảng 14.750 từ so với giới hạn khoảng 5.500 từ của C&G (đã kiểm trên guide chính thức 12/11/2026; bản rút gọn ở paper_cg/, mục 12 ý 47); người dùng bỏ lượt rút gọn (mục 12 ý 25). **Ngày 02/11/2026:** đã viết S1–S8 (Sec. 6.5) và T2 (Sec. 6.4), thêm trích dẫn dataset, quét novelty sơ bộ (mục 12 ý 30–31); bài 66 trang, thân bài khoảng 18.100 từ. **Cũng ngày 02/11:** rà xong phụ lục chứng minh và dựng gói tái lập (5 archive dữ liệu dẫn xuất theo giấy phép, manifest sha256, kiểm phòng sạch; mục 12 ý 32); bài 67 trang, 68 trang sau lượt đọc toàn văn Sec. 2 (mục 12 ý 33). **04/11:** rà soát chống hallucination toàn bài, 87 phát hiện (4 lỗi S1) đã sửa, không verdict nào đổi; bài 69 trang (mục 12 ý 36). **09/11:** viết lại toàn bài theo văn phong abstract và chuyển phát biểu hình thức sang Phụ lục A, 69 trang, thân bài khoảng 15.400 từ (mục 12 ý 38–39). Còn lại: các TODO tác giả phải điền (tác giả, khai báo, giấy phép code, DOI), deposit do người dùng làm | Review nội bộ | | **P6 Benchmark mức B** | CN 1/11 – T3 10/11 (mục 6.1); bắt đầu sớm từ T5 29/10 | T2 cơ chế (exploratory, khai báo trước ở `docs/research/t2-mechanism.md`); sửa generator cho S2 (dev 902–905); khóa `configs/protocol_bench.yaml` trước lần chạy đầu; S1 lấp lưới, S3 B4 dưới SMC, S4 backbone thứ hai, S2 ba trục misspec, S8 cycle-skip có kiểm soát; S7 đóng gói; viết lại các mục kết quả | `configs/protocol_bench.*`, `outputs/t2/`, `outputs/bench/`, gói benchmark | — (không có cổng mới; luật đạt của từng S ghi trong protocol; S2 thiếu thì bài gọi là "controlled synthetic study"). Chạy chính xong 30/10 02:16 UTC; tổng hợp 02/11: 9/11 verdict đạt, S2-H1 không đạt ở rock physics và wavelet, đạt ở drift; S2 đủ nên bài được gọi là benchmark (mục 12 ý 28). S7 đóng gói xong 02/11 (`scripts/37_bench_package.py`, `benchmark/`; 630 task, selftest đạt); còn deposit Zenodo (mục 12 ý 29). Các mục kết quả viết xong 02/11 (mục 12 ý 30) | -| **P7 Review + nộp** | T7 31/10 → dời sang T4 11/11 – T7 14/11 (mục 6.1) | GVHD và một người làm địa vật lý đọc; kiểm tra novelty lần cuối (quét SEG/EAGE, tra quartile); preprint (EarthArXiv/ESSOAr) nếu venue cho phép; nộp. Ngày 16/11: bản nộp GP `paper_gp/` đã theo guide live (mục 12 ý 57); ba referee mô phỏng cho Major revision, kế hoạch sửa ở `docs/research/gp-referee/review-and-revision-plan.md` (mục 12 ý 58–59) | Bản nộp | — | +| **P7 Review + nộp** | T7 31/10 → dời sang T4 11/11 – T7 14/11 (mục 6.1) | GVHD và một người làm địa vật lý đọc; kiểm tra novelty lần cuối (quét SEG/EAGE, tra quartile); preprint (EarthArXiv/ESSOAr) nếu venue cho phép; nộp. Ngày 16/11: bản nộp GP `paper_gp/` đã theo guide live (mục 12 ý 57); ba referee mô phỏng cho Major revision (ý 58–59); lượt sửa và GP-D ở ý 60–61 | Bản nộp | — | ### 6.1 Lịch mức B sau Pivot 1 (chốt 29/10/2026; hạn T7 14/11/2026) @@ -891,3 +891,8 @@ Trạng thái ngày 26/10/2026. "Có" nghĩa là toàn văn nằm trong [`refs/` 59. **Vòng chấm GP thứ ba (GP-C) và kế hoạch sửa (16/11/2026).** Người dùng dán báo cáo của mô hình ngoài "6.1 sol": "đây là review của 6.1 sol. dựa vào review này và 2 review của fable, tạo 1 file md review lần chấm này và lên plan sửa". GP-C chỉ đọc PDF chính và guide (không có SI, không chấm chéo): **Major revision, 7/10** (phù hợp 9, mới 7.5, lý thuyết 6.5, thiết kế 7, thực địa 4.5, trình bày 7). Ưu tiên của GP-C: (1) cho định lý, loss và metric khớp nhau: Mệnh đề A4(a) nói về nhãn trung bình posterior $\mathbb E[y\mid D]$, nhưng "SMC mean" dùng nhãn tại warp trung bình (đã kiểm: đúng); bậc bốn chỉ ở λ → 0; (A11) dùng MSE gộp, còn Hình 4b dùng RMSE trung bình theo giếng; (2) đối chứng point tie tối ưu cùng hàm mục tiêu SMC; thêm Di & Abubakar 2023 (có trong `refs.bib`, chưa trích dẫn). Báo cáo gốc: `docs/research/gp-referee/GP-C_round1.md`. Tổng hợp ba referee và kế hoạch: `docs/research/gp-referee/review-and-revision-plan.md` (ma trận 14 vấn đề × 3 referee; kiểm chứng; phán quyết biên tập; sáu giai đoạn: Q1–Q12 sửa nhanh, W1–W10 viết lại, A1–A9 phân tích trên output có sẵn, E1–E5 thí nghiệm mới, R1–R4 phát hành, kiểm tra và vòng chấm mới). Kiểm chứng đáng chú ý: 6.9 ms là MAD đã chuẩn hóa (MAD thô 4.65 ms, median \|Δ\| 5.7 ms, SD 16.5 ms trên 18 cặp của `outputs/marker_vs_horizon.csv`), nên "7 ms ≈ 10 ms Gaussian" của GP-A sai, nhưng chữ "median absolute deviation" trong bài cần sửa thành "scaled MAD"; phần lớn so sánh nhãn tại warp trung bình / nhãn trung bình / bank λ ≈ 0.37 đã có trong `outputs/lambda_limit/` (chỉ thiếu nhãn trung bình với loss NLL); warp RMSE theo ms đã có trong `outputs/point_tie/warp_errors.csv`; lưới power đã có (`outputs/t3/`, `referee_r5/f2_power.csv`, `r6/a1_power.csv`); dự đoán theo seed đã lưu (`outputs/p2r/train/*/cells/*.npz`). Đề xuất: chạy E1 (σ_a thật 1–7 ms và lỗi anchor bulk theo giếng), E2 (tie thực hành, tinh chỉnh trên dev), E4 (tối ưu cùng hàm mục tiêu), E5 (nhãn trung bình với NLL); E3 tùy A3. `docs/research/gp-referee/PROMPT.md` bị mất khỏi đĩa (không rõ nguyên nhân) và đã được khôi phục từ transcript, thêm dòng GP-C. Chưa sửa gì trong bài; người dùng chọn thí nghiệm và cho phép Giai đoạn 0. Chưa commit. 60. **Thực hiện kế hoạch sửa GP: E1, E2, E4, E5, E6, A1–A9, viết lại (17/11/2026).** Người dùng: chạy E1/E2/E4/E5, sửa nhanh Q1–Q12, viết lại W1–W10, phân tích A1–A9 (khai báo và băm trước), scorer thêm anchor mean, cập nhật README và archive, chạy guard, viết response letter, chấm vòng mới. **Khai báo** `docs/research/gp-review-experiments.md` (`17509191…`) và `gp-review-analyses.md` (băm 17/11 01:39 UTC, trước mọi tính toán; ngoài mọi lock; không sửa code khóa; code mới scripts 51–56). **Kết quả** (`docs/research/gp-review-results.md`, `outputs/gp_review/`): E5 nhãn trung bình NLL tốt hơn SMC mean 0,8–1,7% (6 ô), bank vẫn tốt hơn nhãn trung bình 7/8 ô; E6 budget-robust (6/6 ô ở 125/250/500); E4 SMC-opt thắng tie tốt nhất 12/12 (0,79–0,91), R4c không được ủng hộ (8/12); E2 B3p không là tie tốt nhất ở c = 1, headline giữ (5/6 hai bộ realization); **E1 (realization 24–31): gain còn ở σ_true 4 ms (0,93/0,915), mất ở ≤ 2 ms, đảo chiều khi có lỗi bulk 5 ms theo giếng (1,05–1,30)**; A3 đủ nên E3 không chạy; A9 sửa số đếm Gaussian bank (4/4 theo điểm, 2/4 theo cận trên). **Bài:** abstract (285 từ, giống nhau ở `paper/` và `paper_gp/`), Bank gain/ρ* là giới hạn quần thể, σ_a 'nhạy với sai lệch gấp đôi', bảng theo giếng F3/Volve, bảng misspecification và bảng anchor noise ở `paper_gp/`, App. C mục mới (`app:record:gp`). Sự cố: tmux server mất ~06:41 UTC giữa E1 posteriors (chạy lại, bỏ qua job xong). **Đã làm thêm:** README benchmark mục 'Scorer version' (v1.1), `paper_gp/refs.bib` không annote (`paper_gp/make_bib.py`), response letter `docs/research/gp-referee/response-letter.md`, ghi chú 'Not yet archived' trong `repro/README.md`. **Chưa làm:** W1 trọn vẹn (định nghĩa đối thủ và tóm tắt audit F3 một phần còn ở SI), W8 (ngôn ngữ pass/fail ở bảng verdict giữ nguyên), archive/verify cho `outputs/gp_review/` (cần mở rộng script 39), guard số liệu đầy đủ (`paper_gp/` chưa có trong git nên không có mốc so), vòng referee mới, cover letter. Build: `paper/main.pdf` 88 trang, `paper_gp/main.pdf` 44, sạch; `check_si_refs.py` 27/27. Chưa commit. + +61. **Hoàn tất W1/W8, gói tái lập và vòng GP-D (18/11/2026).** Bản GP có bảng tỉ số và CI của lượt chính và sao lặp, bảng độ nhạy σ_a, misspecification và point tie, định nghĩa đối thủ, audit F3 và công thức nhãn sonic. W1 ghi S17 cho point tie nhưng SI đánh số bảng đó S29; S17 là bảng power. W8 đưa tỉ số và CI lên trước quyết định giao thức. Bảng verdict giữ nguyên nội dung pass/fail. Bản chính 46 trang (khoảng 5.300 từ), SI 84 trang, bản đầy đủ 88 trang. Guide Wiley không nêu trần số từ hoặc trang cho Original Papers. + - **Archive và verify.** Script 39 đưa 3.384 tệp GP và các đầu vào bổ sung vào năm archive (15.464 tệp cả gói). Bản tổng hợp có F3 và Volve nằm trong archive Volve; giấy phép kết hợp vẫn cần tác giả xác nhận. Sáu bước verify tái tạo 43 tệp trùng byte, không đọc kho gốc. Phạm vi là tổng hợp từ các ô đã lưu. Hướng dẫn và kết quả tại `repro/README.md` §8. + - **Guard.** `paper_gp/check_numbers.py` kiểm 1.479 token số, sáu bảng đối chiếu nguồn và 22 tệp không đổi so với `eff975c`. So thêm snapshot trước sửa từ Claude. Abstract hai bản trùng, 24/24 tham chiếu SI khớp. Sửa một ô warp RMSE 5,94 → 5,93 ms theo CSV; ở anchor 2 ms và N = 16 vẫn còn gain nhỏ; power là ước lượng gộp qua realization. Hồ sơ nguồn ở `docs/research/gp-referee/numerical-guard.md`. Không đổi verdict, ngưỡng hay protocol. + - **GP-D.** Phản biện mới độc lập theo `PROMPT.md`, kết luận Major revision (tin cậy cao). Báo cáo `docs/research/gp-referee/GP-D_round1.md` giữ nhận xét theo bản đã gửi chấm. Các diễn giải power gộp và hiệu ứng nhỏ ở 2 ms đã được chỉnh khi rà nguồn. Phản ví dụ cho bước chuyển bất biến dịch từ loss cộng tính sang log-sum-exp theo cửa sổ còn mở, cùng các nhận xét về phạm vi đối thủ, Gaussian bank và thông tin dùng khi chấm benchmark. diff --git a/docs/research/gp-referee/GP-D_round1.md b/docs/research/gp-referee/GP-D_round1.md new file mode 100644 index 0000000..bd6e4ce --- /dev/null +++ b/docs/research/gp-referee/GP-D_round1.md @@ -0,0 +1,86 @@ +# Referee report GP-D — round 1 + +## Summary of the submission + +This Original Article asks how errors in a seismic well tie change the target of supervised seismic property prediction and the apparent accuracy at blind wells. The theory shows how independent timing errors filter the optimal predictor, distinguishes errors in opposite directions of a point tie, and describes how an uncertain scoring reference can alter method rankings. A synthetic benchmark derived from F3 makes true time available and allows the authors to compare point ties with supervision from banks of plausible ties. The nominal improvements are primarily associated with the registration model, as an optimized point tie using the same target recovers most of the performance. Additional tests show how wrong wavelet phase, misstated anchor uncertainty, and a shared offset in anchor picks can degrade the method. A new-realization repeat supports the nominal comparison against the locked baselines, while the gains from banks of posterior samples are smaller and less consistent. Tests on F3 and Volve do not establish predictive benefit or calibrated uncertainty. The manuscript uses its simulator to explore how scoring-reference error and dependence between held-out results affect blind-well comparisons. + +## Recommendation + +**Major revision, high confidence.** The article is well within the journal's scope and the controlled benchmark supports a publishable result about timing errors in supervised seismic prediction. The power calculation needs an estimand that matches its design, the identifiability proof exceeds what the stated objective supports, and the abstract and conclusions need to distinguish practical margins from small but measurable effects. The existing data should be enough to resolve these issues. + +## Scores (1–5) + +| Criterion | Score | +|---|---:| +| Scope fit | 5 | +| Originality | 4 | +| Technical soundness | 3 | +| Experimental evidence | 4 | +| Claims supported by evidence | 3 | +| Clarity | 4 | +| Reproducibility | 4 | + +## Major issues + +1. **The simulated power averages over training sets, while the stated estimand fixes one.** At ll. 397–401 the paper says the win probability is “conditional on the training wells” and “not an average over training sets.” Table S17 pools eight different realizations, each with its own training wells and field realization, and the recalibration in Appendix SC fits a beta-binomial using pooled win rates and within-realization dependence. In the beta-binomial interpretation a realization draws a latent win probability, and the reported power integrates over that draw. Its non-unit power limit in the two highly dependent cells makes that distinction consequential. A fixed-fitted-model estimand is a separate question, whose power depends on that set's win rate and on any spatial or other dependence that persists conditional on the fit. Shared training induces marginal dependence, but by itself does not establish conditional dependence given a fixed fit. Name the calculation for what it averages over, state what future realization and clustering structure it represents, and explain the assumption behind reusing the alternative's intraclass correlation under a win-probability-0.5 null. At ll. 410–414 and in Table S17, distinguish the calibrated sign-test results from the nominal sign test and the nominal paired tests in Appendix SC. In particular, four of six calibrated cells reached 80% power by 40 wells with an exact reference, two made it at 1 ms, and none did at 1.5 ms. The paired alternatives' nominal results do not establish what those alternatives would need with size control under clustering. Narrow ll. 46–48 and 466–469 to the calibrated sign test, six synthetic cells, the specified reference perturbation, and the search up to 40 wells. “More than 40” is especially misleading where the fitted model predicts power below 0.8 even in the large-well limit. An explicit side-by-side table of nominal and calibrated counts would help. **Fix:** Rewording and a presentation change based on existing results. If a conditional power claim is retained, a new analysis on existing results must target it and quantify what the eight independent groups can identify. + +2. **Restrict the shift-identifiability argument to the loss and windowing it proves.** At ll. 663–668, the step “The log-sum-exp of equation (2) preserves this invariance, because every bank member is shifted by the same amount” is false for the stated argument with a fixed tiling of non-overlapping windows. Summing additive log scores over a trace allows regrouping. Applying the log-sum-exp separately to each window before summing does not. For a four-sample periodic example with two-member score pairs (0, −a), (0, −a), (−a, 0), (−a, 0), two windows of two samples each initially have scores (0, −2a) and (−2a, 0). After a one-sample shift, both windows have scores (−a, −a). The two sums of log-sum-exps differ for a > 0 with equal weights and positive tempering, even though the trace has no edges. The additive Gaussian statement in A2, ll. 648–674, and its anchor-curvature calculation survive. Per-window invariance would need a shift-covariant collection of windows, co-shifted windows, or a different argument. Likewise, l. 235 and the advice at l. 437 generalize to alignment losses without establishing shift closure of the actual model, behavior of constrained paths and shift bounds, or the absence of other timing information. Give the conditions in the main text, retain the curvature interpretation as a local conditional spread, and align the claims in Sections S5 and SA. **Fix:** Proof correction and rewording. No new experiment is necessary. + +3. **Bound the headline gains by the comparator and the decision rule.** The abstract's 8–22% and 7–19% at ll. 37–41 are supported by Table 2 against the three locked competitors, at unit drift and full anchors. They are weaker as claims against a broader deterministic workflow. At 0 and −5 dB the anchor-mean comparison narrows the effect, and the new-realization repeat clears the margin rule against it only at 10 dB (ll. 299–302 and 355–361). In Table 3 at 0 dB and N = 4, the mean is worse than the same-target optimized point tie (1.027 [1.006, 1.057]). At 10 dB and N = 16 it is better (0.983 [0.970, 0.995]). Thus “gave a better tie than every deterministic tie” (ll. 430–432) is both broader than the held-out prediction comparisons and ambiguous about the optimized comparator. “Held against a practitioner tie” in the abstract should reflect five of six protocol successes in each set with that comparator **added** (ll. 344–348). The equal-budget evidence at ll. 348–349 is against the locked competitors and should have its own qualifier. In Table 2 the original −5 dB ratios are 0.915 [0.883, 0.953] and 0.923 [0.908, 0.940], while the correlation differences are +0.102 and +0.089. Preserve this distinction between improvement compared with unity, a 10% RMSE threshold, and passing through the correlation alternative. The prose appropriately notes that only one original RMSE interval lies wholly below 0.90. State that the table's candidate/comparator set is fixed for the paired intervals or explain if selection is repeated in each realization resample. If correlation margins are part of the evidential argument, add paired intervals for them or identify the displayed ΔPCC values as descriptive. I would keep the larger nominal result, but give the optimized point result more prominence because it separates the merit of the tie model from posterior averaging. **Fix:** Rewording and, for correlation intervals if used inferentially, analysis on existing results. + +4. **Separate anchor accuracy, anchor-model failure and the amount of benefit.** Conclusions ll. 461–464 say the advantage “was lost” when true error was at most 2 ms and when uncertainty was misstated by a factor of two. Table 5 gives 0.969 [0.961, 0.979] at 2 ms, correctly specified and N = 16. That is a modest reduction with the interval below unity. The two 1 ms intervals both include unity, at N = 4 and 16, whereas the prose at ll. 316–318 mentions N = 4 alone. At 10 dB and N = 16, incorrectly supplying 14 ms gives 0.928 [0.867, 1.004] (Table 4), so losing the locked margin decision does not establish a zero effect. The bulk perturbation yields six point estimates above 1, but at 7 ms stated uncertainty and N = 4, the interval is 0.975–1.128 around 1.046 (Table 5). Distinguish reduced error, crossing the protocol margin, and evidence of harm. Also note what the bulk-error experiment tests: a common per-well component in anchor errors fitted **as independent noise**. The effect does not establish failure of a model that estimates anchor covariance or has an explicit shared-bias term. The F3 marker–horizon differences measure agreement between interpretations of the same seismic, as the main text correctly says at ll. 129–133. Appendix SC's suggestion that these differences support the specific 5 ms bulk perturbation needs to be framed as motivation, since they do not identify the actual bias or anchor-error covariance. **Fix:** Rewording. Testing a correlated-anchor model would be a new experiment and is unnecessary for the current claim. + +5. **Distinguish a true-posterior result from empirical bank and mechanism comparisons.** At ll. 167–170 the phrase “expectations under the tie posterior” makes the following statement about samples from a tempered target contradictory. Exact samples from a tempered distribution converge to that distribution's expectations. Equation (A10) instead requires the conditional law of the *true* warp and equality for specified label functionals. State this at the first definition, then keep the fourth-order conclusion explicitly about centered Gaussian shifts, fixed band or appropriate spectral integrability, λ → 0, and nonzero oracle residual band error. The Taylor expansions at ll. 733–736 are pointwise, so a fixed sampled band is an easy sufficient condition for the integrated result. The assumptions of the theorem are stated more carefully at ll. 249–259 than at ll. 453–457. Empirically, the Gaussian bank inherits mean and covariance from the seismic-conditioned posterior. It removes the realized particle shapes and higher-order structure while retaining data-dependent moments. The sentence “no link to the seismic data” and the attribution “so most of the gain is label augmentation” (ll. 333–336) go beyond the control. Similar performance with intervals including zero in three of four cells is compatible with the moments carrying much of the useful signal. The independently replicated improvements are 0.7%, 1.7%, 12.4% and 0.7%, with two intervals below unity (ll. 325–329). At equal budgets the original three ordinary wide-cell gains in Appendix SC are about 1.4–2.0%, and the two-anchor case remains substantially larger. Label the original 2–3% and 11% at ll. 43–45 as observations in the stable cells at unit drift in the first set, distinguish the two-anchor exception and report its replicate, or summarize the less uniform bank evidence without a general percentage. At ll. 434–436, the observed dependence on posterior width invalidates the simple sharpening prediction in several cells. It does not by itself explain the observed blur, particularly where the interval of the dependence measure includes zero at 10 dB (Appendix SC). **Fix:** Clarification of the mathematical statement and empirical interpretation. No new experiment. + +6. **Make the public task protocol clear about information shared across presets and the extent of verification.** The release statement at ll. 147–151 correctly says this is controlled evaluation. The README illustrates a concrete risk beyond direct use of the public truths. The wrong-uncertainty tasks have the very same seismic, logs and picks as nominal 10 dB, c = 1, with only supplied uncertainty changed. Named misspecification settings also expose the perturbation family in file paths and the task index. A benchmark participant could infer the control uncertainty or adapt to a fixed preset using metadata or outputs from related test tasks. Explicitly document a per-task information boundary for evaluation of a method under misspecification, including whether an uncertainty-estimating method may ignore supplied σₐ, when duplicate nominal pairs may be recognized, and what can be pooled across tasks. Make the defaults and baseline columns for scorer v1.0 and v1.1 unambiguous, including whether the now-added anchor-mean comparator changes the primary output or adds a separate comparison. At ll. 55–57, “a clean-room check that recomputes them” appears to describe every table and figure. The reproducibility README distinguishes recomputation of selected summary/figure stages and 43 aggregated outputs from retrieval of the archived training products. Name the verified scope in the statement and provide a mapping for the major paper tables that are reconstructed from archived summaries. These documentation fixes concern the evaluation and verification descriptions. **Fix:** Rewording and a clearer evaluation protocol. No requirement to hide the existing truth or repeat training. + +## Minor issues + +1. **Ll. 418–425, Table 8 and Table S21:** “band correlation 0.15 on F3” is the SMC **mean** row in Table S21. The SMC **bank** column in Table 8 agrees with the 0.18 macro value in Table S21. State which model the figure describes, or present both. “No blind-well skill in the seismic band” obscures the small descriptive edge of the soft-min shift over the no-band baseline (1.211 versus 1.224 p.u.). The field finding is that skill was weak and unsuitable for comparing registration gains. At F03-2 the two 1.15 entries in Table 8 look equal at the shown precision. Add the bank/tie ratio 1.0002 from Table S20 in a note so the recorded 1/4 is auditable. + +2. **Ll. 403–407:** Specify that simulated reference perturbations include a bulk term and a linear stretch, with RMS 1.04 times the stated reference-error scale in Section S6.6. The corollary uses constant shifts and two population predictors, one an unshrunk oracle. The reported crossings are instead for the median RMSE ratio of two trained methods, and at 10 dB the empirical 3.6 ms is above the model's 3.0 ms. The SI explains why. One sentence in the main text can carry the distinction. + +3. **Ll. 268–270, 761–792:** “Only if … at every frequency” can be read as saying a positive *integrated* advantage requires a positive integrand everywhere. The proof instead shows that at or above the σ/√2 threshold **all** nonzero frequencies are penalized sufficiently to erase the oracle advantage. The bound is necessary for a positive integral in the stated model, not a sufficient per-frequency criterion. State the bound for a nontrivial positive error and spectrum. At ll. 627–630 the ideal band operator and its Butterworth implementation are already distinguished. + +4. **Ll. 127–133, 411–426:** Consider bringing the independent-reference sensitivity at Volve F-11 T2 into the main field section. Appendix SB.2 reports 0.31–0.51 p.u. changes over reference choices versus a 0.12–0.29 p.u. spread between methods under a given reference. The rankings change. This is direct, appropriately limited field evidence about the comparison design. Mention the differing supported samples (20–24), which can also change the scores. In Section S6.7, label Teapot’s “3 + 11” comparison and Appendix SB.3’s 1.5 ms planning tolerance as results of the original nominal calculation, since the current calibrated calculation gives 18 wells with an exact reference for the illustrative −5 dB cell. + +5. **Ll. 200–202, 443–446:** A 6 Hz high-pass defines the analysis band. It does not establish the frequencies at which the learned predictor is resolving seismic-supported property variations. In Appendix SC's 6–25 Hz sensitivity, only 24–63% of the nominal gain remains at c = 1. A sentence in the main Limitations would distinguish bandwidth of the metric, bandwidth of the blur test, and where the nominal comparison gains arise. + +6. **Ll. 381–383:** The claim that wavelet-coefficient methods “contain this case” should refer to increased phase flexibility, subject to priors, resolution and a tie–wavelet trade-off. An omitted journal paper compares free-phase and constant-phase wavelet estimates and explicitly examines overfitting by cross-validation. This is a natural reference for the failure interpretation and the proposed follow-up at ll. 470–473. [Zabihi Naeini, Gunning and White, Well tie for broadband seismic data](https://doi.org/10.1111/1365-2478.12433). + +7. **Ll. 72–87 and Section S2:** The novel element is supervision of a learned predictor with labels transported by a physical tie posterior. The authors’ prior-art paragraph says Delivery is known from the title. Its accessible abstract describes posterior inversion models using uncertain layer times initialized from picks. Describe this as related treatment of timing in Bayesian inversion and distinguish it from training a generalizing seismic-to-property predictor. The claim about Di and Abubakar's automated tie at ll. 68–72 agrees with that paper's publisher abstract. [Gunning and Glinsky, Delivery](https://doi.org/10.1016/j.cageo.2003.10.013), [Di and Abubakar, Automating seismic-well tie via self-supervised learning](https://doi.org/10.1111/1365-2478.13333). + +8. **Ll. 31–47 and 581–617:** The submission layout is legible, gives separate tables and figure legends, and supports review with numbered lines. The guide asks for a self-contained abbreviation-free abstract. “F3” is a survey identifier, and “the Netherlands offshore F3 survey” on first use would make it intelligible to the abstract's intended audience. Define “anchors” there as noisy depth–time markers. In Fig. 2b the twofold protocol non-rejection region dominates the scale; a small zoom or exact point/interval text would convey the precision on which l. 31 relies. The one-figure-per-page rendering is consistent with the supplied guide. Figures 3 and 5 will need legible cells at the published page width. + +## Strengths + +- The physical question, the direction-of-error distinction and the explicit treatment of a misregistered scoring reference fit *Geophysical Prospecting* well. The blur and reference-bias derivations give interpreters a quantitative link between millisecond-scale misties and frequency-dependent effects. +- Experiment 1's failure is reported alongside the later design. The nominal study has a new-realization repeat, development-only checkpoint selection, exploratory equal-budget and same-target comparisons, and sensitivity to interval construction in Appendix SC. Table 7 discloses both verdict readings when the implementation and locked comparison wording differ. The dependent cells are not treated as independent confirmations. +- The stronger wavelet misspecification has clearly adverse RMSE intervals (Table 6), and the study reports the failure of a proposed diagnosis. The two-mode study clearly identifies the artificial case in which the bank contains the true warp and treats it as a mechanism illustration. +- The F3 sonic-derived target and scoring-reference limitations are explicit, and Volve includes a slot-level hold-out and a simple training-mean comparator. The main field interpretation is appropriately restrained. +- Public truth, documented splits, the named scorer, checksums, archived results and distinct clean-room and training procedures give the study good reproducibility potential. I checked the documentation and manuscript, without executing the analysis or independently checking the archived files. + +## Confidential comments to the editor + +The timing problem and the negative results are of interest to the journal's quantitative-interpretation readership. The main contribution is a controlled intervention on the timing of supervised labels, supported by two synthetic realization sets and appropriate disclosure of the field limitations. I would invite revision without requiring another field campaign or a broader leaderboard. Require the corrected power estimand and test scope, correction of the per-window invariance argument, and claims that track the displayed intervals and comparator sets. Improvements against the original restricted baselines and the strong synthetic wavelet failure remain publishable findings after these changes. This is an independent simulated report. + +## Files read + +- `docs/research/gp-referee/PROMPT.md` (review instructions) +- `paper_gp/main.tex` +- `paper_gp/main.pdf` (46-page snapshot reviewed before the subsequent prose corrections, with Figures 1–6 and Table 2 including ΔPCC) +- `paper_gp/supplement.tex` +- `paper_gp/supplement.pdf` +- `paper/sections/02_related.tex` +- `paper/sections/03_data.tex` +- `paper/sections/04_method.tex` +- `paper/sections/05_theory.tex` +- `paper/sections/06_experiments.tex` +- `paper/sections/A_proofs.tex` +- `paper/sections/B_field.tex` +- `paper/sections/C_record.tex` +- `paper/refs.bib` +- `benchmark/README.md` +- `repro/README.md` +- `paper_gp/Geophysical Prospecting.pdf` +- Published sources consulted by short topic keywords are linked in the minor comments. diff --git a/docs/research/gp-referee/numerical-guard.md b/docs/research/gp-referee/numerical-guard.md new file mode 100644 index 0000000..113b0a0 --- /dev/null +++ b/docs/research/gp-referee/numerical-guard.md @@ -0,0 +1,48 @@ +# Numerical audit of the GP revision + +The comparison for this revision uses `eff975c`, the first Git revision containing +`paper_gp/`. The pre-revision article was also recovered from Claude’s local file +history, session `f781249b-e76d-4ba7-9cec-051f95408202`, snapshot +`e8eea7d6772dc4c3@v2` (SHA-256 +`c6b4dfb6f3d971c3564e9c4e351490d2695898c75f9d97877a145a7ea5a555b0`). +The same extraction counts 798 numeric tokens in that snapshot, 1,249 in +`eff975c` and 1,479 in the current article. Counts include numeric LaTeX +arguments and reference numbers as well as scientific values. + +Run from the repository root with the derived outputs present. + +```bash +python3 paper_gp/check_numbers.py +(cd paper_gp && python3 check_si_refs.py) +``` + +The guard fingerprints the numeric sequence in the GP article and both edited SI +sections. It checks the Experiment 3 verdict table and Appendix A against Git, the +citation sequence, equality of the two abstracts, and byte equality of the +remaining 22 manuscript source, bibliography, style and figure files covered by +the baseline. The guard also checks every cell in six main-text results tables +against its keyed source, including row labels, analysis status, and display +rounding. The source checks supplement the Git comparison because the first +commit already contained the E1, misspecification and per-well tables. + +## Evidence for the edits + +| Material | Saved evidence and reading | +|---|---| +| F3 audit | `outputs/td_qc.csv` gives the integrated-sonic errors, 36.5 ms for the distributed OpendTect model and 44.6 ms for the second time–depth model as within-window maxima relative to markers. `outputs/marker_vs_horizon.csv` supplies the 18 pairs, scaled MAD 6.9 ms and sample SD 16.5 ms. `paper/sections/03_data.tex`, its audit table and `outputs/d1/` give the four-well sonic target definition and the measured-density comparison. | +| Posterior-mean comparison | `outputs/{p2r,replication}/summary/h2a.csv`, `c = 1`, `B3d-Sa`, `point_ties`, full anchors. All six original percentile intervals lie below unity. Only 10 dB with 16 training wells lies fully below the 0.90 RMSE margin. The Pearson differences are descriptive point estimates. The zero-drift ratios retain the locked summary. | +| Point ties | `outputs/point_tie/ratios.csv` comparisons B, C, A and D, and `outputs/gp_review/e4/ratios.csv` comparison E4-2, all at `c = 1`. The main text distinguishes the original 12 full-anchor comparisons over `c = 0,1` from the 10 replication cells at `c = 1` including the sparse-anchor regimes. | +| Anchor uncertainty | `outputs/p2r/summary/{sigma_a,sigma_post,h2a}.csv` and `outputs/replication/summary/{sigma_a,sigma_post}.csv`. At −5 dB, stated uncertainty 3.5 ms and 16 training wells, `warp_rmse_ms = 5.934973…` rounds to 5.93, previously printed as 5.94 in the SI. The corrected value appears in both versions. | +| Anchor error and bulk stress | `outputs/gp_review/e1/summary/{ratios,p4_posterior}.csv`. At correctly stated 2 ms and 16 training wells the ratio is 0.969 [0.961, 0.979], so a small improvement remains. All six bulk-error point estimates exceed unity, with one interval crossing unity. This stress uses misfit independent-error ties under a shared bulk component. | +| Practitioner, equal-budget and optimized comparisons | `outputs/gp_review/e2/h2a_with_b3p.csv` and `e2/ratios.csv` establish the 10 dB range and show a practitioner denominator at lower signal-to-noise ratios. The five-of-six result uses the locked deterministic set plus the practitioner tie. `e6/h2a_by_budget.csv` uses the locked set for the three budgets. `e4/reading.json` and `e4/ratios.csv` show nine intervals containing unity when comparing the SMC mean and optimized point tie. | +| Bank gain, transfer and theory scope | `outputs/{p2r,replication}/summary/h2b.csv` gives the four original ratios and intervals at `c = 1`, `N = 16` and the repeated gains. `outputs/gp_review/{a3,a8,a9}/`, `outputs/gp_review/e5/`, `outputs/p2/summary/main/h1.csv` and `outputs/p2r/posthoc/meta.json` trace the blur, pooled-error comparison, Gaussian bank and mean-label results introduced in the previous GP edit. The fourth-order statement in the abstract now specifies Gaussian shifts and the weak-tempering population limit. | +| Misspecification and field tables | `outputs/bench/summary/{s2_h2a,s2_smc}.csv` and `outputs/gp_review/a7/a7_wells.csv` feed scripts 56 and 55. The generated LaTeX rows matched the manuscript, and the clean room regenerated both files byte for byte. The Experiment 3 verdict entries and all gate thresholds are preserved. | +| Blind-well power | `outputs/gp_review/a6/a6_nstar.csv` and `outputs/r6/a1_nstar.csv` give the calibrated sign-test counts. The power calculation uses pooled win rates across realizations and within-realization correlation, as implemented in scripts 27 and 48. Four of six settings reach 80% by 40 wells at an exact reference, two at 1 ms and zero at 1.5 ms. The abstract and conclusion now identify that test and the 40-well search. | + +The guard detects changes to the audited values and checks the displayed tables. +It does not revalidate every historical claim from raw data or certify a proof. +The fresh [GP-D report](GP-D_round1.md) reviews those scientific questions. It +records its findings against the snapshot circulated for review, before the +pooled-power and small-effect wording were corrected. The proof concern about +window-level aggregation and the remaining interpretive and release issues are +open for the next revision. diff --git a/docs/research/gp-referee/response-letter.md b/docs/research/gp-referee/response-letter.md index 7fc9bf5..f2796e7 100644 --- a/docs/research/gp-referee/response-letter.md +++ b/docs/research/gp-referee/response-letter.md @@ -3,13 +3,13 @@ Written for: the authors, as the basis of a response letter; the referees are simulated (two Fable subagents and one external model), not journal referees. Numbers come from `docs/research/gp-review-results.md` and `outputs/gp_review/`. All new analyses were declared and hashed before computing (`gp-review-experiments.md`, `gp-review-analyses.md`) and sit outside every locked protocol. ## 1. Self-contained article -Done in part. `paper_gp/` now carries compact tables for the nominal gain with status, the misspecification presets with intervals, the anchor-error study, the verdicts, and the per-well field results. Theory statements and proofs are in Appendix A. **Open:** the competitor definitions and the F3 audit summary are still partly in the Supporting Information. +The GP article now carries the nominal and replication intervals, point-tie comparisons, anchor sensitivity, misspecification, per-well results and verdicts. It defines the point-tie and alignment competitors and explains the F3 timing audit and sonic-derived label. Theory statements and proofs are in Appendix A. ## 2. Headline against the best point tie of any kind -The 8–22% gain is stated against the best deterministic tie; the best saved particle (same SMC model, a point tie) beats it in all cells and posterior averaging adds at most 3%. New: (E2) a practitioner-grade tie tuned on development realizations is not the best tie at c = 1 (ratio to the correlation tie 1.05–1.22), and the SMC mean still passes 5 of 6 cells on realizations 8–15 and on 16–23; (E4) a point tie that optimizes the SMC target itself beats the best deterministic tie in 12 of 12 cells (0.79–0.91) and is indistinguishable from the SMC mean in 9; (E6) the gain holds at 125, 250 and 500 iterations (6 of 6 cells each). The abstract says so. +The 8–22% gain is stated against the best deterministic tie; the best saved particle (same SMC model, a point tie) beats it in all cells and posterior averaging adds at most 3%. New: (E2) a practitioner-grade tie tuned on development realizations has 1.05–1.22 times the correlation tie error at 10 dB and is the lowest-error deterministic tie in some noisier cells. With it added, the SMC mean meets the rule in five of six cells in each realization set; (E4) a point tie that optimizes the SMC target itself beats the best deterministic tie in 12 of 12 cells (0.79–0.91) and the interval against the SMC mean includes one in nine cells; (E6) the gain holds at 125, 250 and 500 iterations (6 of 6 cells each). The abstract says so. ## 3. The anchor-noise model and the true sigma_a (E1, realizations 24–31) -This changes the claim. With independent anchor noise of 4 ms, stated correctly, the SMC mean is 0.930 and 0.915 times the best tie; at 2 ms 0.979 and 0.969; at 1 ms 0.987 and 0.989 (gain lost); with a per-well bulk error of 5 ms added to 2 ms noise it is 1.05–1.30 times the best tie for every stated sigma_a, with an overconfident posterior (coverage 0.48–0.63). The gain reported earlier is a property of independent noise of about 4–7 ms. The abstract, Experiment 2, Limitations and Conclusions say this; "the gain requires a correct sigma_a" became "is sensitive to a twofold misstatement in either direction (at 10 and −5 dB)". +This changes the claim. With independent anchor noise of 4 ms, stated correctly, the SMC mean is 0.930 and 0.915 times the best tie; at 2 ms 0.979 and 0.969; at 1 ms 0.987 and 0.989 (both intervals include one); with a per-well bulk error of 5 ms added to 2 ms noise it is 1.05–1.30 times the best tie for every stated sigma_a, with an overconfident posterior (coverage 0.48–0.63). The largest gains in this stress study occur with independent errors of 4–7 ms. At 2 ms and 16 training wells the ratio remains below unity, 0.969 [0.961, 0.979]. The abstract, Experiment 2, Limitations and Conclusions say this; "the gain requires a correct sigma_a" became "is sensitive to a twofold misstatement in either direction (at 10 and −5 dB)". ## 4. Theory versus experiments (GP-C) (a) The label at the posterior-mean warp and the posterior mean of the labels are now kept apart in Methods and Theory; Experiment E5 trains on the latter with the Gaussian likelihood: it improves on the SMC mean by 0.8–1.7% in six of eight wide cells (3.1% and 11.9% in two), and the bank improves on it in seven of eight, so the bank gain is not only that correction. (b) The fourth-order statement is restricted to Gaussian, data-independent shifts, a calibrated bank and lambda → 0; rho* is called a population limit. (c) Figure 4b: recomputing from pooled errors changes no point by more than 0.011 and none crosses the diagonal (A8). (d) The 67–72 Hz band of the limits lies outside the 6.8–22.5 Hz in which blur was verified; stated. (e) The Gaussian-bank count was wrong ("within 2.5% in three of four"): all four ratios are 0.0–2.1% above the bank, the interval of the difference includes zero in three (A9). Corrected. @@ -18,7 +18,7 @@ This changes the claim. With independent anchor noise of 4 ms, stated correctly, Pass counts are replaced by the misspecification table (ratio, interval, warp error, coverage per preset); the wavelet phase is named the worst case. A5: truth-free posterior checks do not separate failing from passing presets. ## 6. Blind-well requirements -The estimand (conditional on the training set), the assumptions of the sigma/sqrt(2) condition, the unobservable intraclass correlation and the 18 degrees phase equivalent of 1 ms at 50 Hz are stated; the numbers are conditions for a powered test in this benchmark, not a standard. Wilcoxon and t tests need 25–50% fewer wells (A6). +The text distinguishes the target for a fixed pair of predictors from power computed over pooled synthetic realizations. The assumptions of the sigma/sqrt(2) condition, the unobservable intraclass correlation and the 18 degrees phase equivalent of 1 ms at 50 Hz are stated; the numbers are conditions for a powered test in this benchmark, not a standard. Wilcoxon and t tests need 25–50% fewer wells (A6). ## 7. Field cases A per-well table for F3 and Volve; the lack of power is tied to the failed blind-well skill condition. @@ -27,4 +27,4 @@ A per-well table for F3 and Volve; the lack of power is tied to the failed blind "Scaled MAD" (6.9 ms; raw MAD 4.65 ms, SD 16.5 ms over 18 pairs); Balakrishnan citation; Di & Abubakar 2023 cited; "<7%" versus Table S7 reconciled; "hash-locked" wording; AI statement no longer claims that every citation was checked. ## 9. Not done -One-shift-per-well blur arm (E3; A3 met its declared sufficiency rule, 104 of 140 powered combinations within ±10%, so it was not run), correlated noise, replication of Experiment 3, scorer v1.1 README and archive rebuild (scorer v1.1 adds the anchor mean and passes its self-test), a new referee round. +A3 met its declared sufficiency rule for the proposed E3 arm (104 of 140 powered combinations within ±10%). A correlated-anchor inference model and a separate replication of Experiment 3 remain outside these results. Scorer v1.1 is documented. The GP revision results are archived with six clean-room stages in [repro/README.md](../../../repro/README.md). The new independent [GP-D report](GP-D_round1.md) recommends major revision. diff --git a/docs/research/gp-review-results.md b/docs/research/gp-review-results.md index e158f42..2007668 100644 --- a/docs/research/gp-review-results.md +++ b/docs/research/gp-review-results.md @@ -11,7 +11,7 @@ edited; no verdict or threshold changed. Driver `scripts/run_gp_review.sh`; outp percentile bootstrap over realizations (primary), BCa and t as sensitivity; "CI below 1" means the upper limit is below 1. -Status of this file: E5 and A1–A9 are complete. E6, E4, E2 (training) and E1 (posteriors) are running (17/11/2026, 02:50 UTC). Sections are filled as each finishes. +E1, E2, E4, E5, E6 and A1–A9 are complete. The clean-room recollection of tables and summaries is documented in [repro/README.md](../../repro/README.md). ## E5. Posterior-mean labels trained with the Gaussian likelihood @@ -65,7 +65,7 @@ Done (96 cell-realizations; SMC-MAP reproduces `outputs/point_tie/` exactly, 768 ## E2. Practitioner-grade deterministic tie -Done. B3p (calibration, wavelet, smoothing, tuned on dev realizations 900–901 per regime; budget 125) has dev warp RMSE 4.6/5.2/5.5/3.8/9.5 ms for R10/R0/Rm5/R0h/R10tb. At c = 1 it is not the best deterministic tie (B3p/B3c 1.05–1.22 at R10), so the best-tie denominator and the H2a cells do not change: **B3d-Sa passes 5 of 6 c = 1 cells against point ties + B3p on realizations 8–15 and on 16–23 — the headline survives a practitioner tie.** SMC mean/B3p 0.67–0.95 (R10 N = 4/16: 0.70/0.67). Tables `outputs/gp_review/e2/` (`h2a_with_b3p.csv`, `ratios.csv`, `selected.json`). +Done. B3p (calibration, wavelet, smoothing, tuned on dev realizations 900–901 per regime; budget 125) has dev warp RMSE 4.6/5.2/5.5/3.8/9.5 ms for R10/R0/Rm5/R0h/R10tb. At 10 dB and c = 1 it is not the best deterministic tie (B3p/B3c 1.05–1.22). It becomes the best deterministic tie in some 0 and −5 dB cells. Against the expanded deterministic set, **B3d-Sa passes 5 of 6 c = 1 cells against point ties + B3p on realizations 8–15 and on 16–23 — the headline survives a practitioner tie.** SMC mean/B3p 0.67–0.95 (R10 N = 4/16: 0.70/0.67). Tables `outputs/gp_review/e2/` (`h2a_with_b3p.csv`, `ratios.csv`, `selected.json`). ## E1. True anchor error varies; per-well bulk anchor error diff --git a/paper/README.md b/paper/README.md index 8eb0361..2b3a29f 100644 --- a/paper/README.md +++ b/paper/README.md @@ -128,3 +128,8 @@ Length: Computers & Geosciences limits an original Research Article to 5,500 wor references and captions (checked on 12/11/2026 against the official Guide for Authors saved by the user; on 29/10 only a secondary source was available). This full-length manuscript exceeds the limit and stays the master text; the condensed C&G article (`paper_cg/`, body 5,099 words; removed from the working tree on 16/11/2026, recoverable from commit `883dccf`) was the *Computers & Geosciences* version, and `../paper_gp/` (derived from it on 16/11/2026, *Geophysical Prospecting* format, no word limit) is the version to submit. It reuses this folder's figures and `refs.bib`; its abstract is a verbatim copy of `sections/00_abstract.tex`. The main text (Secs. 1–8) is about 18,100 words (crude count after the 02/11 writing pass, which added about 3,100 words for Experiment 3, the mechanism study and the discussion; the proof review of the same day added about 350 more and the full-text pass of Sec. 2 about 130, estimated; the hallucination audit of 04/11 added about 600 more, crude count; 69 pages), and exceeds that limit. The length pass was dropped by the user on 2026-10-29 (`docs/plan.md` §12 item 25). After the rewrite of 09/11/2026 (`docs/plan.md` §12 item 38) the main text is about 15,400 words, against 20,600 before, by one counter that excludes tables and equations; the page count is 69. The worked example of Sec. 6.6 uses only the numbers of Table `tab:t3`, the warp errors of Sec. 6.6 and the Teapot residual of App. B.3. + + +The Geophysical Prospecting version has a [numerical audit](../docs/research/gp-referee/numerical-guard.md). +It links the revised GP tables and prose to saved CSVs and records the numerical +changes shared with the Supporting Information. diff --git a/paper/sections/00_abstract.tex b/paper/sections/00_abstract.tex index dba8f50..f121c2b 100644 --- a/paper/sections/00_abstract.tex +++ b/paper/sections/00_abstract.tex @@ -1,5 +1,5 @@ \begin{abstract} -Seismic reservoir-property predictors are trained on well logs placed in two-way time by uncertain well ties. We treat tie error as error in the time index of the labels and show that errors independent of the data blur the optimal predictor and attenuate the seismic band. In a controlled experiment the measured blur matched the prediction to within 1\% for timing errors of 4--16\,ms (6.8--22.5\,Hz). In a linear-Gaussian model a posterior-mean tie is predicted to sharpen the predictor, but where testable the trained network was blurred. In population, a calibrated bank of posterior labels can improve on the posterior-mean tie only at fourth order. We release a synthetic benchmark of F3 statistics with known timing and a scorer. The benchmark assumes a correctly specified tie model and dense anchors of known uncertainty. Here, labels at the mean of a sequential Monte Carlo tie posterior reduced the seismic-band root-mean-square error by 8--22\% relative to the best deterministic tie (7--19\% in a repeat on new realizations). The gain comes mainly from a more accurate tie model. The result held against a practitioner tie tuned on development data and at three training budgets, but not when the anchors were 2\,ms accurate or carried per-well bulk errors. The best saved posterior sample, used as a point tie, gave most of it. Training on posterior samples added 2--3\% when the posterior was wide (11\% in one setting with an overconfident posterior), but a Gaussian bank with the same two moments obtained most of that. Field validation remains open: F3 and Volve showed no consistent improvement. An exploratory power analysis suggests that a blind-well comparison needs 5--18 wells with an exact reference and more than 40 with a 1.5\,ms reference error. +Seismic reservoir-property predictors are trained on well logs placed in two-way time by uncertain well ties. We treat tie error as error in the time index of the labels and show that errors independent of the data blur the optimal predictor and attenuate the seismic band. In a controlled experiment the measured blur matched the prediction to within 1\% for timing errors of 4--16\,ms (6.8--22.5\,Hz). In a linear-Gaussian model a posterior-mean tie is predicted to sharpen the predictor, but where testable the trained network was blurred. For Gaussian shifts in the limit of weak loss tempering, the population gain from a calibrated posterior bank is fourth order in the timing error. We release a synthetic benchmark of F3 statistics with known timing and a scorer. The benchmark assumes a correctly specified tie model and dense anchors of known uncertainty. Here, labels at the mean of a sequential Monte Carlo tie posterior reduced the seismic-band root-mean-square error by 8--22\% relative to the best deterministic tie (7--19\% in a repeat on new realizations). The gain comes mainly from a more accurate tie model. The result held against a practitioner tie tuned on development data and at three training budgets, but the gain shrank at anchor errors of 2\,ms or less and reversed with per-well bulk error. The best saved posterior sample, used as a point tie, gave most of it. Training on posterior samples added 2--3\% when the posterior was wide (11\% in one setting with an overconfident posterior), but a Gaussian bank with the same two moments obtained most of that. Field validation remains open: F3 and Volve showed no consistent improvement. In the benchmark, a sign test accounting for shared training wells reached 80\% power in four of six settings with an exact reference (5--18 wells) and in none within 40 wells at 1.5\,ms reference error. \end{abstract} \noindent\textbf{Keywords:} well tie; tie uncertainty; registration error; errors-in-variables; seismic porosity prediction; synthetic benchmark; blind-well validation; statistical power diff --git a/paper/sections/06_experiments.tex b/paper/sections/06_experiments.tex index 45711cd..6aaa24c 100644 --- a/paper/sections/06_experiments.tex +++ b/paper/sections/06_experiments.tex @@ -121,7 +121,7 @@ SNR & $\sigma_a^{\mathrm{reg}}$ (ms) & ratio $N = 4$ & ratio $N = 16$ & pass & $ & 7 & 0.857 [0.805, 0.922] & 0.782 [0.748, 0.813] & 2/2 & 0.59 & 0.63 & 0.89 \\ & 14 & 0.985 [0.897, 1.067] & 0.928 [0.867, 1.004] & 0/2 & 0.92 & 2.81 & 0.52 \\ \midrule -$-5$\,dB & 3.5 & 0.989 [0.967, 1.009] & 1.024 [1.009, 1.037] & 0/2 & 2.89 & 5.94 & 0.53 \\ +$-5$\,dB & 3.5 & 0.989 [0.967, 1.009] & 1.024 [1.009, 1.037] & 0/2 & 2.89 & 5.93 & 0.53 \\ & 7 & 0.915 [0.883, 0.953] & 0.923 [0.908, 0.940] & 2/2 & 2.56 & 2.91 & 0.86 \\ & 14 & 0.984 [0.952, 1.013] & 0.978 [0.954, 1.008] & 0/2 & 3.20 & 4.60 & 0.72 \\ \bottomrule @@ -382,7 +382,7 @@ With an exact reference, the sign test needs five blind wells at 0\,dB (both $N$ The clustering matters. Under a beta-binomial null with intra-class correlation 0.1, the nominal sign test at $\alpha = 0.05$ rejects a true null with probability 0.05 at 10 wells, 0.13 at 20 and 0.23 at 40; at 0.45, the value of the 10\,dB cell with $N = 4$, these become 0.24, 0.34 and 0.40. We therefore recomputed $n_{\mathrm{b}}^\star$ with the critical value chosen so that the size is at most 0.05 under the intra-class correlation of each cell (post hoc, declared before it was computed; Appendix~\ref{app:record:review}). With an exact reference, the 0\,dB cell with $N = 4$ then needs 10 wells instead of 5, the $-5$\,dB cell with $N = 16$ needs 18 instead of 11, and the $-5$\,dB cell with $N = 4$ no longer reaches power 0.8 within 40 wells. The three other cells are unchanged. Because a shared training set affects all blind wells of a realization alike, the power of the calibrated test does not approach 1 as wells are added: its limit is 0.37 and 0.46 in the two cells with $N = 4$ at 10 and $-5$\,dB. At $\sigma_{\mathrm{ref}} = 0.5$\,ms three cells still reach 0.8 (5, 11 and 20 wells), at 1\,ms two (16 and 25 wells, both with $N = 16$), and at 1.5\,ms or more none. The intra-class correlations come from eight realizations and are imprecise, so these numbers indicate an order of magnitude. \paragraph{Estimand, assumptions and scope.} -The win rate estimates the probability that, for the networks trained on one training set, the \mRML{} has a lower band RMSE than the best deterministic tie at a blind well drawn from the same field. It is conditional on the training set, not an average over training sets: the clustering of wells that share training data is what makes the nominal sign test anti-conservative. The intra-class correlation (0.45 at most here) was measured from the test wells of eight realizations; it cannot be estimated from one field with a few blind wells, so a field analyst must assume or bound it. The reference error is Gaussian, has the form of the design above and is independent of the predictions, and the crossing point $\sigma/\sqrt2$ assumes an unshrunk oracle (Corollary~\ref{cor:tolerance}). The accuracy needed, about 1\,ms for a feasible test, is a phase error of $18^\circ$ at 50\,Hz, and a time--depth reference independent of the seismic data at that accuracy is demanding. These numbers are conditions for a powered blind-well test in this benchmark, not a standard, and we do not show that they can be met in the field. +For a fixed set of trained networks, the target is the probability that the \mRML{} has a lower band RMSE than the best deterministic tie at a blind well drawn from the same field. The power calculation here uses the win rate pooled across realizations and a beta-binomial model for the dependence of wells within a realization. Its power therefore averages over the variation represented by those realizations. The intra-class correlation (0.45 at most here) was measured from the test wells of eight realizations; it cannot be estimated from one field with a few blind wells, so a field analyst must assume or bound it. The reference error is Gaussian, has the form of the design above and is independent of the predictions, and the crossing point $\sigma/\sqrt2$ assumes an unshrunk oracle (Corollary~\ref{cor:tolerance}). The accuracy needed, about 1\,ms for a feasible test, is a phase error of $18^\circ$ at 50\,Hz, and a time--depth reference independent of the seismic data at that accuracy is demanding. These numbers are conditions for a powered blind-well test in this benchmark, not a standard, and we do not show that they can be met in the field. \paragraph{A worked example.} Consider a comparison at $-5$\,dB with $N = 16$ training wells, where the best deterministic tie has a warp error of $\sigma = 7.3$\,ms on the training wells. Corollary~\ref{cor:tolerance} requires a reference error below $\sigma/\sqrt2 = 5.1$\,ms for the measured advantage to keep its sign, and in the simulation the ranking reversed at 4.3\,ms. Detecting the gain requires much more. A sign test with a power of 0.8 needs 11 blind wells with an exact reference, 16 with $\sigma_{\mathrm{ref}} = 0.5$\,ms and 30 with 1\,ms, and at 1.5\,ms or more 40 wells do not suffice (Table~\ref{tab:t3}). With its null calibrated for wells that share training data, it needs 18 wells with an exact reference, and at 0.5\,ms or more 40 wells do not suffice. An analyst who can estimate the reference error can read the required number of wells from this table, for predictors of comparable skill. The alternative reference we built for Teapot Dome has a residual of 6.75\,ms (Section~\ref{sec:exp:scope}), which exceeds even the limit for the sign of the comparison. diff --git a/paper/sections/C_record.tex b/paper/sections/C_record.tex index 4d6a0f5..25ffad0 100644 --- a/paper/sections/C_record.tex +++ b/paper/sections/C_record.tex @@ -183,7 +183,7 @@ The \mPM{} trains on the label at the posterior-mean warp, $y^{\E[u\mid D]}$, wh Nine analyses read saved predictions, runs and posterior samples; none trained a network. (i) Against the Oracle, the best deterministic tie was 1.11--1.29 times its band RMSE. The \mPM{} and the best saved particle were 0.98--1.09 times the Oracle, and both had an interval below 1 against the best tie in 12 of 12 cells in each of the two sets of realizations. The anchor-only mode was above 1 against the best tie in 3 of 12 and 2 of 12 cells. (ii) In the 6--25\,Hz band the \mPM{} ratios to the best tie were 0.86--0.98 against 0.78--0.92 for $f \ge 6$\,Hz, so that band keeps 0.24--0.63 of the gain at $c = 1$; the labels have 54\% of their power below 6\,Hz and 32\% in 6--25\,Hz, whereas the input seismic has 92\% above 25\,Hz. (iii) Truth-free checks of the posterior (anchor $z^2$, tie correlation, residual spectrum and phase) flagged all four presets that failed but also all three that passed. Only anchor $z^2$ flagged none of the passing presets, and it flagged two of the four failing ones, so no check separates the two groups. On F3 the mean anchor $z^2$ was 0.17 and the mean tie correlation 0.30 ($-0.32$ to 0.68 over twelve folds). (iv) Between-well blur: for each saved prediction, the measured transfer at 21.8\,Hz was compared with the attenuation $\cos(2\pi f\delta)$ expected from the tie error of its labels. In 104 of the 140 combinations with enough power, the geometric-mean ratio was within $\pm10\%$ of 1 (Spearman correlation 0.93 between predicted and measured attenuation); the SMC bank agreed least (5 of 17). This met the declared sufficiency rule, so the one-shift-per-well blur experiment was not run. (v) On F3 the \mPM{} and the SMC bank each beat the selected tie at 1 of 4 wells in band RMSE; on Volve the gate result (bank better at 2 of 6 and 3 of 6 wells, full-band RMSE) was reproduced, and the band correlation of the bank ranged from $-0.41$ to 0.59 (Table~\ref{tab:fieldwells}). (vi) Recomputed from pooled errors, none of 30 points of Fig.~\ref{fig:h2b}b changed side. (vii) The Gaussian bank was 0.0--2.1\% above the SMC bank at $c = 1$ in all four cells (interval of the difference including zero in three). \paragraph{Stronger competitors, equal budgets and a same-target point tie.} -A practitioner-grade tie (calibration, wavelet estimate and smoothing chosen on development realizations only) was not the best deterministic tie at $c = 1$ (ratio to the correlation tie 1.05--1.22 at 10\,dB), so the 8--22\% gain stands; the SMC mean passed five of six cells at $c = 1$ against all point ties on realizations 8--15 and on 16--23. The gain held at 125, 250 and 500 training iterations (six of six cells each). A point tie that optimizes the SMC target directly beat the best deterministic tie in 12 of 12 cells (ratios 0.79--0.91) and was indistinguishable from the SMC mean in nine, so the target, not the sampler, carries the gain (Appendix~\ref{app:record:gp}). +At $c = 1$ and 10\,dB the practitioner tie selected on development realizations had 1.05--1.22 times the error of the correlation tie, pooling the reported ranges for realizations 8--15 and 16--23. At lower signal-to-noise ratios it had the lowest error among the deterministic ties in some cells. With the practitioner tie added to the three locked deterministic competitors, the SMC mean met the margin rule in five of six cells at $c = 1$ on each set of realizations. The gain held at 125, 250 and 500 training iterations (six of six cells each). A point tie that optimizes the SMC target directly beat the best deterministic tie in 12 of 12 cells (ratios 0.79--0.91) and the interval for its comparison with the SMC mean included unity in nine cells, so the target accounts for most of the gain (Appendix~\ref{app:record:gp}). \paragraph{Anchor accuracy and bulk error.} -On eight new realizations (24--31), at 10\,dB and $c = 1$, we varied the true anchor error and the value given to the registration (Appendix~\ref{app:record:gp}). With a correctly stated independent error of 4\,ms the SMC mean was 0.930 and 0.915 times the best deterministic tie; at 2\,ms it was 0.979 and 0.969, and at 1\,ms 0.987 and 0.989 (intervals containing 1 at $N = 4$). The posterior stayed accurate (warp error 0.45--0.55\,ms), so the gain vanished because the deterministic ties became accurate. With a per-well bulk error of 5\,ms added to 2\,ms noise, as the F3 marker--horizon differences suggest, the SMC mean was 1.05--1.30 times the best tie for every stated $\sigma_a$, and its posterior was overconfident (coverage 0.48--0.63). The gain reported above is therefore a property of independent anchor noise of about 4--7\,ms. Declared statements: the gain persists when anchors are more accurate than assumed (does not hold), when $\sigma_a$ is stated correctly (does not hold), and under per-well bulk error (does not hold at any registered value). Details: $\sigma_{\mathrm{true}} \in \{7, 4, 2, 1\}$\,ms, bulk SD 0 or 5\,ms, registered 1--7\,ms; ratios with intervals are in the study outputs. +On eight new realizations (24--31), at 10\,dB and $c = 1$, we varied the true anchor error and the value given to the registration (Appendix~\ref{app:record:gp}). With a correctly stated independent error of 4\,ms the SMC mean was 0.930 and 0.915 times the best deterministic tie; at 2\,ms it was 0.979 and 0.969, and at 1\,ms 0.987 and 0.989 (intervals containing 1 at $N = 4$). The posterior stayed accurate (warp error 0.45--0.55\,ms) as the deterministic ties improved. At 2\,ms and $N=16$ a small gain remained: 0.969 [0.961, 0.979]. With a per-well bulk error of 5\,ms added to 2\,ms noise, as an exploratory stress test, the SMC mean was 1.05--1.30 times the best tie for every stated $\sigma_a$, and its posterior was overconfident (coverage 0.48--0.63). The larger reductions in error in this study occurred with independent anchor noise of 4--7\,ms. Declared statements: the gain persists when anchors are more accurate than assumed (does not hold), when $\sigma_a$ is stated correctly (does not hold), and under per-well bulk error (does not hold at any registered value). Details: $\sigma_{\mathrm{true}} \in \{7, 4, 2, 1\}$\,ms, bulk SD 0 or 5\,ms, registered 1--7\,ms; ratios with intervals are in the study outputs. diff --git a/paper_gp/README.md b/paper_gp/README.md index f61bab0..54350d8 100644 --- a/paper_gp/README.md +++ b/paper_gp/README.md @@ -2,8 +2,8 @@ The submission version for *Geophysical Prospecting* (GP; EAGE/Wiley; Original Paper), the venue fixed on 13/11/2026 (`../docs/research/venue-survey.md` §7, `../docs/plan.md` §12 item 51). -`main.tex` is the article (37 pages double-spaced, with Appendix A; tables, legends and figures at the end); `supplement.tex` -is its Supporting Information (80 pages). The full-length manuscript in `../paper/` stays the master +`main.tex` is the article (46 pages, with double-spaced text and Appendix A; tables, legends and figures at the end); `supplement.tex` +is its Supporting Information (84 pages). The full-length manuscript in `../paper/` stays the master text. The condensed *Computers & Geosciences* version (`paper_cg/`, Elsevier CAS) was removed from the working tree on 16/11/2026 at the user's request; it is recoverable from git (commit `883dccf`). @@ -14,11 +14,12 @@ the same day used the Wayback copy of the 2022 guide (item 55); details and sour ## Relation to the other versions -- `main.tex` was derived from the humanized `paper_cg/main.tex` (16/11/2026; that folder is now - removed) and then rewritten after the live guide. No new result numbers: every number in it appears - in `../paper/` (sources in `../paper/README.md`). A token guard against the pre-guide version found no - number dropped and only two added: "2026" (date in the AI statement) and an exponent in Appendix A - copied from `../paper/sections/A_proofs.tex`. +- `main.tex` was derived from the humanized C&G version and rewritten for the live GP guide. + The current article gives the nominal and replication intervals, point-tie comparisons, + anchor sensitivity, misspecification and per-well results in the main tables. The + [numerical guard](../docs/research/gp-referee/numerical-guard.md) uses `eff975c` as its + Git baseline and checks the result tables against saved sources. The pre-GP-revision + snapshot was recovered from Claude's local file history for comparison. - The abstract is a verbatim copy of `../paper/sections/00_abstract.tex`. Check after any abstract edit: ``` @@ -36,7 +37,7 @@ the same day used the Wayback copy of the 2022 guide (item 55); details and sour number prefixed S. The guide asks for basic LaTeX "avoiding complicated macros or cross-references", so `main.tex` writes its references to the Supporting Information as plain text (Section S6.1, Table S9, Corollary S1, Lemma S2, ...). `check_si_refs.py` maps each of them to its label and - compares with `supplement.aux` (24/24 OK on 16/11/2026); run it after any change in `../paper/sections/`. + compares with `supplement.aux` (24/24 for the current draft); run it after any change in `../paper/sections/`. ## Build @@ -50,13 +51,14 @@ reads current numbers. pdflatex supplement && bibtex supplement && pdflatex supplement && pdflatex supplement pdflatex main && bibtex main && pdflatex main && pdflatex main python3 check_si_refs.py +python3 check_numbers.py # requires the saved derived outputs ``` ## GP checklist (live guide, read 16/11/2026) | Requirement | State | |---|---| -| Original Paper; no word or page limit | 37 pages double-spaced; body about 4,000 words (crude count with inline math, without captions, tables and Appendix A) | +| Original Paper; no word or page limit | 46 submission pages; roughly 5,300 body words excluding the abstract, references, captions, tables and Appendix A. The [Wiley guide](https://onlinelibrary.wiley.com/page/journal/13652478/homepage/forauthors.html), checked on 18 November 2026, lists no word or page cap for Original Papers. | | Order: title, running title, authors, affiliations; Acknowledgments; Abstract and keywords; Data Availability Statement; main text; References; Tables; Figure legends; Appendices; Figures (each on its own page, in order of citation) | yes, in that order; tables and figures are not floats, so the order is fixed; each table page carries its title and footnotes | | Basic LaTeX, no complicated macros or cross-references | article class; simple macros expanded; SI references as text | | Double spacing, single column, line numbers | `setspace`, `lineno` | @@ -84,8 +86,7 @@ of interest statement (in the submission system); the archive, benchmark (Zenodo and licenses (then add them as [dataset] references); the cover letter (theory and benchmark of well-tie error in seismic porosity prediction, two failed field cases, requirements for blind-well tests); a check that figure axes show quantity, unit and range as the guide asks (the figures were not -redrawn). The abstract has 272 whitespace-separated tokens: fine for GP (no limit stated), but the -*Mathematical Geosciences* fallback needs ≤ 250. `Geophysical Prospecting.pdf` (the guide print) is +redrawn). The abstract is about 300 words. The current GP guide gives no abstract word limit. The *Mathematical Geosciences* fallback needs a shorter abstract. `Geophysical Prospecting.pdf` (the guide print) is the publisher's page; do not commit it unless the user wants it in git. ## Overlap check against the cited literature diff --git a/paper_gp/check_numbers.py b/paper_gp/check_numbers.py new file mode 100644 index 0000000..e04d3cb --- /dev/null +++ b/paper_gp/check_numbers.py @@ -0,0 +1,193 @@ +#!/usr/bin/env python3 +"""Check GP manuscript numbers against the reviewed revision and saved result tables. + +Run from any directory with the derived outputs present. See the numerical +audit in docs/research/gp-referee/numerical-guard.md for scope and provenance. +""" + +import csv +import hashlib +import re +import subprocess +from pathlib import Path + +ROOT = Path(__file__).resolve().parents[1] +OUT = ROOT / "outputs" +BASELINE = "eff975c" +GP_NUMBER_SHA256 = "afb8dbed399fc5935410e3e09f789d0ed19a973561bbf100a5317022d52b4292" +SI_NUMBER_SHA256 = { + "paper/sections/06_experiments.tex": "7981c2a15fdde66036f8ce281549473cc8e22ee49155da94de679cfff857f8ee", + "paper/sections/C_record.tex": "dc646ce7e0dd808986317b1150713594c49e865be99a97e6629978ff985fa2cc", +} +SETTINGS = ((r"10\,dB", "R10"), (r"0\,dB", "R0"), (r"$-5$\,dB", "Rm5")) +NUMBER = re.compile(r"[+-]?(?:\d+(?:\.\d+)?|\.\d+)(?:(?:\\,\d{3})+)?(?:[eE][+-]?\d+)?(?:\\%)?") + + +def require(condition, message): + if not condition: + raise SystemExit(f"FAIL: {message}") + + +def git(*args): + return subprocess.check_output(["git", *args], cwd=ROOT) + + +def baseline(path): + return git("show", f"{BASELINE}:{path}") + + +def table(tex, label): + i = tex.index(r"\label{tab:" + label + "}") + return tex[i:].split(r"\end{tabular}", 1)[0].split(r"\toprule", 1)[1] + + +def cells(tex): + """Return all data rows, including text labels but excluding rules and headers.""" + body = tex.split(r"\midrule", 1)[1] + return [ + tuple(c.strip() for c in line.strip()[:-2].split("&")) + for line in body.splitlines() + if line.strip().endswith(r"\\") and "&" in line + ] + + +def read(path): + with (OUT / path).open(newline="") as f: + return list(csv.DictReader(f)) + + +def pick(rows, **criteria): + matches = [r for r in rows if all(r[k] == v for k, v in criteria.items())] + require(len(matches) == 1, f"{criteria} selected {len(matches)} source rows") + return matches[0] + + +def interval(r, lo="ratio_lo", hi="ratio_hi"): + return f"{float(r['ratio']):.3f} [{float(r[lo]):.3f}, {float(r[hi]):.3f}]" + + +def check_h2a(tex): + expected = [] + for status, directory in (("Hash-locked", "p2r"), ("Replication", "replication")): + source = read(f"{directory}/summary/h2a.csv") + for snr, regime in SETTINGS: + row = [status, snr] + for n in ("4", "16"): + r = pick(source, regime=regime, c="1.0", n_train=n, candidate="B3d-Sa", competitors="point_ties") + row.extend((interval(r), f"{float(r['dpcc']):+.3f}")) + expected.append(tuple(row)) + require(cells(table(tex, "h2a")) == expected, "H2a ratios, intervals, correlation or row labels") + + +def check_point_ties(tex): + point = read("point_tie/ratios.csv") + optimized = read("gp_review/e4/ratios.csv") + comparisons = ( + ("B", "Best saved particle / best deterministic tie"), + ("C", "Anchor mode / best deterministic tie"), + ("A", "SMC mean / best saved particle"), + ("D", "SMC mean / anchor mode"), + ("E4-2", "SMC mean / optimized SMC point tie"), + ) + expected = [] + for snr, regime in SETTINGS: + for i, (cmp, name) in enumerate(comparisons): + source = optimized if cmp == "E4-2" else point + ratios = [interval(pick(source, regime=regime, c="1.0", n_train=n, cmp=cmp), "pct_lo", "pct_hi") + for n in ("4", "16")] + expected.append((snr if i == 0 else "", name, *ratios)) + require(cells(table(tex, "pointties")) == expected, "point tie ratios, intervals or row labels") + + +def check_sigma(tex): + locked_ratios = read("p2r/summary/sigma_a.csv") + followup_ratios = read("replication/summary/sigma_a.csv") + post = read("p2r/summary/sigma_post.csv") + followup_post = read("replication/summary/sigma_post.csv") + nominal = read("p2r/summary/h2a.csv") + arms = ( + (0, "3.5", "R10_sa3.5"), (0, "3.5, fixed", "R10_sa3.5_fixhyper"), + (0, "7", "R10"), (0, "14", "R10_sa14"), + (2, "3.5", "Rm5_sa3.5"), (2, "7", "Rm5"), (2, "14", "Rm5_sa14"), + ) + expected = [] + for i, sigma, setting in arms: + snr, regime = SETTINGS[i] + ratios = [] + for n in ("4", "16"): + if sigma == "7": + r = pick(nominal, n_train=n, c="1.0", regime=regime, candidate="B3d-Sa", competitors="point_ties") + elif sigma == "3.5, fixed": + ratios.append("--") + continue + elif i == 0: + r = pick(locked_ratios, n_train=n, c="1.0", sigma_a_reg_ms=f"{float(sigma)}") + else: + r = pick(followup_ratios, n_train=n, c="1.0", setting=setting) + ratios.append(interval(r)) + exploratory = sigma == "3.5, fixed" or (i == 2 and sigma != "7") + r = pick(followup_post if exploratory else post, setting=setting, c="1.0", n_train="16") + posterior = [f"{float(r[k]):.2f}" for k in ("sigma_post_ms", "warp_rmse_ms", "warp_cov90")] + expected.append((snr, sigma, *ratios, *posterior, "Exploratory" if exploratory else "Locked")) + require(cells(table(tex, "sigmaa")) == expected, "anchor uncertainty ratios, intervals or warp summaries") + + +def check_e1(tex): + summary = Path("gp_review/e1/summary") + ratio = read(summary / "ratios.csv") + posterior = read(summary / "p4_posterior.csv") + expected = [] + for condition in ("iid7-reg7", "iid4-reg4", "iid4-reg7", "iid2-reg2", "iid2-reg7", + "iid1-reg1", "iid1-reg7", "bulk-reg2", "bulk-reg5.4", "bulk-reg7"): + model, registered = condition.split("-reg") + iid, bulk = (model[3:], "0") if model.startswith("iid") else ("2", "5") + intervals = [interval(pick(ratio, condition=condition, n_train=n, cmp="P1/point_ties"), "pct_lo", "pct_hi") + for n in ("4", "16")] + r = pick(posterior, condition=condition, n_train="16") + expected.append((iid, bulk, registered, *intervals, f"{float(r['SMC_warp_rmse_ms']):.2f}", + f"{float(r['SMC_cov90']):.2f}")) + require(cells(table(tex, "anchornoise")) == expected, "E1 ratios, intervals, warp errors or coverage") + + +def number_tokens(source): + return NUMBER.findall(re.sub(r"(?`) | `ml_porosity/`, `scripts/`, `operations/`, `tests/`, `configs/` (six locked protocols with `.sha256` and, from P3 on, `.lock.json`), `paper/` | -| derived data | five `tar.gz` archives, hashed in [`MANIFEST.json`](MANIFEST.json) | every output file that a number of the manuscript is computed from, split by data licence | +| derived data | five `tar.gz` archives, hashed in [`MANIFEST.json`](MANIFEST.json) | saved derived inputs and results, split by data licence | | benchmark package | separate deposit, documented in [`../benchmark/README.md`](../benchmark/README.md) | 658 synthetic tasks with their true warps and labels (public, for controlled comparisons rather than blind evaluation), 46,320 reference runs, a scorer | | clean-room check | [`verify_report.md`](verify_report.md) | the summary, post hoc, table and figure stages rerun from the code and the archives only | @@ -20,15 +20,15 @@ Each archive stores its members as `outputs/`. Extract every archive in th ```bash for a in ML-Porosity_derived_*.tar.gz; do tar -xzf "$a"; done -.venv/bin/python scripts/39_repro_package.py check --root . # sha256 of all 11,112 files against MANIFEST.json +.venv/bin/python scripts/39_repro_package.py check --root . # sha256 of all 15,464 files against MANIFEST.json ``` | archive | files | size (unpacked / packed) | licence | content | |---|---|---|---|---| -| `ML-Porosity_derived_f3_results.tar.gz` | 9,044 | 431 MB / 164 MB | CC BY-SA 3.0 | summaries, verdicts, post hoc tables, run-level metric tables, posterior summaries, and the small derived inputs (F3 well file, tie QC, wavelets, warp prior, D2 horizon cache) | +| `ML-Porosity_derived_f3_results.tar.gz` | 13,391 | 587.9 MB / 220.2 MB | CC BY-SA 3.0 | summaries, verdicts, post hoc tables, run-level metric tables, posterior summaries, and the small derived inputs (F3 well file, tie QC, wavelets, warp prior, D2 horizon cache) | | `ML-Porosity_derived_f3_predictions.tar.gz` | 1,950 | 2.13 GB / 2.11 GB | CC BY-SA 3.0 | saved test predictions of the registered runs (P1, P2, P2r, T2, protocol_bench, P3), and the P2r SMC particles of the S4 cells, which the protocol_bench lock hashes | | `ML-Porosity_derived_f3_volume.tar.gz` | 10 | 627 MB / 505 MB | CC BY-SA 3.0 | descriptive F3 porosity volume of the 20 P3 deployment models (649 interior inlines) | -| `ML-Porosity_derived_volve.tar.gz` | 97 | 10.6 MB / 8.9 MB | CC BY-NC-SA 4.0 | Volve well data on seismic time, P4 summaries, post hoc tables, and the applicability tables (F3 and Volve) | +| `ML-Porosity_derived_volve.tar.gz` | 102 | 10.8 MB / 8.9 MB | CC BY-NC-SA 4.0 | Volve well data on seismic time, P4 summaries, post hoc tables, F3/Volve applicability tables and the mixed GP field tables and reports | | `ML-Porosity_derived_teapot.tar.gz` | 11 | 0.6 MB / 0.1 MB | CC0 1.0 (to be verified) | Teapot Dome inventory (headers and curve coverage) and pilot P-a (knots, picks); no porosity | `MANIFEST.json` lists, for each file, its archive, the script that produced it, its size and the sha256 of its @@ -134,7 +134,7 @@ resumed only the inference (audit in `outputs/p3/volume_recovery.json` and `comp `scripts/39_repro_package.py verify` copies the code (the tracked and untracked non-ignored files, without `logs/`, `refs/`, `code_thesis/`, `outputs_thesis/` and `.agents/`) into an empty folder, extracts the five archives there, -deletes the paper figures and the benchmark reference tables, and runs twelve stages with that folder first on the +deletes the paper figures and the benchmark reference tables, and runs the verification stages with that folder first on the Python path. No SEG-Y, Volve or Teapot raw data are present; the tracked F3 well files are. An audit hook logs every file each stage opens, and a read of the original repository counts as a failure. Each rewritten file is then compared with the original: by bytes, then by value (csv, json, npz, md), and the figures pixel by pixel after @@ -160,7 +160,7 @@ CUDA_VISIBLE_DEVICES= OMP_NUM_THREADS=2 MKL_NUM_THREADS=2 OPENBLAS_NUM_THREADS=2 | figures_bench | `scripts/38_bench_figures.py` | `bench_s1.pdf`, `bench_s8.pdf` | | s8_flipband | `scripts/38_bench_figures.py --flipband` | the cos/cos² table of the S8 discussion (stdout) | -Result of the latest run, 2026-11-09 (08:33–08:54 UTC, 21 min on CPU; working tree at 8d5befb with the figure +Result of the original 12-stage run, 2026-11-09 (08:33–08:54 UTC, 21 min on CPU; working tree at 8d5befb with the figure relabelling not yet committed), in [`verify_report.md`](verify_report.md): all twelve stages exit 0, and no stage reads a file outside the clean room. Of the 66 files they rewrite, 63 are identical in bytes (the eight manuscript figures: identical pixels at 110 dpi) and 3 are equal in value: two gzip tables with zero difference, and @@ -169,8 +169,7 @@ quick-look PNGs and the copy of the reference tables inside the benchmark packag is a separate deposit). In the same clean room, `pytest tests/test_d2_misspec.py` passes 15/15 with none skipped, so the D2 generator reproduces the P2r fingerprints from the tracked F3 files and the archived inputs alone. -The training stages are not part of this check: they need GPUs for hours (Section 4). Their saved predictions -and metric tables are in the archives, so every reported number is recomputed from them. +The clean-room stages run on CPU and start from the saved artifacts in the archives. The training commands and their original hardware are listed in Section 4. ## 6. Deviations to report with the results @@ -197,6 +196,25 @@ and metric tables are in the archives, so every reported number is recomputed fr refuses when the tracked files differ from the requested revision. Nothing is uploaded: the deposit (archives, code snapshot, benchmark package) needs the authors' account, author list and licence decisions. -## Not yet archived (17/11/2026) +## 8. Geophysical Prospecting revision -The analyses added during the journal review (`outputs/gp_review/`, scripts 51–56, declared in `docs/research/gp-review-experiments.md` and `gp-review-analyses.md`) are not in the five archives and have no clean-room verify stage: E1, E2, E4, E5 and E6 retrain networks and need particles or a GPU. Their summaries are `docs/research/gp-review-results.md` and `outputs/gp_review/*/summary*`; each retraining experiment first reproduced its registered rows exactly (maximum deviation 0). Rebuild the archives with `scripts/39_repro_package.py build` and rerun `verify` after extending its stage list. +The five archives now include 3,384 files under `outputs/gp_review/`: saved cell-level results, run and posterior summaries, and tables for the exploratory analyses A1–A9 and experiments E1, E2, E4, E5 and E6. The F3 results archive also contains the replication cell metrics and the correlated sign-test table used by the aggregation. The field table and combined reports cover F3 and Volve and are stored in the Volve archive. Their combined-data licence still needs author approval before deposit. + +The following targeted check verifies all 15,464 extracted files against the manifest and reruns the GP aggregation from the archived cells. It writes a report inside the clean room. + +```bash +CUDA_VISIBLE_DEVICES= OMP_NUM_THREADS=2 MKL_NUM_THREADS=2 OPENBLAS_NUM_THREADS=2 \ + .venv/bin/python scripts/39_repro_package.py verify --work outputs/repro/gp_verify \ + --only gp_review_a_tables gp_review_e456_summary gp_review_e2_summary \ + gp_review_e1_summary gp_review_field_table gp_review_misspec_table +``` + +| Stage | Recomputed from archived inputs | +|---|---| +| `gp_review_a_tables` | 14 numeric tables and decision records from A1–A9. A1 uses the competitor rows available at its original aggregation. | +| `gp_review_e456_summary` | 15 outputs of the point-tie optimization, mean-label and equal-budget studies | +| `gp_review_e2_summary` | Five outputs of the practitioner tie comparison | +| `gp_review_e1_summary` | Seven outputs of the anchor-error study | +| `gp_review_field_table`, `gp_review_misspec_table` | Two LaTeX table bodies for the GP manuscript | + +Verification on 18 November 2026 regenerated all 43 files byte for byte. The six stages exited successfully, with zero reads of the original repository or files outside the package within the clean-room outputs. Particle and prediction NPZ files from `gp_review/` are excluded. This check covers aggregation from the saved cells. Registrations and training are documented in `docs/research/gp-review-experiments.md` and `docs/research/gp-review-analyses.md`. The combined editorial reports preserve the original notes and manuscript line references from that run. The GP anchor-error table is checked against the regenerated E1 summary by the manuscript's numerical guard. diff --git a/scripts/39_repro_package.py b/scripts/39_repro_package.py index 0c99d81..90c55bf 100644 --- a/scripts/39_repro_package.py +++ b/scripts/39_repro_package.py @@ -147,6 +147,21 @@ RULES = [ ("lambda_limit/*", "f3_results", "scripts/41_lambda_limit.py"), ("point_tie/*", "f3_results", "scripts/44_point_tie_arm.py"), ("band_spectra/*", "f3_results", "scripts/40_band_spectra.py"), + # Saved cells and summaries for the exploratory GP revision. Keep mixed field tables with Volve. + ("gp_review/*.npz", None, ""), + ("gp_review/a7/*", "volve", "scripts/51_gp_review.py --stage a7"), + ("gp_review/a_results.md", "volve", "scripts/51_gp_review.py"), + ("gp_review/a_sections.json", "volve", "scripts/51_gp_review.py"), + ("gp_review/tables/field_wells.tex", "volve", "scripts/55_gp_field_table.py"), + ("gp_review/tables/misspec.tex", "f3_results", "scripts/56_gp_misspec_table.py"), + ("gp_review/tables/anchornoise.tex", "f3_results", "E1 table formatted from scripts/54_gp_anchor_noise.py summary"), + ("gp_review/a[1-9]/*", "f3_results", "scripts/51_gp_review.py"), + ("gp_review/e1/*", "f3_results", "scripts/54_gp_anchor_noise.py"), + ("gp_review/e2/*", "f3_results", "scripts/53_gp_practitioner_tie.py"), + ("gp_review/e[456]/*", "f3_results", "scripts/52_gp_experiments.py"), + ("replication/train/*/cells/*.csv", "f3_results", "scripts/run_r6.sh"), + ("replication/arms/*.csv", "f3_results", "scripts/run_r6.sh arms"), + ("r6/a1_nstar.csv", "f3_results", "scripts/48_r6_cheap.py"), # P3 F3 field test (protocol_f3; reproduce from tag protocol-f3) ("p3/summary/predictions.npz", "f3_predictions", "scripts/20_summarize_f3.py"), ("p3/summary/*", "f3_results", "scripts/20_summarize_f3.py"), @@ -194,6 +209,12 @@ STEPS = [ ("referee_r5_f2", ["scripts/45_referee_r5_followups.py", "--stage", "f2"], "files"), ("lambda_limit_summary", ["scripts/41_lambda_limit.py", "--stage", "summary"], "files"), ("point_tie_summary", ["scripts/44_point_tie_arm.py", "--stage", "summary"], "files"), + ("gp_review_a_tables", ["scripts/51_gp_review.py", "--repro-tables"], "files"), + ("gp_review_e456_summary", ["scripts/52_gp_experiments.py", "--stage", "summary"], "files"), + ("gp_review_e2_summary", ["scripts/53_gp_practitioner_tie.py", "--stage", "summary"], "files"), + ("gp_review_e1_summary", ["scripts/54_gp_anchor_noise.py", "--stage", "summary"], "files"), + ("gp_review_field_table", ["scripts/55_gp_field_table.py"], "files"), + ("gp_review_misspec_table", ["scripts/56_gp_misspec_table.py"], "files"), ("figures_main", ["scripts/22_paper_figures.py"], "figures"), ("figures_bench", ["scripts/38_bench_figures.py"], "figures"), ("s8_flipband", ["scripts/38_bench_figures.py", "--flipband"], "stdout"), @@ -202,6 +223,29 @@ STEPS = [ REPO_OUTPUTS = {"bench_tables": ["benchmark/reference/cells.csv", "benchmark/reference/main_table.md"]} NO_CODE = ("logs/", "refs/", "code_thesis/", "outputs_thesis/", ".agents/") +# A stage that silently skips a missing input must not pass by leaving an extracted output in place. +GP_EXPECTED = { + "gp_review_a_tables": ( + "a1/a1_point_ties.csv", "a1/a1_warp_checks.csv", "a2/a2_budgets.csv", "a3/a3_transfer.csv", + "a3/a3_decision.json", "a4/a4_band_ratios.csv", "a4/a4_spectra.csv", "a5/a5_flags.csv", "a5/a5_f3.csv", + "a6/a6_nstar.csv", "a6/a6_f2_power.csv", "a7/a7_wells.csv", "a8/a8_pooled.csv", "a9/a9_gaussian_bank.csv", + ), + "gp_review_e456_summary": ( + "e4/optimizer.csv", "e4/ratios.csv", "e4/reading.json", "e4/summary.md", + "e5/coverage.csv", "e5/label_distance.csv", "e5/ratios.csv", "e5/reading.json", "e5/summary.md", + "e6/band_rmse_by_budget.csv", "e6/h2a_by_budget.csv", "e6/reading.json", "e6/reproduction.csv", "e6/runs.csv", + "e6/summary.md", + ), + "gp_review_e2_summary": tuple(f"e2/{name}" for name in ( + "h2a_with_b3p.csv", "ratios.csv", "reading.json", "summary.md", "warp_rmse.csv", + )), + "gp_review_e1_summary": tuple(f"e1/summary/{name}" for name in ( + "means.csv", "p4_posterior.csv", "posterior_cells.csv", "ratios.csv", "summary.md", "verdict.json", "warp_rmse.csv", + )), + "gp_review_field_table": ("tables/field_wells.tex",), + "gp_review_misspec_table": ("tables/misspec.tex",), +} + SITECUSTOMIZE = ''' import os, sys _log = os.environ.get("REPRO_AUDIT_LOG") @@ -465,9 +509,11 @@ def audit_summary(opens: Path, repo: Path, work: Path) -> dict: def verify(a) -> None: + if unknown := set(a.only or ()) - {name for name, _, _ in STEPS}: + raise SystemExit(f"unknown verify stages: {', '.join(sorted(unknown))}") man = json.loads(MANIFEST.read_text(encoding="utf-8")) - out = Path(a.out) - work = Path(a.work) if a.work else out / "work" + out = Path(a.out).resolve() + work = Path(a.work).resolve() if a.work else out / "work" if work.exists(): shutil.rmtree(work) repo, logs, audit, tmp = work / "repo", work / "logs", work / "audit", work / "raster" @@ -508,13 +554,17 @@ def verify(a) -> None: "code_files": len(files), "package_files": len(man["files"]), "steps": []} steps = [s for s in STEPS if not a.only or s[0] in a.only] for name, argv, kind in steps: + expected = {f"outputs/gp_review/{p}" for p in GP_EXPECTED.get(name, ())} before = set(p.relative_to(repo).as_posix() for p in (repo / "outputs").rglob("*") if p.is_file()) t_step = time.time() r = run_step(name, argv, repo, logs, audit) au = audit_summary(logs / f"{name}.opens", repo, work) cmp_ = [] - for rel in au["written"]: + for rel in sorted(set(au["written"]) | expected): f = repo / rel + if rel in expected and (rel not in au["written"] or not f.is_file() or rel not in by_path): + cmp_.append({"path": rel, "status": "missing", "detail": "not regenerated from the archive"}) + continue if rel.startswith("outputs/") and f.is_file(): if rel in by_path: cmp_.append({"path": rel, **compare_file(f, REPO_ROOT / rel, repo)}) @@ -553,6 +603,10 @@ def verify(a) -> None: report["finished_utc"] = datetime.now(timezone.utc).isoformat(timespec="seconds") (work / "verify.json").write_text(json.dumps(report, indent=1)) write_report(report, work, DOC / "verify_report.md" if not a.only else work / "verify_report.md") + failed = [s["name"] for s in report["steps"] if s["rc"] or s["original_repo_reads"] or s["read_outside_package"] + or any(c["status"] in ("differs", "missing") for c in s["compared"])] + if failed: + raise SystemExit(f"verification failed in {', '.join(failed)} (details in {work / 'verify.json'})") if not a.keep and not a.only: shutil.rmtree(work) diff --git a/scripts/51_gp_review.py b/scripts/51_gp_review.py index 1e7fb35..8e46305 100644 --- a/scripts/51_gp_review.py +++ b/scripts/51_gp_review.py @@ -307,7 +307,7 @@ def extra_arm_rows(regime: str, c: float, N: int, rep: bool) -> tuple[pd.DataFra # A1 # ---------------------------------------------------------------------------------------------------------------- -def stage_a1() -> list[str]: +def stage_a1(reproduce_original: bool = False) -> list[str]: rng = np.random.default_rng(0) rows, checks, extra_seen = [], [], set() for rep in (False, True): @@ -315,7 +315,14 @@ def stage_a1() -> list[str]: for regime, c, N in A1_CELLS: run = p2r_cell_rows(regime, c, N, rep) arms, adiag = arm_rows(regime, c, N, rep) - ex, exw = extra_arm_rows(regime, c, N, rep) + # The original A1 aggregation preceded E2 and all but one complete E4 cell. + if not reproduce_original or (not rep and (regime, c, N) == ("R10", 0, 16)): + ex, exw = extra_arm_rows(regime, c, N, rep) + if reproduce_original: + ex = ex[ex.method == "SMC-opt"] + exw = {"SMC-opt": exw["SMC-opt"]} + else: + ex, exw = pd.DataFrame(), {} rids = sorted(set(run.rid)) have = [k for k in ((regime, r, c, N) for r in rids) if k in cells] if not len(run) or not have: @@ -964,11 +971,17 @@ def main() -> None: ap.add_argument("--workers", type=int, default=4) ap.add_argument("--force", action="store_true", help="re-aggregate the chosen stages") ap.add_argument("--force-jobs", action="store_true", help="also recompute the per-cell and A5 jobs") + ap.add_argument("--repro-tables", action="store_true", help="regenerate the archived numeric tables from saved cells") args = ap.parse_args() sha = check_declaration() set_threads(2) if os.environ.get("CUDA_VISIBLE_DEVICES", None) != "": os.environ["CUDA_VISIBLE_DEVICES"] = "" + if args.repro_tables: + stage_a1(reproduce_original=True) + for aggregate in (stage_a2, stage_a3, stage_a4, stage_a5, stage_a6, stage_a7, stage_a8, stage_a9): + aggregate() + return workers = min(args.workers, 4) stages = ["a1", "a2", "a3", "a4", "a5", "a6", "a7", "a8", "a9"] if "all" in args.stage else args.stage OUT.mkdir(parents=True, exist_ok=True)