promptdojo_

This loop has no max_iters ceiling. The judge in this test case is stubborn — it never says PASS. As written, the while True runs until the iter pool is empty and Python raises StopIteration (which in production would mean burning through your API budget).

Fix the loop to bail out after at most 3 iterations, returning the string "capped" if no PASS was reached.

Expected output:

capped
The break is on line 13 — but read the whole snippet first.

this step needs the editor

on desktop today; in the app (coming soon). save your spot and we'll bring you back here when you're ready.

open this same url on a laptop to keep going today.