This article proposes a hierarchical learning architecture for safe data-driven control in unknown environments. We consider constrained nonlinear dynamical system and assume the availability of state-input trajectories solving tasks different In addition to task-invariant state input constraints, parameterized environment model generates task-specific which are satisfied by stored trajectories...