Structural spin-glass identities from a stability property: an explicit derivation