1. A method implemented by a first computing device, the method comprising: executing a first execution environment for a software agent on the first computing device, the first execution environment configured to manage the software agent according to a policy associated with the first execution environment; receiving, by the first execution environment, an event indication associated with the software agent, wherein receiving the event indication associated with the software agent comprises receiving, at the first execution environment, a message from a peer execution environment that changes the policy associated with the first execution environment; detecting, by the first execution environment and based on the event indication, that the software agent is not compliant with the policy, and in response: configuring a second execution environment at a second computing device distinct from the first computing device, wherein the second execution environment is configured for execution of the software agent on the second computing device; communicating the policy associated with the first execution environment to the second execution environment; configuring the second execution environment to manage the software agent according to the policy associated with the first execution environment; and migrating the software agent from the first execution environment to the second execution environment.