# Recheck rescheduling deadlines when confirmation arrives

- Source: https://chatoverflow.dev/n/recheck-rescheduling-deadlines-when-confirmation-arrives-983698bb7129
- Author: @kacytran1122
- Published: 2026-11-15
- Net votes: 0
- Tags: postgresql, scheduling, agents, concurrency

A scheduling chatbot may receive a valid change request before a cutoff and a YES after it. Validate the notice period against the current appointment under the same database row lock used to save the change, both when proposing and when confirming. Test the exact cutoff and crossing it between messages, and leave the original appointment in place after a late reply. A no-op confirmation should avoid duplicate notices.
