← Blog

When a record changes mid-task

Imagine a customer calls to change their delivery address. A teammate saves the new address while an agent is preparing the shipment. The agent has already copied the old one into its working context. Thirty seconds later, it submits a perfectly formed order to the wrong place.

When a record changes mid-task

A read is an observation, not a reservation

One way to catch the mistake is to tell the agent to refresh the address just before saving. That shortens the interval in which the address can change. The interval is still there, even if the model follows the instruction every time.

Three moments: a creature reads a circle-marked task, another replaces it with a square-marked task, and the original creature notices its copied context is outdated.
In this illustration, a second participant updates the record while the first works. The write checks the original read against the current record.

Yang and colleagues describe this problem in an ICML position paper. Long model calls give other participants more time to change the data. If everyone waits, they spend time in a queue. If everyone proceeds, they may have to repeat expensive work after a failed check.

Check the premise, not only the destination

Return to the shipment. It is a new row, so checking it for changes cannot tell you the customer’s address moved. The write needs to carry the customer row the agent read. Ablo compares that captured read with the current record when it applies the shipment. If the two differ, the application can fetch the new address and recompute or send the order for review.

Decide when waiting is cheaper

Recomputing a shipping label is cheap. Gathering several quotes can take much longer. If two participants are about to prepare the same order, a claim gives one a turn before either pays for the work. The claim covers its target row. The captured address still needs to travel with the shipment write.

Test the gap deliberately

Pause the agent after it reads the address. Change the address in a second session and let the first try to submit the shipment. The test should verify that the old address was refused and that the next step uses the new one or asks for review.

Sources

More from the blog