wrote some notes about two-phase policy resolution