- open(): when the existing log does not end with a newline (a process killed
mid-line), write one first so the next session line is not glued to the cut
line and its records are not filed under the previous run.
- Fix the hook comments (vulkan_replay.h, d3d12_vulkan_device.cpp, docs,
README): the hook never blocks and allocates nothing, but the readiness
callbacks take a non-blocking try_lock on the first request of a pipeline
and of a variant.
- Close the order log after the exit pipeline cache write, not before.
- Remove the unused Slot::written and Slot::build_written.
- Tests: cut file then new session, flush stops at an unpublished slot,
unknown session version rejected. Trailing whitespace fixed.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
pipeline_order.h: a passive recorder of the first request of each pipeline and
variant, with its text file format (checksummed lines, truncated or damaged
lines skipped on read) and a lock-free, allocation-free hot path with a writer
thread of its own. ComputePipeline and GraphicsPipeline get a `requested`
callback, called where a submission is prepared, also for handles that exist
already. Nothing uses either yet; the device wiring is the next commit.
Tests (CPU only): pipeline_order_test (first request only, variants, order,
round trip, truncation at every byte, damaged lines, sessions, full record,
bounded file, unwritable file, 8 threads, no allocation, counts line) and
replay_pipeline_order_hook_test (ready, lazy, skipped, unbound variant).
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>