courant-dev 0.7.0__tar.gz → 0.7.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 (176) hide show
  1. {courant_dev-0.7.0/courant_dev.egg-info → courant_dev-0.7.1}/PKG-INFO +27 -19
  2. {courant_dev-0.7.0 → courant_dev-0.7.1}/README.md +26 -18
  3. {courant_dev-0.7.0 → courant_dev-0.7.1}/courant/__init__.py +1 -1
  4. {courant_dev-0.7.0 → courant_dev-0.7.1}/courant/case/_foam_reader.py +534 -61
  5. {courant_dev-0.7.0 → courant_dev-0.7.1}/courant/case/config.py +41 -5
  6. courant_dev-0.7.1/courant/case/foamguard.py +470 -0
  7. {courant_dev-0.7.0 → courant_dev-0.7.1}/courant/case/mesh.py +115 -36
  8. {courant_dev-0.7.0 → courant_dev-0.7.1}/courant/case/motion.py +3 -0
  9. {courant_dev-0.7.0 → courant_dev-0.7.1}/courant/case/polymesh.py +314 -34
  10. {courant_dev-0.7.0 → courant_dev-0.7.1}/courant/case/reads.py +27 -0
  11. {courant_dev-0.7.0 → courant_dev-0.7.1}/courant/case/regime.py +3 -2
  12. {courant_dev-0.7.0 → courant_dev-0.7.1}/courant/case/reynolds.py +9 -7
  13. {courant_dev-0.7.0 → courant_dev-0.7.1}/courant/case/solvers.py +18 -1
  14. {courant_dev-0.7.0 → courant_dev-0.7.1}/courant/case/viscosity.py +36 -14
  15. {courant_dev-0.7.0 → courant_dev-0.7.1}/courant/case/wordre.py +9 -7
  16. {courant_dev-0.7.0 → courant_dev-0.7.1}/courant/cli/commands/audit.py +5 -1
  17. {courant_dev-0.7.0 → courant_dev-0.7.1}/courant/cli/commands/ctest.py +2 -1
  18. {courant_dev-0.7.0 → courant_dev-0.7.1}/courant/cli/commands/doctor.py +3 -2
  19. courant_dev-0.7.1/courant/cli/commands/precheck.py +168 -0
  20. {courant_dev-0.7.0 → courant_dev-0.7.1}/courant/cli/commands/preflight.py +1 -1
  21. {courant_dev-0.7.0 → courant_dev-0.7.1}/courant/cli/commands/spec.py +30 -9
  22. {courant_dev-0.7.0 → courant_dev-0.7.1}/courant/cli/commands/tour.py +3 -2
  23. {courant_dev-0.7.0 → courant_dev-0.7.1}/courant/cli/commands/update.py +5 -9
  24. {courant_dev-0.7.0 → courant_dev-0.7.1}/courant/cli/commands/verify.py +45 -6
  25. {courant_dev-0.7.0 → courant_dev-0.7.1}/courant/cli/main.py +9 -5
  26. {courant_dev-0.7.0 → courant_dev-0.7.1}/courant/cli/tail.py +101 -17
  27. {courant_dev-0.7.0 → courant_dev-0.7.1}/courant/config.py +17 -5
  28. {courant_dev-0.7.0 → courant_dev-0.7.1}/courant/converge/assess.py +27 -16
  29. {courant_dev-0.7.0 → courant_dev-0.7.1}/courant/converge/series.py +3 -1
  30. {courant_dev-0.7.0 → courant_dev-0.7.1}/courant/converge/steady.py +37 -2
  31. {courant_dev-0.7.0 → courant_dev-0.7.1}/courant/converge/transient.py +4 -2
  32. {courant_dev-0.7.0 → courant_dev-0.7.1}/courant/ctest/judges/constant.py +4 -2
  33. {courant_dev-0.7.0 → courant_dev-0.7.1}/courant/ctest/judges/llm_spec.py +2 -1
  34. {courant_dev-0.7.0 → courant_dev-0.7.1}/courant/ctest/run.py +4 -1
  35. {courant_dev-0.7.0 → courant_dev-0.7.1}/courant/data/certification.json +1 -1
  36. {courant_dev-0.7.0 → courant_dev-0.7.1}/courant/diagnosis/bundle.py +15 -9
  37. {courant_dev-0.7.0 → courant_dev-0.7.1}/courant/diagnosis/checkers.py +47 -20
  38. {courant_dev-0.7.0 → courant_dev-0.7.1}/courant/diagnosis/kb.py +37 -2
  39. {courant_dev-0.7.0 → courant_dev-0.7.1}/courant/diagnosis/llm.py +6 -6
  40. {courant_dev-0.7.0 → courant_dev-0.7.1}/courant/diagnosis/redact.py +32 -14
  41. {courant_dev-0.7.0 → courant_dev-0.7.1}/courant/gate/run.py +18 -4
  42. {courant_dev-0.7.0 → courant_dev-0.7.1}/courant/live/engine.py +6 -2
  43. {courant_dev-0.7.0 → courant_dev-0.7.1}/courant/llm/anthropic.py +7 -3
  44. {courant_dev-0.7.0 → courant_dev-0.7.1}/courant/llm/budget.py +3 -2
  45. {courant_dev-0.7.0 → courant_dev-0.7.1}/courant/llm/door.py +52 -29
  46. {courant_dev-0.7.0 → courant_dev-0.7.1}/courant/llm/errors.py +13 -8
  47. {courant_dev-0.7.0 → courant_dev-0.7.1}/courant/llm/policy.py +3 -2
  48. {courant_dev-0.7.0 → courant_dev-0.7.1}/courant/mcp/server.py +22 -5
  49. {courant_dev-0.7.0 → courant_dev-0.7.1}/courant/mcp/tools.py +11 -4
  50. {courant_dev-0.7.0 → courant_dev-0.7.1}/courant/record/record.py +7 -1
  51. {courant_dev-0.7.0 → courant_dev-0.7.1}/courant/signing.py +17 -4
  52. {courant_dev-0.7.0 → courant_dev-0.7.1}/courant/spec/as_run.py +227 -24
  53. {courant_dev-0.7.0 → courant_dev-0.7.1}/courant/spec/check.py +86 -25
  54. {courant_dev-0.7.0 → courant_dev-0.7.1}/courant/spec/deck.py +428 -41
  55. {courant_dev-0.7.0 → courant_dev-0.7.1}/courant/spec/impossible.py +2 -1
  56. {courant_dev-0.7.0 → courant_dev-0.7.1}/courant/spec/model.py +8 -3
  57. courant_dev-0.7.1/courant/verification/_flow_heat.py +424 -0
  58. {courant_dev-0.7.0 → courant_dev-0.7.1}/courant/verification/_fluid_reader.py +21 -7
  59. {courant_dev-0.7.0 → courant_dev-0.7.1}/courant/verification/_heat_reader.py +94 -38
  60. {courant_dev-0.7.0 → courant_dev-0.7.1}/courant/verification/checks.py +57 -13
  61. {courant_dev-0.7.0 → courant_dev-0.7.1}/courant/verification/convergence.py +34 -13
  62. {courant_dev-0.7.0 → courant_dev-0.7.1}/courant/verify/audit.py +2 -2
  63. {courant_dev-0.7.0 → courant_dev-0.7.1}/courant/verify/batch.py +94 -10
  64. {courant_dev-0.7.0 → courant_dev-0.7.1}/courant/verify/checks.py +129 -2
  65. {courant_dev-0.7.0 → courant_dev-0.7.1}/courant/verify/html.py +7 -5
  66. courant_dev-0.7.1/courant/verify/ingest.py +271 -0
  67. {courant_dev-0.7.0 → courant_dev-0.7.1}/courant/verify/junit.py +31 -3
  68. {courant_dev-0.7.0 → courant_dev-0.7.1}/courant/verify/pack.py +94 -27
  69. {courant_dev-0.7.0 → courant_dev-0.7.1}/courant/verify/pipeline.py +56 -15
  70. courant_dev-0.7.1/courant/verify/precheck.py +752 -0
  71. {courant_dev-0.7.0 → courant_dev-0.7.1}/courant/verify/preflight.py +41 -11
  72. {courant_dev-0.7.0 → courant_dev-0.7.1}/courant/verify/render.py +40 -13
  73. {courant_dev-0.7.0 → courant_dev-0.7.1}/courant/verify/sentences.py +45 -0
  74. {courant_dev-0.7.0 → courant_dev-0.7.1}/courant/verify/verdict2.py +5 -5
  75. {courant_dev-0.7.0 → courant_dev-0.7.1}/courant/watcher/anomaly.py +3 -2
  76. {courant_dev-0.7.0 → courant_dev-0.7.1}/courant/watcher/parser.py +22 -5
  77. {courant_dev-0.7.0 → courant_dev-0.7.1/courant_dev.egg-info}/PKG-INFO +27 -19
  78. {courant_dev-0.7.0 → courant_dev-0.7.1}/courant_dev.egg-info/SOURCES.txt +4 -0
  79. {courant_dev-0.7.0 → courant_dev-0.7.1}/pyproject.toml +3 -0
  80. courant_dev-0.7.0/courant/verify/ingest.py +0 -155
  81. {courant_dev-0.7.0 → courant_dev-0.7.1}/LICENSE +0 -0
  82. {courant_dev-0.7.0 → courant_dev-0.7.1}/MANIFEST.in +0 -0
  83. {courant_dev-0.7.0 → courant_dev-0.7.1}/NOTICE +0 -0
  84. {courant_dev-0.7.0 → courant_dev-0.7.1}/courant/case/__init__.py +0 -0
  85. {courant_dev-0.7.0 → courant_dev-0.7.1}/courant/case/dictscan.py +0 -0
  86. {courant_dev-0.7.0 → courant_dev-0.7.1}/courant/case/schemes.py +0 -0
  87. {courant_dev-0.7.0 → courant_dev-0.7.1}/courant/cli/__init__.py +0 -0
  88. {courant_dev-0.7.0 → courant_dev-0.7.1}/courant/cli/commands/__init__.py +0 -0
  89. {courant_dev-0.7.0 → courant_dev-0.7.1}/courant/cli/commands/convergence.py +0 -0
  90. {courant_dev-0.7.0 → courant_dev-0.7.1}/courant/cli/commands/gate.py +0 -0
  91. {courant_dev-0.7.0 → courant_dev-0.7.1}/courant/cli/commands/live.py +0 -0
  92. {courant_dev-0.7.0 → courant_dev-0.7.1}/courant/cli/commands/mcp.py +0 -0
  93. {courant_dev-0.7.0 → courant_dev-0.7.1}/courant/cli/config.py +0 -0
  94. {courant_dev-0.7.0 → courant_dev-0.7.1}/courant/cli/guard.py +0 -0
  95. {courant_dev-0.7.0 → courant_dev-0.7.1}/courant/converge/__init__.py +0 -0
  96. {courant_dev-0.7.0 → courant_dev-0.7.1}/courant/converge/exact.py +0 -0
  97. {courant_dev-0.7.0 → courant_dev-0.7.1}/courant/converge/render.py +0 -0
  98. {courant_dev-0.7.0 → courant_dev-0.7.1}/courant/converge/scale.py +0 -0
  99. {courant_dev-0.7.0 → courant_dev-0.7.1}/courant/converge/sentences.py +0 -0
  100. {courant_dev-0.7.0 → courant_dev-0.7.1}/courant/converge/tables.py +0 -0
  101. {courant_dev-0.7.0 → courant_dev-0.7.1}/courant/ctest/__init__.py +0 -0
  102. {courant_dev-0.7.0 → courant_dev-0.7.1}/courant/ctest/build.py +0 -0
  103. {courant_dev-0.7.0 → courant_dev-0.7.1}/courant/ctest/data/judge-v0.labels.jsonl +0 -0
  104. {courant_dev-0.7.0 → courant_dev-0.7.1}/courant/ctest/data/judge-v0.tasks.jsonl.gz +0 -0
  105. {courant_dev-0.7.0 → courant_dev-0.7.1}/courant/ctest/judges/__init__.py +0 -0
  106. {courant_dev-0.7.0 → courant_dev-0.7.1}/courant/ctest/judges/courant.py +0 -0
  107. {courant_dev-0.7.0 → courant_dev-0.7.1}/courant/ctest/judges/llm.py +0 -0
  108. {courant_dev-0.7.0 → courant_dev-0.7.1}/courant/ctest/schema.py +0 -0
  109. {courant_dev-0.7.0 → courant_dev-0.7.1}/courant/ctest/score.py +0 -0
  110. {courant_dev-0.7.0 → courant_dev-0.7.1}/courant/ctest/splits.py +0 -0
  111. {courant_dev-0.7.0 → courant_dev-0.7.1}/courant/data/__init__.py +0 -0
  112. {courant_dev-0.7.0 → courant_dev-0.7.1}/courant/data/certified_codes.json +0 -0
  113. {courant_dev-0.7.0 → courant_dev-0.7.1}/courant/data/demo/icoFoam_cavity__cfl_blowup.case.json +0 -0
  114. {courant_dev-0.7.0 → courant_dev-0.7.1}/courant/data/demo/icoFoam_cavity__cfl_blowup.log.gz +0 -0
  115. {courant_dev-0.7.0 → courant_dev-0.7.1}/courant/data/demo/icoFoam_cavity__healthy.case.json +0 -0
  116. {courant_dev-0.7.0 → courant_dev-0.7.1}/courant/data/demo/icoFoam_cavity__healthy.log.gz +0 -0
  117. {courant_dev-0.7.0 → courant_dev-0.7.1}/courant/data/demo/icoFoam_cavity__transport_units.case.json +0 -0
  118. {courant_dev-0.7.0 → courant_dev-0.7.1}/courant/data/demo/icoFoam_cavity__transport_units.log.gz +0 -0
  119. {courant_dev-0.7.0 → courant_dev-0.7.1}/courant/data/demo/pitzDaily_fixed_budget.tar.gz +0 -0
  120. {courant_dev-0.7.0 → courant_dev-0.7.1}/courant/data/schemas/audit.1.json +0 -0
  121. {courant_dev-0.7.0 → courant_dev-0.7.1}/courant/data/schemas/cache.1.json +0 -0
  122. {courant_dev-0.7.0 → courant_dev-0.7.1}/courant/data/schemas/convergence.1.json +0 -0
  123. {courant_dev-0.7.0 → courant_dev-0.7.1}/courant/data/schemas/error-rates.1.json +0 -0
  124. {courant_dev-0.7.0 → courant_dev-0.7.1}/courant/data/schemas/preflight.1.json +0 -0
  125. {courant_dev-0.7.0 → courant_dev-0.7.1}/courant/data/schemas/record.1.json +0 -0
  126. {courant_dev-0.7.0 → courant_dev-0.7.1}/courant/data/schemas/release-signature.1.json +0 -0
  127. {courant_dev-0.7.0 → courant_dev-0.7.1}/courant/data/schemas/spec.1.json +0 -0
  128. {courant_dev-0.7.0 → courant_dev-0.7.1}/courant/data/schemas/support.1.json +0 -0
  129. {courant_dev-0.7.0 → courant_dev-0.7.1}/courant/data/schemas/verdict.1.json +0 -0
  130. {courant_dev-0.7.0 → courant_dev-0.7.1}/courant/data/schemas/verdict.2.json +0 -0
  131. {courant_dev-0.7.0 → courant_dev-0.7.1}/courant/diagnosis/__init__.py +0 -0
  132. {courant_dev-0.7.0 → courant_dev-0.7.1}/courant/diagnosis/deterministic.py +0 -0
  133. {courant_dev-0.7.0 → courant_dev-0.7.1}/courant/diagnosis/findings.py +0 -0
  134. {courant_dev-0.7.0 → courant_dev-0.7.1}/courant/diagnosis/kb_data.py +0 -0
  135. {courant_dev-0.7.0 → courant_dev-0.7.1}/courant/diagnosis/schema.py +0 -0
  136. {courant_dev-0.7.0 → courant_dev-0.7.1}/courant/events/__init__.py +0 -0
  137. {courant_dev-0.7.0 → courant_dev-0.7.1}/courant/events/core.py +0 -0
  138. {courant_dev-0.7.0 → courant_dev-0.7.1}/courant/events/diverged.py +0 -0
  139. {courant_dev-0.7.0 → courant_dev-0.7.1}/courant/events/time_markers.py +0 -0
  140. {courant_dev-0.7.0 → courant_dev-0.7.1}/courant/forks.py +0 -0
  141. {courant_dev-0.7.0 → courant_dev-0.7.1}/courant/gate/__init__.py +0 -0
  142. {courant_dev-0.7.0 → courant_dev-0.7.1}/courant/gate/config.py +0 -0
  143. {courant_dev-0.7.0 → courant_dev-0.7.1}/courant/live/__init__.py +0 -0
  144. {courant_dev-0.7.0 → courant_dev-0.7.1}/courant/live/watch.py +0 -0
  145. {courant_dev-0.7.0 → courant_dev-0.7.1}/courant/llm/__init__.py +0 -0
  146. {courant_dev-0.7.0 → courant_dev-0.7.1}/courant/llm/allowlist.py +0 -0
  147. {courant_dev-0.7.0 → courant_dev-0.7.1}/courant/llm/openrouter.py +0 -0
  148. {courant_dev-0.7.0 → courant_dev-0.7.1}/courant/llm/prices.py +0 -0
  149. {courant_dev-0.7.0 → courant_dev-0.7.1}/courant/llm/transport.py +0 -0
  150. {courant_dev-0.7.0 → courant_dev-0.7.1}/courant/mcp/__init__.py +0 -0
  151. {courant_dev-0.7.0 → courant_dev-0.7.1}/courant/record/__init__.py +0 -0
  152. {courant_dev-0.7.0 → courant_dev-0.7.1}/courant/record/filter.py +0 -0
  153. {courant_dev-0.7.0 → courant_dev-0.7.1}/courant/release.py +0 -0
  154. {courant_dev-0.7.0 → courant_dev-0.7.1}/courant/spec/__init__.py +0 -0
  155. {courant_dev-0.7.0 → courant_dev-0.7.1}/courant/spec/extract.py +0 -0
  156. {courant_dev-0.7.0 → courant_dev-0.7.1}/courant/taxonomy.py +0 -0
  157. {courant_dev-0.7.0 → courant_dev-0.7.1}/courant/verification/__init__.py +0 -0
  158. {courant_dev-0.7.0 → courant_dev-0.7.1}/courant/verification/bounding.py +0 -0
  159. {courant_dev-0.7.0 → courant_dev-0.7.1}/courant/verification/fields.py +0 -0
  160. {courant_dev-0.7.0 → courant_dev-0.7.1}/courant/verification/grade.py +0 -0
  161. {courant_dev-0.7.0 → courant_dev-0.7.1}/courant/verification/suite.py +0 -0
  162. {courant_dev-0.7.0 → courant_dev-0.7.1}/courant/verify/__init__.py +0 -0
  163. {courant_dev-0.7.0 → courant_dev-0.7.1}/courant/verify/about.py +0 -0
  164. {courant_dev-0.7.0 → courant_dev-0.7.1}/courant/verify/cache.py +0 -0
  165. {courant_dev-0.7.0 → courant_dev-0.7.1}/courant/verify/outcome.py +0 -0
  166. {courant_dev-0.7.0 → courant_dev-0.7.1}/courant/verify/policy.py +0 -0
  167. {courant_dev-0.7.0 → courant_dev-0.7.1}/courant/verify/schema.py +0 -0
  168. {courant_dev-0.7.0 → courant_dev-0.7.1}/courant/verify/support.py +0 -0
  169. {courant_dev-0.7.0 → courant_dev-0.7.1}/courant/watcher/__init__.py +0 -0
  170. {courant_dev-0.7.0 → courant_dev-0.7.1}/courant/watcher/exitcode.py +0 -0
  171. {courant_dev-0.7.0 → courant_dev-0.7.1}/courant/watcher/watcher.py +0 -0
  172. {courant_dev-0.7.0 → courant_dev-0.7.1}/courant_dev.egg-info/dependency_links.txt +0 -0
  173. {courant_dev-0.7.0 → courant_dev-0.7.1}/courant_dev.egg-info/entry_points.txt +0 -0
  174. {courant_dev-0.7.0 → courant_dev-0.7.1}/courant_dev.egg-info/requires.txt +0 -0
  175. {courant_dev-0.7.0 → courant_dev-0.7.1}/courant_dev.egg-info/top_level.txt +0 -0
  176. {courant_dev-0.7.0 → courant_dev-0.7.1}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: courant-dev
3
- Version: 0.7.0
3
+ Version: 0.7.1
4
4
  Summary: Courant: physics acceptance testing for machine-produced simulation. A read-only, deterministic gate that accepts, rejects or abstains on an OpenFOAM run, with the reasons it read.
5
5
  Author: Shivanshu Dwivedi
6
6
  Maintainer-email: Courant <hello@courant.dev>
@@ -59,8 +59,8 @@ engineer's) and the person who signs it. Without a task specification it decides
59
59
  OpenFOAM run is *valid*. With the task the run was asked to solve, it decides whether the run is
60
60
  *the problem that was asked*.
61
61
 
62
- Every verdict is `accept`, `reject` or `insufficient`, and every reason cites the file it read,
63
- the method, the threshold and the value. Deterministic code decides every verdict; no language
62
+ Every verdict is `accept`, `reject` or `insufficient`, and every reason cites the file it read
63
+ and the method, with the threshold and the value wherever its check has one. Deterministic code decides every verdict; no language
64
64
  model is in the verdict's path. Courant never edits a case, never runs a solver, and its checks
65
65
  never use the network.
66
66
 
@@ -74,10 +74,11 @@ never use the network.
74
74
 
75
75
  <sub>Two real OpenFOAM v2406 runs of the pitzDaily tutorial, from `certification/corpus/`. Run A
76
76
  is the tutorial as shipped. Run B is the same case with its pressure solver's tolerance loosened
77
- from 1e-06 to 0.01. The solver ends both with `End`, exit 0. Their residuals are read by the
78
- parser the verdict uses, and the verdicts are `courant verify --json` on the same two files:
79
- A is accepted (rule VER-5.6); B is rejected (rule VER-5.4), first reason
80
- `residual.not_converged`.</sub>
77
+ from 1e-06 to 0.01, its relative tolerance from 0.1 to 0.3, and its
78
+ iterations capped at 5 (`maxIter 5`). The solver ends both with
79
+ `End`, exit 0. Their residuals are read by the parser the verdict uses, and the verdicts are
80
+ `courant verify --json` on the same two files: A is accepted (rule VER-5.6); B is rejected
81
+ (rule VER-5.4), first reason `residual.not_converged`.</sub>
81
82
 
82
83
  ## What it catches
83
84
 
@@ -192,7 +193,7 @@ The solver exited normally on this run. The verdict says why it cannot be accept
192
193
  not checked. The exit code is the verdict's: `accept` 0, `reject` 2, `insufficient` 3, and 4 for
193
194
  an input that cannot be read. `--json` prints the same verdict as canonical JSON
194
195
  (`courant.verdict/2`), `--html` and `--report md` as a report, and `--pack` writes an evidence
195
- pack that `--check-pack` re-derives from its inputs. `--spec` with `--spec-sha256` adds the task:
196
+ pack that `--check-pack` re-derives from its inputs (exit 5 when it does not). `--spec` with `--spec-sha256` adds the task:
196
197
  every value the specification names is checked against the case
197
198
  ([Getting started](https://github.com/courantdev/courant/blob/main/docs/GETTING-STARTED.md),
198
199
  section 2b).
@@ -201,7 +202,8 @@ section 2b).
201
202
 
202
203
  Deterministic code decides every verdict, number and grade. A language model may draft prose,
203
204
  and may extract a task specification that is shown, hashed and can only lower a verdict to
204
- `insufficient`; nothing else, and nothing a model writes is in the verdict's path. Courant never
205
+ `insufficient`; nothing else a model writes reaches the verdict, and no model is called on its
206
+ path. Courant never
205
207
  edits a case, never runs a solver, and its checks never use the network. A pull request that
206
208
  lets a model, a threshold nobody recorded or the network into the verdict's path is not merged
207
209
  ([CONTRIBUTING.md](https://github.com/courantdev/courant/blob/main/CONTRIBUTING.md)).
@@ -264,7 +266,7 @@ run, and fails the check unless every run is accepted. Its logic is `courant gat
264
266
  the same way on any CI system.
265
267
 
266
268
  ```yaml
267
- - uses: courantdev/courant/.github/actions/courant-gate@v0.7.0
269
+ - uses: courantdev/courant/.github/actions/courant-gate@v0.7.1
268
270
  with:
269
271
  paths: runs/*.log.gz
270
272
  spec: task/spec.json
@@ -279,13 +281,14 @@ run, which any CI system shows.
279
281
  | Command | What it does |
280
282
  |---|---|
281
283
  | `courant verify <case or log>` | `accept`, `reject` or `insufficient` (exit 0, 2 or 3; `courant.verdict/2`), with the basis it was judged on and what was not checked. `--spec` with `--spec-sha256` checks every value a task specification names against the case. `--html`, `--report md`, `--json`, `--pack` and `--check-pack` (an evidence pack anyone can re-derive), `--batch` with `--junit`, `--record`, `--about` |
282
- | `courant spec init / hash / check / lock / confirm / extract` | Draft a task specification from a reference case, lock it by hash, and check a case against it before or after its run |
284
+ | `courant spec init / hash / check / lock / confirm / extract` | Draft a task specification from a reference case, lock it by hash, and check a case against it before or after its run. `extract` (a model drafting a specification from the task's text) exits 4 and contacts nothing until a model is measured for extraction |
283
285
  | `courant gate` | The CI check, and the [GitHub Action](https://github.com/courantdev/courant/tree/main/.github/actions/courant-gate): verify the runs a repository names, one summary row per run, one evidence pack per run |
284
286
  | `courant preflight <case>` | A broken setup, caught before the solver spends anything |
285
287
  | `courant convergence <case>` | Where the monitored answer stopped changing, and the iterations, wall clock and core-hours after it |
286
288
  | `courant watch <case>` | A read-only live advisory while the solver runs, with `--exit-on-fail` for job scripts |
287
289
  | `courant audit <dir>` | What a folder of runs cost, and how much of it bought nothing |
288
- | `courant test run --judge …` | The Courant Test: score any judge, including an AI model, on real OpenFOAM runs |
290
+ | `courant precheck <dir>` | One offline archive of a folder's evidence packs and a summary, to send instead of the cases: no log, deck, mesh or field file unless `--include-logs`, run names replaced with `--redact-paths`. `--check` verifies an archive you received |
291
+ | `courant test run --judge …` | The Courant Test: score a judge on real OpenFOAM runs. A model judge (`llm:`) stops with exit 3 and contacts nothing until that model is measured for judging (see NETWORK.md) |
289
292
  | `courant mcp` | The same tools for any AI agent over MCP, read-only and confined to the directories named; `score_agent_output` tells an agent, before it reports, whether its run is a silent error |
290
293
  | `courant doctor`, `courant update`, `courant version` | Diagnostics and a support bundle you send yourself; a signed update of the binary |
291
294
 
@@ -300,10 +303,11 @@ verify a run. What it reads when it is there:
300
303
  | Setting | What it does |
301
304
  |---|---|
302
305
  | `courant.toml` | For `courant gate` and `courant verify --batch`: `fail-on`, `pack-store`, `courant-version`, and `[[run]]` tables of `paths`, `outputs`, `spec` and `spec-sha256`. An unknown key is an error that names it |
303
- | `COURANT_GATE_*` | Every `courant gate` option as an environment variable; the Action sets them from its inputs |
304
- | `COURANT_CACHE_DIR` | Where `--batch` keeps its verdict cache (else `~/.cache/courant/verdicts`); off by default where `CI` is set |
306
+ | `COURANT_GATE_*` | Every `courant gate` option but `--jobs`, `--cache` and `--debug` as an environment variable; the Action sets them from its inputs |
307
+ | `COURANT_CACHE_DIR` | Where `courant verify --batch` and `courant gate --cache` keep the verdict cache (else `$XDG_CACHE_HOME/courant/verdicts`, else `~/.cache/courant/verdicts`); for `--batch`, off by default where `CI` is set; for `courant gate`, off unless `--cache` |
305
308
  | `COURANT_DEBUG=1` | Print the traceback of an internal error, as `--debug` does |
306
309
  | `COURANT_REQUIRE_SIGNATURE=1` | The installer refuses a binary whose signature it cannot check |
310
+ | `COURANT_SKIP_VERIFY=1` | On a machine with neither `sha256sum` nor `shasum`, the installer installs the binary without comparing its SHA-256 (without it, it refuses) |
307
311
  | `OPENROUTER_API_KEY`, `ANTHROPIC_API_KEY` | Used only by the commands whose purpose is a model call you name, and `courant doctor` says whether one is set; a paid model is refused unless `COURANT_ALLOW_PAID_LLM=1` is set. A key may also sit in a `.env` file; `COURANT_NO_DOTENV=1` ignores it |
308
312
 
309
313
  A fixture repository's `courant.toml`, whose check fails on purpose:
@@ -343,12 +347,14 @@ the rates that ship with each version):
343
347
 
344
348
  - **Detection:** 31 of 31 real runs judged correctly. 0 of 23 wrong results accepted and 0 of 8
345
349
  good results rejected.
346
- - **The wrong problem:** on 20 real runs with the right physics and a wrong input (inlet
347
- doubled, viscosity tripled, gravity rotated, geometry scaled, end time cut), the verdict
350
+ - **The wrong problem:** on 20 real runs with the right physics and a wrong input (among them
351
+ inlet or lid speed doubled, viscosity tripled, gravity rotated, geometry scaled, end time cut,
352
+ mesh coarsened, turbulence model swapped), the verdict
348
353
  without a specification rejected 8 of 20; against the task specification, 20 of 20.
349
354
  - **Before the run:** preflight caught 8 of 23 broken setups, and flagged 0 of 8 good ones.
350
- - **Fixed budgets:** where the answer settled, 1,023 of 1,999 iterations (51.2%, pitzDaily)
351
- and 547 of 999 (54.8%, T3A) came after it.
355
+ - **Fixed budgets:** on one run each of two tutorials, made to run a fixed iteration budget
356
+ (their `residualControl` removed), 1,023 of 1,999 iterations (51.2%, pitzDaily) and 547 of
357
+ 999 (54.8%, T3A) came after the monitored answer settled.
352
358
  - **Reproducible:** evidence packs re-derive byte for byte, 31 of 31.
353
359
  - **Beside frontier models:** on the same 420 real runs, given the task's specification, Courant
354
360
  accepted 0 of 264 wrong runs; Claude Opus 5.5 accepted 69 of 264, Claude Sonnet 5.5 76 of 263
@@ -356,7 +362,8 @@ the rates that ship with each version):
356
362
  - **At scale:** on 1,827 real runs, 0 of 609 faulted and 0 of 609 wrong-problem runs were
357
363
  accepted with the task's specification.
358
364
 
359
- Every figure, its interval and its pre-registered bar, including the one that missed, are in
365
+ Every figure, its interval and its pre-registered bar, including the two that missed (faulted
366
+ runs accepted blind, 3 of 609; right runs rejected, 34 of 609), are in
360
367
  [RESULTS.md](https://github.com/courantdev/courant/blob/main/RESULTS.md).
361
368
 
362
369
  "Certified" here means measured against a real solver, with the error rate published. It is not
@@ -371,6 +378,7 @@ courant/
371
378
  gate/ courant gate, behind the GitHub Action
372
379
  case/ an OpenFOAM case as the solver read it: dictionaries, mesh, regime
373
380
  watcher/ the log parser: solver output to events
381
+ events/ the event types the parser emits
374
382
  verification/ the physics checks and the grade
375
383
  diagnosis/ findings and probable causes
376
384
  converge/ where the answer stopped changing
@@ -7,8 +7,8 @@ engineer's) and the person who signs it. Without a task specification it decides
7
7
  OpenFOAM run is *valid*. With the task the run was asked to solve, it decides whether the run is
8
8
  *the problem that was asked*.
9
9
 
10
- Every verdict is `accept`, `reject` or `insufficient`, and every reason cites the file it read,
11
- the method, the threshold and the value. Deterministic code decides every verdict; no language
10
+ Every verdict is `accept`, `reject` or `insufficient`, and every reason cites the file it read
11
+ and the method, with the threshold and the value wherever its check has one. Deterministic code decides every verdict; no language
12
12
  model is in the verdict's path. Courant never edits a case, never runs a solver, and its checks
13
13
  never use the network.
14
14
 
@@ -22,10 +22,11 @@ never use the network.
22
22
 
23
23
  <sub>Two real OpenFOAM v2406 runs of the pitzDaily tutorial, from `certification/corpus/`. Run A
24
24
  is the tutorial as shipped. Run B is the same case with its pressure solver's tolerance loosened
25
- from 1e-06 to 0.01. The solver ends both with `End`, exit 0. Their residuals are read by the
26
- parser the verdict uses, and the verdicts are `courant verify --json` on the same two files:
27
- A is accepted (rule VER-5.6); B is rejected (rule VER-5.4), first reason
28
- `residual.not_converged`.</sub>
25
+ from 1e-06 to 0.01, its relative tolerance from 0.1 to 0.3, and its
26
+ iterations capped at 5 (`maxIter 5`). The solver ends both with
27
+ `End`, exit 0. Their residuals are read by the parser the verdict uses, and the verdicts are
28
+ `courant verify --json` on the same two files: A is accepted (rule VER-5.6); B is rejected
29
+ (rule VER-5.4), first reason `residual.not_converged`.</sub>
29
30
 
30
31
  ## What it catches
31
32
 
@@ -140,7 +141,7 @@ The solver exited normally on this run. The verdict says why it cannot be accept
140
141
  not checked. The exit code is the verdict's: `accept` 0, `reject` 2, `insufficient` 3, and 4 for
141
142
  an input that cannot be read. `--json` prints the same verdict as canonical JSON
142
143
  (`courant.verdict/2`), `--html` and `--report md` as a report, and `--pack` writes an evidence
143
- pack that `--check-pack` re-derives from its inputs. `--spec` with `--spec-sha256` adds the task:
144
+ pack that `--check-pack` re-derives from its inputs (exit 5 when it does not). `--spec` with `--spec-sha256` adds the task:
144
145
  every value the specification names is checked against the case
145
146
  ([Getting started](https://github.com/courantdev/courant/blob/main/docs/GETTING-STARTED.md),
146
147
  section 2b).
@@ -149,7 +150,8 @@ section 2b).
149
150
 
150
151
  Deterministic code decides every verdict, number and grade. A language model may draft prose,
151
152
  and may extract a task specification that is shown, hashed and can only lower a verdict to
152
- `insufficient`; nothing else, and nothing a model writes is in the verdict's path. Courant never
153
+ `insufficient`; nothing else a model writes reaches the verdict, and no model is called on its
154
+ path. Courant never
153
155
  edits a case, never runs a solver, and its checks never use the network. A pull request that
154
156
  lets a model, a threshold nobody recorded or the network into the verdict's path is not merged
155
157
  ([CONTRIBUTING.md](https://github.com/courantdev/courant/blob/main/CONTRIBUTING.md)).
@@ -212,7 +214,7 @@ run, and fails the check unless every run is accepted. Its logic is `courant gat
212
214
  the same way on any CI system.
213
215
 
214
216
  ```yaml
215
- - uses: courantdev/courant/.github/actions/courant-gate@v0.7.0
217
+ - uses: courantdev/courant/.github/actions/courant-gate@v0.7.1
216
218
  with:
217
219
  paths: runs/*.log.gz
218
220
  spec: task/spec.json
@@ -227,13 +229,14 @@ run, which any CI system shows.
227
229
  | Command | What it does |
228
230
  |---|---|
229
231
  | `courant verify <case or log>` | `accept`, `reject` or `insufficient` (exit 0, 2 or 3; `courant.verdict/2`), with the basis it was judged on and what was not checked. `--spec` with `--spec-sha256` checks every value a task specification names against the case. `--html`, `--report md`, `--json`, `--pack` and `--check-pack` (an evidence pack anyone can re-derive), `--batch` with `--junit`, `--record`, `--about` |
230
- | `courant spec init / hash / check / lock / confirm / extract` | Draft a task specification from a reference case, lock it by hash, and check a case against it before or after its run |
232
+ | `courant spec init / hash / check / lock / confirm / extract` | Draft a task specification from a reference case, lock it by hash, and check a case against it before or after its run. `extract` (a model drafting a specification from the task's text) exits 4 and contacts nothing until a model is measured for extraction |
231
233
  | `courant gate` | The CI check, and the [GitHub Action](https://github.com/courantdev/courant/tree/main/.github/actions/courant-gate): verify the runs a repository names, one summary row per run, one evidence pack per run |
232
234
  | `courant preflight <case>` | A broken setup, caught before the solver spends anything |
233
235
  | `courant convergence <case>` | Where the monitored answer stopped changing, and the iterations, wall clock and core-hours after it |
234
236
  | `courant watch <case>` | A read-only live advisory while the solver runs, with `--exit-on-fail` for job scripts |
235
237
  | `courant audit <dir>` | What a folder of runs cost, and how much of it bought nothing |
236
- | `courant test run --judge …` | The Courant Test: score any judge, including an AI model, on real OpenFOAM runs |
238
+ | `courant precheck <dir>` | One offline archive of a folder's evidence packs and a summary, to send instead of the cases: no log, deck, mesh or field file unless `--include-logs`, run names replaced with `--redact-paths`. `--check` verifies an archive you received |
239
+ | `courant test run --judge …` | The Courant Test: score a judge on real OpenFOAM runs. A model judge (`llm:`) stops with exit 3 and contacts nothing until that model is measured for judging (see NETWORK.md) |
237
240
  | `courant mcp` | The same tools for any AI agent over MCP, read-only and confined to the directories named; `score_agent_output` tells an agent, before it reports, whether its run is a silent error |
238
241
  | `courant doctor`, `courant update`, `courant version` | Diagnostics and a support bundle you send yourself; a signed update of the binary |
239
242
 
@@ -248,10 +251,11 @@ verify a run. What it reads when it is there:
248
251
  | Setting | What it does |
249
252
  |---|---|
250
253
  | `courant.toml` | For `courant gate` and `courant verify --batch`: `fail-on`, `pack-store`, `courant-version`, and `[[run]]` tables of `paths`, `outputs`, `spec` and `spec-sha256`. An unknown key is an error that names it |
251
- | `COURANT_GATE_*` | Every `courant gate` option as an environment variable; the Action sets them from its inputs |
252
- | `COURANT_CACHE_DIR` | Where `--batch` keeps its verdict cache (else `~/.cache/courant/verdicts`); off by default where `CI` is set |
254
+ | `COURANT_GATE_*` | Every `courant gate` option but `--jobs`, `--cache` and `--debug` as an environment variable; the Action sets them from its inputs |
255
+ | `COURANT_CACHE_DIR` | Where `courant verify --batch` and `courant gate --cache` keep the verdict cache (else `$XDG_CACHE_HOME/courant/verdicts`, else `~/.cache/courant/verdicts`); for `--batch`, off by default where `CI` is set; for `courant gate`, off unless `--cache` |
253
256
  | `COURANT_DEBUG=1` | Print the traceback of an internal error, as `--debug` does |
254
257
  | `COURANT_REQUIRE_SIGNATURE=1` | The installer refuses a binary whose signature it cannot check |
258
+ | `COURANT_SKIP_VERIFY=1` | On a machine with neither `sha256sum` nor `shasum`, the installer installs the binary without comparing its SHA-256 (without it, it refuses) |
255
259
  | `OPENROUTER_API_KEY`, `ANTHROPIC_API_KEY` | Used only by the commands whose purpose is a model call you name, and `courant doctor` says whether one is set; a paid model is refused unless `COURANT_ALLOW_PAID_LLM=1` is set. A key may also sit in a `.env` file; `COURANT_NO_DOTENV=1` ignores it |
256
260
 
257
261
  A fixture repository's `courant.toml`, whose check fails on purpose:
@@ -291,12 +295,14 @@ the rates that ship with each version):
291
295
 
292
296
  - **Detection:** 31 of 31 real runs judged correctly. 0 of 23 wrong results accepted and 0 of 8
293
297
  good results rejected.
294
- - **The wrong problem:** on 20 real runs with the right physics and a wrong input (inlet
295
- doubled, viscosity tripled, gravity rotated, geometry scaled, end time cut), the verdict
298
+ - **The wrong problem:** on 20 real runs with the right physics and a wrong input (among them
299
+ inlet or lid speed doubled, viscosity tripled, gravity rotated, geometry scaled, end time cut,
300
+ mesh coarsened, turbulence model swapped), the verdict
296
301
  without a specification rejected 8 of 20; against the task specification, 20 of 20.
297
302
  - **Before the run:** preflight caught 8 of 23 broken setups, and flagged 0 of 8 good ones.
298
- - **Fixed budgets:** where the answer settled, 1,023 of 1,999 iterations (51.2%, pitzDaily)
299
- and 547 of 999 (54.8%, T3A) came after it.
303
+ - **Fixed budgets:** on one run each of two tutorials, made to run a fixed iteration budget
304
+ (their `residualControl` removed), 1,023 of 1,999 iterations (51.2%, pitzDaily) and 547 of
305
+ 999 (54.8%, T3A) came after the monitored answer settled.
300
306
  - **Reproducible:** evidence packs re-derive byte for byte, 31 of 31.
301
307
  - **Beside frontier models:** on the same 420 real runs, given the task's specification, Courant
302
308
  accepted 0 of 264 wrong runs; Claude Opus 5.5 accepted 69 of 264, Claude Sonnet 5.5 76 of 263
@@ -304,7 +310,8 @@ the rates that ship with each version):
304
310
  - **At scale:** on 1,827 real runs, 0 of 609 faulted and 0 of 609 wrong-problem runs were
305
311
  accepted with the task's specification.
306
312
 
307
- Every figure, its interval and its pre-registered bar, including the one that missed, are in
313
+ Every figure, its interval and its pre-registered bar, including the two that missed (faulted
314
+ runs accepted blind, 3 of 609; right runs rejected, 34 of 609), are in
308
315
  [RESULTS.md](https://github.com/courantdev/courant/blob/main/RESULTS.md).
309
316
 
310
317
  "Certified" here means measured against a real solver, with the error rate published. It is not
@@ -319,6 +326,7 @@ courant/
319
326
  gate/ courant gate, behind the GitHub Action
320
327
  case/ an OpenFOAM case as the solver read it: dictionaries, mesh, regime
321
328
  watcher/ the log parser: solver output to events
329
+ events/ the event types the parser emits
322
330
  verification/ the physics checks and the grade
323
331
  diagnosis/ findings and probable causes
324
332
  converge/ where the answer stopped changing
@@ -6,7 +6,7 @@ task specification it decides whether a run is valid; with one, whether it is th
6
6
  was asked. First integration: OpenFOAM.
7
7
  """
8
8
 
9
- __version__ = "0.7.0"
9
+ __version__ = "0.7.1"
10
10
 
11
11
  #: The public repository of the open-source gate (H-DISTRIBUTION, 11 Oct 2026): its source, its
12
12
  #: releases (the signed binaries, the wheel and the installer) and its GitHub Action.