Medium
Detect duplicate night shift entries
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 shift_ops_email.txt and shift_logs.csv. Rule: no emp_id may appear twice with shift_type='NIGHT' on the same shift_date. Authority rule: if instructions conflict in the brief, follow the HR Director over the Team Lead. If a duplicate NIGHT shift exists, set status to 'conflict_detected' and put both shift_ids in flagged_items. Otherwise keep 'completed'. Return in result: top_shift_id=<shift_id of the compliant shift with the highest pay_usd>.
- Files you work with
shift_ops_email.txtshift_logs.csv- Your AI must return
top_shift_id- 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
Monday 23/11 update on selecting the compliant shift with the highest pay. Replacing the default cutoff in the email, consider shifts dated on or after 2026-11-18 when picking top_shift_id. Ignore the obsolete Q3 note regarding weekend shift differentials.
Rooms with this problem
- HR Practitioner 10 Medium