stderrTail bounds what the adapter keeps from stderr, with the reasoning that a harness under debugging flags can produce output without limit and is held only by a wall-clock cap. The same reasoning applies to stdout, which is a plain bytes.Buffer.
It cannot be tailed — the result JSON has to parse whole — so the fix is a cap with overflow resolving to StopUnknown: output too large to read is output nobody can classify, which is the honest answer and already a modelled one.
stderrTailbounds what the adapter keeps from stderr, with the reasoning that a harness under debugging flags can produce output without limit and is held only by a wall-clock cap. The same reasoning applies to stdout, which is a plainbytes.Buffer.It cannot be tailed — the result JSON has to parse whole — so the fix is a cap with overflow resolving to
StopUnknown: output too large to read is output nobody can classify, which is the honest answer and already a modelled one.