Repository navigation
v0.0.1-alpha.38
Release Notes
This release replaces the Tenax-specific model server with a general batch evaluation protocol, so sampling studies, scenario discovery, and optimizers can evaluate a Graphcal model many times from another process.
The new graphcal model describe command prints a model's interface, graphcal model serve evaluates request batches against it, and the new graphcal-model-client crate drives both from Rust.
No existing Graphcal source programs need to be modified.
graphcal model serve has new required options. See Batch Evaluation.
Batch Evaluation
-
The new
graphcal model describe <FILE> [--root <ROOT>]command prints the model's interface as JSON: every entry parameter and public node with its type, unit, domain, and whether it has a default, together with a protocol version and an interface fingerprint. (#2121, #2124)- Quantities,
Int,Bool, andKey<I>over a named index are supported. A port of any other type is listed as unsupported with the reason, instead of being left out. - Every quantity travels in its canonical SI unit, and domains are given in the same unit.
- The fingerprint changes when a port is added, removed, or retyped, but not when only formulas change.
- Quantities,
-
graphcal model servenow evaluates request batches against that interface. (#2122, #2124)graphcal model serve reliability.gcl \ --input load --input mode --output failure --output margin \ --expect-fingerprint sha256:…--inputnames the parameters a session varies. Every other parameter keeps its default, so a parameter without a default must be varied.--outputmay name any public node of a supported type. Before, only scalarBoolnodes could be selected.- Exactly one of
--expect-fingerprint <FINGERPRINT>and--skip-fingerprint-checkis required. With--expect-fingerprint, the server refuses to start if the model's interface changed since it was described. - Parameters no longer need both
minandmax. Before, every quantity andIntinput needed finite bounds on both sides, and aBoolinput was rejected.
-
Each request row produces one outcome, in request order: success, assertion failed, input out of domain, or evaluation error. Only successful rows carry outputs. A failed
assertis reported separately, so an optimizer can treat the row as infeasible. Malformed streams, a request schema that differs from the session, NaN or infinite values, and unknown key variants still stop the server with exit code 1. (#2121, #2122) -
The new
graphcal-model-clientcrate runsgraphcal model describeandgraphcal model servefor Rust programs. Its handles are typed by value kind (Quantity,Int,Bool,Key), each session is pinned to the described fingerprint, and Arrow IPC stays internal. (#2125) -
The new
graphcal-model-protocolcrate defines the interface, session, batch, and outcome types without I/O or a compiler dependency, so clients and non-Graphcal models can share them. Itsarrowfeature maps them to Arrow schemas. (#2121) -
The
graphcal-tenaxcrate is removed. Tenax now usesgraphcal-model-client. (#2124, #2125)
Documentation
- The Tenax Integration page is replaced by a Batch Evaluation page. It shows how to describe a model, start a session, evaluate from Rust, fix parameters with a wrapper file, read row outcomes, and write a client in another language. The CLI reference documents
model describeand the newmodel serveoptions. (#2126)
Dependency, Toolchain, and Workflow Maintenance
- Updated Vite+ to v1.2.0. (#2127)
Internal
- The
graphcal model servetransport is a separate crate,graphcal-model-server, around the pureevaluate_requestof a prepared project. (#2122, #2124) - End-to-end tests run
graphcal-model-clientagainst the built CLI. (#2125) - Added the v0.0.1-alpha.38 notes to
CHANGELOG.mdand bumped the workspace version to v0.0.1-alpha.38. (#2128)
Full Changelog: v0.0.1-alpha.37...v0.0.1-alpha.38
Install graphcal 0.0.1-alpha.38
Install prebuilt binaries via shell script
curl --proto '=https' --tlsv1.2 -LsSf https://github.com/graphcal-lang/graphcal/releases/download/v0.0.1-alpha.38/graphcal-installer.sh | shInstall prebuilt binaries via powershell script
powershell -ExecutionPolicy Bypass -c "irm https://github.com/graphcal-lang/graphcal/releases/download/v0.0.1-alpha.38/graphcal-installer.ps1 | iex"Download graphcal 0.0.1-alpha.38
| File | Platform | Checksum |
|---|---|---|
| graphcal-aarch64-apple-darwin.tar.gz | Apple Silicon macOS | checksum |
| graphcal-x86_64-apple-darwin.tar.gz | Intel macOS | checksum |
| graphcal-x86_64-pc-windows-msvc.zip | x64 Windows | checksum |
| graphcal-aarch64-unknown-linux-musl.tar.gz | ARM64 MUSL Linux | checksum |
| graphcal-x86_64-unknown-linux-musl.tar.gz | x64 MUSL Linux | checksum |
Verifying GitHub Artifact Attestations
The artifacts in this release have attestations generated with GitHub Artifact Attestations. These can be verified by using the GitHub CLI:
gh attestation verify <file-path of downloaded artifact> --repo graphcal-lang/graphcalYou can also download the attestation from GitHub and verify against that directly:
gh attestation verify <file-path of downloaded artifact> --bundle <file-path of downloaded attestation> --repo graphcal-lang/graphcal