<!-- https://tinyactors.dev/changelog/ -->
# tinyactors changelog

Kind: reference. For: [Tech lead who approves dependencies](https://tinyactors.dev/audiences/tech-lead.xml), [Agent-platform engineer](https://tinyactors.dev/audiences/agent-platform.xml).
Voice: [Reference](https://tinyactors.dev/voices/reference.xml).

> Every release of tinyactors for Node.js, browsers, Python and C: what changed, and what a program must change to upgrade.

- [@tinyactors/node 0.4.0](#node-0-4-0)
- [tinyactors 0.4.0](#python-0-4-0)
- [@tinyactors/wasm 0.4.0](#wasm-0-4-0)
- [tinyactors-core 0.5.0](#c-0-5-0)

## @tinyactors/node (Node.js and Bun)

<a id="node-0-4-0"></a>

### @tinyactors/node 0.4.0, 19 November 2026

#### Summary

This release gives both packages, `@tinyactors/node` and `@tinyactors/wasm`, an application API, and it breaks every program written for 0.3.0 (6a5e1d4). A `Host` is now made from its charts and a system name. An I/O processor is an object with `receive`. Handlers no longer take the host: views and records carry `host`. `spawn` takes a chart's name and returns an `Actor` that you can send to, ask and wait on. A `store` and a `resident` bound on the host hibernate the surplus after each turn and load an actor back when it is wanted again (an event, a due delayed send, a migration). A `Spawner` processor spawns actors by name. `compileDir` compiles a directory. `onDone` and `onError` report how an actor ended, and `onHandlerError` gets what a handler threw. Errors of the commonest statuses have their own classes (`StaleError`, `StateError`, `InvalidError`, `UnsupportedError`); any other status stays a `TinyactorsError`. `decodeTraces` reads OTLP spans without a host, and `version` gives the installed version.

The native "ecmascript" datamodel now runs every session in the host's one shared context (2081069). Before, a chart whose scripts declared top-level names got a context of its own per session, which cost about 143 KB a session on node and 60 KB on bun. A chart-level script's functions become helpers that all of the chart's sessions share. A top-level `var` stays a session variable. A top-level `let`, `const` or `class` is refused, and the compile call warns about each top-level declaration, `var` included (an error with the warnings-as-errors option).

The README and the guides are grouped as the application API, operating a host and the wire format. A new guide covers sends to an actor that is not there, and the chat-rooms example is rebuilt on the new API.

#### Upgrading

- `Host` (6a5e1d4): `new Host(config, options)` becomes `new Host(charts, options)`, where `charts` (`Charts`) is a compile result, image bytes or an array of them, added when the host is made. `Host.restore(snapshot, charts, options)` likewise. `host.addCharts` is removed: use `compileCharts` and pass the result to `new Host` (or to the host's addImage method). `host.spawnChart` is removed: `host.spawn` takes a chart's name or a `ChartRef` and returns an `Actor` (the actor's id is the session). `host.actorByName(name)` is removed: use `host.actor(name)`, which throws `StaleError` when no actor has that name, or `await host.actors({chart})`. `send`, `fail`, `terminate`, `hibernate` and `wake` also accept an `Actor`.
- `HostConfig` and `HostOptions` (6a5e1d4): `systemID` and `ioProcessors` move out of the config. Pass `system` in the options, and the rest of the config as `config`. A config that holds either of them is a `TypeError`. The system name "tinyactors-ask" is reserved for `ask`'s replies: a host with that system is refused. `IOProcessorConfig` is removed, and `EffectiveHostConfig.ioProcessors` is now a list of `{type, location}`.
- I/O processors (6a5e1d4): a handler function becomes an `IOProcessor` object with `receive(send)` and an optional `location`. A plain function is a `TypeError`.
- Handlers take no host (6a5e1d4): drop the first parameter of `transport`, `log`, `telemetry`, `migrated`, `migrationDone`, a service's handler, `Service`'s `receive` and `stop`, and a typed method's `OnResult` and `OnError`. Read `send.host` instead. `Send`, `LogEntry`, `Migrated` and `Invocation` gain `host`, and `Send` gains `sender`, an `Actor`.
- The `wake` option is removed (6a5e1d4): give the host a `store` (`MemoryStore`, `SQLiteStore`, or your own `Store`) and a `resident` bound.
- `compileCharts` and `compileSystem` (6a5e1d4): the resolver moves into the options, so `compileCharts(sources, resolver)` becomes `compileCharts(sources, {resolver})` (`CompileOptions` gains `resolver`). `directoryResolver` and `AddChartsOptions` are removed: use `compileDir`.
- `MigrateOptions`, `SessionParams` and `SendMessage` (6a5e1d4): their session or target may also be an `Actor`. Nothing to change.
- Native "ecmascript" charts (2081069): turn a top-level `let`, `const` or `class` into a `<data id="...">` that the script assigns. A chart-level function that read session variables by name must take them as arguments. A top-level `var` keeps working. A function a script of executable content declares is now that run's own, no longer a variable of the session. The compile call now warns about every top-level `let`, `const`, `class` and `var`, in any chart, quickjs's included, since it cannot know the datamodel: a build that compiles with the warnings-as-errors option fails on them, so move such names into `<data>` or drop that option. A native-datamodel snapshot taken with 0.3.0 that holds sessions is refused by `Host.restore`, because a session row now has 7 parts instead of 8.
- The `Spawner` (655fe3c) spawns the chart's current version under the requested name and answers `spawned` with `{name, address}`. It does not look the name up. This change affects no released version.

[Every change in this release](https://github.com/tinyactors-dev/tinyactors/blob/main/tinyactors-napi/CHANGELOG.md#040---2026-11-19)

<a id="node-0-3-0"></a>

### @tinyactors/node 0.3.0, 18 November 2026

#### Summary

This release replaces the package again. 0.2.0's xstate-style API is removed (70434be), and `@tinyactors/node` is a new Node-API addon over core's host (387366b, 470d320). Its direct layer mirrors core's C API: a `Host` with its inputs, handlers and typed methods, `compileCharts` and `compileSystem`, `encode` and `decode`. A convenience layer adds `host.addCharts`, `host.spawnChart`, `directoryResolver`, and a promise from a typed method given no handler (33fdeab). Charts run on a native "ecmascript" datamodel by default, or in the quickjs sandbox, which stops an evaluation at 1 GiB by default (7b19ec8). Hibernation, migration, snapshots, invoked services, telemetry and other systems are in the API.

`@tinyactors/wasm` is new: the same API as WebAssembly, for browsers, Workers and platforms with no addon (Windows), and for Node.js and Bun. Both packages share one version and this changelog, and each refuses the other's snapshots.

The package is ESM only. A chart that invokes a type with no service gets `error.communication`, and the turn no longer throws (eec9515). A config with no `system.traceSeed` gets a random one (19d8ee2). The addon's functions have the names and lengths `index.d.ts` declares, and its accessors are not enumerable, as a class's are (307db2f).

#### Upgrading

- **The package is ESM only.** 0.2.0 was CommonJS; 0.3.0 is an ES module and asks for Node.js 22.3 or later, the first with process.getBuiltinModule, which the native datamodel uses (0.2.0 asked for 22.12). From CommonJS, `await import('@tinyactors/node')` works on every supported version, and `require('@tinyactors/node')` works on 22.12 and later.
- **The 0.2.0 API is removed, with no compatibility layer** (70434be). The concepts map as follows:
  - createActor and Actor → `host.spawn(host.chart(name))` or `host.spawnChart(name)`, which return a session; send, stop and getSnapshot → `host.send`, `host.terminate`, and the typed methods `actorState` and `actorContext`. Subscriptions: none.
  - createSystem, System and SystemOptions → `new Host(config, options)`: the id is the config's `systemID`, logger the `log` handler, clock a `SimulatedClock`, restore `Host.restore`. A System's get → `host.actorByName`, stats → `hostStats`, flush → `host.idle()`, sendMany → `host.sendMany`, snapshot → `host.snapshot()`, reload → `host.addImage` of a new image and `host.migrate`. export and adopt: none.
  - HibernationStore, HibernationOptions and createMemoryStore → `host.sweep`, `host.hibernate`, the `wake` handler and `host.wake`. The store is the application's: no replacement for createMemoryStore.
  - Links (createLink, createStoreLink, serveLinks, Envelope, the frames, deliver, ref) → the `transport` handler for sends to other systems and `host.send` with an `Address` for what arrives; parseAddress and formatAddress → `Address`.
  - createMachine, setup, fromSCXML, StateMachine, SCXMLLogic and the action and guard helpers (assign, raise, sendTo, sendParent, log, cancel, stateIn, and, or, not): none. Charts are SCXML, compiled with `compileCharts`.
  - `compileSystem` keeps its name and takes a manifest `Source` and a resolver, returning a `Compiled`; loadImage and SystemImage → `host.addImage` and `host.boot`.
  - encodeValue and decodeValue (0.2.0's tagged JSON) → `encode` and `decode` (CBOR, the value table), which do not read the old encoding; encodeWire, decodeWire and WireValue: none.
- **Names kept with other meanings.** `SendOptions` were the options of the send actions (delay, id); they are now `host.send`'s (`sendid`, `traceparent`, `origin`). `MigrateOptions`: timeoutMs is now `timeout` (milliseconds of the host's clock), `chart` and `session` choose what moves, `wake` defaults to false, and an unknown option throws. `MigrationResult` reaches the `migrationDone` handler instead of a promise; `pending` is a list of sessions (bigints), `migration` names the migration, and `failed`, a count in 0.2.0, is a list of `{session, reason}`: read `result.failed.length` for the number (43deb01). `StateValue` keeps its shape, read-only, as `actorState`'s `value`.
- **A stored blob needs a snapshot to survive a restart, as in 0.2.0.** A host wakes only a session it knows as hibernated: its record, mailbox and timers stay in the host, not in the blob. A new host refuses another host's blob, even one of the same session number (934d62d). To keep hibernated actors across a restart, store `host.snapshot()` with the blobs and start with `Host.restore`. Blobs and snapshots of earlier builds are refused, and images compiled by earlier builds run a `<script>` in executable content the old way: hibernate, snapshot and compile again with this release (fa0f761).
- A migration with no timeout fails an actor that runs invocations at once, where it waited for ever; pass a `timeout` to wait (79bb556).
- `wake` refuses a blob older than the session's latest hibernation with `TA_ERROR_STALE`: keep the latest blob (dcbe4f0).
- `send.answer()` and `send.fail()` return false when the sender has ended, as when it ends while the handler's promise is pending, instead of throwing `TA_ERROR_STALE`; a closed host, or a second answer or fail, still throws (eec9515).
- Unreleased builds only: the `...Async` methods are gone (33fdeab), and 708bdf9, ceb8adb, cac5ba6, 59d54bc, 3fc0b07, 31a56df, 2b810c6, 309fb66, 5bccb45, ff162e3 and 997706b changed the 0.2.0 code before its removal and need nothing beyond the rewrite.

[Every change in this release](https://github.com/tinyactors-dev/tinyactors/blob/main/tinyactors-napi/CHANGELOG.md#030---2026-11-18)

<a id="node-0-2-0"></a>

### @tinyactors/node 0.2.0, 6 October 2026

#### Summary

This release replaces the package. `@tinyactors/node` 0.2.0 is the Node.js binding built from `tinyactors-core/bindings/node`, and its API is a new one (ea4113b). It is xstate-style: machines from `createMachine` or `setup`, actors from `createActor`, SCXML through `fromSCXML`, compiled systems through `compileSystem` and `loadImage`, and links between systems through `serveLinks`. A few names carry over from 0.1.0 (`createSystem`, `System`, `SystemOptions`, `Actor`, `SendOptions`) with new shapes and meanings.

It installs the same way as 0.1.0: a prebuilt addon per platform (darwin-arm64, darwin-x64, linux-x64, linux-arm64) as an optional dependency, with one Linux addon for glibc and musl, so nothing compiles on install. It runs on Node.js 22.12 or later and on Bun.

The commits listed below from before the replacement changed the 0.1.0 addon, which this release no longer contains.

#### Upgrading

- The 0.1.0 API is removed, with no compatibility layer: its system API (statechart definitions, post and send with their results, loaders, the debug adapter, and the tracing and metrics helpers) is gone. Rewrite callers against the xstate-style API: `createMachine` and `createActor` for a machine, `fromSCXML` for an SCXML document (ea4113b).
- `createSystem`, `System`, `SystemOptions`, `Actor` and `SendOptions` keep their names but not their shapes: check each use against the new declarations.
- The changes the 0.1.0 addon went through before it was removed (caf78df, 1d4f458, bb87794, 0bc6cfa, 6a6a1fa, 482417e, 28a0ccb, 19cd181, 904b335, 93c3d46, ccd6d63, bc82ab4, 206cdb4, 3edae90) need nothing beyond that rewrite.

[Every change in this release](https://github.com/tinyactors-dev/tinyactors/blob/main/tinyactors-napi/CHANGELOG.md#020---2026-10-06)

## tinyactors (Python)

<a id="python-0-4-0"></a>

### tinyactors 0.4.0, 19 November 2026

#### Summary

This release is about writing applications rather than driving the C API. A `Host` now takes its compiled charts and its `system` at creation; I/O processors are objects with `receive(send)`; handlers no longer take the host; `spawn` returns an `Actor` you send to, inspect and `await actor.ask(...)`; and a `store` with `resident` hibernates the surplus and wakes actors for you (MemoryStore and SQLiteStore are provided). `compile_dir`, the `Spawner` I/O processor, `on_done`, `on_error`, `on_handler_error`, error classes for the commonest statuses (`StaleError`, `StateError`, `InvalidError`, `UnsupportedError`; any other stays a `TinyactorsError`), `decode_traces`, `__version__` and awaitable typed methods under asyncio fill in the rest. The README now leads with this API, then "Operating a host" and "Wire format"; a guide covers a send to an actor that is not there, and a chat server ships as an example.

Sends follow SCXML more closely: a sender waits until its send is decided (at once for a send the host delivers itself, at the ack of the batch for one it hands to an I/O processor), so a processor that answers in its handler is answered before the sender goes on, and the `sync` option is gone; sends to other systems go to the host's `transport`, as a `send.message` the other side passes to `host.send`.

Stored state is safer: `wake` refuses an older blob or another host's, and a finished migration lists the sessions it could not move and why. Also new: `error.execution` carries a reason and message, quickjs has a 1 GiB default memory limit, and a host whose config sets no trace seed gets a random one.

#### Upgrading

- **Creating a host** (9c84f1c): pass the images to `Host` (a `Compiled`, image bytes or a list) and the system id as `system=` instead of systemID in the config; `config=` holds the rest. `Host.restore` takes the snapshot and the charts.
- **Handlers** (9c84f1c): an I/O processor is an object with `receive(send)` and an optional `location`, given in `io_processors`. Every handler loses its host parameter (`receive(send)`, `log(entry)`, `telemetry(signal, data)`, a service's `handler(invocation)`, `migration_done(result)`, a typed method's `handler(result)` and `on_error(error)`, ...); read `view.host` where you need it.
- **Actors** (9c84f1c): `spawn` takes a chart's name or a ChartRef and returns an `Actor` (its `id` is the session); every call that takes a session takes an `Actor`. Replace `actor_by_name(name)` with `host.actor(name)`, which raises `StaleError` instead of returning `None`. `await host.actors(chart=...)` lists the live ones.
- **Hibernation** (9c84f1c, dcbe4f0): replace `wake=` with `store=` (save, load, delete), and `resident=` for a bound on resident actors. `wake` now raises `TA_ERROR_STALE` for a blob older than the session's last hibernation: give it the latest one. A blob of another `Host` raises `TA_ERROR_INVALID` (a848f66): wake a blob only in the host that wrote it, or in one restored from its snapshot.
- **Compiled images and drivers** (ca00eff): `Compiled.image` is `bytes`, copied at its first read and kept after `close()` (a first read after `close()` raises `TA_ERROR_STALE`, so read it before); drop `memoryview(compiled.image)` and `bytes(compiled.image)`, and `close()` no longer raises `BufferError`. `host.run()` is removed: wait for timers with `async with` and `await host.idle()`, or test with a `SimulatedClock` and `run_until_idle()`.
- **Sends wait** (d7db9ad): drop `sync` from every `ioProcessors` entry (the config refuses it). A slow handler now delays its sender, so hand the message on and return.
- **Other systems** (f4c2819, f53ae02, bf0b8a1): drop the `remote` entry from `ioProcessors` and give `Host(..., transport=handler)`; without a transport each such send fails, and an `async def` transport needs `async with`. The transport moves `send.message` and the other side gives it to `host.send` unchanged; report a failure with `Host.fail(target, sendid)`. `send.origin` and the transport's `send.target` are `Address` values (`str(...)` or `.text` for the text). Charts no longer see a `tinyactors` entry in `_ioprocessors`, and a `<send>` can no longer name it as a type.
- **Answers to an ended sender** (34e8372): `send.answer()` and `send.fail()` return `False` instead of raising `TA_ERROR_STALE`; check the result.
- **Migration results** (43deb01): `migration_done`'s `result["failed"]` is a list of `{session, reason}`, not a count; use `len(result["failed"])` for the number.
- **Scripts in executable content** (fa0f761): compile older images again. On the ECMAScript datamodel a `let`, `const` or `class` in a `<script>` of a transition, `<onentry>` or `<onexit>` is now local to each run; declare a name later expressions read in a chart-level script or a `<data>`.
- **Spawner** (da0656f): new in this release, it spawns the chart's current version under the name each time and answers `spawned` with `{name, address}`; it does not look the name up, so one actor should own each name. `Host.locate`, added and removed during this release, is not in it.
- **Inspecting a hibernated actor** (712305d): the actor.state method (`state()` on an `Actor`) now refuses a hibernated actor with reason `state` instead of answering `{}`; wake it first.
- **Migrating what is not there** (0a231a5): `host.migrate` now raises `TA_ERROR_INVALID` for a chart name the host does not have and `TA_ERROR_STALE` for a session that ended, where the migration used to end at once with nothing moved.

[Every change in this release](https://github.com/tinyactors-dev/tinyactors/blob/main/tinyactors-cpython/CHANGELOG.md#040---2026-11-19)

<a id="python-0-1-0"></a>

### tinyactors 0.1.0, 15 October 2026

#### Summary

The first release of tinyactors for Python: SCXML statecharts run as actors
in a host, driven from Python. Charts can be written with Python as their
datamodel, or in ECMAScript (quickjs). A host can be driven from a script or
from asyncio, and the values actors exchange are plain Python objects. The
extension is a direct layer over the C library: each method mirrors one of
its calls, and the package's API map names the call behind each one.

Besides compiling charts, spawning actors and sending events, the release
exposes the rest of the host. Actors can hibernate to blobs the application
stores and later wake from them. Running actors can migrate to a new version
of their chart. A whole host can be snapshotted and restored, in this
process or another one. Charts can invoke services the application
registers, systems talk to each other through an I/O processor the
application supplies, and the host emits OpenTelemetry traces, logs and
metrics as OTLP bytes for the application to send on.

It ships as one wheel per platform for CPython 3.13 and later (the stable
ABI): macOS on Apple silicon and Intel, and Linux on x86-64 and arm64.
There is no source distribution, and the free-threaded interpreters are not
supported yet. The package is alpha: its API can change in later 0.x
releases.

[Every change in this release](https://github.com/tinyactors-dev/tinyactors/blob/main/tinyactors-cpython/CHANGELOG.md#010---2026-10-15)

## @tinyactors/wasm (Browsers)

<a id="wasm-0-4-0"></a>

### @tinyactors/wasm 0.4.0, 19 November 2026

#### Summary

This release gives both packages, `@tinyactors/node` and `@tinyactors/wasm`, an application API, and it breaks every program written for 0.3.0 (6a5e1d4). A `Host` is now made from its charts and a system name. An I/O processor is an object with `receive`. Handlers no longer take the host: views and records carry `host`. `spawn` takes a chart's name and returns an `Actor` that you can send to, ask and wait on. A `store` and a `resident` bound on the host hibernate the surplus after each turn and load an actor back when it is wanted again (an event, a due delayed send, a migration). A `Spawner` processor spawns actors by name. `compileDir` compiles a directory. `onDone` and `onError` report how an actor ended, and `onHandlerError` gets what a handler threw. Errors of the commonest statuses have their own classes (`StaleError`, `StateError`, `InvalidError`, `UnsupportedError`); any other status stays a `TinyactorsError`. `decodeTraces` reads OTLP spans without a host, and `version` gives the installed version.

The native "ecmascript" datamodel now runs every session in the host's one shared context (2081069). Before, a chart whose scripts declared top-level names got a context of its own per session, which cost about 143 KB a session on node and 60 KB on bun. A chart-level script's functions become helpers that all of the chart's sessions share. A top-level `var` stays a session variable. A top-level `let`, `const` or `class` is refused, and the compile call warns about each top-level declaration, `var` included (an error with the warnings-as-errors option).

The README and the guides are grouped as the application API, operating a host and the wire format. A new guide covers sends to an actor that is not there, and the chat-rooms example is rebuilt on the new API.

#### Upgrading

- `Host` (6a5e1d4): `new Host(config, options)` becomes `new Host(charts, options)`, where `charts` (`Charts`) is a compile result, image bytes or an array of them, added when the host is made. `Host.restore(snapshot, charts, options)` likewise. `host.addCharts` is removed: use `compileCharts` and pass the result to `new Host` (or to the host's addImage method). `host.spawnChart` is removed: `host.spawn` takes a chart's name or a `ChartRef` and returns an `Actor` (the actor's id is the session). `host.actorByName(name)` is removed: use `host.actor(name)`, which throws `StaleError` when no actor has that name, or `await host.actors({chart})`. `send`, `fail`, `terminate`, `hibernate` and `wake` also accept an `Actor`.
- `HostConfig` and `HostOptions` (6a5e1d4): `systemID` and `ioProcessors` move out of the config. Pass `system` in the options, and the rest of the config as `config`. A config that holds either of them is a `TypeError`. The system name "tinyactors-ask" is reserved for `ask`'s replies: a host with that system is refused. `IOProcessorConfig` is removed, and `EffectiveHostConfig.ioProcessors` is now a list of `{type, location}`.
- I/O processors (6a5e1d4): a handler function becomes an `IOProcessor` object with `receive(send)` and an optional `location`. A plain function is a `TypeError`.
- Handlers take no host (6a5e1d4): drop the first parameter of `transport`, `log`, `telemetry`, `migrated`, `migrationDone`, a service's handler, `Service`'s `receive` and `stop`, and a typed method's `OnResult` and `OnError`. Read `send.host` instead. `Send`, `LogEntry`, `Migrated` and `Invocation` gain `host`, and `Send` gains `sender`, an `Actor`.
- The `wake` option is removed (6a5e1d4): give the host a `store` (`MemoryStore`, `SQLiteStore`, or your own `Store`) and a `resident` bound.
- `compileCharts` and `compileSystem` (6a5e1d4): the resolver moves into the options, so `compileCharts(sources, resolver)` becomes `compileCharts(sources, {resolver})` (`CompileOptions` gains `resolver`). `directoryResolver` and `AddChartsOptions` are removed: use `compileDir`.
- `MigrateOptions`, `SessionParams` and `SendMessage` (6a5e1d4): their session or target may also be an `Actor`. Nothing to change.
- Native "ecmascript" charts (2081069): turn a top-level `let`, `const` or `class` into a `<data id="...">` that the script assigns. A chart-level function that read session variables by name must take them as arguments. A top-level `var` keeps working. A function a script of executable content declares is now that run's own, no longer a variable of the session. The compile call now warns about every top-level `let`, `const`, `class` and `var`, in any chart, quickjs's included, since it cannot know the datamodel: a build that compiles with the warnings-as-errors option fails on them, so move such names into `<data>` or drop that option. A native-datamodel snapshot taken with 0.3.0 that holds sessions is refused by `Host.restore`, because a session row now has 7 parts instead of 8.
- The `Spawner` (655fe3c) spawns the chart's current version under the requested name and answers `spawned` with `{name, address}`. It does not look the name up. This change affects no released version.

[Every change in this release](https://github.com/tinyactors-dev/tinyactors/blob/main/tinyactors-napi/CHANGELOG.md#040---2026-11-19)

<a id="wasm-0-3-0"></a>

### @tinyactors/wasm 0.3.0, 18 November 2026

#### Summary

This release replaces the package again. 0.2.0's xstate-style API is removed (70434be), and `@tinyactors/node` is a new Node-API addon over core's host (387366b, 470d320). Its direct layer mirrors core's C API: a `Host` with its inputs, handlers and typed methods, `compileCharts` and `compileSystem`, `encode` and `decode`. A convenience layer adds `host.addCharts`, `host.spawnChart`, `directoryResolver`, and a promise from a typed method given no handler (33fdeab). Charts run on a native "ecmascript" datamodel by default, or in the quickjs sandbox, which stops an evaluation at 1 GiB by default (7b19ec8). Hibernation, migration, snapshots, invoked services, telemetry and other systems are in the API.

`@tinyactors/wasm` is new: the same API as WebAssembly, for browsers, Workers and platforms with no addon (Windows), and for Node.js and Bun. Both packages share one version and this changelog, and each refuses the other's snapshots.

The package is ESM only. A chart that invokes a type with no service gets `error.communication`, and the turn no longer throws (eec9515). A config with no `system.traceSeed` gets a random one (19d8ee2). The addon's functions have the names and lengths `index.d.ts` declares, and its accessors are not enumerable, as a class's are (307db2f).

#### Upgrading

- **The package is ESM only.** 0.2.0 was CommonJS; 0.3.0 is an ES module and asks for Node.js 22.3 or later, the first with process.getBuiltinModule, which the native datamodel uses (0.2.0 asked for 22.12). From CommonJS, `await import('@tinyactors/node')` works on every supported version, and `require('@tinyactors/node')` works on 22.12 and later.
- **The 0.2.0 API is removed, with no compatibility layer** (70434be). The concepts map as follows:
  - createActor and Actor → `host.spawn(host.chart(name))` or `host.spawnChart(name)`, which return a session; send, stop and getSnapshot → `host.send`, `host.terminate`, and the typed methods `actorState` and `actorContext`. Subscriptions: none.
  - createSystem, System and SystemOptions → `new Host(config, options)`: the id is the config's `systemID`, logger the `log` handler, clock a `SimulatedClock`, restore `Host.restore`. A System's get → `host.actorByName`, stats → `hostStats`, flush → `host.idle()`, sendMany → `host.sendMany`, snapshot → `host.snapshot()`, reload → `host.addImage` of a new image and `host.migrate`. export and adopt: none.
  - HibernationStore, HibernationOptions and createMemoryStore → `host.sweep`, `host.hibernate`, the `wake` handler and `host.wake`. The store is the application's: no replacement for createMemoryStore.
  - Links (createLink, createStoreLink, serveLinks, Envelope, the frames, deliver, ref) → the `transport` handler for sends to other systems and `host.send` with an `Address` for what arrives; parseAddress and formatAddress → `Address`.
  - createMachine, setup, fromSCXML, StateMachine, SCXMLLogic and the action and guard helpers (assign, raise, sendTo, sendParent, log, cancel, stateIn, and, or, not): none. Charts are SCXML, compiled with `compileCharts`.
  - `compileSystem` keeps its name and takes a manifest `Source` and a resolver, returning a `Compiled`; loadImage and SystemImage → `host.addImage` and `host.boot`.
  - encodeValue and decodeValue (0.2.0's tagged JSON) → `encode` and `decode` (CBOR, the value table), which do not read the old encoding; encodeWire, decodeWire and WireValue: none.
- **Names kept with other meanings.** `SendOptions` were the options of the send actions (delay, id); they are now `host.send`'s (`sendid`, `traceparent`, `origin`). `MigrateOptions`: timeoutMs is now `timeout` (milliseconds of the host's clock), `chart` and `session` choose what moves, `wake` defaults to false, and an unknown option throws. `MigrationResult` reaches the `migrationDone` handler instead of a promise; `pending` is a list of sessions (bigints), `migration` names the migration, and `failed`, a count in 0.2.0, is a list of `{session, reason}`: read `result.failed.length` for the number (43deb01). `StateValue` keeps its shape, read-only, as `actorState`'s `value`.
- **A stored blob needs a snapshot to survive a restart, as in 0.2.0.** A host wakes only a session it knows as hibernated: its record, mailbox and timers stay in the host, not in the blob. A new host refuses another host's blob, even one of the same session number (934d62d). To keep hibernated actors across a restart, store `host.snapshot()` with the blobs and start with `Host.restore`. Blobs and snapshots of earlier builds are refused, and images compiled by earlier builds run a `<script>` in executable content the old way: hibernate, snapshot and compile again with this release (fa0f761).
- A migration with no timeout fails an actor that runs invocations at once, where it waited for ever; pass a `timeout` to wait (79bb556).
- `wake` refuses a blob older than the session's latest hibernation with `TA_ERROR_STALE`: keep the latest blob (dcbe4f0).
- `send.answer()` and `send.fail()` return false when the sender has ended, as when it ends while the handler's promise is pending, instead of throwing `TA_ERROR_STALE`; a closed host, or a second answer or fail, still throws (eec9515).
- Unreleased builds only: the `...Async` methods are gone (33fdeab), and 708bdf9, ceb8adb, cac5ba6, 59d54bc, 3fc0b07, 31a56df, 2b810c6, 309fb66, 5bccb45, ff162e3 and 997706b changed the 0.2.0 code before its removal and need nothing beyond the rewrite.

[Every change in this release](https://github.com/tinyactors-dev/tinyactors/blob/main/tinyactors-napi/CHANGELOG.md#030---2026-11-18)

<a id="wasm-0-2-0"></a>

### @tinyactors/wasm 0.2.0, 6 October 2026

#### Summary

This release replaces the package. `@tinyactors/node` 0.2.0 is the Node.js binding built from `tinyactors-core/bindings/node`, and its API is a new one (ea4113b). It is xstate-style: machines from `createMachine` or `setup`, actors from `createActor`, SCXML through `fromSCXML`, compiled systems through `compileSystem` and `loadImage`, and links between systems through `serveLinks`. A few names carry over from 0.1.0 (`createSystem`, `System`, `SystemOptions`, `Actor`, `SendOptions`) with new shapes and meanings.

It installs the same way as 0.1.0: a prebuilt addon per platform (darwin-arm64, darwin-x64, linux-x64, linux-arm64) as an optional dependency, with one Linux addon for glibc and musl, so nothing compiles on install. It runs on Node.js 22.12 or later and on Bun.

The commits listed below from before the replacement changed the 0.1.0 addon, which this release no longer contains.

#### Upgrading

- The 0.1.0 API is removed, with no compatibility layer: its system API (statechart definitions, post and send with their results, loaders, the debug adapter, and the tracing and metrics helpers) is gone. Rewrite callers against the xstate-style API: `createMachine` and `createActor` for a machine, `fromSCXML` for an SCXML document (ea4113b).
- `createSystem`, `System`, `SystemOptions`, `Actor` and `SendOptions` keep their names but not their shapes: check each use against the new declarations.
- The changes the 0.1.0 addon went through before it was removed (caf78df, 1d4f458, bb87794, 0bc6cfa, 6a6a1fa, 482417e, 28a0ccb, 19cd181, 904b335, 93c3d46, ccd6d63, bc82ab4, 206cdb4, 3edae90) need nothing beyond that rewrite.

[Every change in this release](https://github.com/tinyactors-dev/tinyactors/blob/main/tinyactors-napi/CHANGELOG.md#020---2026-10-06)

## tinyactors-core (C)

<a id="c-0-5-0"></a>

### tinyactors-core 0.5.0, 26 November 2026

#### Summary

This release is about the services a chart invokes: an `<invoke>` of a type the application runs, such as an HTTP request in flight, a payment or a shipment that takes a week. Such an actor used to stay on its old version through a migration and in memory under a resident bound. Now it does neither.

A migration moves an actor whose service is running at once, and the service goes on (ff43f15). Each external invocation has an id of its own, unique in the host and kept when its actor moves to another segment; what the service sends reaches the new version, as do the delayed sends to it. A service goes on when its state is kept and still has an `<invoke>` of the same type and id; any other is stopped. Invoked charts still hold their actor until they end.

An actor hibernates with its services running (52f7f6b): the services go on while it sleeps, and what they send asks for its wake. A host restored from a snapshot reconciles a newer blob's services with its own. An actor that faults stops its services. A request costs 57 B of the region, 8 B of it the index of running services.

The `tinyactors` command's help is written in one voice, and a command lists the exit statuses it has beyond a usage error (1601ebe). Snapshots and hibernation blobs of earlier builds are refused.

#### Upgrading

- `ta_event_in` replaces its `token` with `invocation`, a 64-bit id, and loses its `pad`: answer a service with `TA_EVENT_IN_FROM_INVOKE`, `TA_EVENT_IN_INVOKE_DONE` or a failure by setting `invocation` to the id of its INVOKE effect. `trace_flags` moved to where `token` was, so an initializer by position must be rewritten; one by name only renames the field (ff43f15).
- `ta_effect` and `ta_host_effect` gain `invocation`, read through the new `TA_EFFECT_FIELD_INVOCATION`, on an INVOKE, an UNINVOKE and a SEND to a service. Key a service by that id alone, no longer by its segment and token: the id stays the same when a migration moves its actor. `TA_EFFECT_FIELD_TOKEN` and `ta_effect.token` are now the token of a REQUEST only. Both structs are larger: recompile (ff43f15).
- `ta_actor_info` turns its `pad` into `services`, the actor's external invocations (ff43f15).
- `tinyactors run` takes and gives `invocation` as that id, up to 2^64-1 (ff43f15).
- An actor whose services run is now migrated at once instead of failing with `TA_ERROR_STATE` or waiting for the timeout. Expect an UNINVOKE after it moves for each service the new version does not keep, and new INVOKE effects when a kept state's services were all stopped (ff43f15).
- An actor whose services run can now be hibernated, and the events of its services ask for its wake. An actor that faults now stops its services with an UNINVOKE each. A host restored from a snapshot, given a blob of a later hibernation, stops a service the blob no longer names and gives the actor error.communication for one it names that the host lacks (52f7f6b).
- An external `<invoke>` gets error.execution once its segment has handed out every id of its range (ff43f15).
- The `tinyactors` command's help in JSON and XML gives an example as a caption and a command instead of a string, and a command an exit status list (help and version have none) (1601ebe).
- Snapshots and hibernation blobs of earlier builds are refused: take new ones with this build (ff43f15, 52f7f6b).

[Every change in this release](https://github.com/tinyactors-dev/tinyactors/blob/main/tinyactors-core/CHANGELOG.md#050---2026-11-26)

<a id="c-0-4-0"></a>

### tinyactors-core 0.4.0, 25 November 2026

#### Summary

This release is about the `tinyactors` command (9f2a464). It is one program, with git-style subcommands, for compiled images, system manifests and SCXML charts. It compiles and checks charts and lists what is in them, disassembles their executable content (f0007bc), draws them as SVG (89ab273), lints them and finds the shortest path to a state, and formats them in one canonical layout. It compares two versions and says what a migration does to running actors (4703f44), and it reads snapshots and blobs. Each release now carries it for macOS and Linux, x86_64 and aarch64, static on Linux, installable with mise from the release repository (9cbcfba). `tinyactors run` serves one host with quickjs over JSON-RPC 2.0 on standard input and output: spawns, sends, turns, held batches, services, hibernation, migration, snapshots and telemetry, with its protocol as a JSON Schema. Core's conformance suite runs against it. With QuickJS compiled in, the command is about 2 MB.

Snapshots now carry a description of their memory layout, so a reader can decode one without the build that wrote it, and a restore refuses a snapshot of another layout (7f4ecf9, 22daf06). A snapshot also keeps the most recent traces and describes the chart image and the instances, so a reader can show an actor's chart and its traces up to the time of capture (4255811). The host counts the bytes it allocates, in `ta_host_stats` and in the OTLP metrics. The ECMAScript datamodel can take a seed for `Math.random` and read the host's clock, so a run can repeat exactly (22815fe).

Some behaviour changes under existing code. The compiler refuses markup that SCXML does not allow, which it used to skip (4059c44). quickjs stops a busy evaluation sooner (a180547). Session ids wrap around their segment's range, so a long-running host no longer hands out ids that belong to another segment (b4ae809). Data sent between charts of two datamodels is now converted for the receiver, and a send that waits for memory no longer evaluates its expressions twice. Snapshots of earlier builds are refused.

#### Upgrading

- `ta_host_time` is removed. `ta_host_advance_time` takes a `ta_system_time` with the same two fields: rename the type (22815fe).
- `ta_system_advance_time` takes a `ta_system_time` instead of a `ta_time`: pass the monotonic time and `wall_ns` (0 when the wall clock is unknown) (22815fe).
- `ta_datamodel_ecmascript_config` gains `random_seed` and `clock`. A positional initializer must add them; a zeroed config behaves as before (22815fe).
- `ta_host_snapshot_contents` gains `layout` and `layout_id`. Code that initializes it by position must add them (7f4ecf9).
- `ta_host_stats` gains `allocated_bytes`, `allocated_peak` and `allocations`, and `ta_system_config` gains `last_serial` (0: the range ends at UINT64_MAX). Both structs are larger, so recompile code that uses them.
- `ta_host_spawn` and `ta_system_spawn` can return `TA_ERROR_LIMIT` when every id of a segment's range is held, and in a system a migration exported a session from, once its range has run out; an `<invoke>` then gets `error.execution` (b4ae809). A session id can name a new session once its range has been used up, so do not keep an address after its session ends and expect it to stay unused. `ta_system_stats` spawned now counts spawns instead of reading the last id, and `ta_system_set_next_serial` takes any id of the range.
- Snapshots of earlier builds are refused (b4ae809, 7f4ecf9, 22daf06, 4255811). `TA_SYSTEM_VERSION` is removed: the region's layout id replaces it. Take a new snapshot with this build. traceBytes now also bounds the trace history a snapshot holds (4255811).
- A chart with markup that SCXML does not allow now fails to compile. This includes an unknown or misplaced SCXML element, contradictory attributes, an attribute and content for one value, a duplicated `<data id>` or `<invoke id>`, a history type other than deep or shallow, a version other than 1.0 and an `<scxml>` root in another namespace. Fix the markup the diagnostic names. An attribute that SCXML does not define is a warning, and an error with `TA_COMPILE_WERROR` (4059c44).
- The default `max_ops` of quickjs is now 10,000 checks, not 1,000,000 (`TA_DATAMODEL_ECMASCRIPT_MAX_OPS_DEFAULT`). This is about 10^8 operations. A longer single evaluation gets `error.execution` with reason "fuel": set `max_ops` to what the work needs (a180547).
- A value sent between charts of two datamodels now goes through the sender's to_wire and the receiver's from_wire. A datamodel without from_wire receives no data, and a value the sender cannot write gives no data and `error.execution` (`error.communication` across segments) (0adae4e).
- The command's own breaking changes (9f2a464, 89ab273, 4703f44) touch nothing an earlier release shipped: ta-compile, graph and diff were all added after 0.3.0. If you built ta-compile from source, run `tinyactors compile` with the same arguments (`--emit-c NAME` is `--emit c --symbol NAME`, `--dump` is `inspect`).

[Every change in this release](https://github.com/tinyactors-dev/tinyactors/blob/main/tinyactors-core/CHANGELOG.md#040---2026-11-25)

<a id="c-0-3-0"></a>

### tinyactors-core 0.3.0, 19 November 2026

#### Summary

This release reshapes the host's C API around one loop, the way a language binding drives it: take the effects (`ta_host_effects`), handle them, acknowledge them (`ta_host_effects_ack`), and run again. Everything the host hands out about a batch (effect fields, traces, logs, metrics, hibernation blobs) stays valid until that ack. The rarely called operations, such as statistics, inspection and trace control, are CBOR messages posted with `ta_host_post` and answered by a REPLY effect. The host takes its config as CBOR (`ta_host_create`), gets all its memory from a `ta_allocator`, and now ships in libtinyactors, freestanding. Every public function takes at most three parameters, and bytes cross as `ta_bytes` and `ta_buffer`, so nearly every call that took a pointer and a length changed shape. Values between systems are CBOR, not JSON. The Node.js, browser and PostgreSQL bindings and the examples left this component (997706b); the Node.js binding is now tinyactors-napi, and the Python binding is tinyactors-cpython.

Tracing is built in. Systems trace by default, with W3C trace contexts carried through sends, timers, invocations, hibernation and snapshots. A trace policy decides sampling and detail, per-chart counters cover turns, macrosteps, fuel and errors, and an OTLP encoder in libtinyactors writes OTLP requests: traces and logs, which the host announces with an effect, and metrics, which the caller pulls (`ta_host_metrics`).

Running large populations is safer. A wake refuses a stale blob, or one from another host. A migration names the sessions it could not move, and why. Snapshots pack a whole host into one blob. A segment grows only the pool that ran out. Sends to other systems go to one transport I/O processor (index 0); the router, its peers and its envelopes are gone. A sender now waits until its send is decided, so the "sync" option of an I/O processor is gone. QuickJS now has a default memory limit of 1 GiB. Snapshots and hibernation blobs of earlier builds are refused, and compiled images should be compiled again.

#### Upgrading

- **Creating a host.** `ta_host_new` and `struct ta_host_config` are removed. Write the config as one CBOR map and call `ta_host_create(config_bytes, &environment, &host)` (f081768). The `ta_host_environment` carries what cannot be data: the `ta_allocator` the host gets every block from, with no fallback to malloc (`ta_runtime_malloc` gives the old behaviour) (708bdf9); the datamodels; a trace policy; a buffer for the error reply; and a nonce, random bits that tell this host's hibernation blobs from another's (934d62d). A refused config answers `TA_ERROR_INVALID` with the path of the bad key. The host moved from libtinyactors_runtime to libtinyactors: link libtinyactors for it (a3730bb). The config key maxSubscriptions is refused (fec2203). A sender now waits until its send is decided, so drop "sync" from every I/O processor entry (`TA_IO_PROCESSOR_SYNC` is removed), and ack and run again after `TA_RUN_EFFECTS` (d7db9ad).
- **The loop and lifetimes.** A published batch is frozen until `ta_host_effects_ack`, and `ta_host_run` refuses while one is open: drain, ack, then run (d2c02c3). Every host output stays valid until that ack, and an output taken with no batch open opens one, so ack it before the next take or run (c7abccf). The outputs are views of host memory, read through a `ta_bytes *` (633f79a). Inputs made while a run is going on (from a datamodel) are appended, not refused (5156ddc). `ta_host_advance_time` takes a `ta_host_time` with both clocks; call it before each run (e1a77dc).
- **The control plane.** `ta_host_stats_get` and `ta_host_actors` are replaced by CBOR messages posted with `ta_host_post` and answered by `TA_HOST_EFFECT_REPLY`, whose bytes `ta_host_effect_bytes` reads (5296ab3, 42401f6, c950b41). Messages follow JSON-RPC 2.0 in CBOR: "method", "params" and an "id". A message without an id gets no reply. Errors carry integer codes (45b1ff5, cc0f193). Methods are named area.verb: host.stats, actor.list, actor.get, actor.state, actor.context (15afb08, d7c01cf). host.stats reports pools per segment, so read `result.pools[i]` (1291711). Subscriptions are gone: actor.subscribe and actor.changed, which briefly replaced the host-level CHANGED effect, are removed (db7d122, fec2203). Read state with actor.state, which now refuses a hibernated actor where it answered an empty map: wake it first (712305d). The conformance driver posts messages accordingly (770d94d).
- **Calls take structs, bytes and lists** (3509db8, c84f941). Each of these changed in place: `ta_host_spawn` and `ta_system_spawn` take a `ta_spawn`. `ta_host_resume` and `ta_system_resume` take a `ta_resume`. `ta_host_send` and `ta_host_send_many` read the target from `ta_event_in.session`, so the struct `ta_event_in` gains session, traceparent and trace_flags. `ta_host_chart` fills a `ta_host_chart_ref`, `ta_host_locate` a `ta_host_location` and `ta_image_boot_actor` a `ta_boot_actor`. `ta_host_migrate` takes a `ta_host_migration`. `ta_system_init`, `ta_system_restore` and `ta_runtime_system_new` take a `ta_system_setup`; `ta_system_relocate` takes a `ta_memory` and updates the pointer it is given. Bytes in are `ta_bytes`: `ta_host_add_image`, which also copies the image (71f6547), `ta_host_wake`, `ta_actor_wake`, `ta_system_adopt`, `ta_image_open`, `ta_runtime_free_file`, `ta_datamodel_ecmascript_restore` and `ta_http_parse_request`, which now returns a `ta_status`; `ta_runtime_load_file` gives its bytes through a `ta_bytes *`. Bytes out go through a `ta_buffer *`, where `TA_ERROR_NO_MEMORY` reports the length needed: `ta_host_snapshot`, `ta_system_snapshot`, `ta_actor_export`, `ta_actor_hibernate`, `ta_blob_migrate` (now with a `ta_blob_migration`), `ta_datamodel_ecmascript_snapshot`, `ta_http_encode_post` (now with a `ta_http_post`, returning a `ta_status`), and `ta_address_format`, `ta_address_format_name` and `ta_address_name_decode`, which now return a `ta_status`. `ta_host_hibernate` gives a `ta_bytes *` view. Lists are `ta_uint32_array` or `ta_uint64_array`: `ta_actor_config`, `ta_system_actors`, `ta_host_sweep` and `ta_host_snapshot_segments`. `ta_system_cold_actors` takes a `ta_sweep` too. `ta_compile_charts` takes a `ta_source_list`. `ta_image_data`, `ta_image_expression` and `ta_image_state_info` take a `ta_chart_item`.
- **Resolvers.** `ta_runtime_resolve` and a resolver callback (struct `ta_resolve_function`) take a `ta_resolve_request`, with base, source and the compiler's scratch arena. They fill a `ta_resolve_result`: its source on success, its error on refusal (56b6b47).
- **Datamodel implementers.** The struct `ta_datamodel_vtable` changed: every per-instance entry takes a `ta_datamodel_call`, and create and deserialize take a `ta_datamodel_start` (54666e3). to_wire writes CBOR and from_wire reads it (b114102). to_wire, serialize and payload_serialize give views the datamodel owns until its next call (4c90a97). The entry variable serves actor.context (d7c01cf). The struct `ta_datamodel_chart`'s pad is now segment. The struct `ta_datamodel_compiler` and `ta_compile_options`' datamodel_compilers were never called, and are removed (54666e3). A `<script>` in executable content is `TA_EXPRESSION_SCRIPT` and runs in a block, so its let and const are its own at each run; a chart-level one is `TA_EXPRESSION_GLOBAL_SCRIPT`. Compile images again (fa0f761). A <foreach>'s item and index are the new kind `TA_EXPRESSION_ITEM`, to be handled as a location (cbae1c3). The struct `ta_event_view` gains invoke_slot and origintype_id, the event's invoke and I/O processor type by id (e9292da).
- **Values are CBOR** (b114102, 4b5a423). `ta_datamodel_ecmascript_payload_from_json` and `ta_datamodel_ecmascript_payload_to_json` are replaced by `ta_datamodel_ecmascript_payload_from_cbor` and `ta_datamodel_ecmascript_payload_to_cbor`. `ta_datamodel_ecmascript_eval_json` is removed: `ta_datamodel_ecmascript_payload_eval` takes the instance. An actor reference is tag 32. The suite's value round trip, first moved onto envelopes (cc5f64f), now reaches an echo chart through actor.send and comes back through the transport (da814fb).
- **Other systems.** The router is removed with its whole API (fc86d66, dbd8f97, da814fb): `ta_host_route`, `ta_host_route_begin`, `ta_host_route_step`, `ta_host_route_reason`, `ta_host_deliver`, `ta_host_envelope_json`, `ta_host_message_init`, `ta_host_error_event`, `ta_host_error_route`, `ta_host_export`, `ta_host_peer_add`, `ta_host_peer_remove`, `ta_host_peer_up`, `ta_host_peer_reach`, `ta_host_peer_status`, `ta_host_peer_error`, `ta_host_peer_round_trip_time`, the structs `ta_envelope`, `ta_host_message`, `ta_peer_config`, `ta_peer_status` and `ta_route_request`, the effects `TA_HOST_EFFECT_PEER` and `TA_HOST_EFFECT_PEER_ERROR`, and the constants `TA_PEER_CLOSED`, `TA_PEER_CONNECTING`, `TA_PEER_OPEN`, `TA_PEER_QUEUE`, `TA_PEER_RECONNECTING`, `TA_PEER_TRUSTED`, `TA_ROUTE_ASK_PEERS`, `TA_ROUTE_DEDUPLICATE`, `TA_ROUTE_DEDUPLICATE_HOST`, `TA_ROUTE_DELIVERED`, `TA_ROUTE_DUPLICATE`, `TA_ROUTE_DURABLE`, `TA_ROUTE_ERROR_DENIED`, `TA_ROUTE_ERROR_EXPIRED`, `TA_ROUTE_ERROR_HOPS`, `TA_ROUTE_ERROR_MALFORMED`, `TA_ROUTE_ERROR_UNKNOWN_TARGET`, `TA_ROUTE_ERROR_UNREACHABLE`, `TA_ROUTE_LOCAL`, `TA_ROUTE_LOCAL_ONLY`, `TA_ROUTE_LOOKUP`, `TA_ROUTE_MAX_HOPS`, `TA_ROUTE_PEER`, `TA_ROUTE_PEERS`, `TA_ROUTE_REFUSED` and `TA_ROUTE_RELAYED`. A send to another system's address is a `TA_EFFECT_SEND` with io_processor 0, the transport, which the application serves (f4c2819, bf0b8a1). An application with no transport fails such a send with `TA_EVENT_IN_ERROR_COMMUNICATION`. What arrives is resolved with `ta_host_resolve` and given to `ta_host_send` with its origin. I/O processors are numbered the same in every layer: the config's i-th is i + 1. The struct `ta_system_config` names its address base and `TA_SYSTEM_SHARED_BASE` instead of the removed `TA_IO_PROCESSOR_SCXML_REMOTE` and `TA_IO_PROCESSOR_SCXML_SHARED`, and lists `ta_io_processor_entry` instead of the removed struct `ta_io_processor_descriptor` (bf0b8a1). The link protocol added during the cycle (5bccb45) was removed again with framing: `ta_frame_header`, `ta_frame_read`, `ta_frame_reader_init`, the struct `ta_frame_reader`, `TA_FRAME_HEADER`, `TA_FRAME_MAX`, `TA_FRAME_MORE`, `TA_FRAME_READY` and `TA_FRAME_REFUSED` (997706b).
- **Migration.** A migration job is a migration (f747354): `TA_HOST_EFFECT_JOB_DONE` is `TA_HOST_EFFECT_MIGRATION_DONE`, `ta_host_job_pending` is `ta_host_migration_pending`, and in the struct `ta_host_effect` job is migration; in the struct `ta_host_stats` jobs is migrations. A WAKE that no migration asked for carries 0 as its migration, where it carried `TA_NIL` (ca15e92). `ta_host_migrate` refuses at the call an unknown chart, an ended session and an invoked child, where it started a migration that moved nothing (0a231a5, e663f73). `ta_host_export_actor`, `ta_host_adopt` and `ta_blob_rebase` are removed: call `ta_host_migrate`, since moving actors between hosts is not offered (dbd8f97). `ta_host_migration_failed` names the sessions a migration could not move (43deb01). A migration without a timeout now fails an actor that runs invocations at once, instead of waiting for ever; pass a timeout to wait (79bb556).
- **Hibernation.** A wake refuses, with `TA_ERROR_STALE`, a blob of an earlier hibernation than the actor's last one, so give it the latest blob (dcbe4f0). After a restore it takes a blob newer than the snapshot (9dc211c). It refuses another host's blob with `TA_ERROR_INVALID`, and blobs written by earlier builds are refused, as snapshots are (934d62d).
- **Snapshots.** `ta_host_restore` takes a `ta_host_environment` and a `ta_host_snapshot_input` holding the config and the images as bytes. `ta_host_snapshot_pack` writes a whole host into one blob, which `ta_host_snapshot_unpack` and `ta_host_snapshot_image` read (2b810c6). Snapshots of earlier builds are refused: the region's layout is version 9 (9dc211c), the counters changed the format (e366bd6), and the trace contexts are carried (07e8073), and the identity and the request slots are kept (934d62d, 831102f). A restored host announces each external invocation that was running as an INVOKE flagged `TA_EFFECT_FLAG_RESTORED`: start the service again or fail it (831102f). Take a new snapshot after upgrading.
- **Tracing.** Systems trace by default: the struct `ta_system_config` gains tracing, trace_bytes, trace_contexts, trace_rules, trace_policy and trace_seed, and `TA_TRACING_DISABLED` carves nothing (cac5ba6). Events carry the context of the step that made them (ceb8adb). A `ta_trace_policy` decides sampling and the detail class (360dfea, 59d54bc). Fill one from `ta_trace_policy_default`, or post trace.configure (309fb66). An unsampled trace keeps its context, and a delayed send from an unsampled step stays unsampled (a6aa883). The trace journal defaults to `TA_TRACE_BYTES_DEFAULT` and no longer grows with the events: set traceBytes to size it (5d5dc14). The struct `ta_effect` and the struct `ta_host_effect` gain the trace context. The struct `ta_system_stats` gains trace counters, and the per-chart counters come with `ta_system_chart_stats_get` (e366bd6). It also gains each pool's high-water mark (7adbb34). The struct `ta_host_stats` gains fuel_clock. tinyactors-otlp is replaced by the `ta_otlp` codec in libtinyactors (c20b8a7). Its batcher was removed again (997706b). The host runs the encoder: configure telemetry, take `TA_HOST_EFFECT_TRACES` and `TA_HOST_EFFECT_LOGS`, and read them with `ta_host_traces` and `ta_host_logs` (e1a77dc).
- **Removed components.** The bindings and examples that lived in tinyactors-core are gone (997706b); they had been rebuilt over the host before that (3fc0b07, 31a56df). The conformance vectors and the W3C suite moved to tinyactors-test, run through ta-conform (47afc43, 1526c3d). Use tinyactors-napi for Node.js and tinyactors-cpython for Python. tinyactors-scxml is gone: compile SCXML with `ta_compile_charts` (bb603ff).
- **Limits.** QuickJS has a default memory limit of 1 GiB: a memory_limit of 0, in the config or `ta_datamodel_ecmascript_set_memory_limit`, now means that default and `SIZE_MAX` means none. An evaluation past it is error.execution; raise it for large resident populations (7b19ec8). An input text longer than `TA_SYSTEM_MAX_STRING` is refused with `TA_ERROR_INVALID` by the send and spawn calls (269646f).
- **Invoked services.** After `TA_EVENT_IN_INVOKE_DONE`, or a failure sent with `TA_EVENT_IN_FROM_INVOKE`, the invocation has ended, and later inputs with its token are refused with `TA_ERROR_STALE` (f58dcd1).

[Every change in this release](https://github.com/tinyactors-dev/tinyactors/blob/main/tinyactors-core/CHANGELOG.md#030---2026-11-19)

<a id="c-0-2-0"></a>

### tinyactors-core 0.2.0, 6 October 2026

#### Summary

This release replaces the core (943b1f3). tinyactors-core 0.2.0 is the standalone runtime: one block of memory per system, sized at creation, with mailboxes, the run queue and timers in a shared event pool, and effects the host pulls; freestanding base, image, core and system layers; a compiler; a host layer that runs many systems as one; the ECMAScript data model on quickjs-ng; and Node.js, WebAssembly and PostgreSQL bindings. Its C API is a new one: a few names carry over, none with its old shape. The Node.js addon of tinyactors-napi is gone with it; the bindings in tinyactors-core replace it. CMake and the Python build scripts gave way to Ruby tasks on the pinned toolchain. The earlier core is kept at the tag ring-proto-final, and the commits listed below from before the replacement changed it, not this release.

It is also the first release built as three C libraries, released together (4bc7560, b04ae6f, c87a9ae): libtinyactors, the freestanding layers, which call no C library and work in the block the host gives each system; libtinyactors_runtime, the compiler, the host and the runtime conveniences; and libtinyactors_datamodel_ecmascript, the ECMAScript data model with QuickJS inside, which a program opts into by linking it (a glibc program links -lm beside it). Each ships its header, an amalgamation and its API description, a static and a shared library for aarch64-macos, x86_64-macos, x86_64-linux and aarch64-linux, and a wasm module for browsers that imports nothing; in the data model's, Date reads the time the host sets with `ta_datamodel_ecmascript_wasm_set_time` (c87a9ae).

#### Upgrading

- The 0.1.0 API is replaced, with no compatibility layer: 0.2.0 is the standalone runtime (943b1f3), whose public headers are `tinyactors.h`, `tinyactors_runtime.h` and `tinyactors_datamodel_ecmascript.h`. Rewrite callers against them. Removed (some come back under the same name with a new shape, as `ta_address` and `ta_expression` do; `ta_system_init` and `ta_system_deinit` take the place of `ta_system_create` and `ta_system_destroy`, `ta_status` that of `ta_result`, and the TA_VERSION_MAJOR, _MINOR and _PATCH macros that of `ta_version`): `ta_action_block_id`, `ta_action_id`, `ta_actor_id`, `ta_actor_inspection_visitor`, `ta_atom`, `ta_content_id`, `ta_data_decl_id`, `ta_definition_id`, `ta_done_data_id`, `ta_event_name_id`, `ta_expr_id`, `ta_initial_transition_id`, `ta_initializer_id`, `ta_invoke_decl_id`, `ta_invoke_id`, `ta_param_id`, `ta_send_id`, `ta_state_id`, `ta_timer_id`, `ta_transition_id`, `TA_ACTION_NONE`, `TA_ACTOR_VISIT_END`, `TA_COMPILE_ERROR_MESSAGE_MAX`, `TA_COMPILE_ERROR_TEXT_MAX`, `TA_CONTENT_ID_NONE`, `TA_DONE_DATA_NONE`, `TA_EXPR_ID_NONE`, `TA_INITIALIZER_NONE`, `TA_INITIAL_TRANSITION_NONE`, `TA_INVOKE_ID_NONE`, `TA_MICROSTEP_LIMIT_NONE`, `TA_SPEC_INDEX_NONE`, `TA_STATE_NONE`, `TA_TRACE_DEFINITIONS_SESSION`, `TA_TRACE_DETAIL_WATCHED`, `TA_TRACE_FLAG_RANDOM`, `TA_TRACE_FLAG_SAMPLED`, `TA_TRANSITION_NONE`, `ta_action_block`, `ta_actor_directory_entry_kind`, `ta_actor_ref_kind`, `ta_actor_residency`, `ta_chart_error_code`, `ta_compile_error_code`, `ta_definition_event_kind`, `ta_dm_text_kind`, `ta_element_kind`, `ta_event_type`, `ta_expr_role`, `ta_expression_kind`, `ta_external_event_submit_status`, `ta_import_stage`, `ta_invoke_report_kind`, `ta_io_origin_class`, `ta_io_text_kind`, `ta_op_status`, `ta_origin_kind`, `ta_result`, `ta_run_status`, `ta_scxml_action_kind`, `ta_scxml_binding_kind`, `ta_scxml_event_kind`, `ta_scxml_id_kind`, `ta_scxml_invoke_kind`, `ta_scxml_state_kind`, `ta_scxml_string_kind`, `ta_scxml_target_kind`, `ta_scxml_transition_kind`, `ta_scxml_value_kind`, `ta_spec_member`, `ta_state_kind`, `ta_trace_at`, `ta_trace_kind`, `ta_transition_origin`, `ta_chart_codec_flags`, `ta_event_flags`, `ta_actor_abandon`, `ta_actor_activate_replacement`, `ta_actor_active_states`, `ta_actor_capture`, `ta_actor_datamodel_root`, `ta_actor_deliver`, `ta_actor_destroy`, `ta_actor_find`, `ta_actor_get_completion`, `ta_actor_history`, `ta_actor_id_generation`, `ta_actor_id_make`, `ta_actor_id_slot`, `ta_actor_inspect`, `ta_actor_load`, `ta_actor_offload`, `ta_actor_prepare_replacement`, `ta_actor_publish_completion`, `ta_actor_reconstruct`, `ta_actor_remove_unloaded`, `ta_actor_report_invoke`, `ta_actor_resume`, `ta_actor_spawn`, `ta_actor_unload`, `ta_actor_withdraw_send`, `ta_address_intern`, `ta_address_release`, `ta_address_retain`, `ta_address_view`, `ta_arena_alloc`, `ta_arena_allocator`, `ta_arena_destroy`, `ta_arena_init`, `ta_arena_reset`, `ta_compile_error_format`, `ta_definition_action`, `ta_definition_compile_spec`, `ta_definition_content`, `ta_definition_counters`, `ta_definition_destroy`, `ta_definition_encode`, `ta_definition_export`, `ta_definition_expression`, `ta_definition_find_state`, `ta_definition_import`, `ta_definition_inspect`, `ta_definition_invoke`, `ta_definition_nest`, `ta_definition_occupancy`, `ta_definition_set_microstep_limit`, `ta_definition_span`, `ta_definition_state`, `ta_definition_transition`, `ta_dm_host_actor`, `ta_dm_host_event`, `ta_dm_host_find_state`, `ta_dm_host_in_state`, `ta_dm_host_state_name`, `ta_dm_host_text`, `ta_event_name_format`, `ta_event_name_intern`, `ta_event_name_matches`, `ta_event_release`, `ta_event_retain`, `ta_external_delivery_release`, `ta_external_delivery_retain`, `ta_io_origin_make`, `ta_io_scope_close`, `ta_io_scope_open`, `ta_null_datamodel`, `ta_null_definition_sink`, `ta_null_trace_sink`, `ta_origin_release`, `ta_origin_text`, `ta_scxml_target_format`, `ta_scxml_target_parse`, `ta_scxml_target_release`, `ta_send_id_format`, `ta_send_id_parse`, `ta_session_image_definition`, `ta_session_image_destroy`, `ta_session_image_next_deadline`, `ta_span_id_format`, `ta_step_key_span_id`, `ta_system_atom_text`, `ta_system_counters`, `ta_system_create`, `ta_system_definitions`, `ta_system_destroy`, `ta_system_dispatch_due`, `ta_system_find_definition`, `ta_system_find_io`, `ta_system_intern_atom`, `ta_system_invoke_id_text`, `ta_system_new_span_id`, `ta_system_new_trace`, `ta_system_register_definition`, `ta_system_register_invoker`, `ta_system_register_io`, `ta_system_release_definition`, `ta_system_retire_definition`, `ta_system_scxml_io_type`, `ta_system_seed_trace_ids`, `ta_system_set_actor_directory`, `ta_system_set_definition_sink`, `ta_system_set_event_block_cache`, `ta_system_set_external_event_router`, `ta_system_set_log_sink`, `ta_system_set_microstep_limit`, `ta_system_set_time`, `ta_system_set_trace_ratio`, `ta_system_set_trace_sink`, `ta_system_time`, `ta_system_visit_actors`, `ta_trace_id_format`, `ta_trace_ratio_threshold`, `ta_trace_sampled_at`, `ta_traceparent_format`, `ta_traceparent_parse`, `ta_tree_alloc`, `ta_tree_close`, `ta_tree_destroy`, `ta_tree_init`, `ta_tree_list_init`, `ta_tree_put`, `ta_tree_result`, `ta_value_release`, `ta_value_retain`, `ta_version`, `ta_wasm_allocator`, `ta_address`, `ta_definition`, `ta_session_image`, `ta_system`, `ta_action_info`, `ta_active_invoke`, `ta_actor_activate_replacement_params`, `ta_actor_active_states_params`, `ta_actor_address`, `ta_actor_capture_params`, `ta_actor_completion`, `ta_actor_deliver_params`, `ta_actor_directory`, `ta_actor_directory_claim_params`, `ta_actor_directory_entry`, `ta_actor_directory_remove_params`, `ta_actor_directory_replace_params`, `ta_actor_directory_resolve_params`, `ta_actor_directory_vtable`, `ta_actor_find_params`, `ta_actor_history_params`, `ta_actor_inspection`, `ta_actor_inspector`, `ta_actor_load_params`, `ta_actor_offload_params`, `ta_actor_parent`, `ta_actor_prepare_replacement_params`, `ta_actor_reconstruct_params`, `ta_actor_ref`, `ta_actor_remove_unloaded_params`, `ta_actor_resume_params`, `ta_actor_spawn_params`, `ta_actor_unload_params`, `ta_actor_visit_params`, `ta_allocator_free_params`, `ta_allocator_vtable`, `ta_arena`, `ta_atom_list`, `ta_bytes`, `ta_chart_codec`, `ta_chart_codec_info`, `ta_chart_codec_vtable`, `ta_chart_decode_params`, `ta_chart_encode_params`, `ta_chart_error`, `ta_chart_expression_printer`, `ta_chart_expression_printer_vtable`, `ta_chart_lowering`, `ta_chart_lowering_vtable`, `ta_chart_position`, `ta_chart_span_sink`, `ta_chart_span_sink_vtable`, `ta_chart_src_resolver`, `ta_chart_src_resolver_vtable`, `ta_compile_error`, `ta_compile_error_format_params`, `ta_content_info`, `ta_counters`, `ta_datamodel`, `ta_datamodel_assign_params`, `ta_datamodel_declare_params`, `ta_datamodel_eval_condition_params`, `ta_datamodel_eval_value_params`, `ta_datamodel_execute_script_params`, `ta_datamodel_foreach_bind_params`, `ta_datamodel_foreach_snapshot_params`, `ta_datamodel_import_content_params`, `ta_datamodel_init_instance_params`, `ta_datamodel_inspect_params`, `ta_datamodel_make_params_params`, `ta_datamodel_prepare_definition_params`, `ta_datamodel_read_location_params`, `ta_datamodel_set_named_params`, `ta_datamodel_text_value_params`, `ta_datamodel_value_decode_params`, `ta_datamodel_value_encode_params`, `ta_datamodel_value_text_params`, `ta_definition_action_params`, `ta_definition_compile_params`, `ta_definition_content_params`, `ta_definition_encode_params`, `ta_definition_event`, `ta_definition_export_params`, `ta_definition_expression_params`, `ta_definition_family`, `ta_definition_find_state_params`, `ta_definition_identity`, `ta_definition_import_params`, `ta_definition_inspection`, `ta_definition_invoke_params`, `ta_definition_nest_params`, `ta_definition_occupancy_params`, `ta_definition_sink`, `ta_definition_sink_vtable`, `ta_definition_span_params`, `ta_definition_state_params`, `ta_definition_transition_params`, `ta_delayed_send_info`, `ta_dm_text_params`, `ta_due_dispatch_params`, `ta_event`, `ta_event_name_format_params`, `ta_expression`, `ta_expression_host`, `ta_expression_host_vtable`, `ta_expression_rejection`, `ta_external_delivery`, `ta_external_event_router`, `ta_external_event_router_vtable`, `ta_external_event_submit_params`, `ta_fault`, `ta_import_error`, `ta_invoke_error`, `ta_invoke_info`, `ta_invoke_origin`, `ta_invoke_report_params`, `ta_invoke_request`, `ta_invoker`, `ta_invoker_forward_params`, `ta_invoker_start_params`, `ta_invoker_vtable`, `ta_io`, `ta_io_origin`, `ta_io_origin_make_params`, `ta_io_registration_params`, `ta_io_scope`, `ta_io_scope_open_params`, `ta_io_text_params`, `ta_io_vtable`, `ta_log_record`, `ta_log_sink`, `ta_log_sink_vtable`, `ta_named_value`, `ta_operator_transition`, `ta_origin`, `ta_origin_text_params`, `ta_queued_event`, `ta_scxml_action_spec`, `ta_scxml_data_spec`, `ta_scxml_done_data_spec`, `ta_scxml_event_spec`, `ta_scxml_handler_spec`, `ta_scxml_id_spec`, `ta_scxml_initial_spec`, `ta_scxml_invoke_spec`, `ta_scxml_param_spec`, `ta_scxml_send_spec`, `ta_scxml_source`, `ta_scxml_spec`, `ta_scxml_state_spec`, `ta_scxml_string_spec`, `ta_scxml_target`, `ta_scxml_target_format_params`, `ta_scxml_transition_spec`, `ta_scxml_value_spec`, `ta_send`, `ta_send_id_format_params`, `ta_source_location`, `ta_source_map`, `ta_source_span`, `ta_span_id_format_params`, `ta_spec_step`, `ta_step_key`, `ta_str`, `ta_system_definitions_params`, `ta_trace_context`, `ta_trace_id_format_params`, `ta_trace_parent`, `ta_trace_position`, `ta_trace_record`, `ta_trace_sink`, `ta_trace_sink_vtable`, `ta_traceparent_format_params`, `ta_traceparent_parse_params`, `ta_transition_info`, `ta_tree`, `ta_tree_list`, `ta_tree_list_layout`, `ta_value`, `ta_value_vtable`, `ta_arena_block`, `ta_dm_host`, `ta_io_origin_entry`.
- These keep their names but not their types or signatures: `ta_time`, `ta_system_next_deadline`, `ta_wasm_alloc`, `ta_wasm_free`, `ta_datamodel_vtable`, `ta_state_info`, `ta_system_config`, `ta_allocator`. Check each use against the new headers.
- The changes the earlier core went through before it was replaced (136d175, bd75321, 1c33460, 9183bd7, cf2b4b7, caf78df, 95c4228, 1d4f458, bb87794, 0bc6cfa, 6a6a1fa, 482417e, 19cd181, 904b335, 93c3d46, ccd6d63, e5bf9b5, 192b6d5, a6b451b, 5254618, e4b6974) need nothing beyond that rewrite.
- A program that built the earlier core with CMake links the new libraries instead, or compiles their amalgamations; a user of the tinyactors-napi addon moves to the Node.js binding in tinyactors-core (943b1f3).

[Every change in this release](https://github.com/tinyactors-dev/tinyactors/blob/main/tinyactors-core/CHANGELOG.md#020---2026-10-06)
