Having spent a bit of time in XML land again, it's crazy to think that this is a complete alternate evolutionary path where trees of heterogenous nodes are the substrate instead of the JSON object model.
It's complete with its own schema, query, and pipelining languages.
Now
This is why orbs are powerful: @AmpCode could test this feature end to end on Linux, Windows, and Mac, and was sending me regular videos of how things work.
My work was thinking at high level through all the "what if..." scenarios and guiding the agent toward a solution.
Do yourself a favor and read about Statecharts.
They take all the pain out of distributed systems, are free (yay, ideas - point your agent at SCXML!), and agents love the local reasoning they enable.
Interactive demo of having the agent port Pi Durable over to statecharts: