Skip to content
These docs cover Strata 0.9.0-preview.3.It is a preview, and the API can still change before 1.0.

Wire format

The .NET and Rust engines share no code. They share a wire format: JSON records with a JSON Schema each, and fixtures that both engines’ tests read. This page lists the records, the versions of each, which Strata versions read which, and how to upgrade without breaking a reader.

For why the format exists and which stores both engines can share, see What the two engines share. For the fields of a checkpoint, see What a checkpoint holds. This page doesn’t repeat them.

The canonical source is schema/README.md in the framework repository.

There are four records. Each schema is JSON Schema 2020-12, one file per record.

Record Schema Written by Read by
Checkpoint checkpoint.schema.json Both engines, through a checkpoint store Both engines, and the strata CLI
Graph definition graph-definition.schema.json ToDefinition() in C#, to_definition() in Rust strata graph validate and strata graph view, and .NET’s GraphDefinition.ToTopology()
History record history-record.schema.json Both engines, through a history store Both engines
Memory record memory-record.schema.json Both engines, through a memory store Both engines

A memory store keeps a record in its own columns, not as one JSON document. The memory record schema is the record’s JSON form, used by the fixtures. See Long-term memory.

A few rules hold for every record:

  • The encoding is JSON, read and written with serde_json and System.Text.Json.
  • Timestamps are RFC 3339 strings, such as 2026-09-16T00:00:00Z, not native date types. The two serializers disagree on details like Z against +00:00, so the format treats a timestamp as text.
  • Your state is not normalized. A checkpoint’s frozen_state is your state’s JSON as your engine wrote it. For a thread to move between languages, both state types must use the same JSON field names. See Sharing a thread across languages.

This is fixtures/checkpoint-lifecycle/frozen.json: a thread interrupted before a wire transfer. It uses nothing newer than the first version, so it is 1.0.0.

{
"schema_version": "1.0.0",
"thread_id": "thread_hitl_demo",
"status": "interrupted",
"suspended_node": "PrepareWireTransfer",
"next_node": "ExecuteWireTransfer",
"frozen_state": {
"invoice_generated": true,
"amount": 4200.5,
"currency": "USD",
"approved_by": null,
"is_completed": false
},
"metadata": null,
"created_at": "2026-09-16T00:00:00Z",
"resumed_at": null
}

The same thread written by a graph compiled with an identity is identified.json. It has one more key, "graph": { "id": "wire-transfer", "version": "2" }, and so its schema_version is 1.6.0.

Every record carries a schema_version. A writer writes the lowest version that can hold what it has to say. So a version appears only when a record uses the feature that needs it, and everything else stays byte for byte as it was.

A checkpoint takes the highest version among the features it uses, at any level of nesting.

Version Written for a checkpoint that Feature
1.0.0 uses none of the features below. It has no nested or decision key. The base record
1.1.0 carries a nested child checkpoint. Subgraphs
1.2.0 has the status cancelled, or nests a cancelled checkpoint. Cancellation
1.3.0 carries a decision. Typed human signals
1.4.0 has the status ended, at every level, with no next_node. Ending a thread
1.5.0 carries a wait. Event waits and timers
1.6.0 carries a graph: the identity of the graph that wrote it. Graph identity
1.7.0 has the status running, at every level. Durable execution (EveryNode)
1.8.0 is stored as a delta. Store only. Delta checkpoints
1.9.0 refers to an offloaded value. Store only. Value offload

Each version from 1.0.0 to 1.7.0 is a superset of the ones before. For example, an identified checkpoint (1.6.0) can also be ended, wait, carry a decision, be cancelled or nest. A completed checkpoint, written under EveryNode when a run finishes, takes the version its content needs: 1.0.0 for a plain one.

1.8.0 and 1.9.0 are different. They describe a row as a store saves it when you turn on deltas or offload: each level’s frozen_state is an envelope that names the changes since an earlier row, or the blobs that hold large values. Only a store writes these versions, and every store decodes them back to the checkpoint that was saved, whatever its own options. The engine, your observers and your code never see them. The envelope format is in schema/README.md.

A graph definition carries a version per level. A subgraph’s or map’s inner graph carries its own, so one file can hold a 1.6.0 level with a 1.1.0 level inside it.

Version Written for a level that
1.0.0 uses none of the features below. It has no kind, branches or graph key.
1.1.0 has a parallel group or a subgraph (a node with a kind).
1.2.0 has a parallel group with a join.
1.3.0 has a map node.
1.4.0 has a wait node.
1.5.0 has an identity.
1.6.0 has an interrupt boundary (a node with an interrupt).

Each version is a superset of the one before. strata graph validate, strata graph view and ToTopology() refuse a version they don’t know, at any level, with exit code 2 in the CLI. See the CLI reference.

Both have one version, 1.0.0.

The packages, the crates and the CLI share one version. The changelog lists, for each version, the highest record versions it writes and the ones it reads.

Strata 0.9.0-preview.1 to 0.9.0-preview.3 Writes up to Reads
Checkpoint 1.7.0. A store with deltas on writes 1.8.0 for a row stored as a delta, and one with offload on writes 1.9.0 for a row that refers to a blob. 1.0.0 to 1.9.0. A store decodes 1.8.0 and 1.9.0 rows.
Graph definition 1.6.0 1.0.0 to 1.6.0
History record 1.0.0 1.0.0
Memory record 1.0.0 1.0.0
Database, checkpoints component 2 0 and 1, migrated when a store opens them, and 2
Database, history component 1 0, migrated when a store opens it, and 1
Database, memory component 1, written by a memory store only 1

0.9.0-preview.1 is the first version with a number. Before it, applications pinned a commit of the repository.

For the Strata Cloud private beta: Strata Cloud must accept checkpoint versions 1.6.0 and 1.7.0 before a graph with an identity, or one compiled with EveryNode, can save there.

These are the rules every version of Strata follows. They come from schema/README.md.

  1. A record’s version changes only when its content needs it. A graph that uses nothing new writes what it always wrote, byte for byte. A plain checkpoint is still 1.0.0.
  2. Every version is a superset of the one before. A runtime that reads version N reads every version below it.
  3. A runtime refuses what it doesn’t know. A checkpoint, a graph definition or a database newer than the runtime is an error, never a guess. For example, a resume of a checkpoint with an unknown version fails with checkpoint for thread '<id>' has unsupported schema_version '<version>'.
  4. A version of Strata reads everything every earlier version wrote. Dropping support for a schema version takes a major version.
  5. Databases move forward only, one recorded step at a time.
  6. Redis has no migrations. Every writer to a Redis prefix must be current, because the scripts that keep the thread index are part of the writer.

So the format only grows: each version adds to the one before and removes nothing.

Record versions and database versions are two separate things:

  • A record version is the schema_version inside one checkpoint, definition or record. It says what that one record holds.
  • A database version is the version of a store’s own tables. It says what layout the database has.

Every SQL database records its layout in a strata_schema_version table, with one row per component: checkpoints (the checkpoint log, the thread head table, leases and blobs), history, and memory when a memory store uses the database. No row means version 0: a database from before the table, or an empty one. The Redis memory store keeps its version in the {prefix}:memory:schema key.

When a store opens a database that is behind, it runs the missing steps in one transaction and records the version it reached. Two stores opening one database at once don’t interleave. To run migrations in a deploy step instead, see Decide when the tables are migrated.

A store refuses a database newer than itself, and leaves it unchanged:

database is at checkpoints schema version 3, and this build knows 2: upgrade the runtime

Since 0.9.0-preview.1, the checkpoints component is at version 2, which adds the checkpoint_blobs table for offload. A current store moves a database to version 2 when it opens it, whether or not it offloads. From then on, an older runtime refuses that database.

Upgrade every reader before any writer starts writing something new.

  1. Deploy the new version everywhere a thread can be read. That means the workers, your API, any service that loads threads, and the strata CLI. The CLI is a reader: it reads checkpoints through the Rust stores, and in CI it reads your exported graph definitions.
  2. Then let a current store open a shared SQL database. It migrates the database, and older runtimes then refuse it.
  3. Then turn on what writes a new version: a graph identity, a wait, EveryNode, deltas, offload. For graph definitions, upgrade the CLI that checks them in CI before you export a graph that needs a newer version, such as one with an interrupt boundary (1.6.0).

A reader you missed refuses the new record or database with an error rather than misreading it. In Redis, upgrade every writer to a prefix together too (rule 6): the scripts that keep the thread index are part of the writer, and there is no migration to bring them up to date.

The stores share their database layouts as well as the records: the same tables in SQLite and Postgres, and the same keys in Redis. So a thread that one engine paused can be resumed by the other. One exception: SQLite history isn’t shared between the engines. The table of what’s shared, per store, is in Resuming a thread in the other language.

The full layouts, with every table, column and Redis key, are in schema/README.md.

The fixtures in schema/fixtures/ are what keep the two engines in step. Both test suites read the same files by relative path. Nothing is copied.

Folder What both engines prove with it
*.sample.json One sample per record. Deserializing and serializing it again gives the same bytes.
checkpoint-lifecycle/ One checkpoint per status and feature: interrupted, failed, nested, cancelled, with a decision, ended, waiting, identified, running and completed. Each engine writes exactly these from a live run, timestamps aside, and resumes or refuses them as expected.
checkpoint-log/ The store layouts: the expected columns of each SQL table, the raw rows a checkpoint becomes, the Redis keys, the schema versions, and the rows of delta and offloaded checkpoints. The CLI’s tests read them too.
checkpoint-query/ A seed log and the pages that each thread listing must return, in every store.
graph-export/ The exact definition each engine must export for a fixed graph.
graph-validation/ Graphs to accept or reject. Both validators and the CLI give the same errors, in the same order.
history-log/ and memory/ The history and memory store layouts, a memory record, and the memory search cases.
cloud/ Recorded requests and responses of the Strata Cloud client, for the Strata Cloud private beta.

The scheduler/, tools/ and ai/ folders aren’t wire formats. They are behavior cases, such as the agent loop and the run scheduler’s admission rules, that both engines replay through their public APIs.

A change to a record starts with its schema file, then the fixtures, then the Rust and C# types together, in one change. It merges only when both test suites pass. No test runs both engines against one database. Demo 09-cross-language-interop makes that hand-off by hand (C#, Rust).

The format is versioned, tested in both engines and has migrations, but the formal spec isn’t written yet. Until it is, the schema files and the rules in schema/README.md are the reference. See Known limitations. The spec is one of the things 0.9.0 needs before it ships (see the Roadmap).