AcceptedADR-010
Streaming EventEmitter
Context
Large agent outputs (500+ lines) cause memory spikes when buffered entirely before processing.
Decision
Wrap agent stdout in a node:events EventEmitter. Consumers subscribe to chunk events. Backpressure via pause/resume.
Consequences
Constant memory footprint regardless of output size. Slight complexity increase for consumers.