I stumbled on a minor gotcha with opening balances and using aliases to aggregate lots.
I've been using balance assignments for opening balances. To start tracking lots I broke out the 2022 opening balance posting for an asset into separate lots, one for each purchase made last year. So, for example
assets:ABC = 100
assets:ABC:20211001 = 30
assets:ABC:20211101 = 40
assets:ABC:20211201 = 30
That works fine when they're not aggregated but when I aggregated the lots into assets:ABC with an alias then the opening balance was 30 instead of 100. To fix I removed the = and used regular postings instead of balance assignments for lot opening balances.
But it confused me for a bit since I was dealing with more postings and larger numbers. Just sharing in case others find this conversation, try aliases and run into the same issue.