In this article
Require one durable effect per approved action identity.
Pydantic AI v2.75.0, published November 25, adds a Temporal ExternalEventWaiter for deferred tools and AskUser. The durable wait allows workflows to await a response across execution changes. The downstream action has its own idempotency requirement.
What the source establishes
Give each approved action a durable application identity. Persist the transition from waiting to approved and from execution to recorded completion independently of a transient worker. Keep the model, task and tool definitions fixed while you change the session behavior.
Design the comparison
Use a sandbox with a harmless state change. Deliver an approval, restart the worker at a known point and replay the same event. Compare with an uninterrupted workflow and an intentional decline. Use simulated state and authorized no-op tools for the decision points in the example. Trace the structured result as well as the visible text. Use a stable control, change the condition you are investigating and repeat both cases in the same environment. Keep the request or data distribution, software revisions and hardware allocation in the run record. Include the route you normally use and the case in which the expected prerequisite is absent. This helps localize a discrepancy when the test produces a different result.
Read the results
Inspect event ordering, which operation identity reached execution, the visible result and whether the underlying state changed twice. Verify that denied approvals leave the state intact. Check exactly which state the next turn receives. Classify decisions made by the runtime separately from those made by the model.
Decide what goes into service
Require one durable effect per approved action identity. Preserve the same authorization checks after a worker restart. State the acceptance threshold before choosing the implementation. Add the tested boundary and conditions for revisiting it to the release record. If an observed behavior differs from expectations, narrow the scope of the rollout while collecting evidence for that case. Keep the prior artifact or configuration available so the comparison remains repeatable.
Sources
Related reading
Earn rental income from GPUs
Have idle GPUs or looking to fund AI infrastructure? Retrivium finds a rental platform, sets up the server and helps you assess income and costs with a pilot.