Jidoka.Harness.Replay (Jidoka v0.8.0-beta.1)

Copy Markdown View Source

Inspection-friendly replay projection for stored harness data.

Replay is data-only. It reconstructs what is already known from sessions, snapshots, journals, and events; it never calls runtime capabilities.

Summary

Types

t()

@type t() :: %Jidoka.Harness.Replay{
  agent_id: binary(),
  journal: map(),
  metadata: map(),
  pending_reviews: [map()],
  result: nil | nil | map(),
  session_id: nil | nil | binary(),
  snapshots: [map()],
  status:
    nil
    | nil
    | (:new | :running | :hibernated | :waiting | :finished | :error)
    | binary(),
  timeline: [map()]
}

Functions

from_session(session)

@spec from_session(Jidoka.Harness.Session.t()) :: {:ok, t()} | {:error, term()}

from_snapshot(snapshot)

@spec from_snapshot(Jidoka.Runtime.AgentSnapshot.t()) :: {:ok, t()} | {:error, term()}

new(attrs)

@spec new(keyword() | map()) :: {:ok, t()} | {:error, term()}

new!(attrs)

@spec new!(keyword() | map()) :: t()

schema()

@spec schema() :: Zoi.schema()