feat(engine): add canonical risk and order matching

This commit is contained in:
Boki 2026-10-22 22:15:34 -04:00
parent b65acccd91
commit ccf333cc0a
13 changed files with 5129 additions and 36 deletions

View file

@ -14,6 +14,8 @@ Scheduling source of truth: [manifest entry F06](../manifest.json). No task is a
Implement the replay cursor once: sorted immutable events with stable availability/phase/instrument/sequence ordering; add a small pending-event queue only where required. Absorb P02's nonquadratic load and disabled-by-default hot-loop trade logging. Generate open-only execution events from one designated execution series; feature-only frames do not add liquidity or undeclared decision triggers. Publish completed observations, evaluate declared decision barriers, then next-interval opens under recorded zero/nonzero latency policy.
Consume F05's explicit event contract without reconstructing a second matcher: quote observation time is not delivery time, and eligibility requires an order to be ready by physical quote time. Open time must equal its execution key; skip/reject missed opens, never relabel them as newly occurring. Decision admission uses the coordinator's shared portfolio/order revision, distinct from the nested economic ledger revision. Terminal F05 failures retain diagnostic prefixes but must fail/discard the replay attempt, never produce successful performance results.
## Exclusions
No unrelated refactor, new service, broker enablement, or silent reinterpretation of historical results.