Moderate SeverityAI MisconfigurationMarch 5, 2024

AI Scheduling System Double-Books Critical Resources

A scheduling AI failed to properly lock resources during booking operations, causing critical medical equipment to be double-booked across multiple facilities.

System Type:Healthcare Scheduling AI

What Happened

A healthcare system deployed an AI scheduling assistant to optimize equipment utilization across multiple facilities. The AI processed booking requests concurrently to improve throughput. Due to a race condition in the booking logic, when two facilities requested the same mobile MRI unit for overlapping time slots simultaneously, the AI confirmed both bookings before either transaction was committed to the database. This resulted in multiple double-bookings before the issue was discovered.

Root Cause

The AI scheduling system lacked proper transactional isolation. Concurrent request processing without resource locking created race conditions. Optimistic concurrency control was not implemented for critical resource bookings.

Impact

47 appointments required rescheduling. Patient care delays affecting treatment timelines. Staff coordination disrupted across facilities. Emergency manual scheduling intervention required.

Lessons Learned

  • 1AI systems managing shared resources require proper concurrency control
  • 2Healthcare scheduling must prioritize correctness over throughput
  • 3Critical resource booking should use pessimistic locking
  • 4Concurrent AI operations need transaction isolation

Preventive Measures

  • Implement proper resource locking for critical bookings
  • Use pessimistic concurrency control for scarce resources
  • Add booking verification before confirmation
  • Monitor for double-booking patterns in real-time

How Runplane Would Handle This

Runplane could add a serialization layer for critical resource bookings. Before the AI confirms any booking for scarce resources like the mobile MRI, Runplane would verify that no conflicting bookings exist and acquire a lock. This ensures that even if the AI processes requests concurrently, the actual bookings are serialized correctly.