An act of devising.
The act of machinating or plotting.
A clever scheme or artful plot, usually crafted for evil purposes.