A detailed look into the tradecraft, moral compromises, and legal boundaries of a deep-cover police operation.