Statistical physics of principal minors: Cavity approach | Synapse