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.
- {courant_dev-0.7.0/courant_dev.egg-info → courant_dev-0.7.1}/PKG-INFO +27 -19
- {courant_dev-0.7.0 → courant_dev-0.7.1}/README.md +26 -18
- {courant_dev-0.7.0 → courant_dev-0.7.1}/courant/__init__.py +1 -1
- {courant_dev-0.7.0 → courant_dev-0.7.1}/courant/case/_foam_reader.py +534 -61
- {courant_dev-0.7.0 → courant_dev-0.7.1}/courant/case/config.py +41 -5
- courant_dev-0.7.1/courant/case/foamguard.py +470 -0
- {courant_dev-0.7.0 → courant_dev-0.7.1}/courant/case/mesh.py +115 -36
- {courant_dev-0.7.0 → courant_dev-0.7.1}/courant/case/motion.py +3 -0
- {courant_dev-0.7.0 → courant_dev-0.7.1}/courant/case/polymesh.py +314 -34
- {courant_dev-0.7.0 → courant_dev-0.7.1}/courant/case/reads.py +27 -0
- {courant_dev-0.7.0 → courant_dev-0.7.1}/courant/case/regime.py +3 -2
- {courant_dev-0.7.0 → courant_dev-0.7.1}/courant/case/reynolds.py +9 -7
- {courant_dev-0.7.0 → courant_dev-0.7.1}/courant/case/solvers.py +18 -1
- {courant_dev-0.7.0 → courant_dev-0.7.1}/courant/case/viscosity.py +36 -14
- {courant_dev-0.7.0 → courant_dev-0.7.1}/courant/case/wordre.py +9 -7
- {courant_dev-0.7.0 → courant_dev-0.7.1}/courant/cli/commands/audit.py +5 -1
- {courant_dev-0.7.0 → courant_dev-0.7.1}/courant/cli/commands/ctest.py +2 -1
- {courant_dev-0.7.0 → courant_dev-0.7.1}/courant/cli/commands/doctor.py +3 -2
- courant_dev-0.7.1/courant/cli/commands/precheck.py +168 -0
- {courant_dev-0.7.0 → courant_dev-0.7.1}/courant/cli/commands/preflight.py +1 -1
- {courant_dev-0.7.0 → courant_dev-0.7.1}/courant/cli/commands/spec.py +30 -9
- {courant_dev-0.7.0 → courant_dev-0.7.1}/courant/cli/commands/tour.py +3 -2
- {courant_dev-0.7.0 → courant_dev-0.7.1}/courant/cli/commands/update.py +5 -9
- {courant_dev-0.7.0 → courant_dev-0.7.1}/courant/cli/commands/verify.py +45 -6
- {courant_dev-0.7.0 → courant_dev-0.7.1}/courant/cli/main.py +9 -5
- {courant_dev-0.7.0 → courant_dev-0.7.1}/courant/cli/tail.py +101 -17
- {courant_dev-0.7.0 → courant_dev-0.7.1}/courant/config.py +17 -5
- {courant_dev-0.7.0 → courant_dev-0.7.1}/courant/converge/assess.py +27 -16
- {courant_dev-0.7.0 → courant_dev-0.7.1}/courant/converge/series.py +3 -1
- {courant_dev-0.7.0 → courant_dev-0.7.1}/courant/converge/steady.py +37 -2
- {courant_dev-0.7.0 → courant_dev-0.7.1}/courant/converge/transient.py +4 -2
- {courant_dev-0.7.0 → courant_dev-0.7.1}/courant/ctest/judges/constant.py +4 -2
- {courant_dev-0.7.0 → courant_dev-0.7.1}/courant/ctest/judges/llm_spec.py +2 -1
- {courant_dev-0.7.0 → courant_dev-0.7.1}/courant/ctest/run.py +4 -1
- {courant_dev-0.7.0 → courant_dev-0.7.1}/courant/data/certification.json +1 -1
- {courant_dev-0.7.0 → courant_dev-0.7.1}/courant/diagnosis/bundle.py +15 -9
- {courant_dev-0.7.0 → courant_dev-0.7.1}/courant/diagnosis/checkers.py +47 -20
- {courant_dev-0.7.0 → courant_dev-0.7.1}/courant/diagnosis/kb.py +37 -2
- {courant_dev-0.7.0 → courant_dev-0.7.1}/courant/diagnosis/llm.py +6 -6
- {courant_dev-0.7.0 → courant_dev-0.7.1}/courant/diagnosis/redact.py +32 -14
- {courant_dev-0.7.0 → courant_dev-0.7.1}/courant/gate/run.py +18 -4
- {courant_dev-0.7.0 → courant_dev-0.7.1}/courant/live/engine.py +6 -2
- {courant_dev-0.7.0 → courant_dev-0.7.1}/courant/llm/anthropic.py +7 -3
- {courant_dev-0.7.0 → courant_dev-0.7.1}/courant/llm/budget.py +3 -2
- {courant_dev-0.7.0 → courant_dev-0.7.1}/courant/llm/door.py +52 -29
- {courant_dev-0.7.0 → courant_dev-0.7.1}/courant/llm/errors.py +13 -8
- {courant_dev-0.7.0 → courant_dev-0.7.1}/courant/llm/policy.py +3 -2
- {courant_dev-0.7.0 → courant_dev-0.7.1}/courant/mcp/server.py +22 -5
- {courant_dev-0.7.0 → courant_dev-0.7.1}/courant/mcp/tools.py +11 -4
- {courant_dev-0.7.0 → courant_dev-0.7.1}/courant/record/record.py +7 -1
- {courant_dev-0.7.0 → courant_dev-0.7.1}/courant/signing.py +17 -4
- {courant_dev-0.7.0 → courant_dev-0.7.1}/courant/spec/as_run.py +227 -24
- {courant_dev-0.7.0 → courant_dev-0.7.1}/courant/spec/check.py +86 -25
- {courant_dev-0.7.0 → courant_dev-0.7.1}/courant/spec/deck.py +428 -41
- {courant_dev-0.7.0 → courant_dev-0.7.1}/courant/spec/impossible.py +2 -1
- {courant_dev-0.7.0 → courant_dev-0.7.1}/courant/spec/model.py +8 -3
- courant_dev-0.7.1/courant/verification/_flow_heat.py +424 -0
- {courant_dev-0.7.0 → courant_dev-0.7.1}/courant/verification/_fluid_reader.py +21 -7
- {courant_dev-0.7.0 → courant_dev-0.7.1}/courant/verification/_heat_reader.py +94 -38
- {courant_dev-0.7.0 → courant_dev-0.7.1}/courant/verification/checks.py +57 -13
- {courant_dev-0.7.0 → courant_dev-0.7.1}/courant/verification/convergence.py +34 -13
- {courant_dev-0.7.0 → courant_dev-0.7.1}/courant/verify/audit.py +2 -2
- {courant_dev-0.7.0 → courant_dev-0.7.1}/courant/verify/batch.py +94 -10
- {courant_dev-0.7.0 → courant_dev-0.7.1}/courant/verify/checks.py +129 -2
- {courant_dev-0.7.0 → courant_dev-0.7.1}/courant/verify/html.py +7 -5
- courant_dev-0.7.1/courant/verify/ingest.py +271 -0
- {courant_dev-0.7.0 → courant_dev-0.7.1}/courant/verify/junit.py +31 -3
- {courant_dev-0.7.0 → courant_dev-0.7.1}/courant/verify/pack.py +94 -27
- {courant_dev-0.7.0 → courant_dev-0.7.1}/courant/verify/pipeline.py +56 -15
- courant_dev-0.7.1/courant/verify/precheck.py +752 -0
- {courant_dev-0.7.0 → courant_dev-0.7.1}/courant/verify/preflight.py +41 -11
- {courant_dev-0.7.0 → courant_dev-0.7.1}/courant/verify/render.py +40 -13
- {courant_dev-0.7.0 → courant_dev-0.7.1}/courant/verify/sentences.py +45 -0
- {courant_dev-0.7.0 → courant_dev-0.7.1}/courant/verify/verdict2.py +5 -5
- {courant_dev-0.7.0 → courant_dev-0.7.1}/courant/watcher/anomaly.py +3 -2
- {courant_dev-0.7.0 → courant_dev-0.7.1}/courant/watcher/parser.py +22 -5
- {courant_dev-0.7.0 → courant_dev-0.7.1/courant_dev.egg-info}/PKG-INFO +27 -19
- {courant_dev-0.7.0 → courant_dev-0.7.1}/courant_dev.egg-info/SOURCES.txt +4 -0
- {courant_dev-0.7.0 → courant_dev-0.7.1}/pyproject.toml +3 -0
- courant_dev-0.7.0/courant/verify/ingest.py +0 -155
- {courant_dev-0.7.0 → courant_dev-0.7.1}/LICENSE +0 -0
- {courant_dev-0.7.0 → courant_dev-0.7.1}/MANIFEST.in +0 -0
- {courant_dev-0.7.0 → courant_dev-0.7.1}/NOTICE +0 -0
- {courant_dev-0.7.0 → courant_dev-0.7.1}/courant/case/__init__.py +0 -0
- {courant_dev-0.7.0 → courant_dev-0.7.1}/courant/case/dictscan.py +0 -0
- {courant_dev-0.7.0 → courant_dev-0.7.1}/courant/case/schemes.py +0 -0
- {courant_dev-0.7.0 → courant_dev-0.7.1}/courant/cli/__init__.py +0 -0
- {courant_dev-0.7.0 → courant_dev-0.7.1}/courant/cli/commands/__init__.py +0 -0
- {courant_dev-0.7.0 → courant_dev-0.7.1}/courant/cli/commands/convergence.py +0 -0
- {courant_dev-0.7.0 → courant_dev-0.7.1}/courant/cli/commands/gate.py +0 -0
- {courant_dev-0.7.0 → courant_dev-0.7.1}/courant/cli/commands/live.py +0 -0
- {courant_dev-0.7.0 → courant_dev-0.7.1}/courant/cli/commands/mcp.py +0 -0
- {courant_dev-0.7.0 → courant_dev-0.7.1}/courant/cli/config.py +0 -0
- {courant_dev-0.7.0 → courant_dev-0.7.1}/courant/cli/guard.py +0 -0
- {courant_dev-0.7.0 → courant_dev-0.7.1}/courant/converge/__init__.py +0 -0
- {courant_dev-0.7.0 → courant_dev-0.7.1}/courant/converge/exact.py +0 -0
- {courant_dev-0.7.0 → courant_dev-0.7.1}/courant/converge/render.py +0 -0
- {courant_dev-0.7.0 → courant_dev-0.7.1}/courant/converge/scale.py +0 -0
- {courant_dev-0.7.0 → courant_dev-0.7.1}/courant/converge/sentences.py +0 -0
- {courant_dev-0.7.0 → courant_dev-0.7.1}/courant/converge/tables.py +0 -0
- {courant_dev-0.7.0 → courant_dev-0.7.1}/courant/ctest/__init__.py +0 -0
- {courant_dev-0.7.0 → courant_dev-0.7.1}/courant/ctest/build.py +0 -0
- {courant_dev-0.7.0 → courant_dev-0.7.1}/courant/ctest/data/judge-v0.labels.jsonl +0 -0
- {courant_dev-0.7.0 → courant_dev-0.7.1}/courant/ctest/data/judge-v0.tasks.jsonl.gz +0 -0
- {courant_dev-0.7.0 → courant_dev-0.7.1}/courant/ctest/judges/__init__.py +0 -0
- {courant_dev-0.7.0 → courant_dev-0.7.1}/courant/ctest/judges/courant.py +0 -0
- {courant_dev-0.7.0 → courant_dev-0.7.1}/courant/ctest/judges/llm.py +0 -0
- {courant_dev-0.7.0 → courant_dev-0.7.1}/courant/ctest/schema.py +0 -0
- {courant_dev-0.7.0 → courant_dev-0.7.1}/courant/ctest/score.py +0 -0
- {courant_dev-0.7.0 → courant_dev-0.7.1}/courant/ctest/splits.py +0 -0
- {courant_dev-0.7.0 → courant_dev-0.7.1}/courant/data/__init__.py +0 -0
- {courant_dev-0.7.0 → courant_dev-0.7.1}/courant/data/certified_codes.json +0 -0
- {courant_dev-0.7.0 → courant_dev-0.7.1}/courant/data/demo/icoFoam_cavity__cfl_blowup.case.json +0 -0
- {courant_dev-0.7.0 → courant_dev-0.7.1}/courant/data/demo/icoFoam_cavity__cfl_blowup.log.gz +0 -0
- {courant_dev-0.7.0 → courant_dev-0.7.1}/courant/data/demo/icoFoam_cavity__healthy.case.json +0 -0
- {courant_dev-0.7.0 → courant_dev-0.7.1}/courant/data/demo/icoFoam_cavity__healthy.log.gz +0 -0
- {courant_dev-0.7.0 → courant_dev-0.7.1}/courant/data/demo/icoFoam_cavity__transport_units.case.json +0 -0
- {courant_dev-0.7.0 → courant_dev-0.7.1}/courant/data/demo/icoFoam_cavity__transport_units.log.gz +0 -0
- {courant_dev-0.7.0 → courant_dev-0.7.1}/courant/data/demo/pitzDaily_fixed_budget.tar.gz +0 -0
- {courant_dev-0.7.0 → courant_dev-0.7.1}/courant/data/schemas/audit.1.json +0 -0
- {courant_dev-0.7.0 → courant_dev-0.7.1}/courant/data/schemas/cache.1.json +0 -0
- {courant_dev-0.7.0 → courant_dev-0.7.1}/courant/data/schemas/convergence.1.json +0 -0
- {courant_dev-0.7.0 → courant_dev-0.7.1}/courant/data/schemas/error-rates.1.json +0 -0
- {courant_dev-0.7.0 → courant_dev-0.7.1}/courant/data/schemas/preflight.1.json +0 -0
- {courant_dev-0.7.0 → courant_dev-0.7.1}/courant/data/schemas/record.1.json +0 -0
- {courant_dev-0.7.0 → courant_dev-0.7.1}/courant/data/schemas/release-signature.1.json +0 -0
- {courant_dev-0.7.0 → courant_dev-0.7.1}/courant/data/schemas/spec.1.json +0 -0
- {courant_dev-0.7.0 → courant_dev-0.7.1}/courant/data/schemas/support.1.json +0 -0
- {courant_dev-0.7.0 → courant_dev-0.7.1}/courant/data/schemas/verdict.1.json +0 -0
- {courant_dev-0.7.0 → courant_dev-0.7.1}/courant/data/schemas/verdict.2.json +0 -0
- {courant_dev-0.7.0 → courant_dev-0.7.1}/courant/diagnosis/__init__.py +0 -0
- {courant_dev-0.7.0 → courant_dev-0.7.1}/courant/diagnosis/deterministic.py +0 -0
- {courant_dev-0.7.0 → courant_dev-0.7.1}/courant/diagnosis/findings.py +0 -0
- {courant_dev-0.7.0 → courant_dev-0.7.1}/courant/diagnosis/kb_data.py +0 -0
- {courant_dev-0.7.0 → courant_dev-0.7.1}/courant/diagnosis/schema.py +0 -0
- {courant_dev-0.7.0 → courant_dev-0.7.1}/courant/events/__init__.py +0 -0
- {courant_dev-0.7.0 → courant_dev-0.7.1}/courant/events/core.py +0 -0
- {courant_dev-0.7.0 → courant_dev-0.7.1}/courant/events/diverged.py +0 -0
- {courant_dev-0.7.0 → courant_dev-0.7.1}/courant/events/time_markers.py +0 -0
- {courant_dev-0.7.0 → courant_dev-0.7.1}/courant/forks.py +0 -0
- {courant_dev-0.7.0 → courant_dev-0.7.1}/courant/gate/__init__.py +0 -0
- {courant_dev-0.7.0 → courant_dev-0.7.1}/courant/gate/config.py +0 -0
- {courant_dev-0.7.0 → courant_dev-0.7.1}/courant/live/__init__.py +0 -0
- {courant_dev-0.7.0 → courant_dev-0.7.1}/courant/live/watch.py +0 -0
- {courant_dev-0.7.0 → courant_dev-0.7.1}/courant/llm/__init__.py +0 -0
- {courant_dev-0.7.0 → courant_dev-0.7.1}/courant/llm/allowlist.py +0 -0
- {courant_dev-0.7.0 → courant_dev-0.7.1}/courant/llm/openrouter.py +0 -0
- {courant_dev-0.7.0 → courant_dev-0.7.1}/courant/llm/prices.py +0 -0
- {courant_dev-0.7.0 → courant_dev-0.7.1}/courant/llm/transport.py +0 -0
- {courant_dev-0.7.0 → courant_dev-0.7.1}/courant/mcp/__init__.py +0 -0
- {courant_dev-0.7.0 → courant_dev-0.7.1}/courant/record/__init__.py +0 -0
- {courant_dev-0.7.0 → courant_dev-0.7.1}/courant/record/filter.py +0 -0
- {courant_dev-0.7.0 → courant_dev-0.7.1}/courant/release.py +0 -0
- {courant_dev-0.7.0 → courant_dev-0.7.1}/courant/spec/__init__.py +0 -0
- {courant_dev-0.7.0 → courant_dev-0.7.1}/courant/spec/extract.py +0 -0
- {courant_dev-0.7.0 → courant_dev-0.7.1}/courant/taxonomy.py +0 -0
- {courant_dev-0.7.0 → courant_dev-0.7.1}/courant/verification/__init__.py +0 -0
- {courant_dev-0.7.0 → courant_dev-0.7.1}/courant/verification/bounding.py +0 -0
- {courant_dev-0.7.0 → courant_dev-0.7.1}/courant/verification/fields.py +0 -0
- {courant_dev-0.7.0 → courant_dev-0.7.1}/courant/verification/grade.py +0 -0
- {courant_dev-0.7.0 → courant_dev-0.7.1}/courant/verification/suite.py +0 -0
- {courant_dev-0.7.0 → courant_dev-0.7.1}/courant/verify/__init__.py +0 -0
- {courant_dev-0.7.0 → courant_dev-0.7.1}/courant/verify/about.py +0 -0
- {courant_dev-0.7.0 → courant_dev-0.7.1}/courant/verify/cache.py +0 -0
- {courant_dev-0.7.0 → courant_dev-0.7.1}/courant/verify/outcome.py +0 -0
- {courant_dev-0.7.0 → courant_dev-0.7.1}/courant/verify/policy.py +0 -0
- {courant_dev-0.7.0 → courant_dev-0.7.1}/courant/verify/schema.py +0 -0
- {courant_dev-0.7.0 → courant_dev-0.7.1}/courant/verify/support.py +0 -0
- {courant_dev-0.7.0 → courant_dev-0.7.1}/courant/watcher/__init__.py +0 -0
- {courant_dev-0.7.0 → courant_dev-0.7.1}/courant/watcher/exitcode.py +0 -0
- {courant_dev-0.7.0 → courant_dev-0.7.1}/courant/watcher/watcher.py +0 -0
- {courant_dev-0.7.0 → courant_dev-0.7.1}/courant_dev.egg-info/dependency_links.txt +0 -0
- {courant_dev-0.7.0 → courant_dev-0.7.1}/courant_dev.egg-info/entry_points.txt +0 -0
- {courant_dev-0.7.0 → courant_dev-0.7.1}/courant_dev.egg-info/requires.txt +0 -0
- {courant_dev-0.7.0 → courant_dev-0.7.1}/courant_dev.egg-info/top_level.txt +0 -0
- {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.
|
|
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
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
`
|
|
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
|
|
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.
|
|
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
|
|
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
|
|
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 (
|
|
347
|
-
doubled, viscosity tripled, gravity rotated, geometry scaled, end time cut
|
|
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:**
|
|
351
|
-
|
|
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
|
|
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
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
`
|
|
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
|
|
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.
|
|
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
|
|
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
|
|
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 (
|
|
295
|
-
doubled, viscosity tripled, gravity rotated, geometry scaled, end time cut
|
|
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:**
|
|
299
|
-
|
|
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
|
|
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.
|
|
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.
|