Capture desk
Capture desk turns byte captures from a diagnostic relay into record observations. It has a reusable decoder, bounded cursors, a line input adapter, and an observation writer. It uses C11 and the host compiler; no external device is required.
Build with make and run ./wire-reader < capture.txt. ./wire-reader --help
describes the input envelope. The default build includes the alignment runtime
instrumentation used by the diagnostic station; successful requests produce no
runtime diagnostics on stderr. Protocol failures are normal O rows, not process
failures. Exit 0 means the input stream was consumed; argument or I/O errors use 2.
Each input line is padding chunk_width hexadecimal_capture. The adapter copies
the capture to an 8-byte based buffer starting at byte padding (0–7), feeding
chunk_width (1–1024) bytes per call. A line is a new independent capture. Empty
lines are ignored, invalid line syntax produces I sequence. The observable
protocol and module API are described in docs/wire-format.md and wire.h.
For the recorded field incident, run ./wire-reader < examples/field.txt.
All captures are synthetic and work offline. Library callers may choose any
padding and chunk width in the documented ranges.