Policies

The chart root (or MachineBuilder) carries the runtime policies. Defaults follow XState v5:

PolicyMeaningDefault
strictundeclared events are an error instead of ignoredfalse
strictTargetsrefuse the deprecated sibling fallback for .child targetsfalse
strictConfigunknown config keys are errors instead of warningsfalse
maxIterationseventless (always) / self-generated event budget per macrostep1000
actionErrorPolicycontinue (log, skip), rollback (restore context), or fail (move to error)fail
guardErrorPolicyfalse, true, or raise for a guard that errorsfalse
onUnhandledignore (drop), defer (bounded queue), or errorignore

actionErrorPolicy: "rollback" needs a cloneable context. The Python library’s default actionErrorPolicy was continue; this library follows XState’s fail, so set the policy explicitly when migrating charts (see the migration guide).