Hourglass.Replayer (hourglass v0.1.0)

Copy Markdown View Source

Replays a captured workflow history against the current workflow code, detecting nondeterminism (the workflow producing different commands than what the original execution produced).

Drives each activation directly through Hourglass.Workflow.Evaluator — the same pure-function evaluator that production uses — and threads the evaluator state per run_id across activations.

Used by the determinism CI gate (mix hourglass.workflow.replay).

Summary

Functions

replay_history(history_response_bytes, workflow_module)

@spec replay_history(history_response_bytes :: binary(), workflow_module :: module()) ::
  :ok | {:error, Hourglass.Replay.Mismatch.t()}