In [Commun Anal Geom 13(5):845–885, 2005], Bartnik described the phase space for the Einstein equations, modelled on weighted Sobolev spaces with local regularity (𝑔,𝜋)∈𝐻2×𝐻1. In particular, it was established that the space of solutions to the constraints form a Hilbert submanifold of this phase space. The motivation for this work was to study the quasi-local mass functional now bearing his name. However, the phase space considered there was over a manifold without boundary. Here we demonstrate that analogous results hold in the case where the manifold has an interior compact boundary, and the metric is prescribed on the boundary. Then, still following Bartnik’s work, we demonstrate the critical points of the mass functional over this space of extensions correspond to stationary solutions with vanishing Killing vector on the boundary. Furthermore, if this solution is smooth then it is in fact a static black hole solution. In particular, in the vacuum case, critical points only occur at exterior Schwarzschild solutions; that is, critical points of the mass over this space do not exist generically. Finally, we briefly discuss a version of the result when the boundary data is related to Bartnik’s geometric boundary data. In particular, by imposing different boundary conditions on the Killing vector, we show that stationary solutions in this case correspond to critical points of an energy resembling the difference between the ADM mass and the Brown–York mass of the boundary.