﻿# Retry a delegated job without duplicating its business effect

Give repeated assignments a stable business identity and reconcile existing effects before admitting another write or artifact as new work.

Author: Retrivium team
Updated: 2026-11-06
Canonical URL: https://retrivium.ai/journal/frontier-swarm-retry-idempotency/
Language: en

## A second turn is not always a second job

A coordinator loses track of a specialist's acknowledgement and assigns the same report again. Both attempts may finish, each proposing a document update. The failure can occur without an interruption or an external tool error. The [Responses guide](https://developers.openai.com/api/docs/guides/responses-multi-agent) provides follow-up assignments and function-call continuation, but a new agent turn does not establish that the business should create another report or repeat a write. Business identity must survive the agent lifecycle and uncertain message delivery.

## Separate the relevant identifiers

A proposed ledger distinguishes the task identity, attempt identity, tool-call identity and artifact revision. The task identifies the promised report; an attempt records a particular investigation. A tool call connects an execution result to the model request, while the artifact revision identifies what could be accepted. Reusing a task key does not justify reusing a stale tool result after the input changed. Conversely, a new attempt identifier should not automatically authorize creating another external object for the same unchanged task.

## Admit effects at the execution boundary

Before a document update, the executor can compare the expected base revision and inspect whether the intended update already exists. Where a downstream service supports an idempotency mechanism, use its actual documented semantics. Do not invent universal exactly-once behavior for arbitrary tools. The [SDK guardrail guide](https://developers.openai.com/api/docs/guides/agents/guardrails-approvals) places checks and approvals around actions before execution. That boundary is useful for duplicate detection because model prose about “only once” cannot enforce a constraint against an external system on its own.

## Test duplicate work rather than only errors

A proposed test delivers the same assignment twice, duplicates a completed function result and returns two reports in different orders. Verify that the coordinator accepts the appropriate current artifact once, retains useful additional evidence and does not issue competing updates. Also change the input revision to confirm that a genuinely new job is not wrongly suppressed. Record observed business state rather than counting successful agent turns. No claim of an executed experiment or provider-native global transaction is made here.

## Keep retries understandable

Through May 6, 2027, a final task record should explain which attempt produced the accepted artifact and why another result was reused, rejected or superseded. [Call identity](/journal/learn-openrouter-parallel-tool-calls/) explains request-result matching. [Artifact identity](/journal/bb-mixed-agent-handoff-format/) explains revision-sensitive review. The distinctive retry contract connects those levels without confusing them. It lets the application recover from uncertainty while preventing extra conversational activity from silently becoming an extra business effect, duplicate publication or obsolete document revision.

## A possible six-month capability

An editorial scenario through May 6, 2027 is at-least-once task assignment with one accepted business artifact despite duplicate delivery. Stable task identity, revision checks and downstream reconciliation provide the mechanism. It requires recognizable outcomes for effectful stages. Services that cannot distinguish a repeated operation from a new authorized one are counterevidence; the workflow must restrict autonomous retries rather than promise exactly-once behavior from agent orchestration alone.
