Pixir.ReplayInspector (pixir v0.1.6)

Copy Markdown View Source

Read-only replay inspection for local Pixir Logs.

This module reconstructs the Provider input that Pixir would build from a Session History without calling auth, the network, or the model. It is an operator diagnostic seam for replay/projection incidents: count function calls, paired outputs, and synthetic orphan closures from canonical Log events. It also summarizes audit-only evidence that must not be replayed as clean Provider context.

Summary

Functions

Inspect Provider replay input for session_id.

Types

inspect_opts()

@type inspect_opts() :: [
  workspace: String.t(),
  after_seq: non_neg_integer() | nil,
  model: String.t() | nil
]

Functions

inspect(session_id, opts \\ [])

@spec inspect(String.t(), inspect_opts()) :: {:ok, map()} | {:error, map()}

Inspect Provider replay input for session_id.

:after_seq means "the replay state after this Event seq", so only Events with seq <= after_seq are included. When omitted, the full Log is inspected.