In v0.1 the platform replay endpoint does not execute your code. For actual replay execution, use the SDK (Replay).
Endpoint summary
Replay a run (simulation)
Determinism analysis
What it analyzes
The determinism analyzer performs static analysis on your run’s actions to identify patterns that indicate non-deterministic behavior: Timestamp dependenciesdatetime.now(),time.time(),current_time- Actions that depend on current timestamps
- Date/time-based logic that varies per execution
random.random(),random.randint(),random.choice()- Unseeded random number generators
- Stochastic sampling
uuid.uuid4()and other UUID variants- Auto-generated IDs that change per run
- Non-deterministic identifiers
os.getpid(), process IDssocket.gethostname(), hostnames- Platform-specific values
- Request IDs, trace IDs, session IDs
- Dynamic response fields that change per call
- Non-deterministic external service responses
- Dictionary iteration (Python < 3.7)
- Set operations with undefined order
- Concurrent operations without synchronization
Response format
Determinism score
The determinism score (0-100) indicates how reliably the run could be replayed:- 90-100 🟢 - High reliability, minimal issues
- 70-89 🟡 - Moderate risk, some non-deterministic patterns
- 0-69 🔴 - High risk, significant non-determinism
Issue severity levels
High severity - Definitely causes non-determinism:- Timestamp dependencies
- Random value generation
- Unseeded randomness
- UUID generation
- Environment dependencies
- Process-specific values
- API variability (trace IDs, etc.)
- Order-dependent operations
Recommendations format
Each recommendation includes:- Priority - high/medium/low
- Category - determinism/performance/reliability
- Title - Brief summary
- Description - What the issue is
- Solution - How to fix it
- Code example - Concrete fix (optional)
Using in the console
The determinism analysis is available in the Console UI:- Navigate to Runs page
- Click on a specific run to open its details modal
- Switch to the Determinism tab (microscope icon)
- View the analysis with:
- Determinism score and severity badge
- Patterns detected summary
- Detailed issues by action
- Prioritized recommendations with code examples
Example issues and fixes
Issue: Timestamp dependencyLimitations
What it CAN detect:- Static patterns in inputs/outputs
- Known non-deterministic keywords
- Common anti-patterns
- Non-deterministic behavior in external services
- Race conditions in concurrent code
- Hardware-dependent behavior
- Implicit state dependencies
Local replay submissions
After the SDK finishes a local replay (viareplay_mode(...)), it posts a summary back to the platform:
/api/v1/replay/history/), with per-run drill-down at /api/v1/replay/history/{run_id}.
Run bundle download
run_id, agent_id, timestamp, status, total_cost, ordered actions[]) suitable for ReplayMode.from_run_id() to consume locally without re-hitting external APIs.
What-if policy evaluation
evaluate_run_against_policy and reports which would have been blocked by the alternative policy. Used by the console’s “preview new policy” workflow.
