Skip to content

Releases

v0.9.30 — wordRe patches, tutorial search, failed-run verdict

Choose a tag to compare

@yakovlev-i-a yakovlev-i-a released this 26 Nov 12:16

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_check treats boundaryField keys as wordRe patterns, 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_tutorial splits the query into tokens and matches them against
    the case path and the text of system/controlDict (application, solver,
    regionSolvers, fvModels), so cht multiRegion regionSolvers finds
    multiRegion/CHT/*; results report which tokens matched and whether every
    token did (matchedAll).
  • openfoam_solve_verify and openfoam_run_progress no longer print an ETA for
    a failed run: the state is failed, the decision FAILED, and the result
    carries reason (sigfpe/fatal/nan/segv/diverged) plus firstErrorLine
    {line, text} and a reason string quoting it. The org sigFpe startup 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.tgz

v0.9.29 — case libraries: libPaths, env, logName, libbin

Choose a tag to compare

@yakovlev-i-a yakovlev-i-a released this 26 Nov 12:05

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_stats and
    openfoam_solver_build accept libPaths and env. Only library locations are
    accepted (LD_LIBRARY_PATH, plus FOAM_USER_LIBBIN for a build); LD_PRELOAD,
    LD_AUDIT and PATH are 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, so run_list/status/progress still 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 letting wmake fail with "Permission denied".
  • openfoam_check gains case-library-missing: every libs (...) entry is
    resolved against FOAM_LIBBIN/FOAM_USER_LIBBIN and the
    ~/OpenFOAM/*/platforms/*/lib trees; the finding names the directory that holds
    the library and the exact libPaths call.
  • openfoam_diagnose_error recognises dlopen error / Cannot open shared object file / Unknown fvMeshTopoChanger type as a missing case library.
  • openfoam_field_stats explains a dlopen failure instead of returning "no
    statistics parsed".
  • 181 tests (7 new: the env whitelist, lib path merging, logName validation,
    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.tgz

v0.9.28 — npm withdrawn, tarball release

Choose a tag to compare

@yakovlev-i-a yakovlev-i-a released this 26 Nov 09:59

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.json is private
    again, publishConfig and .github/workflows/publish.yml are 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 with dsh 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#8a127f8

v0.9.27 — first npm publication

Choose a tag to compare

@yakovlev-i-a yakovlev-i-a released this 26 Nov 09:27

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) staged 0.9.26 and the staged version
    blocked republishing that number (E409 Cannot publish over previously staged version). 0.9.27 is the same content published with a granular access token
    that has bypass_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 install of the published tarball → apply() registers 65 tools, 11 skills, cordis.patch.yml and client.js present

v0.9.26 — npm-ready packaging

Choose a tag to compare

@yakovlev-i-a yakovlev-i-a released this 26 Nov 09:00

OpenFOAM Workbench v0.9.26

Packaging for distribution: npm-ready and documented install paths.

Packaging for distribution.

  • package.json: private is now false with publishConfig.access: public, so
    the package can be published to npm as
    @yakovlev-i-a/dsh-openfoam-workbench (still 0.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-plugin topic is set for discovery.
  • 174 tests.

v0.9.25 — strict routing + audited escalation

Choose a tag to compare

@yakovlev-i-a yakovlev-i-a released this 26 Nov 08:45

OpenFOAM Workbench v0.9.25

Strict tool routing with an audited escalation path.

strict routing with an audited exception path.

  • enforceToolRouting: 'strict': a bash/write/edit call 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' (default auto, as agreed for the
    first release): auto issues the token from the verified evidence, ask
    routes the decision to the DSH approval answerer and fails closed without it.
  • openfoam_usage_report gains an escalations section (active, used, expired
    and the recent request/consume events), next to the routing section, 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

Choose a tag to compare

@yakovlev-i-a yakovlev-i-a released this 26 Nov 08:23

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 enforceToolRouting setting (off / warn / deny, default warn).
    The plugin subscribes to DSH's tools/pre-execute waterfall and classifies
    every call: a bash/write/edit that writes a case dictionary
    (system/, constant/, 0/, or a known dictionary file name) is a bypass.
    warn records it, deny returns a refusal naming the tool to use
    (openfoam_dict_set, openfoam_read_dict) so the change is classified,
    journaled and reversible.
  • openfoam_usage_report now carries a routing section (bypass attempts with
    tool, target and decision), so "the work went through bash" is visible instead
    of inferred.
  • lib/routing-guard.js is 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

Choose a tag to compare

@yakovlev-i-a yakovlev-i-a released this 26 Nov 07:31

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 only writeInterval and 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/#remove were applied as low/high because the
    pattern used a trailing word boundary after #include; any #word token 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,
    -libs are refused in both -x value and -x=value forms.
  • 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

Choose a tag to compare

@yakovlev-i-a yakovlev-i-a released this 26 Nov 06:45

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
    fresh openfoam2606 from the official apt repository runs rhoPimpleFoam and
    chtMultiRegionFoam normally. scripts/reinstall-com.sh documents the purge +
    reinstall (the apt install ships no tutorials; openfoam2606-tutorials is a
    separate package).
  • Compressible golden sphereBox on both families: org and com agree within
    ~0.1 % (p 99.88-100.07 kPa, T.max 300.036 K, U.max ~17.5 m/s), which also
    showed that the earlier org setup (separate p/p_rgh pair) over-pressurised
    the box; both families now use one p field with a wave-transmissive outlet.
  • CHT golden sphereCht on both families: com gets its own mesh fixture
    (sphereChtCom, built by com's splitMeshRegions; the mapped-patch metadata is
    not portable), plus com-side dictionary requirements: solid p field,
    enthalpy solvers (h/hFinal), heRhoThermo keys, 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 pitzDaily stays org-only, with the reason recorded (the apt install has
    no tutorials directory).
  • 161 tests.

v0.9.21 — compressible family + sphereBox golden

Choose a tag to compare

@yakovlev-i-a yakovlev-i-a released this 26 Nov 06:09

OpenFOAM Workbench v0.9.21

Compressible scaffold family and the sphereBox golden; com CHT close to working.

  • openfoam_case_scaffold family compressible: family-aware rho-thermo
    (hePsiThermo + internal energy + p/p_rgh for org's foamRun fluid;
    heRhoThermo + enthalpy + p for com's rhoPimpleFoam), with the working
    scheme set (div(phi,(p|rho)) vs div(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 is coupledTemperature on org and
    compressible::turbulentTemperatureCoupledBaffleMixed (with Tnbr,
    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:
    rhoPimpleFoam and chtMultiRegionFoam segfault in this com v2606
    installation (dictionary::clone()), and org's mappedWall interface
    metadata is not portable to com (needs a com-built fixture).
  • 161 tests.