Skip to main content
HardBug fixPython50 min

Pipeline report over-counts one transform's materialized records

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

The FinOps on-call runs this reconciliation job every night. It replays the day's shared record feed through each named transform pipeline and reports how many records each pipeline successfully materialized, so usage can be billed against the platform dashboard. This morning FinOps flagged that one pipeline's count reads higher than the dashboard shows, and usage billing is held until the report is trusted again.

pipeline.py reads the shared record feed and prints, per pipeline, the number of records that pipeline materialized.

Every pipeline draws from the same feed. The pipelines run over that feed in a fixed, declared order: normalize, then enrich, then geocode, then publish. A record names the pipeline it belongs to, so records for different pipelines are interleaved in the feed.

What this round practices

Several transform pipelines replay the same shared record feed, and one reports more materialized records than the dashboard. The round practices replaying the feed through one pipeline at a time and proving each count by hand before trusting the report.

Files you will work in

These 4 workspace files open in the in-browser editor when you start the round. Hidden tests also run when you submit.

  • task.md
  • src/pipeline.py
  • fixtures/input.txt
  • tests/expected_output.txt

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 50 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.