Does the Bitcoin UTXO Set Contain Every Transaction?
No. The Bitcoin UTXO set contains outputs that are currently unspent on the active chain, not a record of every transaction ever confirmed.
What is stored?
Each entry represents a spendable output identified by its outpoint, with information needed to validate future spends. When an output is spent, it leaves the active UTXO set. New unspent outputs are added as blocks connect.
Where is historical data?
Historical transactions are found in block data, when retained. An archival node retains historical blocks; a pruned node can discard older raw blocks after validating them. Neither configuration changes the basic meaning of the current UTXO set.
Can a wallet balance be read directly?
Not as a universal account balance. A wallet must determine which UTXOs it controls and account for pending transactions and confirmation policy.
Primary references
Bitcoin Core source: https://github.com/bitcoin/bitcoin
Bitcoin developer reference: https://developer.bitcoin.org/reference/
