Skip to main content
Replay answers: can this outcome be reproduced from what was recorded? Replay deterministically re-evaluates a Business Transaction’s recorded policy version against its recorded signals, and confirms whether the outcome matches what’s in the Execution Trust Record. This is only possible because Policy and Decision are both deterministic and immutable — see Concepts → Policy and Concepts → Decision.

Result model

interface ReplayResult {
  businessTransactionId: string;
  trustRecordHash: string;
  verified: boolean;
}

Triggering a replay

const replay = await client.replay(businessTransactionId);

Why this matters

Replay is what lets a third party — an auditor, a regulator, a new engineer on the team — independently confirm that a past decision was correct, without having to trust that the original runtime behaved honestly. It’s the practical payoff of the “deterministic execution” and “immutable trust artifacts” principles in Architecture → Overview. Replay logic lives in the replay package.