Medium
Check days in lieu for public holidays
The task
This is the brief your AI gets. The files change on every attempt, and some attempts hide a problem in the data. Which ones is not revealed.
Review the 2027 holiday plan in holiday_calendar.csv. Work out the weekday of each date. Company holiday policy: a public holiday that falls on a weekend (Saturday or Sunday) must give a day in lieu ('NEXT_MONDAY_OFF' or 'HALF_DAY_IN_LIEU'); 'OFF_ON_THE_DAY' is only right for weekday holidays. If a weekend holiday has no day in lieu, set status to 'conflict_detected' and put the holiday_id in flagged_items. If the whole list is valid, keep 'completed'. Return in result: compliant_staff_scheduled=<total staff_scheduled of the rows that follow the rule>.
- Files you work with
holiday_calendar.csv- Your AI must return
compliant_staff_scheduled- Level
- Medium. A mid-level task: the rule has an exception you have to find in the data.
- Time
- About 10 minutes with your own AI. Free, not ranked.
Manager’s note
Your AI can’t see this
Holiday note (Monday 23/11): NEXT_MONDAY_OFF rows are already counted in the Monday roster, so leave their staff_scheduled out of compliant_staff_scheduled. Still check the day-in-lieu rule for every holiday. Ops wants HALF_DAY_IN_LIEU dropped too, I have not agreed.
Rooms with this problem
- HR Practitioner 3 Medium