runops 2.7.0__tar.gz → 2.9.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.
- {runops-2.7.0 → runops-2.9.0}/.agents/skills/check/SKILL.md +0 -1
- {runops-2.7.0 → runops-2.9.0}/.agents/skills/simulator-adapter/SKILL.md +1 -1
- {runops-2.7.0 → runops-2.9.0}/.agents/skills/sync-docs/SKILL.md +1 -1
- {runops-2.7.0 → runops-2.9.0}/.claude/rules/architecture.md +1 -1
- {runops-2.7.0 → runops-2.9.0}/.claude/rules/dev-workflow.md +1 -1
- {runops-2.7.0 → runops-2.9.0}/.claude/rules/gotchas.md +2 -8
- {runops-2.7.0 → runops-2.9.0}/.codex/rules/runops.rules +0 -7
- {runops-2.7.0 → runops-2.9.0}/AGENTS.md +3 -4
- {runops-2.7.0 → runops-2.9.0}/PKG-INFO +1 -2
- {runops-2.7.0 → runops-2.9.0}/README.md +0 -1
- {runops-2.7.0 → runops-2.9.0}/SPEC.md +78 -68
- {runops-2.7.0 → runops-2.9.0}/docs/adapter.md +2 -3
- {runops-2.7.0 → runops-2.9.0}/docs/guide.md +36 -18
- {runops-2.7.0 → runops-2.9.0}/docs/reference.md +37 -18
- {runops-2.7.0 → runops-2.9.0}/pyproject.toml +1 -1
- {runops-2.7.0 → runops-2.9.0}/src/runops/__init__.py +1 -1
- {runops-2.7.0 → runops-2.9.0}/src/runops/adapters/base.py +0 -4
- {runops-2.7.0 → runops-2.9.0}/src/runops/adapters/registry.py +17 -10
- {runops-2.7.0 → runops-2.9.0}/src/runops/case.py +19 -0
- {runops-2.7.0 → runops-2.9.0}/src/runops/cli.py +188 -98
- {runops-2.7.0 → runops-2.9.0}/src/runops/config.py +3 -6
- {runops-2.7.0 → runops-2.9.0}/src/runops/errors.py +11 -0
- {runops-2.7.0 → runops-2.9.0}/src/runops/harness.py +26 -12
- runops-2.9.0/src/runops/legacy_adapters/__init__.py +6 -0
- {runops-2.7.0 → runops-2.9.0}/src/runops/legacy_adapters/beach.py +4 -37
- {runops-2.7.0 → runops-2.9.0}/src/runops/legacy_adapters/emses.py +4 -15
- {runops-2.7.0 → runops-2.9.0}/src/runops/manifest.py +12 -3
- {runops-2.7.0 → runops-2.9.0}/src/runops/ops/create.py +102 -11
- {runops-2.7.0 → runops-2.9.0}/src/runops/ops/listing.py +4 -7
- {runops-2.7.0 → runops-2.9.0}/src/runops/ops/notes.py +2 -23
- {runops-2.7.0 → runops-2.9.0}/src/runops/ops/progress.py +9 -1
- {runops-2.7.0 → runops-2.9.0}/src/runops/ops/setup.py +67 -7
- {runops-2.7.0 → runops-2.9.0}/src/runops/ops/submit.py +88 -3
- {runops-2.7.0 → runops-2.9.0}/src/runops/ops/sync.py +9 -0
- {runops-2.7.0 → runops-2.9.0}/src/runops/ops/tidy.py +38 -9
- {runops-2.7.0 → runops-2.9.0}/src/runops/runtime.py +37 -4
- {runops-2.7.0 → runops-2.9.0}/src/runops/skills/runops-analyze/SKILL.md +11 -5
- runops-2.9.0/src/runops/skills/runops-analyze/example-report/README.md +97 -0
- runops-2.9.0/src/runops/skills/runops-analyze/example-report/out/fig1_maps.png +0 -0
- runops-2.9.0/src/runops/skills/runops-analyze/example-report/out/fig2_dependence.png +0 -0
- runops-2.9.0/src/runops/skills/runops-analyze/example-report/out/values.csv +6 -0
- runops-2.9.0/src/runops/skills/runops-analyze/example-report/report.html +149 -0
- runops-2.9.0/src/runops/skills/runops-analyze/example-report/scripts/build_html.py +72 -0
- runops-2.9.0/src/runops/skills/runops-analyze/example-report/scripts/make_figures.py +122 -0
- runops-2.9.0/src/runops/skills/runops-analyze/report-guide.md +97 -0
- {runops-2.7.0 → runops-2.9.0}/src/runops/skills/runops-check-status/SKILL.md +8 -5
- runops-2.9.0/src/runops/skills/runops-create-run/SKILL.md +60 -0
- {runops-2.7.0 → runops-2.9.0}/src/runops/skills/runops-maintain/SKILL.md +8 -8
- {runops-2.7.0 → runops-2.9.0}/src/runops/skills/runops-reference/SKILL.md +18 -11
- {runops-2.7.0 → runops-2.9.0}/src/runops/skills/runops-tidy/SKILL.md +2 -1
- {runops-2.7.0 → runops-2.9.0}/src/runops/slurm.py +12 -6
- {runops-2.7.0 → runops-2.9.0}/tests/conftest.py +11 -2
- {runops-2.7.0 → runops-2.9.0}/tests/test_adapters.py +22 -0
- {runops-2.7.0 → runops-2.9.0}/tests/test_build.py +32 -0
- {runops-2.7.0 → runops-2.9.0}/tests/test_legacy_adapters.py +0 -3
- {runops-2.7.0 → runops-2.9.0}/tests/test_lifecycle.py +75 -4
- {runops-2.7.0 → runops-2.9.0}/tests/test_manifest_config.py +7 -3
- {runops-2.7.0 → runops-2.9.0}/tests/test_progress.py +4 -2
- {runops-2.7.0 → runops-2.9.0}/tests/test_safety.py +51 -0
- {runops-2.7.0 → runops-2.9.0}/tests/test_scratch_tidy.py +25 -0
- {runops-2.7.0 → runops-2.9.0}/tests/test_setup_misc.py +172 -0
- {runops-2.7.0 → runops-2.9.0}/tests/test_skills.py +51 -0
- {runops-2.7.0 → runops-2.9.0}/tests/test_sweep.py +28 -0
- {runops-2.7.0 → runops-2.9.0}/tests/test_sync_evidence.py +76 -2
- {runops-2.7.0 → runops-2.9.0}/uv.lock +1 -1
- runops-2.7.0/.harness/manifest.toml +0 -15
- runops-2.7.0/src/runops/legacy_adapters/__init__.py +0 -6
- runops-2.7.0/src/runops/ops/migrate.py +0 -630
- runops-2.7.0/src/runops/skills/runops-create-run/SKILL.md +0 -52
- runops-2.7.0/tests/fixtures/v1-project/.codex/rules/a.md +0 -1
- runops-2.7.0/tests/fixtures/v1-project/.runops/test-runs/T20260701-0001/receipt.toml +0 -1
- runops-2.7.0/tests/fixtures/v1-project/.runops/work/beach-x-abc/bin/beach +0 -1
- runops-2.7.0/tests/fixtures/v1-project/AGENTS.md +0 -1
- runops-2.7.0/tests/fixtures/v1-project/CLAUDE.md +0 -1
- runops-2.7.0/tests/fixtures/v1-project/cases/beach/plane/beach.toml +0 -2
- runops-2.7.0/tests/fixtures/v1-project/cases/beach/plane/case.toml +0 -19
- runops-2.7.0/tests/fixtures/v1-project/cases/old/beach.toml +0 -1
- runops-2.7.0/tests/fixtures/v1-project/cases/old/case.toml +0 -6
- runops-2.7.0/tests/fixtures/v1-project/launchers.toml +0 -3
- runops-2.7.0/tests/fixtures/v1-project/research/CURRENT.md +0 -1
- runops-2.7.0/tests/fixtures/v1-project/runops.toml +0 -5
- runops-2.7.0/tests/fixtures/v1-project/runs/AGENTS.md +0 -1
- runops-2.7.0/tests/fixtures/v1-project/runs/_archive/plane/R20260601-0001/manifest.toml +0 -19
- runops-2.7.0/tests/fixtures/v1-project/runs/plane/R20260701-0001--a/input/beach.toml +0 -2
- runops-2.7.0/tests/fixtures/v1-project/runs/plane/R20260701-0001--a/manifest.toml +0 -59
- runops-2.7.0/tests/fixtures/v1-project/runs/plane/R20260702-0001/manifest.toml +0 -18
- runops-2.7.0/tests/fixtures/v1-project/runs/scan/R20260701-0002/manifest.toml +0 -24
- runops-2.7.0/tests/fixtures/v1-project/runs/scan/survey.toml +0 -3
- runops-2.7.0/tests/fixtures/v1-project/simulators.toml +0 -12
- runops-2.7.0/tests/fixtures/v1-project/site.toml +0 -12
- runops-2.7.0/tests/test_migrate.py +0 -169
- {runops-2.7.0 → runops-2.9.0}/.agents/skills/improve-harness/SKILL.md +0 -0
- {runops-2.7.0 → runops-2.9.0}/.agents/skills/python-package-refactor/SKILL.md +0 -0
- {runops-2.7.0 → runops-2.9.0}/.agents/skills/python-package-refactor/agents/openai.yaml +0 -0
- {runops-2.7.0 → runops-2.9.0}/.agents/skills/python-package-refactor/examples/refactor-request.md +0 -0
- {runops-2.7.0 → runops-2.9.0}/.agents/skills/python-package-refactor/references/anti-patterns.md +0 -0
- {runops-2.7.0 → runops-2.9.0}/.agents/skills/python-package-refactor/references/api-compatibility.md +0 -0
- {runops-2.7.0 → runops-2.9.0}/.agents/skills/python-package-refactor/references/packaging-modernization.md +0 -0
- {runops-2.7.0 → runops-2.9.0}/.agents/skills/python-package-refactor/references/refactor-playbook.md +0 -0
- {runops-2.7.0 → runops-2.9.0}/.agents/skills/python-package-refactor/references/verification.md +0 -0
- {runops-2.7.0 → runops-2.9.0}/.agents/skills/python-package-refactor/scripts/api_surface_snapshot.py +0 -0
- {runops-2.7.0 → runops-2.9.0}/.agents/skills/python-package-refactor/scripts/import_smoke.py +0 -0
- {runops-2.7.0 → runops-2.9.0}/.agents/skills/python-package-refactor/scripts/inspect_python_package.py +0 -0
- {runops-2.7.0 → runops-2.9.0}/.agents/skills/python-package-refactor/scripts/refactor_quality_gate.py +0 -0
- {runops-2.7.0 → runops-2.9.0}/.agents/skills/release/SKILL.md +0 -0
- {runops-2.7.0 → runops-2.9.0}/.agents/skills/spec-reviewer/SKILL.md +0 -0
- {runops-2.7.0 → runops-2.9.0}/.claude/agents/spec-reviewer.md +0 -0
- {runops-2.7.0 → runops-2.9.0}/.claude/settings.json +0 -0
- {runops-2.7.0 → runops-2.9.0}/.claude/skills/check/SKILL.md +0 -0
- {runops-2.7.0 → runops-2.9.0}/.claude/skills/improve-harness/SKILL.md +0 -0
- {runops-2.7.0 → runops-2.9.0}/.claude/skills/python-package-refactor/SKILL.md +0 -0
- {runops-2.7.0 → runops-2.9.0}/.claude/skills/release/SKILL.md +0 -0
- {runops-2.7.0 → runops-2.9.0}/.claude/skills/simulator-adapter/SKILL.md +0 -0
- {runops-2.7.0 → runops-2.9.0}/.claude/skills/spec-reviewer/SKILL.md +0 -0
- {runops-2.7.0 → runops-2.9.0}/.claude/skills/sync-docs/SKILL.md +0 -0
- {runops-2.7.0 → runops-2.9.0}/.codex/README.md +0 -0
- {runops-2.7.0 → runops-2.9.0}/.codex/agents/spec-reviewer.toml +0 -0
- {runops-2.7.0 → runops-2.9.0}/.codex/config.toml +0 -0
- {runops-2.7.0 → runops-2.9.0}/.dockerignore +0 -0
- {runops-2.7.0 → runops-2.9.0}/.gitattributes +0 -0
- {runops-2.7.0 → runops-2.9.0}/.github/assets/conversation-dark.svg +0 -0
- {runops-2.7.0 → runops-2.9.0}/.github/assets/conversation-light.svg +0 -0
- {runops-2.7.0 → runops-2.9.0}/.github/assets/hero-dark.svg +0 -0
- {runops-2.7.0 → runops-2.9.0}/.github/assets/hero-light.svg +0 -0
- {runops-2.7.0 → runops-2.9.0}/.github/assets/make_readme_art.py +0 -0
- {runops-2.7.0 → runops-2.9.0}/.github/workflows/ci.yml +0 -0
- {runops-2.7.0 → runops-2.9.0}/.github/workflows/publish.yml +0 -0
- {runops-2.7.0 → runops-2.9.0}/.gitignore +0 -0
- {runops-2.7.0 → runops-2.9.0}/.pre-commit-config.yaml +0 -0
- {runops-2.7.0 → runops-2.9.0}/.vscode/settings.json +0 -0
- {runops-2.7.0 → runops-2.9.0}/CLAUDE.md +0 -0
- {runops-2.7.0 → runops-2.9.0}/LICENSE +0 -0
- {runops-2.7.0 → runops-2.9.0}/src/runops/adapters/__init__.py +0 -0
- {runops-2.7.0 → runops-2.9.0}/src/runops/adapters/generic.py +0 -0
- {runops-2.7.0 → runops-2.9.0}/src/runops/jobgen.py +0 -0
- {runops-2.7.0 → runops-2.9.0}/src/runops/launchers.py +0 -0
- {runops-2.7.0 → runops-2.9.0}/src/runops/ops/__init__.py +0 -0
- {runops-2.7.0 → runops-2.9.0}/src/runops/ops/analysis.py +0 -0
- {runops-2.7.0 → runops-2.9.0}/src/runops/ops/common.py +0 -0
- {runops-2.7.0 → runops-2.9.0}/src/runops/ops/skills.py +0 -0
- {runops-2.7.0 → runops-2.9.0}/src/runops/project.py +0 -0
- {runops-2.7.0 → runops-2.9.0}/src/runops/util.py +0 -0
- {runops-2.7.0 → runops-2.9.0}/tests/__init__.py +0 -0
- {runops-2.7.0 → runops-2.9.0}/tests/golden/mpi_standard.sh +0 -0
- {runops-2.7.0 → runops-2.9.0}/tests/golden/openmp_rsc.sh +0 -0
- {runops-2.7.0 → runops-2.9.0}/tests/test_analysis_layout.py +0 -0
- {runops-2.7.0 → runops-2.9.0}/tests/test_archive_series.py +0 -0
- {runops-2.7.0 → runops-2.9.0}/tests/test_dev_harness.py +0 -0
- {runops-2.7.0 → runops-2.9.0}/tests/test_jobgen.py +0 -0
- {runops-2.7.0 → runops-2.9.0}/tests/test_mv_naming.py +0 -0
- {runops-2.7.0 → runops-2.9.0}/tests/test_project_scope.py +0 -0
- {runops-2.7.0 → runops-2.9.0}/tests/test_run_job.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`、`
|
|
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 表、`
|
|
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/
|
|
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
|
|
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
|
|
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,
|
|
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 の移植(
|
|
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
|
|
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.
|
|
3
|
+
Version: 2.9.0
|
|
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
|
|
@@ -79,7 +79,6 @@ runo init
|
|
|
79
79
|
| 解析する | この系列の速度を比較して。図とスクリプト、調査メモを系列の `_analysis/` にまとめて |
|
|
80
80
|
| simulator を足す | パッチを当てた ~/BEACH-dev をビルドして、別の simulator として登録して |
|
|
81
81
|
| 更新する | runops と simulator を最新にして |
|
|
82
|
-
| v1 から移る | この project を runops v2 に移行して(`runo migrate-v1` を dry-run で確認してから) |
|
|
83
82
|
|
|
84
83
|
投入、削除、整理、移行の前には、エージェントが対象と資源量を示して確認を取ります。
|
|
85
84
|
範囲を言わない依頼(「全部再投入して」など)は、エージェントを起動した project の run だけが対象です。
|
|
@@ -48,7 +48,6 @@ runo init
|
|
|
48
48
|
| 解析する | この系列の速度を比較して。図とスクリプト、調査メモを系列の `_analysis/` にまとめて |
|
|
49
49
|
| simulator を足す | パッチを当てた ~/BEACH-dev をビルドして、別の simulator として登録して |
|
|
50
50
|
| 更新する | runops と simulator を最新にして |
|
|
51
|
-
| v1 から移る | この project を runops v2 に移行して(`runo migrate-v1` を dry-run で確認してから) |
|
|
52
51
|
|
|
53
52
|
投入、削除、整理、移行の前には、エージェントが対象と資源量を示して確認を取ります。
|
|
54
53
|
範囲を言わない依頼(「全部再投入して」など)は、エージェントを起動した project の run だけが対象です。
|
|
@@ -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
|
|
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
|
-
|
|
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=...`
|
|
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`
|
|
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`
|
|
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
|
|
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
|
|
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
|
|
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 する必要は無い。
|
|
@@ -729,16 +751,16 @@ runops は `init` と `update` で次を行う。
|
|
|
729
751
|
runops は次の 6 skill だけを同梱し、simulator skill と同じ仕組みで展開する。
|
|
730
752
|
利用者が覚えるコマンドは `runo init` だけとし、それ以外(simulator の追加、更新、v1 移行を含む)は
|
|
731
753
|
エージェントへの依頼で行う。
|
|
732
|
-
各 SKILL.md は 60
|
|
754
|
+
各 SKILL.md は 60 行以内に収める。詳しい指針や例が要る skill は、同じ directory に別 file として置き、SKILL.md から相対リンクで参照する。
|
|
733
755
|
|
|
734
756
|
| skill | 内容 |
|
|
735
757
|
|---|---|
|
|
736
758
|
| `runops-create-run` | `new` / `sweep` の使い方。`--why` を必ず書く、scratch の使い分け |
|
|
737
759
|
| `runops-check-status` | `sync` → `list` → `log` の順。失敗時の `retry` と `tidy --purge-work` |
|
|
738
760
|
| `runops-tidy` | `tidy` を定期的に実行する判断基準。pin の使い方 |
|
|
739
|
-
| `runops-analyze` | 依存する run の範囲で調査の置き場所を決め、script・結果・log・README
|
|
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
|
|
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 には登録しない。`
|
|
759
|
-
2. `
|
|
780
|
+
置く。registry には登録しない。`runo init` が実行時に読むため package に含める。
|
|
781
|
+
2. `runo init` は `emses` / `beach` の adapter が entry point で見つからないとき、
|
|
760
782
|
対応する file を project の `adapters/` にコピーする(既にあれば触らない)。
|
|
761
|
-
これで simulator repo
|
|
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 が優先)ので、ユーザーが消せばよい。
|
|
@@ -816,11 +837,15 @@ seal、index を持たない)。
|
|
|
816
837
|
|
|
817
838
|
`init` が生成する agent 向けファイルは次だけ。
|
|
818
839
|
|
|
819
|
-
- `AGENTS.md`: 120 行以内。project 名、simulator、§7.3 の command
|
|
820
|
-
§9 のノート規約、展開済み skill の一覧。作業の進め方は次の
|
|
840
|
+
- `AGENTS.md`: 120 行以内。project 名、simulator、§7.3 の command 表(常用と保守に分ける)、作業の進め方、
|
|
841
|
+
§9 のノート規約、展開済み skill の一覧。作業の進め方は次の 6 項目で、それぞれ「何をするか」と
|
|
821
842
|
短い理由で書く(禁止事項の列挙にしない)。依頼が操作の範囲を決める、submit 前に対象と資源量を
|
|
822
|
-
示して確認を取る、操作対象は起動した project の run と job
|
|
823
|
-
|
|
843
|
+
示して確認を取る、操作対象は起動した project の run と job、管理 run の作成・投入・取消・再試行は
|
|
844
|
+
`runo` を通す(二重投入の防止、job id と attempt の記録、状態更新。variation は case ではなく run、§5)、
|
|
845
|
+
run の外の準備・検査・解析 job は project 内の script を承認範囲で `sbatch` し、対象 run・目的・job id・
|
|
846
|
+
資源・依存・結果の場所を残し、run がそれを待つときは `submit --dependency` で結ぶ、理由を残す
|
|
847
|
+
(`--why`、`cancel --why`、`--superseded-by`)。この規則の本文は生成する AGENTS.md に置き、
|
|
848
|
+
skill はそれを参照する。
|
|
824
849
|
- skill は手順を書き、AGENTS.md の方針を繰り返さない。
|
|
825
850
|
- harness file は project root にだけ置く。`runs/` や `cases/` 配下には生成しない。
|
|
826
851
|
- `CLAUDE.md`: `@AGENTS.md` の 1 行。
|
|
@@ -833,35 +858,15 @@ seal、index を持たない)。
|
|
|
833
858
|
|
|
834
859
|
## 11. v1 からの移行
|
|
835
860
|
|
|
836
|
-
`runo migrate-v1
|
|
837
|
-
|
|
861
|
+
v1 project の変換は、一回限りの command `runo migrate-v1` として runops 2.8 まで同梱した
|
|
862
|
+
(変換の内容は 2.8 の本節)。2.9 で削除し、v1 project は runops 2.8 で変換してから更新する
|
|
863
|
+
(`uvx --from runops==2.8.0 runo migrate-v1 --dry-run`)。
|
|
838
864
|
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
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 の規約通り)。
|
|
865
|
+
- v2 の runops は、`simulators.toml` のある directory、`schema` が 2 でない `runops.toml`、
|
|
866
|
+
`schema` が無いか `1` の manifest を読むと、runops 2.8 の `migrate-v1` を案内して exit code 2。
|
|
867
|
+
`init` も `simulators.toml` のある directory では同じ案内で止まる。
|
|
868
|
+
- 変換済みの project に残る `.runops/v1-backup/`、`manifest.v1.toml` は runops が読まない。
|
|
869
|
+
`doctor` は v1 の残骸(`campaign.toml` など)を列挙する。
|
|
865
870
|
|
|
866
871
|
---
|
|
867
872
|
|
|
@@ -914,15 +919,14 @@ src/runops/
|
|
|
914
919
|
sync.py # sync / status / log
|
|
915
920
|
listing.py # list の選択規則
|
|
916
921
|
tidy.py # tidy / archive / restore / delete / purge-work
|
|
917
|
-
notes.py # note / context
|
|
922
|
+
notes.py # note / context
|
|
918
923
|
setup.py # init / doctor / update
|
|
919
924
|
skills.py # agent context の展開、skills.lock
|
|
920
|
-
migrate.py # migrate-v1
|
|
921
925
|
adapters/
|
|
922
926
|
base.py # Protocol、RuntimeInfo、toml_override、set_dotted
|
|
923
927
|
registry.py
|
|
924
928
|
generic.py
|
|
925
|
-
legacy_adapters/ # v1 emses / beach の移植(
|
|
929
|
+
legacy_adapters/ # v1 emses / beach の移植(init がコピー)
|
|
926
930
|
launchers.py # srun / mpirun / mpiexec / none
|
|
927
931
|
jobgen.py
|
|
928
932
|
slurm.py # sbatch / scancel / squeue / sacct(runner 注入)
|
|
@@ -940,7 +944,7 @@ src/runops/
|
|
|
940
944
|
1. **骨格**: `config`、`project`、`manifest`、`cli` の `init` / `doctor` / `case new` /
|
|
941
945
|
`new` / `status` / `list`。generic adapter。job.sh 生成なし。
|
|
942
946
|
2. **投入**: `jobgen`、`launchers`、`slurm`、`build`(local_source)、`submit` / `sync` / `cancel` / `retry` / `log`。
|
|
943
|
-
3. **整理**: `note` / `context` / `tidy` / `archive` / `restore` / `delete` / `
|
|
947
|
+
3. **整理**: `note` / `context` / `tidy` / `archive` / `restore` / `delete` / `sweep` / `new --from`。
|
|
944
948
|
4. **連携**: `skills.py`、`harness.py`、`update`。MPIEMSES3D 側に entry point と
|
|
945
949
|
`agent_context_dir` を足して end-to-end 確認。
|
|
946
950
|
5. **移行**: `migrate-v1`。実在の v1 project で dry-run → apply を確認。
|
|
@@ -956,7 +960,7 @@ src/runops/
|
|
|
956
960
|
| 項目 | 目標 |
|
|
957
961
|
|---|---|
|
|
958
962
|
| `src/runops/` の行数(skill の md を除く) | 8,000 行以下 |
|
|
959
|
-
| CLI command 数(`case new` / `case list` を含む。同じ command の option 違いは数えない) | 25 以下。§7.3 の表の distinct command は
|
|
963
|
+
| CLI command 数(`case new` / `case list` を含む。同じ command の option 違いは数えない) | 25 以下。§7.3 の表の distinct command は 23 |
|
|
960
964
|
| ユーザーが編集する TOML | `runops.toml`、`case.toml` の 2 種 |
|
|
961
965
|
| runops が書く TOML | `manifest.toml`、`.runops/skills.lock`、`.runops/index.toml` の 3 種 |
|
|
962
966
|
| 依存 | `typer`、`rich`、`tomli-w`、`tomlkit`、`jinja2`、`packaging`(`mcp` を外す) |
|
|
@@ -987,10 +991,9 @@ src/runops/
|
|
|
987
991
|
8b. `local_source` simulator で `runo new` したとき `.runops/build/<sim>-<commit>/` に
|
|
988
992
|
build が走り(mock build_command)、manifest に `exe_hash` と `git_commit` が入る。
|
|
989
993
|
2 回目は build が走らない。
|
|
990
|
-
9. v1 の
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
「project ローカル」経路で解決したと表示する。
|
|
994
|
+
9. v1 の project(`simulators.toml`、schema 1 の `runops.toml` / manifest)を開くと、runops 2.8 の
|
|
995
|
+
`migrate-v1` を案内して exit code 2 になる。`init emses` / `init beach` は adapter が entry point に
|
|
996
|
+
無いとき `adapters/<name>.py` を置き、run がそれを「project ローカル」経路で使う。
|
|
994
997
|
9b. 同名 adapter が entry point と `adapters/X.py` の両方にあるとき entry point が優先される。
|
|
995
998
|
どちらも無く `generic` でもなければ exit code 2 で案内が出る。
|
|
996
999
|
10. `manifest.toml` の書き込み途中で例外が起きても元のファイルが壊れない。
|
|
@@ -1017,6 +1020,7 @@ v2 の文書は次の 4 ファイルだけにする。
|
|
|
1017
1020
|
|
|
1018
1021
|
| 項目 | 決定 | 理由 |
|
|
1019
1022
|
|---|---|---|
|
|
1023
|
+
| 比較レポートの書き方(2026-11-10) | `runops-analyze` に執筆ガイド `report-guide.md` と模擬データの例 `example-report/` を同梱する。README.md を本文の正本とし、例の `scripts/build_html.py` が図を埋め込んだ `report.html` を作る。command やレポート生成機構は足さない | 差分図と条件の列挙が中心のレポートは読み手に伝わらず、元の分布を同じ尺度で並べ、問い・観測・解釈をつなげて書き直すと伝わった(#119)。書き方は判断を伴うので、手順と例として skill に置く |
|
|
1020
1024
|
| 解析の配置 2.6.0(2026-10-23) | 依存する run の範囲に応じて run 内 `analysis/`、group の `_analysis/<topic>/`、project の `analysis/<topic>/` にまとめる。skill、log の tidy、group archive、context を対応させる(§9.1) | 報告・図・script・job log が分散・混在していた。group は既存の directory として扱い、新しい entity や command は足さない。既存ファイルの整理は移動一覧を提示してから行う |
|
|
1021
1025
|
| job の cwd | run_dir(v1 と同じ)。Slurm log は `work/` | v1 adapter の path 規約と実 project の job.sh をそのまま使える |
|
|
1022
1026
|
| adapter の追加 hook | `configure(sim_config)`、`job_prelude(run_dir)` | generic の `command` 取得と、EMSES の `rm -f *_0000.h5` など v1 の setup command を表す |
|
|
@@ -1039,11 +1043,17 @@ v2 の文書は次の 4 ファイルだけにする。
|
|
|
1039
1043
|
| 整理と命名のしきい値 | `[defaults]` に `tidy_failed_days`、`tidy_archive_days`、`label_max_length` を追加。completed の目安は「`--older-than` の 3 倍」をやめて独立の値に | project ごとに計算期間や命名が違い、エージェントに毎回 option を渡させると揃わない |
|
|
1040
1044
|
| `runo init` の対話と site の推定 | 端末から引数なしで実行したときだけ site と simulator を尋ねる。site の既定はホスト名(`camphor*`、`laurel*`、`cinnamon*`、`gardenia*` なら `kudpc`)。プリセット名は `kudpc` とし、`camphor` も同じ意味で受け付ける | 人が打つのは `runo init` だけなので、ここで KUDPC 向けの設定を取り違えないようにする。エージェントや CI からの実行(端末でない、`-y`、引数あり)は従来どおり尋ねない |
|
|
1041
1045
|
| 異常系と同時操作(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 を指す、を確認した |
|
|
1042
|
-
| 操作範囲は起動 project(2026-10-21) | AGENTS.md block と skill に「対象は起動した project の run と job id だけ。アカウント全体の squeue / sacct は診断に見るだけ。自分で別 directory に移らず、生の `sbatch` / `scancel`
|
|
1046
|
+
| 操作範囲は起動 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) |
|
|
1043
1047
|
| 置き換えた系列の整理(2026-10-21) | `archive` が DIR(系列)を受け、`--superseded-by` で置き換え先を manifest に記録する。新しい command と tidy の種別は足さない。skill は新系列を作ったら旧系列の要否を確かめ、不要なら archive して現用系列・archive 先・件数を報告する | 修正版を作った後に旧系列が作業領域に残り、毎回ユーザーが整理を頼んでいた。`parent_run` だけでは比較用の派生と置き換えを区別できないので、置き換えは明示操作で記録する。旧 `archive` は 1 件ずつ検査していて、途中の running run で一部だけ移動していた(#113) |
|
|
1044
1048
|
| 生成ハーネスの書き方(2026-10-21) | AGENTS.md の Rules を「作業の進め方」5 項目に絞り、各項目を「何をするか」と短い理由で書く。skill は手順に専念し、AGENTS.md の方針(manifest を手で編集しない等)を繰り返さない | #112・#113 で規則が増え、禁止形(never / do not)が並んでいた。現行の Claude の prompting 指針は、しないことより何をするかを、理由と共に書くことを勧め、強い禁止語は過剰反応を招くとしている |
|
|
1045
1049
|
| 複数 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 で同じことが起き得た |
|
|
1046
1050
|
| 進捗と系列配置 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 は保存と表示だけにする |
|
|
1047
1051
|
| 横断の状態確認 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 を小さくし、観測から止まりを出す |
|
|
1048
1052
|
| 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 数は増やさない |
|
|
1053
|
+
| 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 は増やさない |
|
|
1054
|
+
| `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 が増える |
|
|
1055
|
+
| 常用と保守の案内(2026-11-12) | `runo --help` を typer の `rich_help_panel` で 4 panel に分け、生成 AGENTS.md と `runops-reference` の表を常用(作成と投入、監視、整理)と保守(`init`、`doctor`、`update`、`build`)に分ける。command は削らない | 利用痕跡では作成・投入・監視・復旧・保管が常用で、保守の command は project の準備と更新のときだけ使われていた。常に読む案内を常用の command に寄せる |
|
|
1056
|
+
| 代表値と再現性の書き方(2026-11-12) | `runops-analyze` の `report-guide.md` に 2 点を足す: 代表値の図には平均する領域・重み・基準を本文に書く。再現性の検査は bitwise の一致、標本のばらつき、物理量の許容差を分けて設計する | 面積平均した電位の基準と領域が読み手と食い違った。並列 Monte Carlo の逐点一致を求めて、加算順序の違いを不一致と取り違えた |
|
|
1057
|
+
| 起動検査の書き方(2026-11-12) | `runops-create-run` に節を置く: 短い起動検査は起動と物理設定の成立だけを判定し、定常性・統計誤差・収束は別に評価する。止める条件と警告を分け、閾値に根拠と分母を添え、項目ごとの判定・実測値・単位・閾値・script の版を JSON に残す。代表 1 配置の検査を他の配置に広げない。runops は判定を持たない(§1.4) | 起動検査に運用判断を混ぜて厳しくしすぎた例と、代表 1 配置の試験が他の配置の不良を拾えなかった例が続いた。判定の記録を runops が持つ案は、2 例目が出るまで見送る |
|
|
1058
|
+
| 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 の枠を常用の機能に残す |
|
|
1049
1059
|
| 使い方ガイド | `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,7 @@ wheel に含めるには、その directory を package data に入れます。s
|
|
|
95
94
|
|
|
96
95
|
## 既存の EMSES / BEACH adapter
|
|
97
96
|
|
|
98
|
-
v1 から移植した adapter は `src/runops/legacy_adapters/`
|
|
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 版は削除できます。
|