Appearance
Replay APIs
Replay APIs reconstruct what happened in a prior execution and let you rerun or inspect the workflow.
Endpoints
POST /v1/memory/replay/run/startPOST /v1/memory/replay/step/beforePOST /v1/memory/replay/step/afterPOST /v1/memory/replay/run/endPOST /v1/memory/replay/runs/getPOST /v1/memory/replay/playbooks/compile_from_runPOST /v1/memory/replay/playbooks/getPOST /v1/memory/replay/playbooks/promotePOST /v1/memory/replay/playbooks/repairPOST /v1/memory/replay/playbooks/repair/reviewPOST /v1/memory/replay/playbooks/run
Replay workflow
- Collect provenance chain (
request_id,run_id,decision_id,commit_uri). - Reconstruct run context and decision path.
- Replay and compare actual vs expected behavior.
- Archive replay output as release evidence.
When to use replay
- A production run behaved incorrectly and you need to know why.
- A code or policy change needs regression evidence before release.
- A support or compliance workflow requires decision provenance.
- You want to turn a real execution into a reusable playbook.
Operational usage
- Incident debugging.
- Regression verification before production rollout.
- Post-change confidence checks.
Error example and fix
Example error:
json
{
"error": "not_found",
"message": "replay run or playbook not found"
}Fix:
- Confirm source
run_idor playbook identifier exists in target scope. - Verify replay request uses correct
tenant_idandscope. - Recompile playbook from a valid run before replaying.
Minimum identifiers to retain
request_idfor request-level tracingrun_idfor workflow-level replaydecision_idfor policy and tool provenancecommit_urifor memory object resolution