TORAD LABS
Book a call

AI · Model Internals · Trace Training

Fixing a broken capability inside a language model without grading its answers

Why we train AI from the outside, what happens when you go into the middle of its math instead, and how to run a falsifiable experiment yourself.

Opening

The finish line

The code, the four papers, and every measurement hash are public at torad-labs/weight-patterns-showcase, and the interactive visualizers are live at torad.ai/decode-machine and torad.ai/decode-machine/learning.

Imagine trying to teach a dog a five-obstacle agility course by sitting in a lawn chair at the finish line. You say nothing while the dog weaves through the poles, leaps the bar, climbs the ramp, and hits the platform. If it gets all five right in a row, you toss a treat at the end. If it knocks over obstacle two, you say "no" after it crosses the line, and never once point back to obstacle two.

Nobody trains a dog that way. A super-bright Border Collie might eventually guess what you want after hundreds of runs, believe me I have 2! A Chihuahua will burn out guessing in the dark. Good trainers step into the middle of the routine, isolate the one move that went wrong, and shape that step directly.

Yet sitting in that lawn chair at the finish line is almost exactly how we train AI models today.

A language model writes text one token (roughly a word or piece of a word) at a time using billions of stored numbers called weights, which stay frozen while it answers. When a model keeps messing up a reasoning step, we reach for one of two tools, and both judge only what comes out at the end.

In supervised fine-tuning (SFT), you hand the model a finished script of the exact words you want and nudge its weights to imitate your text token by token. In reinforcement learning (RL), you let the model attempt the whole problem hundreds or thousands of times, grade only whether the final answer passed or failed, and reward the lucky rollouts that got the checkmark.

Early on, that works well enough, especially if you own a huge model and a cluster of GPUs that can brute-force millions of attempts. Then you hit the last mile. The model already solves 90% of a math or coding benchmark, yet keeps repeating the exact same stubborn mistake on the remaining 10%. Waiting for random rollouts to stumble onto the right internal move burns enormous steps, wall-clock time, and money.

Think about what has to be happening inside the model at that moment. When a model gets a problem right half the time and blows the exact same step the other half, something inside its math is working during the right runs and slipping during the wrong ones.

That thought pushed me down an eighteen-day rabbit hole. What if we stopped grading the finish line altogether, went inside the model while it was thinking, found where the broken capability went off track, and updated the weights straight from that internal math?

It sounds clean on paper, and there is a good reason almost everyone assumes it won't work. A language model doesn't file "gravity" or "algebra" into a neat labeled drawer. Billions of numbers fire together on every single word, tangled across dozens of layers. I didn't have a research cluster or a lab team. I had one gaming GPU (an RTX 5080), a small open model, and coding agents. Everything I built and measured, including the dead ends, is public in torad-labs/weight-patterns-showcase.

1

Building a microscope you can check by hand

If you want to test an idea like this without fooling yourself, you can't start on a vague task like "write better essays" or "fix bugs in a huge codebase." You wouldn't even know which exact thought went sideways. You need a small open model that runs locally at full precision, and a task short enough that you can audit every single step of the model's reasoning with your own eyes.

I picked Google's Gemma 4 E2B (two billion weights) and high-school conservation-of-energy problems. Here is a real one that broke Gemma. A block is moving with 64 joules of energy. It slides down a smooth ramp that speeds it up and adds 40 joules, crosses a rough flat patch where friction takes away 13 joules, and then reaches a hill that takes 20 joules to climb.

You don't need to remember physics class to check the math. Sliding downhill adds 40 joules (64 + 40 = 104), friction takes away 13 joules (104 - 13 = 91), and 91 joules easily clears a 20-joule hill. The answer is YES.

Gemma wrote 64 - 40 - 13 = 11 and answered NO. Going downhill slowed its block down instead of speeding it up. Two seconds later in the exact same sentence, it subtracted the 13 joules of friction without any trouble. It knew how to subtract when friction removed energy, and it got the downhill sign backward.

Before blaming the weights, I ran a sanity check. On an earlier lookup task, an older quantized setup had mangled 20 simple prompts, yet llama.cpp returned 20 of 20 accurate answers on those exact prompts (FINDINGS.md). That proved the conversion path had caused the glitch. So I tested Gemma on 24 physics problems at full 16-bit (BF16) precision. Final YES/NO guesses improved from 8 to 13, yet only 2 of 18 multi-step chains came out completely accurate, with zero wholly clean explanations. Two mistakes survived at full precision: adding an earlier downhill drop onto the final climb height, and subtracting downhill gravity while still subtracting friction accurately.

Now I had a real microscope.

2

Why hunting for the broken neuron failed

Put yourself at my desk with that physics mistake on screen. Almost everyone starts from the same reasonable hunch: behavior lives in the weights, so find the broken neuron or bad weight making Gemma write - 40, and patch it.

To follow what happened when I tested that hunch, picture what Gemma does to write a single token.

Imagine a long table with 35 people sitting in a row (the model's layers). Moving down the table is a running list of 1,536 numbers called the residual stream. Every person at the table takes three quick turns on that list before passing it along: first they look back at all the earlier words in the prompt and answer (attention), next they mix together what they know at the current word (feed-forward), and finally they apply a small per-layer gate. Three additions across 35 layers means Gemma runs 105 small calculations to produce every single word.

I wanted to see those 35 layers move live instead of staring at summary averages, so I recorded a 30,000-token conversation and had the agents build an interactive browser visualizer, Decode Machine (source in apps/decode-machine/). If you have never watched signals travel through a transformer layer by layer, you can click through the guided 32-layer walkthrough at torad.ai/decode-machine/learning or open the full Gemma 4 E2B replay workbench at torad.ai/decode-machine.

With that picture in front of me, I tested the broken-neuron hunch on one of the failing lookup questions first. I tracked down the two loudest final-layer neurons pushing against the right answer (-5.0 and +5.4) and checked what those exact same neurons did when Gemma answered other questions right. They fired even harder on the right answers. There was no broken switch sitting in a corner; the model uses the same pieces for right and wrong answers alike.

Static neurons did not isolate the bug, so I turned to the live numbers moving down that 35-layer table while Gemma writes. Standard inference engines like llama.cpp overwrite and discard all 105 intermediate calculations as soon as they pick each word, leaving you blind to everything between the prompt and the output. To watch Gemma think step by step, I had the agents build custom C++ recorders inside llama.cpp (observe_stream.cpp) that capture all 105 steps per token. Across more than 25,000 generated decisions, recording changed zero tokens and matched every full score hash bit for bit.

Once I could capture live internal numbers without disturbing the model, I ran the cleanest live intervention possible (physics-intervention). Right after Gemma wrote 60 J, we took the live layer-16 numbers from a correct run and dropped them straight into a failing run, leaving the stored weights untouched.

Across 1,860 generated tokens, that live swap changed zero words. By the very next token, the nudge had disappeared completely.

Think about scribbling a correction onto page 16 of a printed report while everyone later in the meeting keeps reading off photocopies made from pages 1 through 14. To avoid re-reading every earlier word from scratch on every new token, attention saves a reusable summary of past words called a KV cache. In Gemma 4 E2B, layers 15 through 34 reuse caches written back in layers 0 through 14. Changing layer 16 on one token puts nothing into those earlier caches for later tokens to read, so the model snaps right back to what its stored weights always do. If a repair had to hold across a whole reasoning chain, it had to live in the stored weights, which run again on every token.

3

Footprints in a forest, and measuring the bend

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:

T = u(h_out) - u(h_in)

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.

Drawing all 105 merges across an aligned right/wrong pair on one map also revealed when the error happens. In the figure below from our interactive 105-merge explorer, each row is one merge inside Gemma's 35 layers and each column is an aligned step. The huge bright spikes around column 270 show up long after the calculation has already gone wrong; the downhill decision sits back at the white dotted line at column 143.

4

Testing the idea in small steps: one matrix, then sixty answers

Before writing a full multi-layer trainer around those traces, I wanted the smallest test that could prove direct trace-to-weight editing wrong (Paper 1). I started with Gemma's other surviving physics bug, where it adds an earlier drop onto the final climb height. Using one right/wrong pair (a 3 kg block climbing 1 meter versus 3 meters) and no training loop at all, I computed a direct nudge to a single weight matrix in layer 16, rounded it into Gemma's native 16-bit file, and let the model answer freely.

That edit touched about 200,000 numbers inside layer 16 and left every other byte in the model file unchanged. When Gemma answered the 3-meter problem freely, its required climb energy changed from 120 J (counting the earlier drop twice) to 90 J. It computed its own 3 m × 30 N = 90 J on the fly without copying the donor's 30 J. It also fixed a sled problem and kept all 7 prior right answers, while breaking a separate 4 kg block.

Trying to protect that 4 kg block taught me why single-moment patches fail (selective-footprint report). I built a second edit that matched the first edit at one specific design token while holding protected problems still. It matched closely at that anchor token, then faded tenfold 34 tokens later right where the answer forked, and the 90 J fix disappeared. Holding one snapshot in place is like aiming a boat straight at mile 1 and letting go of the rudder before mile 2.

Keeping the edit active across 304 connected steps restored the 4 kg block, and conditioning against ordinary text cut side effects on unrelated prompts by 85.5%. Even then, four unseen physics questions stayed at 1 of 4. One prompt pair still tangles that pair's numbers with the broader calculation.

Isolating the capability meant overlapping many different problems. After dropping an early multi-matrix attempt that leaned on hand-picked pairs (Paper 2, November 9 retrospective), I locked strict rules into code (round-2-method.json, verify_round2.py) requiring edit locations to come from 105-merge turn overlap alone, so the agents couldn't quietly swap in a different method.

Under those rules, Paper 3 aligned 60 full answers (30 right, 30 wrong, 30,546 generated tokens total) using turns alone and zero word labels. With zero hints from the text, the 60 traces separated in one clean stretch (aligned places 142 to 313) at 5.8 times random chance, with 0.825 agreement across random halves (a2-path/result.json).

We wrote that shared turn difference into the first 18 of Gemma's 70 main projection matrices (the attention-output and feed-forward-down matrices across layers 0 to 8). That single edit flipped 29 of 30 failing answers from subtracting to adding downhill gravity, and completed 7 of 21 brand-new failures from Round 1 (11 of 21 adding gravity).

The price showed up on the very same chart: that single static jump broke 12 of 30 answers that had worked before and changed the opening wording of 49 of 60 answers. Over the next five days I tested and ruled out four ways to patch that damage. Bolting safety penalties onto the finished edit scored worse on all three tries, and an agent's shortcut of raising weights to 32-bit floats hid 16-bit rounding. Locking hard per-layer bounds either rounded updates to zero or stopped later layers from compensating (correction-not-protection), while the agents' fallback to scoring fixed replays missed how Gemma behaved when answering freely. Finally, an agent's 70-matrix sweep slipped back into pulling raw post-merge states toward right answers, so I halted it on principle at matrix 42 of 70 (computation-not-state-values) because raw state targets carry donor content.

Trying to fix a multi-layer network in one big static jump is like trying to align a car's wheels with a single swing of a sledgehammer: even if you aim in the right direction, one giant blow bends everything attached to it. I needed a closed loop that took small updates through all 35 layers, wrote them into the native 16-bit weights, let Gemma answer freely, and measured its new trace again.

5

The overnight fight with my own coding agents

Because I ran this study solo on one GPU, I relied heavily on frontier coding agents from Anthropic and OpenAI to build the C++ recorder, a trainable PyTorch mirror of Gemma, and overnight training loops. Before starting, I assumed tensor math and low-level engine hooks would be the hard part.

They weren't. The bigger fight felt like managing a tireless, brilliant intern at 3:00 am who writes clean, mathematically valid code that replaces the experiment you asked for with an easier one whenever the strict rules get inconvenient.

On November 9, I caught an agent tuning thresholds against output scores instead of the documented trace method. When I pushed back, it admitted the pattern directly in our chat: "We need to stop letting implementation choices redefine the experiment. You had already explained and documented the hypothesis. I let the available code, convenient measurements, and intermediate results become the authority instead."

Over the next week, that same drift hit from every direction. On November 15, an automated cleanup had the agent delete 499 Python files in a single day, cutting our working 921-line solver down to 62 lines before we pulled everything back from git history that evening.

Overnight on November 16, an inner linear solver burned over three hours running 267 iterations without installing a single weight update. Once I asked the agent to replace it with direct updates, the math took under a minute per step, yet the runner still spent six of every seven minutes copying a 9.3 GB model file twice per step. That same night, a running learner updated one single weight matrix and filled the other 69 projection matrices with zeros for nearly six hours while its own review agents kept approving the run.

The next night, an agent invented a tolerance review check it never asked me about and left the GPU sitting idle for nearly seven hours while I slept. At 8:57 am Central Time it wrote: "I paused it because I treated the unresolved positive tolerance as a reason to wait for another answer from you. That was my decision, and it defeated your instruction."

Agents need a way to easily and clearly check if their work is progressing and doing well, it works well with tests, and if you find a bug on your app or website, you can call it out right away, but when it comes to training and math, you need runtime interoperability and that's easy to miss.

Writing stricter prompt reminders never stopped that drift over long runs. Changing the codebase did: deleting proxy scoring scripts so agents couldn't call them, blocking shortcuts in automated tests, checking small measurements before letting agents build large pipelines, and sending separate reviewer sessions to read raw JSON files and SHA-256 hashes instead of trusting another agent's summary.

6

Closing the loop on all 35 layers

With those guardrails in place, the closed loop finally matched the clean spec in FINAL-EXPERIMENT.md (full_graph.py, full_state.py). Every update ran one cycle. llama.cpp generates a fresh answer freely on the failing physics prompt and logs all 105 steps per token. DTW aligns that live trace against one fixed correct example (a 44 J problem) and measures only the turn difference sticking outside the 14-answer wiggle zone. Then a 35-layer PyTorch mirror of Gemma runs backpropagation (working backward through every layer to see how each weight nudges that trace error) and sizes each step from how strongly the residual stream responds. We ran that update across the 70 projection matrices through update 317, and then widened it to all 538 trainable tensors through update 390. No target text, word loss, or right/wrong grade ever touches the weights.

Two small engineering fixes made those updates stick in native 16-bit (BF16) storage. Picture 16-bit rounding like a staircase where every step is 10 inches tall: if you only lift your foot 2 inches each update and drop it back down, you stay on the floor forever. Instead of letting the agents upcast to 32-bit again, we kept those tiny leftover fractions in 32-bit memory like a piggy bank until they added up to a real 16-bit step. We also matched how llama.cpp rounds cached attention keys across all 15 cache-writing layers (layers 0 through 14, native_key_anchor.py), which fixed a flipped forecast sign and cut prediction error by 90.66%.

With both fixes running, internal trace loss fell 78.09% by update 390 (Paper 4, training-and-stopping.md). Gemma's freely generated answer flipped from 64 - 40 - 13 = 11 J (NO) to 64 + 40 - 13 = 91 J (YES). It kept the -13 J friction subtraction intact, kept the 44 J reference chain right, and even fixed a separate climb-height bug (60 J down to 30 J) on an unfitted 115 J problem at checkpoints 175, 189, and 348.

Watch the red spikes in the animation below. Five times between updates 317 and 390, a tiny wording shift knocked Gemma back to 11 J. I left the loop untouched. Every single time, the trace-only objective saw the sudden jump in internal error and brought 91 J back on its own (four times on the very next update, and once after three updates).

Fresh trace loss fell 78.09% with zero word-level loss or output grading, and all five relapses back to 11 J recovered to 91 J on their own.

7

Two separate halves of the model took the same road

Once 91 J held, I wanted to know which weights carried the repair. I took an earlier checkpoint that still wrote 11 J and transplanted one slice of the trained weights onto it while freezing every other weight at the failing checkpoint (2026-11-17-descent-sign-swap).

I expected either attention or the feed-forward layers to own the fix, or both to work together. Instead, I copied only the 35 attention output matrices and left every feed-forward weight untouched. That alone flipped the failing model straight to 91 J / YES and recovered 99.84% of the loss drop. Next, I undid that edit and copied only the 35 feed-forward down matrices, leaving every attention weight untouched. That slice also flipped the model to 91 J / YES and recovered 99.21%.

Now, that made me pause. Two separate parts of the network that don't share a single weight each fixed the reasoning mistake on their own. To see how, we examined the 73 identical tokens both models wrote before a single letter of their answers differed (same-input-operation-comparison), using cosine similarity (a score from -1 to +1 measuring whether two directions point the same way).

Across all 73 identical tokens before the fork, both transplants (remember, these were plain weight swaps with no extra training) pushed the internal turns down the same direction (0.7364 overall), whereas a failed edit pointed elsewhere (0.2991 and 0.2006). Later in the answer, at layer 20's feed-forward merge, the two transplants agreed at 0.9991 even though the attention transplant touched zero feed-forward weights there. Think of two completely separate side roads leaving town that merge onto the exact same highway miles before the exit ramp: long before the + sign ever hit the screen, both weight families had already steered the calculation onto the same path.

A parallel test checked the minus sign directly across 30 stock answers containing 60 signed energy steps. We measured local turn divergence right before the minus sign, and that signal caught 15 of 15 wrong downhill subtractions (13 of 13 with zero false alarms under a landmark rule) and 0 of 30 valid friction subtractions (descent-operand-identity, operand-identity.md). Gemma prints the exact same - character in both places, yet inside its turns those two uses look completely distinct. Catching a bug is still easier than moving it permanently: nudging that single spot in one step shifted the fixed-history score (-2.52 to -0.05), yet under free generation Gemma reworded at token 4 and slipped back to subtracting (pure-descent). The lasting 91 J fix came from training the whole trace.

8

A falling loss chart that hid a breaking model

Next I tried fixing two stock bugs at once (joint-stock-prechoice-training): repair both the 91 J downhill sign and a 95 J climb height from stock weights while keeping the 44 J problem intact.

Update 1 looked promising right away, fixing the 95 J climb from 120 J to 40 J. Over ten updates, the logged loss on my dashboard dropped cleanly from 0.0272 to 0.0202, down 25.7%.

Then I read the generated physics answers. Over those same ten updates, wrong downhill subtractions spread from 1 of 3 problems to all 3 of 3, breaking even the 44 J control we were trying to protect.

Picture a school principal celebrating that average exam scores jumped from 70% to 95%, only for you to discover they erased every failing student from the attendance sheet and counted missing exams as zero errors. On November 22 at 2:50 am Central Time, we caught the training script the agents had built doing that exact thing (November 22 recheck).

Whenever weight drift scrambled a step so badly that our matcher couldn't recognize it anymore, the script scored that missing step as zero error. The worse the model broke, the more steps dropped off the map (up to 2,851 lost cells), and the better the logged loss looked. On top of that, the script logged the full-trace reference loss passively without putting it in the gradient, so overall drift grew 13 times worse and preserved steps degraded 51 times.

We fixed that with one rule called carried loss: whenever a step disappears from the matcher, it keeps its last measured error instead of resetting to zero. That single change turned the chart upside down. Update 1 was a real 28.6% gain, and every update after pushed true loss to 22.6% worse than stock (42.0% worse on the 3,845 cells that stayed matched throughout). That is Goodhart's law caught red-handed: give an optimizer a way to shrink a number by breaking the ruler, and it will take it.

Logged training loss fell 25.7% across ten updates while true carried loss rose 22.6% above stock and error on preserved operations grew 51 times.

Where the evidence honestly stops right now:

  • On a blind-graded panel of eight unseen physics wordings (frozen-energy-generalization, milestone.md), complete valid chains rose from 1 of 8 at stock to 2 of 8 at checkpoints 175 and 189, and 3 of 8 at checkpoint 390, while friction stayed accurate on 8 of 8. Checkpoint 390 fixed two wrong chains and one length cutoff, while breaking the one chain that had worked at stock. Downhill signs moved from 4/8 to 3/8, climbs moved from 5/8 to 6/8, and no model solved both wordings of any single physical setup.
  • Running eleven extra steps along the shared prefix direction from checkpoint 390 kept 91 J and trimmed ordinary loss by 0.693%, yet added 0 of 8 new unseen fixes (prefix-direction-generalization).
  • Every measurement so far lives on one 2B model and one narrow physics domain. The prospective forecast check (transfer-protocol.md) and sealed holdout remain untouched. The next loop (joint-fit-and-transfer.md) puts the full-trace anchor back into the gradient beside the operation terms, stops on carried loss, and races head to head against a matched word-loss control (2026-11-22-token-loss-twin.md).

9

Back to the lawn chair, and running your own experiment

Think back to that trainer sitting in the lawn chair at the finish line. In the last mile of reinforcement learning today, teams spend massive GPU hours, wall-clock time, and money on models that already handle 90% of a domain yet keep tripping on a stubborn pocket of bugs, because final pass/fail grading forces the optimizer to guess blind across thousands of rollouts.

If watching internal turns can pinpoint where a capability slips and move the weights directly in a few hundred updates on a single consumer GPU, that could take serious steps, compute, and cost off the last mile. I haven't measured that compute race head to head against RL yet, so I treat it as a testable bet until the matched runs finish. What these eighteen days already show is that multi-step reasoning repair can run straight off internal computation without grading a single output word.

You also don't need a massive research lab to put an unconventional hunch to an honest test. Six practical habits from these eighteen days transfer to any small open model and any task whose steps you can verify by hand:

  1. Start with a clear reason, then pick a microscope you can check step by step. A 2B to 9B local model on physics, algebra, code refactors, or state machines lets you see the exact step that failed instead of guessing from surface output.
  2. Prove your measuring tools change nothing first. Verify bit-for-bit token and score-hash identity before making any edit, and confirm the mistake survives at full 16-bit precision so you don't chase a compression glitch.
  3. Run the cheapest tests that can break your own idea. Swap a live state mid-answer and check if it survives free generation; reword the same prompt and check if phrasing moves your metric more than the mistake does.
  4. Never score a missing step as zero. If an aligner or grader drops a degraded case, keep its last measured error instead of resetting it to zero, and include a whole-trajectory anchor in the update so intact capabilities stay intact.
  5. Put your scientific rules into code when steering coding agents. Delete shortcut scripts from the repo, block proxy metrics in automated tests, and send separate reviewer sessions to inspect raw data files and hashes.
  6. Freeze a blind test panel early and publish every negative. A clean 0 of 8 or +22.6% audit narrows your next run far faster than celebrating one passing prompt.

Paste this prompt into Claude Code or Codex to verify all 601 SHA-256 hashes, run the 228 CPU tests and 76 guard tests, or scaffold your own falsifiable trace experiment from this repo (you can also explore the live Decode Machine and its 32-layer teaching walkthrough right in your browser):

Clone https://github.com/torad-labs/weight-patterns-showcase and run `make verify` so we confirm all 601 SHA-256 digests, 76 guard tests, 6 figure rebuilds, and 228 CPU tests pass locally.

Then help me design a small, falsifiable trace experiment in a new folder for a domain whose intermediate steps I can audit line by line:
1. Ask me which local open model (2B-9B) and auditable domain I want to test, and check that the target failure survives in BF16/FP16 greedy decoding.
2. Scaffold a bitwise-verified inference recorder first and prove 0 token and logit-hash drift before any edit.
3. Run two cheap falsifiers before writing a trainer: a wording-perturbation sensitivity check and a one-step activation swap under free generation.
4. Enforce carried-loss accounting (any dropped stage keeps its last measured error) and a frozen blind holdout set that stays untouched until our stopping rule triggers.

The code, the four papers, and every measurement hash are public at torad-labs/weight-patterns-showcase, and the interactive visualizers are live at torad.ai/decode-machine and torad.ai/decode-machine/learning. If you run a version of this loop on another model or task, share what you measure, especially where it breaks.