SkilldexAll articles

Reconcile tool timeouts with a status lookup

Find out whether a remote operation committed before retrying or reporting its outcome.

A tool timeout tells the caller that the return signal did not arrive in time. The remote service may still process the request. A separate status lookup paired with a stable operation identity lets a skill distinguish the possibilities without trying the same write under a new identity.

Create the lookup handle early

Get a request identifier before sending the write and retain the provider’s operation ID when available. Some APIs let callers look up requests by their supplied identifiers. Test what happens when a timeout occurs before an operation ID is returned, because that is exactly when recovery needs a stable handle.

Poll with a bounded plan

Use backoff and stop polling at a sensible deadline. Preserve the last confirmed state rather than treating a missing or delayed record as failure. If the service guarantees an operation is absent at a particular point, follow its documented retry contract; otherwise keep the result uncertain.

Consider equivalent parameter conflicts

If a retry is safe with the same key, send the same intended parameters. A changed recipient or payload is a different proposal. Check which equality rules the provider uses and give the user a clear result if the request cannot be safely reconciled.

Sources