Complete P4 Volve; pivot the manuscript to theory + benchmark

P4 (Volve field case). Add the deviated-well and Volve well builders
(ml_porosity/data/deviated.py, volve_wells.py), the ml_porosity/volve/
pipeline, scripts 23-25, the run_p4 drivers and tests. The protocol
configs/protocol_volve.yaml was locked at 2026-10-29T01:17:42Z before the
run (.sha256, .lock.json) and is committed here after the run. Gate G-D
failed: M2-Sa beats the selected B3 at 2/6 wells (lowo) and 3/6 (slot),
coverage90 is about 0.47, and no method has blind-well skill (R2 < 0).
A post hoc constant at the training-well mean beats every network, so
G-D had no power. The dropped P4x exploratory run is kept as a record
only (exploratory/, docs/research/p4-exploratory.md).

Applicability and Teapot Dome (exploratory, pre-declared). Scripts 26-29
and docs/research/applicability-*.md: F3 and Volve fail C1 and pass C2;
T3 power needs 5-18 blind wells with an exact reference; Teapot T0 and
pilot P-a failed, so Teapot is stopped. Raw Teapot data stay gitignored.

Manuscript (Pivot 1, level A). Reframe paper/ as a theory and synthetic
benchmark paper: Propositions 3-6, Corollaries 3-4, T4 coverage
(script 30) and the post hoc H2b bound check (script 31), with F3/Volve
moved to Appendix B. Correct two earlier claims: the Berkson and
classical bounds differ by 1.5-4.6x at the f^4-weighted band, and the
bank gain exceeds the registered classical bound (7/8 wide cells at
N = 16) but only 3/8 under the post hoc Berkson bound.

Docs. Sync plan, AGENTS.md, README, report.html, theory and technical
overview. The length pass for the venue is dropped by the user
(plan section 12 item 25); the length risk stays recorded as R9.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-10-29 12:18:22 +00:00
parent 7da6b077b6
commit 0cfe202a8b
61 changed files with 7162 additions and 881 deletions

119
AGENTS.md
View File

@@ -1,10 +1,10 @@
# AGENTS.md
Seismic-to-porosity learning on F3 when the well tie is uncertain (RML: training on labels drawn from a well-tie posterior). Paper deadline: Sat 31/10/2026. Gate thresholds never change; only dates do.
Seismic-to-porosity learning on F3 when the well tie is uncertain (RML: training on labels drawn from a well-tie posterior). Paper deadline: **Sat 14/11/2026** (moved on 29/10/2026 from 31/10; Pivot 1, level B, `docs/plan.md` §12 item 22). Gate thresholds never change; only dates do.
Read first: `docs/plan.md` (plan, gates, decisions; §6 roadmap, §10 forbidden claims, §12 decision log), `README.md` (setup, scripts, logging), `docs/theory.md`. Progress page: `report.html`. These docs are in Vietnamese.
## Status (28/10/2026)
## Status (29/10/2026)
- P0, P1 done. P2 closed: gate G-B failed on 26/10 and the P2 verdict stands.
- **P2r** (P2 rerun on new realizations 8–15 under the new pre-registration `configs/protocol_p2r.yaml`) is done and committed (5a6fb2f). Summary in `outputs/p2r/summary/` (`verdict.json`, `summary.md`); details in `docs/plan.md` §12 items 11–14.
@@ -29,11 +29,119 @@ Read first: `docs/plan.md` (plan, gates, decisions; §6 roadmap, §10 forbidden
`docs/research/p3-code-review.md`. `report.html` contains the completed
status and G-C result even without the local output sidecar.
- **P4 Volve is complete** (29/10, 02:21 UTC) on the Linux server (H200, cuda:1
primary arm, cuda:0 σ_a arms in parallel), not on the Windows workstation.
Protocol `configs/protocol_volve.yaml` locked 01:17:42 UTC (`.lock.json`,
`.sha256`); driver `scripts/run_p4.sh`. **G-D: no consistent improvement, not
calibrated** (M2-Sa beats selected B3 at 2/6 wells lowo, 3/6 slot; coverage90
≈ 0.47). No method has blind-well skill on Volve (R² < 0 everywhere, PCC ≤ 0.24);
σ_a arms change nothing. Details: `docs/plan.md` §12 item 20,
`outputs/p4/summary/`. Do not rerun or redesign P4.
- Post hoc, outside the lock (`scripts/25_p4_posthoc.py` → `outputs/p4/posthoc/`):
a constant at the training-well PHIF mean beats every network (macro RMSE
6.03 lowo, 6.59 slot). Between-well level differences dominate the error, so
G-D had no power: Volve is evidence neither for nor against RML.
- **P4x exploratory is dropped** (decision of 29/10/2026). `exploratory/`
and `outputs/p4x/` stay on disk as a record only: do not summarise, cite,
or extend them (no V3). The last `exploratory/run_p4x.sh` job was stopped
at 670/921 (about 04:05 UTC) and killed to free cuda:0; B3d-Sa and V3
never ran. A partial summary generated at 04:07 UTC, before the
decision was seen, has been deleted (`outputs/p4x/summary/` no longer
exists). Do not restart the job or rerun its summarize stage. History: `docs/plan.md` §12 item 21.
- **Pivot 1 activated (29/10/2026)**: the paper is now a theory + synthetic
benchmark paper. Working title: *Label registration error in sparse-well
seismic property learning: theory, a registration-aware benchmark, and the
limits of field validation*. F3 and Volve are scope-bounding cases only.
Decisions (user fixed 1 and 5; agent fixed 2–4): (1) level B, deadline
14/11/2026; (2) misspecification axis S2 is mandatory, narrow scope, locked
in a new `configs/protocol_bench.yaml` before the first run, otherwise the
paper says "controlled synthetic study", not "benchmark"; (3) the mechanism
study T2 is exploratory on realizations 8–15, pre-declared in
`docs/research/t2-mechanism.md`, never confirmatory; (4) venue *Computers &
Geosciences*, fallback *Geophysical Prospecting*; (5) P4x dropped. Full
analysis and plan: `docs/research/pivot-theory-benchmark.md` (§6 has the
decisions and the day-by-day schedule); public field-dataset survey:
`docs/research/field-dataset-survey.md` (no dataset confirmed adequate; no
new field test in this paper).
- **Applicability conditions and a Teapot Dome attempt (29/10/2026,
exploratory; `docs/plan.md` §12 item 23).** Declared in
`docs/research/applicability-teapot.md` before any computation; results in
`docs/research/applicability-results.md`. Retrospective C1/C2
(`scripts/26_applicability.py`): F3 and Volve fail C1 (no blind-well skill
in the seismic band) and pass C2. T3 power (`scripts/27_t3_power.py`): with
an exact reference a sign test needs 5–18 blind wells in most cells; with
reference errors of 3 ms or more, 40 wells do not suffice. Teapot T0 failed
(at most 2 wells with an independent time–depth reference), and the pilot
P-a requested by the user failed (horizon–top knot error 6.75 ms against a
1.5 ms tolerance). Teapot is stopped; the user chose to return to the
level-B schedule. The raw Teapot data (`data/Teapot/`, 1.7 GB) are
gitignored.
- **Level A writing done early (29/10/2026; `docs/plan.md` §12 item 24).**
`paper/` now follows the Pivot 1 frame (55 pages, compiles cleanly):
Propositions 3–6 (classical/Berkson tie error, calibrated bank with a
fourth-order population gain, coverage, misregistered reference),
Corollaries 3–4, T4 (`scripts/30_t4_coverage.py`) and the post hoc H2b
bound check (`scripts/31_p2r_posthoc.py`) in Sec. 6.3, T3 in Sec. 6.5,
field cases in Sec. 6.6 with F3/Volve details moved to Appendix B. Red
TODOs remain for S1–S8, T2 and the authors' declarations. **Self-correction
(29/10, A6):** two earlier agent claims were wrong. The first was "the two
error structures give nearly the same bound (factor < 1.17)". In fact the
f⁴-weighted distortion sits at 67–72 Hz, where the Berkson integral is
1.5–4.6 times the classical one at σ = 1.5–2.5 ms. The second was "the bank
gain exceeds the population bound". That holds only for the registered
classical bound (7/8 wide cells at N = 16). Under the post hoc Berkson
bound, the natural one for posterior-mean labels, only 3/8 cells exceed it
(all at c = 1), and at most 1/8 at the measured warp error. Script 31 now
computes both bounds and reads the Oracle npz files (about 6 min). The paper
(Sec. 4.3, 6.3 with a 1/B_b column in `tab:h2b`, 6.4, 7, abstract,
introduction, conclusion) and the docs were corrected. **Length risk:**
the main text is about 14,750 words (crude count after A6) against a Computers & Geosciences limit
of about 5,500 (secondary source; not yet checked on the official page).
The user dropped the length pass for the venue on 29/10/2026 (`docs/plan.md`
§12 item 25); the risk stays recorded as R9 with no mitigation.
- Committed and pushed on 29/10/2026 with the tag `protocol-volve` (the Volve
code hash recomputed from that tree matches `configs/protocol_volve.lock.json`):
the P4 code, `configs/protocol_volve.*`, scripts 26–31, the `docs/research/`
additions, the P4x record (`exploratory/`, `docs/research/p4-exploratory.md`),
`.gitignore`, and the 29/10 paper/docs edits. Run logs `logs/*.out` stay
untracked, as before (`docs/plan.md` §12 item 25).
## Next
1. **P4 Volve** (pipeline 28/10, runs 29/10, gate G-D).
2. **P5 writing** (29–30/10). Include the negative P3 result and the previously
recorded P2r deviation. If late, cut scope in the order given in `docs/plan.md` §6.
Schedule: `docs/plan.md` §6.1 (level B, 29/10 → 14/11/2026). Cut-scope order
if late is given there; never cut thresholds.
1. **Dataset citations (30–31/10).** Level A writing is done (plan §12 item 24).
Add the F3 and Volve dataset citations to `paper/refs.bib`. The length pass
for the venue was dropped by the user on 29/10/2026 (plan §12 item 25): do
not schedule it. The rest of these two days is buffer.
2. **T2 mechanism study (1/11), exploratory:** declare
`docs/research/t2-mechanism.md` before running. The question is now
whether any bank gain remains beyond the population correction of the
Berkson structure. Five tests, as in the Sec. 6.4 todoblock: (i)
responsibility-weighted warp error vs. mean-warp error; (ii) random GP-noise
bank control; (iii) multimodal-cell split; (iv) Berkson-vs-classical
covariance test for the bulk offset of B3d-Sa and B3c-R, which decides which
bound applies; (v) B3d-Sa retrained at the Oracle's 500 iterations. The
declaration must disclose what was already inspected post hoc on 29/10
(`outputs/p2r/posthoc/`): the Oracle/B3d-Sa and M2-Sa/B3d-Sa ratios and
every bound, (a), (b), b60 and cross-spectral, at σ_post and at the warp
error.
3. **protocol_bench (2–3/11):** add misspecification parameters to
`ml_porosity/data/synth_d2.py` without changing the default path (P2r must
still reproduce); dev on new realizations 902–905 only; lock
`configs/protocol_bench.yaml` + `.sha256` + `.lock.json` before the first
main run. Contents: S1 grid fill (c ∈ {0.5, 1.5}, N ∈ {2, 8}), S2 three
misspec axes (R10, Rm5; c = 1; N ∈ {4, 16}; Oracle, B3c-R, B3d-Sa, M2-Sa),
S3 (B4 under the SMC posterior), S4 (second backbone), S8 (controlled
cycle-skip regime). Realizations 8–15 for all main cells.
4. **Runs (4–7/11)** on both GPUs, detached with `setsid nohup`, via a
`scripts/run_bench.sh` driver with runlog. Report results as they come out.
5. **S7 packaging (8–10/11):** one command to generate, one to score, reference
tables, README, hashes, Zenodo deposit; then rewrite the results sections.
6. **Review and submission (11–14/11):** internal review, figures, proof
appendix, final novelty scan, quartile check, preprint, submit to
*Computers & Geosciences*.
## Conventions
@@ -43,6 +151,7 @@ Read first: `docs/plan.md` (plan, gates, decisions; §6 roadmap, §10 forbidden
- **Git:** work on `main`. Do not create branches unless the user explicitly asks. End commit messages with a co-author line for the agent.
- **Language:** code, figures, paper text and commit messages in academic English. Explanations to the user in Vietnamese.
- **Decisions:** decide from evidence and proceed. Do not block on supervisor (GVHD) sign-off.
- **Keep docs in sync (every task):** whenever you change anything (a run starts, finishes, fails or is stopped; a result, decision, deadline, protocol, script or file is added or changed), update in the same turn every file that states it: `report.html` (task status and notes, result cards, FINDS, DECISIONS, LOG), `docs/plan.md` (§0, §6 roadmap, §12 decision log), `AGENTS.md` (Status, Next), and where relevant `README.md` (scripts, run commands), `paper/README.md` (number sources), `docs/technical_overview.md` and `docs/research/*.md`. Before ending the turn, grep these files for older statements about the same item (for example "running", old counts or dates) and correct them, so no two files disagree. After editing `report.html`, check that its data block still parses (balanced brackets and quotes).
- **GPU (shared server):** choose cuda:0 or cuda:1 by free memory and load. Never touch other users' jobs. Set `OMP_NUM_THREADS`, `MKL_NUM_THREADS` and `OPENBLAS_NUM_THREADS` explicitly when running by hand (the machine default is 40).
- **Long runs:** detach multi-hour runs with `setsid nohup ... &` so they survive the agent session. Wrap runs with `scripts/runlog.sh` or the `run_p*.sh` drivers. Scripts 11/14/15 resume by skipping finished cells.
- `code_thesis/` is the unchanged thesis-code archive (renamed from `test 2/`): do not modify its contents.