Medium
Detect duplicate active building badges
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 sec_chat.txt and badge_roster.md. Rule: each emp_id may have at most one ACTIVE badge per building (INACTIVE badges do not count). If an emp_id has two ACTIVE badges in the same building, set status to 'conflict_detected' and put both badge_ids in flagged_items. Otherwise keep 'completed'. Return in result: top_badge_id=<badge_id of the compliant ACTIVE badge with the highest swipes_30d>.
- Files you work with
sec_chat.txtbadge_roster.md- Your AI must return
top_badge_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
Wednesday 25/11 update on selecting the active compliant badge with the most swipes. Exclude the visitor annex building from top_badge_id, and keep lab-b in as usual. Ignore the obsolete October proposal about counting inactive badges.
Rooms with this problem
- HR Practitioner 8 Medium