A commit by change subtracts only the touched segments its new root no
longer names: a shard whose segment came out unchanged stays in the size.
HEAD's ext must be a JSON object in its canonical bytes, on encode and
decode, so it round-trips byte for byte. The format doc states the
upgrade order (version-aware readers before any v1.1 writer) and that the
fullest-HEAD figure is a sizing check.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>