Code RoomBreak down HR-benefits API integration
MediumPrep Room Coding #4653

Break down HR-benefits API integration

Vibe & agenticAlgorithms & data structuresMid–Senior~20 min

You're tasked with integrating your company's internal HR system with a third-party benefits provider's API — a multi-step enterprise integration in Java involving auth, data mapping, sync scheduling, and error reconciliation. Break this into agent-sized steps with checkpoints, and identify which step is least suited to an AI agent and must be human-driven, given the provider's API docs are incomplete and partly wrong.

Implement
flag_doc_mismatches(documented_fields: list[str], observed_values: list[str]) → list[str]
Examples
in[["employee_id=int","start_date=str","is_active=bool"],["employee_id=00042","start_date=2026-03-01","is_active=true"]]out["employee_id"]
in[["employee_id=int","plan_code=str"],["employee_id=42","plan_code=","tier=gold"]]out["plan_code","tier"]
in[["employee_id=int","start_date=str","is_active=bool"],["employee_id=42","start_date=2026-03-01","is_active=false"]]out[]
What a strong answer looks like

Treat the AI’s output as a draft to verify, not an answer to trust. Name the specific flaw and the input that triggers it, say how you’d catch it (tests, edge cases, reading critically), and how you’d re-prompt or decompose to get it right.

0:00 of about 20 min

Vibe & agentic: describe the solution in plain language (or narrate it) and the coach grades your approach.

Which questions mattered is sealed until you submit. Telling you now would just be handing over the edge cases.