The recorder's completion fix marks a stream with header flag bit 1,
FLAG_COMPLETION_BYTES_RECORDED (value 2): at each command buffer's
completion the stream holds every chunk the buffer's work could store to
as the GPU left it, before any later CPU write, on all four late routes
(signalled event, final status read, refused hook, released command
buffer). Fixed streams read flags 3; every stream recorded so far reads 1.
- The reader takes bit 1 (it refused any bit but 0 before), so a fixed
stream plays.
- command-replay play writes "recorded before the recorder's completion
fix: the stream may differ from what the program did" by itself as the
first line of report.txt for every stream without bit 1, so no table
relayed from a report loses it. The stream is now read before the
device type is parsed, so even a report that stops there carries it.
- docs/REPLAY-STREAM.md: section 1 names the bit, section 6 replaces the
rule that described a stream without completion writes as allowed with
the completion invariant and what a stream without the bit may miss,
and section 10 names the line and its place in report.txt.
Tests: replay_completion_mark (integration) runs the player binary on a
one-call stream with flags 1 (the report begins with the line) and flags
3 (it does not), with a device type no device has so no device opens;
the header flags test now reads flags 3 and refuses bit 2.