1. A computer-implemented method, comprising: receiving an encoded agent in an execution environment, the encoded agent being received from a different execution environment, the encoded agent including an as-needed canonical rule set adapted from the different execution environment for the execution environment; decoding the encoded agent to create a decoded agent; compiling the as-needed canonical rule set; searching to locate a rule engine; creating a rule engine in response to a failure to locate the rule engine; supplying a created or a found rule engine with a compiled as-needed canonical rule set; and requesting a working memory from the rule engine.