Skip to content

v1.65.0

Choose a tag to compare

@github-actions github-actions released this 16 Oct 02:51
· 54 commits to main since this release
Immutable release. Only release title and notes can be modified.
912dca5

1.65.0 (2026-10-16)

🟨πŸŸͺ🟧 Fix what a first build from the docs alone hit (#64)

Machines that invoke trains on SQLite

A SQLite host with AddScheduler() no longer locks its database for 30 seconds every manifest
manager cycle. Its local worker pool starts one worker unless WorkerCount is set, and a job that
fails before its run starts fails the run at once, so the machine that invoked it reaches its
OnFailed target without waiting for the stale-pending reaper.

InvokedRun

A junction of a train a machine invokes can inject InvokedRun to learn the machine, the instance
and the user who owns it. Trax resolves it from the instance, not from anything the caller sends,
and resolving it anywhere else throws. Use it instead of carrying a user id or token in the
machine's context.

Rules.SetAll

One reduction can now fill several fields: SetAll(Set(...).FromInput(...), Set(...).FromInput(...)).

Smaller changes

  • A scheduler with a database cleans up its own run records by default; AddMetadataCleanup()
    changes the settings.
  • The client manifest is written compact, and an output schema several outcomes share is written
    once (manifest format 2). The generated twin writes it once too. Export the manifest again after
    upgrading.

🟨πŸŸͺ A state can spawn a child machine and wait for it to end (#69)

A state can spawn a child machine

IStateBuilder.Spawns<TChild, TContext, TOutput>(c => c.ChildId) starts another machine whenever the state is
entered, owned by whoever owns the instance, and routes how it ends through the same OnDone, OnFailed and
OnCancelled an invoking state uses. On the child, Ends() and Fails() mark the states it ends in. The child's id
is written into the parent's context, leaving the state removes the child, and while the parent waits the child
cannot be discarded or saved by a client. IMachineInstances.Advance<TMachine>(Guid id, ...) drives a system-owned
child. The database gains snapshot_draft.spawned_by (migration 085, SQLite 044).

All changes

Bug Fixes

  • 🟫🟧 a run closed before its train starts publishes its outcome (#65) (c1ec1d7)
  • 🟧 LocalWorkerService names OutOfTrainOutcomes in its new namespace (#67) (4e0a133), closes #64 #65
  • effect: migrate when pg_trgm lives in a schema off the search path (#61) (dd9f4ce)
  • πŸŸͺ corpus samples write an enum by its member name, as the server stores it (#66) (e74ae4c)

Features

  • 🟨πŸŸͺ🟧 fix what a first build from the docs alone hit (#64) (335b87f)
  • 🟨πŸŸͺ let a state spawn a child machine and wait for it to end (#69) (912dca5)