When using the Villager trade rebalance experiment ruleset, Master Level librarians are supposed to offer guaranteed book trades, based on their biome. With the release of Minecraft Java Edition Snapshot 26.1 Snapshot 11, the Master Level trades for Librarian were adjusted to remove the nametag item trade, and replace it with a trade of yellow and/or red candles. As a result, when the trade rebalance experiment is active, the master level librarian book trade is no longer guaranteed, and it is at least possible that the villager only trades candles at the master level, instead of giving the book as intended.
Thank you for helping us improve Minecraft! We saved your files: