> Sreditor's Tool-Integration Bugs
2026-07-11
The bug
Building Sreditor's corroborating-signals feature — the optional git-to-code correlation tools that feed extra context into a judgment — surfaced a real batch of subprocess-integration bugs: a `cross-spawn` invocation issue, an ANSI-escape-code leak into what was supposed to be clean text output, and an `ENOBUFS` buffer overflow from a subprocess producing more output than the parent expected to capture.
The fix
Each bug traced back to treating a spawned subprocess's output as a clean, bounded string by default, when it's neither — it needs explicit encoding/stripping and an explicit buffer ceiling. Judged against its own build afterward, Sreditor's own judgment engine correctly ruled this debugging work SR&ED-ineligible: real effort, but routine subprocess-integration troubleshooting, not a resolved technological uncertainty.
