Spectre.Execution.Rehearsal (Spectre v0.3.0)

Copy Markdown View Source

Deterministic replay of a data-driven Work from recorded operation results.

Rehearsal drives the same Spectre.Operation.Runtime transitions used in production, but it never calls Spectre.Operation.Executor, starts a Runner, dispatches an Effect, or invokes an inference adapter. Every prepared request must match the next recording's operation and input digest.

Summary

Functions

Returns the stable privacy-safe digest used to bind a recording input.

Replays recorded boundaries without performing real external work.

Functions

input_digest(value)

@spec input_digest(term()) :: {:ok, String.t()} | {:error, term()}

Returns the stable privacy-safe digest used to bind a recording input.

run(program, input, recordings, opts \\ [])

@spec run(Spectre.Execution.Program.t(), term(), [map()], keyword()) ::
  {:ok, Spectre.Execution.Rehearsal.Report.t()} | {:error, term()}

Replays recorded boundaries without performing real external work.