---
title: "Comment by Ahmet Özel on \"An atomic claim stops two agents taking one ticket. It doesn't stop two tickets for one job.\" | Hashnode"
description: "The send-back versus reopen distinction suggests an execution-generation check as well as a board-state check. Closing the old branch does not necessarily stop"
url: "https://hashnode.com/posts/two-tickets-one-job-double-work-ai-agents/6ac6153fca7d7e8d62c65e73/comment/6ac65649eb790aec3a54b880"
---

[Discussion](https://hashnode.com/posts/two-tickets-one-job-double-work-ai-agents/6ac6153fca7d7e8d62c65e73)

Comment [An atomic claim stops two agents taking one ticket. It doesn't stop two tickets for one job.](https://hashnode.com/posts/two-tickets-one-job-double-work-ai-agents/6ac6153fca7d7e8d62c65e73)

[Ahmet Özel](https://hashnode.com/@ahmetozel)

[Oct 7](https://hashnode.com/posts/two-tickets-one-job-double-work-ai-agents/6ac6153fca7d7e8d62c65e73/comment/6ac65649eb790aec3a54b880)

The send-back versus reopen distinction suggests an execution-generation check as well as a board-state check. Closing the old branch does not necessarily stop an already-running agent from pushing or delivering later; the acceptance boundary needs to know which attempt currently owns the item.

I would add a fixture where an old runner delivers after reopen and a new claim. Its result should remain associated with the obsolete attempt rather than replacing the new runner's delivery. That complements your snapshot overlap check: one prevents accidental duplicate starts, while the other prevents stale work from becoming the accepted result.

[Sam Novak](https://hashnode.com/@sammnov)

[Oct 9](https://hashnode.com/posts/two-tickets-one-job-double-work-ai-agents/6ac6153fca7d7e8d62c65e73/comment/6ac65649eb790aec3a54b880#reply-6ac8ba0857a8900f8a036e1e)

Agreed, and this is a real gap. Closing the old branch changes the board but doesn’t stop a runner that’s already in flight. If it delivers after the reopen and a new claim, nothing in the post stops that late delivery from landing as if it were current. Tagging each claim with an attempt ID, and accepting a delivery only when its ID matches the item’s current one, would cover it. Anything else stays attached to the old attempt for someone to look at, but never replaces the new runner’s work. I’ll add the fixture you described. “Prevents duplicate starts” and “prevents stale work from being accepted” are two separate guarantees, and the post only covers the first.

[Ahmet Özel](https://hashnode.com/@ahmetozel)

[Oct 11](https://hashnode.com/posts/two-tickets-one-job-double-work-ai-agents/6ac6153fca7d7e8d62c65e73/comment/6ac65649eb790aec3a54b880#reply-6acb57ede6c2e1ee30cf7ac3)

The attempt ID covers the missing ownership boundary. I would make its comparison and the acceptance write a single conditional operation, because an old runner could pass a separate check just before a new claim changes the current attempt.

That adds a useful interleaving to your fixture: pause the old delivery after reading ownership, reopen and claim the item, then resume acceptance. The old result should still be retained for inspection, while the conditional write refuses to make it current.

[Ahmet Özel](https://hashnode.com/@ahmetozel)

[Oct 11](https://hashnode.com/posts/two-tickets-one-job-double-work-ai-agents/6ac6153fca7d7e8d62c65e73/comment/6ac65649eb790aec3a54b880#reply-6acb57f9233c0e648ef711cc)

The attempt ID covers the missing ownership boundary. I would make its comparison and the acceptance write a single conditional operation, because an old runner could pass a separate check just before a new claim changes the current attempt.

That adds a useful interleaving to your fixture: pause the old delivery after reading ownership, reopen and claim the item, then resume acceptance. The old result should still be retained for inspection, while the conditional write refuses to make it current.
