runops 2.9.0__tar.gz → 2.9.1__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (126) hide show
  1. {runops-2.9.0 → runops-2.9.1}/PKG-INFO +4 -1
  2. {runops-2.9.0 → runops-2.9.1}/README.md +3 -0
  3. {runops-2.9.0 → runops-2.9.1}/SPEC.md +5 -2
  4. {runops-2.9.0 → runops-2.9.1}/docs/adapter.md +9 -0
  5. {runops-2.9.0 → runops-2.9.1}/docs/guide.md +7 -2
  6. {runops-2.9.0 → runops-2.9.1}/pyproject.toml +1 -1
  7. {runops-2.9.0 → runops-2.9.1}/src/runops/__init__.py +1 -1
  8. {runops-2.9.0 → runops-2.9.1}/src/runops/harness.py +2 -2
  9. {runops-2.9.0 → runops-2.9.1}/src/runops/legacy_adapters/emses.py +2 -2
  10. {runops-2.9.0 → runops-2.9.1}/src/runops/ops/setup.py +20 -2
  11. {runops-2.9.0 → runops-2.9.1}/src/runops/skills/runops-analyze/SKILL.md +9 -3
  12. {runops-2.9.0 → runops-2.9.1}/tests/test_legacy_adapters.py +13 -4
  13. {runops-2.9.0 → runops-2.9.1}/.agents/skills/check/SKILL.md +0 -0
  14. {runops-2.9.0 → runops-2.9.1}/.agents/skills/improve-harness/SKILL.md +0 -0
  15. {runops-2.9.0 → runops-2.9.1}/.agents/skills/python-package-refactor/SKILL.md +0 -0
  16. {runops-2.9.0 → runops-2.9.1}/.agents/skills/python-package-refactor/agents/openai.yaml +0 -0
  17. {runops-2.9.0 → runops-2.9.1}/.agents/skills/python-package-refactor/examples/refactor-request.md +0 -0
  18. {runops-2.9.0 → runops-2.9.1}/.agents/skills/python-package-refactor/references/anti-patterns.md +0 -0
  19. {runops-2.9.0 → runops-2.9.1}/.agents/skills/python-package-refactor/references/api-compatibility.md +0 -0
  20. {runops-2.9.0 → runops-2.9.1}/.agents/skills/python-package-refactor/references/packaging-modernization.md +0 -0
  21. {runops-2.9.0 → runops-2.9.1}/.agents/skills/python-package-refactor/references/refactor-playbook.md +0 -0
  22. {runops-2.9.0 → runops-2.9.1}/.agents/skills/python-package-refactor/references/verification.md +0 -0
  23. {runops-2.9.0 → runops-2.9.1}/.agents/skills/python-package-refactor/scripts/api_surface_snapshot.py +0 -0
  24. {runops-2.9.0 → runops-2.9.1}/.agents/skills/python-package-refactor/scripts/import_smoke.py +0 -0
  25. {runops-2.9.0 → runops-2.9.1}/.agents/skills/python-package-refactor/scripts/inspect_python_package.py +0 -0
  26. {runops-2.9.0 → runops-2.9.1}/.agents/skills/python-package-refactor/scripts/refactor_quality_gate.py +0 -0
  27. {runops-2.9.0 → runops-2.9.1}/.agents/skills/release/SKILL.md +0 -0
  28. {runops-2.9.0 → runops-2.9.1}/.agents/skills/simulator-adapter/SKILL.md +0 -0
  29. {runops-2.9.0 → runops-2.9.1}/.agents/skills/spec-reviewer/SKILL.md +0 -0
  30. {runops-2.9.0 → runops-2.9.1}/.agents/skills/sync-docs/SKILL.md +0 -0
  31. {runops-2.9.0 → runops-2.9.1}/.claude/agents/spec-reviewer.md +0 -0
  32. {runops-2.9.0 → runops-2.9.1}/.claude/rules/architecture.md +0 -0
  33. {runops-2.9.0 → runops-2.9.1}/.claude/rules/dev-workflow.md +0 -0
  34. {runops-2.9.0 → runops-2.9.1}/.claude/rules/gotchas.md +0 -0
  35. {runops-2.9.0 → runops-2.9.1}/.claude/settings.json +0 -0
  36. {runops-2.9.0 → runops-2.9.1}/.claude/skills/check/SKILL.md +0 -0
  37. {runops-2.9.0 → runops-2.9.1}/.claude/skills/improve-harness/SKILL.md +0 -0
  38. {runops-2.9.0 → runops-2.9.1}/.claude/skills/python-package-refactor/SKILL.md +0 -0
  39. {runops-2.9.0 → runops-2.9.1}/.claude/skills/release/SKILL.md +0 -0
  40. {runops-2.9.0 → runops-2.9.1}/.claude/skills/simulator-adapter/SKILL.md +0 -0
  41. {runops-2.9.0 → runops-2.9.1}/.claude/skills/spec-reviewer/SKILL.md +0 -0
  42. {runops-2.9.0 → runops-2.9.1}/.claude/skills/sync-docs/SKILL.md +0 -0
  43. {runops-2.9.0 → runops-2.9.1}/.codex/README.md +0 -0
  44. {runops-2.9.0 → runops-2.9.1}/.codex/agents/spec-reviewer.toml +0 -0
  45. {runops-2.9.0 → runops-2.9.1}/.codex/config.toml +0 -0
  46. {runops-2.9.0 → runops-2.9.1}/.codex/rules/runops.rules +0 -0
  47. {runops-2.9.0 → runops-2.9.1}/.dockerignore +0 -0
  48. {runops-2.9.0 → runops-2.9.1}/.gitattributes +0 -0
  49. {runops-2.9.0 → runops-2.9.1}/.github/assets/conversation-dark.svg +0 -0
  50. {runops-2.9.0 → runops-2.9.1}/.github/assets/conversation-light.svg +0 -0
  51. {runops-2.9.0 → runops-2.9.1}/.github/assets/hero-dark.svg +0 -0
  52. {runops-2.9.0 → runops-2.9.1}/.github/assets/hero-light.svg +0 -0
  53. {runops-2.9.0 → runops-2.9.1}/.github/assets/make_readme_art.py +0 -0
  54. {runops-2.9.0 → runops-2.9.1}/.github/workflows/ci.yml +0 -0
  55. {runops-2.9.0 → runops-2.9.1}/.github/workflows/publish.yml +0 -0
  56. {runops-2.9.0 → runops-2.9.1}/.gitignore +0 -0
  57. {runops-2.9.0 → runops-2.9.1}/.pre-commit-config.yaml +0 -0
  58. {runops-2.9.0 → runops-2.9.1}/.vscode/settings.json +0 -0
  59. {runops-2.9.0 → runops-2.9.1}/AGENTS.md +0 -0
  60. {runops-2.9.0 → runops-2.9.1}/CLAUDE.md +0 -0
  61. {runops-2.9.0 → runops-2.9.1}/LICENSE +0 -0
  62. {runops-2.9.0 → runops-2.9.1}/docs/reference.md +0 -0
  63. {runops-2.9.0 → runops-2.9.1}/src/runops/adapters/__init__.py +0 -0
  64. {runops-2.9.0 → runops-2.9.1}/src/runops/adapters/base.py +0 -0
  65. {runops-2.9.0 → runops-2.9.1}/src/runops/adapters/generic.py +0 -0
  66. {runops-2.9.0 → runops-2.9.1}/src/runops/adapters/registry.py +0 -0
  67. {runops-2.9.0 → runops-2.9.1}/src/runops/case.py +0 -0
  68. {runops-2.9.0 → runops-2.9.1}/src/runops/cli.py +0 -0
  69. {runops-2.9.0 → runops-2.9.1}/src/runops/config.py +0 -0
  70. {runops-2.9.0 → runops-2.9.1}/src/runops/errors.py +0 -0
  71. {runops-2.9.0 → runops-2.9.1}/src/runops/jobgen.py +0 -0
  72. {runops-2.9.0 → runops-2.9.1}/src/runops/launchers.py +0 -0
  73. {runops-2.9.0 → runops-2.9.1}/src/runops/legacy_adapters/__init__.py +0 -0
  74. {runops-2.9.0 → runops-2.9.1}/src/runops/legacy_adapters/beach.py +0 -0
  75. {runops-2.9.0 → runops-2.9.1}/src/runops/manifest.py +0 -0
  76. {runops-2.9.0 → runops-2.9.1}/src/runops/ops/__init__.py +0 -0
  77. {runops-2.9.0 → runops-2.9.1}/src/runops/ops/analysis.py +0 -0
  78. {runops-2.9.0 → runops-2.9.1}/src/runops/ops/common.py +0 -0
  79. {runops-2.9.0 → runops-2.9.1}/src/runops/ops/create.py +0 -0
  80. {runops-2.9.0 → runops-2.9.1}/src/runops/ops/listing.py +0 -0
  81. {runops-2.9.0 → runops-2.9.1}/src/runops/ops/notes.py +0 -0
  82. {runops-2.9.0 → runops-2.9.1}/src/runops/ops/progress.py +0 -0
  83. {runops-2.9.0 → runops-2.9.1}/src/runops/ops/skills.py +0 -0
  84. {runops-2.9.0 → runops-2.9.1}/src/runops/ops/submit.py +0 -0
  85. {runops-2.9.0 → runops-2.9.1}/src/runops/ops/sync.py +0 -0
  86. {runops-2.9.0 → runops-2.9.1}/src/runops/ops/tidy.py +0 -0
  87. {runops-2.9.0 → runops-2.9.1}/src/runops/project.py +0 -0
  88. {runops-2.9.0 → runops-2.9.1}/src/runops/runtime.py +0 -0
  89. {runops-2.9.0 → runops-2.9.1}/src/runops/skills/runops-analyze/example-report/README.md +0 -0
  90. {runops-2.9.0 → runops-2.9.1}/src/runops/skills/runops-analyze/example-report/out/fig1_maps.png +0 -0
  91. {runops-2.9.0 → runops-2.9.1}/src/runops/skills/runops-analyze/example-report/out/fig2_dependence.png +0 -0
  92. {runops-2.9.0 → runops-2.9.1}/src/runops/skills/runops-analyze/example-report/out/values.csv +0 -0
  93. {runops-2.9.0 → runops-2.9.1}/src/runops/skills/runops-analyze/example-report/report.html +0 -0
  94. {runops-2.9.0 → runops-2.9.1}/src/runops/skills/runops-analyze/example-report/scripts/build_html.py +0 -0
  95. {runops-2.9.0 → runops-2.9.1}/src/runops/skills/runops-analyze/example-report/scripts/make_figures.py +0 -0
  96. {runops-2.9.0 → runops-2.9.1}/src/runops/skills/runops-analyze/report-guide.md +0 -0
  97. {runops-2.9.0 → runops-2.9.1}/src/runops/skills/runops-check-status/SKILL.md +0 -0
  98. {runops-2.9.0 → runops-2.9.1}/src/runops/skills/runops-create-run/SKILL.md +0 -0
  99. {runops-2.9.0 → runops-2.9.1}/src/runops/skills/runops-maintain/SKILL.md +0 -0
  100. {runops-2.9.0 → runops-2.9.1}/src/runops/skills/runops-reference/SKILL.md +0 -0
  101. {runops-2.9.0 → runops-2.9.1}/src/runops/skills/runops-tidy/SKILL.md +0 -0
  102. {runops-2.9.0 → runops-2.9.1}/src/runops/slurm.py +0 -0
  103. {runops-2.9.0 → runops-2.9.1}/src/runops/util.py +0 -0
  104. {runops-2.9.0 → runops-2.9.1}/tests/__init__.py +0 -0
  105. {runops-2.9.0 → runops-2.9.1}/tests/conftest.py +0 -0
  106. {runops-2.9.0 → runops-2.9.1}/tests/golden/mpi_standard.sh +0 -0
  107. {runops-2.9.0 → runops-2.9.1}/tests/golden/openmp_rsc.sh +0 -0
  108. {runops-2.9.0 → runops-2.9.1}/tests/test_adapters.py +0 -0
  109. {runops-2.9.0 → runops-2.9.1}/tests/test_analysis_layout.py +0 -0
  110. {runops-2.9.0 → runops-2.9.1}/tests/test_archive_series.py +0 -0
  111. {runops-2.9.0 → runops-2.9.1}/tests/test_build.py +0 -0
  112. {runops-2.9.0 → runops-2.9.1}/tests/test_dev_harness.py +0 -0
  113. {runops-2.9.0 → runops-2.9.1}/tests/test_jobgen.py +0 -0
  114. {runops-2.9.0 → runops-2.9.1}/tests/test_lifecycle.py +0 -0
  115. {runops-2.9.0 → runops-2.9.1}/tests/test_manifest_config.py +0 -0
  116. {runops-2.9.0 → runops-2.9.1}/tests/test_mv_naming.py +0 -0
  117. {runops-2.9.0 → runops-2.9.1}/tests/test_progress.py +0 -0
  118. {runops-2.9.0 → runops-2.9.1}/tests/test_project_scope.py +0 -0
  119. {runops-2.9.0 → runops-2.9.1}/tests/test_run_job.py +0 -0
  120. {runops-2.9.0 → runops-2.9.1}/tests/test_safety.py +0 -0
  121. {runops-2.9.0 → runops-2.9.1}/tests/test_scratch_tidy.py +0 -0
  122. {runops-2.9.0 → runops-2.9.1}/tests/test_setup_misc.py +0 -0
  123. {runops-2.9.0 → runops-2.9.1}/tests/test_skills.py +0 -0
  124. {runops-2.9.0 → runops-2.9.1}/tests/test_sweep.py +0 -0
  125. {runops-2.9.0 → runops-2.9.1}/tests/test_sync_evidence.py +0 -0
  126. {runops-2.9.0 → runops-2.9.1}/uv.lock +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.5
2
2
  Name: runops
3
- Version: 2.9.0
3
+ Version: 2.9.1
4
4
  Summary: Run ledger and Slurm job submission for HPC simulation projects
5
5
  Project-URL: Homepage, https://github.com/Nkzono99/runops
6
6
  Project-URL: Documentation, https://github.com/Nkzono99/runops/blob/main/docs/reference.md
@@ -77,6 +77,7 @@ runo init
77
77
  | 片付ける | 古い run を整理して。消すものと archive するものを先に見せて |
78
78
  | 作り直した旧系列を片付ける | 旧系列は新系列で置き換えたので、対応を記録して archive して |
79
79
  | 解析する | この系列の速度を比較して。図とスクリプト、調査メモを系列の `_analysis/` にまとめて |
80
+ | 過去の結果を使う | 前回の平均速度はどの時間幅で求めた? ノートから集計表を確認して、今回も同じ条件で比較して |
80
81
  | simulator を足す | パッチを当てた ~/BEACH-dev をビルドして、別の simulator として登録して |
81
82
  | 更新する | runops と simulator を最新にして |
82
83
 
@@ -122,6 +123,8 @@ run は ID が変わらないので、directory を移動してもエージェ
122
123
  | BEACH | `beach-bem` ≥ 3.0 | adapter とエージェント向け skill を同梱 |
123
124
  | その他 | 自作の adapter、または `generic` | [adapter ガイド](https://github.com/Nkzono99/runops/blob/main/docs/adapter.md) |
124
125
 
126
+ MPIEMSES3D の継続計算には `mpiemses3d-tools` 4.22.1 以降を使用してください。
127
+
125
128
  ---
126
129
 
127
130
  [使い方ガイド](https://github.com/Nkzono99/runops/blob/main/docs/guide.md) ·
@@ -46,6 +46,7 @@ runo init
46
46
  | 片付ける | 古い run を整理して。消すものと archive するものを先に見せて |
47
47
  | 作り直した旧系列を片付ける | 旧系列は新系列で置き換えたので、対応を記録して archive して |
48
48
  | 解析する | この系列の速度を比較して。図とスクリプト、調査メモを系列の `_analysis/` にまとめて |
49
+ | 過去の結果を使う | 前回の平均速度はどの時間幅で求めた? ノートから集計表を確認して、今回も同じ条件で比較して |
49
50
  | simulator を足す | パッチを当てた ~/BEACH-dev をビルドして、別の simulator として登録して |
50
51
  | 更新する | runops と simulator を最新にして |
51
52
 
@@ -91,6 +92,8 @@ run は ID が変わらないので、directory を移動してもエージェ
91
92
  | BEACH | `beach-bem` ≥ 3.0 | adapter とエージェント向け skill を同梱 |
92
93
  | その他 | 自作の adapter、または `generic` | [adapter ガイド](https://github.com/Nkzono99/runops/blob/main/docs/adapter.md) |
93
94
 
95
+ MPIEMSES3D の継続計算には `mpiemses3d-tools` 4.22.1 以降を使用してください。
96
+
94
97
  ---
95
98
 
96
99
  [使い方ガイド](https://github.com/Nkzono99/runops/blob/main/docs/guide.md) ·
@@ -802,8 +802,11 @@ seal、index を持たない)。
802
802
  - agent harness(`AGENTS.md`)は次を指示する。
803
803
  - run に関する観察は `runo note RUN "..."` に書く
804
804
  - 複数 run にまたがる結論と次の判断は `LOG.md` に日付付きで追記する
805
- - 再利用する式・手法・環境の落とし穴は `notes/<topic>.md` に書く。既存 file があれば追記し、
806
- 似た topic の file を増やさない
805
+ - 次の実験で同じ指標や手法を使うときは、`context` に出た該当ノートを開き、適用条件を確かめる
806
+ - 再利用する知見は既存の `notes/<topic>.md` にまとめる。定義と適用条件を本文に書き、
807
+ 根拠となる解析 README や集計表をノートからの相対リンクで示す。新しい topic のみ file を作る
808
+ - 機械可読の出典が必要なノートは、Open Knowledge Format (OKF) の YAML frontmatter に
809
+ `type` と `sources[].resource` を書ける。通常の Markdown も同じ手順で扱う
807
810
  - 調査の詳細は §9.1 の README にまとめ、LOG.md からリンクする
808
811
  - v1 の `research/results/`、`.runops/insights/`、`research/archive/legacy/` は移行時に
809
812
  `notes/legacy/` 配下へ **移動せず** そのまま残し、`notes/README.md` から path を案内する(§11)。
@@ -98,3 +98,12 @@ v1 から移植した adapter は `src/runops/legacy_adapters/` にあります
98
98
  entry point が見つからないときの `runo init emses` / `runo init beach` が、project の
99
99
  `adapters/` にコピーします。MPIEMSES3D と BEACH の package が entry point を
100
100
  公開したら、legacy 版は削除できます。
101
+
102
+ EMSES の legacy adapter は、元の run の `work/latest/SNAPSHOT1`、次に
103
+ `work/SNAPSHOT1` を探し、新しい run 直下の `SNAPSHOT0` にリンクします。
104
+ native reader はジョブの CWD から `SNAPSHOT0` を読み、`-o work/latest` は出力先だけを
105
+ 指定するためです。
106
+
107
+ 既存 project にコピー済みの `adapters/emses.py` は runops の更新だけでは書き換わりません。
108
+ 古いコピーが `work/latest/SNAPSHOT0` や `work/SNAPSHOT0` にリンクする場合は、リンク先を
109
+ run 直下へ修正するか、`mpiemses3d-tools` 4.22.1 以降の entry point を使用してください。
@@ -221,7 +221,12 @@ project の run だけが対象です。同じアカウントの別 project の
221
221
  | 複数の run をまたぐ結論と次の判断 | `LOG.md` に日付見出しで追記 | 今日の scan の結論を LOG にまとめて |
222
222
  | 再利用する式、手法、落とし穴 | `notes/<topic>.md`(1 topic 1 file) | Debye 長の見積もり方を notes に残して |
223
223
 
224
- `notes/` に似た topic の file があれば、新しく作らずに追記します。
224
+ 次の実験でも使う定義や手法は、その topic のノートに追記します。たとえば「平均速度」なら、
225
+ どの粒子を対象に、どの時間幅で、どう重み付けしたかを書き、根拠となる解析 README と集計表に
226
+ ノートから相対リンクを張ります。次に同じ量を比べるときは、エージェントがその条件を確認します。
227
+ 通常の Markdown で書けます。機械可読の出典も残したいときは、ノートの先頭に YAML の
228
+ `type`(例 `Metric`)と `sources` を置き、各項目の `resource` に相対パスか URL を書きます。
229
+ 新規 project の `notes/README.md` に記入例があります。[Open Knowledge Format 仕様](https://github.com/open-knowledge-format/open-knowledge-format/blob/main/SPEC.md)
225
230
 
226
231
  調査の詳細と図・スクリプトは、結果が依存する run の範囲に合わせてまとめます。
227
232
 
@@ -247,7 +252,7 @@ topic は `speed-by-version` のように問いの内容で名付け、同じ問
247
252
  ```
248
253
 
249
254
  エージェントは `runops-analyze` skill を使い、調査の README と、そこへのリンクを含む
250
- `LOG.md` の判断を更新します。`notes/` は run に依存しない知見に使います。
255
+ `LOG.md` の判断を更新します。
251
256
  比較の結果を人に見せるレポートを頼むと(「この 3 条件を比較してレポートにまとめて」)、
252
257
  エージェントは skill 同梱の執筆ガイドと例に沿って、問いと結論、条件を同じ尺度で並べた図、
253
258
  図の読み方と結果の意味、再現情報の順に書きます。README.md と、図を埋め込んで単体で
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
4
4
 
5
5
  [project]
6
6
  name = "runops"
7
- version = "2.9.0"
7
+ version = "2.9.1"
8
8
  description = "Run ledger and Slurm job submission for HPC simulation projects"
9
9
  readme = "README.md"
10
10
  license = "Apache-2.0"
@@ -1,3 +1,3 @@
1
1
  """runops: run ledger and Slurm job submission for HPC simulation projects."""
2
2
 
3
- __version__ = "2.9.0"
3
+ __version__ = "2.9.1"
@@ -97,8 +97,8 @@ the project found from the current directory.
97
97
  Notes live in three places, where `runo context` and the next session find them:
98
98
  - one run: `runo note RUN "..."`;
99
99
  - conclusions across runs and next decisions: `LOG.md`, appended under a dated heading;
100
- - reusable knowledge (formulas, methods, pitfalls): `notes/<topic>.md`, extending the
101
- existing file for a topic.
100
+ - reusable definitions, methods and pitfalls: consult the topic in `notes/` before reusing it.
101
+ Update the same note with its scope and a link to the supporting report or data.
102
102
 
103
103
  Place analysis by the runs its results depend on:
104
104
 
@@ -99,8 +99,8 @@ class Adapter:
99
99
  raise ValueError(f"{src_run} has no SNAPSHOT1 to continue from")
100
100
  import tomli_w
101
101
 
102
- rel_parent = snapshot.parent.relative_to(src_run)
103
- link = run_dir / rel_parent / "SNAPSHOT0"
102
+ # Native restart paths are relative to the job's CWD, independently of -o.
103
+ link = run_dir / "SNAPSHOT0"
104
104
  link.parent.mkdir(parents=True, exist_ok=True)
105
105
  os.symlink(snapshot.resolve(), link)
106
106
  path = run_dir / INPUT
@@ -110,8 +110,26 @@ Run-specific observations go to `runo note RUN "..."`.
110
110
  NOTES_README = """\
111
111
  # notes
112
112
 
113
- Reusable knowledge: one topic per file (formulas, methods, environment pitfalls).
114
- Extend an existing file instead of creating a similar one.
113
+ Keep one Markdown file per topic. Before reusing a result, open the relevant note
114
+ and check its scope. When an analysis clarifies a definition, method or pitfall,
115
+ update that topic with the finding, the conditions where it applies and a link
116
+ to the supporting report or data. Resolve local paths from the note itself.
117
+
118
+ For machine-readable sources, a topic note can start with Open Knowledge Format
119
+ (OKF) frontmatter. For example, a note about a time average might start like this
120
+ (use the paths to your own analysis):
121
+
122
+ ```yaml
123
+ ---
124
+ type: Metric
125
+ title: Steady-state mean temperature
126
+ sources:
127
+ - resource: ../analysis/steady-state/README.md
128
+ - resource: ../analysis/steady-state/out/means.csv
129
+ ---
130
+ ```
131
+
132
+ In the body, give the averaging window and weighting that make two runs comparable.
115
133
  """
116
134
 
117
135
 
@@ -5,8 +5,9 @@ description: Analyze or compare run results in a runops project. Use when plotti
5
5
 
6
6
  # Analyze run results
7
7
 
8
- 1. Read `runo context`, identify the question and target run ids, and check existing
9
- analysis directories for the same topic. Use simulator skills for physical methods.
8
+ 1. Read `runo context` and identify the question and target run ids. Open relevant
9
+ notes under `notes/` and check their definitions and scope against the current runs.
10
+ Look for an existing investigation on the topic. Use simulator skills for physical methods.
10
11
  2. Choose the location by the runs the result depends on:
11
12
  - one run: `<run_dir>/analysis/` (or a topic inside it);
12
13
  - one series or sweep directory: `runs/<group>/_analysis/<topic>/`;
@@ -37,7 +38,12 @@ description: Analyze or compare run results in a runops project. Use when plotti
37
38
  before and after, provenance and checks at the end, as `README.md` plus a
38
39
  self-contained `report.html`. [example-report/](example-report/README.md) shows it.
39
40
  6. Update the investigation README, then append the decision and its README link to
40
- `LOG.md`. Put reusable formulas, methods and pitfalls in `notes/<topic>.md`.
41
+ `LOG.md`. If another investigation could reuse a definition, method or finding,
42
+ update the matching `notes/<topic>.md`. State when it applies (e.g. the denominator
43
+ and time window of a fraction). Link the supporting README and the data behind a
44
+ numerical claim, using paths relative to the note. Include the relevant run ids.
45
+ Plain Markdown works. For machine-readable provenance, a topic note can start with
46
+ OKF frontmatter: a `type` such as `Metric` and a `sources` list of `resource` paths or URLs.
41
47
  7. `runo tidy --only analysis-logs` previews old job logs, retaining the newest pair per
42
48
  job name in each logs directory. Apply with `runo tidy --apply --only analysis-logs`.
43
49
  Archiving a whole group directory also moves its `_analysis/`; a partial archive
@@ -5,6 +5,8 @@ from __future__ import annotations
5
5
  import shutil
6
6
  from pathlib import Path
7
7
 
8
+ import pytest
9
+
8
10
  from runops.project import Project
9
11
  from runops.util import load_toml
10
12
 
@@ -63,7 +65,10 @@ def test_beach_failure_from_stderr(project_dir: Path, cli, fake_slurm) -> None:
63
65
  assert Project.open(project_dir).resolve_run(run_id).status.value == "failed"
64
66
 
65
67
 
66
- def test_emses_adapter_and_continue(project_dir: Path, cli, fake_slurm) -> None: # type: ignore[no-untyped-def]
68
+ @pytest.mark.parametrize("snapshot_parent", ["work/latest", "work"])
69
+ def test_emses_adapter_and_continue(
70
+ project_dir: Path, cli, fake_slurm, snapshot_parent: str
71
+ ) -> None: # type: ignore[no-untyped-def]
67
72
  _add_sim(
68
73
  project_dir,
69
74
  "emses",
@@ -78,7 +83,9 @@ def test_emses_adapter_and_continue(project_dir: Path, cli, fake_slurm) -> None:
78
83
  assert "export EMSES_DEBUG=no" in job
79
84
 
80
85
  (m.run_dir / "work/latest/energy").write_text("50 1.0\n100 1.0\n")
81
- (m.run_dir / "work/latest/SNAPSHOT1").mkdir()
86
+ snapshot = m.run_dir / snapshot_parent / "SNAPSHOT1"
87
+ snapshot.mkdir()
88
+ (snapshot / "esdat0000.h5").write_bytes(b"restart path fixture")
82
89
  fake_slurm.states[fake_slurm.last_job] = "COMPLETED"
83
90
  cli("sync")
84
91
  assert Project.open(project_dir).resolve_run(run_id).status.value == "completed"
@@ -90,6 +97,8 @@ def test_emses_adapter_and_continue(project_dir: Path, cli, fake_slurm) -> None:
90
97
  plasma = load_toml(c.run_dir / "input/plasma.toml")
91
98
  assert plasma["jobcon"] == {"nstep": 200, "jobnum": [1, 1]}
92
99
  assert plasma["tmgrid"]["nx"] == 32
93
- link = c.run_dir / "work/latest/SNAPSHOT0"
94
- assert link.is_symlink() and link.resolve() == (m.run_dir / "work/latest/SNAPSHOT1").resolve()
100
+ # The native reader opens this path from the run root, even with -o work/latest.
101
+ link = c.run_dir / "SNAPSHOT0"
102
+ assert link.is_symlink() and link.resolve() == snapshot.resolve()
103
+ assert (link / "esdat0000.h5").read_bytes() == b"restart path fixture"
95
104
  assert c.label.endswith("-cont")
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes