Exchanges in Recipes and plans from recipes
@fosterlynn is preparing to add exchanges to recipes and thus to planning from recipes.
This is a good and necessary idea, but brings with it some interesting side issues. Here I'll ponder some of those issues.
In an economic network composed of more than one independent agent, can one agent make plans that will need to be executed by other independent agents?
An exchange transfers resources from one agent to another, so planning an exchange requires agreement on the plan among the various agents involved.
Let's say that the purpose of an exchange in a recipe is to specify and plan how Agent A will get some resources as inputs to a planned process. When a plan is generated from that recipe, the dependent demand explosion will stop at the demand for that input, which is the outer limits of Agent A's scope, and will generate an Intent (Request) for the required resources.
Can the recipe exchange specify that the request for the resources will be sent to Agent B? Or broadcast to an intent-casting medium?
Recipes do not specify any Agents. They are assumed to be open recipes.
Can the dependent demand explosion send a request to Agent B, or can the recipe and thereby the plan explosion continue in Agent B's scope, maybe planning the production and delivery of the required resources?
That would require some prior agreements between Agent B and Agent A, which might be configured by some event-condition-action loop like IFTTT (If This Then That). Those rules would be separate from the recipe, although they could reference it.