{% if e.is_exempt %}
Would have disallowed:{{ e.disallowed_math }}→ $0 (exempt)
{% else %}
Disallowed:{{ e.disallowed_math }}
{% endif %}
Confidence: {{ e.confidence_reason }}
{% if e.confidence_promote %}
↑ {{ e.confidence_promote }}
{% endif %}
{% if e.confidence_demote %}
↓ {{ e.confidence_demote }}
{% endif %}
{% if e.is_permanent_ira %}
Permanently disallowed — replacement leg is in a tax-advantaged account,
so §1091(d)'s basis rollover cannot apply. The loss is gone for good
(Rev. Rul. 2008-5).
Rev. Rul. 2008-5 names traditional and Roth IRAs only.
net-alpha extends the rule to 401(k) and HSA by analogy
— same lack of a basis ledger inside the wrapper. Confirm treatment
with your CPA if you're depending on the analogy holding for a specific
account type.