Fix-it drills
Broken code from apps like yours. Find what's wrong, write the prompt that gets it fixed properly, and get your answer reviewed.
World 1 · Beginner
The internship
Every profile card is empty now
“Cannot read properties of undefined” after the agent moved the member loader into its own file.
Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'slice')Free delivery from $20, unless it's $20
An order of exactly $20.00 still pays the delivery fee the banner says is free.
Subtotal: $20.00 Delivery: $2.99The sidebar crashed after a tidy-up
“notes.map is not a function” right after the agent refactored the notes loader.
Uncaught (in promise) TypeError: notes.map is not a functionThe total says $011.504.002.99
Prices from the menu API add up like words instead of numbers.
Total: $011.504.002.99Cancel didn't undo my edit
You pressed Cancel, but the profile kept the bio and website you were typing.
Profile page: Bookbinder in Lisbon. Commissions open for January. | anareyes.pttMy 7:30 pm tick landed on tomorrow
Evening ticks in New York count for the next day, and the habit tracker's streak breaks.
Ticked 2026-12-06. Ticks: 2026-12-03, 2026-12-04, 2026-12-06The feed asks for itself until it gets a 429
Chirp's home feed fetches in a loop until the API's rate limit shuts it out.
Couldn't load your feed. Feed failed: 429Everyone can read everyone's notes
The app only shows your notes, but the database hands out all of them.
select * from notes; -- as the testerOne search returned every member on Guildhall
A strange search in the member directory returns every guild's members, emails included.
member search { q: 'ana', rows: 2 }The Stripe secret key is in the browser
A renamed variable put QuickBite's live Stripe secret key in every visitor's JavaScript.
$ curl -s https://quickbite-demo.app/_next/static/chunks/app/checkout/page-8c1f2e.js | grep -o "sk_live_[A-Za-z_]*"Pro for anyone who knows the webhook URL
The Stripe webhook trusts any POST, and every retry adds another month of Pro.
Dec 01 10:02:14 evt_DEMO_3kQ9: Pro until 2026-12-31 for 8c1e4a7bOne blue button, four changed files
You asked for a blue Save button. The diff also renames a column and drops a check.
$ git diff --statWorld 2 · Intermediate
The product team
Green tests, no refunds
A refund test with its assertion inside an if kept passing while every refund quietly stopped.
Dec 02 09:14:03 refund-job inv_3107 Kestrel Studio, cancelled Nov 21: no refund dueThe rounding bug came back
A merge conflict was resolved by keeping one side, and last week’s rounding fix quietly went with it.
2026-12-05T03:12:08Z ERROR invoices.finalize team=team_northwindGreen on your laptop, red in CI
An invoice date test passes in Berlin and fails on the build server, which runs in UTC.
Run npm testHarbor’s invoices page takes 2.4 seconds
Harbor’s finance page got slower with every new customer, though no single query is slow.
GET /api/invoices?limit=100 200 2391msWorld 3 · Advanced
Production
No invoices, and every dashboard is green
A catch-all returns an empty list, so teams see “No invoices yet” while dashboards stay green.
Billing › InvoicesA 40-second blip, a 17-minute outage
Immediate retries with no backoff turn a short tax-service blip into Harbor's own outage.
10:02:14.031 POST /api/checkout 500 tax: 503 Service Unavailable (11 tries in 0.4 s)Any invoice, one number away
Changing the id in an invoice link shows another team’s invoice, address and card digits included.
Dec 04 15:22:10 GET /api/invoices/1041 200 user=usr_ana teams=[team_fjord]Paid, but the event never left
A deploy killed the server between saving the invoice and publishing InvoicePaid, so the event vanished.
Dec 03 10:14:07 webhook evt_DEMO_5521 payment_intent.succeeded for inv_2291The MagisterYou don't need to write the fix yourself. If you can say why it breaks and tell your agent exactly what to change, you've done the job.