Skip to content

v0.0.1-alpha.38

Choose a tag to compare

@github-actions github-actions released this 17 Oct 12:53
Immutable release. Only release title and notes can be modified.
65e8fba

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, and Key<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.
  • graphcal model serve now evaluates request batches against that interface. (#2122, #2124)

    graphcal model serve reliability.gcl \
        --input load --input mode --output failure --output margin \
        --expect-fingerprint sha256:…
    • --input names the parameters a session varies. Every other parameter keeps its default, so a parameter without a default must be varied.
    • --output may name any public node of a supported type. Before, only scalar Bool nodes could be selected.
    • Exactly one of --expect-fingerprint <FINGERPRINT> and --skip-fingerprint-check is required. With --expect-fingerprint, the server refuses to start if the model's interface changed since it was described.
    • Parameters no longer need both min and max. Before, every quantity and Int input needed finite bounds on both sides, and a Bool input 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 assert is 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-client crate runs graphcal model describe and graphcal model serve for 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-protocol crate defines the interface, session, batch, and outcome types without I/O or a compiler dependency, so clients and non-Graphcal models can share them. Its arrow feature maps them to Arrow schemas. (#2121)

  • The graphcal-tenax crate is removed. Tenax now uses graphcal-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 describe and the new model serve options. (#2126)

Dependency, Toolchain, and Workflow Maintenance

  • Updated Vite+ to v1.2.0. (#2127)

Internal

  • The graphcal model serve transport is a separate crate, graphcal-model-server, around the pure evaluate_request of a prepared project. (#2122, #2124)
  • End-to-end tests run graphcal-model-client against the built CLI. (#2125)
  • Added the v0.0.1-alpha.38 notes to CHANGELOG.md and 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 | sh

Install 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/graphcal

You 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