The Log Search That Missed a Match Between Chunks
### P2 · Log-search smoke check misses a match The authored fixture receives 24 bytes in two chunks, expects byte offset 8, and reports no matches.
Your task: Repair StreamMatcher in stream_matcher.py. Return every exact byte-pattern match, including overlaps and matches spanning chunks, using absolute zero-based byte offsets. Keep retained state bounded by pattern length and total processing linear.
Run python monitor.py and python -m unittest -v, preserve validation and independent stream state, then open a PR against main. This is an offline teaching fixture, not live log monitoring.
Skills you'll prove
Interview Tip
I carried a prefix-match state across chunks and used failure links to avoid rescanning old bytes. After emitting a match I retained the longest proper matching prefix so overlaps remained visible. Absolute byte counts established start offsets without storing the log history.