That failed swap forced a different way of looking at the problem. Frozen weights sitting on disk don't
carry labels like "add gravity," and poking one live number mid-run vanishes on the next token. A capability
only shows up in motion, in how those weights transform a signal step after step across a whole answer (RESIDUAL-TRACE-THEORY.md,
Paper 1).
Two everyday pictures helped me explain to the agents what I meant when I didn't have textbook math for it
yet. Picture dozens of people finding their way out of a dark forest. Some steer by the stars, which sit in
different places at different hours; others follow a creek. No two travelers step in the exact same
coordinates, and studying the mud might never tell you stars existed at all. Even so, their tracks show
common turns whenever people bend toward the exit, or start circling back into the trees.
Now picture stretching an elastic band between two pins and pressing your finger into the middle. If you
subtract pin B's position from pin A's, you only learn how far apart the pins sit. The bend between
the incoming half and the outgoing half tells you the push you applied.
Turning those two pictures into real measurements brought me straight back to the llama.cpp recorder we had
built. Using it, I recorded the ordered sequence of all 105 steps across every token of an answer, a
recording I call an execution trace.
Having full execution traces forced one sharp design choice: which numbers inside a trace to compare
between a right answer and a failing one. The tempting option is to compare the raw residual numbers coming
out of each step. Raw residual numbers behave like a traveler's GPS street address. Two drivers can make the
exact same left turn in two different neighborhoods, yet their GPS coordinates sit miles apart. Inside
Gemma, raw states bundle the math operation together with each prompt's specific numbers (64 J vs 16 J),
objects ("block" vs "sled"), and wording. Pulling one answer's raw numbers toward another risks dragging the
donor's numbers straight into the new problem. The agents kept drifting back toward comparing wording, so we
checked how sensitive an early trace descriptor was to phrasing alone: rewording the exact same physics
problem moved it 40 times more than getting the physics right versus wrong (JOURNEY.md).
To strip out each prompt's size and wording, I stopped comparing where the signal ended up and started
measuring how much each step bent it. Take the 1,536 numbers going into a step (h_in) and the 1,536
numbers coming out (h_out). Scale both lists to length 1 so magnitude disappears and only direction stays,
then subtract:
That turn captures how one step bent whatever signal arrived, whether the block started at 64
joules or 16 joules.
One snag remained: two right answers almost never take the exact same number of tokens. Comparing token 40
in one answer to token 40 in another is like comparing second 40 of a slow piano recording to second 40 of a
faster recording of the same song, where the notes don't line up. Instead, we align two sequences of turns
by shape alone using Dynamic Time Warping (DTW), which stretches and compresses two timelines until
matching bends line up without ever reading a word or token position.
And like two good free-throw shooters who both swish the net along slightly different arcs in midair, two
right answers still wiggle around each other naturally. Comparing 14 independent right
answers gave me that normal wiggle zone (a tolerance circle). As long as a failing answer turns inside that
normal right-answer zone, the model gets zero update. Only the excess bend sticking outside the circle tells
the weights which way to move.