Lifecycles
The lifecycle lens answers "what's the full flow from start to finish?" Lifecycles are end-to-end sequences that thread through multiple subsystems and business domains on the single production host. Each lifecycle chapter is the canonical step-by-step ordering — every other chapter cross-links into a specific anchor here when describing what flows past it.
Position lifecycle
The deep canonical chapter. Slot assignment → open (11 steps) → sync → WAP on DCA fill → close (9 steps). SL-before-TP invariant, retry idempotency, fast-trade rationale all spelled out here.
Order lifecycle
The per-order state machine running underneath the position flow. Placement / fill / cancel sequence, observer arms (LIMIT FILLED → WAP, TP/SL FILLED → close), idempotency on exchange_order_id.
Signal → direction
How indicator readouts collapse into LONG / SHORT / none. Hourly :30 cadence, progressive timeframe evaluation, and Binance-only production processing.
Cross-lens entry points
- Subsystems — what machinery executes each step (the daemon dispatches, the queues consume).
- Servers — where every step, daemon, queue, and datastore runs on the single Kraite host.
- Business domains — what each step changes (position state, order state, indicator readouts).