Implement the frozen F3 protocol, nested LOWO, posterior label banks, ablations, diagnostics, checkpoint validation and full-volume inference. Record the negative G-C result: improvement at 1/4 wells, coverage80 52.38% and coverage90 60.91%, with unchanged thresholds and historical P2 results. Add native Windows logging, the RTX 3060 environment lock, detached runs, and an audited dashboard-lock recovery that preserves frozen scientific code. Update report.html, the plan and agent guidance with completed P3 status. Archive thesis sources under code_thesis with identical Git blobs and record the original-output audit without committing large data or model artifacts. Validation: 129 tests passed, 13 skipped; CUDA end-to-end smoke passed; completion audit verified 1,320 checkpoint/prediction pairs, 28 registration bundles and all 649 interior volume inlines. Scripts 04 and 09 were not rerun. Co-authored-by: Codex <codex@openai.com>
66 lines
5.3 KiB
Markdown
66 lines
5.3 KiB
Markdown
# 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.
|
||
|
||
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)
|
||
|
||
- 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.
|
||
|
||
## 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.
|
||
|
||
## 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.
|
||
- **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.
|
||
- **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.
|