An AI workflow can preserve a reviewer’s correction by checking the record revision at the destination when it writes. Save the revision the agent read with its proposal. Apply a retry only while that revision and the workflow’s approval state still match its authorization. If the record advanced, preserve the newer record and send the stale proposal for a fresh decision.
Preserve the proposal and the approved record separately
Keep the original model proposal with its input revision and generated fields. Store reviewer edits and approval on a separate versioned record, with a link back to the proposal. A generated value can then be inspected during an audit while the approved correction remains the current value. The distinction also tells downstream consumers which revision they should use.
Version checks belong in the same destination operation as the update. An application can check revision 14, then pause long enough for someone else to commit revision 15, then overwrite it anyway. An atomic conditional update compares the expected revision at write time. For HTTP resources that support the appropriate preconditions, RFC 9110 describes comparing a strong entity tag with If-Match to prevent lost updates. HTTP Semantics, If-Match
A repair date changes while a worker sleeps
Consider a synthetic equipment service record, SR-41. An agent reads revision 14 and proposes a visit on June 12. Its worker stops before saving. A reviewer then checks the service schedule and approves June 14 as revision 15. The worker wakes up with the original proposal and its revision 14 write precondition.
| Event | Expected behavior |
|---|---|
| Worker sends its original revision 14 precondition | Destination rejects the stale update. Revision 15 retains June 14. |
| Workflow opens the rejected attempt | It displays proposed June 12, approved June 14, the two revisions and the fact that the update was refused. |
| Operator creates a fresh task from revision 15 | The task has a different authorization record. Its permitted fields and effect are explicit. |
A worker must avoid fetching the new revision and reusing the old decision with a fresh version token. The token represents a new basis for the write. Even when the record changed in an unrelated field, any selective merge needs an explicit rule about field ownership and a separately checked write path. Test the simpler whole-record version fence first.
Make the race part of acceptance
Run the same write path twice in a test environment. In the positive control, let an authorized worker write while the source revision stays current. Read the destination and verify one new revision and the intended field value. In the stale fixture, hold the worker after its read, commit a reviewer change, and release the worker. Read through the same destination path and verify that the new revision and corrected value survive.
Also inspect downstream effects. A refused record update should not enqueue a customer notification or modify an export. Capture the rejected attempt beside the latest approved record so sampling an audit later does not lose the history of the attempted write. sinc-LLM guide to auditing automatic acceptance
Exercise an unchanged revision as the positive control. A valid retry should apply once under the original approval, then appear in the downstream record. The stale revision should produce neither a record change nor a downstream effect.
Start with one reviewable field that can affect downstream work. Give its worker an expected revision and replay the race in the normal review and retry entry points. The exercise tells you whether the review has a durable effect when the workflow resumes.
sinc-LLM