Jidoka.Debug.ReplayDiagnostics (Jidoka v0.9.0)

Copy Markdown View Source

Diagnostic view for replayable Jidoka runtime data.

Replay diagnostics explain whether recorded effects are complete and safe to reason about without executing providers or tools.

Summary

Functions

Builds replay diagnostics from normalized attributes.

Builds replay diagnostics or raises when the attributes are invalid.

Returns the Zoi schema for replay diagnostics.

Returns the supported replay diagnostic statuses.

Types

status()

@type status() :: :complete | :waiting | :failed | :incomplete

t()

@type t() :: %Jidoka.Debug.ReplayDiagnostics{
  event_count: integer(),
  failed_effect_results: [map()],
  failed_events: [map()],
  intent_count: integer(),
  metadata: map(),
  missing_effect_results: [map()],
  pending_reviews: [map()],
  result_count: integer(),
  status: ((:complete | :waiting) | :failed) | :incomplete,
  unsafe_effects: [map()],
  warnings: [binary()]
}

Functions

new(attrs)

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

Builds replay diagnostics from normalized attributes.

new!(attrs)

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

Builds replay diagnostics or raises when the attributes are invalid.

schema()

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

Returns the Zoi schema for replay diagnostics.

statuses()

@spec statuses() :: [status()]

Returns the supported replay diagnostic statuses.