After transmigrating into the past as an obscure official, the protagonist discovers that his diary can rewrite reality. But every “future” he writes requires a precisely constructed chain of cause and effect, or it won’t work. When his diary is presented before the emperor, he is appointed Imperial Preceptor. The officials of the entire court think he is making prophecies, unaware that he himself has become a pawn imprisoned in a cage of causality.