whispervibecode.com · Questions & Answers

How do I stop two employees from reserving the same piece of equipment in an app I build with AI?

Require the app to enforce the reservation rule where bookings are saved, not just on the calendar screen. Two employees can both see an available item before either finishes submitting a reservation.

Describe the business rule explicitly: "This equipment cannot have overlapping confirmed reservations. If two people request conflicting times, only one booking may be confirmed. The other person must receive a clear conflict message."

Vibe Engineering by Tomasz Lelek emphasizes executable specifications rather than trusting an apparently working demonstration. Apply that approach by asking for a repeatable check that submits conflicting reservations at nearly the same time.

Also specify the details that determine whether bookings conflict:
- Whether collection and return times include preparation or cleaning time.
- Whether a pending request holds the equipment.
- When an unpaid or abandoned reservation expires.
- Whether cancelled reservations release availability immediately.
- Which time zone determines the booking period.

Ask the builder to explain, in plain language, how the storage system prevents conflicting bookings even if someone bypasses the normal screen. Disabling a button or refreshing the calendar is not sufficient protection.

Vibe Coding by Gene Kim and Steve Yegge places human direction and verification alongside AI implementation. Your job is to approve the reservation policy and observe the conflict behavior, not personally write the underlying mechanism.

Before relying on the app, have a qualified technical reviewer verify the protection. Keep a manual booking process available until simultaneous requests and cancellations behave correctly.

Category: Vibe Coding for Non-Developers

← All questions