During the Xining period of the Northern Song Dynasty, the "Diding Stele" on the Bianhe River collapsed and water transportation was in emergency. Shen Huaizhou, a young minister who is proficient in "Mengxi Bi Tan", was thrown into the messy Capital Water Prison with a transfer order. He took out the drawings of "stratified water rules" and "duplex ship locks", but he disturbed the thousand-year-old cake of a wealthy water transport businessman. Assassinated in the middle of the night, he was saved by an anonymous note that cracked the loophole in his algorithm - signed by Liu Kongchan, a female doctor from Qintian Prison, an orphan girl who was under house arrest at the Star Observation Tower for "confused the public with her evil words". One relies on observing objects, the other relies on astrology. Between the conflicts in the court and the raging waves of the Yellow River, the two risk their lives to repair not only a river, but also the artery of an empire.