Phase I: learn the backup with the safe-arrival value
PS2-RL keeps the certified pair $(\mathcal B,\pi_{\mathcal B})$ and learns only what happens outside $\mathcal B$: a safe-arrival policy $\pi^\theta_{\mathrm{SA}}$ that steers states into $\mathcal B$ quickly while avoiding the failure set $\mathcal F=\mathcal X\setminus\mathcal S$. Its objective is an indicator-based value:
$$Q^{\pi_{\mathrm{SA}}}_{\mathrm{SA},\beta}(x,u)=\mathbb E\Big[\sum_{k=0}^{\infty}\beta^k\Big(\prod_{\tau=0}^{k-1}\mathbf c(x_\tau)\Big)\mathbf b(x_k)\Big],\qquad \mathbf b=\mathbf 1_{\mathcal B},\ \ \mathbf f=\mathbf 1_{\mathcal F},\ \ \mathbf c=1-\mathbf b-\mathbf f.$$
For deterministic dynamics it equals $\beta^N$ if the rollout first reaches $\mathcal B$ safely after $N$ steps, and $0$ otherwise. Maximizing it therefore prefers safe arrival over failure, and faster arrival over slower. Try it:
The value satisfies a Bellman equation, $Q_{\mathrm{SA},\beta}(x,u)=\mathbf b(x)+\beta\,\mathbf c(x)\,Q_{\mathrm{SA},\beta}\big(x',\pi_{\mathrm{SA}}(x')\big)$, which is a $\beta$-contraction, so any off-the-shelf RL algorithm can learn it. Its optimum is exactly the time-optimal safe-arrival policy, $V^\star_{\mathrm{SA},\beta}(x)=\beta^{d(x)}$. The learned policy is never certified, and it does not need to be: the rollout check of idea 1 only certifies the states from which it actually succeeds.