runops 2.9.1__tar.gz → 2.11.0__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 (128) hide show
  1. {runops-2.9.1 → runops-2.11.0}/PKG-INFO +4 -4
  2. {runops-2.9.1 → runops-2.11.0}/README.md +1 -1
  3. {runops-2.9.1 → runops-2.11.0}/SPEC.md +38 -10
  4. {runops-2.9.1 → runops-2.11.0}/docs/guide.md +19 -6
  5. {runops-2.9.1 → runops-2.11.0}/docs/reference.md +26 -11
  6. {runops-2.9.1 → runops-2.11.0}/pyproject.toml +3 -3
  7. {runops-2.9.1 → runops-2.11.0}/src/runops/__init__.py +1 -1
  8. {runops-2.9.1 → runops-2.11.0}/src/runops/case.py +5 -0
  9. {runops-2.9.1 → runops-2.11.0}/src/runops/cli.py +35 -33
  10. {runops-2.9.1 → runops-2.11.0}/src/runops/config.py +20 -1
  11. {runops-2.9.1 → runops-2.11.0}/src/runops/errors.py +5 -1
  12. {runops-2.9.1 → runops-2.11.0}/src/runops/harness.py +7 -7
  13. {runops-2.9.1 → runops-2.11.0}/src/runops/jobgen.py +126 -35
  14. {runops-2.9.1 → runops-2.11.0}/src/runops/manifest.py +13 -0
  15. {runops-2.9.1 → runops-2.11.0}/src/runops/ops/create.py +6 -1
  16. {runops-2.9.1 → runops-2.11.0}/src/runops/ops/setup.py +61 -13
  17. {runops-2.9.1 → runops-2.11.0}/src/runops/ops/submit.py +72 -29
  18. {runops-2.9.1 → runops-2.11.0}/src/runops/ops/sync.py +85 -32
  19. {runops-2.9.1 → runops-2.11.0}/src/runops/ops/tidy.py +14 -10
  20. runops-2.11.0/src/runops/pbs.py +100 -0
  21. {runops-2.9.1 → runops-2.11.0}/src/runops/skills/runops-check-status/SKILL.md +3 -3
  22. {runops-2.9.1 → runops-2.11.0}/src/runops/skills/runops-reference/SKILL.md +9 -9
  23. {runops-2.9.1 → runops-2.11.0}/tests/conftest.py +1 -1
  24. {runops-2.9.1 → runops-2.11.0}/tests/test_analysis_layout.py +1 -3
  25. runops-2.11.0/tests/test_pbs.py +187 -0
  26. {runops-2.9.1 → runops-2.11.0}/tests/test_setup_misc.py +48 -2
  27. {runops-2.9.1 → runops-2.11.0}/uv.lock +1 -1
  28. {runops-2.9.1 → runops-2.11.0}/.agents/skills/check/SKILL.md +0 -0
  29. {runops-2.9.1 → runops-2.11.0}/.agents/skills/improve-harness/SKILL.md +0 -0
  30. {runops-2.9.1 → runops-2.11.0}/.agents/skills/python-package-refactor/SKILL.md +0 -0
  31. {runops-2.9.1 → runops-2.11.0}/.agents/skills/python-package-refactor/agents/openai.yaml +0 -0
  32. {runops-2.9.1 → runops-2.11.0}/.agents/skills/python-package-refactor/examples/refactor-request.md +0 -0
  33. {runops-2.9.1 → runops-2.11.0}/.agents/skills/python-package-refactor/references/anti-patterns.md +0 -0
  34. {runops-2.9.1 → runops-2.11.0}/.agents/skills/python-package-refactor/references/api-compatibility.md +0 -0
  35. {runops-2.9.1 → runops-2.11.0}/.agents/skills/python-package-refactor/references/packaging-modernization.md +0 -0
  36. {runops-2.9.1 → runops-2.11.0}/.agents/skills/python-package-refactor/references/refactor-playbook.md +0 -0
  37. {runops-2.9.1 → runops-2.11.0}/.agents/skills/python-package-refactor/references/verification.md +0 -0
  38. {runops-2.9.1 → runops-2.11.0}/.agents/skills/python-package-refactor/scripts/api_surface_snapshot.py +0 -0
  39. {runops-2.9.1 → runops-2.11.0}/.agents/skills/python-package-refactor/scripts/import_smoke.py +0 -0
  40. {runops-2.9.1 → runops-2.11.0}/.agents/skills/python-package-refactor/scripts/inspect_python_package.py +0 -0
  41. {runops-2.9.1 → runops-2.11.0}/.agents/skills/python-package-refactor/scripts/refactor_quality_gate.py +0 -0
  42. {runops-2.9.1 → runops-2.11.0}/.agents/skills/release/SKILL.md +0 -0
  43. {runops-2.9.1 → runops-2.11.0}/.agents/skills/simulator-adapter/SKILL.md +0 -0
  44. {runops-2.9.1 → runops-2.11.0}/.agents/skills/spec-reviewer/SKILL.md +0 -0
  45. {runops-2.9.1 → runops-2.11.0}/.agents/skills/sync-docs/SKILL.md +0 -0
  46. {runops-2.9.1 → runops-2.11.0}/.claude/agents/spec-reviewer.md +0 -0
  47. {runops-2.9.1 → runops-2.11.0}/.claude/rules/architecture.md +0 -0
  48. {runops-2.9.1 → runops-2.11.0}/.claude/rules/dev-workflow.md +0 -0
  49. {runops-2.9.1 → runops-2.11.0}/.claude/rules/gotchas.md +0 -0
  50. {runops-2.9.1 → runops-2.11.0}/.claude/settings.json +0 -0
  51. {runops-2.9.1 → runops-2.11.0}/.claude/skills/check/SKILL.md +0 -0
  52. {runops-2.9.1 → runops-2.11.0}/.claude/skills/improve-harness/SKILL.md +0 -0
  53. {runops-2.9.1 → runops-2.11.0}/.claude/skills/python-package-refactor/SKILL.md +0 -0
  54. {runops-2.9.1 → runops-2.11.0}/.claude/skills/release/SKILL.md +0 -0
  55. {runops-2.9.1 → runops-2.11.0}/.claude/skills/simulator-adapter/SKILL.md +0 -0
  56. {runops-2.9.1 → runops-2.11.0}/.claude/skills/spec-reviewer/SKILL.md +0 -0
  57. {runops-2.9.1 → runops-2.11.0}/.claude/skills/sync-docs/SKILL.md +0 -0
  58. {runops-2.9.1 → runops-2.11.0}/.codex/README.md +0 -0
  59. {runops-2.9.1 → runops-2.11.0}/.codex/agents/spec-reviewer.toml +0 -0
  60. {runops-2.9.1 → runops-2.11.0}/.codex/config.toml +0 -0
  61. {runops-2.9.1 → runops-2.11.0}/.codex/rules/runops.rules +0 -0
  62. {runops-2.9.1 → runops-2.11.0}/.dockerignore +0 -0
  63. {runops-2.9.1 → runops-2.11.0}/.gitattributes +0 -0
  64. {runops-2.9.1 → runops-2.11.0}/.github/assets/conversation-dark.svg +0 -0
  65. {runops-2.9.1 → runops-2.11.0}/.github/assets/conversation-light.svg +0 -0
  66. {runops-2.9.1 → runops-2.11.0}/.github/assets/hero-dark.svg +0 -0
  67. {runops-2.9.1 → runops-2.11.0}/.github/assets/hero-light.svg +0 -0
  68. {runops-2.9.1 → runops-2.11.0}/.github/assets/make_readme_art.py +0 -0
  69. {runops-2.9.1 → runops-2.11.0}/.github/workflows/ci.yml +0 -0
  70. {runops-2.9.1 → runops-2.11.0}/.github/workflows/publish.yml +0 -0
  71. {runops-2.9.1 → runops-2.11.0}/.gitignore +0 -0
  72. {runops-2.9.1 → runops-2.11.0}/.pre-commit-config.yaml +0 -0
  73. {runops-2.9.1 → runops-2.11.0}/.vscode/settings.json +0 -0
  74. {runops-2.9.1 → runops-2.11.0}/AGENTS.md +0 -0
  75. {runops-2.9.1 → runops-2.11.0}/CLAUDE.md +0 -0
  76. {runops-2.9.1 → runops-2.11.0}/LICENSE +0 -0
  77. {runops-2.9.1 → runops-2.11.0}/docs/adapter.md +0 -0
  78. {runops-2.9.1 → runops-2.11.0}/src/runops/adapters/__init__.py +0 -0
  79. {runops-2.9.1 → runops-2.11.0}/src/runops/adapters/base.py +0 -0
  80. {runops-2.9.1 → runops-2.11.0}/src/runops/adapters/generic.py +0 -0
  81. {runops-2.9.1 → runops-2.11.0}/src/runops/adapters/registry.py +0 -0
  82. {runops-2.9.1 → runops-2.11.0}/src/runops/launchers.py +0 -0
  83. {runops-2.9.1 → runops-2.11.0}/src/runops/legacy_adapters/__init__.py +0 -0
  84. {runops-2.9.1 → runops-2.11.0}/src/runops/legacy_adapters/beach.py +0 -0
  85. {runops-2.9.1 → runops-2.11.0}/src/runops/legacy_adapters/emses.py +0 -0
  86. {runops-2.9.1 → runops-2.11.0}/src/runops/ops/__init__.py +0 -0
  87. {runops-2.9.1 → runops-2.11.0}/src/runops/ops/analysis.py +0 -0
  88. {runops-2.9.1 → runops-2.11.0}/src/runops/ops/common.py +0 -0
  89. {runops-2.9.1 → runops-2.11.0}/src/runops/ops/listing.py +0 -0
  90. {runops-2.9.1 → runops-2.11.0}/src/runops/ops/notes.py +0 -0
  91. {runops-2.9.1 → runops-2.11.0}/src/runops/ops/progress.py +0 -0
  92. {runops-2.9.1 → runops-2.11.0}/src/runops/ops/skills.py +0 -0
  93. {runops-2.9.1 → runops-2.11.0}/src/runops/project.py +0 -0
  94. {runops-2.9.1 → runops-2.11.0}/src/runops/runtime.py +0 -0
  95. {runops-2.9.1 → runops-2.11.0}/src/runops/skills/runops-analyze/SKILL.md +0 -0
  96. {runops-2.9.1 → runops-2.11.0}/src/runops/skills/runops-analyze/example-report/README.md +0 -0
  97. {runops-2.9.1 → runops-2.11.0}/src/runops/skills/runops-analyze/example-report/out/fig1_maps.png +0 -0
  98. {runops-2.9.1 → runops-2.11.0}/src/runops/skills/runops-analyze/example-report/out/fig2_dependence.png +0 -0
  99. {runops-2.9.1 → runops-2.11.0}/src/runops/skills/runops-analyze/example-report/out/values.csv +0 -0
  100. {runops-2.9.1 → runops-2.11.0}/src/runops/skills/runops-analyze/example-report/report.html +0 -0
  101. {runops-2.9.1 → runops-2.11.0}/src/runops/skills/runops-analyze/example-report/scripts/build_html.py +0 -0
  102. {runops-2.9.1 → runops-2.11.0}/src/runops/skills/runops-analyze/example-report/scripts/make_figures.py +0 -0
  103. {runops-2.9.1 → runops-2.11.0}/src/runops/skills/runops-analyze/report-guide.md +0 -0
  104. {runops-2.9.1 → runops-2.11.0}/src/runops/skills/runops-create-run/SKILL.md +0 -0
  105. {runops-2.9.1 → runops-2.11.0}/src/runops/skills/runops-maintain/SKILL.md +0 -0
  106. {runops-2.9.1 → runops-2.11.0}/src/runops/skills/runops-tidy/SKILL.md +0 -0
  107. {runops-2.9.1 → runops-2.11.0}/src/runops/slurm.py +0 -0
  108. {runops-2.9.1 → runops-2.11.0}/src/runops/util.py +0 -0
  109. {runops-2.9.1 → runops-2.11.0}/tests/__init__.py +0 -0
  110. {runops-2.9.1 → runops-2.11.0}/tests/golden/mpi_standard.sh +0 -0
  111. {runops-2.9.1 → runops-2.11.0}/tests/golden/openmp_rsc.sh +0 -0
  112. {runops-2.9.1 → runops-2.11.0}/tests/test_adapters.py +0 -0
  113. {runops-2.9.1 → runops-2.11.0}/tests/test_archive_series.py +0 -0
  114. {runops-2.9.1 → runops-2.11.0}/tests/test_build.py +0 -0
  115. {runops-2.9.1 → runops-2.11.0}/tests/test_dev_harness.py +0 -0
  116. {runops-2.9.1 → runops-2.11.0}/tests/test_jobgen.py +0 -0
  117. {runops-2.9.1 → runops-2.11.0}/tests/test_legacy_adapters.py +0 -0
  118. {runops-2.9.1 → runops-2.11.0}/tests/test_lifecycle.py +0 -0
  119. {runops-2.9.1 → runops-2.11.0}/tests/test_manifest_config.py +0 -0
  120. {runops-2.9.1 → runops-2.11.0}/tests/test_mv_naming.py +0 -0
  121. {runops-2.9.1 → runops-2.11.0}/tests/test_progress.py +0 -0
  122. {runops-2.9.1 → runops-2.11.0}/tests/test_project_scope.py +0 -0
  123. {runops-2.9.1 → runops-2.11.0}/tests/test_run_job.py +0 -0
  124. {runops-2.9.1 → runops-2.11.0}/tests/test_safety.py +0 -0
  125. {runops-2.9.1 → runops-2.11.0}/tests/test_scratch_tidy.py +0 -0
  126. {runops-2.9.1 → runops-2.11.0}/tests/test_skills.py +0 -0
  127. {runops-2.9.1 → runops-2.11.0}/tests/test_sweep.py +0 -0
  128. {runops-2.9.1 → runops-2.11.0}/tests/test_sync_evidence.py +0 -0
@@ -1,13 +1,13 @@
1
1
  Metadata-Version: 2.5
2
2
  Name: runops
3
- Version: 2.9.1
4
- Summary: Run ledger and Slurm job submission for HPC simulation projects
3
+ Version: 2.11.0
4
+ Summary: Run ledger and 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
7
7
  Project-URL: Issues, https://github.com/Nkzono99/runops/issues
8
8
  License-Expression: Apache-2.0
9
9
  License-File: LICENSE
10
- Keywords: ai-agent,hpc,simulation,slurm,workflow
10
+ Keywords: ai-agent,hpc,pbs,simulation,slurm,workflow
11
11
  Classifier: Development Status :: 4 - Beta
12
12
  Classifier: Environment :: Console
13
13
  Classifier: Intended Audience :: Science/Research
@@ -41,7 +41,7 @@ Description-Content-Type: text/markdown
41
41
  <a href="https://github.com/Nkzono99/runops/blob/main/LICENSE"><img src="https://img.shields.io/badge/license-Apache--2.0-5b6670" alt="License"></a>
42
42
  </p>
43
43
 
44
- runops は HPC / Slurm のシミュレーションを run directory 単位で記録し、AI エージェントが
44
+ runops は Slurm や PBS Professional を使う HPC のシミュレーションを run directory 単位で記録し、AI エージェントが
45
45
  case の準備から投入、確認、整理までを進めるためのツールです。人が打つコマンドは
46
46
  `runo init` だけです。
47
47
 
@@ -10,7 +10,7 @@
10
10
  <a href="https://github.com/Nkzono99/runops/blob/main/LICENSE"><img src="https://img.shields.io/badge/license-Apache--2.0-5b6670" alt="License"></a>
11
11
  </p>
12
12
 
13
- runops は HPC / Slurm のシミュレーションを run directory 単位で記録し、AI エージェントが
13
+ runops は Slurm や PBS Professional を使う HPC のシミュレーションを run directory 単位で記録し、AI エージェントが
14
14
  case の準備から投入、確認、整理までを進めるためのツールです。人が打つコマンドは
15
15
  `runo init` だけです。
16
16
 
@@ -187,6 +187,10 @@ stdout = "stdout.%J.log"
187
187
  stderr = "stderr.%J.log"
188
188
  extra_sbatch = []
189
189
  setup_commands = []
190
+ # scheduler = "slurm" # "slurm" | "pbs"
191
+ # purge_modules = false
192
+ # pbs_group = ""
193
+ # extra_pbs = []
190
194
 
191
195
  [site.env]
192
196
  OMP_PROC_BIND = "spread"
@@ -228,6 +232,11 @@ label_max_length = 48 # run 名の自動ラベルの最大文字数
228
232
  branch 違いを並べる用途)。case の `simulator` はこの name を指す。
229
233
  - `[site]`、`[launchers.*]`、`[simulators.*].modules` の merge 順は v1 と同じ:
230
234
  site modules → launcher modules → simulator modules。
235
+ - `scheduler` の既定は `slurm`。`runo init --site grand` は PBS Professional の設定
236
+ (`scheduler = "pbs"`、`resource_style = "standard"`、`purge_modules = true`、既定 launcher
237
+ は `mpiexec`)を作る。GRAND のログインノードでは自動検出する。
238
+ - `purge_modules = true` なら、module を読み込む直前に `module purge` を実行する。
239
+ `pbs_group` は PBS の既定 group。`extra_pbs` の各行は `#PBS` directive として追加する。
231
240
  - 未知の key は **warning を出して無視** する(fail しない)。
232
241
  - `[defaults]` の日数と文字数は正の数でなければ設定エラー(exit code 2)。project ごとの運用方針
233
242
  (整理の目安、表示期間、命名の長さ)はここに置き、コードに埋め込まない。
@@ -286,6 +295,12 @@ ntasks = 800
286
295
  `nodes`、`ntasks`、`processes`、`threads`、`cores`、`extra_sbatch`、`pre_commands`。
287
296
  `resource_style = "rsc"` のとき `processes/threads/cores` を `--rsc` に、
288
297
  `standard` のとき `nodes/ntasks` を `#SBATCH` に写す。
298
+ - PBS では `partition` は queue、`group` は site の `pbs_group` を上書きする。
299
+ `nodes` と `sockets`(既定は各 1)、node あたりの `mpiprocs` と rank あたりの
300
+ `ompthreads` を `select` に写す。`ntasks`(または `processes`)は総 rank 数で、
301
+ `nodes * mpiprocs` と一致する。`cpus_per_task`(または `threads`)も
302
+ `ompthreads` の指定に使える。`gpus` を指定した場合は node あたりの `ngpus` を割り当てる。
303
+ `memory` は node あたり、`extra_pbs` は追加 directive、`qos` は Slurm 専用。
289
304
  - `cases/<name>/` 直下の base 入力ファイル(adapter の `case_template()` が返す
290
305
  ファイル)と `input/` 配下は、run 作成時に run の `input/` にコピーされ、その後
291
306
  adapter の `render_inputs()` が `[params]` を適用して上書きする。それ以外の(`.` で始まらない)
@@ -317,13 +332,16 @@ ntasks = 800
317
332
  input/ # 凍結済み入力。作成後は変更しない
318
333
  submit/
319
334
  job.sh
320
- sbatch.log # 投入時の stdout/stderr(追記)
335
+ sbatch.log / qsub.log # 投入時の stdout/stderr(追記)
321
336
  exit.<job_id> # job.sh が終了時に書く exit code、開始・終了時刻、stage(TOML)
322
- work/ # simulator の出力。cwd はここ
337
+ work/ # simulator の出力と scheduler のログ
323
338
  analysis/ # run に依存する解析(§9.1)
324
339
  ```
325
340
 
326
341
  v1 の `status/` directory は廃止する。状態は manifest のみが持つ。
342
+ PBS の `qsub` は run の `work/` から実行し、job script は run の root に移動する。
343
+ PBS の既定ログ名は `work/stdout.<job_id>.log` と `work/stderr.<job_id>.log`。
344
+ `site.stdout` / `site.stderr` を設定した stream には PBS の `-o` / `-e` を使う。
327
345
 
328
346
  ### 6.2 manifest.toml
329
347
 
@@ -371,7 +389,7 @@ git_dirty = false
371
389
  name = "srun"
372
390
 
373
391
  [job]
374
- scheduler = "slurm"
392
+ scheduler = "slurm" # "slurm" | "pbs"
375
393
  job_id = "12345" # 最新 attempt の job id
376
394
  partition = "gr20001a"
377
395
  nodes = 1
@@ -421,6 +439,8 @@ text = "初期 sheath が形成されるまで 2e4 step かかった"
421
439
 
422
440
  規則:
423
441
 
442
+ - `[job].scheduler` は `slurm` または `pbs`。PBS は `last_pbs_state` と attempt の
443
+ `pbs_state` に PBS の状態を保持する。各 attempt に投入先 scheduler を記録する。
424
444
  - `manifest.toml` は runops だけが書く。ユーザーと agent は直接編集しない
425
445
  (`notes.md` は自由に編集してよい)。
426
446
  - v1 の `[intent]`、`[curation]`、`[storage].tier/form/retention_class`、
@@ -455,6 +475,9 @@ created ──submit──▶ submitted ──(slurm)──▶ running ──▶
455
475
  scheduler への問い合わせ回数は run 数に依存しない。
456
476
  runops が対応づけていない Slurm 状態の job は状態を変えずに `last_slurm_state` だけ残し、
457
477
  他の run の更新は続ける。
478
+ - PBS は対象 job を `qstat -xf` でまとめて問い合わせる。終了コードと取消状態を
479
+ 判定し、終了コード 0 の job は adapter の成否判定を適用する。履歴に無い job は
480
+ exit record または出力から判定する。`cancel` には `qdel` を使う。
458
481
  - job.sh は program 終了時に `submit/exit.<job_id>`(`exit_code`、`started_at`、`finished_at`、
459
482
  `hostname`、`stage = "run"`)を書く。program より前の準備(`module load`、`export`、`cd`、venv、
460
483
  `setup_commands`、`pre_commands`、adapter の `job_prelude`)は `set -e` で実行し、失敗したら
@@ -467,7 +490,7 @@ created ──submit──▶ submitted ──(slurm)──▶ running ──▶
467
490
  - `new --from RUN` は case の base 入力ファイルが source の作成時(`[origin].case_input_hash`)から
468
491
  変わっていれば warning を出す(拒否しない)。
469
492
  - `submit`、`cancel`、`retry`、`sync` は `.runops/run.lock` の中で manifest を読み直してから
470
- 状態を確認・更新する。同じ run を 2 回指定しても、複数の process から同時に投入しても sbatch は 1 回。
493
+ 状態を確認・更新する。同じ run を 2 回指定しても、複数の process から同時に投入しても投入コマンドは 1 回。
471
494
  - `new` / `sweep --apply` は `identity.input_hash` が既存 run と一致するとき warning を出す
472
495
  (同じ executable なら「結果は同一のはず」、違えば「executable が違う」)。作成は拒否しない。
473
496
  - `purged` state は廃止。`work/` の削除は `[storage].work_purged_at` で表す。
@@ -541,8 +564,8 @@ Organize(`pin`、`archive`、`mv`、`restore`、`delete`、`tidy`)、Project
541
564
 
542
565
  | command | 効果 |
543
566
  |---|---|
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`) |
545
- | `runo doctor [--json]` | `runops.toml` の妥当性、adapter の import 可否、`.venv` に無い package(§4)、executable の存在、`sbatch` の有無、skill の鮮度を検査 |
567
+ | `runo init [SIM...] [--site kudpc\|grand\|standard] [--no-install] [--no-git] [-y]` | `runops.toml`、`cases/`、`runs/`、`LOG.md`、`AGENTS.md`、`.venv` を作る。git repository の外なら `git init`(branch `main`)して、作ったものを最初の commit(`runo init`)にする(`--no-git` で行わない)。SIM ごとに adapter package を `.venv` に install し、skill を展開する(§8)。端末から引数なしで実行すると site と simulator を尋ねる。`--site` が無ければ host 名から推定する(KUDPC のログインノードなら `kudpc`) |
568
+ | `runo doctor [--json]` | `runops.toml` の妥当性、adapter の import 可否、`.venv` に無い package(§4)、executable の存在、scheduler コマンドの有無、skill の鮮度を検査 |
546
569
  | `runo update [--skills-only] [-y]` | adapter package を upgrade し、skill を再展開する |
547
570
  | `runo build SIM [--force]` | `local_source` simulator を `.runops/build/` に build する(§4.1) |
548
571
  | `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 |
@@ -551,11 +574,11 @@ Organize(`pin`、`archive`、`mv`、`restore`、`delete`、`tidy`)、Project
551
574
  | `runo new CASE [--why TEXT] [--label L] [--set k=v]... [--job k=v]... [--tag T]... [--scratch] [--dest DIR] [--submit] [--created-by WHO] [--json]` | 単発 run を作る |
552
575
  | `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) |
553
576
  | `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` と同時のみ有効 |
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` に残す |
577
+ | `runo submit RUN... [--partition P] [--qos Q] [--group G] [--afterok JOBID \| --dependency SPEC] [--json] [-y]` | job.sh を生成して `sbatch` または `qsub`。`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` を返す。投入コマンドが 120 s で応答しないときは受理が分からないので `unknown` とし、再投入前に `squeue` または `qstat` で job 名を確かめるよう示し、投入ログに `UNKNOWN` を残す(run は created のまま)。`--group` は PBS の group 上書き。`--dependency` は Slurm(`afterany:123,afterok:456`、`?` 区切りは「いずれか」、`singleton`)または PBS(`afterok`、`afterany`、`afternotok`、`after` と PBS job id)の依存指定を受け付ける。`--afterok J` は `--dependency afterok:J` と同じで、両方の指定は exit code 2。渡した値は attempt の `dependency` に残す |
555
578
  | `runo submit --all [DIR] [--json] [-y]` | DIR 配下の `created` run をすべて投入。件数と概算 core-hours を表示して確認。`new` / `sweep --apply` / `retry` の `--submit` も含め、失敗の扱いと要約は `submit RUN...` と同じ |
556
579
  | `runo cancel RUN... [--why TEXT] [-y]` | scancel して sync。`--why` は `cancelled: ...` の note として残す |
557
580
  | `runo retry RUN [--submit] [-y]` | `failed`/`cancelled` を `created` に戻す。直近の cancel に `--why` があれば理由を示して確認を取る |
558
- | `runo status [RUN...] [--brief] [--json]` | manifest の状態を表示。Slurm を呼ばない。`--brief` は §7.1 |
581
+ | `runo status [RUN...] [--brief] [--json]` | manifest の状態を表示。`--brief` は §7.1 |
559
582
  | `runo sync [RUN...] [--json]` | squeue/sacct で状態を更新。引数なしは `submitted`/`running` 全件 |
560
583
  | `runo log RUN [--err] [-n N] [-f]` | 最新 job の stdout/stderr を表示。`-f` は tail -f |
561
584
  | `runo list [PATH] [--all] [--since 30d] [--case C] [--sweep L] [--status S]... [--tag T]... [--scratch] [--archived] [--brief] [--json]` | run 一覧(§7.4) |
@@ -824,7 +847,8 @@ seal、index を持たない)。
824
847
  - 調査 directory は `README.md`(問い・対象 run id・方法・結果・制約)、`scripts/`
825
848
  (Python、sbatch)、`out/`(図・JSON・CSV)、`logs/`(job の stdout/stderr)からなる。
826
849
  topic は内容で名付け、同じ問いは README に日付付きで追記する。
827
- - `init` の `.gitignore` は `**/logs/`、`__pycache__/`、`.runops/analysis-env/` を含む。
850
+ - `init` の `.gitignore` は `.runops/*`(`last_run_id` と `skills.lock` は残す)、`**/logs/`、`__pycache__/`、
851
+ `runs/**/work/`、`analysis/**/work/` を含む。
828
852
  既存 project のファイルは自動で再配置しない。
829
853
  - `context` は現用 group の `_analysis/*/README.md` がある topic 名を表示し、
830
854
  `--json` では `group_analysis` に project 相対の group path → topic 名一覧を返す。
@@ -933,6 +957,7 @@ src/runops/
933
957
  launchers.py # srun / mpirun / mpiexec / none
934
958
  jobgen.py
935
959
  slurm.py # sbatch / scancel / squeue / sacct(runner 注入)
960
+ pbs.py # qsub / qdel / qstat(runner 注入)
936
961
  harness.py # AGENTS.md / CLAUDE.md 生成
937
962
  skills/ # runops 自身の 4 skill(package data)
938
963
  ```
@@ -967,7 +992,7 @@ src/runops/
967
992
  | ユーザーが編集する TOML | `runops.toml`、`case.toml` の 2 種 |
968
993
  | runops が書く TOML | `manifest.toml`、`.runops/skills.lock`、`.runops/index.toml` の 3 種 |
969
994
  | 依存 | `typer`、`rich`、`tomli-w`、`tomlkit`、`jinja2`、`packaging`(`mcp` を外す) |
970
- | テスト実行時間 | 60 秒以内(Slurm は全て mock) |
995
+ | テスト実行時間 | 60 秒以内(scheduler は全て mock) |
971
996
 
972
997
  ### 13.2 受け入れ基準
973
998
 
@@ -975,6 +1000,7 @@ src/runops/
975
1000
 
976
1001
  1. `runo init generic -y` した project で `case new` → `new --why x` → `submit`(mock sbatch)→
977
1002
  `sync`(mock squeue が COMPLETED)→ `list` が 1 件表示し `status = completed` になる。
1003
+ PBS でも `qsub`・`qstat -xf`・`qdel` を mock し、依存指定、状態同期、adapter の失敗判定を確認する。
978
1004
  2. `new --scratch` した run は `list` 既定で表示されず、`expires_at` を過ぎると
979
1005
  `tidy` が `expired-scratch` として挙げ、`tidy --apply` で消える。`pinned = true` なら消えない。
980
1006
  3. run directory を `runs/` 配下の別の場所に `mv` しても `runo status RUN_ID` が見つける。
@@ -1039,6 +1065,7 @@ v2 の文書は次の 4 ファイルだけにする。
1039
1065
  | `.venv` の entry point 探索 | `site.addsitedir` で `.pth` も処理し、探索前に `importlib.invalidate_caches()` | editable install と、mtime が秒単位の Lustre 上での再インストール直後に対応 |
1040
1066
  | migrate の可逆性 | 削除せず `.runops/v1-backup/<stamp>/` と `manifest.v1.toml` に退避 | 実 project の v1 資料を失わない |
1041
1067
  | 依頼と操作範囲、観察方針 | AGENTS.md block と `runops-check-status` に記載 | runhand の work policy から取り込み |
1068
+ | GRAND / PBS Professional | `[site].scheduler` で選択し、既存の投入・同期・取消 command を使う | 0.11 の GRAND 実機検証を v2 の run 台帳と package adapter で再現するため |
1042
1069
  | scheduler 問い合わせの一括化 | `sync` / `tidy` は `squeue --jobs=` と `sacct --jobs=` を各 1 回 | run ごとの問い合わせは active run 数に比例して scheduler を叩く。agent は sync を繰り返すので回数を run 数から切り離す |
1043
1070
  | job 側の完了証拠 | job.sh が `submit/exit.<job_id>` を書き、`sync` は sacct より先にこれを見る | sacct の保持期間や会計の欠落で completed run が `failed` に倒れていた(row の products、Sumatra の status tag に相当) |
1044
1071
  | submit 時の executable hash | attempt ごとに `exe_hash` を記録し、作成時と違えば warning | `runo update` 後の retry が作成時の hash のまま別 binary で走っていた |
@@ -1058,5 +1085,6 @@ v2 の文書は次の 4 ファイルだけにする。
1058
1085
  | 常用と保守の案内(2026-11-12) | `runo --help` を typer の `rich_help_panel` で 4 panel に分け、生成 AGENTS.md と `runops-reference` の表を常用(作成と投入、監視、整理)と保守(`init`、`doctor`、`update`、`build`)に分ける。command は削らない | 利用痕跡では作成・投入・監視・復旧・保管が常用で、保守の command は project の準備と更新のときだけ使われていた。常に読む案内を常用の command に寄せる |
1059
1086
  | 代表値と再現性の書き方(2026-11-12) | `runops-analyze` の `report-guide.md` に 2 点を足す: 代表値の図には平均する領域・重み・基準を本文に書く。再現性の検査は bitwise の一致、標本のばらつき、物理量の許容差を分けて設計する | 面積平均した電位の基準と領域が読み手と食い違った。並列 Monte Carlo の逐点一致を求めて、加算順序の違いを不一致と取り違えた |
1060
1087
  | 起動検査の書き方(2026-11-12) | `runops-create-run` に節を置く: 短い起動検査は起動と物理設定の成立だけを判定し、定常性・統計誤差・収束は別に評価する。止める条件と警告を分け、閾値に根拠と分母を添え、項目ごとの判定・実測値・単位・閾値・script の版を JSON に残す。代表 1 配置の検査を他の配置に広げない。runops は判定を持たない(§1.4) | 起動検査に運用判断を混ぜて厳しくしすぎた例と、代表 1 配置の試験が他の配置の不良を拾えなかった例が続いた。判定の記録を runops が持つ案は、2 例目が出るまで見送る |
1088
+ | `init` が git を始める(2026-11-21) | git repository の外で `init` すると `git init` と最初の commit を行う。`git` が無い、commit に失敗した(user の設定が無いなど)ときは warning を出して続ける。`.gitignore` は `.runops/*` を外して記録の file だけ戻す | project は git 管理を想定していたのに `init` は `.gitignore` を書くだけで、10 project のうち git だったのは自前の repository を持つ 1 つだけだった。`.runops/` の下の cache(snapshot、source、実行 file)が数 GB になり、個別に外す方式では追いつかなかった |
1061
1089
  | 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 の枠を常用の機能に残す |
1062
1090
  | 使い方ガイド | `docs/guide.md` を追加し、文書を 4 ファイルにする(§13.3) | README の依頼例の表と command 一覧の間を埋める、場面ごとの流れ(case と run の分け方、smoke から本計算、状態の決まり方、整理)の置き場所が無かった |
@@ -22,6 +22,7 @@ runo init
22
22
  | `cases/`、`runs/` | 入力テンプレートと、実行した run の置き場所 |
23
23
  | `LOG.md`、`notes/` | 判断の記録と、再利用する知見の置き場所([6 節](#6-記録を残す)) |
24
24
  | `.venv/` | simulator の Python package(adapter と skill を含む) |
25
+ | `.git/`、`.gitignore` | 入力と記録の履歴。最初の commit まで `runo init` が作る(計算の出力と `.runops/` の cache は外す) |
25
26
  | `AGENTS.md`、`CLAUDE.md`、`.agents/skills/`、`.claude/skills/` | エージェント向けの規則と skill |
26
27
 
27
28
  この directory で Codex か Claude Code を起動し、調べたいことを話しかけてください。
@@ -30,6 +31,18 @@ runo init
30
31
  > MPIEMSES3D で平板シースを計算したい。cookbook の例を元に case を作って。
31
32
  > gr20001a に 800 並列、120 時間で。
32
33
 
34
+ ## GRAND で投入する
35
+
36
+ `runo init --site grand` で PBS Professional 用の project を作れます。GRAND の
37
+ ログインノードでは `--site` を省略しても検出します。MPI の solver は既定の
38
+ `mpiexec` を使い、直列の solver は `[launchers.serial]` に `kind = "none"` を
39
+ 設定して case の `launcher = "serial"` で選べます。
40
+
41
+ `[job].partition` に queue、`[job].group` または `[site].pbs_group` に課金 group を
42
+ 設定します。コンパイラと MPI の module は solver に合わせ、`runo doctor` で
43
+ adapter、実行ファイル、PBS コマンドを確認します。`runo submit`、`runo sync`、
44
+ `runo cancel` はそれぞれ `qsub`、`qstat -xf`、`qdel` を使います。
45
+
33
46
  ## 2. case と run の分け方
34
47
 
35
48
  runops が扱う名詞は case、run、sweep の 3 つです。
@@ -133,13 +146,13 @@ walltime は、同じ case・同じ資源で終わった run の実時間を元
133
146
 
134
147
  | コマンド | 内容 |
135
148
  |---|---|
136
- | `runo sync` | 投入済み・実行中の run の状態を Slurm から更新する |
149
+ | `runo sync` | 投入済み・実行中の run の状態を scheduler から更新する |
137
150
  | `runo list` | 実行中、作成済み、直近 30 日、pin した run を表示する |
138
- | `runo status RUN` | 1 つの run の状態(Slurm には問い合わせない) |
151
+ | `runo status RUN` | 1 つの run の状態(台帳から表示) |
139
152
  | `runo log RUN --err` | 最新 job の stderr の末尾 |
140
153
 
141
- `runo sync` は、active な run が何件あっても `squeue` と `sacct` を 1 回ずつしか呼びません。
142
- エージェントには `squeue` を直接叩かせず、`runo sync` を使わせてください。
154
+ `runo sync` は対象をまとめて問い合わせます。Slurm は `squeue` と `sacct` を最大 1 回ずつ、
155
+ PBS は `qstat -xf` を 1 回呼びます。
143
156
 
144
157
  adapter が進捗に対応していれば(BEACH の batch、MPIEMSES3D の step)、`sync` のたびに時刻付きの
145
158
  観測を残し、`runo list` / `status` に `62% 0.198 s/batch eta 3.1h` のように進み具合、直近 10 分の
@@ -158,9 +171,9 @@ adapter が進捗に対応していれば(BEACH の batch、MPIEMSES3D の ste
158
171
  run の状態は `created → submitted → running → completed | failed | cancelled` と進みます。
159
172
  `sync` は次の順で終わった run の状態を決めます。
160
173
 
161
- 1. Slurm が状態を返す job はその状態に従う。Slurm が `COMPLETED` でも、adapter が出力を見て
174
+ 1. scheduler が状態を返す job はその状態に従う。正常終了でも、adapter が出力を見て
162
175
  失敗と判断すれば `failed` にする。
163
- 2. Slurm の記録から消えた job は、job.sh が終了時に書く `submit/exit.<job_id>` を見る。
176
+ 2. scheduler の記録から消えた job は、job.sh が終了時に書く `submit/exit.<job_id>` を見る。
164
177
  exit code が 0 なら adapter の判定、0 以外なら `failed`。`module load` や `pre_commands` などの
165
178
  準備が失敗した job は program を起動せずに終わり、`failed` になる。
166
179
  3. その記録も無ければ adapter の判定に従い、判定できなければ `failed`。
@@ -67,6 +67,13 @@ module は site、launcher、simulator、case の順に結合されます。`gen
67
67
  `command`(`{executable}` を置換)と `success_marker`(`work/` 内の完了 marker)も使えます。
68
68
  未知の key は warning を出して無視します。
69
69
 
70
+ GRAND の設定は `runo init --site grand` で生成できます。`[site].scheduler` は
71
+ `slurm`(既定)または `pbs`。GRAND は `pbs`、`resource_style = "standard"`、既定 launcher
72
+ `mpiexec`、`purge_modules = true` です。読み込む module は simulator ごとに指定できます。
73
+ `[site].pbs_group` は既定の PBS group、`extra_pbs` は追加 directive です。
74
+ PBS の既定ログは `work/stdout.<job_id>.log` と `work/stderr.<job_id>.log` です。
75
+ `stdout` または `stderr` を設定すると、その値を PBS の `-o` または `-e` に渡します。
76
+
70
77
  ## case.toml
71
78
 
72
79
  `cases/<name>/case.toml` と、同じ directory の base 入力ファイルで case になります。
@@ -101,6 +108,13 @@ ntasks = 800
101
108
  dotted key は `a.b`、配列要素は `species.0.wp` または `species[0].wp` です。
102
109
  値の違いは case を増やさず、`runo new --set` や `runo sweep` で run として表します。
103
110
 
111
+ PBS では `partition` が queue、`group` が `group_list` です。`nodes`、`sockets`、
112
+ `mpiprocs`(node あたり)、`ompthreads`(rank あたり)を `#PBS -l select` に使います。
113
+ `ntasks` または `processes` は総 rank 数で、指定時は `nodes * mpiprocs` と一致させます。
114
+ `cpus_per_task` または `threads` でも rank あたりの thread 数を指定できます。
115
+ `gpus` は node あたりの GPU 数で、`sockets` と併用できません。`memory` は node あたりです。
116
+ PBS の追加 directive は `extra_pbs` に入れます。`--group` は投入時に group を上書きできます。
117
+
104
118
  ## manifest.toml
105
119
 
106
120
  runops だけが書きます。手で編集しないでください。主な field は次の通りです。
@@ -111,7 +125,7 @@ runops だけが書きます。手で編集しないでください。主な fie
111
125
  | `[path]` | `run_dir`(project 相対)、`archived_from`、`archived_at` |
112
126
  | `[origin]` | `case`、`sweep`、`parent_run`、`created_by`、`case_input_hash` |
113
127
  | `[simulator]` | `name`、`adapter`、`adapter_source`、`adapter_version`、`executable`、`resolver_mode`、`package_version`、`exe_hash`、`git_commit`、`git_dirty`、`build_dir` |
114
- | `[job]` | case の `[job]` に加え `job_id`、`attempt`、`submitted_at`、`finished_at`、`last_slurm_state`、`exit_code`、待機中の squeue の理由 `pending_reason`、`[[job.attempts]]`(attempt ごとの `job_id`、`started_at`、`exit_code`、`exe_hash`、`elapsed`、`cancel --why` の `cancel_reason`、投入時の依存指定 `dependency`、`runo sync` が付ける `progress`(§進捗)) |
128
+ | `[job]` | case の `[job]` に加え `scheduler`、`job_id`、`attempt`、`submitted_at`、`finished_at`、`last_slurm_state` または `last_pbs_state`、`exit_code`、待機中の理由 `pending_reason`、`[[job.attempts]]`(attempt ごとの `scheduler`、`slurm_state` または `pbs_state`、`job_id`、`started_at`、`exit_code`、`exe_hash`、`elapsed`、`cancel --why` の `cancel_reason`、投入時の依存指定 `dependency`、`runo sync` が付ける `progress`(§進捗)) |
115
129
  | `[params]` | case の params に `--set` を適用した最終値 |
116
130
  | `[variation]` | `changed_keys`、`job_changed_keys`(case の `[job]` と違う key) |
117
131
  | `[identity]` | `input_hash` |
@@ -125,8 +139,8 @@ runops だけが書きます。手で編集しないでください。主な fie
125
139
  決まります。`module load`、`cd`、`setup_commands`、`pre_commands` などの準備が失敗すると、job.sh は
126
140
  program を起動せずに終わり、`stage = "setup"` と exit code を記録します。
127
141
  `sync` と `tidy` は対象 run の job id をまとめて 1 回の `squeue` と `sacct` で
128
- 問い合わせます。runops が知らない Slurm 状態の job は状態を変えず、
129
- `last_slurm_state` にその状態だけを記録します。
142
+ 問い合わせます。PBS job は `qstat -xf` でまとめて問い合わせます。既知の状態に対応しない job
143
+ は状態を維持し、`last_slurm_state` または `last_pbs_state` に scheduler の応答を記録します。
130
144
 
131
145
  `submit` は executable を hash し直して attempt に記録し、作成時と違えば警告します。
132
146
  `new` と `sweep --apply` は同じ入力(`input_hash`)の run が既にあれば警告します。
@@ -137,17 +151,18 @@ program を起動せずに終わり、`stage = "setup"` と exit code を記録
137
151
 
138
152
  一括投入で一部の run が受理されなかったときは、`submitted 2; not submitted 1 (still created): R…` の
139
153
  要約が出ます。created のままの run だけを `runo submit` し直せば足ります(受理済みの run は created でないので
140
- 拒否されます)。sbatch が 120 秒応答しなかった run は `unknown`(受理不明)で、Slurm が受け付けている
141
- ことがあるので、squeue で job 名(既定は run id)を確かめてから投入し直します。
154
+ 拒否されます)。投入コマンドが 120 秒応答しなかった run は `unknown`(受理不明)です。
155
+ 再投入の前に `squeue` または `qstat` で job 名(既定は run id)を確かめます。
142
156
 
143
157
  `submit`、`cancel`、`retry`、`sync` は lock の中で manifest を読み直してから更新します。
144
- 同じ run を 2 回指定しても、複数のエージェントが同時に投入しても sbatch は 1 回です。
158
+ 同じ run を 2 回指定しても、複数のエージェントが同時に投入しても投入コマンドは 1 回です。
145
159
  run id は削除後も再利用しません。`--dest` に既存 run の中は指定できません。
146
160
 
147
161
  ## command
148
162
 
149
163
  `list --json` と `status --json` は、walltime の根拠として `walltime`、最新 attempt の `elapsed`、
150
- `walltime_used`(elapsed / walltime)、`slurm_state` も返します。adapter が `progress()` を持てば
164
+ `walltime_used`(elapsed / walltime)、scheduler の状態も返します。Slurm では `slurm_state`、
165
+ PBS では `pbs_state` に状態が入ります。adapter が `progress()` を持てば
151
166
  `progress`(`done`、`total`、`unit`、`fraction`、`rate_recent_per_hour`、`rate_attempt_per_hour`、
152
167
  `eta_hours`、`last_change_at`、`stalled_hours`、再開した run では今回の区間の割合 `attempt_fraction`)も返し、
153
168
  表の `progress` 列に `62% 0.198 s/batch eta 3.1h` と出します。再開した run は `74% (38% of this job)` のように
@@ -171,9 +186,9 @@ run id は削除後も再利用しません。`--dest` に既存 run の中は
171
186
  | `runo new CASE [--why] [--label] [--set k=v]... [--job k=v]... [--tag] [--scratch] [--dest DIR] [--submit] [--json]` | run を 1 つ作る。`--job` はこの run の `[job]` の値 |
172
187
  | `runo new --from RUN [--set k=v]... [--job k=v]... [--job-from-case] [--continue]` | 既存 run の params と `[job]` から派生(`--job-from-case` で `[job]` は case から)。置き場所の既定は元 run と同じ directory。`--continue` は adapter の restart 対応が必要 |
173
188
  | `runo sweep CASE --set k=v1,v2 ... [--names k=n1,n2...] [--job k=v]... [--label] [--dest DIR] [--limit N] [--apply] [--submit] [--json]` | 直積の候補表示。`--apply` で作成。`--names` は各値の短い label、`--dest` は sweep directory の親 |
174
- | `runo submit RUN... [-p P] [--qos Q] [--afterok JOB \| --dependency SPEC] [--json]` / `runo submit --all [DIR] [-y]` | job.sh を生成して sbatch。`--dependency` は `afterany:123,afterok:456` のような Slurm の依存指定(種類名と job id だけ。`?` 区切りは「いずれか」、`singleton` も可)。`--afterok J` は `--dependency afterok:J` の略で、両方は指定できない。依存は attempt の `dependency` に残る。1 run が失敗しても残りを投入し、最後に未投入の run を要約して exit code 1(`new` / `sweep` / `retry` の `--submit` も同じ)。`--json` は run ごとの `id`、`job_id`、`result`(`submitted` / `not_submitted` / `unknown`)、`status`、`error` |
189
+ | `runo submit RUN... [-p P] [--qos Q] [--group G] [--afterok JOB \| --dependency SPEC] [--json]` / `runo submit --all [DIR] [-y]` | job.sh を生成して `sbatch` または `qsub`。PBS の `--dependency` は `afterok:123.sjms` のような完全な job id を受け付ける。`--dependency` は `afterany:123,afterok:456` のような Slurm の依存指定(種類名と job id だけ。`?` 区切りは「いずれか」、`singleton` も可)。`--afterok J` は `--dependency afterok:J` の略で、両方は指定できない。依存は attempt の `dependency` に残る。1 run が失敗しても残りを投入し、最後に未投入の run を要約して exit code 1(`new` / `sweep` / `retry` の `--submit` も同じ)。`--json` は run ごとの `id`、`job_id`、`result`(`submitted` / `not_submitted` / `unknown`)、`status`、`error` |
175
190
  | `runo cancel RUN... [--why TEXT] [-y]` / `runo retry RUN [--submit] [-y]` | scancel(`--why` は note に残る)/ failed・cancelled を created に戻す(理由付きで cancel された run は確認を取る) |
176
- | `runo status [RUN...] [--brief]` / `runo sync [RUN...]` / `runo log RUN [--err] [-n N] [-f]` | 状態表示 / Slurm から更新 / log 表示 |
191
+ | `runo status [RUN...] [--brief]` / `runo sync [RUN...]` / `runo log RUN [--err] [-n N] [-f]` | 状態表示 / scheduler から更新 / log 表示 |
177
192
  | `runo list [PATH] [--all] [--since 30d] [--case] [--sweep] [--status] [--tag] [--scratch] [--archived] [--brief] [--json]` | run 一覧。`--brief` は `params`、`why`、note を省く(表では note / why 列) |
178
193
  | `runo note RUN [TEXT]` / `runo pin RUN [--off] [--reason]` | ノート追記・表示 / pin |
179
194
  | `runo mv RUN... [--dest DIR] [--label L] [--why TEXT]` | `runs/` 配下で改名・移動。id、入力、sweep、ノートは保つ。submitted / running と archived は不可。全対象を検査してから移し、1 件でも不可なら何も動かさない |
@@ -185,7 +200,7 @@ project の保守(設定、package、build):
185
200
 
186
201
  | command | 動作 |
187
202
  |---|---|
188
- | `runo init [SIM...] [--site kudpc\|standard] [--no-install] [-y]` | project を作る。`SIM` は `emses` や `name=package-spec`。端末から引数なしで実行すると site と simulator を尋ねる。`--site` の既定はホスト名から推定(KUDPC のログインノードなら `kudpc`、`camphor` も同義) |
203
+ | `runo init [SIM...] [--site kudpc\|grand\|standard] [--no-install] [--no-git] [-y]` | project を作る。git repository の外なら `git init` して最初の commit を作る(`--no-git` で行わない)。`SIM` は `emses` や `name=package-spec`。端末から引数なしで実行すると site と simulator を尋ねる。`--site` の既定はホスト名から推定(KUDPC は `kudpc`、GRAND は `grand`) |
189
204
  | `runo doctor [--json]` | 設定、adapter の解決経路、`.venv` に無い package、executable、sbatch、skill の鮮度とリンク切れを点検 |
190
205
  | `runo update [--skills-only] [-y]` | simulator package を更新し skill と AGENTS.md の管理 block を再生成。`package` を指定した simulator でも、adapter の `pip_packages()` にある他の package(emses の emout など)が `.venv` に無ければ入れる |
191
206
  | `runo build SIM [--force]` | `local_source` の simulator を build |
@@ -204,7 +219,7 @@ archived と scratch は表示しません。ただし submitted / running の s
204
219
  | `expired-scratch` | 期限切れの scratch run(archived は除く) | delete |
205
220
  | `stale-failed` | `tidy_failed_days`(既定 30)日より古い failed / cancelled で、why も note も無い | delete |
206
221
  | `old-completed` | `tidy_archive_days`(既定 90)日より古い completed | archive |
207
- | `orphan-job` | Slurm が知らない submitted / running | sync |
222
+ | `orphan-job` | scheduler の履歴に無い submitted / running | sync |
208
223
  | `unused-build` | 非 archived run と pinned run(archived を含む)が参照せず、simulator の現在の build でもない `.runops/build/*`。理由に参照する archived run の数を示す | delete |
209
224
  | `analysis-logs` | `tidy_failed_days` より古い解析 log。各 log directory・job 名の最新組は保持 | log のみ delete |
210
225
 
@@ -4,12 +4,12 @@ build-backend = "hatchling.build"
4
4
 
5
5
  [project]
6
6
  name = "runops"
7
- version = "2.9.1"
8
- description = "Run ledger and Slurm job submission for HPC simulation projects"
7
+ version = "2.11.0"
8
+ description = "Run ledger and job submission for HPC simulation projects"
9
9
  readme = "README.md"
10
10
  license = "Apache-2.0"
11
11
  requires-python = ">=3.10"
12
- keywords = ["hpc", "slurm", "simulation", "ai-agent", "workflow"]
12
+ keywords = ["hpc", "slurm", "pbs", "simulation", "ai-agent", "workflow"]
13
13
  classifiers = [
14
14
  "Development Status :: 4 - Beta",
15
15
  "Environment :: Console",
@@ -1,3 +1,3 @@
1
1
  """runops: run ledger and Slurm job submission for HPC simulation projects."""
2
2
 
3
- __version__ = "2.9.1"
3
+ __version__ = "2.11.0"
@@ -29,6 +29,11 @@ JOB_KEYS = {
29
29
  "gpus",
30
30
  "job_name",
31
31
  "extra_sbatch",
32
+ "sockets",
33
+ "mpiprocs",
34
+ "ompthreads",
35
+ "group",
36
+ "extra_pbs",
32
37
  "pre_commands",
33
38
  "post_commands",
34
39
  "modules",