pub fn reduce_state_actions(
actions: Vec<AnyStateAction>,
base_snapshot: &Value,
default_source: &str,
scope_ctx: &ScopeContext,
) -> TireaResult<Vec<TrackedPatch>>Expand description
Reduce a batch of state actions into tracked patches with rolling snapshot semantics.
Typed actions are reduced against a snapshot that is updated after each action, so sequential actions in one batch compose deterministically.
scope_ctx controls how ToolCall-scoped actions are routed to per-call
namespaces. For Thread/Run phases (anything outside a tool-call), pass
ScopeContext::run().