lower
Every declared edge of this tree, as the records a ledger is prepared with, sorted by id.
Each record's id names its child, its weight and generation: root/acme/batch@1:1#0 is batch inside acme, at weight 1, generation 0. Changing a weight changes that one id and no other, which is what lets a reload replace one edge and keep the rest. Lowering is deterministic: the same tree and generation give the same list on every target.
Attached children are not lowered; the consumer attaches them while running.
Parameters
generation
a counter, >= 0, that tells this lowering's edges from an earlier one's.
Throws
if generation is negative.