She had stopped fighting the wind. She was now controlling the internal story of the lighthouse—its position and momentum—and because she could see the future hidden in those states, the present took care of itself.

In the coastal town of Windshear, there was a rusty old lighthouse. Its beam was supposed to sweep the horizon once every minute, warning ships away from the jagged cliffs. But the lighthouse keeper, Elara, had a problem: the wind.

This was . It worked for steady problems, but it was reactive, always chasing the last error.

One evening, a visiting engineer named Kai saw her struggle. “You’re only looking at the output—the beam’s position,” he said. “To tame this, you need the whole story.”

She programmed the motor to not just correct the current position error, but to also anticipate. If the model saw the lens speeding up too much (even if the position was still correct), the controller would gently brake before it overshot. If the lens was lagging in position but moving too slowly, the controller would give an extra push now .

Elara built a new controller. Instead of just reacting to the beam’s error, she built a small —a mental model inside the control box. This model used the motor’s voltage and a cheap sensor to continuously guess the lens’s angle and speed.

Then came the magic: .