Control booking windows, minimum advance notice, and cancellation cut-offs.
Booking rules (booking_rules) enforce business policies on when and how appointments can be booked, rescheduled, or cancelled.
Configured under Settings > Booking Rules (/settings), these rules prevent last-minute surprises and unreasonable forward bookings.
The booking service (src/server/services/booking.ts) executes transactional checks prior to writing any appointment:
1. Verifies that the requested slot falls within the staff member's working schedule.
2. Checks that no existing confirmed or pending appointment overlaps the requested window.
3. Checks external calendar busy blocks (if connected via Calendly).
4. Verifies that buffer times are respected on both sides of the appointment.