VIEW THIS AS

Auto mode follows the Route Engine until you choose a viewpoint.

YOU ARE HERE

ROUTE CHECK

CONNECTED TO

WHAT NEXT

Use the canonical route for this room, or HELP if you are unsure.

How to use SuperIntelligence Efficiently | How Can You Use AI to Prevent Duplicate Actions When a Request Is Retried After an Uncertain Result?

When an AI-assisted action appears to fail, do not assume that nothing happened. A request can succeed even if its confirmation never reaches the person who requested it. Before repeating an action that creates or changes something, establish whether the first attempt already took effect. Use stable operation identifiers and reliable state checks where the system supports them. Safe retries preserve the intended result rather than multiplying unintended side effects.

This international guide follows Bea, a fictional coordinator creating synthetic draft entries in a test resource catalogue. Every record and system response is invented. SuperIntelligence is the future-facing theme, not a claim of demonstrated general superintelligence today. The exercise concerns low-stakes sandbox actions; it does not authorise real purchases, messages, deletions, payments or external publication.

  • Distinguish an intended action, its attempts and the actual stored result.
  • Treat missing confirmation as an uncertain state, not proof of failure.
  • Use a stable operation identifier when the service supports deduplication.
  • Check scope, permissions and whether changed inputs represent new intent.
  • Test concurrent attempts, delayed confirmations and partial failure.
  • Stop and seek authorised reconciliation when the outcome cannot be established.

Continue the series: Parts 97–100

Parts 93–96: sampling, units, prediction calibration and decision tables · Begin the complete series

Full chapter index

Understand requests and uncertain outcomes
Design a safer retry contract
Test failures and repeated attempts
Verify state and authority
Teach and extend dependable workflows

1. Separate the goal from the attempt

Bea wants one test catalogue draft for resource R17, with title Practice Shapes and source version S1. The intended result is a single draft entry, not a successful-looking conversation message.

An attempt is one call to the catalogue. Several attempts might serve one intention, and identical-looking intentions can sometimes be separate authorised requests.

Contents · Next chapter

2. Define the side effect

A read-only request retrieves information, while a create request can add a stored entry. Retrying the latter may add another entry unless the system prevents duplicates.

Some reads also have operational side effects such as usage charges or logs. Verify the actual service contract rather than inferring safety from a label.

Contents · Previous chapter · Next chapter

3. Establish the first fictional attempt

Bea sends a create-draft request with an intended operation identifier OP17. The test catalogue creates draft D501, but the response is lost before the caller receives it.

From the caller’s perspective the result is unknown. From the stipulated catalogue’s perspective a draft exists. These two knowledge states are different.

Contents · Previous chapter · Next chapter

4. Distinguish a timeout from a confirmed rejection

A timeout means that the expected response was not obtained within the chosen interval. It does not establish whether the remote action started, completed or failed.

A documented validation rejection may establish that a particular request was not accepted, depending on the service’s guarantees. Inspect the actual result rather than calling every error safe to retry.

Related guide: reconciling balances.

Contents · Previous chapter · Next chapter

5. Recognise an unsafe repeated create

If Bea sends a new ordinary create request after the lost response and the catalogue creates D502, two drafts now exist for her single intention. Both calls could have executed as designed.

The second confirmation cannot establish that the first request failed. The duplicate is an outcome of repeating an action without resolving its state.

Contents · Previous chapter · Next chapter

6. Define idempotence at the appropriate boundary

In this teaching example an idempotent create contract means that repeated accepted attempts with the same authorised operation identity and compatible inputs produce no additional draft creation.

It does not mean that all network responses, timestamps or logs must be identical. The service must specify what result is preserved and for how long.

Contents · Previous chapter · Next chapter

7. Use a stable caller-provided operation identifier

Suppose the test catalogue explicitly supports OP17 as an idempotency key scoped to the appropriate caller and operation. Bea uses the same key for the same intended creation on retry.

A newly generated identifier for every retry would defeat this mechanism. Do not assume that an arbitrary field named request ID has deduplication semantics unless the system documents it.

Contents · Previous chapter · Next chapter

8. Observe the supported retry outcome

Under the fictional safe contract, the second attempt with OP17 returns the existing draft identifier D501. The catalogue still contains one draft produced by this intention.

The response must be checked against the actual stored state or the documented guarantee. Do not claim that a real API has this property merely because the assistant included a key.

ScenarioAttempt 1Attempt 2Stored result
Unsafe repeated createCreates D501; reply lostCreates D502Two drafts
Supported same-key retryCreates D501; reply lostReturns D501One draft
Separate invented scenarios. The second requires a documented and correctly implemented retry contract.

Contents · Previous chapter · Next chapter

9. Distinguish same input from same intent

Two people may legitimately request separate drafts with the same title and source. A match on title alone cannot prove the requests are duplicates.

An operation identity should express an authorised intention within an appropriate scope. Content equality may be a useful investigation clue but is not always sufficient for merging actions.

Contents · Previous chapter · Next chapter

10. Handle changed inputs under the same key

Suppose Bea retries OP17 but changes the source version from S1 to S2. The fictional contract rejects the mismatch rather than silently creating or overwriting a draft.

A changed intention may require a separately authorised operation or an explicit update. Determine the proper action; do not generate a fresh key simply to bypass a conflict.

Related guide: bounded pilots and rollback.

Contents · Previous chapter · Next chapter

11. Define the retention window

A service may remember operation identities only for a documented period. After that period, reusing a key may not prevent a new action.

Record relevant timing and consult the current service contract. A late retry outside the supported window requires a new state check or human review, not an assumption of indefinite protection.

Contents · Previous chapter · Next chapter

12. Check concurrent attempts

Suppose two workers send OP17 nearly simultaneously. A robust supported contract must prevent both from independently deciding that no draft exists and creating one each.

The identity check and mutation need suitable coordinated handling. A prompt asking two agents to be careful is not a transactional concurrency guarantee.

Contents · Previous chapter · Next chapter

13. Understand partial failure

A service might record an operation key but fail before creating a draft, or create a draft but fail before recording completion. An inadequate implementation may then suppress a needed action or allow duplication.

A properly designed contract must address these intermediate states through appropriate transaction or recovery mechanisms. Building production systems requires qualified technical review.

Contents · Previous chapter · Next chapter

14. Use a conservative state vocabulary

Possible states in the fictional client include not attempted, pending, confirmed success, confirmed rejection and outcome unknown. Pending or unknown is not permission to mark the task complete.

Record what the evidence establishes. If the system returns an unexpected state, pause the mutation and escalate rather than inventing a transition.

Contents · Previous chapter · Next chapter

15. Reconcile when no retry contract exists

If the catalogue does not support idempotency, use an authorised read-only query to look for evidence of the intended draft. A known unique operation reference may help locate it.

A search returning no match is not always conclusive: indexing delays, permissions or incomplete queries can hide a result. If the outcome remains uncertain, stop and seek an authoritative check.

Contents · Previous chapter · Next chapter

16. Give AI a bounded retry brief

Try: The first create attempt timed out. Do not issue another write yet. Inspect the permitted state and documented retry contract, identify whether the intended result exists, and report the evidence and unresolved uncertainty.

An assistant without the necessary read access must say it cannot verify the outcome. It should not claim success or automatically repeat an action.

Related guide: parallel work and integration.

Contents · Previous chapter · Next chapter

17. Design a sandbox test matrix

Test a normal success, a lost response after success, a confirmed validation rejection, a same-key changed input, concurrent attempts and an expired key. Use synthetic entries and no external distribution.

For each test define the expected stored result, not merely the expected response text. The most important check is whether the number and meaning of effects match the authorised intention.

TestExpected safe outcome
Normal successOne confirmed draft
Lost response after successSame-key retry resolves existing result
Same key, different sourceConflict; no new unintended write
Concurrent same-key callsNo duplicate effect under contract
Expired keyReconcile; do not assume protection
Fictional sandbox expectations; verify the actual service guarantees before operational use.

Contents · Previous chapter · Next chapter

18. Distinguish duplicate prevention from duplicate repair

If D501 and D502 already exist, identify whether both arose from the same intention, whether either has references or downstream uses, and who is authorised to correct the record.

Do not automatically delete one because the titles match. A corrective action may itself have consequences and must follow the applicable approval and recovery process.

Contents · Previous chapter · Next chapter

19. Separate create and update semantics

Setting a test draft’s title to a particular value twice might leave the same final title, but incrementing its version counter or appending a note twice can produce different results.

Inspect the complete effects of the operation. An update request is not automatically safe to repeat, and an apparently idempotent field change can trigger non-idempotent secondary actions.

Contents · Previous chapter · Next chapter

20. Avoid treating exactly-once as a casual promise

A documented at-most-once effect for one operation key does not guarantee that an entire multi-service workflow completes exactly once. Other systems may have different failure and delivery semantics.

Check the boundary of each guarantee. Use reconciliation and suitable technical design for multi-step processes rather than claiming universal reliability.

Contents · Previous chapter · Next chapter

21. Maintain an operation record

Keep an appropriate record of intended action, scope, operation ID, attempt timestamps, confirmed result IDs, observed state and reviewer decision. Avoid logging secrets or unnecessary personal data.

A later handover should distinguish a retried request from a new authorised intention. Retain the evidence according to the applicable retention requirements.

Related guide: regression testing.

Contents · Previous chapter · Next chapter

22. Practise with a changed task

In a fictional study project, one intended worksheet draft W8 is requested, the response is lost, and the system can search by a verified operation key. Write the read-only check and the response to an uncertain result.

Now remove the key-based guarantee and explain why the correct next step may differ. Do not execute real writes during this exercise.

Contents · Previous chapter · Next chapter

23. Connect retries across zoom levels

An individual can prevent duplicated draft generation; a teacher can supervise safe resource workflows; a team can design reliable integrations. Larger systems need technical safeguards, permission boundaries and suitable operational monitoring.

The shared principle is preserving authorised intent across repeated attempts. It is not the assumption that every service can guarantee the same result.

Contents · Previous chapter · Next chapter

24. Connect vocabulary, Ztime and EnDist

Vocabulary Coding and Engineering separates intention, operation identity, attempt, acknowledgement, side effect and confirmed state. Ztime preserves the sequence of attempts and the evidence that resolves uncertainty.

EnDist is a conceptual lens for useful forward progress after confusion and rework, not physical energy or a validated numerical measure. Preventing unwanted repeated effects can reduce unnecessary correction without establishing a universal zero-loss property.

Read more: shared vocabulary · EnDist in Civilisation OS.

Contents · Previous chapter · Next chapter

25. Four weeks of practice

Week one: model a synthetic create operation and its possible confirmation states. Week two: practise lost responses, safe repeated keys and changed-input conflicts.

Week three: test concurrent and late attempts in a suitable sandbox. Week four: prepare a reconciliation record and apply the reasoning to a different fictional action, keeping actual permissions and external effects outside the exercise.

Contents · Previous chapter · Next chapter

26. Questions beginners ask and the next useful step

Does a timeout prove failure? No. Does the same title prove duplicate intent? No. Does a new request ID preserve retry protection? Not necessarily. Can a prompt replace a supported transactional guarantee? No.

Before asking an assistant to repeat an action, ask what evidence would establish whether the first attempt already changed the world. Use the supported contract, or stop when that evidence is unavailable.

Malcolm Featonby’s Making retries safe with idempotent APIs in the Amazon Builders’ Library describes caller-supplied request identifiers, atomic handling and distinguishing changed intent from retries. The catalogue examples here are independent fictional teaching illustrations, not instructions to operate a particular service.

Contents · Previous chapter · Continue learning: next guide in this collection