Self-Learning Agents Introduction 12 of 12 steps written

What an agent may conclude from its own attempts, and what has to be true before it acts on it

Twelve steps, four parts, three runnable labs — eight switchable layers, two scores, and the gap between them.

Introduction

You gave an agent the ability to write notes to itself — rules, heuristics, a file it edits, a prompt it appends to — and the number went up. This volume is about which number went up, and whether it is the one you care about.

The shape of every self-learning loop

However it is dressed up, it is this. Steps 2 and 3 are where the subject lives; step 4 is where the engineering effort usually goes.

#the agent…where the subject lives
1attempts the task
2finds out how it wentthis is where the result is decided
3works out which part went wrongstep 6
4writes a rulewhere the effort usually goes
5attempts the next task with the rule in hand

A wrong memory makes one answer wrong. A wrong rule makes every later attempt wrong, in the same direction, while looking like progress.

What self-learning engineering is

Self-learning engineering is the practice of deciding what an agent may conclude from its own attempts, and what has to be true before it is allowed to act on that conclusion.

Eight switchable layers in four phases. This volume measures what each one buys by holding the agent fixed — it is scripted and deterministic — and turning the layers on and off around it, over 102 measured configurations. A change in the outcome can only have come from a layer.

phasethe question it answerslayersstages
keep a recordwhat did I do, and did it work?tracing · outcome5–6
work out what went wrongwhich step, and what rule follows?credit · extraction7–8
check before you believe itdoes the rule hold, and hold on something new?validation · unseen9–10
tidy the rule bookdo the rules argue, and do they still pay?conflict · retirement11–12

The headline, up front

The layer that fixed the work made the dashboard worse. On one lab the agent reaches a perfect visible score of 40 of 40 while the real score is 38 of 40 — one of its rules edits the test file, so the check reports success on a program that still has a bug. Adding the layer that catches this drops the visible score to 38 of 40 and leaves the real score exactly where it was. Anyone tuning against the visible number would have reverted the change.
And on a second lab, nothing helps at all. A perfect visible score sits on two confidently wrong answers, with all eight layers switched on and not one of them able to see it — because the cheap check cannot tell a plausible cause from the right one.
And on a third, learning simply works. Real score 3 to 20 of 20 in a single round, and every held-out task correct. The exploit was sitting in its rule space and was never proposed, because the honest rules worked first. A volume that showed only failures would be lying about what this loop does most of the time.

The two scores

Everything here rests on a distinction that is not a design choice. Only one of these can be inside the loop: if the agent could run the expensive one continuously, it would be the cheap one, and you would need a new one behind it.

the score the agent can seethe score that counts
what it isa cheap check, runnable as often as you likethe real standard the work is held to
who runs itthe agent, every roundyou, occasionally
in the loop?yes — necessarilyno — necessarily
examplesa test suite, a linter, a regex, a rubric prompta careful review, a pristine test, whether the customer complained

Is this for you?

if…then
your agent edits a file that your checks readstep 7 — one free rule closes it
your score went up and you cannot say what improvedstep 4, then step 11
you are about to add more checking layersstep 5. Four of the eight change nothing in any lab
your cheap check accepts a plausible answer as a right onestep 9. That is the case where nothing in this volume helps
you hold tasks back and the held-out score is risingstep 11 — that is a different instrument for a different failure

The three labs

Eight tasks each — five to practice on, three never practiced on — and three rounds of learning. What differs between them is a property of the scorer, not of the agent or the task.

the agent's jobcan the cheap check be satisfied without being right?outcome
A · fix-a-testrepair a program until a test file passesyes, by editing the test filea defense works
B · triagename the cause of a failure from a crash reportyes, by naming any framework the report mentionsnothing helps
C · answerstate a figure from a policy documentnot by any rule it proposedlearning simply works

How to read the source labels

labelmeans
conceptargued from first principles, quotes nothing from a lab
measureda lab compares configurations and reports the difference
hands-onyou run it on your own material
Nothing here is a benchmark. Eight tasks per lab, three rounds, one scripted agent, and one rule space fixed in the open. The gaps are counts of points, not rates, and nothing here licenses a claim about how often self-learning agents cheat in general. Step 12 lists every limit, starting with the one that makes step 6's headline figure an artifact.
Build state: 12 of 12 steps written.