Planning as executable actions: a first step towards a theory of reactive planning