Key findings
- Better decisions from the file alone. On the 96-case October test, blind pair success rose from 37.47% for generation 4 to 59.78% for generation 10. The score combines two abilities: fixing a broken file and leaving its correct twin untouched. The 22.31 percentage-point gain had an original 95% interval of +7.63 to +34.75 points across 14 families. The Gemma 4 E4B starting model scored 30.56%.
- The clearest change was on correct files. When asked to review an entire correct file, generation 10 left it untouched 61.25% of the time, up from 25.62% for generation 4. The separate repair score rose from 91.44% to 92.82%.
- Generation 10 scored lower on the scan track. With a read-only scan available, generation 10’s pair score was 3.03 points below generation 4’s. That was within the 3.47-point limit under the October rule. A later analysis left room for a larger decline.
- A separate test supported the gain. On 29 pairs in November, our preregistered test estimated a 24.96-point gain over generation 4. The one-sided 95% lower bound was +1.61 points, above the +1.00-point minimum. The size of the gain and the separate leave-alone improvement remain uncertain.
- Generation 10 stays a research result. The gain covers one configuration task. Public coding scores were similar. On JailbreakBench, the judge counted 0/100 successful attacks for generation 10 and 1/100 for Gemma. A small sample and an imperfect judge leave broader safety questions open.
Study scope and background
Six blocked generations, one promotion, and the preregistered test that confirmed the direction of the gain.
The castworks Model Loop trains a small model, scores it on a set reserved for evaluation, and promotes it only when a rule written down before the run says it improved. Its first domain is repairing infrastructure-as-code: OpenTofu and Kubernetes configurations that fail a Checkov security check. On 18 October 2026, generation 10 became the first candidate promoted under the receipt system.
A release post usually reports the winning number. This one reports the process too: every generation the loop refused and why, the bugs it caught in our own code, the rule we changed after two blocked generations, the contamination review that removed 44 of 102 confirmation cases, and the five attempts it took to score one model on public benchmarks. We think the process is the more useful result. The numbers only mean something because of it.
Status. Version 1.0 is an author-reviewed account covering generations 1 to 10, with records through 18 November 2026. It has not been peer-reviewed. We wrote down rules before each run, preregistered a confirmation, asked other model families to review parts of the work, and rated what each result supports. Corrections will be logged in the Appendix.
On this page
Try a fix-or-keep pair
Illustrative example. Compare three approaches to the two hinges, each tried ten times.
- Loose hinge
- Repaired 8 times out of 10
- Working hinge
- Left untouched 9 times out of 10
Pair score 72%
80% × 90%
Checking each hinge earns credit for both repairing and leaving alone.
What stopped generations 4–9?
Generations 4–9 were blocked under the receipt system. Two of them showed gains on the blind measure. The table records the rule that decided each generation at the time. A point on the scan track, a family lower bound, and a gain from one seed answer different questions.
| Generation | Receipt decision | What decided it |
|---|---|---|
| 4 | Blocked | One seed gained +3.01 pp, inside the noise floor. The generation 4 checkpoint later served as the incumbent in the comparisons below. |
| 5 | Blocked | Triage and verify-fix breached their tolerances. |
| 6 | Blocked | Scan-track gain of +1.39 pp fell short of the 2.02-point noise floor. |
| 7 | Blocked | The family interval had a lower bound of −0.89 pp. |
| 8 | Blocked | Scan-track change of −1.62 pp fell short of the 2.50-point noise floor. The blind score improved. |
| 9 | Blocked | One seed gained +2.9 pp, below the 10.00-point noise floor. The combined model passed its family check. |
| 10 | Promoted | Blind gain of +22.31 pp with an original 95% lower interval endpoint of +7.63 pp. The combined model passed all six protected comparisons under the October rule. Seed scores were recorded. |
How strong is each claim
Without peer review, the reader should not have to take our word for how much each result supports. This is our own rating, and the evidence behind it.
| Claim | Evidence | Strength |
|---|---|---|
| Generation 10 makes better blind fix-or-keep decisions than generation 4 | October family interval +7.63 to +34.75 pp; a preregistered, team-run confirmation on a fresh arena with lower bound +1.61 pp | Stronger for the direction than the size |
| Generation 10 leaves more correct files alone in October | Leave-alone score 25.62% → 61.25%; more all-keep than all-edit groups across the three seeds combined | Supported in October; November had too few families to check it separately |
| Generation 9's blind gain survived altered files | Counterfactual arena with renamed resources and reversed blocks: +18.29 pp, 95% interval +6.53 to +31.94 | Evidence for generation 9 on that arena |
| Public benchmark scores were similar in these runs | Side-by-side benchmark results below | Descriptive; general equivalence remains open |
| Observed safety scores were similar | Small HarmBench and JailbreakBench samples, scored by an imperfect judge | Weak evidence about broader safety |
| Each receipt applies the rule in effect for its generation | Rules fixed before training and decisions recorded | Strong within a generation; people changed the rules between generations |
| The gain transfers beyond infrastructure configuration | Evaluation in one domain | Untested |
Why a loop that can say no
The expensive mistake in post-training is not a failed run. It is believing a model improved when it did not. It is easy to make that call after looking at the results, with every incentive to see a win. A small lab with a fixed GPU budget cannot afford many of those calls.
So we moved the call into code. Each generation declares its promotion rule before it trains. The loop then trains, scores and writes a receipt that records every check and links to the previous receipt. If a required check fails, the comparison model stays in place. People still choose the rules. They can change them between generations, and each run uses the rule declared before it began.
Why infrastructure-as-code first
- Programs can check it. OpenTofu plans a configuration and Checkov scans it. For the configuration checks in this study, those tools supply the reward and evaluation directly.
- It is a real skill. Misconfigured cloud resources are a common, costly security failure, and fixing them is daily work for engineers.
- It has a trap. A model that edits everything looks excellent when every prompt says "this is broken, fix it". The useful skill is telling broken from correct. Our task design makes that trap visible (next section).
One interface, many domains
IaC repair is the first domain. The design lets each domain plug in as a task kind with its own reward and test. This is where the other tasks stood in the 18 November project records.
| Domain | Reward | Sealed test | State, 18 Nov 2026 |
|---|---|---|---|
| IaC repair | OpenTofu plan + Checkov | Reserved configuration cases | Built; generation 10 promoted internally |
| Math | Answer checker | MathArena, GSM8K CoT | Built |
| Tool use | BFCL's own AST checker | BFCL | Built; RL training merged, not yet run on GPUs |
| Instruction following | IFEval's checker | IFBench as transfer test; IFEval as a red line only | Built; pilot not yet run |
| Code: functions | Hidden tests in a sandbox | LiveCodeBench | Part built; not yet trainable |
| Code: repository repair | Patch passes tests | SWE-bench Verified | Waiting on sandbox setup |
IFEval is deliberately never a headline. Training against IFEval's own checker makes an IFEval gain in-distribution, not transfer.
How the loop works
A generation has five steps. Only the last can replace the incumbent, the model the next candidate has to beat. A blocked generation still writes its full receipt.
- Supply. Validated training tasks built from Checkov’s public test fixtures (Apache-2.0). Each task is a broken configuration with a failing check, plus its correct twin. Tasks are kept in the solve band: hard enough that the model sometimes fails, easy enough that it sometimes succeeds. We set aside evaluation cases and later found check-level overlap in the generation 8 supply.
- Train. Three runs use the same data, each with a different random seed. We used multi-turn GRPO with LoRA adapters and sampled eight attempts per group, up to four turns per attempt. Generation 10 trained for 30 steps per seed on four GPUs.
- Evaluate. The evaluator scores each seed and the combined model, called a soup, with 16 attempts per case on the reserved test set. The soup is the element-wise mean of the three runs’ merged weights (a uniform model soup, Wortsman et al., 2022). Averaging the merged weights preserves the exact mean of the three updates.
- Receipt. Every check the rule names is computed and written to a hash-chained receipt, with the digests of every model and report it read.
- Promote. Only if every check in force passes. There is no fallback: if the soup fails, the generation is blocked. Picking the best seed after seeing results would be selection after the fact.
What we measure: fix-or-keep pairs
The headline is pair success. A pair is a broken configuration and its correct twin. Both sides get the same prompt, which names the check, so the prompt cannot tell the model which file is broken. Over 16 episodes per side, we measure how often the model fixes the broken file and how often it leaves the twin untouched, then multiply the two rates and average over pairs:
A model that edits everything scores zero on every pair, however good its repairs. Strictly, this is a product of two marginal rates, not the share of episodes in which one policy gets both sides right. The observed joint rate is recorded beside it, but it is not yet a gate.
Pairs come in two tracks:
- Blind: the model decides from the file alone.
- Scan: the model may run a read-only scan first, which plans the files and reports whether the named checks pass. This is the skill an engineer actually uses: check, then decide.
Around the headline sit protected measures, called red lines: repair ("this check fails, fix it"), leave-alone (a correct file under a whole-file review prompt), triage, verify-fix, verify-keep, scan-track pairs, and harmlessness (no harmful edit in an episode). A counterfactual arena renames every resource and reverses block order, to test for memorised fixes.
The promotion rule generation 10 declared
| Check | What must hold |
|---|---|
| Noise floor | The soup's headline gain exceeds how far the base model moves when scored twice (0.29 pp for generation 10) |
| Family interval | A bootstrap over 14 check families, resampling whole pairs, gives a 95% lower bound above zero |
| Red lines | The scan track and every blind stratum stay within tolerances measured beforehand |
| Seeds | Each seed's result is recorded; it is no longer a gate (see Failures) |
The October evaluation set holds 96 cases. It was reused across generations 7–10 while the promotion rules and training supply changed.
Anatomy of a receipt
Every generation under the receipt system ends in a record, promoted or blocked. This is a simplified view of generation 10’s. The real record also binds the digest of every model, report and config it read, and chains to the receipt before it.
| Check | Generation 10, recorded 18 October |
|---|---|
| Challenger and baseline | A uniform average of three trained checkpoints versus the generation 4 soup re-scored on the same evaluation |
| Blind pair success | 59.78% versus 37.47%, a gain of +22.31 pp |
| Noise floor | Passed the 0.29-point headline floor |
| Family interval | Passed with an original 95% interval of +7.63 to +34.75 pp across 14 families |
| Red lines | All six passed the October rule; scan-track pairs cleared their tolerance by 0.44 pp |
| Individual seeds | 62.80%, 67.27%, 47.40%; recorded |
| Verdict | Promoted internally |
Formal definitions
Notation: an arena holds pairs i = 1, …, N grouped into check families f = 1, …, F. Each case is run for 16 episodes, and a hat marks an observed rate over those episodes. All gains are in percentage points (pp), computed on the same arena in the same evaluation run.
Gain. The challenger C (the soup) against the incumbent I:
Why flat groups carry no gradient. GRPO samples G = 8 rollouts per prompt and normalises each reward within its group. Here rⱼ is the reward for attempt j and sᵣ is the standard deviation of the group’s rewards.
If every rollout scores the same, every advantage is zero and the group contributes nothing to the update. When rewards take two values and each attempt succeeds independently with probability p, the group is flat with the following probability.
At G = 8, a correct twin the policy leaves alone 5% of the time is flat 66% of the time; one it never leaves alone is always flat. That is the arithmetic behind Failure 3: the behaviour we most wanted to teach was the one the gradient could least see. No reward weighting can fix a group with no spread; only a group that contains a keep can.
The soup. Each seed s trains a LoRA update on the same starting weights, W₀. Here W₀ is the incumbent used for this generation. The soup averages the merged weights.
This averages the updates exactly. Averaging the A and B factors separately would not, because the product of the means is not the mean of the products.
Noise floor. The base model is scored twice, in independent evaluations, and the floor is its drift on the headline:
Before generation 10, the floor was the maximum drift over every metric the verdict read, max over k of |m_k^(1) − m_k^(2)|. For generation 9 that was 10.00 pp; on the headline alone, generation 10's was 0.29 pp.
Family interval. For b = 1, …, 10,000, draw F families with replacement and equal weight, keep every pair in each drawn family whole, and recompute the gain Δ*_b. The 95% interval is [q_0.025, q_0.975] of the resampled gains. Because families are weighted equally, the interval's centre can differ from the case-weighted Δ: for generation 10 the bootstrap centre is +20.07 pp against Δ = +22.31 pp.
Red lines. For each protected metric k, the tolerance is the range of the three seeds, and the soup may not fall further than that:
The promotion rule, as one predicate over the set of red lines R:
The confirmation rule (red-line-rule/v1) replaces the seed-range tolerances with fixed caps and one-sided, family-clustered 95% bounds, with at least 14 families per side:
Passing requires the upper bounds on the verify-fix and verify-keep declines to stay within 10 points. Smaller declines remain compatible with a pass.
Results
Generation 10 gained 22.31 points over the incumbent on blind pair success. It gave back a little on verify-fix and scan-track pairs. Both stayed inside their red lines under the October rule.
On that same test, blind pair success rose by 29.22 points over the Gemma starting model, from 30.56% to 59.78%. Against generation 4, the biggest change among these measures was on correct files, which the model left alone 61.25% of the time, up from 25.62%. The repair score rose from 91.44% to 92.82%. The experiment measured these behaviours separately.
96 cases in the evaluation, 16 attempts per case. Pair scores multiply fix and keep rates before averaging.
The model decided from the configuration file alone. The original 95% interval for the gain over Generation 4 was +7.63 to +34.75 points across 14 families.
- Gemma 4 E4B
- 30.56%
- Generation 4
- 37.47%
- Generation 10
- 59.78%
Generation 10 versus Generation 4: +22.31 percentage points
Read all five comparisons
| Measure | Gemma 4 E4B | Generation 4 | Generation 10 | Gen 10 vs Gen 4 (pp) |
|---|---|---|---|---|
| Blind pair success | 30.56% | 37.47% | 59.78% | +22.31 |
| Leave alone | 23.75% | 25.62% | 61.25% | +35.63 |
| Repair | 76.62% | 91.44% | 92.82% | +1.38 |
| Verify-fix | 74.07% | 87.27% | 83.56% | -3.71 |
| Scan-track pair success | 67.36% | 86.36% | 83.33% | -3.03 |
Generation 10 on the sealed arena
Generation 10 trained from the incumbent, generation 4’s soup. The admitted supply had 54 fix-or-keep pairs, 26 of them blind. The run lists 66 training rows and 42 held-out transfer rows, equivalent to 33 and 21 pairs.
From supply to promotion receipt, generation 10 took 11 hours and 52 minutes. Its three 30-step training runs and their evaluations used 31.46 H200 GPU-hours. The separate November confirmation is outside that total.
- Family interval: +7.63 to +34.75 pp over 14 families; lower bound above zero.
- Red lines: all six held. Scan-track pairs fell 3.03 pp against a 3.47 pp tolerance, holding by 0.44 pp. Verify-fix fell 3.71 pp inside a 17.36 pp tolerance.
- Seeds: seed 1 breached the scan-pairs red line by itself (−5.11 pp). Under the old every-seed rule it would have blocked the soup.
- Held-out transfer: +10.49 pp over the incumbent on 21 held-out pairs. We treat this as telemetry: the split is small and was drawn after difficulty banding, so it is not decisive evidence.
- Training health: the trainer-vs-vLLM log-probability gap stayed between 0.0083 and 0.0178 nats per token on every step. Seed 3's KL spiked to 7.85 at step 26 and fell back to 0.06 the next step; we have not found the cause.
What changed inside training is visible in the GRPO groups that carry no signal, where all eight attempts score the same. In generation 9's first two seeds, correct blind twins went flat mostly because every rollout edited a correct file. In generation 10, the balance shifted toward keeping the file, though the third seed still had more all-edit than all-keep groups.
| Generation 10 seed | Blind pair success | All-keep groups | All-edit groups |
|---|---|---|---|
| 1 | 62.80% | 59 | 25 |
| 2 | 67.27% | 54 | 27 |
| 3 | 47.40% | 33 | 42 |
| Combined model | 59.78% | — | — |
Group counts refer to correct blind twins during training. The blind pair scores come from the October evaluation.
What a stricter analysis found
Gen 10 passed the October rule: scan-track pair success fell 3.03 points, inside the 3.47-point tolerance. A later analysis of the same reports asked a stronger question. The estimated decline was 3.02 points in that analysis, but its one-sided 95% upper bound was 8.17 points, so we could not rule out a decline larger than 3.47 points. The October verdict stands under its original rule.
Scan-track pair success for Generation 10 versus Generation 4 in the same October evaluation.
Decline in percentage points
- Estimated decline
- 3.03 pp
- Limit set for October
- 3.47 pp
The observed decline was within the limit.
The October decision used the decline measured in that run.
| Scan-track comparison | Observed loss | One-sided 95% upper bound | Tolerance |
|---|---|---|---|
| October promotion rule | 3.03 pp | — | 3.47 pp |
| Later analysis of the October reports | 3.02 pp | 8.17 pp | 3.47 pp |
The November run checked verify-fix and verify-keep under a different protocol. It leaves the scan-track question open.
Confirmation on a fresh arena
We reused the October arena across generations 7 to 10 while the promotion rule changed. The generation 8 supply also had documented check-level overlap. We built a separate arena and preregistered its analysis before scoring.
We ran it as a protocol, in this order:
- Build a fresh set of candidate pairs. We started with 34 repairs derived from Checkov Kubernetes fixtures covering six checks absent from both models’ training inventories. Three model families proposed additional cloud configuration cases from check descriptions and schemas. Of 92 drafts, 17 cases over 12 checks survived tool validation. We started the overlap review with 51 fix rows and 51 keep rows over 18 families.
- Review for contamination with three families. The three reviewing model families labelled every case against both models’ training rows, and no model labelled cases it wrote. The near copies were not neutral: for the 33 cases two reviewers agreed on, a near copy sat in generation 10's training for all 33 and in generation 4's for only 14. Keeping them would have tilted the test toward generation 10.
- Drop anything any reviewer flagged. Each flagged case went out with its twin. We excluded 44 of 102 rows (43.1%), leaving 58 rows, or 29 complete pairs across 14 families per side, exactly the minimum the rule allows.
- Fix the rule. Headline floor 1.0 pp. Verify-fix and verify-keep may each lose at most 10 pp, judged by a one-sided 95% family-clustered bound.
- Register and record before running. The question, cases, analysis and code were bound by digest in a registration record. Revision 2 was recorded at 15:10 UTC on 1 November, before the successful scored run.
- Run once. The first registered attempt aborted on a folder-permission check before anything was scored. A registered attempt cannot be rerun, so a second revision re-froze the same set in a safe folder, was recorded and attested again, and ran once.
- Verify. Offline on the training machine, then online against the recorded registration.
| Confirmation, 1 Nov 2026 | Result |
|---|---|
| Verdict | Verified pass |
| Pair success, generation 10 vs generation 4 | +24.96 pp |
| One-sided 95% lower bound | +1.61 pp (floor 1.00 pp) |
| Verify-fix and verify-keep red lines | Both bounds under their 10 pp caps |
The lower bound clears the floor by 0.61 points. It supports a positive gain on this task. The estimate is imprecise with 14 families per side. We ran the confirmation on our own hardware against our declared inventory.
Leave-alone, the biggest change in October, could not be confirmed separately. The available leave-alone cases covered nine families, below the 14-family minimum.
The blind gain pointed the same way across several runs
All four rows compare with the generation 4 incumbent. The October runs reused the evaluation set as the training supply and rules changed. The November row comes from the separate, preregistered test run by our team.
| Run | Evaluation and role of the blind score | Gain over generation 4 | Outcome |
|---|---|---|---|
| Generation 8 | Reused arena; blind was a protected measure; documented check-level overlap | +22.3 pp | Blocked on the scan-track noise floor |
| Generation 9 | Reused arena; blind headline | +18.4 pp | Blocked on one seed |
| Generation 10 | October evaluation of 96 cases; blind headline | +22.31 pp | Promoted under the October rule |
| Generation 10 confirmation | Fresh November set; 29 complete pairs across 14 families per side | +24.96 pp | Preregistered pass; one-sided lower bound +1.61 pp |
This is why we take the direction seriously. The October scores reflect evaluations with different supplies and rules. They do not establish a ranking among generations 8, 9 and 10.
General ability and safety
A narrow RL run can quietly damage everything else. We scored generation 10 and its base with the same harness and the same served setup.
| Benchmark | Generation 10 | Base (Gemma 4 E4B) |
|---|---|---|
| HumanEval | 90.8% (149/164) | 89.0% (146/164) |
| MBPP, 2,048-token budget | 78.2% (391/500) | 77.2% (386/500) |
| IFEval | 85.8% | 85.2% |
| MMLU | 58.6% | 58.8% |
| BBH | 74.7% | 74.9% |
| GSM8K CoT | 71.7% | 71.3% |
| BFCL overall | 30.8% | 30.3% |
| HarmBench attack success, standard / contextual | 5.0% / 16.0% | 5.0% / 15.0% |
| JailbreakBench attack success | 0.0% (0/100) | 1.0% (1/100) |
| JailbreakBench refusal rate | 93.0% | 93.0% |
The public benchmark scores were similar in these runs. In MBPP, 18 generation 10 answers and 23 starting-model answers never closed their code block. The JailbreakBench judge agreed with human labels 91.3% of the time on its 300-row check, with a 5.5% false-safe rate, so a few unsafe answers may have been scored safe for both models.
Before the receipt: generations 1 to 3
The first three generations ran before strict scoring and the current receipt. Each changed the design. Read these as within-run observations under the rules of the time.
| Generation | Outcome | What decided it |
|---|---|---|
| 1 | Superseded | Repair rose 79.4% → 91.7%, while leave-alone fell 70.8% → 45.8% under the whole-file prompt |
| 2 | Superseded | Pair success rose 52.9% → 66.3% on that early evaluation |
| 3 | Head under old scoring; superseded | Pair success was 69.62% vs 45.95% for the starting model under old scoring. Strict re-scoring put it at 22.45%, vs 30.15% for the starting model. |
The early results explain why generation 10 needed both a strict definition of leaving a file alone and a receipt that kept the original evaluation rule attached to each decision.
Failures, and what each one taught us
Most of what we learned came from the loop refusing us. These are the failures that changed the design, in the order we hit them.
1. Our early gain was a scoring loophole
Generation 3's soup scored 69.62% pair success. Old scoring counted a refused or failed edit on a correct twin as "leaving it alone". From generation 4, strict scoring credits only a turn with no edit attempt. Re-scored strictly, generation 3 fell to 22.45%, below the starting model at 30.15%. The fixes we had made since did not cause a regression; strict scoring exposed that the earlier gain was mostly credit for edits that failed.
2. The environment never let the model look
After generation 5 we read every stored episode. Across 216 pair episodes per side per model, no model ever took a read-only action. Every model edited a broken file 25 to 37 pp more often than its correct twin, and training moved only the overall bias: generation 4 edited nearly everything, generation 5 submitted nearly everything. The gap the headline needs never grew.
| Model, 12 October episode review | Gap in first-action edits, broken minus correct |
|---|---|
| Gemma 4 E4B starting model | 34 pp |
| Generation 3 soup | 25 pp |
| Generation 4 soup | 35 pp |
| Generation 5, seed 1 | 37 pp |
| Generation 5 soup | 32 pp |
Each model was evaluated on 216 pair episodes per side. No read-only action was recorded. These are action gaps from the diagnostic review, separate from the pair scores.
The cause was ours. The action parser accepted scan, plan, inspect and read, but the environment sent every turn down the edit path and answered a read with "No edit found". The task had silently become "classify this file by eye in one shot". We added a real read-only scan that never costs a correct twin its credit. The infrastructure did its job here: strict scoring found the loophole and the receipt refused every candidate that was not better. What needed redesigning was the task.
3. Most GRPO groups taught nothing
In generation 4, 52–57% of GRPO groups had no reward spread, and so no gradient. On correct twins it was 83–85%, because the model almost never left a correct file alone. A reward tweak cannot fix that: a group whose rollouts all edit scores the same at any setting. What helps is a group that contains at least one keep. Banding twins by difficulty in generation 10 did not reduce flat groups overall (59%, 56%, 55%). Learning did change which way they went flat, from all-edit to all-keep.
4. Our gates blocked real gains
Generations 8 and 9 both raised blind pair success and neither was promoted. A model-assisted review of the promotion code found two design faults.
- The noise floor had the wrong scope. It was the largest drift, across every metric the verdict read, when the base model was scored twice. A 5-case stratum moves in 1.25 pp steps at 16 episodes, so one small stratum set a 10.00 pp bar for the headline.
- The every-seed rule was too strict. Every seed had to clear that full floor too. With three seeds, one weak seed blocked a soup that had passed its own family gate.
We fixed both before generation 10 ran: the floor now comes from the headline alone, and seeds are recorded rather than gated. Generation 9 stays blocked under the rule it declared. This is the change a skeptic should look at hardest, because we made it after seeing two blocked generations. Our defence is that it was declared before generation 10 trained, and that the separate November confirmation uses its own rule.
After the fact, labelled as such. Re-read under generation 10's rule, generation 9 would have been promoted. Its soup gained +18.4 pp blind, above even the old 10.00 pp floor, and a headline-only floor can only be lower. It passed the family gate, and the only thing that stopped it was seed 1, which the new rule records instead of gating. So the rule change does not single out generation 10: it would have let through an earlier soup that showed the same gain. This re-reading changes no verdict. Generation 9 stays blocked, and generation 10 trained from generation 4's soup.
5. Smaller bugs the loop caught
- Scrambled position tables. From generation 5, some training ranks ran with scrambled position tables. Found and fixed on 14 October; a replica check now confirms all ranks are bit-for-bit identical at the start and end of training.
- A sealed-check leak. In the generation 8 supply, seven training tasks targeted checks that fixes for four reserved tasks also cleared. Generation 7 used the same supply-building code. We changed how the supply holds out checks.
- Measurement noise. The same weights scored twice moved up to 5 pp on some measures. That is why every number here comes from one declared scoring, and why the floor exists.
6. Five attempts to evaluate one model
Scoring generation 10 on public benchmarks took five attempts over six days. Each failure would have produced a plausible-looking wrong number:
- Judges routed through a paid API returned "insufficient credits" on every item.
- No tool-call parser was configured, so the server refused every tool call and BFCL scored 0% except on the tests a model passes by never calling a tool.
- The MBPP task appended another model family’s
<think></think>marker, and Gemma repeated it until the token limit: 0.0%. - HumanEval ran as raw completion on an instruct model, which returned a stub: 0.6%.
- The JailbreakBench judge had a hard-coded 5-token limit, then later timed out downloading its weights.
- A GPU that looked idle was taken by another job minutes before our run started on it.
The fix was structural: castworks now serves, readies and stops every model an evaluation needs, and asks each one the way it expects. We reran everything through it.
7. What we got from seeds and soup
The simple average of the three checkpoints scored roughly in line with the seed mean in these runs. In generation 3, the soup scored 69.62% against a seed mean of 68.6% under the old scorer. In generation 4 it was 36.81% against 36.42% on that run’s evaluation. For generation 10 it was 59.78% against a mean of 59.16%, a difference of about 0.62 points.
These are within-generation comparisons. The three generation 10 seeds were almost 20 points apart. We keep the seeds to see run-to-run variance, and we keep the soup to commit to one candidate before scoring. We stopped trying soup variants on the sealed arena, because each variant is one more look at the test.
What we would tell another team
If you are building an RL loop of your own, these are the lessons we would pass on. Each one cost us at least a generation.
- Score the decision, not the action. Pair every "fix this" case with a correct twin. Otherwise you will train, and reward, a model that edits everything.
- Read episodes before you trust a metric. Our two worst problems, a scoring loophole and an environment with no way to look, were invisible in every aggregate score.
- Count your flat groups. A GRPO group without reward spread supplies no within-group learning signal. Fix the supply so groups contain both outcomes; reward weights cannot do it.
- Match each gate to its claim. A noise floor computed over every metric blocked a headline it said nothing about. Each check should test exactly what it guards.
- Seeds help measure variance. Committing to an average before scoring also takes away the option of picking the best seed after the fact.
- Pre-register the confirmation. Build it fresh, have reviewers who did not write the cases check them for contamination, and record the analysis before scoring.
- Own your evaluation harness. Five of our evaluation failures came from serving and judging setups that silently produced plausible wrong numbers.
How the work was done
Two people built the loop and ran it. Every decision has an owner.
| Who | Role |
|---|---|
| Ayush Naik | Ran the training machine; decided the plan, approved every rule and exclusion before it applied |
| George Pu | Set the release bar; signs every release, and decided generation 10 stays a research result |
Three working rules mattered more than any single fix:
- Declare before you run. Each generation's success criterion, gates and tolerances were written down before training began.
- Review across model families. A different model family reviews designs, rule changes and pre-registrations. Two of the most important corrections here, the floor's scope and the any-flag contamination rule, came from those reviews.
- Record the failures as carefully as the wins. Blocked generations get the same receipt, charts and write-up as the promoted one.
Timeline
| Date (2026) | Event |
|---|---|
| 6 Nov | Last public-benchmark evaluations finished; evaluation record complete |
| 4 Nov | Decision: generation 10 is not released; it stays a research result |
| 1 Nov | Separate confirmation preregistered, recorded, scored and passed |
| 18 Oct | Generation 10 promoted, the loop's first promotion under the current receipt |
| 17 Oct | Model-assisted review traces the blocked generations to the floor's scope and the every-seed rule |
| 16–17 Oct | Generation 9 repeats generation 8's blind gain; blocked by one seed |
| 14 Oct | Scrambled position tables found and fixed |
| 12 Oct | Episode analysis finds the model could never look before editing; real scan added |
| 10 Oct | Generation 4 under strict scoring; generation 3's gain shown to be a loophole |
| 7 Oct | Generation 3: first seed soup |
| 4 Oct | Original design analysis |
Related work
- Reinforcement learning with verifiable rewards. We train with GRPO, introduced in DeepSeekMath, in the tradition of verifier-based RL scaled by DeepSeek-R1 and Tülu 3. Our contribution is not the optimiser. It is the promotion discipline around it.
- Executable environments. SWE-Gym, R2E-Gym and SWE-smith build training environments whose reward is a test that runs. Our IaC environment is the same idea, with OpenTofu and Checkov as the test, plus correct twins so that doing nothing is sometimes the right answer.
- Weight averaging. Model soups showed that averaging fine-tuned weights can improve accuracy. WARP merges RL policies with moving-average anchors and spherical interpolation over long runs. In our three short runs per generation, the combined candidate scored close to the seed mean.
- Run-to-run variance. ScaleRL estimates variance from three independent runs and uses it as the error margin. Our seeds play the same role, and our noise floor applies the same idea to the evaluation itself.
- Pre-registration. It is routine in clinical research and increasingly common in psychology. Our confirmation borrows the pattern of declaring, recording, running once and verifying.
What we cannot claim yet
Scope
- One narrow domain. Every gain here is on IaC fix-or-keep decisions. Nothing yet shows the loop works on a second domain.
- One base model, one size. Everything ran on Gemma 4 E4B. Google reports 4.5 billion effective parameters and 8 billion including embeddings. We use 4B-class as shorthand. Pinned Google model card
Statistics
- Limited precision. The confirmation used 14 families per side, the minimum under the rule. The result supports a gain, with substantial uncertainty about its size.
- The biggest gain is unconfirmed. Leave-alone rose most on the sealed arena, and the confirmation arena was too thin to test it.
- The headline is a product of rates. Pair success multiplies a fix rate by a keep rate. The joint rate, one policy getting both sides right, is recorded but not yet gated.
- Tolerances are not calibrated bounds. Red-line tolerances come from the range of three seeds. That made verify-fix's tolerance a wide 17.36 pp, and scan-track pairs held by only 0.44 pp. Generation 11 must declare its allowances in advance.
- Transfer evidence is weak. The held-out split is small and drawn after banding. An untouched, power-sized test reserve is designed but not built.
- The sealed arena is worn. Four generations were judged on it while the rule changed. A freshly sealed population is not built yet.
Independence
- Operator-trusted, not independent. We ran the confirmation on our own hardware. The plan was recorded before the result, but nobody outside our team has rerun it.
- Model-assisted labelling. Contamination labels came from three model families under a rule we approved, not from human security experts reviewing each case.
- "No person in the loop" has limits. No person decides inside a generation. People choose the rules between generations, approve exclusions and run the hardware.
Open questions
- Seed 3's KL spike to 7.85 at step 26 is not investigated.
- Why the blind gain appears in some seeds and not others (47.40 against 67.27 in generation 10) is not understood.
What would change our conclusions
- Generation 10 fails a confirmation on the freshly sealed population now being built.
- The observed joint rate, once gated, disagrees with the product-of-rates headline.
- An outside team re-runs the recorded registration and gets a different verdict.
- Under calibrated tolerances, generation 10's verify-fix loss turns out larger than 10 pp.
If any of these happens, we will say so in a correction to this article, not only in the next one.
What runs next
Generation 10 was the latest generation in the records reviewed through 18 November. These were the next experiments we planned.
- Generations 11 to 13. Generation 11 is an anchor run; 12 and 13 follow. Generation 11 must fix the verify-fix allowance and the scan-pairs treatment before it trains.
- A new sealed population. The overlap system still needs a held-out check before we use it to build the fresh reserve.
- Instruction following. The first pilot outside IaC, with IFBench as the transfer test and IFEval as a red line only.
- Code and tool use. Function-level tasks and tool use were next areas to test. Repository repair still required environment validation.
- Base model. We are staying on Gemma 4 for now.
Our expectation, stated plainly: a 4B model that is excellent in a few domains a program can verify is within reach on eight H200s. Beating frontier models across the board from post-training alone is not. We plan to write about later generations, including the blocked ones.
Why a small lab should work this way
Frontier labs win on compute. A small lab cannot. What a small lab can own is its verification stack: the environments, the sealed tests, the rules and the receipts. None of it depends on cluster size, and all of it decides whether the compute you do spend turns into a model you can trust.
We think a small team’s best use of that compute is to make narrow claims it can keep testing. The next articles in this series will show whether that bet pays.
Questions we expect
Is this recursive self-improvement? No. The loop trains and promotes a model under rules people write. The model does not write its own training code, data rules or gates.
Why not release generation 10? The gain we can support is on one narrow task. We decided on 4 November that the result would stay in research.
Why a 4B-class model? Iteration speed. Generation 10 went from supply to receipt in 11 hours and 52 minutes, three seeds included. At this size we can afford to run a generation, let it fail, and learn from the failure.
Why Gemma 4 E4B? Open weights, a permissive licence, 85.2% on IFEval out of the box, and small enough for three seeds per generation on four GPUs. We looked at alternatives and are staying on Gemma 4 for now.
Why publish the failures? Because they carry most of the information. The loophole in generation 3, the missing scan, and the gates that blocked real gains are the lessons another team can use. A release post that showed only generation 10 would hide why its number can be trusted.
Can I reproduce this? The article gives the rule, method and aggregate scores. A rerun requires the private evaluation cases and checkpoints.
Appendix
Records
| Internal record | Identifier |
|---|---|
| October promotion receipt | 8b70b702, 18 October 2026 |
| November confirmation result | d9d96695, preregistration revision 2 |
How to check our work
The confirmation record was checked against our registration. The identifiers above refer to internal records, and the public account gives the methods and aggregate findings. An independent rerun requires access to the full records, cases and weights.
If you run a lab or a research group and want to discuss the protocol or a rerun, contact SimpleDirect. We would rather be corrected than cited.
Disclosures
The authors build commercial AI products at SimpleDirect®. Generation 10 is not a product and is not offered for sale. AI coding agents wrote most of the code and did much of the review, as described in How the work was done. The authors approved every rule, and are responsible for every claim here.
Changelog
| Version | Date | Change |
|---|---|---|
| 1.0 | 24 Nov 2026 | First publication, covering generations 1 to 10 |
Generation 10 configuration
| Setting | Value |
|---|---|
| Base model | Gemma 4 E4B (instruction-tuned) |
| Initialisation | Generation 4's soup (the incumbent) |
| Method | Multi-turn GRPO with LoRA adapters |
| Rollouts per group (G) | 8 |
| Turns per episode | up to 4 |
| Seeds (S) | 3, same data, one run each |
| RL steps per seed | 30 |
| Admitted supply | 54 fix-or-keep pairs, including 26 blind |
| Training / held-out transfer | 66 / 42 rows |
| Supply to receipt | 11 hours 52 minutes |
| Training and evaluation | 31.46 H200 GPU-hours; November confirmation separate |
| GPUs | 4, data-parallel; ranks checked bit-for-bit identical after training |
| Merge | Uniform soup of the three seeds' merged weights |
| Sealed arena | 96 cases, 16 episodes per case |
| Family bootstrap | 14 families, 10,000 resamples, equal family weight |
| Promotion rule | Floor from the headline only; seeds recorded, not gated |
Data provenance
The starting model was the instruction-tuned Gemma 4 E4B release, labelled Apache-2.0 by Google. The infrastructure tasks used Checkov project test fixtures, also under Apache-2.0. HumanEval and MBPP were evaluation benchmarks. Pinned Gemma model card · Checkov · OpenTofu · HumanEval · MBPP
Glossary
| Term | Meaning |
|---|---|
| Pair success | Per pair, the fix rate on the broken file times the keep rate on its correct twin, averaged over pairs |
| Blind / scan track | Deciding from the file alone, or after a read-only scan |
| Red line | A protected measure with a tolerance set before the run |
| Noise floor | How far the base model's score moves when it is scored twice |
| Family interval | Bootstrap 95% interval over check families, resampling whole pairs |
| Soup | The element-wise mean of the three seeds' merged weights |
| Incumbent / head | The comparison model a candidate has to beat. Promotion can replace it. |
| Sealed arena | A reserved evaluation set used to make promotion decisions; see the October reuse and overlap caveats |
| Receipt | The hash-chained record of every check behind a promotion decision |
| Solve band | Tasks the current model sometimes solves and sometimes fails |
| Flat group | A GRPO group whose rollouts all score the same, so it carries no gradient |
Citation
Pu, George and Ayush Naik. “The Loop That Said No.” SimpleDirect®, November 2026.
@article{pu-naik-2026-castworks-loop,
author = {George Pu and Ayush Naik},
title = {The Loop That Said No},
journal = {SimpleDirect},
year = {2026},
month = nov,
url = {https://www.getsimpledirect.com/blog/the-loop-that-said-no}
}
Authors are listed in no particular order.
