# zit 0.14.19

zit 0.14.19 makes stores with sub-manifests smaller: `zit pack` and
receive now find a delta base for a sub-manifest node whose partition key
shifted, instead of storing it whole.

This release is from trunk. The store format and the wire are unchanged
from 0.14.18; nothing is rebuilt on upgrade, and older zit reads what this
release writes. Check-in hashes do not change.

## Sub-manifest nodes find their previous version

A repository with sub-manifests stores each check-in's file list as a tree
of nodes, and a check-in rewrites only the nodes whose files changed. zit
stores a rewritten node as a delta against the same node in the parent
check-in, found by its partition key: the first filename in its slice.

That lookup asked for exactly the same key, and two common cases missed
it:

- Adding a file before a slice's first file, or removing that first file,
  renames the slice's key.
- When a slice splits, the new interior node takes its first leaf's key,
  and the leaf then found no match.

A node with no match fell back to the few most recently written artifacts,
which rarely made a small enough delta, so it was stored whole although a
near-identical predecessor sat earlier in the store.

Keys now carry the node's kind, so an interior node and a leaf never
collide. When the exact key misses, the parent's same-kind nodes just
below and just above it in key order are offered as bases, and the size
bar keeps the smaller delta, or none. On pkgsrc, `zit pack` leaves 690
nodes whole instead of 5,784, and the packed store is 521 MB instead of
567 MB. Receive uses the same lookup, so a store gains this as it is
written; `zit pack` applies it to what an existing store already holds.

## Qualification

The release manifest records native qualification against the exact tagged
source archive on macOS ARM64, Linux x86-64 and Linux ARM64, using the pinned
Zig 0.17.0 toolchain. Publication is gated on unit and end-to-end tests, Git
differentials, deterministic simulation, seeded fuzzing, and Fossil
interoperability checks on every distributed target.

For the basis of the conformance claim, see
[the 0.1.0 release notes](RELEASE-NOTES-0.1.0.md).
