Versioned durable task record (generation, tool_call) and pure state
transitions (pending, running, waiting, sleeping, terminal).
Summary
Functions
Transitions a task to terminal due to cancellation/abort.
Transitions a task to terminal with an outcome map.
Normalizes a task loaded from storage.
Increments restarts on unclean crash recovery.
Constructs a new durable task map.
Resets a running task back to pending on clean shutdown without incrementing restarts.
Transitions a task to sleeping until until_ms.
Transitions a task to running with a new attempt_id.
Transitions a task to waiting (e.g. generation waiting on child tool calls).
Formats a task for H.Daemon.get_session_detail/2.
Functions
Transitions a task to terminal due to cancellation/abort.
Transitions a task to terminal with an outcome map.
Normalizes a task loaded from storage.
Increments restarts on unclean crash recovery.
Constructs a new durable task map.
Resets a running task back to pending on clean shutdown without incrementing restarts.
Transitions a task to sleeping until until_ms.
@spec start_running(map(), pos_integer(), integer(), map()) :: map()
Transitions a task to running with a new attempt_id.
Transitions a task to waiting (e.g. generation waiting on child tool calls).
Formats a task for H.Daemon.get_session_detail/2.