Urgent.News

What's breaking now, across hundreds of outlets.

AI

Your AI agent re-sends the email on retry: an outbox for side effects

Most agent frameworks model a step as "do some work, then call the tools." So the tool call — send the email, call the webhook, charge the card — happens inside the run, somewhere in the middle of your graph. That works until it doesn't. The moment you add a retry, a crash-resume, or a deterministic replay, the same step runs again, and the side effect fires again. State you can version and…

Agent frameworks typically model a step as performing some work, then calling tools. This works until it doesn't. When you add a retry, crash-resume, or deterministic replay, the same step runs again, firing side effects multiple times. The issue lies in executing I/O inside an agent step. To resolve this, the outbox design records the intent as state (committed atomically with everything else) and lets the runtime deliver it once, after the commit.

This prevents re-sending, re-running, or replaying the effects. The outbox splits the intent and delivery into separate steps: the produce records the intent as state, while the runtime delivers the committed-but-undelivered intents after the commit. This approach prevents duplicate effects in retries, parallel producers, and replays.

Using the outbox, you can have a clear separation between intent and delivery in your agent framework.

Rewritten by urgent.news; may contain errors — check the original.

Source: dev.to

Read the original at dev.to →

Report a problem with this story

More in AI

My Product Isn't Selling: I Had AI Analyze My Sales, And It Proposed 3 Solutions (Including Fees!)

I've launched a few products on platforms like Brain and Udemy, but regularly checking sales figures is a pain. You have to log into multiple sites, navigate to each dashboard, and stare at the…

  • AI analyzed sales data and provided improvement suggestions
  • Proposed three solutions: referral program, free Udemy coupons, and use case content
  • Owner implemented some AI-generated actions while making final decisions

Auditable agents: turn the answer into a claim you can check

A model tells you "Q2 cloud spend was $45,000 — a 12.5% variance over budget." Now two uncomfortable questions: Why? Which spreadsheet cell, which policy clause, which calculation? Again?

  • Treat AI agent's output as a typed artifact within a versioned context
  • Link derived answers to inputs as typed edges to form a reasoning graph
  • Implement reproducible approach using Python and Reactifact framework

TRAIL TUTOR

This is a submission for the Hacktoberfest Open-Source AI Challenge Week 1: Touch Grass TrailTutor AI: Use AI for One Minute, Explore the Real World for Ten What I built TrailTutor AI is an outdoor…

  • TrailTutor AI encourages outdoor learning by generating personalized missions.
  • Built with open-weight Gemma model for flexibility and fine-tuning.
  • Deployed using FastAPI, Render, and NVIDIA's hosted API for efficient inference.

More from Friday 9 October →