Expand description
Turn-by-Turn Audit Logging for EDD Simulations.
HARD REQUIREMENT (EDD-16, EDD-17, EDD-18): Every simulation MUST produce a complete audit trail of every step.
This module provides:
SimulationAuditLogtrait for mandatory audit loggingStepEntryfor capturing complete step stateEquationEvalfor logging equation computationsDecisionfor logging algorithmic choices- Automatic test case generation from logs
- Replay functionality with speed control
§The Provability Chain
Seed(42) → RNG State₀ → Decision₁ → RNG State₁ → Decision₂ → ... → Final
↓ ↓ ↓ ↓ ↓
KNOWN PROVABLE PROVABLE PROVABLE PROVABLEEvery step is deterministic given the seed, therefore every step is provable.
§References
- EDD Spec Section 1.6: Turn-by-Turn Audit Logging (MANDATORY)
- Quality Gates: EDD-16, EDD-17, EDD-18
Structs§
- Audit
LogReplayer - Audit log replayer.
- Decision
- Algorithmic decision record.
- Equation
Eval - Equation evaluation record (EDD-17).
- Generated
Test Case - Test case generated from audit log.
- Replay
State - Replay state for audit log playback.
- Step
Entry - Complete step entry for audit logging (EDD-16).
- TspState
Snapshot - TSP state snapshot for audit logging.
Enums§
- Replay
Speed - Replay speed control.
- TspStep
Type - TSP step type for audit logging.
Traits§
- Simulation
Audit Log - MANDATORY trait for all EDD simulations (EDD-16, EDD-17, EDD-18).
Functions§
- hash_
state - Compute Blake3 hash of serializable state.
- verify_
rng_ consistency - Verify RNG state consistency in audit log.