[PARTIAL]. Real semantic re-evaluation, for one execution at a time, not reachable from
POST /replay or any other route. See Replay for the full disambiguation from the unrelated POST /replay route.Purpose
Re-runsPolicyEngine.evaluate() against a trust record’s recorded signals and compares
the outcome to what was originally decided, this is genuine semantic verification, not a
signature or hash recheck.
Install
Key exports
| Export | Stability |
|---|---|
ReplayEngine | [PARTIAL]. .replay(input: ReplayInput): ReplayResult. Real PolicyEngine re-evaluation, scoped to trustRecord.executions[0], one execution, not the whole record. |
ReplayBuilder | [AVAILABLE]. .build(): ReplayEngine |
ReplayVerifier | [AVAILABLE]. .verify(original, replayed): boolean, deep-equality via JSON.stringify comparison |
ReplayPipeline, ReplayExecutor, ReplayPlan | [AVAILABLE]. Build and run a multi-step replay plan from recorded execution IDs |
ReplayContext | Per-replay context |
ReplayError | Thrown on an invalid or incomplete trust record |
ReplayResult shape
Minimal example
examples/tutorials/06-replay/run.ts.
Next
Replay
The full disambiguation between this package and the unrelated HTTP route.
Policies and the decision
The
PolicyEngine this package re-invokes.