feat(engine): add deterministic historical replay

This commit is contained in:
Boki 2026-10-22 23:34:35 -04:00
parent ccf333cc0a
commit 417a7bd21e
10 changed files with 2055 additions and 28 deletions

View file

@ -48,6 +48,7 @@ Parallel eligibility: only with disjoint actual files and reserved write locks;
- Sharpe uses periodic excess-return mean/std; Sortino uses downside deviation relative to the declared target; zero-variance/undefined cases are null with reasons.
- Exposure uses the union of occupied intervals; open positions count; attribution distinguishes fills and round trips.
- Reviewed calculation functions are reused where their conventions match. Any deliberate difference has a versioned policy and independent arithmetic fixture, not an unexplained second formula.
- Preserve the sequential equal-time marking policy and its material risk limitation in result provenance: intermediate valuations may latch halts despite a recovered synchronized value. Do not report such traces as atomically marked portfolio risk. Before canonical multi-asset default cutover, apply R05's explicit owner policy-review gate; component F06 acceptance does not satisfy it.
## Mandatory tests