Dynamic planning in hierarchical active inference | Synapse