Files
ML-Porosity/docs/research/server-migration.md
lamlvh bbdb82997c Audit the manuscript for unsupported claims and rewrite flagged text
Five independent audits traced every number, citation and claim in the
manuscript to outputs/, the locked protocols, the code and the reference
texts (87 findings, 4 of severity S1). Fixes were verified and applied as
106 exact replacements; a protected-token guard confirms that only the
approved numbers and citations changed. A style pass split seven
overlong sentences. No verdict, gate or threshold changed.

- S1: the two time-depth models were conflated as "up to 36 ms"; the warp
  prior is fitted by MAP-II with sigma_a = 7 ms and sigma_b = 50 ms fixed
  (19 ms comes from a separate ML fit); the Exp. 1 protocol was hash-locked,
  not tagged; PHIE_DT is linear in sonic at all four F3 wells.
- tab:audit now follows outputs/td_qc.csv; unsupported intro citations
  (prabowo2025f3, tao2025structural, DILATE) dropped; claims scoped to the
  regimes actually tested; about 40 small number fixes.
- Restore docs/technical_overview.md (the lecture moves to docs/lecture.md).
- Audit record in docs/research/paper-audit.md; plan, AGENTS.md, report.html,
  paper/README.md and self_review.md synced (69 pages).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-04 08:25:08 +00:00

46 lines
5.5 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.
# Chuyển sang server mới
Ngày viết: **30/10/2026** (server H200 sắp bị thu hồi). Remote: `https://gitea.vts-ai.space/lamlvh/ML-Porosity`, nhánh `main`.
**Cách chuyển:** sync nguyên thư mục repo sang server mới (quyết định của người dùng, 30/10 khoảng 01:30 UTC). Git chỉ giữ code, config, docs và paper như bình thường; không đưa thêm file lớn lên gitea.
## 1. Có trong git
- Toàn bộ code, config, test, docs, paper; `configs/protocol_bench.{yaml,sha256,lock.json}` (khoá 29/10 14:39 UTC).
- Không có gì trong `outputs/`. Khoảng 600 MB output từng được `git add -f` và push lúc 30/10 01:05–01:15 UTC, theo 13 commit. Theo yêu cầu của người dùng, lịch sử đã được viết lại và force-push lúc khoảng 01:40 UTC: `main` = 381b5ff, chỉ code và docs.
## 2. Không có trong git (đi theo bản sync thư mục)
Danh sách từng file của `outputs/`, kèm sha256 (21.987 file, tạo 30/10 khoảng 02:20 UTC sau khi mọi chạy P6 đã xong, gồm cả `outputs/bench/s1`): `docs/research/unpushed_outputs.sha256`. Sau khi sync, kiểm tra bằng `sha256sum -c --quiet docs/research/unpushed_outputs.sha256`.
| Đường dẫn | Dung lượng | Vai trò |
|---|---|---|
| `outputs/bench/s1/` | khoảng 0,2 GB | Kết quả S1 (train cells, npz); `summarize` cần. |
| `outputs/bench/posterior/**/*_particles.npz` | 8,6 GB (784 file) | Particle SMC của P6; cần khi chạy thêm stage train. `summarize` chỉ đọc csv. |
| `outputs/bench/dev/posterior/**/*.npz` | 0,12 GB | Chỉ dùng cho dev. |
| `outputs/p2r/**` (npz) | 8,2 GB | Trong đó 102 artifact tham chiếu (1,4 GB, khoá `p2r_reference` của lock) được `freeze(check=True)` kiểm tra trước mọi stage posterior/train chính của P6. |
| `outputs/p3/**`, `outputs/p4/**`, `outputs/p2/**` (npz) | 5,2 + 4,7 + 2,4 GB | Lịch sử; P2/P3/P4 không chạy lại. |
| `outputs/p4x/` | 0,09 GB | Bản ghi P4x đã bỏ; không trích dẫn. |
| `data/Volve/` | 165 GB | Hash ở `data_manifest/volve.json`. P6 không dùng. |
| `data/F3_Demo_2023/` | 9,4 GB | Hash ở `data_manifest/f3_demo_2023.json`. P6 không dùng: bộ sinh D2 chỉ đọc `outputs/d2/horizon_grid.npz` và `outputs/wavelets.npz`. |
| `data/Teapot/` | 1,8 GB | Teapot đã dừng. |
| `data/NLOG/` | 0,03 GB | Hash ở `data_manifest/nlog.json`. |
| `refs/*.pdf` | khoảng 0,4 GB | Bản quyền nhà xuất bản; chỉ giữ cục bộ. |
| `logs/*.out`, `logs/runs/`, `logs/p2r_resume_*`, `logs/p6_*` | nhỏ | Log thô (`logs/index.csv` có trong git). |
| `.venv/` | | Tạo lại theo `README.md` nếu đường dẫn Python khác. |
## 3. Sau khi sync
- Kiểm tra dữ liệu: `python scripts/00_data_manifest.py --check` và lệnh `sha256sum -c` ở trên.
- Lock ghi torch 2.14.0+cu130. Nếu môi trường mới khác, `freeze(check=True)` báo lệch ở khoá `environment`. Khi đó **không** sửa lock: mọi lần chạy thêm phải là một phiên bản protocol mới, có ghi deviation. `summarize` không gọi `freeze(check=True)`.
- Các session tmux (`p6_*`) không đi theo bản sync. Mọi driver P6 đã xong lúc 02:16 UTC 30/10 và supervisor đã dừng (xem `docs/plan.md` §12 ý 26); không có gì cần resume. Summarize đã chạy trên server mới ngày 02/11/2026 (lock và sha256 của `outputs/bench/` khớp trước khi chạy; `docs/plan.md` §12 ý 28).
- `outputs/bench/package/` (S7, 02/11/2026, khoảng 845 MB) sinh sau bản sync nên không có trong `unpushed_outputs.sha256`. Không cần chép sang máy khác: chạy `scripts/37_bench_package.py generate` để sinh lại; lệnh này so sha256 nội dung với `benchmark/MANIFEST.json` (trong git). Sau đó chạy `tables` (cần `outputs/p2r` và `outputs/bench`).
## 4. Chuyển sang máy thứ ba (04/11/2026)
Máy hiện tại (`ssh-idp-lab-v2-0`, 2 × H200) có git ở `423a333`, còn `outputs/`, `data/` và `refs/` lấy từ bản chụp ngày 30/10. Kiểm tra ngày 04/11: 21.987/21.987 file của `unpushed_outputs.sha256` khớp sha256; F3, NLOG và Volve đủ file, đúng kích thước theo `data_manifest/*.json` (chưa băm lại). Thiếu các file sinh ra trên server trước ngày 02/11, ngoài git:
- **Đã sinh lại ngày 04/11 (khớp từng byte):** `outputs/bench/summary/` (`34_run_bench.py summarize`, rồi `36_bench_verdicts.py`), `outputs/bench/package/` (`37_bench_package.py generate`: 1.260 hash nội dung khớp `benchmark/MANIFEST.json`; `tables`: `benchmark/reference/` không đổi so với git; `selftest` PASS) và `outputs/repro/*.tar.gz` (`39_repro_package.py build`: `repro/MANIFEST.json` không đổi, gồm sha256 của cả 5 archive và của 22 file trong `outputs/bench/summary/`). `paper/main.pdf` đã build lại (68 trang, không có tham chiếu thiếu, bibtex không warning). Log ở `logs/runs/20261104-*`.
- **Môi trường:** `.venv` (system-site-packages trên `/opt/conda`) lệch lock `protocol_bench` ở numpy (2.5.3 so với 2.5.4), và thiếu tabulate cùng segyio. Đã cài vào `.venv` đúng các phiên bản đã khoá: `numpy==2.5.4 tabulate==0.10.0 segyio==1.9.14`.
- **Còn thiếu, cần người dùng chép từ máy cũ:** 7 PDF tải tay ngày 02/11 (`refs/{lim2025awsm,lim2025bootnet,li2024bpinn,guillon2020gtmetrics,castagna2026quality,rizzuti2024waveletflows,rizzuti2025uhr}.pdf`); `outputs_thesis/` (7 artifact, `data_manifest/thesis_outputs.json`; có lẽ chỉ từng có trên máy Windows); log thô ngày 02/11 (`logs/runs/20261102-*`, `logs/*.out`) và log P3 của máy Windows (chỉ là bản ghi).