Strata 0.9.0-preview.2 and preview.3: what changed, and what to check when you upgrade

Since launch: a graph that can't end no longer compiles, parallel groups cost less, Postgres listings stay fast, and recovery runs several threads at once.

Strata preview.3: STRATA_ERR_NO_TERMINAL, a graph that can't end no longer compiles; a .NET parallel group of 32 branches takes 9.8 µs, was 20.3 µs in preview.2

Datalium Strata has had two releases since the preview launched on October 30. 0.9.0-preview.2 came out on November 10, and 0.9.0-preview.3 on November 19. This post goes through both: what changed, why, and what to check when you upgrade. The full list is in the changelog.

preview.2 was a maintenance release: the same API and the same behaviour. preview.3 has the substance. It closes a gap in graph validation, which the LangGraph comparison named. It also fixes most of what the stress demos found when we ran Strata under load.

The next release is planned as 0.9.0, without the preview label. The roadmap says what it needs.

If you’re upgrading

Change the version on every package or crate at once. The crates pin each other exactly, so they move together.

dotnet add package Datalium.Strata.Hosting --version 0.9.0-preview.3
datalium-strata = "=0.9.0-preview.3"   # and the same on every datalium-strata-* crate

The CLI binaries are on the v0.9.0-preview.3 release.

From preview.1 or preview.2, check these:

  1. A graph that compiled before can now fail to compile with STRATA_ERR_NO_TERMINAL, if some node has no path to an end. Give the loop an exit. The next section shows how.
  2. Rust: a match on ValidationErrorKind that names every variant needs an arm for NoTerminal.
  3. The hosted recovery drivers now recover 8 threads at once, not one. If your process is close to its model’s rate limit or its database pool, set it lower. Recovery has the setting.
  4. Rust: HTTPS uses the operating system’s certificates. A container image with no CA certificates installed (one built FROM scratch, say) needs them now.
  5. Rust: the minimum version is 1.88, declared in the manifests since preview.2.

The wire formats haven’t changed since preview.1. Checkpoints, graph definitions, history records and memory records are written and read as before, by both engines and the CLI.

A graph that can’t end no longer compiles

Strata checks a graph’s structure when you compile it: a missing entry point, a node nothing reaches, a cycle with no guard on it, an edge to a node that doesn’t exist. Until preview.3 it didn’t check that a run can end. A graph whose loops were all guarded, but which had no way out, passed every check. Then it ran until a hop limit stopped it, or forever if it had none.

This graph, from the engine’s own tests, is that case. Every loop is guarded, but Act’s exit to an end was forgotten:

var graph = new StateGraph<int>()
    .AddNode("Plan", Noop)
    .AddNode("Act", Noop)
    .AddNode("Review", Noop)
    .AddEdge("Plan", "Act")
    .AddConditionalEdge("Act", "Review", s => s > 0)
    .AddConditionalEdge("Act", "Plan", _ => true)
    .AddEdge("Review", "Plan");

graph.Compile(); // preview.3: throws GraphCompilationException, STRATA_ERR_NO_TERMINAL for Plan, Act and Review
let result = StateGraph::<i32>::new()
    .add_node("Plan", noop)
    .add_node("Act", noop)
    .add_node("Review", noop)
    .add_edge("Plan", "Act")
    .add_conditional_edge("Act", "Review", |s: &i32| *s > 0)
    .add_conditional_edge("Act", "Plan", |_: &i32| true)
    .add_edge("Review", "Plan")
    .compile(); // preview.3: Err(StrataError::GraphInvalid(..)), ValidationErrorKind::NoTerminal for the same three nodes

The CLI runs the same validator over an exported graph definition, so it reports the same errors. Here it is on that graph:

$ strata graph validate --path no-terminal.json
FAILED: 'no-terminal.json' has 3 structural error(s):
  [STRATA_ERR_NO_TERMINAL] Plan: Node 'Plan' has no path to an end: every path from it loops back without reaching a node with no outgoing edge.
  [STRATA_ERR_NO_TERMINAL] Act: Node 'Act' has no path to an end: every path from it loops back without reaching a node with no outgoing edge.
  [STRATA_ERR_NO_TERMINAL] Review: Node 'Review' has no path to an end: every path from it loops back without reaching a node with no outgoing edge.

It exits with 1, as for any structural error, so it works as a CI gate. To find the graphs that will fail before you upgrade, export their definitions and run the preview.3 CLI on them.

The fix is an exit: an edge to a node with no outgoing edge. A node’s edges are tried in the order they were added, so the exit goes before the catch-all edge back to Plan:

    .AddNode("Done", Noop)
    // ...
    .AddConditionalEdge("Act", "Done", s => s >= 3)   // the way out
    .AddConditionalEdge("Act", "Review", s => s > 0)
    .AddConditionalEdge("Act", "Plan", _ => true)

Three details of the rule:

  • Approval routes count. A node whose only edges are a reject route, a timeout route or a recovery-policy fallback is an end, and those routes count as a way out of a loop. An approval boundary whose only edge is its reject route ends the run when it’s approved.
  • It runs at every level. Subgraphs and map templates are checked too, and each node is named by its path, such as Remediate/Fix.
  • It’s a structural check. It proves that every node can reach an end, not that a run will. A guarded exit whose condition never turns true still loops. The hop limit is still the guard for that, and it’s off by default. This is the fine print on “if it compiles, it runs”: Strata checks the graph’s structure and its state types, and the model is still free to be wrong.

Demo 07, graph validation (C#, Rust), now shows this error too. Its graph has a misspelled exit, which takes away the only way out of a review loop. The details are in the spec, STRATA-SPEC-004, and in #50.

What the stress demos found

Before preview.3 we ran Strata under load, with stress programs in the shape of real workloads (strata-stress-dotnet). The benchmark suite measures what the engine costs when handlers do nothing. The stress programs ask a different question: what happens with many runs in flight, handlers that really wait, and stores with a million threads in them. They led to four issues, #37 to #40. preview.3 fixes three of them, and the fourth turned out not to be Strata’s.

Parallel groups and nodes cost less

A burst of runs whose handlers really wait on I/O got through far fewer runs a second with Strata than the same waits in plain async code (#37). It wasn’t the engine’s CPU. In a burst like that, what limits the rate is what each run in flight holds, and how the runtime cleans it up. So preview.3 makes each run hold less:

  • .NET: an idempotency key is built when a handler first reads it, not for every node. An attempt has a token source of its own only when its node has a timeout. A parallel group’s branches report to one inbox the group reads, instead of the group waiting on each branch through Task.WhenAny.
  • Rust: an async branch’s handler future is no longer boxed twice, a group no longer copies its attempt’s inputs, and BranchOutcomes::deciding() builds its list of names when it’s first called.
  • Both: a branch of a group without a branch timeout watches the group’s token instead of one of its own.

Nothing an application sees changes: the API, the idempotency keys, the events, the spans and the metrics are the same.

We measured preview.3 against preview.2 on one machine (Intel Core i9-12900KF, Windows 11), alternating the two versions on the same afternoon. From RESULTS.md, finding 5:

What, against a store that costs nothing 0.9.0-preview.2 0.9.0-preview.3
.NET, a parallel group of 32 branches 20.3 µs, 45 KB 9.8 µs, 24 KB
.NET, a map of 64 items 61 to 63 µs, 157 KB 42 µs, 106 KB
.NET, ten async nodes 4.2 µs, 11.3 KB 3.2 µs, 8.3 KB
.NET, async throughput with 64 runs at once 19.6 to 20.8 million transitions a second 29.2 to 29.4 million
Rust, a parallel group of 32 branches 48 to 50 µs 37 to 39 µs
Rust, a parallel group of 2 branches 17 µs 11 to 14 µs

In Rust, an async branch now makes 7 allocations, and a test counts them, so a change that adds one fails the build. Rust’s async and inline nodes cost the same in both versions.

If you host bursts of runs that wait, the engine isn’t the biggest setting any more. The runtime is. In .NET, server GC’s dynamic heap count (DATAS, on by default since .NET 9) kept such a burst on very few heaps and spent most of its time in pauses. In Rust, the global allocator set the rate more than the engine did. Neither is a setting a library should change for you, so Strata doesn’t. “Hosting a burst” in design/49-Burst-Throughput.md says what to try, and says to measure your own workload before you change either default.

Postgres listings stay fast as the store grows

With the Postgres store, a page of a thread listing got slower the more threads the store held, and a purge scanned the whole leases table for every thread it removed (#38). The cause was a collation. The table of latest checkpoints keeps thread_id in the "C" collation, while the log and the leases use the database’s. So Postgres couldn’t use their primary keys to join them, and each page joined every matching thread.

Both queries now compare in the other table’s collation, and look each thread up by its primary key. The results are the same, in both engines, and there’s no migration to run. The issue has the measurements, up to a million threads.

Recovery runs several threads at once

When a worker dies, its threads are left running, and recovery finishes them from their last checkpoint (the docs page Durable execution explains how). Until preview.3, recovery took them one at a time. It also loaded each listed thread’s checkpoint before checking whether a live lease held it (#39). A worker that died with many threads in flight took about one run’s latency per thread to recover.

Now one call recovers several threads at once, and reads each thread’s lease first. A thread a live worker holds costs one read and is skipped. The library call, RecoverStaleAsync / recover_stale, still recovers one at a time unless you say otherwise:

var report = await graph.RecoverStaleAsync(store, new RecoverOptions { Run = options, MaxConcurrency = 8 });
let report = graph
    .recover_stale(store.clone(), Utc::now(), RecoverOptions::new().with_config(config).with_max_concurrency(8))
    .await?;

The hosted recovery drivers default to 8. Each recovery re-runs the node that was in flight, so a dead worker’s recovery adds up to 8 runs to the new worker’s own. To go back to one at a time, or to stay under a model’s rate limit or a database pool, set it lower. In .NET, in appsettings.json:

{ "Strata": { "Recovery": { "MaxConcurrency": 1 } } }

In Rust, on the driver you pass to Host::recover:

host.recover(graph, store, RecoveryDriver::new().with_max_concurrency(1))

A call never recovers more than its Limit, the report keeps the listing’s order, and the leases still stop two workers from running the same thread.

The one that wasn’t Strata’s

The fourth issue said that the Postgres store’s group commit was slower than no group commit until about a thousand writers (#40). It was the stress program, not the store. On Windows, Task.Delay wakes on the system timer’s tick, about 15.6 ms by default. Writers that simulated latency with it woke late and together, so their saves reached the store in bursts. With a high-resolution timer for the writers, and the store unchanged, group commit was faster than none on Windows too, as it had been in the Linux runs.

Strata’s runs resume when a model call or a tool call completes, not on a timer tick, so this doesn’t touch real workloads. It does matter if you load-test on Windows with Task.Delay as stand-in latency. The benchmarks README now says so.

Smaller changes in preview.3

  • Rust: a run cancelled while a parallel group runs ends Cancelled. It could end Failed, with NodeFailed { message: "no branches to run" }, when the group’s branches had settled as cancelled before the group was polled again (#48). .NET always ended it Cancelled, and now Rust does too. It turned up when a test added for .NET during the #37 work got its Rust twin.
  • Rust: HTTPS trusts the operating system’s certificates. The model and embedding clients in datalium-strata-ai moved to reqwest 0.13. They now use the system’s certificate store (rustls-platform-verifier) and aws-lc-rs, instead of a bundled copy of the Mozilla roots with ring. A certificate your system trusts, such as a company proxy’s, works without extra setup. An image with no CA certificates needs them installed.
  • Rust dependencies: base64 0.23, sha2 0.11, syn 3 and rusqlite 0.40. rusqlite stays below 0.41, which needs Rust 1.89, so the minimum is still 1.88.
  • CLI: ratatui 0.30. It pulls in a version of lru without the soundness advisory GHSA-rhfx-m35p-ff5j. The CLI looks and behaves the same.
  • benchmarks/RESULTS.md was measured again in full, in one run on preview.3, with the comparisons against preview.2 made the same afternoon. The benchmark post has an update note with what moved.

preview.2: a maintenance release

0.9.0-preview.2 changed no API and no behaviour. Three things in it are worth knowing:

  • The minimum Rust version is in the manifests: 1.88. Every crate and the CLI declare rust-version = "1.88". preview.1’s README said 1.85, but it needed 1.88, because a dependency (redis 1.7) declares it. Now Cargo on an older toolchain says which version it needs, instead of failing inside a dependency. With resolver 3, the default for edition 2024, Cargo also picks dependency versions that build on your toolchain.
  • Dependencies updated, minor and patch versions only: Microsoft.Extensions.AI.Abstractions 10.11.0, the Microsoft.Extensions.* hosting packages 10.0.14, OpenTelemetry.Api.ProviderBuilderExtensions 1.20.1, Microsoft.EntityFrameworkCore.Sqlite 10.0.14 and StackExchange.Redis 3.4.31 in .NET, and redis, tokio and serde_json in the CLI. The changelog has the table.
  • Releases publish only through trusted publishing, on nuget.org and crates.io. No registry key or token is stored anywhere. Each release is published by the GitHub workflow that built it.

What’s still open

  • Rust sync throughput with many runs at once may be a little lower than in preview.2 (#53). On the benchmark machine, preview.3 gave 301,000 to 371,000 transitions a second with 16 and 64 runs at once, and preview.2 gave 303,000 to 447,000. It may be a small regression, or how noisy that scenario is on that machine. It isn’t settled (RESULTS.md, finding 4). Async and inline handlers measured the same in both versions.
  • The rest is on the Known limitations page, which we update with every release. If one of them blocks you, tell us in an issue. That’s how we choose what to build next.

Next: 0.9.0

We don’t plan a preview.4. The next release is planned as 0.9.0, without the preview label. Until then, Strata is a preview, and the API can still change. The roadmap lists what 0.9.0 needs before it ships, and what comes after it on the way to 1.0.

If you upgrade and something breaks, or a graph fails with STRATA_ERR_NO_TERMINAL when you don’t think it should, please open an issue. I’d rather hear about it now than after 0.9.0.

© 2026 Datalium Inc. All Rights Reserved.Datalium Strata is open source under the Apache 2.0 license. A Datalium product.