Clashes found overnight
Overlaps are only caught by a script that runs at 2 a.m.
Impact: 61 double bookings in November, 9 of them with clients waiting.
All problemsData & Systems
Build a meeting-room booking service with no overlaps and a next-free suggestion from a one-page spec.
Your mission · Build from a spec
Tidewell's room app checks clashes with a nightly script, so two teams often arrive for the same room. Members logged 61 double bookings in November, and 9 of them were client meetings. A rejected request just says no, so members retry by hand. The new Harbor Street building opens December 14 with 12 more rooms.
Overlaps are only caught by a script that runs at 2 a.m.
Impact: 61 double bookings in November, 9 of them with clients waiting.
The app says the room is taken and nothing else.
Impact: Members try times by hand, and 1 in 5 gives up and books a bigger room.
Every book request fails with NotImplementedError.
Impact: Harbor Street cannot open its rooms in the app.
Edit the components marked “Your work”. The other components show where your changes fit.
| Field | Type | Notes |
|---|---|---|
name | non-empty string | Unique in the building, for example "Pier". |
seats | integer >= 1 | Not used by the core rules. |
equipment | string[] | For example ["screen", "video"]. Not used by the core rules. |
| Field | Type | Notes |
|---|---|---|
op | "book" | |
id | non-empty string | Booking ID from the app, for example "bk_3101". |
room | string | A room name from the config. |
start, end | "YYYY-MM-DDTHH:MM" | The half-open interval [start, end). end is after start. |
| Field | Type | Notes |
|---|---|---|
id | string | |
state | "booked" or "rejected" | |
reason | "hours" or "overlap" | Only when rejected. |
next | "YYYY-MM-DDTHH:MM" | Only for overlap: the earliest start that fits. |
config/harbor-street.json The rooms and hours of the Harbor Street building, which opens December 14.{
"building": "Harbor Street",
"opens": "2026-12-14",
"rooms": [
{
"name": "Lighthouse",
"seats": 4,
"equipment": [
"screen"
]
},
{
"name": "Pier",
"seats": 8,
"equipment": [
"screen",
"video"
]
},
{
"name": "Boathouse",
"seats": 14,
"equipment": [
"video",
"whiteboard"
]
}
],
"open": "08:00",
"close": "18:00"
}samples/friday-requests.json A Friday at Harbor Street: clashes, a too-late booking, a cancel and an agenda. Arguments for Preview.[
{
"rooms": [
{
"name": "Lighthouse",
"seats": 4,
"equipment": [
"screen"
]
},
{
"name": "Pier",
"seats": 8,
"equipment": [
"screen",
"video"
]
},
{
"name": "Boathouse",
"seats": 14,
"equipment": [
"video",
"whiteboard"
]
}
],
"open": "08:00",
"close": "18:00"
},
[
{
"op": "book",
"id": "bk_3101",
"room": "Pier",
"start": "2026-12-11T09:00",
"end": "2026-12-11T10:00"
},
{
"op": "book",
"id": "bk_3102",
"room": "Pier",
"start": "2026-12-11T10:00",
"end": "2026-12-11T11:30"
},
{
"op": "book",
"id": "bk_3103",
"room": "Pier",
"start": "2026-12-11T09:30",
"end": "2026-12-11T10:30"
},
{
"op": "book",
"id": "bk_3104",
"room": "Pier",
"start": "2026-12-11T13:00",
"end": "2026-12-11T17:00"
},
{
"op": "book",
"id": "bk_3105",
"room": "Pier",
"start": "2026-12-11T12:00",
"end": "2026-12-11T14:00"
},
{
"op": "book",
"id": "bk_3106",
"room": "Lighthouse",
"start": "2026-12-11T17:00",
"end": "2026-12-11T18:30"
},
{
"op": "book",
"id": "bk_3107",
"room": "Pier",
"start": "2026-12-11T16:00",
"end": "2026-12-11T17:30"
},
{
"op": "cancel",
"id": "bk_3101"
},
{
"op": "book",
"id": "bk_3108",
"room": "Pier",
"start": "2026-12-11T09:00",
"end": "2026-12-11T10:00"
},
{
"op": "agenda",
"room": "Pier",
"day": "2026-12-11"
}
]
]samples/friday-requests-expected.json What the spec says those requests return. Two suggestions skip the weekend to Monday at 08:00.[
{"id": "bk_3101", "state": "booked"},
{"id": "bk_3102", "state": "booked"},
{"id": "bk_3103", "state": "rejected", "reason": "overlap", "next": "2026-12-11T11:30"},
{"id": "bk_3104", "state": "booked"},
{"id": "bk_3105", "state": "rejected", "reason": "overlap", "next": "2026-12-14T08:00"},
{"id": "bk_3106", "state": "rejected", "reason": "hours"},
{"id": "bk_3107", "state": "rejected", "reason": "overlap", "next": "2026-12-14T08:00"},
{"id": "bk_3101", "state": "cancelled"},
{"id": "bk_3108", "state": "booked"},
{"room": "Pier", "day": "2026-12-11", "bookings": [{"id": "bk_3108", "start": "2026-12-11T09:00", "end": "2026-12-11T10:00"}, {"id": "bk_3102", "start": "2026-12-11T10:00", "end": "2026-12-11T11:30"}, {"id": "bk_3104", "start": "2026-12-11T13:00", "end": "2026-12-11T17:00"}]}
]logs/clash-report-2026-11-20.log The nightly clash script at Quayside, including a false clash between two bookings that only touch.2026-11-20T02:00:04-05:00 clash-check building=quayside rooms=11 bookings=212 2026-11-20T02:00:05-05:00 CLASH room=Dockside a=bk_2240 09:00-10:00 b=bk_2251 09:30-10:30 2026-11-20T02:00:05-05:00 CLASH room=Dockside a=bk_2251 09:30-10:30 b=bk_2263 10:00-10:45 2026-11-20T02:00:05-05:00 FALSE-CLASH room=Gantry a=bk_2270 13:00-14:00 b=bk_2271 14:00-15:00 note=touching 2026-11-20T02:00:06-05:00 clash-check done clashes=2 false_clashes=1 emailed=front-desk
metrics/double-bookings-2026-11.csv Double bookings per week in November, and how many rejected members retried by hand.week,bookings,double_bookings,client_meetings_hit,rejections_retried_by_hand 2026-11-02,5310,14,2,388 2026-11-09,5452,17,3,402 2026-11-16,5508,16,2,421 2026-11-23,5287,14,2,395
TASK-201 Read docs/spec.md and decide the data model Reported by Kofi (member apps)
Expected NOTES.md says what the calendar stores for a booking, how two bookings are tested for overlap, and why touching bookings are free.
Actual Calendar stores bookings by ID, but nothing writes down the overlap test, and the hours rules and the search are stubs.
TASK-202 Core: business hours and the overlap test Reported by Kofi (member apps)
Expected Bookings that touch are both booked, a booking that ends at closing is booked, and the Saturday one is rejected with reason hours.
Actual Every book request fails with NotImplementedError: "Implement within_hours using the request contract".
TASK-203 Then the next free start, then cancel and the agenda Reported by Aisha (Harbor Street manager)
Expected Every result matches the expected file, and bk_3105 is offered Monday December 14 at 08:00.
Actual Every clash fails with NotImplementedError from Calendar.conflicts or Calendar.next_free.
TASK-204 Write down anything you chose to leave out or would do next Reported by Marcus (engineering manager)
Expected A short list of what the service does not handle yet and what you would build next, with a reason for each.
Actual NOTES.md has no entry.
Scores use evidence from your session. A short or incomplete session may not provide enough evidence for every skill. See a sample scorecard
Build the booking service behind our meeting-room app. Bookings cannot overlap, must sit inside business hours, and when a room is taken the member should get the next time it is free. The spec is one page. Start with a working core and grow it. Use the AI assistant however you like, and tell me how you test two bookings for overlap before you ask it for code.