Section 065
Order Lifecycle
Every order moves through a fixed set of recorded states, from intent to reconciled fill.
The executor records every order as a state machine. Each transition is written to the database before the next step runs, so a restart resumes exactly where the previous process stopped.
| State | Meaning |
|---|---|
INTENT | The model produced a target and sizing produced a non-zero order. A deterministic cloid is assigned. |
CHECKED | Risk state, data freshness, lease (for entries) and the entry band were verified. |
SENT | The order was submitted to Hyperliquid. |
ACKED | The venue returned an oid or a resting status. |
FILLED | Fills for that oid arrived; partial fills keep the order open. |
RECONCILED | The position ledger and the venue agree after the fill. |
REJECTED | The venue rejected the order or a check failed; the reason is stored. |
Orders that rest without filling are cancelled when their signal expires. A timeout between SENT and ACKED never causes a resend: the executor queries the venue by cloid first (see Idempotency). Partial fills are common on thin markets; the ledger is updated fill by fill, and the order reaches FILLED only when the full size is done or the remainder is cancelled.