Module events
Expand description
EngineEvent envelope and payload types (JOURNAL_SPEC §5, §8).
Ordering rule (§5.1): Replay MUST order events by seq.
mono_ns and ts_utc are for diagnostics only.
Uniqueness rule (§5.2): Within a run, seq MUST be unique
and contiguous, and event_id MUST be unique.
Structs§
- Checkpoint
- §8.14 — Snapshot for accelerated replay.
- Config
Change - §8.3 — Runtime config change.
- Direct
Retirement Event - §8.17 — Direct-cancel retirement marker.
- Engine
Event - Event envelope wrapping every journaled record (JOURNAL_SPEC §5).
- Execution
Ack - §8.8 — Venue acknowledgment.
- Execution
Command - §8.7 — Outbound command to exchange adapter.
- Execution
Reject - §8.9 — Venue rejection.
- FeeDetail
- Fee breakdown attached to a fill.
- Fill
- §8.10 — Trade execution (partial/full).
- Heartbeat
- §8.15 — Health marker.
- Market
Event - §8.4 — Canonical market data.
- Mode
Change - §8.2 — Mode transition within a run.
- Order
Intent - §8.5 — Order intent (canonical).
- Order
State Event - §8.11 — Explicit order state transition.
- Reconcile
- §8.12 — Reconciliation action and result.
- Risk
Decision - §8.6 — Risk gateway decision.
- Risk
State Event - §8.13 — Risk stop-state transition.
- RunMeta
- §8.1 — Run metadata. MUST be seq=1.
- Strategy
Intent - §8.5 — Strategy intent event.
- Velocity
Gate Event - §8.16 — Velocity gate transition.
Enums§
- AckStatus
- Execution ack status (§8.8).
- Command
Type - Execution command type (§8.7).
- Config
Source - Config change source (§8.3).
- Decision
- Risk decision outcome (§8.6).
- Heartbeat
Component - Heartbeat component (§8.15).
- Heartbeat
Status - Heartbeat status (§8.15).
- Intent
Action - Intent action (§8.5).
- Liquidity
- Liquidity indicator (§8.10).
- Mode
- Engine operating mode (JOURNAL_SPEC §4).
- Order
Lifecycle State - Order lifecycle state (§8.11).
- Order
Type - Order type (§8.5).
- Payload
- Discriminated payload for each event type.
- Reconcile
Result - Reconciliation result (§8.12).
- Reconcile
Scope - Reconciliation scope (§8.12).
- Reconcile
Severity - Reconciliation severity classification (§8.12).
- Risk
Reason Code - Risk reason code (§8.6).
- Risk
Stop State - Risk stop state (§8.13).
- Time
InForce - Time in force (§8.5).
Constants§
- SCHEMA_
VERSION - Current schema version for the EngineEvent envelope.