Resolves #3.
- Added compact sparse
(bucket_idx, LEB128)binaryBLOBencoding (to_blob/from_blob, returningNonefor all-zero histograms) onCategoryHistogramandAgeHistograminsrc/domain/mod.rs. - Replaced the 8 verbose
*_jsoncolumns indirectorieswith*_blob BLOBcolumns insrc/cache/mod.rsand bumpedSCHEMA_VERSIONto"2"(automatically dropping/recreating legacyv1cache tables on open). - Deduplicated leaf directories (
direct_dir_count == 0) by storingNULLforsubtree_*histogram columns and falling back todirect_*on read. - Added round-trip unit tests covering zero, sparse, dense, and
u64::MAXvalues.
Verified: cargo fmt --check, cargo clippy --all-targets --all-features -- -D warnings, and cargo test (30 unit + 2 e2e) all pass.