After a submission times out, check whether the record was saved

For AI system updates to ERP or CRM, approved versions, stable request identifiers and target-record checks determine whether work can safely continue.

Article published: 2026-10-15Mokyun Editorial3 min read

Original implementation guide · Content version: · Sources

A quote draft has been reviewed, but the system times out during submission. Before submitting again, the operator needs to establish whether the target saved the previous request. A lost response can occur after the business action was committed, making repetition consequential.

Original Mokyun sample-material preview: approval gating, retry and saved-record verification results from an actual local run. Synthetic data and local SQLite; not an ERP/CRM product screenshot.
Original Mokyun sample-material preview: approval gating, retry and saved-record verification results from an actual local run. Synthetic data and local SQLite; not an ERP/CRM product screenshot.

Querying and retrying after a timeout

After a timeout, query the target by request or business identifier and compare the saved fields. Retry only when the absence of a submission and the retry conditions are established. If a reliable lookup is unavailable, an exception owner takes over. Keep the lookup time, finding and decision in the original task.

A retry-safe request needs an identifier that remains the same when the same action is retried. Store that key with a digest or canonical representation of the payload. An identical retry can return the existing result; the same key with changed content should be rejected or reviewed. AWS documents duplicate update prevention as a reliability practice. It does not remove the need to define transaction boundaries and retention.

In designing this kind of system action with Mokyun, approved content, the submission identifier and target-record checks can belong to the same task. A timeout leaves the result pending verification, with a lookup step or exception owner taking over. Available lookup and deduplication behaviour must be confirmed against the target interface and transaction conditions.

Record the business identifier, source version, proposed field changes and approver. If a quantity or currency changes after approval, review the new payload rather than reusing the old approval. In the local example the approval is only a fixture flag; production identity and approval services are outside its scope. This distinction prevents a demonstration checkbox from being mistaken for a complete enterprise control.

Rejected writes, changed sources, conflicting identifiers and an unavailable target need different responses. Recovery may require corrected information or renewed approval. The target system and business rules determine whether a committed action can be reversed. The receiving person needs the current record and approved version.

The SQLite example below lets readers inspect the order of approval and duplicate-request handling. Saving, saved-record verification and rejection of changed content under the same identifier can be reproduced. Network timeouts and concurrency still require separate tests in the real project.

Mokyun implementation method. The kit example uses synthetic local inputs, not customer systems.
Mokyun implementation method. The kit example uses synthetic local inputs, not customer systems.

Sources

  1. Mokyun local example: execution receipts and scope

    Source published: · Accessed:

  2. AWS: Make all responses idempotent

    Accessed:

Mokyun Editorial · neo@mokyun.com