Skip to content

The provider response was lost. Now what?

Trace an external write from exact approval to an uncertain outcome, and learn why retry needs evidence.

The dangerous gap after dispatch

Imagine an agent sending a customer follow-up. The user approves the saved recipient, subject and body. Your application calls the email provider. The provider accepts the message, but the connection drops before your server receives the response.

This is a hypothetical failure path, not a claim that the recorded demo reproduced this provider event. The application knows it dispatched a request. It does not know whether the email was sent. “Request failed” and “action did not happen” are different facts.

A retry that ignores that distinction may send the same message twice. An agent’s confident answer cannot resolve it.

Start with authority and exact intent

Before dispatch, verify current workspace membership, tool scope and connected account ownership. A reviewed plan describes work; it is not blanket permission to send email.

Save the exact action and bind approval to that intent’s version and fingerprint. If the recipient or content changes, the previous approval no longer applies. Expiry and revoked access must stop a new dispatch.

These checks address who may act and what they approved. They do not solve uncertain provider outcomes by themselves.

Make the uncertainty durable

FoundryLayer commits external intent before dispatch and records classified attempts under a stable action key. It distinguishes three outcomes:

ClassEvidenceConsequence
SuccessExecution confirmedSave the result; do not replay
Definite nonexecutionAuthoritative evidence of no executionConsider retry under existing policy
AmbiguityExecution may have happenedEnter reconciliation_required

A timeout is ambiguity. So is an otherwise unclear provider result. Replacing uncertainty with failure loses the fact that matters most.

Reconcile before retrying

Inspect provider-specific evidence against the saved intent. A matching provider record can establish success without sending again. Authoritative evidence of nonexecution can permit a policy-governed retry, with current authority still checked. An empty or inconclusive query should preserve uncertainty.

Reconciliation is not a promise that every provider makes the outcome knowable. Some cases need operator attention. FoundryLayer does not guarantee exactly-once provider execution; it prevents uncertainty from quietly becoming permission to replay.

Cancellation and revoked access cannot unsend an email that already left the application. They can fence future work.

Try the failure path

Use the Action Safety Playground. Review a plan, approve the payload, dispatch, then choose the lost-response outcome. Inspect inconclusive evidence first: the action should remain uncertain. Next, supply a synthetic matching record and watch it resolve without another dispatch.

Change the payload before dispatch to see approval invalidated. Revoke scope after approval to see current authority block execution. The whole exercise is a local simulation; no provider is called.

For the source contracts and extension guidance, read safe external actions. For the complete foundation, explore the product.

Inspect the mechanism.

Build on a foundation you own.

$149 USD once. One developer seat. Unlimited owned and client projects. Prelaunch.

Explore the license