If a community property agreement provides that all property acquired by either or both spouses during marriage is community property, at the death of a spouse domiciled in this state, property of the spouse that can be traced to property received by the spouse after the determination date as a recovery for a loss of earning capacity during marriage shall be treated as if it were community property.