Buffer allocation logic inverted causing slice bounds panic
Buffer allocation logic inverted causing slice bounds panic: a task in harness-adapters: Agentic coding environments (Harbor dataset). When setting cache entries, the buffer allocation condition is inverted, causing the system to allocate a new buffer when it shouldn't and use an undersized buffer…
The task
When setting cache entries, the buffer allocation condition is inverted, causing the system to allocate a new buffer when it shouldn't and use an undersized buffer when it should allocate a larger one. This leads to slice bounds out of range panics when trying to write data that exceeds the buffer capacity.
Part of harness-hub/harness-adapters.