A Borrowed Man by Gene Wolfe

In a near-future world where a public library keeps a recorded personality of a long-dead popular writer imprinted into a damaged paperback, that recorded mind is consulted by a young patron who asks him to help unravel a decades-old disappearance. As he uses fragments of his own fiction, memory glitches, and the limited resources of the library to investigate, the boundary between authored stories and lived experience collapses, revealing hidden motives, legal and corporate maneuvering, and unsettling questions about identity, memory, and what it means to be truly alive.

Purchase from Bookshop.org