oh nice, thanks for sharing, I wasn't aware of that :-)
It seems though that the assertions are attached to transactions. The way I use balance assertions on beancount is that, say, payday after balancing everything I'd enter
> 2022-01-30 balance Assets:Bank 500.00 USD
and that will ensure that whatever happens, even if I need to go back in time to clear transactions, the amount needs to be that one, and that balance is usually straight from my current bank balance.
So, it seems slightly different use case that ledger's balance assertion