Composable position management rules.
Each Rule variant carries both its configuration and its mutable runtime state (e.g. whether it has already triggered). Rules are evaluated on every price tick for open positions and produce Effects that the engine applies.
Rule
Effect