Counterfactual Behavioral Replay
Why Counterfactual Replay
How It Works
Behavioral Replay Engine
from nomotic.replay import BehavioralReplayEngine, ReplayConfig
from nomotic.audit_store import AuditStore
engine = BehavioralReplayEngine(audit_store=AuditStore(base_dir))
# "What if we had used stricter thresholds?"
report = engine.replay(
agent_id="claims-processor",
replay_config=ReplayConfig(
allow_threshold=0.9,
description="Proposed Q2 stricter thresholds",
),
)
print(report.generate_summary())
# Replayed 847 actions for claims-processor. The alternative config would
# have produced 23 different verdicts: 18 stricter (more denials), 5 looser.
# Net effect: 2.1% of actions would have been blocked that were previously allowed.Replay Configuration
Verdict Comparison
Direction
Meaning
Example
Fleet Replay
Configuration Comparison
CLI Usage
Replay with threshold overrides
Replay with a config file
Time-scoped replay
HTTP API
Replay
Compare Configurations
Integration with Drift Taxonomy
Replay Report
Field
Description
Last updated

