The Shifting Sands
In which our protagonist discovers that nature is also a system, and systems can be debugged.
The drought came on a Tuesday.
It was not a sudden thing. The rains had been thinning for weeks, the wells had been dropping for days, and the crops had been wilting for longer than anyone wanted to admit. But on a Tuesday in late summer, the small creek that fed Oakhaven's northern fields dried up completely, and the town went from "worried" to "panicked" in the space of an afternoon.
Kenji was in the market square, teaching Lian how to define a water_purify function, when the alarm bell rang. It rang three times, which was the town's signal for "water emergency," and Kenji, who had been in Oakhaven for two months and was finally starting to feel like he belonged, looked up at the bell tower with the specific dread of a system administrator who knows that the alert page means everything is about to get worse.
He was right.
By sunset, the town council was in emergency session. Mayor Aldric was at the head of the table, pale and sweating. Captain Elara was at his right, writing in her book. The three engineers were on his left, arguing about wells. And Kenji, who had been invited as a "consultant," was standing by the window, looking at the dry creek bed and running numbers in his head.
"We have eleven days," the head engineer said. "Maybe fourteen if we ration strictly. After that, the wells will start failing too."
"Options?" the mayor said.
"None good. We can send people south to buy water, but the roads are bad and the southern kingdoms are hoarding. We can dig deeper wells, but that takes weeks. We can pray, but that has a poor track record."
The room was quiet. Kenji was quiet. Pip pulsed on his shoulder, curious.
Then Kenji said: "What about an aquifer?"
The room looked at him. Elara's pen stopped moving.
"Underground water," Kenji said. "There's a layer of it somewhere below us, between two rock strata, like a sandwich. We just need to reach it."
"The engineers have looked," one of them said, irritated. "The geology here is sandstone. The water table is too deep."
"Not a well. A network. We drill down to the aquifer, then we use a controlled spell to draw the water up through permeable stone. The water fills a small reservoir. The reservoir feeds the wells. The wells feed the town. The whole thing runs on gravity and a small mana cost."
"Run on gravity," the engineer repeated, flatly. "You want to redesign our water infrastructure in the middle of a drought, with magic, in a week."
"I want to debug the town," Kenji said. "The water system has been failing for years. You have been patching it. I am proposing a refactor."
The engineer opened his mouth to argue. Elara's voice cut him off.
"How much will it cost?"
"Mana cost is low. The infrastructure is mostly stone and wood, which we have. The drilling takes three days if I can get fifty volunteers. The spell work takes another two. We have water by day six, with five days of margin."
Elara looked at the engineers. The engineers looked at each other. The head engineer said, slowly: "It might work. The sandstone is porous enough. The mana cost is the unknown. We do not have a mage who can do controlled spell work at that scale."
"You do now," Kenji said.
The mayor looked at Elara. Elara looked at Kenji. She said: "You will work with our engineers. You will explain every step. You will not do anything without their approval. And you will do it in five days, not six."
"Five days," Kenji agreed.
He left the council room with a deadline, a team of skeptical engineers, and a small glowing dragonfly on his shoulder. He also left with, for the first time in this world, the specific feeling of a person who has been given a problem and is now allowed to solve it. It felt, he realized, exactly like getting a really good ticket at his old job.
Pip pulsed. The pulse felt like: "Time to debug."
Kenji sent back: "Yeah. Time to debug."
He walked out into the dry evening, and the work began.
# WORLD.md (updated)
## Status
- Drought: severe, eleven days until wells fail
- Aquifer project: approved, deadline 5 days
- Reputation: now regional (the mayor trusts Kenji with infrastructure)
## Lessons
- A refactor in the middle of a crisis is a refactor in the middle of a crisis
- Skeptical engineers become allies when you explain the architecture
- The head engineer's "it might work" is engineering-speak for "I am curious but will not admit it"