Skip to content

v0.0.1-alpha.43

Choose a tag to compare

@github-actions github-actions released this 28 Oct 02:03
Immutable release. Only release title and notes can be modified.
89a2c50

Release Notes

This release adds two things for applications that serve models in batch: graphcal model serve can fix parameters it does not vary to given values, and the new graphcal model unit command resolves unit expressions for clients.
When a row fails only because a declaration it depends on failed, the row's diagnostic now names the declaration where the failure started.
The web viewer reads GitHub through the Graphcal browser extension and no longer needs a personal access token.
It contains no language changes.

No existing Graphcal source programs need to be modified.
The batch evaluation protocol's session schema and wire formats are unchanged.

Batch Evaluation

  • graphcal model serve accepts --param, --params-json, and --params-json-file, in the same formats as graphcal eval, and binds those values in every row. A session can now leave a parameter without a default unvaried, so a model whose parameters are records without defaults can be served without a wrapper module that bakes the values in. The values are type- and domain-checked once when the session starts. A parameter that is both varied and fixed, an unknown name, or a repeated name is an error. --params-json-file - is rejected, because stdin carries the request stream. Fixed parameters are not sent in requests and are not part of the session schema. (#2180)

  • The new graphcal model unit <FILE> <UNIT>... command resolves unit expressions in the entry file's scope, as if they were written after ->, and prints each one's dimension and SI scale as JSON. A client that reads a quantity inside a structured output, such as a field of a record result, gets it in SI units, and can use this command to convert it to a display unit without keeping its own unit table. Runtime units and unknown units are errors (exit code 2). (#2181)

    [{ "unit": "h", "dimension": { "Time": 1 }, "si_scale": 3600.0 }]
  • When a row fails only because a declaration it depends on failed, its error message now also names each declaration that failed on its own, with that declaration's message. Before, the message named only the immediate dependency, and finding the cause needed a separate graphcal eval with the same inputs. The protocol's row failure kinds are unchanged. (#2179)

    result: dependency failed: inner::out; originating failure: inner::ratio (division by zero)
    
  • Rust API additions: SessionSpec::with_fixed in graphcal-model-protocol, ParameterBindingBuilder::into_fixed, FixedParameters, and PreparedProject::model_session_with in graphcal-project, and SessionBuilder::fix_from_json_file in graphcal-model-client (#2180). ResolvedUnit in graphcal-model-protocol, PreparedProject::resolve_model_unit in graphcal-project, and Model::resolve_units in graphcal-model-client (#2181).

View (Experimental)

  • The web viewer at graphcal.org/view reads GitHub through the Graphcal for GitHub Chrome extension and uses the browser's GitHub sign-in, instead of a personal access token. Any repository you can open on github.com, private or public, opens in the viewer with nothing to configure. Without the extension, the viewer shows a notice and an install link. Firefox and Safari are not supported. The ref menu lists branches only, so open a pull request by its head branch. (#2173)

Documentation

  • The @ sigil tables in the computation model page no longer say that @ is not allowed in const node expressions. A const node expression may use @ to reference other const node values. (#2186)
  • The Batch Evaluation guide has a new section on fixing parameters with values, and the CLI reference documents the new model serve options and graphcal model unit. (#2180, #2181)

Dependency, Toolchain, and Workflow Maintenance

  • Updated Rust crates gix to v0.90.0 (#2172) and open to v5.4.5 (#2169).
  • Updated CodeMirror (#2171), Vite+ to v1.4.0 (#2183), pnpm to v12.15.0 (#2177), and Node.js to v24.22.1 (#2184).
  • Updated zensical to v0.0.71. (#2175)
  • Updated GitHub Actions: zizmorcore/zizmor-action to v0.7.1 (#2170, #2174), taiki-e/install-action to v2.87.29 (#2176), and Swatinem/rust-cache to v2.9.3 (#2192).
  • Refreshed lock files. (#2182)

Internal

  • Added a CodeRabbit configuration for AI code review. (#2178)
  • Bumped the workspace version to v0.0.1-alpha.43 and added these notes to CHANGELOG.md. (#2193)

Full Changelog: v0.0.1-alpha.42...v0.0.1-alpha.43

Install graphcal 0.0.1-alpha.43

Install prebuilt binaries via shell script

curl --proto '=https' --tlsv1.2 -LsSf https://github.com/graphcal-lang/graphcal/releases/download/v0.0.1-alpha.43/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.43/graphcal-installer.ps1 | iex"

Download graphcal 0.0.1-alpha.43

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