runops 2.8.0__tar.gz → 2.9.1__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (151) hide show
  1. {runops-2.8.0 → runops-2.9.1}/.agents/skills/check/SKILL.md +0 -1
  2. {runops-2.8.0 → runops-2.9.1}/.agents/skills/simulator-adapter/SKILL.md +1 -1
  3. {runops-2.8.0 → runops-2.9.1}/.agents/skills/sync-docs/SKILL.md +1 -1
  4. {runops-2.8.0 → runops-2.9.1}/.claude/rules/architecture.md +1 -1
  5. {runops-2.8.0 → runops-2.9.1}/.claude/rules/dev-workflow.md +1 -1
  6. {runops-2.8.0 → runops-2.9.1}/.claude/rules/gotchas.md +2 -8
  7. {runops-2.8.0 → runops-2.9.1}/.codex/rules/runops.rules +0 -7
  8. {runops-2.8.0 → runops-2.9.1}/AGENTS.md +3 -4
  9. {runops-2.8.0 → runops-2.9.1}/PKG-INFO +4 -2
  10. {runops-2.8.0 → runops-2.9.1}/README.md +3 -1
  11. {runops-2.8.0 → runops-2.9.1}/SPEC.md +80 -68
  12. {runops-2.8.0 → runops-2.9.1}/docs/adapter.md +11 -3
  13. {runops-2.8.0 → runops-2.9.1}/docs/guide.md +37 -19
  14. {runops-2.8.0 → runops-2.9.1}/docs/reference.md +33 -16
  15. {runops-2.8.0 → runops-2.9.1}/pyproject.toml +1 -1
  16. {runops-2.8.0 → runops-2.9.1}/src/runops/__init__.py +1 -1
  17. {runops-2.8.0 → runops-2.9.1}/src/runops/adapters/base.py +0 -4
  18. {runops-2.8.0 → runops-2.9.1}/src/runops/adapters/registry.py +17 -10
  19. {runops-2.8.0 → runops-2.9.1}/src/runops/case.py +19 -0
  20. {runops-2.8.0 → runops-2.9.1}/src/runops/cli.py +188 -98
  21. {runops-2.8.0 → runops-2.9.1}/src/runops/config.py +3 -6
  22. {runops-2.8.0 → runops-2.9.1}/src/runops/errors.py +11 -0
  23. {runops-2.8.0 → runops-2.9.1}/src/runops/harness.py +28 -14
  24. runops-2.9.1/src/runops/legacy_adapters/__init__.py +6 -0
  25. {runops-2.8.0 → runops-2.9.1}/src/runops/legacy_adapters/beach.py +4 -37
  26. {runops-2.8.0 → runops-2.9.1}/src/runops/legacy_adapters/emses.py +6 -17
  27. {runops-2.8.0 → runops-2.9.1}/src/runops/manifest.py +12 -3
  28. {runops-2.8.0 → runops-2.9.1}/src/runops/ops/create.py +10 -2
  29. {runops-2.8.0 → runops-2.9.1}/src/runops/ops/listing.py +4 -7
  30. {runops-2.8.0 → runops-2.9.1}/src/runops/ops/notes.py +2 -23
  31. {runops-2.8.0 → runops-2.9.1}/src/runops/ops/progress.py +9 -1
  32. {runops-2.8.0 → runops-2.9.1}/src/runops/ops/setup.py +87 -9
  33. {runops-2.8.0 → runops-2.9.1}/src/runops/ops/submit.py +88 -3
  34. {runops-2.8.0 → runops-2.9.1}/src/runops/ops/sync.py +9 -0
  35. {runops-2.8.0 → runops-2.9.1}/src/runops/ops/tidy.py +38 -9
  36. {runops-2.8.0 → runops-2.9.1}/src/runops/runtime.py +37 -4
  37. {runops-2.8.0 → runops-2.9.1}/src/runops/skills/runops-analyze/SKILL.md +11 -4
  38. {runops-2.8.0 → runops-2.9.1}/src/runops/skills/runops-analyze/report-guide.md +6 -0
  39. {runops-2.8.0 → runops-2.9.1}/src/runops/skills/runops-check-status/SKILL.md +8 -5
  40. runops-2.9.1/src/runops/skills/runops-create-run/SKILL.md +60 -0
  41. {runops-2.8.0 → runops-2.9.1}/src/runops/skills/runops-maintain/SKILL.md +8 -8
  42. {runops-2.8.0 → runops-2.9.1}/src/runops/skills/runops-reference/SKILL.md +18 -11
  43. {runops-2.8.0 → runops-2.9.1}/src/runops/skills/runops-tidy/SKILL.md +2 -1
  44. {runops-2.8.0 → runops-2.9.1}/src/runops/slurm.py +12 -6
  45. {runops-2.8.0 → runops-2.9.1}/tests/conftest.py +11 -2
  46. {runops-2.8.0 → runops-2.9.1}/tests/test_adapters.py +22 -0
  47. {runops-2.8.0 → runops-2.9.1}/tests/test_build.py +32 -0
  48. {runops-2.8.0 → runops-2.9.1}/tests/test_legacy_adapters.py +13 -7
  49. {runops-2.8.0 → runops-2.9.1}/tests/test_lifecycle.py +75 -4
  50. {runops-2.8.0 → runops-2.9.1}/tests/test_manifest_config.py +7 -3
  51. {runops-2.8.0 → runops-2.9.1}/tests/test_progress.py +4 -2
  52. {runops-2.8.0 → runops-2.9.1}/tests/test_scratch_tidy.py +25 -0
  53. {runops-2.8.0 → runops-2.9.1}/tests/test_setup_misc.py +172 -0
  54. {runops-2.8.0 → runops-2.9.1}/tests/test_skills.py +8 -0
  55. {runops-2.8.0 → runops-2.9.1}/tests/test_sweep.py +28 -0
  56. {runops-2.8.0 → runops-2.9.1}/tests/test_sync_evidence.py +76 -2
  57. {runops-2.8.0 → runops-2.9.1}/uv.lock +1 -1
  58. runops-2.8.0/src/runops/legacy_adapters/__init__.py +0 -6
  59. runops-2.8.0/src/runops/ops/migrate.py +0 -630
  60. runops-2.8.0/src/runops/skills/runops-create-run/SKILL.md +0 -52
  61. runops-2.8.0/tests/fixtures/v1-project/.codex/rules/a.md +0 -1
  62. runops-2.8.0/tests/fixtures/v1-project/.runops/test-runs/T20260701-0001/receipt.toml +0 -1
  63. runops-2.8.0/tests/fixtures/v1-project/.runops/work/beach-x-abc/bin/beach +0 -1
  64. runops-2.8.0/tests/fixtures/v1-project/AGENTS.md +0 -1
  65. runops-2.8.0/tests/fixtures/v1-project/CLAUDE.md +0 -1
  66. runops-2.8.0/tests/fixtures/v1-project/cases/beach/plane/beach.toml +0 -2
  67. runops-2.8.0/tests/fixtures/v1-project/cases/beach/plane/case.toml +0 -19
  68. runops-2.8.0/tests/fixtures/v1-project/cases/old/beach.toml +0 -1
  69. runops-2.8.0/tests/fixtures/v1-project/cases/old/case.toml +0 -6
  70. runops-2.8.0/tests/fixtures/v1-project/launchers.toml +0 -3
  71. runops-2.8.0/tests/fixtures/v1-project/research/CURRENT.md +0 -1
  72. runops-2.8.0/tests/fixtures/v1-project/runops.toml +0 -5
  73. runops-2.8.0/tests/fixtures/v1-project/runs/AGENTS.md +0 -1
  74. runops-2.8.0/tests/fixtures/v1-project/runs/_archive/plane/R20260601-0001/manifest.toml +0 -19
  75. runops-2.8.0/tests/fixtures/v1-project/runs/plane/R20260701-0001--a/input/beach.toml +0 -2
  76. runops-2.8.0/tests/fixtures/v1-project/runs/plane/R20260701-0001--a/manifest.toml +0 -59
  77. runops-2.8.0/tests/fixtures/v1-project/runs/plane/R20260702-0001/manifest.toml +0 -18
  78. runops-2.8.0/tests/fixtures/v1-project/runs/scan/R20260701-0002/manifest.toml +0 -24
  79. runops-2.8.0/tests/fixtures/v1-project/runs/scan/survey.toml +0 -3
  80. runops-2.8.0/tests/fixtures/v1-project/simulators.toml +0 -12
  81. runops-2.8.0/tests/fixtures/v1-project/site.toml +0 -12
  82. runops-2.8.0/tests/test_migrate.py +0 -169
  83. {runops-2.8.0 → runops-2.9.1}/.agents/skills/improve-harness/SKILL.md +0 -0
  84. {runops-2.8.0 → runops-2.9.1}/.agents/skills/python-package-refactor/SKILL.md +0 -0
  85. {runops-2.8.0 → runops-2.9.1}/.agents/skills/python-package-refactor/agents/openai.yaml +0 -0
  86. {runops-2.8.0 → runops-2.9.1}/.agents/skills/python-package-refactor/examples/refactor-request.md +0 -0
  87. {runops-2.8.0 → runops-2.9.1}/.agents/skills/python-package-refactor/references/anti-patterns.md +0 -0
  88. {runops-2.8.0 → runops-2.9.1}/.agents/skills/python-package-refactor/references/api-compatibility.md +0 -0
  89. {runops-2.8.0 → runops-2.9.1}/.agents/skills/python-package-refactor/references/packaging-modernization.md +0 -0
  90. {runops-2.8.0 → runops-2.9.1}/.agents/skills/python-package-refactor/references/refactor-playbook.md +0 -0
  91. {runops-2.8.0 → runops-2.9.1}/.agents/skills/python-package-refactor/references/verification.md +0 -0
  92. {runops-2.8.0 → runops-2.9.1}/.agents/skills/python-package-refactor/scripts/api_surface_snapshot.py +0 -0
  93. {runops-2.8.0 → runops-2.9.1}/.agents/skills/python-package-refactor/scripts/import_smoke.py +0 -0
  94. {runops-2.8.0 → runops-2.9.1}/.agents/skills/python-package-refactor/scripts/inspect_python_package.py +0 -0
  95. {runops-2.8.0 → runops-2.9.1}/.agents/skills/python-package-refactor/scripts/refactor_quality_gate.py +0 -0
  96. {runops-2.8.0 → runops-2.9.1}/.agents/skills/release/SKILL.md +0 -0
  97. {runops-2.8.0 → runops-2.9.1}/.agents/skills/spec-reviewer/SKILL.md +0 -0
  98. {runops-2.8.0 → runops-2.9.1}/.claude/agents/spec-reviewer.md +0 -0
  99. {runops-2.8.0 → runops-2.9.1}/.claude/settings.json +0 -0
  100. {runops-2.8.0 → runops-2.9.1}/.claude/skills/check/SKILL.md +0 -0
  101. {runops-2.8.0 → runops-2.9.1}/.claude/skills/improve-harness/SKILL.md +0 -0
  102. {runops-2.8.0 → runops-2.9.1}/.claude/skills/python-package-refactor/SKILL.md +0 -0
  103. {runops-2.8.0 → runops-2.9.1}/.claude/skills/release/SKILL.md +0 -0
  104. {runops-2.8.0 → runops-2.9.1}/.claude/skills/simulator-adapter/SKILL.md +0 -0
  105. {runops-2.8.0 → runops-2.9.1}/.claude/skills/spec-reviewer/SKILL.md +0 -0
  106. {runops-2.8.0 → runops-2.9.1}/.claude/skills/sync-docs/SKILL.md +0 -0
  107. {runops-2.8.0 → runops-2.9.1}/.codex/README.md +0 -0
  108. {runops-2.8.0 → runops-2.9.1}/.codex/agents/spec-reviewer.toml +0 -0
  109. {runops-2.8.0 → runops-2.9.1}/.codex/config.toml +0 -0
  110. {runops-2.8.0 → runops-2.9.1}/.dockerignore +0 -0
  111. {runops-2.8.0 → runops-2.9.1}/.gitattributes +0 -0
  112. {runops-2.8.0 → runops-2.9.1}/.github/assets/conversation-dark.svg +0 -0
  113. {runops-2.8.0 → runops-2.9.1}/.github/assets/conversation-light.svg +0 -0
  114. {runops-2.8.0 → runops-2.9.1}/.github/assets/hero-dark.svg +0 -0
  115. {runops-2.8.0 → runops-2.9.1}/.github/assets/hero-light.svg +0 -0
  116. {runops-2.8.0 → runops-2.9.1}/.github/assets/make_readme_art.py +0 -0
  117. {runops-2.8.0 → runops-2.9.1}/.github/workflows/ci.yml +0 -0
  118. {runops-2.8.0 → runops-2.9.1}/.github/workflows/publish.yml +0 -0
  119. {runops-2.8.0 → runops-2.9.1}/.gitignore +0 -0
  120. {runops-2.8.0 → runops-2.9.1}/.pre-commit-config.yaml +0 -0
  121. {runops-2.8.0 → runops-2.9.1}/.vscode/settings.json +0 -0
  122. {runops-2.8.0 → runops-2.9.1}/CLAUDE.md +0 -0
  123. {runops-2.8.0 → runops-2.9.1}/LICENSE +0 -0
  124. {runops-2.8.0 → runops-2.9.1}/src/runops/adapters/__init__.py +0 -0
  125. {runops-2.8.0 → runops-2.9.1}/src/runops/adapters/generic.py +0 -0
  126. {runops-2.8.0 → runops-2.9.1}/src/runops/jobgen.py +0 -0
  127. {runops-2.8.0 → runops-2.9.1}/src/runops/launchers.py +0 -0
  128. {runops-2.8.0 → runops-2.9.1}/src/runops/ops/__init__.py +0 -0
  129. {runops-2.8.0 → runops-2.9.1}/src/runops/ops/analysis.py +0 -0
  130. {runops-2.8.0 → runops-2.9.1}/src/runops/ops/common.py +0 -0
  131. {runops-2.8.0 → runops-2.9.1}/src/runops/ops/skills.py +0 -0
  132. {runops-2.8.0 → runops-2.9.1}/src/runops/project.py +0 -0
  133. {runops-2.8.0 → runops-2.9.1}/src/runops/skills/runops-analyze/example-report/README.md +0 -0
  134. {runops-2.8.0 → runops-2.9.1}/src/runops/skills/runops-analyze/example-report/out/fig1_maps.png +0 -0
  135. {runops-2.8.0 → runops-2.9.1}/src/runops/skills/runops-analyze/example-report/out/fig2_dependence.png +0 -0
  136. {runops-2.8.0 → runops-2.9.1}/src/runops/skills/runops-analyze/example-report/out/values.csv +0 -0
  137. {runops-2.8.0 → runops-2.9.1}/src/runops/skills/runops-analyze/example-report/report.html +0 -0
  138. {runops-2.8.0 → runops-2.9.1}/src/runops/skills/runops-analyze/example-report/scripts/build_html.py +0 -0
  139. {runops-2.8.0 → runops-2.9.1}/src/runops/skills/runops-analyze/example-report/scripts/make_figures.py +0 -0
  140. {runops-2.8.0 → runops-2.9.1}/src/runops/util.py +0 -0
  141. {runops-2.8.0 → runops-2.9.1}/tests/__init__.py +0 -0
  142. {runops-2.8.0 → runops-2.9.1}/tests/golden/mpi_standard.sh +0 -0
  143. {runops-2.8.0 → runops-2.9.1}/tests/golden/openmp_rsc.sh +0 -0
  144. {runops-2.8.0 → runops-2.9.1}/tests/test_analysis_layout.py +0 -0
  145. {runops-2.8.0 → runops-2.9.1}/tests/test_archive_series.py +0 -0
  146. {runops-2.8.0 → runops-2.9.1}/tests/test_dev_harness.py +0 -0
  147. {runops-2.8.0 → runops-2.9.1}/tests/test_jobgen.py +0 -0
  148. {runops-2.8.0 → runops-2.9.1}/tests/test_mv_naming.py +0 -0
  149. {runops-2.8.0 → runops-2.9.1}/tests/test_project_scope.py +0 -0
  150. {runops-2.8.0 → runops-2.9.1}/tests/test_run_job.py +0 -0
  151. {runops-2.8.0 → runops-2.9.1}/tests/test_safety.py +0 -0
@@ -23,7 +23,6 @@ mock する。実際の `sbatch` を呼ぶテストを書かない。
23
23
  |---|---|
24
24
  | rename / move / archive / 作成など filesystem 操作 | `uv run pytest -q -p no:cacheprovider --basetemp=/LARGE0/gr20001/b36291/claude_scratch/pytest-lustre` で Lustre 上でも通す(`RENAME_NOREPLACE` が EINVAL になる経路) |
25
25
  | adapter 解決、`.venv` の entry point、skill 展開 | `tests/test_skills.py` と `tests/test_adapters.py`。必要なら scratch project で `uv venv` + `uv pip install -e <simulator>` して `runo doctor` |
26
- | `migrate-v1` | `tests/test_migrate.py`。実 project には `runo migrate-v1 --dry-run` だけを実行し、適用は `work/` を除いたコピーで行う |
27
26
  | job.sh 生成 | `tests/golden/*.sh` との差分を目視し、意図した変更なら `UPDATE_GOLDEN=1 uv run pytest tests/test_jobgen.py` |
28
27
  | project に展開する skill / AGENTS.md block | `tests/test_skills.py`(行数上限)と `sync-docs` skill |
29
28
  | 開発ハーネス | `tests/test_dev_harness.py` |
@@ -25,7 +25,7 @@ Python package に置き、`runops.adapters` entry point で公開する。
25
25
  (BEACH: `"beach.agent_context" = "plugins/beach-context"`)
26
26
  - 配布 workflow が package をコピーして build する場合: build 前に stage する script
27
27
  (MPIEMSES3D: `tools/stage_agent_context.py`)
28
- 5. テスト: `build_command`、`detect_status`、`summarize`、`agent_context_dir` は runops 無しで、
28
+ 5. テスト: `build_command`、`detect_status`、`agent_context_dir` は runops 無しで、
29
29
  `render_inputs` は runops があるときだけ(skip)。wheel の中身を確認できるなら
30
30
  `agent_context/skills/*/SKILL.md` と `entry_points.txt` の `[runops.adapters]` を見る。
31
31
  6. E2E: scratch project で `uv venv` → `uv pip install --no-deps <wheel or -e path>` →
@@ -11,7 +11,7 @@ runops の挙動は複数の場所に書かれている。変更の種類から
11
11
  |---|---|---|
12
12
  | command / option の追加・変更 | `SPEC.md` §7.3(先に更新。§13.1 の上限 25 を確認) | `docs/reference.md` の command 表、`src/runops/skills/runops-reference/SKILL.md`、`src/runops/harness.py` の `COMMANDS` |
13
13
  | `runops.toml` / `case.toml` の field | `SPEC.md` §4, §5 | `docs/reference.md`、`config.py` / `case.py` の既知 key 集合 |
14
- | manifest の field | `SPEC.md` §6.2 | `docs/reference.md` の manifest 表、`ops/migrate.py` の変換 |
14
+ | manifest の field | `SPEC.md` §6.2 | `docs/reference.md` の manifest 表、`src/runops/skills/runops-reference/SKILL.md` の Manifest 節 |
15
15
  | adapter 契約・skill 同梱 | `SPEC.md` §8 | `docs/adapter.md`、`adapters/base.py` の docstring、`legacy_adapters/` |
16
16
  | エージェントの使い方・規則 | `src/runops/harness.py`(project の AGENTS.md block) | `src/runops/skills/*/SKILL.md`、README の依頼例、`docs/guide.md` |
17
17
  | 実装中の判断で SPEC 本文と違う結論になった | `SPEC.md` 本文を直し、§14 に理由を 1 行追加 | — |
@@ -15,7 +15,7 @@ cli.py ──> ops/* ──> config / project / manifest / case / runtime /
15
15
  CLI は `slurm.default_runner` を呼び出し時に参照して渡す(テストは monkeypatch で差し替える)。
16
16
  - 基盤 module は `ops/` と `cli.py` を import しない。`adapters/` は runops の他 module に依存しない
17
17
  (`base.py` は `util.load_toml` のみ)。
18
- - `legacy_adapters/` は registry に登録しない。`ops/migrate.py` と `ops/setup.py` がファイルとして
18
+ - `legacy_adapters/` は registry に登録しない。`ops/setup.py`(`init`)がファイルとして
19
19
  project にコピーするだけ。
20
20
 
21
21
  ## 不変条件
@@ -18,7 +18,7 @@ ruff format / ruff check / mypy / pytest(branch coverage 80%)を Python 3.10
18
18
  - 受け入れ基準(SPEC §13.2)ごとにテストがある。挙動を変えたら対応するテストを直す。
19
19
  - CLI は `tests/conftest.py` の `cli` fixture(`runops.cli.main` を呼び exit code と出力を返す)、
20
20
  Slurm は `fake_slurm`、project は `project_dir`(generic simulator と `demo` case)を使う。
21
- - job.sh は `tests/golden/`、v1 移行は `tests/fixtures/v1-project/` を使う。
21
+ - job.sh は `tests/golden/` を使う。
22
22
  - 実際の Slurm、ネットワーク、計算ノードを必要とするテストを書かない。
23
23
 
24
24
  ## Git
@@ -9,7 +9,8 @@
9
9
  ## importlib.metadata のキャッシュ
10
10
 
11
11
  `.venv` の dist-info 一覧は directory の mtime でキャッシュされる。Lustre の mtime は秒単位のため、
12
- 同じ秒に入れ替えた package を見落とす。`registry._entry_point` は探索前に
12
+ 同じ秒に入れ替えた package を見落とす。`.venv` の metadata を読む前(`registry._entry_point`、
13
+ `runtime.venv_version`)に `registry.invalidate_metadata_caches()` で
13
14
  `importlib.invalidate_caches()` と `MetadataPathFinder.invalidate_caches()` を呼ぶ
14
15
  (Python 3.10 では前者だけでは metadata のキャッシュが消えない)。`.pth`(editable install)を効かせるため
15
16
  `sys.path.append` ではなく `site.addsitedir` を使う。
@@ -28,10 +29,3 @@
28
29
 
29
30
  pytest は軽量なのでログインノードで実行してよい。simulator の build(`runo build`、
30
31
  `local_source`)や他 repo の重いテストは、各 repo の規約に従い計算ノード(`tssrun`)で行う。
31
-
32
- ## v1 project を触るとき
33
-
34
- 実運用の v1 project(例: `~/large1/project_dust_release`)には `runo migrate-v1 --dry-run` だけを
35
- 実行する。適用は `work/`、`.venv`、`refs/`、`materials/` を除いたコピーで行う。v1 の
36
- `.runops/work/<build>/src` は simulator repo の git worktree のことがある(migrate が
37
- `git worktree repair` する)。
@@ -31,13 +31,6 @@ prefix_rule(
31
31
  match = ["runo tidy --apply", "runo tidy --apply --only expired-scratch"],
32
32
  )
33
33
 
34
- prefix_rule(
35
- pattern = ["runo", "migrate-v1"],
36
- decision = "prompt",
37
- justification = "Migration rewrites a project; run --dry-run and review first.",
38
- match = ["runo migrate-v1 -y"],
39
- )
40
-
41
34
  prefix_rule(
42
35
  pattern = ["rm", "-rf"],
43
36
  decision = "forbidden",
@@ -42,13 +42,13 @@ uv run mypy src/
42
42
  ```text
43
43
  src/runops/
44
44
  cli.py Typer。入力、確認、表示だけ
45
- ops/ command ごとの処理(create, submit, sync, listing, tidy, notes, setup, skills, migrate)
45
+ ops/ command ごとの処理(create, submit, sync, listing, tidy, notes, setup, skills, analysis, progress)
46
46
  config.py project.py manifest.py case.py runtime.py jobgen.py launchers.py slurm.py util.py
47
47
  adapters/ 契約(Protocol)、解決順、generic
48
- legacy_adapters/ v1 emses / beach の移植(migrate-v1 と init 用)
48
+ legacy_adapters/ v1 emses / beach の移植(init が project にコピー)
49
49
  skills/ project に展開する runops skill(各 60 行以内)
50
50
  harness.py project の AGENTS.md 管理 block
51
- tests/ 受け入れ基準(SPEC §13.2)ごとのテスト、golden/、fixtures/v1-project/
51
+ tests/ 受け入れ基準(SPEC §13.2)ごとのテスト、golden/
52
52
  ```
53
53
 
54
54
  ## 守ること
@@ -56,4 +56,3 @@ tests/ 受け入れ基準(SPEC §13.2)ごとのテスト、golden/
56
56
  - 名詞は case / run / sweep。新しい永続 entity や ID 空間、作成前のゲートを足さない(SPEC §1.2)。
57
57
  - simulator 固有の知識を runops に置かない。adapter と skill は simulator package 側。
58
58
  - 利用者が覚えるコマンドは `runo init` だけ。それ以外はエージェントへの依頼で行える形に保つ。
59
- - 実運用の v1 project には `runo migrate-v1 --dry-run` 以外を実行しない。
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.5
2
2
  Name: runops
3
- Version: 2.8.0
3
+ Version: 2.9.1
4
4
  Summary: Run ledger and Slurm job submission for HPC simulation projects
5
5
  Project-URL: Homepage, https://github.com/Nkzono99/runops
6
6
  Project-URL: Documentation, https://github.com/Nkzono99/runops/blob/main/docs/reference.md
@@ -77,9 +77,9 @@ runo init
77
77
  | 片付ける | 古い run を整理して。消すものと archive するものを先に見せて |
78
78
  | 作り直した旧系列を片付ける | 旧系列は新系列で置き換えたので、対応を記録して archive して |
79
79
  | 解析する | この系列の速度を比較して。図とスクリプト、調査メモを系列の `_analysis/` にまとめて |
80
+ | 過去の結果を使う | 前回の平均速度はどの時間幅で求めた? ノートから集計表を確認して、今回も同じ条件で比較して |
80
81
  | simulator を足す | パッチを当てた ~/BEACH-dev をビルドして、別の simulator として登録して |
81
82
  | 更新する | runops と simulator を最新にして |
82
- | v1 から移る | この project を runops v2 に移行して(`runo migrate-v1` を dry-run で確認してから) |
83
83
 
84
84
  投入、削除、整理、移行の前には、エージェントが対象と資源量を示して確認を取ります。
85
85
  範囲を言わない依頼(「全部再投入して」など)は、エージェントを起動した project の run だけが対象です。
@@ -123,6 +123,8 @@ run は ID が変わらないので、directory を移動してもエージェ
123
123
  | BEACH | `beach-bem` ≥ 3.0 | adapter とエージェント向け skill を同梱 |
124
124
  | その他 | 自作の adapter、または `generic` | [adapter ガイド](https://github.com/Nkzono99/runops/blob/main/docs/adapter.md) |
125
125
 
126
+ MPIEMSES3D の継続計算には `mpiemses3d-tools` 4.22.1 以降を使用してください。
127
+
126
128
  ---
127
129
 
128
130
  [使い方ガイド](https://github.com/Nkzono99/runops/blob/main/docs/guide.md) ·
@@ -46,9 +46,9 @@ runo init
46
46
  | 片付ける | 古い run を整理して。消すものと archive するものを先に見せて |
47
47
  | 作り直した旧系列を片付ける | 旧系列は新系列で置き換えたので、対応を記録して archive して |
48
48
  | 解析する | この系列の速度を比較して。図とスクリプト、調査メモを系列の `_analysis/` にまとめて |
49
+ | 過去の結果を使う | 前回の平均速度はどの時間幅で求めた? ノートから集計表を確認して、今回も同じ条件で比較して |
49
50
  | simulator を足す | パッチを当てた ~/BEACH-dev をビルドして、別の simulator として登録して |
50
51
  | 更新する | runops と simulator を最新にして |
51
- | v1 から移る | この project を runops v2 に移行して(`runo migrate-v1` を dry-run で確認してから) |
52
52
 
53
53
  投入、削除、整理、移行の前には、エージェントが対象と資源量を示して確認を取ります。
54
54
  範囲を言わない依頼(「全部再投入して」など)は、エージェントを起動した project の run だけが対象です。
@@ -92,6 +92,8 @@ run は ID が変わらないので、directory を移動してもエージェ
92
92
  | BEACH | `beach-bem` ≥ 3.0 | adapter とエージェント向け skill を同梱 |
93
93
  | その他 | 自作の adapter、または `generic` | [adapter ガイド](https://github.com/Nkzono99/runops/blob/main/docs/adapter.md) |
94
94
 
95
+ MPIEMSES3D の継続計算には `mpiemses3d-tools` 4.22.1 以降を使用してください。
96
+
95
97
  ---
96
98
 
97
99
  [使い方ガイド](https://github.com/Nkzono99/runops/blob/main/docs/guide.md) ·
@@ -78,7 +78,7 @@ v1 で運用した 2 つの project(`project_dust_release`: BEACH、run 120、
78
78
  - research journal / CURRENT.md / rotation / bounded budget
79
79
  - knowledge / facts / knowledge source / profile
80
80
  - receipt 付き bundle archive / tombstone / forward recovery
81
- - project-state migration framework(v1→v2 の一回限りの変換 command は §11 で定義する)
81
+ - project-state migration framework(v1→v2 の一回限りの変換は runops 2.8 の `migrate-v1` で行う。§11)
82
82
  - harness の versioned chain 更新(`update-harness --apply-chain`)
83
83
  - MCP server(CLI の `--json` 出力で代替する。agent は CLI を直接呼ぶ)
84
84
  - project 横断の knowledge source(`[knowledge]`、`refs/knowledge`、`hpc-shared-knowledge` の mount)。
@@ -138,7 +138,7 @@ v1 で運用した 2 つの project(`project_dust_release`: BEACH、run 120、
138
138
  id.lock # run id 採番用 lock
139
139
  run.lock # manifest の読み直し・更新用 lock(submit / cancel / retry / sync)
140
140
  last_run_id # 最後に払い出した run id。削除後も同じ id を再利用しないため
141
- v1-backup/<stamp>/ # migrate-v1 が退避した v1 の設定と harness(§11)
141
+ v1-backup/<stamp>/ # runops 2.8 の migrate-v1 が退避した v1 の設定と harness(§11)
142
142
  build/
143
143
  <sim>-<commit>/ # local_source の build cache(§4.1)
144
144
  .gitignore
@@ -219,7 +219,11 @@ label_max_length = 48 # run 名の自動ラベルの最大文字数
219
219
  規則:
220
220
 
221
221
  - `simulators.<name>.package` は省略可。省略時は adapter の `pip_packages()` を使う。
222
- 指定時はそちらが優先(ユーザーが fork や pin を使えるようにする)。
222
+ 指定時は simulator 自身の導入にそちらが優先(ユーザーが fork や pin を使えるようにする)。
223
+ そのときも adapter の `pip_packages()` のうち `package` と名前の違う package(解析 package など。
224
+ 名前の読めない spec は除く)は、`.venv` に無ければ `init` / `update` が入れる。入っているものは
225
+ `update` でも上げない。新しい project では `package` を入れた後に adapter が見つかるので、
226
+ その後にもう 1 回 install する。`doctor` は `.venv` があるとき、これらの欠落を warning にする。
223
227
  - 同じ `adapter` を持つ `[simulators.*]` を複数定義してよい(patched build や
224
228
  branch 違いを並べる用途)。case の `simulator` はこの name を指す。
225
229
  - `[site]`、`[launchers.*]`、`[simulators.*].modules` の merge 順は v1 と同じ:
@@ -284,7 +288,9 @@ ntasks = 800
284
288
  `standard` のとき `nodes/ntasks` を `#SBATCH` に写す。
285
289
  - `cases/<name>/` 直下の base 入力ファイル(adapter の `case_template()` が返す
286
290
  ファイル)と `input/` 配下は、run 作成時に run の `input/` にコピーされ、その後
287
- adapter の `render_inputs()` が `[params]` を適用して上書きする。
291
+ adapter の `render_inputs()` が `[params]` を適用して上書きする。それ以外の(`.` で始まらない)
292
+ directory はコピーしない。`new` / `sweep` はそれらを情報の 1 行で示す(sweep では 1 回。warning ではない。
293
+ `--json` のときは stderr)。
288
294
  - `runo new` / `runo sweep` の `--set k=v` は `[params]` の上書きである。
289
295
  既存 key でなくても受け付ける(adapter の `validate_params()` が warning を出せる)。
290
296
  warning には判定した adapter と package version を付け、executable が package 由来でない
@@ -314,8 +320,7 @@ ntasks = 800
314
320
  sbatch.log # 投入時の stdout/stderr(追記)
315
321
  exit.<job_id> # job.sh が終了時に書く exit code、開始・終了時刻、stage(TOML)
316
322
  work/ # simulator の出力。cwd はここ
317
- analysis/
318
- summary.json # runo summarize の出力
323
+ analysis/ # run に依存する解析(§9.1)
319
324
  ```
320
325
 
321
326
  v1 の `status/` directory は廃止する。状態は manifest のみが持つ。
@@ -375,6 +380,7 @@ walltime = "120:00:00"
375
380
  submitted_at = "2026-10-15T10:31:00+09:00"
376
381
  finished_at = ""
377
382
  last_slurm_state = "COMPLETED"
383
+ pending_reason = "" # 待機中の squeue の reason(QOSGrpCpuLimit など)。待機を離れたら消す
378
384
  attempt = 1 # retry で +1
379
385
  exit_code = "0" # sacct の ExitCode、無ければ exit record の値
380
386
 
@@ -390,6 +396,7 @@ exit_code = 0 # exit record から
390
396
  exe_hash = "sha256:..." # submit 時点の executable の hash
391
397
  elapsed = "15:42:10" # sacct の Elapsed、無ければ exit record の開始・終了から
392
398
  cancel_reason = "" # cancel --why の理由。retry はこれがあれば確認を取る
399
+ dependency = "afterok:12300" # submit --dependency / --afterok で sbatch に渡した依存。無ければ書かない
393
400
 
394
401
  [params]
395
402
  "tmgrid.nx" = 4000
@@ -441,7 +448,10 @@ created ──submit──▶ submitted ──(slurm)──▶ running ──▶
441
448
  `detect_status()` を呼ぶ。Slurm が `COMPLETED` でも adapter が `failed` を返せば
442
449
  `failed` にする。Slurm が `FAILED` なら adapter の結果にかかわらず `failed`。
443
450
  - `sync` は対象 run の job id をまとめて 1 回の `squeue --jobs=...` で問い合わせ、そこに無い
444
- job だけを 1 回の `sacct --jobs=...` で引く。`tidy` の `orphan-job` 判定も同じ。
451
+ job だけを 1 回の `sacct --jobs=...` で引く。squeue は `%i|%T|%r` で読み、reason は空白や `,` を
452
+ 含み得るので最後の field として扱う。Slurm が待機中(runops の `submitted`)と返す job の reason
453
+ (`None` と空は除く)を `[job].pending_reason` に置き、待機中でなくなった `sync`、`cancel`、`retry`、
454
+ 次の `submit` で消す。`tidy` の `orphan-job` 判定も同じ。
445
455
  scheduler への問い合わせ回数は run 数に依存しない。
446
456
  runops が対応づけていない Slurm 状態の job は状態を変えずに `last_slurm_state` だけ残し、
447
457
  他の run の更新は続ける。
@@ -474,12 +484,14 @@ adapter が `progress(run_dir)` を持つとき、`sync` は running の run と
474
484
  - 観測は `submit/progress.<job_id>.jsonl` に `{at, done}` として追記する(attempt ごと、
475
485
  上限 1000 件程度)。queue を離れたときの観測は終了時刻で記録し、終了後の待ち時間を速度に含めない。
476
486
  - 要約を `[[job.attempts]].progress` に置く: `done`、`total`、`unit`、`start`、`fraction`、
487
+ `attempt_fraction`(`start` > 0 で `total` があるとき、今回の区間の割合 `(done - start) / (total - start)`)、
477
488
  `rate_recent_per_hour`(直近 10 分)、`rate_attempt_per_hour`(program 開始から。起点は
478
489
  `start`)、`eta_hours`(running のみ)、`last_change_at`(`done` が最後に増えた観測時刻)、
479
490
  `stalled_hours`(最新観測が `last_change_at` から 1 時間以上進んでいないとき、その長さ。
480
491
  終了後の観測には付けない)。program 開始時刻は job.sh が stdout に出す
481
492
  `runops: start` 行から取り、`started_at` に入れる。
482
- - `status` / `list` は `stalled_hours` があれば `stalled 6.7h` と表示する。観測は `sync` のときだけ
493
+ - `status` / `list` は累積の割合に今回の区間を `74% (38% of this job)` と併記し、
494
+ `stalled_hours` があれば `stalled 6.7h` と表示する。観測は `sync` のときだけ
483
495
  なので、停止の検出は `sync` の間隔より細かくならない。
484
496
  - `status` / `list` は要約だけを読む(file を開かない)。read-only command は観測を足さない。
485
497
  - 解析は adapter が行い、runops は保存と表示だけを持つ(§1.2 #4)。
@@ -501,8 +513,13 @@ adapter が `progress(run_dir)` を持つとき、`sync` は running の run と
501
513
  `--json` は作成した run の同じ summary を返す。summary には `params`、`changed_keys`、
502
514
  `parent_run`、`exe_hash`、`input_hash` を含め、run 同士の比較に別 command を要らなくする。
503
515
  walltime の根拠として `walltime`、最新 attempt の `elapsed`、`walltime_used`(elapsed / walltime)、
504
- `slurm_state`(`TIMEOUT` など)も含める。`list` / `status` の `--brief` は summary から
516
+ `slurm_state`(`TIMEOUT` など)も含める。待機の理由 `pending_reason` と最新 attempt の
517
+ `dependency` も含め(`--brief` と `context` の `active` にも残す)、表は `submitted (QOSGrpCpuLimit)`、
518
+ reason が `Dependency` で始まるときは `submitted (DependencyNeverSatisfied: afterok:123)` と示す。`list` / `status` の `--brief` は summary から
505
519
  `params`、`why`、`last_note` を外す(多数の run を横断して渡すとき用。表では note / why 列を省く)。
520
+ - 表(`list`、`status`、`case list`、`sweep`、`tidy`)は、stdout が端末でなく `COLUMNS` も無いとき
521
+ cell を切らずに自然な幅で出し、行末の空白を落とす(pipe や agent の shell で run id が欠けないように)。
522
+ 端末と `COLUMNS` 指定時はその幅に収める。
506
523
  - 破壊的 command(`cancel`、`delete`、`tidy --apply`、`archive`)は対象を表示して
507
524
  確認を取る。`-y/--yes` で省略。
508
525
  - exit code: 0 成功、1 対象 run の実行時エラー(例: sbatch 失敗)、2 使用方法・設定エラー。
@@ -517,20 +534,25 @@ adapter が `progress(run_dir)` を持つとき、`sync` は running の run と
517
534
 
518
535
  ### 7.3 command 一覧
519
536
 
537
+ `runo --help` は command を常用と保守に分けた panel で示す: Create and submit(`case`、`new`、
538
+ `sweep`、`submit`、`cancel`、`retry`)、Monitor(`context`、`status`、`sync`、`log`、`list`、`note`)、
539
+ Organize(`pin`、`archive`、`mv`、`restore`、`delete`、`tidy`)、Project maintenance(`init`、`doctor`、
540
+ `update`、`build`)。生成 AGENTS.md(§10)と `runops-reference` の command 表も常用と保守に分ける。
541
+
520
542
  | command | 効果 |
521
543
  |---|---|
522
544
  | `runo init [SIM...] [--site kudpc\|standard] [--no-install] [-y]` | `runops.toml`、`cases/`、`runs/`、`LOG.md`、`AGENTS.md`、`.venv` を作る。SIM ごとに adapter package を `.venv` に install し、skill を展開する(§8)。端末から引数なしで実行すると site と simulator を尋ねる。`--site` が無ければ host 名から推定する(KUDPC のログインノードなら `kudpc`) |
523
- | `runo doctor [--json]` | `runops.toml` の妥当性、adapter の import 可否、executable の存在、`sbatch` の有無、skill の鮮度を検査 |
545
+ | `runo doctor [--json]` | `runops.toml` の妥当性、adapter の import 可否、`.venv` に無い package(§4)、executable の存在、`sbatch` の有無、skill の鮮度を検査 |
524
546
  | `runo update [--skills-only] [-y]` | adapter package を upgrade し、skill を再展開する |
525
547
  | `runo build SIM [--force]` | `local_source` simulator を `.runops/build/` に build する(§4.1) |
526
548
  | `runo context [--json]` | agent 向け現在地。project 名、simulator、active run 数と全 active run(`--brief` と同じ summary、`active`)、直近 run 5 件、scratch 期限切れ数、`LOG.md` 末尾 20 行、現用 group の解析 topic 名(§9.1)。配置した runops skill が install 済みの runops より古ければ `runo update --skills-only` を促す warning |
527
- | `runo case new NAME --simulator SIM [--from CASE]` | case をスキャフォールド。adapter の `case_template()` を展開 |
549
+ | `runo case new NAME --simulator SIM [--from CASE]` | case をスキャフォールド。adapter の `case_template()` を展開。`--from` は case を複製し、`--simulator` があれば複製の `[case].simulator` をそれに替える(`runops.toml` に無い名前は何も作らずエラー)。作成後に有効な simulator を表示する |
528
550
  | `runo case list` | case 一覧 |
529
551
  | `runo new CASE [--why TEXT] [--label L] [--set k=v]... [--job k=v]... [--tag T]... [--scratch] [--dest DIR] [--submit] [--created-by WHO] [--json]` | 単発 run を作る |
530
552
  | `runo new --from RUN [--why] [--set k=v]... [--job k=v]... [--job-from-case] [--continue] [--submit]` | 既存 run の params と `[job]` から派生 run を作る(§5)。置き場所の既定は元 run と同じ directory(元 run が archive / scratch なら `runs/<case>/`)。`--continue` は adapter が `extend_inputs()` を実装する場合のみ有効(§8.1) |
531
553
  | `runo sweep CASE --set k=v1,v2,... [--set ...] [--names KEY=n1,n2,...]... [--job k=v]... [--label L] [--dest DIR] [--why TEXT] [--apply] [--submit] [--limit N] [--json]` | 直積の候補を表示する。`--apply` で生成。`--submit` は `--apply` と同時のみ有効 |
532
- | `runo submit RUN... [--partition P] [--qos Q] [--afterok JOBID] [-y]` | job.sh を生成して sbatch。`created` 以外は拒否 |
533
- | `runo submit --all [DIR] [-y]` | DIR 配下の `created` run をすべて投入。件数と概算 core-hours を表示して確認 |
554
+ | `runo submit RUN... [--partition P] [--qos Q] [--afterok JOBID \| --dependency SPEC] [--json] [-y]` | job.sh を生成して sbatch。`created` 以外は拒否。1 run の失敗で残りを止めず、失敗があれば最後に `submitted N; not submitted M (still created): <ids>`(受理不明と、created でないため拒否した run は別に並べる)を stderr に出して exit code 1。`--json` は run ごとの `id`、`job_id`、`result`(`submitted` / `not_submitted` / `unknown`)、`status`(その後の状態)、`error` を返す。sbatch が 120 s で応答しないときは受理が分からないので `unknown` とし、error に再投入前に squeue で job 名を確かめるよう書き、`submit/sbatch.log` に `UNKNOWN` を残す(run は created のまま)。`--dependency` は Slurm の依存指定(`afterany:123,afterok:456`、`?` 区切りは「いずれか」、`singleton`)をそのまま渡し、種類名と job id 以外の値は exit code 2。`--afterok J` は `--dependency afterok:J` と同じで、両方の指定は exit code 2。渡した値は attempt の `dependency` に残す |
555
+ | `runo submit --all [DIR] [--json] [-y]` | DIR 配下の `created` run をすべて投入。件数と概算 core-hours を表示して確認。`new` / `sweep --apply` / `retry` の `--submit` も含め、失敗の扱いと要約は `submit RUN...` と同じ |
534
556
  | `runo cancel RUN... [--why TEXT] [-y]` | scancel して sync。`--why` は `cancelled: ...` の note として残す |
535
557
  | `runo retry RUN [--submit] [-y]` | `failed`/`cancelled` を `created` に戻す。直近の cancel に `--why` があれば理由を示して確認を取る |
536
558
  | `runo status [RUN...] [--brief] [--json]` | manifest の状態を表示。Slurm を呼ばない。`--brief` は §7.1 |
@@ -539,20 +561,19 @@ adapter が `progress(run_dir)` を持つとき、`sync` は running の run と
539
561
  | `runo list [PATH] [--all] [--since 30d] [--case C] [--sweep L] [--status S]... [--tag T]... [--scratch] [--archived] [--brief] [--json]` | run 一覧(§7.4) |
540
562
  | `runo note RUN [TEXT] [--by WHO]` | TEXT があれば `[[notes]]` に追記、なければ notes と `notes.md` を表示 |
541
563
  | `runo pin RUN [--off] [--reason TEXT]` | `run.pinned` を切り替える。pinned は `list` に常に出て、`tidy` / `delete` の対象外 |
542
- | `runo summarize RUN... [--force]` | adapter の `summarize()` を呼び `analysis/summary.json` を書く。既存があれば `--force` なしではスキップ |
543
564
  | `runo mv RUN... [--dest DIR] [--label L] [--why TEXT]` | run を `runs/` 配下で改名・移動する。id、入力、履歴は変えない(§7.7) |
544
565
  | `runo archive RUN\|DIR... [--superseded-by RUN\|DIR --why TEXT] [-y]` / `runo archive --older-than 90d [-y]` | `runs/_archive/<元の相対 path>` に移動して `archived` にする。対象は created と終端の run(created は job を持たないため)。移動前に全対象を検査し、指定した RUN が対象外なら何も動かさない。DIR は配下の run(系列)を指し、submitted / running と pinned を除いて表示する。created は `--superseded-by` があるときだけ含める。`--superseded-by` は各 run に置き換え先(`parent_run` がその run の置き換え先 run、無ければ指定した全 run)を `run.superseded_by` に記録し、`--why` を note に残す |
545
566
  | `runo restore RUN` | archive 前の場所に戻す。既に何かあれば拒否 |
546
567
  | `runo delete RUN... [-y]` | directory を削除。`created`/`failed`/`cancelled`/scratch のみ。`pinned` は拒否 |
547
568
  | `runo tidy [--apply] [--only KIND] [--older-than AGE] [--purge-work RUN...] [--json]` | 整理候補を表示する(§7.5)。`--apply` で実行 |
548
- | `runo migrate-v1 [--dry-run] [--apply-delete-test-runs] [-y]` | v1 project を v2 layout に変換する(§11) |
549
569
  | `runo --version` | version 表示 |
550
570
 
551
571
  ### 7.4 `list` の規則
552
572
 
553
573
  - 既定で表示するのは次の **どれか** を満たす run: `status` が `created`/`submitted`/`running`、
554
574
  `created_at` が `defaults.list_since_days` 以内、`pinned = true`。
555
- - 既定で表示しない: scratch run、archived run、上記以外の古い terminal run。
575
+ - 既定で表示しない: scratch run(submitted / running は除く。進行中の作業なので `--scratch` なしでも、
576
+ `--status` で絞ったときも出す)、archived run、上記以外の古い terminal run。
556
577
  - `--all` は scratch と archived 以外をすべて表示。`--scratch`、`--archived` は
557
578
  それぞれを **追加** する。
558
579
  - 表示列: id、status、label、case、sweep、created(相対時刻)、elapsed、progress、最新 note の先頭 60 文字、`why`。
@@ -571,7 +592,7 @@ adapter が `progress(run_dir)` を持つとき、`sync` は running の run と
571
592
  | `stale-failed` | `failed`/`cancelled` で `defaults.tidy_failed_days`(既定 30)日より古く、note も `why` も空 | delete |
572
593
  | `old-completed` | `completed` で `defaults.tidy_archive_days`(既定 90)日より古く、`pinned = false` | archive |
573
594
  | `orphan-job` | `submitted`/`running` だが squeue/sacct に job が無い | sync(state 確定) |
574
- | `unused-build` | `.runops/build/*` のうち、非 archived run の manifest から参照されないもの | delete |
595
+ | `unused-build` | `.runops/build/*` のうち、非 archived run と pinned run(archived を含む)の manifest から参照されず、どの simulator の現在の解決先(`local_source` の今の build、executable が置かれた build)でもないもの。理由に参照する archived run の数を示す | delete |
575
596
  | `analysis-logs` | §9.1 の解析 directory 配下の `logs/` にある `*.<jobid>.out/err`。組の最終更新が `tidy_failed_days` より古く、同じ log directory・job 名の最新の組ではない | log file のみ delete |
576
597
 
577
598
  - `--older-than AGE`(例 `14d`)はその回だけ、上の 2 つの日数をどちらもこの値で置き換える。
@@ -646,7 +667,6 @@ class SimulatorAdapter(ABC):
646
667
  def resolve_runtime(self, sim_config: dict, venv: Path) -> RuntimeInfo: ... # 既定: executable を .venv/bin → PATH の順で探す
647
668
  def collect_provenance(self, runtime: RuntimeInfo) -> dict[str, Any]: ... # 既定: exe_hash, package_version
648
669
  def validate_params(self, params: dict) -> list[str]: return [] # warning 文字列
649
- def summarize(self, run_dir: Path) -> dict[str, Any]: return {}
650
670
  def keep_patterns(self) -> list[str]: return [] # purge-work で残す glob
651
671
  def extend_inputs(self, src_run: Path, run_dir: Path, params: dict) -> list[str]:
652
672
  raise NotImplementedError # --continue 対応
@@ -668,7 +688,9 @@ class SimulatorAdapter(ABC):
668
688
  これにより case の `[params]` が空でも `--set` で variation を作れる。
669
689
  - v1 の `interactive_config`、`doc_repos`、`knowledge_sources`、`codex_plugins`、
670
690
  `parameter_schema`、`default_plot_recipes`、`required_outputs`、`probe_readiness`、
671
- `agent_guide`、`build_version_capture_commands` は契約から外す。
691
+ `agent_guide`、`build_version_capture_commands` は契約から外す。2.8 までの任意 hook
692
+ `summarize(run_dir)` も外した(`runo summarize` と共に削除)。この method を持つ adapter は
693
+ そのまま動き、runops は呼ばない。
672
694
  - runops 本体に simulator 固有の adapter を **同梱しない**。同梱するのは `generic`(§8.4)だけ。
673
695
  v1 の `adapters/contrib/emses`、`adapters/contrib/beach` は §8.5 の手順で外に出す。
674
696
  - adapter は Python class だが、simulator package が `runops` を import する必要は無い。
@@ -738,7 +760,7 @@ runops は次の 6 skill だけを同梱し、simulator skill と同じ仕組み
738
760
  | `runops-tidy` | `tidy` を定期的に実行する判断基準。pin の使い方 |
739
761
  | `runops-analyze` | 依存する run の範囲で調査の置き場所を決め、script・結果・log・README をまとめる。読み手に渡す比較レポートの書き方は同梱の `report-guide.md` と `example-report/` に置く |
740
762
  | `runops-reference` | command 一覧(§7.3 の表をそのまま載せる) |
741
- | `runops-maintain` | simulator の追加、runops と simulator package の更新、`migrate-v1`、`doctor` の読み方 |
763
+ | `runops-maintain` | simulator の追加、runops と simulator package の更新、v1 project の案内、`doctor` の読み方 |
742
764
 
743
765
  ### 8.4 generic adapter
744
766
 
@@ -755,11 +777,10 @@ simulator package が無くても使えるよう `generic` adapter を同梱す
755
777
  v1 の `emses` / `beach` adapter は次の順で runops 本体から出す。
756
778
 
757
779
  1. v2 契約(§8.1)に移植した `emses.py` と `beach.py` を `src/runops/legacy_adapters/` に
758
- 置く。registry には登録しない。`migrate-v1` が実行時に読むため package に含める。
759
- 2. `migrate-v1` は project の `simulators.*.adapter` が `emses` / `beach` のとき、
780
+ 置く。registry には登録しない。`runo init` が実行時に読むため package に含める。
781
+ 2. `runo init` は `emses` / `beach` の adapter が entry point で見つからないとき、
760
782
  対応する file を project の `adapters/` にコピーする(既にあれば触らない)。
761
- これで simulator repo の対応を待たずに旧 project が v2 で動く。`runo init` も、
762
- `emses` / `beach` の adapter が entry point で見つからないときは同じ file を置く。
783
+ これで simulator repo の対応を待たずに project が動く。
763
784
  3. MPIEMSES3D と BEACH の Python package に entry point と `agent_context_dir()` を追加したら、
764
785
  `legacy_adapters/` の該当 file を削除する。project ローカルの copy は entry point が
765
786
  見つかると使われなくなる(解決順 1 が優先)ので、ユーザーが消せばよい。
@@ -781,8 +802,11 @@ seal、index を持たない)。
781
802
  - agent harness(`AGENTS.md`)は次を指示する。
782
803
  - run に関する観察は `runo note RUN "..."` に書く
783
804
  - 複数 run にまたがる結論と次の判断は `LOG.md` に日付付きで追記する
784
- - 再利用する式・手法・環境の落とし穴は `notes/<topic>.md` に書く。既存 file があれば追記し、
785
- 似た topic の file を増やさない
805
+ - 次の実験で同じ指標や手法を使うときは、`context` に出た該当ノートを開き、適用条件を確かめる
806
+ - 再利用する知見は既存の `notes/<topic>.md` にまとめる。定義と適用条件を本文に書き、
807
+ 根拠となる解析 README や集計表をノートからの相対リンクで示す。新しい topic のみ file を作る
808
+ - 機械可読の出典が必要なノートは、Open Knowledge Format (OKF) の YAML frontmatter に
809
+ `type` と `sources[].resource` を書ける。通常の Markdown も同じ手順で扱う
786
810
  - 調査の詳細は §9.1 の README にまとめ、LOG.md からリンクする
787
811
  - v1 の `research/results/`、`.runops/insights/`、`research/archive/legacy/` は移行時に
788
812
  `notes/legacy/` 配下へ **移動せず** そのまま残し、`notes/README.md` から path を案内する(§11)。
@@ -816,11 +840,15 @@ seal、index を持たない)。
816
840
 
817
841
  `init` が生成する agent 向けファイルは次だけ。
818
842
 
819
- - `AGENTS.md`: 120 行以内。project 名、simulator、§7.3 の command 表、作業の進め方、
820
- §9 のノート規約、展開済み skill の一覧。作業の進め方は次の 5 項目で、それぞれ「何をするか」と
843
+ - `AGENTS.md`: 120 行以内。project 名、simulator、§7.3 の command 表(常用と保守に分ける)、作業の進め方、
844
+ §9 のノート規約、展開済み skill の一覧。作業の進め方は次の 6 項目で、それぞれ「何をするか」と
821
845
  短い理由で書く(禁止事項の列挙にしない)。依頼が操作の範囲を決める、submit 前に対象と資源量を
822
- 示して確認を取る、操作対象は起動した project の run と job、run の変更は `runo` を通す
823
- (variation は case ではなく run、§5)、理由を残す(`--why`、`cancel --why`、`--superseded-by`)。
846
+ 示して確認を取る、操作対象は起動した project の run と job、管理 run の作成・投入・取消・再試行は
847
+ `runo` を通す(二重投入の防止、job id と attempt の記録、状態更新。variation は case ではなく run、§5)、
848
+ run の外の準備・検査・解析 job は project 内の script を承認範囲で `sbatch` し、対象 run・目的・job id・
849
+ 資源・依存・結果の場所を残し、run がそれを待つときは `submit --dependency` で結ぶ、理由を残す
850
+ (`--why`、`cancel --why`、`--superseded-by`)。この規則の本文は生成する AGENTS.md に置き、
851
+ skill はそれを参照する。
824
852
  - skill は手順を書き、AGENTS.md の方針を繰り返さない。
825
853
  - harness file は project root にだけ置く。`runs/` や `cases/` 配下には生成しない。
826
854
  - `CLAUDE.md`: `@AGENTS.md` の 1 行。
@@ -833,35 +861,15 @@ seal、index を持たない)。
833
861
 
834
862
  ## 11. v1 からの移行
835
863
 
836
- `runo migrate-v1 [--dry-run]` は v1 project を次のように変換する。一回限りの command で、
837
- framework 化しない。
864
+ v1 project の変換は、一回限りの command `runo migrate-v1` として runops 2.8 まで同梱した
865
+ (変換の内容は 2.8 の本節)。2.9 で削除し、v1 project は runops 2.8 で変換してから更新する
866
+ (`uvx --from runops==2.8.0 runo migrate-v1 --dry-run`)。
838
867
 
839
- | v1 | v2 |
840
- |---|---|
841
- | `simulators.toml` + `launchers.toml` + `site.toml` | `runops.toml` に統合。`codex_plugins` は捨てる。`[site.simulators.X].modules` は `[simulators.X].modules` に入れる。launcher の `type` は `kind` にする |
842
- | `cases/<sim>/<name>/` | `cases/<name>/` に移動。衝突時は `<sim>-<name>` |
843
- | `[classification]` | `case.tags` / `run.tags` に `model`、`submodel`、`tags` を平坦化 |
844
- | manifest `[intent].purpose` | `run.why` |
845
- | manifest `[storage].pinned` | `run.pinned` |
846
- | manifest `[params_snapshot]` | `[params]` |
847
- | manifest `status = purged` | `status = archived` + `storage.work_purged_at = <archived_at>` |
848
- | manifest `[path].bundle_archived_from` | `[path].archived_from` |
849
- | manifest `[path].run_dir`(絶対 path) | project root 相対に変換。project 外を指す場合は warning を出し現在の実 path で上書き |
850
- | manifest `[job].queue`、`last_slurm_state`、`[[job.attempts]]` | `queue` は捨てる。`last_slurm_state` と `[[job.attempts]]` はそのまま |
851
- | `[simulators.<name>]` の `executable` が `.runops/work/<name>-<hash>/bin/...` | `.runops/work/<dir>` を `.runops/build/<dir>` に移動し path を書き換える。移動できない場合は `local_executable` のまま残す |
852
- | `runs/**/survey.toml` | 同じ directory 配下の run の `origin.sweep` が空なら `survey.id`(無ければ directory 名)を補う。file 自体は残す |
853
- | `runs/_archive/` 配下の run(v1 の bundle archive を含む) | `status = archived`、`archived_from` は `_archive/` を外した path |
854
- | `runs/AGENTS.md`、`runs/CLAUDE.md`、`cases/**/AGENTS.md` など root 以外の harness file | `.runops/v1-backup/<stamp>/` へ移動 |
855
- | `.runops/test-runs/T*/` | 削除候補として表示(`--apply-delete-test-runs` で削除) |
856
- | `experiments/`、`research/`、`.runops/insights/`、`.runops/knowledge/`、`refs/`、`materials/`、`analysis/`、`harness-feedback/`、`.harnessops/` | 触らない。`notes/README.md` と `LOG.md` 末尾に「v1 の資料は以下に残る」と path 一覧を追記 |
857
- | `campaign.toml`、`SITE.md`、`.harness/`、`.runops/facts.toml`、`.runops/environment.toml`、`.runops/harness.lock` | 触らない(git 履歴で消せる)。`doctor` が「v1 の残骸」として列挙する |
858
- | v1 の `runops.toml`、`AGENTS.md`、`CLAUDE.md`、`.codex/`、`.claude/skills/runops-*`、`.agents/skills/runops-*` | `.runops/v1-backup/<stamp>/` へ移動し v2 の harness を生成 |
859
- | 各 run の v1 manifest | `manifest.v1.toml` として同じ run directory に残す |
860
-
861
- - 変換後の manifest は `schema = 2`。v2 の runops は `schema` が無い、または `1` の
862
- manifest を読んだら `migrate-v1` を案内して exit code 2。
863
- - run directory の物理的な移動は行わない。`runs/sheath/wc_scan/R...` のような v1 の
864
- 配置はそのまま読める(§3 の規約通り)。
868
+ - v2 の runops は、`simulators.toml` のある directory、`schema` が 2 でない `runops.toml`、
869
+ `schema` が無いか `1` の manifest を読むと、runops 2.8 の `migrate-v1` を案内して exit code 2。
870
+ `init` も `simulators.toml` のある directory では同じ案内で止まる。
871
+ - 変換済みの project に残る `.runops/v1-backup/`、`manifest.v1.toml` は runops が読まない。
872
+ `doctor` は v1 の残骸(`campaign.toml` など)を列挙する。
865
873
 
866
874
  ---
867
875
 
@@ -914,15 +922,14 @@ src/runops/
914
922
  sync.py # sync / status / log
915
923
  listing.py # list の選択規則
916
924
  tidy.py # tidy / archive / restore / delete / purge-work
917
- notes.py # note / context / summarize
925
+ notes.py # note / context
918
926
  setup.py # init / doctor / update
919
927
  skills.py # agent context の展開、skills.lock
920
- migrate.py # migrate-v1
921
928
  adapters/
922
929
  base.py # Protocol、RuntimeInfo、toml_override、set_dotted
923
930
  registry.py
924
931
  generic.py
925
- legacy_adapters/ # v1 emses / beach の移植(migrate-v1 がコピー)
932
+ legacy_adapters/ # v1 emses / beach の移植(init がコピー)
926
933
  launchers.py # srun / mpirun / mpiexec / none
927
934
  jobgen.py
928
935
  slurm.py # sbatch / scancel / squeue / sacct(runner 注入)
@@ -940,7 +947,7 @@ src/runops/
940
947
  1. **骨格**: `config`、`project`、`manifest`、`cli` の `init` / `doctor` / `case new` /
941
948
  `new` / `status` / `list`。generic adapter。job.sh 生成なし。
942
949
  2. **投入**: `jobgen`、`launchers`、`slurm`、`build`(local_source)、`submit` / `sync` / `cancel` / `retry` / `log`。
943
- 3. **整理**: `note` / `context` / `tidy` / `archive` / `restore` / `delete` / `summarize` / `sweep` / `new --from`。
950
+ 3. **整理**: `note` / `context` / `tidy` / `archive` / `restore` / `delete` / `sweep` / `new --from`。
944
951
  4. **連携**: `skills.py`、`harness.py`、`update`。MPIEMSES3D 側に entry point と
945
952
  `agent_context_dir` を足して end-to-end 確認。
946
953
  5. **移行**: `migrate-v1`。実在の v1 project で dry-run → apply を確認。
@@ -956,7 +963,7 @@ src/runops/
956
963
  | 項目 | 目標 |
957
964
  |---|---|
958
965
  | `src/runops/` の行数(skill の md を除く) | 8,000 行以下 |
959
- | CLI command 数(`case new` / `case list` を含む。同じ command の option 違いは数えない) | 25 以下。§7.3 の表の distinct command は 25 |
966
+ | CLI command 数(`case new` / `case list` を含む。同じ command の option 違いは数えない) | 25 以下。§7.3 の表の distinct command は 23 |
960
967
  | ユーザーが編集する TOML | `runops.toml`、`case.toml` の 2 種 |
961
968
  | runops が書く TOML | `manifest.toml`、`.runops/skills.lock`、`.runops/index.toml` の 3 種 |
962
969
  | 依存 | `typer`、`rich`、`tomli-w`、`tomlkit`、`jinja2`、`packaging`(`mcp` を外す) |
@@ -987,10 +994,9 @@ src/runops/
987
994
  8b. `local_source` simulator で `runo new` したとき `.runops/build/<sim>-<commit>/` に
988
995
  build が走り(mock build_command)、manifest に `exe_hash` と `git_commit` が入る。
989
996
  2 回目は build が走らない。
990
- 9. v1 の sample project(`tests/fixtures/v1-project/`)に `migrate-v1 --dry-run` が
991
- 変換計画を表示し、`migrate-v1` 後に `list --all` が v1 の run をすべて表示する。
992
- fixture の simulator が `beach` なら `adapters/beach.py` がコピーされ、`doctor` が
993
- 「project ローカル」経路で解決したと表示する。
997
+ 9. v1 の project(`simulators.toml`、schema 1 の `runops.toml` / manifest)を開くと、runops 2.8 の
998
+ `migrate-v1` を案内して exit code 2 になる。`init emses` / `init beach` は adapter が entry point に
999
+ 無いとき `adapters/<name>.py` を置き、run がそれを「project ローカル」経路で使う。
994
1000
  9b. 同名 adapter が entry point と `adapters/X.py` の両方にあるとき entry point が優先される。
995
1001
  どちらも無く `generic` でもなければ exit code 2 で案内が出る。
996
1002
  10. `manifest.toml` の書き込み途中で例外が起きても元のファイルが壊れない。
@@ -1040,11 +1046,17 @@ v2 の文書は次の 4 ファイルだけにする。
1040
1046
  | 整理と命名のしきい値 | `[defaults]` に `tidy_failed_days`、`tidy_archive_days`、`label_max_length` を追加。completed の目安は「`--older-than` の 3 倍」をやめて独立の値に | project ごとに計算期間や命名が違い、エージェントに毎回 option を渡させると揃わない |
1041
1047
  | `runo init` の対話と site の推定 | 端末から引数なしで実行したときだけ site と simulator を尋ねる。site の既定はホスト名(`camphor*`、`laurel*`、`cinnamon*`、`gardenia*` なら `kudpc`)。プリセット名は `kudpc` とし、`camphor` も同じ意味で受け付ける | 人が打つのは `runo init` だけなので、ここで KUDPC 向けの設定を取り違えないようにする。エージェントや CI からの実行(端末でない、`-y`、引数あり)は従来どおり尋ねない |
1042
1048
  | 異常系と同時操作(2026-10-20) | `run.lock` 下で manifest を読み直す、準備の失敗で program を起動しない、adapter を読めなければ purge しない、build cache の key を内容と `build_command` から作る、run の入れ子を禁止、run id を再利用しない(`last_run_id`)、`new --from` で case の変更を警告 | 外部レビューで、二重投入で 1 回目の履歴が消える、準備失敗が completed になる、adapter の故障で保持ファイルが消える、未追跡ファイルの変更で古い binary を使う、削除した id が別の run を指す、を確認した |
1043
- | 操作範囲は起動 project(2026-10-21) | AGENTS.md block と skill に「対象は起動した project の run と job id だけ。アカウント全体の squeue / sacct は診断に見るだけ。自分で別 directory に移らず、生の `sbatch` / `scancel` を使わない」を書く。CLI は別 project の path を拒否する | 範囲を言わない「再投入して」で、エージェントが別 project や runops 管理外のジョブまで再投入した。cwd で project を決める既存の model に、path 引数の抜け道(`submit --all /other/runs` など)があった。他 session が修正のために止めた run を見分けられるよう、`cancel --why` を note に残し、`retry` はその理由を示して確認を取る(#112) |
1049
+ | 操作範囲は起動 project(2026-10-21) | AGENTS.md block と skill に「対象は起動した project の run と job id だけ。アカウント全体の squeue / sacct は診断に見るだけ。自分で別 directory に移らず、生の `sbatch` / `scancel` を使わない」を書く(生の `sbatch` / `scancel` の対象は runops が管理する run。run の外の job は 2026-11-12 の決定)。CLI は別 project の path を拒否する | 範囲を言わない「再投入して」で、エージェントが別 project や runops 管理外のジョブまで再投入した。cwd で project を決める既存の model に、path 引数の抜け道(`submit --all /other/runs` など)があった。他 session が修正のために止めた run を見分けられるよう、`cancel --why` を note に残し、`retry` はその理由を示して確認を取る(#112) |
1044
1050
  | 置き換えた系列の整理(2026-10-21) | `archive` が DIR(系列)を受け、`--superseded-by` で置き換え先を manifest に記録する。新しい command と tidy の種別は足さない。skill は新系列を作ったら旧系列の要否を確かめ、不要なら archive して現用系列・archive 先・件数を報告する | 修正版を作った後に旧系列が作業領域に残り、毎回ユーザーが整理を頼んでいた。`parent_run` だけでは比較用の派生と置き換えを区別できないので、置き換えは明示操作で記録する。旧 `archive` は 1 件ずつ検査していて、途中の running run で一部だけ移動していた(#113) |
1045
1051
  | 生成ハーネスの書き方(2026-10-21) | AGENTS.md の Rules を「作業の進め方」5 項目に絞り、各項目を「何をするか」と短い理由で書く。skill は手順に専念し、AGENTS.md の方針(manifest を手で編集しない等)を繰り返さない | #112・#113 で規則が増え、禁止形(never / do not)が並んでいた。現行の Claude の prompting 指針は、しないことより何をするかを、理由と共に書くことを勧め、強い禁止語は過剰反応を招くとしている |
1046
1052
  | 複数 run の mv / archive(2026-10-22) | 1 回の `run.lock` の下で全対象を読み直して検査し、通ってから移す。途中の filesystem error では移し終えた run id を示して止まる | `mv A B C --dest X` は 1 件ずつ検査して移していたので、途中の submitted run で一部だけ移動していた。archive は表示の後で lock を取り直していて、その間に再投入された run で同じことが起き得た |
1047
1053
  | 進捗と系列配置 2.5.0(2026-10-23) | adapter に任意の `progress()`、`sync` が時刻付き観測を保存し速度・残り時間を要約(§6.4)。`new --from` の既定置き場所を元 run と同じ directory に。agent context の `docs/` も展開 | 速度比較のために agent が時刻付き batch 観測を手で保存し、再開点や終了後の待ちを毎回補正していた(4 回)。継続世代が case 直下に並び、同じ計算の系列を見分けにくかった。skill が package の `docs/` を参照していたが展開されていなかった。進捗の解析は simulator 固有なので adapter が持ち、runops は保存と表示だけにする |
1048
1054
  | 横断の状態確認 2.7.0(2026-10-30) | `list` / `status` に `--brief`、`context` に全 active run の `active`、progress 要約に `last_change_at` と `stalled_hours`(§6.4、§7.1、§7.3) | hub で 4 project の active run を集めるのに `recent_runs` 5 件では足りず、全 `params` 付きの `list --json` は shell 引数長を超えた(3 回)。進捗が 6 時間止まった run を 49% と報告した。新しい command は足さず、既存の summary を小さくし、観測から止まりを出す |
1049
1055
  | FEEDBACK 棚卸し 2.4.0(2026-10-23) | `--job k=v` と `new --from` の `[job]` 継承、created の archive / restore、archived scratch を期限削除しない、展開 skill の references 参照の書き換えと `doctor` のリンク検査、adapter warning への版の併記、生成 AGENTS.md に解析環境の置き場所 | hub の FEEDBACK で、資源変更のための case 編集(3 回)、置換済み draft を archive できず helper で迂回(2 回)、保管目的の archive が期限削除される、skill から reference に辿れない、新版の正規キーが誤記に見える、解析依存の置き場所が project ごとに違う、が記録された。いずれも既存 command の拡張で、command 数は増やさない |
1056
+ | FEEDBACK 棚卸し 2.9.0(2026-11-12) | `case new --from` が `--simulator` を反映し有効な simulator を表示する。端末でない出力では表の cell を切らない。squeue の reason を `pending_reason`、投入時の依存を attempt の `dependency` に残して表と JSON に出し、`submit --dependency` で Slurm の依存指定を広げる。`submit` と `--submit` は 1 run の失敗で止まらず、未受理の run を要約し、`submit --json` が受理・未受理・受理不明を返す。継続 run の進捗に今回の区間の割合(`attempt_fraction`)を併記する。`tidy` の `unused-build` から pinned run の build と simulator の現在の build を外す。`list` は submitted / running の scratch run を既定で出す。`new` / `sweep` は run にコピーしない case 内の directory を 1 行で示す。`package` を指定した simulator でも adapter の `pip_packages()` の他の package(emses の emout)を入れ、`doctor` が欠落を示す | case を複製して改造 build を使うつもりが元の binary で走った(2 回)。pipe で run id が `R20261111…` と欠けた。`QOSGrpCpuLimit` や前段 job の失敗による `DependencyNeverSatisfied` で止まった run が、台帳では理由の無い submitted だった(複数 project で繰り返し)。前段の検査 job に `afterany` で結ぶ手段が無かった。一括投入の一部失敗で、どれが created のままかを manifest から読み直していた。継続 run の 74% が今回の job の進み具合と読み違えられた。保存のため pin した archived run の旧 build と、run を作る前の現行 build が削除候補に挙がった。実行中の smoke run が `list` に出ず、横断の状態表から漏れた。case の下位 directory に置いた配置表が run に入らず、気づかれなかった。`init emses` が書く `package` が adapter の `pip_packages()` を読ませず、emses project の `.venv` に解析 package(emout)が入らなかった(3 回)。runops 側に emses 用の一覧を持たず、adapter の契約で解く。command は増やさない |
1057
+ | `runo` と直接の `sbatch` の範囲(2026-11-12) | 管理 run の作成・投入・取消・再試行は `runo`(二重投入の防止、job id と attempt の記録、状態更新)。run の外の準備・検査・解析 job は project 内の script を承認範囲で `sbatch` し、対象 run・目的・job id・資源・依存・結果の場所を記録する。run がそれに依存するときは `runo submit --dependency`(または `--afterok`)で結び、依存先を台帳に残す。本文は生成 AGENTS.md(§10)、skill は参照。job / DAG / campaign の entity は足さない | 利用痕跡(401 run 中、runo の投入記録が無いのは移行分だけ)では simulation の run は `runo submit` で投入され、直接の `sbatch` は入力照合・cache 準備・出力検査・解析・文書同期だった。`runops-analyze` が解析 job の `sbatch` を指示する一方、2026-10-21 の決定は生の `sbatch` を禁じる書き方で、範囲が食い違っていた。解析を generic adapter の run にすると描画ごとに case と run が増える |
1058
+ | 常用と保守の案内(2026-11-12) | `runo --help` を typer の `rich_help_panel` で 4 panel に分け、生成 AGENTS.md と `runops-reference` の表を常用(作成と投入、監視、整理)と保守(`init`、`doctor`、`update`、`build`)に分ける。command は削らない | 利用痕跡では作成・投入・監視・復旧・保管が常用で、保守の command は project の準備と更新のときだけ使われていた。常に読む案内を常用の command に寄せる |
1059
+ | 代表値と再現性の書き方(2026-11-12) | `runops-analyze` の `report-guide.md` に 2 点を足す: 代表値の図には平均する領域・重み・基準を本文に書く。再現性の検査は bitwise の一致、標本のばらつき、物理量の許容差を分けて設計する | 面積平均した電位の基準と領域が読み手と食い違った。並列 Monte Carlo の逐点一致を求めて、加算順序の違いを不一致と取り違えた |
1060
+ | 起動検査の書き方(2026-11-12) | `runops-create-run` に節を置く: 短い起動検査は起動と物理設定の成立だけを判定し、定常性・統計誤差・収束は別に評価する。止める条件と警告を分け、閾値に根拠と分母を添え、項目ごとの判定・実測値・単位・閾値・script の版を JSON に残す。代表 1 配置の検査を他の配置に広げない。runops は判定を持たない(§1.4) | 起動検査に運用判断を混ぜて厳しくしすぎた例と、代表 1 配置の試験が他の配置の不良を拾えなかった例が続いた。判定の記録を runops が持つ案は、2 例目が出るまで見送る |
1061
+ | command の削除(2026-11-12) | `runo summarize` と adapter の `summarize()` hook、`runo migrate-v1` と `ops/migrate.py` を外す(command 23)。既存 run の `analysis/summary.json` は消さず、読む機能も無い。v1 project には runops 2.8 の `migrate-v1` を案内する(§11)。`legacy_adapters/` は `init` が使うので残す | 4 project の利用痕跡で v2 形式の summary は 6 件だけで、adapter の inspect や project の解析と重複していた。v1 からの移行は一度限りで、残る v1 project も 2.8 で変換できる。上限 25 の枠を常用の機能に残す |
1050
1062
  | 使い方ガイド | `docs/guide.md` を追加し、文書を 4 ファイルにする(§13.3) | README の依頼例の表と command 一覧の間を埋める、場面ごとの流れ(case と run の分け方、smoke から本計算、状態の決まり方、整理)の置き場所が無かった |
@@ -40,12 +40,11 @@ class Adapter:
40
40
  |---|---|
41
41
  | `configure(sim_config)` | `runops.toml` の `[simulators.X]` を受け取る |
42
42
  | `case_template() -> dict[str, str]` | `runo case new` が置く base file |
43
- | `pip_packages() -> list[str]` | `runo init` / `runo update` が `.venv` に入れる package |
43
+ | `pip_packages() -> list[str]` | `runo init` / `runo update` が `.venv` に入れる package。`runops.toml` に `package` があれば simulator 自身はそちらで入れ、ここに挙げた他の package(解析 package など)は `.venv` に無いときに入れる |
44
44
  | `resolve_runtime(sim_config, venv) -> RuntimeInfo` | executable 解決を自前で行う場合 |
45
45
  | `collect_provenance(runtime) -> dict` | manifest の `[simulator]` に足す値 |
46
46
  | `validate_params(params) -> list[str]` | warning 文字列 |
47
47
  | `job_prelude(run_dir) -> list[str]` | job.sh で実行直前に置く shell 行 |
48
- | `summarize(run_dir) -> dict` | `runo summarize` の内容 |
49
48
  | `keep_patterns() -> list[str]` | `tidy --purge-work` で残す glob |
50
49
  | `extend_inputs(src_run, run_dir, params) -> list[str]` | `runo new --from RUN --continue` の restart 設定 |
51
50
  | `agent_context_dir() -> Path | None` | 同梱 skill と reference の場所 |
@@ -95,7 +94,16 @@ wheel に含めるには、その directory を package data に入れます。s
95
94
 
96
95
  ## 既存の EMSES / BEACH adapter
97
96
 
98
- v1 から移植した adapter は `src/runops/legacy_adapters/` にあります。`runo migrate-v1` と、
97
+ v1 から移植した adapter は `src/runops/legacy_adapters/` にあります。
99
98
  entry point が見つからないときの `runo init emses` / `runo init beach` が、project の
100
99
  `adapters/` にコピーします。MPIEMSES3D と BEACH の package が entry point を
101
100
  公開したら、legacy 版は削除できます。
101
+
102
+ EMSES の legacy adapter は、元の run の `work/latest/SNAPSHOT1`、次に
103
+ `work/SNAPSHOT1` を探し、新しい run 直下の `SNAPSHOT0` にリンクします。
104
+ native reader はジョブの CWD から `SNAPSHOT0` を読み、`-o work/latest` は出力先だけを
105
+ 指定するためです。
106
+
107
+ 既存 project にコピー済みの `adapters/emses.py` は runops の更新だけでは書き換わりません。
108
+ 古いコピーが `work/latest/SNAPSHOT0` や `work/SNAPSHOT0` にリンクする場合は、リンク先を
109
+ run 直下へ修正するか、`mpiemses3d-tools` 4.22.1 以降の entry point を使用してください。