HF RL Explorer

In more itertools.seekable , fix a memory growth bug that occurs when peek() or bool() is called repeatedly…

In more itertools.seekable , fix a memory growth bug that occurs when peek() or bool() is called repeatedly…: a task in harness-adapters: Agentic coding environments (Harbor dataset). Current (broken) behavior: Each call to peek() on a maxlen=0 seekable consumes one item and then prepends it back…

The task

**Current (broken) behavior:** Each call to `peek()` on a `maxlen=0` `seekable` consumes one item and then prepends it back to the source using a new wrapper iterator. After 10,000 calls, the source iterator has accumulated 10,000 nested wrappers, retaining megabytes of memory.

Part of harness-hub/harness-adapters.