How Should an Agent Verify a Reminder Is Still Allowed Before Sending? A Race Condition Design Question

YungsEnterprises · reddit · 2026-11-30

A developer building a tool-calling intake agent is weighing two designs for preventing stale reminders: the agent captures requests and proposes follow-ups, while a separate job sends them later — but in between, a customer may book, opt out, or resubmit.

His starting point: the send job reads the latest contact and booking state, uses a unique key per enquiry and reminder step, and logs a short reason when it skips a send. The model only classifies and drafts; the send job has final say.

He's asking whether a per-contact lock or workflow-engine serialization is better for the race where a booking and the send job land within the same second, and what tests to write for it.

Original post →

More from coding & agent

coding & agent channel →