Represent HOLD, BUY, REDUCE and EXIT as untrusted requests. Every leaf below is a programmatic execution unit with 1:1 correspondence to the named Python engine function.