Replay a VB-OS Evaluation
Replay via SDK
Section titled “Replay via SDK”from vbos import VBOSClient
client = VBOSClient(api_key="YOUR_API_KEY")
replay = client.evaluations.replay( project_id="PROJECT_ID", evaluation_id="EVALUATION_ID",)
print(replay.decision) # Identical to the originalReplay via CLI
Section titled “Replay via CLI”vbos replay --project PROJECT_ID --evaluation EVALUATION_IDReplay via cURL
Section titled “Replay via cURL”curl -X POST https://api.vb-os.org/v1/projects/{project_id}/evaluations/{evaluation_id}/replay \ -H "Authorization: Bearer YOUR_API_KEY"What Happens During Replay
Section titled “What Happens During Replay”- The system retrieves the original evaluation record
- Loads the boundary snapshot from immutable storage
- Verifies boundary snapshot hash integrity
- Loads original evidence from immutable storage
- Verifies engine version hash
- Re-executes with original inputs
- Returns the identical result
Viewing Replay History
Section titled “Viewing Replay History”List replay executions for an evaluation via the REST API:
GET /v1/projects/{project_id}/evaluations/{evaluation_id}/replaysHandling Replay Failures
Section titled “Handling Replay Failures”Replay can fail if:
- Artifact expired: the immutable storage retention period has passed
- Integrity mismatch: a hash does not match (boundary or binary)
- Binary unavailable: the original engine version is no longer available
In all cases, the replay fails rather than producing an unverifiable result.
Next Steps
Section titled “Next Steps”- Replay (Concept): how replay works architecturally
- Evaluations: the records replay reproduces
