Expand description
Line-block containment for deduplicating tool output streams.
Multiple renderers need to know whether one stream’s text already appears
inside another (merged output vs named stdout/stderr) so each line is
shown once. This module is the single home; the runloop pipe-stream
canonicalizer and the lifecycle summary aggregator used to carry verbatim
copies and now delegate here.
Functions§
- contains_
distinct_ line_ blocks - True when
firstandsecondboth occur incontainerin non-overlapping ranges. Requiring distinct blocks matters when the streams are identical or one is a prefix of the other: a single occurrence cannot prove both are copies. The container lines are collected once for both scans. - contains_
line_ block - True when
candidateoccurs incontaineras a contiguous line block.