Files
ML-Porosity/AGENTS.md
lamlvh 2e4f618947 Record completion of P6 main runs and the server move
- All protocol_bench main runs finished 30/10/2026 02:16 UTC: S1 560 train
  cells, S2 224 posteriors + 224 train cells, S3+S4+S8 384 train jobs.
  Summarize has not been run yet.
- docs/research/server-migration.md: the repository folder is synced as a
  whole to the new server; outputs/ stays out of git. Lists what is not in
  git and why it matters; unpushed_outputs.sha256 holds sha256 for all
  21,987 files under outputs/ to verify the sync.
- Plan §12 item 26, AGENTS.md status and next steps, report.html tasks and
  log, README supervisor note, bench-protocol status.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-30 02:18:20 +00:00

17 KiB
Raw Blame History

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 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 (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.

    • H2a pass (R10, R0, Rm5). The secondary comparison against B3d holds only for R10. H2b pass (N = 16: 8/8, ρ = −0.85).
    • σ_a arm fails: H2a depends on σ_a being set correctly. This is the main risk for G-C, because σ_a on F3 is unknown.
    • H3 is descriptive only: every ensemble under-covers. No calibration claims.
    • No Pivot 1. P2r is a deviation (designed after P2 failed). The paper's Methods must say so.
  • No P2r jobs are running. Nothing needs resuming.

  • P3 F3 is complete (28/10, 06:50 +07:00): 1,320 nested-LOWO trajectories, diagnostics/ablations, 20 deployment models, and the full 649-interior-inline volume. G-C failed both conditions: improvement at 1/4 wells; macro coverage80 = 52.38%, coverage90 = 60.91%. Do not claim field superiority or calibrated uncertainty. The original P2/P2r conclusions are unchanged.

    • Frozen protocol: configs/protocol_f3.yaml + .sha256 + .lock.json. The lock includes code, environment and inputs; do not regenerate it after results. Code changes require an explicitly documented new version.
    • The first run stopped at 132/649 volume inlines because Windows locked outputs/p3/progress.js. operations/resume_f3_volume.py recovered only inference with dashboard retries, preserving registered code and completed rows. Audit: outputs/p3/volume_recovery.json, completion_checks.json.
    • Details: docs/plan.md §12 items 15–16 and 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).

  • P6 (level-B benchmark) started early on 29/10/2026; all main runs finished 02:16 UTC 30/10/2026 (docs/plan.md §12 item 26; code in commit 381b5ff). Subagents: Fable for reasoning-heavy work, Opus for routine work.

    • p6-gen done: misspec= in ml_porosity/data/synth_d2.py (rock physics, wavelet, drift); misspec=None reproduces the P2r fingerprints bit for bit (tests/test_d2_misspec.py); presets in configs/d2_synth_bench.yaml are still PLACEHOLDER; QC in scripts/33_bench_generator_qc.py, notes in docs/research/bench-generator.md. The uniform rock-physics error is absorbed by the profiled-α likelihood (control only).
    • T2 done (exploratory; declared and hashed before computing; results docs/research/t2-results.md, outputs/t2/summary.md). B3d-Sa's label error is Berkson at c = 1, so 1/B_b applies and the H2b gain does not exceed the population correction; a GP-noise bank with the posterior's mean and covariance gets most of the c = 1 gain (label augmentation); implicit re-registration is real (8/8 wide cells); no evidence for the multimodal mechanism; about a third of the PM–Oracle gap is training length. Never use T2 to reselect P2r budgets.
    • Runner built (ml_porosity/benchmark/, scripts/34_run_bench.py, 35_bench_calibration.py, scripts/run_bench.sh; design docs/research/bench-protocol.md); a P2r cell reproduces bit for bit through it. S2 levels chosen on dev 902–905. configs/protocol_bench.yaml is locked (29/10 14:39 UTC; sha256 aa763f0a…; TCN budgets 125 from dev; L1 levels above the declared band are disclosed). Main runs started 29/10 14:43 UTC; all four drivers were SIGTERMed at 15:27 when the agent session ended (setsid nohup is not enough). Relaunched in the user's tmux server (15:41 on cuda:0; resized at 16:07 UTC when the other project released both GPUs): p6_s2 (S2, cuda:1, 6 workers), p6_s1a (S1 R10/Rm5/R0, cuda:0, 5 workers), p6_s1b (S1 R0h/R10tb, cuda:1, 2 workers), p6_s348 (S3+S4+S8 train, cuda:0, 4 workers); logs logs/bench_{s2_cuda1,s1a_cuda0,s1b_cuda1,s348_cuda0}.out. Worker count is bounded by 40 CPUs (2 threads each). Since 16:22 UTC operations/p6_supervisor.py (tmux p6_supervisor, log logs/p6_supervisor.out, state logs/p6_supervisor_state.json) checks every 5 min: it relaunches dead unfinished drivers on the card with most free memory (keeping 2.5 GB free, at most 5 restarts each) and gives the workers of a finished driver to the one with most jobs left (21 workers total since 22:26 UTC, when S1 group B was boosted from 2 to 6 workers as the critical path). To change drivers by hand, stop the supervisor first and keep its state file consistent. The GPU co-tenant is the user's own vinhnt job (about 80 GB per card at 16:20 UTC); never touch it. Never run two drivers over the same study/regimes (the runner does not claim jobs). Drivers resume by fingerprint: restart a stopped driver with the same command; never edit locked code or inputs. New code files break the F3/Volve code-hash checks of the working tree; acceptable because P3/P4 are never rerun. Final state (30/10): S2 (224 posterior + 224 train) done 00:12 UTC, S3+S4+S8 train (384) done 00:58, S1 (560 train cells; posteriors done earlier) done 02:16 after a 01:02 split of group B into p6_s1b_r0h and p6_s1b_r10tb (36 workers, CPU-bound). The supervisor was stopped at 02:16; no P6 job is running and nothing needs resuming. Next P6 step: scripts/34_run_bench.py summarize (not run yet), then S7 packaging and the results rewrite.
    • Server move (30/10): the repository folder is synced as a whole to a new server; outputs/ stays out of git. About 600 MB of outputs force-added and pushed at 01:05–01:15 UTC were removed by a history rewrite and force-push at the user's request (main = 381b5ff). What is not in git, with sha256: docs/research/server-migration.md, docs/research/unpushed_outputs.sha256. tmux sessions do not move with the folder.
    • Another project held about 125–142 GB on each H200 from about 13:00 to 16:00 UTC on 29/10 and released it by 16:06; if it returns, keep at least 2.5 GB free per card (about 1.56 GB per SMC worker, 0.7 GB per training worker).

Next

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: done on 29/10/2026 (see Status). Write the paper's Sec. 6.4 todoblock from docs/research/t2-results.md.
  3. protocol_bench: done early (locked 29/10 14:39 UTC). See Status.
  4. Runs: done early (29/10 14:43 → 30/10 02:16 UTC). Next: run scripts/34_run_bench.py summarize on the new server (needs only files in the synced folder), report the S1–S8 verdicts as they come out, including failures.
  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

  • Naming: protocol_p2r = the D2 rerun of P2. "P3" in the plan means the F3 field phase (protocol_f3). Do not reuse the name protocol_p3.
  • Locked protocols: configs/protocol*.yaml are locked by SHA-256 files and git tags. Never edit a locked protocol or relax a threshold. New decisions go in a new protocol with a recorded deviation. Report results as they come out, including failures.
  • No test-label leakage: nothing (shift, checkpoint, hyperparameter) may be chosen using test labels. Design choices come from dev only (realizations 900/901).
  • 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: start multi-hour runs inside the user's tmux server (tmux new-session -d -s <name> -c <repo> "<cmd> >> logs/<name>.out 2>&1") so they survive the agent session; on 29/10 setsid nohup runs were killed when the session ended. 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.
  • User constraint: do not rerun 04_wavelet_tie.py or 09_fit_warp_prior_f3.py, or overwrite their historical artifacts. P3 uses its own training-fold-local estimates and checks the old artifacts' hashes.
  • This Windows workstation: RTX 3060 12 GB, driver 577.00, Python 3.12.16, torch 2.11.0+cu128; versions in requirements-windows-rtx3060.txt. Linux's environment lock is separate. The native driver is scripts/run_p3.ps1; use process-local -ExecutionPolicy Bypass, four workers and two CPU threads per worker. Do not launch another P3 run just because historical logs show a failure: the volume recovery has already completed and passed its audit.

Not in git (other machines)

outputs/, logs/runs/, the large SEG-Y/F3/Volve data, refs/*.pdf and the .venv are gitignored. Sync data/ and outputs/ from the GPU server before running anything that depends on them. Check data with scripts/00_data_manifest.py --check. The protocol hash checks will refuse inputs that do not match.

Skills

Agent skills live in .agents/skills/ (sources in skills-lock.json): scikit-learn, pymc, statistical-analysis, scientific-visualization, scientific-writing, scientific-critical-thinking, literature-review, citation-management, academic-humanizer, mlflow.