The Flood of Shifting Tides
In which our protagonist learns that the next wave is bigger than the last, and the through-line gets a workout.
The flood came on a Tuesday.
It was not a normal flood. The reports that came in over the crystal network said it was a "flood of shifting tides," which was a phrase that the network had invented because no one knew what else to call it. The water was rising in the northern kingdoms, not because of rain, not because of storms, but because the water itself was moving. The ocean was moving inland. The rivers were reversing. The lakes were overflowing. The water was, in the language of Kenji's theory, the next side effect of Malachar's search.
The northern kingdoms were the first to feel it. Princess Calla's father, King Haldor, sent a message over the crystal network that was the diplomatic equivalent of a scream: "The water is rising. We are losing coastline. We need help. We need it now."
The Council of Kings convened by crystal network. The kings were all in their own palaces, in their own kingdoms, looking at their own floods. The southern kingdoms were being battered by the second wave of storms. The eastern kingdom was watching strange lights in the sky. The western kingdom was feeling earthquakes. The central kingdom was where the water was starting to rise too, slowly, but rising.
"We need to coordinate," Kenji said, over the crystal network. His voice was being broadcast to seven palaces at once, translated in real time by a spell that Master Yuen had invented. "The flood is not a single event. It is a wave, like the earthquakes were a wave, like the storms were a wave. Each wave is bigger than the last. We need to design a response that is bigger than the wave."
"What kind of response?" the queen of the west asked.
"A continental water regulation system. A system of dams, channels, and reservoirs, all coordinated through the crystal network, all designed to absorb the excess water and release it slowly. The system will not stop the flood. The system will manage the flood. It will turn a catastrophe into a controlled event."
"That is ambitious," King Haldor said.
"That is the job. The job is continental-scale water management. The job is also debugging a god. We are doing both. We are debugging a god with infrastructure."
He laid out the plan. The dams would be in the north, where the water was rising fastest. The channels would be in the central kingdom, where the rivers were reversing. The reservoirs would be in the south, where the water would eventually drain. The crystal network would coordinate all of it, with mages stationed at each major node, adjusting flows in real time, responding to changes as they happened.
It was, in the language of his old job, a load balancer for a continental flood.
It was also, in the language of magic, the most ambitious spell Kenji had ever designed. It would require hundreds of mages, thousands of workers, and months of construction. The flood was happening now. The system was not built. They were going to be working against the clock, and the clock was a rising tide.
"We do not have months," Princess Calla said, her voice sharp over the crystal network. "We have days. The water is at our second city wall. By the end of the week, it will be at our first. We cannot wait for dams to be built."
"We do not build dams in days. We do something else. We redirect the water. We use the same spell I used in Oakhaven, the redirect spell, but at continental scale. We do not stop the water. We change its mind."
The room was quiet.
"You want to redirect a continental flood," King Haldor said.
"Yes."
"Using a spell you invented to redirect a wave in a forest."
"It is the same principle. The scale is different. The principle is the same. Any sufficiently well-defined problem is solvable. This is a sufficiently well-defined problem. We define the inputs. The Compiler generates the redirect. We deploy."
"That is insane."
"Probably. But it is also our best option."
The kings talked. The queens talked. The Council of Kings argued, and the water rose, and the clock ticked, and the debugging had to happen now.
In the end, they agreed. They did not have a better option. They had a Strange Sage, a crystal network, and a continental redirect spell. It was not much. It was enough.
The work began. The mages gathered. The crystals linked. The spell was defined, refined, optimized, tested, broken, fixed, tested again, and finally deployed. It took three days. The water rose the whole time.
On the morning of the fourth day, Kenji stood on the highest point of the central kingdom's palace, with Elara at his side and Pip on his shoulder, and he cast the spell.
"Function create(name='continental_redirect', inputs={target=ocean_water, vector=away_from_coasts, force=high}, outputs={water_redirection, mana_drain, climate_effect}, cost=very_high, stability=medium)!"
The spell shimmered into existence. It was the biggest spell Kenji had ever cast, and it was the biggest spell anyone in the world had ever cast. It was not a single spell. It was a coordinated spell, hundreds of mages working together, hundreds of crystals linking them, all of them feeding into a single function call, a single redirect command, telling the world's water to go somewhere else.
The water went. It did not stop rising. It did not reverse. But it slowed, and it shifted, and it began to move away from the coasts, back into the ocean, back into the channels, back into the reservoirs that were being built in the south.
The flood did not stop. The flood was managed. The continent did not drown.
Kenji collapsed. He was out of mana. He was out of energy. He was out of everything. Pip landed on his shoulder, pulsing, weakly, the pulse feeling like: "You did it."
Kenji sent back: "We did it."
Elara caught him as he fell. She held him. She was still hurt, still infected, but she was strong enough to hold him, and she did, and the water moved, and the debugging continued.
# WORLD.md (updated)
## Status
- Flood: managed, not stopped, but redirected
- continental_redirect spell: deployed, very high cost
- Kenji: out of mana, recovering
- Elara: still hurt, but holding
- The clock: the flood is managed, but the next wave is coming
## Lessons
- "We debug a god with infrastructure" is not a metaphor. It is the plan.
- A continental redirect spell is the same as a forest redirect spell, just bigger
- Any sufficiently well-defined problem is solvable. The flood was sufficiently well-defined.
- The debugging is paying off. The cost is high, but the system is holding.