Files
ML-Porosity/AGENTS.md
2026-10-27 16:11:21 +00:00

42 lines
3.7 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# 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 (27/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.
## Next
1. **P3 F3 field** (gate G-C, end of 28/10): nested LOWO, ensembles, calibration, ablation, leave-one-anchor-out, volume with uncertainty. The "direction of improvement on synthetic" in G-C comes from the P2r main grid. Lock its protocol first as `configs/protocol_f3.yaml` + `.sha256` (P3 has no protocol yet).
2. **P4 Volve** (pipeline 28/10, runs 29/10, gate G-D).
3. **P5 writing** (29–30/10). 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 (future `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.
- `test 2/` is an archive of the thesis code: do not modify.
## 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.