← Questions

Retention agent: fix three bugs in a discount offer engine

0
SierraCoding

A coding interview question asked in Sierra's debugging round. It tests debugging, python and agents.

You are an agent engineer for Sierra Provisions, a subscription business for camping meals. Its retention agent talks to customers who want to cancel: it asks whether they'd consider a discount, then makes up to three offers, each better…

Sign in to unlock this question

The full prompt, the worked answer and your own canvas or code with the AI tutor. New accounts get 5 credits: each one unlocks a question for good.

Where it's asked

  • Sierra · Debugging60 min · A small repo that implements one feature end to end (a Python retention agent in a 2026 report, a TypeScript and React app in earlier ones) with several customer-reported bugs: reproduce each, find the root cause, fix it and prove the flow works end to end · Earlier reports: no AI coding tools. Newer loops can include an AI coding agent whose repo instructions (AGENTS.md) tell it not to find the bugs for you: it acts only once you point it at the direction and the code

What it tests

debugging · python · agents

Your code and the AI tutor open when you unlock this question.