Feature Pipeline: A Migrated Cohort Scores Wrong
A practice debugging interview round in Python. Reproduce the failure in an unfamiliar codebase, narrow down the cause, ship a minimal fix, and explain your reasoning to an AI interviewer.
The incident
A model scoring job turns account rows into finite feature vectors for inference. The model contract sets a calibrated default per feature, used whenever a value is missing or unusable.
Incident Report
After last week's CRM migration, some rows arrive with nulls, NaN-like strings, and reformatted numbers. The builder was hardened so batches stopped erroring, but accounts from the migrated cohort now score like empty users despite having history on file. No errors are logged and every vector passes the finite-vector check; the scores are simply wrong for that cohort.
Read the codebase files, run the tests, and make the smallest fix so the migrated cohort scores correctly. Keep feature ordering and the contract's defaults.
What this round practices
ML feature pipelines fail quietly: the job stops crashing, the scores come out, and they are wrong. This round sits between data engineering and ML, and asks you to compare what the migrated rows look like with what the model contract expects before changing the builder.
Files you will work in
These 6 workspace files open in the in-browser editor when you start the round. Hidden tests also run when you submit.
task.mdsrc/__init__.pyREADME.mdsrc/model_contract.pysrc/feature_pipeline.pytests/test_feature_pipeline.py
What you are assessed on
The scored report evaluates both your investigation steps and what you explain during the conversation, not only whether the final test run passes.
- Reproduction
- File navigation
- Evidence gathering
- Hypothesis
- Root-cause understanding
- Regression prevention
- Patch scope
- Verification
- Edit control
- Communication clarity
How the round works
You get 45 minutes in a Python workspace that runs in your browser, with no setup. Talk through your plan with the AI interviewer by voice or text, run the tests as often as you like, and submit when the visible checks pass. Hidden tests run on submit, and the scored report covers what you did and what you explained.
Ready to debug this codebase?
Open the workspace, run the failing check first, and walk the AI interviewer through your findings.
Related rounds
View all debugging rounds- MediumBug fix
Rate Limiter: Requests Slip Through During an Outage (Python)
The API gateway admits requests during a quota-store outage, while unexpected storage errors disappear from its caller.
Python · 30 min
- MediumBug fix
Cache cleanup: reconcile the overnight report
The overnight cache report disagrees with the morning metrics in both directions. Trace a small Python service, reconcile the counts, and verify its replay checks before operations plans capacity.
Python · 45 min
- MediumBug fix
Editor Comments: Sidebar Over-Counts Unresolved Threads
A collaborative editor's comment sidebar sometimes reports one more unresolved thread than the document actually has, and a reviewer held a doc open believing a comment was still unresolved.
Python · 40 min