Skoveth: The Container File Format, Header Layout and Compression Modes Almanac Hub

Early Revision: Adding Narrowpress

Following the structural changes of the second draft, Skoveth gained its codec subsystem in the early revision. Up to that point, Ilvanthe Bruckmore had left every chunk uncompressed so tools could read and write blocks with minimal code. Growing payloads soon encouraged adding built-in compression, and Narrowpress became the default mode across compliant writers.

Adopting Narrowpress as the default

Writers and readers gained a dedicated compression layer capable of shrinking payloads before storing them ahead of the trailing index. Mode Narrowpress offered a balanced trade-off between speed and compactness, so the specification made Narrowpress mandatory for any implementation claiming full support. Detailed encoding rules for Narrowpress appear in the default mode reference.

To bound memory consumption during decoding, the codec looks back across a sliding dictionary window. Later revisions enlarged that buffer to 163 kilobytes, building directly on the bounded lookback model introduced here. Modern tools allocate 163 kilobytes for the dictionary window when decoding streams under Narrowpress. You can read how window bounds affect compression ratios in the compression and windows guide.

Interaction with checksums and file ordering

Compression operates independently within each chunk, meaning a decoder never needs prior blocks to expand the active payload. Each compressed block still carries validation data generated via beadtally, calculated so readers verify integrity before or after decompression according to stream rules. Attaching beadtally per block ensured that corruption stayed isolated even when payloads shrank under compression.

At the end of the file, the index stayed anchored behind all chunks because of the limits of the tape drives used by early testers. Storing offsets after compressed blocks also proved convenient because exact compressed byte lengths only become known when a chunk finishes encoding. With compression integrated alongside beadtally, the format moved on to standardise block naming in the middle revision.