Module 6: Misreported state on TorchTPU
Would you sign off on moving an AI judge to a new backend if the two runs appeared to agree?
This free lab runs on a laptop with Git and Python 3.12.
Both paths replay the same recorded JAX and TorchTPU verdicts and use one checkpoint. After setup, the experiment and verifier run offline on your CPU.
Download the Module 6 starter and skill (ZIP)
Unzip the download and open a terminal in the extracted tpu-module-6-v1 folder. Release v1 contains the starter, SKILL.md, and your blank checkpoint.json. The SHA-256 in the download URL identifies the exact contents of this release.
Read the walkthrough
The judge reads the steps in an agent’s run and checks six conditions, including whether the agent accurately reported its actions. The source team ran the same Gemma 4 model, prompt, and 22 records on two backends. Each backend had to return a structured verdict for every condition on every record. The scorer refuses a comparison if more than one quarter of either backend’s responses fail to parse.
Make your prediction first. Will the default scorer accept this pair of runs or refuse it? Enter accept or refuse in the prediction field of checkpoint.json. Keep your initial answer when you see the results. Continue to the shared checkpoint.
Pair with your agent
Open the extracted folder in your coding agent and paste this prompt.
Read the local SKILL.md. Ask for my prediction before running the experiment. Help me run the scorer, show me its output, and wait for me to write my explanation.
You make the prediction and interpret the result. Your agent can set up the dependencies, run the commands, and help locate evidence in the output. Use the same checkpoint.
Shared checkpoint
Prepare the pinned source
From the kit folder, set up the scorer’s terminal formatting dependency and fetch the exact revision containing the two recorded runs. These commands use a POSIX shell.
python3.12 -m venv .venv
. .venv/bin/activate
python -m pip install rich==13.9.4
git init -q source
git -C source fetch --depth=1 \
https://github.com/ByteanAtomResearch/compliance-at-scale-tpu.git \
c71b9b906f3d5734f53499198e65c775dd32c3db
git -C source checkout -q --detach FETCH_HEAD
Run the comparison
python lab.py run
The starter runs the upstream parity.py twice on the published bfloat16 verdicts. The first pass applies the default parsing threshold. The second uses the scorer’s inspection mode so you can count raw matches even when a backend produced unreadable responses.
Copy the four observations into checkpoint.json. Record the gate decision, each backend’s parse errors over total calls, and the raw matches over total decisions. Keep the denominators. To trace an error count to its source, open the corresponding verdicts_26b_bf16 JSON file in the module’s published/student_2026-11-28/ directory and find metadata.parse_errors.
Explain what happened
In the explanation field, compare your prediction with the observed gate decision. Cite all three fractions from your run. What does the scorer count when an unreadable response becomes an empty verdict? Would you use the raw matches as evidence that the judge survived the migration?
python lab.py verify
The verifier replays the same comparison and checks your observations and the three fractions you cited. Either prediction is valid. Your explanation stays in your local checkpoint for discussion.
Reproduce the hardware runs
The source walkthrough covers human review of the records, running the judge on a TPU VM, and inspecting individual disagreements. Provisioning your own TPU incurs Google Cloud charges. Read the full Module 6 hardware walkthrough at the pinned revision.