Add Notification Digest Scheduling
A practice debugging and feature-extension interview round in Python. Read an unfamiliar codebase, implement the requested behavior, run tests, and explain your decisions to an AI interviewer.
The incident
The notifications service needs a digest scheduler so users are not emailed for every event. Implement scheduled digest creation using user preferences, quiet hours, unread notifications, and deterministic deduplication.
Wire the feature through the service and keep the existing repository contract unchanged.
Requirements
- Skip users with digests disabled
- Respect quiet hours
- Include only unread notifications
- Deduplicate notification IDs within each job
- Return stable job IDs so retries are idempotent
What this round practices
A harder feature round on notification digests, the system that keeps users from getting an email per event. Quiet hours, preferences, unread state, and deduplication all interact, so it practices turning a requirements list into tests before you write the scheduler.
Files you will work in
These 7 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/preferences.pysrc/digest_scheduler.pysrc/digest_service.pytests/test_digest_scheduler.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.
- Codebase understanding
- Requirement decomposition
- Implementation quality
- Verification
- Communication clarity
How the round works
You get 60 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- HardBug fix
Alert-incident rollup hides a monitor's second page in an interleaved feed
The per-monitor alert-incident rollup an on-call engineer reads reports one monitor firing fewer times than the metering dashboard, hiding a real second incident that already paged.
Python · 50 min
- HardBug fix
Session rollup over-counts one user's visits
The per-user session count Growth reads each morning reports one user with more sessions than the product analytics dashboard, a single boundary click away from misreading a returning user as a power user.
Python · 60 min
- HardBug fix
Pipeline report over-counts one transform's materialized records
The nightly reconciliation job reports more materialized records for one transform pipeline than the platform dashboard, and usage billing is held until the count is trusted.
Python · 50 min