# Retrying a task: the same identifier, one effect

Missing confirmation does not establish whether a request took effect. Our own trial shows saved receipts, conflicting data and stopping at an unknown outcome.

L00P.AI · 1.0 · 2026-11-20

https://www.l00p.ai/en/resources/series/ponowienie-zadania-ten-sam-identyfikator-jeden-skutek/

## 01 / Before you press again

You request a notice but receive no confirmation. A retry might help or create another copy. For a process owner, the question is what evidence distinguishes a new request from a repeat and establishes the actual effect. Our own trial of 20 November 2026 explores that boundary using a fake receiver. No real message was sent.

[Batch import](/en/resources/series/import-partii-konflikt-nie-cofa-wczesniejszych-zapisow/) examined record commits within one database. [Edition parity](/en/resources/series/jedna-edycja-w-html-markdown-i-json/) compared HTML, Markdown and JSON. Here, a separate request ledger and receiver expose the gap between producing an effect and recording its confirmation.

## 02 / Request identity is explicit

One fictional caller uses the identifiers OP-A and OP-B. The request has two string fields: edition with value 1.0 and text with value Own fictional notice. The ledger compares their exact values; it does not infer identity from similar wording or a file hash. The data and identifiers are our own examples.

Submitting OP-A three times with the same data left one receiver entry. All three responses contained the same saved receipt, FAKE-1. Changing edition to 1.1 under OP-A returned a conflict and preserved both stores. The same data under a new OP-B instead produced a second intended effect and receipt FAKE-2. Identical content can belong to two separate requests.

## 03 / Two meanings of pending

The code first saves pending in the ledger, then adds an entry to the fake receiver, and finally saves done with a receipt. Two variants deliberately omitted subsequent steps by returning early from the function. No failure, timeout or process interruption was induced.

In the first variant, the return happened before the effect: the receiver had zero entries. In the second it happened after the effect but before saving done: the receiver had one entry. Both ledgers showed pending without a receipt. An ordinary retry in either case returned unknown and changed neither store. The guard prevented an additional effect, but in the first variant it also stopped progress.

![Six scenarios: a completed request returns its receipt, changed data conflicts, a new ID creates a second effect. Pending before and after the effect returns unknown; bypassing the guard creates a duplicate.](https://www.l00p.ai/wydawnictwo/ponowienie-zadania-ten-sam-identyfikator-jeden-skutek/retry-en-v1.svg)

```text
OP-A + same data + done -> saved FAKE-1  -> 1 effect
OP-A + changed data    -> conflict      -> 1 original effect
OP-B + same data       -> new request   -> 2 effects in total

pending BEFORE effect -> unknown -> 0 effects
pending AFTER effect  -> unknown -> 1 effect
  exact receiver inspection -> done + FAKE-1 -> still 1
  forced guard bypass                      -> 2 (error)
```

In the after-effect variant, we read our entire fake receiver. We found exactly one entry matching OP-A and the data, saved reconciliation evidence, and copied its receipt into the ledger. The next submission returned FAKE-1 without another entry. A separate negative control deliberately bypassed the guard and appended a second effect under OP-A; the ledger still showed pending. That error is the expected outcome of the negative control.

## 04 / What the process owner should accept

Before deployment, establish who assigns the ID, what counts as a repeat, which data changes cause a conflict and where confirmation comes from. Include both pending variants, a completed-operation retry, a new identity and a negative control in the acceptance record. After each path, inspect the receiver's actual state as well as the caller's response.

A real service needs a documented rule for resolving an unknown effect. Our receiver allows complete inspection; an external provider may offer no such access. An empty search result then provides insufficient grounds for an arbitrary retry. Also establish the caller scope and identifier retention period. The trial tests neither of these questions.

## 05 / The result has boundaries

One sequential trial in Python 3.11.11 on Windows covered six scenarios and 34 controls; all produced their expected outcomes. We retained the prior protocol, code, data, replies, both stores' states and file hashes. These are 34 controls of one demonstrator, not 34 independent experiments or a production reliability measurement.

Two ordinary JSON files do not constitute a transactional outbox. We did not test concurrency, partial writes, fsync, power loss, retention, multiple callers or provider idempotency. There were no network calls, billing operations or deliveries. A local ledger alone provides no guarantee of exactly one external effect. Zero entries is an observation from our completely inspected receiver, not general proof of a service failure.

## 06 / Sources, AI contribution and correction

The results come from our own ND06 trial of 20 November 2026. Malcolm Featonby's [Making retries safe with idempotent APIs](https://aws.amazon.com/builders-library/making-retries-safe-with-idempotent-APIs/) explains caller identifiers, parameter conflicts and bounded retention. It supplies design background; we ran none of its AWS commands. The [Python 3.11 json documentation](https://docs.python.org/3.11/library/json.html) describes the serialization and reading interfaces used. Its current 3.11.18 revision does not change the executed trial's version.

Codex produced the PL/EN text, fictional data, code, static SVG and ASCII equivalent while performing the agent editorial and checking functions. External sources are linked and paraphrased; no third-party illustrations or recordings were used. No independent review from a second model was received. Changes to identity rules, data, retention, the receiver or receipt reconciliation trigger correction. Can your process honestly stop at “outcome unknown”?
