Return a JSON-serialisable description of everything that shapes a box.
Used to fingerprint an exported piece (FR-031): two runs of an unchanged
project describe their boxes identically, so nothing is rewritten.
- Parameters:
- builder: BoxBuilder
The box builder to describe.
- Returns:
A dict of the builder’s geometry-bearing fields, its compartments and
its lid decoration.