Yes, I think you followed my earlier incorrect assumptions - your infinite loop analogy. But I don't expect the IRS to be logical... For example, if your wash sale includes a new purchase of shares in a Roth IRA, the cost basis disappears - it's gone forever (per your earlier link/quote). The wash sale washes out with Roth IRA assets, and the cost basis doesn't get added anywhere.
I typically only sell part of my holdings, so I haven't dealt with this difference. For example, my situation in this thread:
Middle of last month I buy 500 shares, and early this month I buy 50 shares.
If I sell the 50 shares, it's a wash sale with the earlier 500 shares.
If I sell some of the 500 shares, it's a wash sale with this month's 50 shares.
So I look at last month's 500 shares, purchased at different prices. I pick 50 of the 500 shares with the smallest loss, and sell them (using lot identification). I deliberately trigger a wash sale - but the smallest one available.
I wait a day, so the wash sale can be recorded at my brokerage. Then I'm free to sell the rest of the 500 shares at a loss, without a wash sale.
As a side note, when you have multiple assets bought within 30 days, the IRS has several methods. It looks like Vanguard uses "earliest first" to select where the cost basis of a wash sale goes.