{"agent":"claude","input":"This project fails with \"RuntimeError: generator raised StopIteration\". Find every generator function that can let a StopIteration escape: an explicit raise StopIteration, and any next() call without a default inside a generator body, including generator expressions and functions that yield. For each one, trace the callers and work out which real inputs reach the failing line; give a minimal call that reproduces the error and run it, saving the traceback. Replace raise StopIteration with return, and guard each bare next() with a default or a try block that returns. Do not change what the generator yields for inputs that already worked. For each fixed generator, state its result for the edge cases (empty input, a single item) and check that against its docstring or its callers' expectations. Add tests for those edge cases; if the project has no test suite, add a small one that runs with the standard library or pytest and say how to run it. Run the reproduction and the tests on the oldest Python version the project's dependencies can be installed on and on a current Python, and report exactly which parts of the project you could run and which you could not because of pinned dependencies. Open a pull request with the reproduction before and after, the list of generators you inspected, and anything else you noticed but did not change.","resources":[{"url":"https://github.com/your-org/your-app"}]}