1. A device-implemented method comprising: constructing an agent in an execution environment embodied on a device that utilizes a set of compiled, canonical rules, by at least: requesting a non-compiled, canonical rule set for the agent from a rule repository; compiling the canonical rule set; and supplying the agent with a compiled canonical rule set; creating a rule engine that is to be used to execute the compiled canonical rule set.