Repository navigation
Releases
v0.9.30 — wordRe patches, tutorial search, failed-run verdict
OpenFOAM Workbench v0.9.30
The rest of the AMR + CHT field report: wordRe patch keys, content-aware tutorial search, and a failed run that says why it stopped.
The rest of the field report: patch keys, tutorial search, and the verdict of a
failed run.
openfoam_checktreatsboundaryFieldkeys aswordRepatterns, the way
OpenFOAM does:".*","(inlet|outlet)"and"wall.*"no longer produce a
false "no boundaryField entry" plus "no such patch" pair on a case that runs.
A key that matches no patch is still an error, and a macro key ($…) withholds
the coverage verdict instead of guessing. The coupled-BC-on-wall rule expands a
key to the patches it covers.openfoam_find_tutorialsplits the query into tokens and matches them against
the case path and the text ofsystem/controlDict(application,solver,
regionSolvers,fvModels), socht multiRegion regionSolversfinds
multiRegion/CHT/*; results report which tokens matched and whether every
token did (matchedAll).openfoam_solve_verifyandopenfoam_run_progressno longer print an ETA for
a failed run: the state isfailed, the decisionFAILED, and the result
carriesreason(sigfpe/fatal/nan/segv/diverged) plusfirstErrorLine
{line, text}and a reason string quoting it. The orgsigFpestartup banner
is not mistaken for a failure.- 187 tests (6 new).
Install
dsh plugin --profile web add https://github.com/yakovlev-i-a/dsh-openfoam-workbench/releases/download/v0.9.30/yakovlev-i-a-dsh-openfoam-workbench-0.9.30.tgzv0.9.29 — case libraries: libPaths, env, logName, libbin
OpenFOAM Workbench v0.9.29
Case libraries: the tools can now run a case whose own .so files live outside FOAM_USER_LIBBIN (field report from an AMR + viewFactor + CHT case).
Case libraries, and the environment a case needs to run (field report from an
AMR + viewFactor + CHT case: the tools could not load the case's own .so).
openfoam_run,openfoam_run_solver_async,openfoam_field_statsand
openfoam_solver_buildacceptlibPathsandenv. Only library locations are
accepted (LD_LIBRARY_PATH, plusFOAM_USER_LIBBINfor a build);LD_PRELOAD,
LD_AUDITandPATHare refused, because they would let a call choose the
code that runs.openfoam_run_solver_async(logName=…)names the run log without leaving the
run registry, sorun_list/status/progressstill find it.openfoam_solver_build(libbin=…)installs into a directory the run can reach,
and refuses up front with the resolved target when that directory is not
writable instead of lettingwmakefail with "Permission denied".openfoam_checkgainscase-library-missing: everylibs (...)entry is
resolved againstFOAM_LIBBIN/FOAM_USER_LIBBINand the
~/OpenFOAM/*/platforms/*/libtrees; the finding names the directory that holds
the library and the exactlibPathscall.openfoam_diagnose_errorrecognisesdlopen error/Cannot open shared object file/Unknown fvMeshTopoChanger typeas a missing case library.openfoam_field_statsexplains adlopenfailure instead of returning "no
statistics parsed".- 181 tests (7 new: the env whitelist, lib path merging,
logNamevalidation,
libs (...)parsing, the library rule, the diagnosis).
Install
dsh plugin --profile web add https://github.com/yakovlev-i-a/dsh-openfoam-workbench/releases/download/v0.9.29/yakovlev-i-a-dsh-openfoam-workbench-0.9.29.tgzv0.9.28 — npm withdrawn, tarball release
OpenFOAM Workbench v0.9.28
npm distribution withdrawn; the release tarball is the versioned artefact.
npm distribution withdrawn.
- The registry is no longer part of the release:
package.jsonisprivate
again,publishConfigand.github/workflows/publish.ymlare gone, and the
README documents the git spec and the release tarball as the install paths. - The three versions that had reached npm (
0.0.0-stage,0.9.26,0.9.27) are
deprecated with a message pointing at the git install; removing them
outright needs a 2FA session (a bypass-2FA token may not unpublish), so it is
left as a manual step if the account ever enrols a security key. - Each release now carries
yakovlev-i-a-dsh-openfoam-workbench-<version>.tgz,
installable withdsh plugin add <tarball-url>— versioned without a registry. - 174 tests.
Install
dsh plugin add https://github.com/yakovlev-i-a/dsh-openfoam-workbench/releases/download/v0.9.28/yakovlev-i-a-dsh-openfoam-workbench-0.9.28.tgz
# or pinned to the commit
dsh plugin add git+https://github.com/yakovlev-i-a/dsh-openfoam-workbench.git#8a127f8v0.9.27 — first npm publication
OpenFOAM Workbench v0.9.27
First npm publication: @yakovlev-i-a/dsh-openfoam-workbench@0.9.27.
- The npm account enables publishing only with proof of presence: the first
attempt (web-login session, no 2FA) staged0.9.26and the staged version
blocked republishing that number (E409 Cannot publish over previously staged version).0.9.27is the same content published with a granular access token
that hasbypass_2fa. - 174 tests.
Verification
npm view @yakovlev-i-a/dsh-openfoam-workbench version→ 0.9.27, tarball 639 kB unpacked,engines.dsh >=0.2.2-rc.1- fresh
npm installof the published tarball →apply()registers 65 tools, 11 skills,cordis.patch.ymlandclient.jspresent
v0.9.26 — npm-ready packaging
OpenFOAM Workbench v0.9.26
Packaging for distribution: npm-ready and documented install paths.
Packaging for distribution.
package.json:privateis nowfalsewithpublishConfig.access: public, so
the package can be published to npm as
@yakovlev-i-a/dsh-openfoam-workbench(still0.x, as agreed).- README documents all three install paths: a commit-pinned git spec, the npm
package, and a local checkout. - Repository metadata moved to the current state (65 tools) and the
dsh-plugintopic is set for discovery. - 174 tests.
v0.9.25 — strict routing + audited escalation
OpenFOAM Workbench v0.9.25
Strict tool routing with an audited escalation path.
strict routing with an audited exception path.
enforceToolRouting: 'strict': abash/write/editcall that writes a
case dictionary is refused with a message that names the plugin tool and the
escalation call.openfoam_escalate({ target, operation, toolsTried, why, ttlMinutes })
(65th tool) grants one single-use token for one target, valid 10 minutes.
The request is verified against the call history: at least one named plugin
tool must have been called and failed in the last 15 minutes, so the
exception carries evidence instead of a claim. The hook consumes the token on
the next matching write, so one escalation authorises exactly one write.escalationAuthority: 'auto' | 'ask'(defaultauto, as agreed for the
first release):autoissues the token from the verified evidence,ask
routes the decision to the DSH approval answerer and fails closed without it.openfoam_usage_reportgains anescalationssection (active, used, expired
and the recent request/consume events), next to theroutingsection, so
"which tools were tried, why it failed, what was let through" is an artifact.- 174 tests (evidence verification, single use, TTL and target scoping,
auto/ask authority, strict vs warn vs deny).
v0.9.24 — tool routing guard
OpenFOAM Workbench v0.9.24
Steering the agent onto the plugin tools: enforceToolRouting (off/warn/deny).
Steering the agent onto the plugin's tools, in layers.
- New
enforceToolRoutingsetting (off/warn/deny, defaultwarn).
The plugin subscribes to DSH'stools/pre-executewaterfall and classifies
every call: abash/write/editthat writes a case dictionary
(system/,constant/,0/, or a known dictionary file name) is a bypass.
warnrecords it,denyreturns a refusal naming the tool to use
(openfoam_dict_set,openfoam_read_dict) so the change is classified,
journaled and reversible. openfoam_usage_reportnow carries aroutingsection (bypass attempts with
tool, target and decision), so "the work went through bash" is visible instead
of inferred.lib/routing-guard.jsis deliberately conservative: reads,ls, solver runs
and the plugin's own tools are never flagged; the shell patterns are known to
be evadable (printf/python indirection), which the README states plainly —
the guard is a deterrent and a signal, the sandbox stays the boundary.- 169 tests (routing classification, warn/deny/off modes, hook wiring).
v0.9.23 — write-gate hardening
OpenFOAM Workbench v0.9.23
Security follow-up: the brace bypass and the directive regex gap are closed.
Security review follow-up: the write gate and the run whitelist, again.
- Braces are refused in a scalar value.
value='{ } libs ("libevil.so")'
used to pass every check (one line, no;, balanced braces) and produced
writeInterval { } libs ("libevil.so");as a low impact change — the line
parser saw onlywriteIntervaland the injected entry was invisible to the
structural guard. Any{/}in a value is now an error by name. - Every
#directive is critical.#includeEtc/#includeIfPresent/
#includeFunc/#inputMode/#removewere applied as low/high because the
pattern used a trailing word boundary after#include; any#wordtoken now
forces approval (#codeStream,#calc,#eval, absolute includes, rewrites). - Structural invariant: replacing one entry may not change the number of
semicolons in the file (an append is exempt by design), on top of the existing
top-level key comparison. - Argument whitelist:
-case,-dict,-solver,-roots,-hostRoots,
-libsare refused in both-x valueand-x=valueforms. clean(force:true)requires approval: forcing past the case-marker guard is
destructive and now fails closed without an answerer.test/golden/work/(generated runs, ~2.6 MB including a 49k-line mesh) is out
of git and gitignored.- Tests: 165, including regressions for each item above.
v0.9.22 — com green across all golden cases
OpenFOAM Workbench v0.9.22
A clean com v2606 install fixed the crashes; com now passes the whole golden matrix.
A clean com v2606 install fixed the segfaults, and com now passes the whole
golden matrix.
- The com crashes were the local installation, not the case or the plugin: a
freshopenfoam2606from the official apt repository runsrhoPimpleFoamand
chtMultiRegionFoamnormally.scripts/reinstall-com.shdocuments the purge +
reinstall (the apt install ships no tutorials;openfoam2606-tutorialsis a
separate package). - Compressible golden
sphereBoxon both families: org and com agree within
~0.1 % (p99.88-100.07 kPa,T.max300.036 K,U.max~17.5 m/s), which also
showed that the earlier org setup (separatep/p_rghpair) over-pressurised
the box; both families now use onepfield with a wave-transmissive outlet. - CHT golden
sphereChton both families: com gets its own mesh fixture
(sphereChtCom, built by com'ssplitMeshRegions; the mapped-patch metadata is
not portable), plus com-side dictionary requirements: solidpfield,
enthalpy solvers (h/hFinal),heRhoThermokeys, interface condition
compressible::turbulentTemperatureCoupledBaffleMixed. Solid heats 300 ->
313.1-313.9 K on com (org: 311.4-312.2 K), gas max 500 K on both. - Only
pitzDailystays org-only, with the reason recorded (the apt install has
no tutorials directory). - 161 tests.
v0.9.21 — compressible family + sphereBox golden
OpenFOAM Workbench v0.9.21
Compressible scaffold family and the sphereBox golden; com CHT close to working.
openfoam_case_scaffoldfamilycompressible: family-aware rho-thermo
(hePsiThermo+ internal energy +p/p_rghfor org'sfoamRun fluid;
heRhoThermo+ enthalpy +pfor com'srhoPimpleFoam), with the working
scheme set (div(phi,(p|rho))vsdiv(phi,h)/div(phid,p)),constant/g,
pRef, laminar transport, and the gas initialised at rest so the inlet drives
the flow instead of an impulsive pressure wave.- Golden case
sphereBox: compressible gas around the sphere on the stored
snappy mesh (17587 cells); QoI recorded on org 14. The values are regression
references of this transient blocked-duct run, not a validated benchmark. - CHT scaffold is family-complete as far as the solvers allow: interface
temperature iscoupledTemperatureon org and
compressible::turbulentTemperatureCoupledBaffleMixed(withTnbr,
kappaMethod,sampleMode) on com; com thermo keys (Hf,heRhoThermo,
constIso/hConst) and a fixed-value inlet are used where com's dictionary
API differs. - Two com findings recorded, both build-level, not case-level:
rhoPimpleFoamandchtMultiRegionFoamsegfault in this com v2606
installation (dictionary::clone()), and org'smappedWallinterface
metadata is not portable to com (needs a com-built fixture). - 161 tests.