An idea from Groundwork of the Metaphysics of Morals
The promise test becomes one command, the categorical imperative: “Act only on that maxim whereby thou canst at the same time will that it should become a universal law.” A policy passes only if you could want everyone to follow it.