SAC Off-Policy Replay
Use this skill when a SAC experiment needs a compact replay-buffer abstraction that stores transitions and produces deterministic minibatches. Do not compute SAC losses here.
Inputs
- Transition records containing
state,action,reward,next_state,done, andlog_prob. - Optional integer sample indices.
Outputs
- A validated replay batch.
- Summary counts and deterministic sampled transitions.
Workflow
- Validate every transition has the required fields.
- Convert numeric fields to finite floats and
doneto bool. - Preserve the stored transition order.
- Sample by explicit indices so tests and recovery runs are reproducible.
Validation
Run python tests/test_replay.py or validate the full skill tree with the Distiller validator.
Limitations
This is a bounded recovery utility, not a high-throughput production replay buffer.