OpenAI

Verified interview challenge

Debug a human and AI task router

Find routing bugs that assign work to an ineligible worker or leave eligible work pending.

Unlock with Full Access

The challenge

A task router assigns work to human and AI workers with different capabilities, clearance levels and available capacity. Tasks also have dependencies, deadlines and restrictions on who may perform them.

Inspect the implementation against those rules and explain which assignments it can get wrong. The exercise asks for focused fixes to the routing function, with careful attention to the difference between assigning work and completing it.

What you'll practise

  • Combined eligibility rules

    Trace how several task and worker requirements must hold at the same time.

  • State transitions

    Check that assigning work does not incorrectly satisfy dependencies or exceed capacity.

Your code-review workspacePreview
Task-router implementationCode included in the full challenge
Your code review

Explain each defect, its consequence and the proposed correction.

The code, instructions and feedback are included with Full Access.