Event-Driven Loop
Private events update Account State, record the affected scope, give related events a short bounded window to arrive, and one workflow owner chooses one action family. Accepted mutations stay pending confirmation until private confirmation or scoped recovery, and REST state fetches happen only at trust boundaries.
- Private event -> Account State update -> affected scope -> event-burst wait -> one action family -> pending confirmation -> private confirmation.
- Do not enter REST recovery just because private order, execution, fill, or position events arrived. If the private stream is healthy and Account State has ingested the matching order evidence plus the matching position or account evidence, continue from private-stream account state without REST hydration. For products without exchange-provided position rows, locally derived position evidence fills the same role.
- Give related private events a short bounded window to settle before planning dependent actions from Account State.
- For implementation order, artifacts, and conformance checks, use Exchange State Management.