← All field notes

The Model Grades Its Own Homework

Sorting changes by risk is the right idea. Letting the agent's confidence set the class is the one input that turns every gate behind it into decoration.

Oct 19, 2026 · 7 min read · The agentic operating model, part 2

The Model Grades Its Own Homework
Photo: pedrik · CC BY · source

There is a sentence in the operating model draft I reviewed last month that I have read more times than any other. It sits in the chapter on risk classes: "For R1 and R2 with high confidence, the proposal stands."

I read it in the evening and I knew immediately which change I was thinking about: a new field on a screen. The draft lists that as the example of a low-risk change. In our product that field meant a stored procedure, a new column on an API contract that two other teams read, and a search index mapping. So three teams were involved and on paper it was still R2.

The draft is still being revised, which is the whole point of reviewing it. Three weeks ago I wrote about what the same documents leave out for architects. This time I want to look at a single mechanism inside them, because I think it decides whether the rest works.

The shape is right

The operating model sorts every change into a risk class, R1 to R4. R1 is a label typo: the agent merges it alone. R4 touches the scoring methodology or customer data: a named human signs it, and the agent has to explain the change back before anyone reads the diff. In between, the class decides how far the agent may go without a person. Two independent validators check each change against the written rules.

I like all of this. The classes give you a vocabulary for "how much do we trust this change", which most teams have never had. The problem is one line down, in who assigns the class.

Who sets the class

The draft says the agent proposes its own class. If the class is low and the agent is confident, the proposal stands. In plain words: the agent decides whether a human looks at the agent's work.

The problem is that confidence is an output of the same thing we are trying to gate, and a gate that is fed by its own subject does not gate anything. The tooling document in the same set says, in another chapter, that a model should not be the final authority on its own action. Both sentences cannot be true at once. The drafts were written by careful people, so I read it as two chapters that were not yet aligned with each other and not as a decision somebody made.

Who sets the risk class. The floor comes from the files the diff touches, computed by a script. The agent may raise the class when it sees something the script cannot. It may never lower it.
Who sets the risk class. The floor comes from the files the diff touches, computed by a script. The agent may raise the class when it sees something the script cannot. It may never lower it.

There is an older version of this idea that worked, and it is worth looking at why. Rouan Wilsenach published Ship / Show / Ask on Martin Fowler's site in 2021. Every change gets one of three labels from its author. Ship: merge it, no review. Show: merge it now, open a pull request so people can look afterwards. Ask: wait for feedback. The author chooses, and it works because the author is a person who will sit in the same team next week, answer for the choice in the retro, and carry the name on the commit for as long as the repository exists. So in that model what we really trust is the person.

When the author is an agent, that person is gone. The choice of the class then has to move somewhere else as well.

The R2 fiction

Even with an honest classifier, the examples in the draft do not match what a real platform looks like. On our platform a typical feature touches five or six repositories owned by three teams. "A new screen or field" crosses a stored procedure, a contract and an index, and each of those has somebody on the other side who will be surprised.

So one of two things happens. People classify down to keep moving, and R2 becomes the class that means "I did not want to wait". Or everything that is honestly R3 goes into the heavy path, the one with the specialist and the explain-back. Then the queue I described in The Bottleneck Moved gets one more lane, with the same three people at the front who were the bottleneck before anyone wrote a risk class down. Both outcomes kill the model, and the first one does it without anybody noticing.

A floor computed from the diff

What I proposed in the review is small: a list. Before any model is asked anything, a script reads the diff and computes a floor from that list.

If a changed file is a stored procedure, the class is at least R3. The same goes for a published API contract, a database schema, an event schema or a deployment manifest. The list is short and specific to our stack, and every line on it comes from an incident we have had. The agent may then raise the class, because it can see things a path rule cannot, for example a loop that now runs per customer instead of once. But the agent may never lower the class below the floor.

This is not a new idea. Zalando published a snapshot of their agentic engineering in August, and the part I keep quoting is their approval bot. It grades each pull request low, medium or high on rules "highly specific to our tech stack, deployment manifests, configuration files", written from their own production incidents. Documentation is low. A change that breaks backward compatibility is medium and needs a human to check the business reason. A third of their pull requests merge with no reviewer, and lead time on those is 20 to 40% shorter than the average. The important detail for me is that the class is set by rules and no model takes part in that step.

Even Meta, which runs an LLM reviewer at a scale nobody else has, wraps it in rules. Their RADAR paper describes a funnel: eligibility rules first, then a machine-learned risk score, then the LLM review, then deterministic validation before anything lands. About 60% of diffs get through, and the ones that do are reverted a third as often as the rest. So also there the model works in the middle of the funnel and the floor is made of rules.

The obvious objection is fair: path rules match on file names and know nothing about what the change means. That is true, and it is the reason why I call it a floor and not a classifier. The script decides only the minimum. The model or a person decides anything above it.

Make the change safe, not the label

At this point the risk classes start to work as an architecture roadmap.

The honest way to get more changes into R2 is to make more changes safe, and trunk-based development solved this problem a decade ago without any classifier at all. There you do not ask whether a change deserves a human gate. You make every change small and backward compatible, and the pipeline is the gate. Danilo Sato wrote down the recipe for the compatible part in 2014 as Parallel Change: expand the contract, migrate the consumers, contract the old shape. A paved road that does this for a new field, with a contract test and a schema compatibility check in CI, lets the floor script say R2 and be telling the truth.

Zalando noticed a side effect of their bot, and I think it is the most important part. Engineers started to prepare their pull requests so that they would qualify as low risk: smaller, additive, compatible. Somebody will call that gaming. For me it is the first time a governance rule made people do what trunk-based development had been asking them to do for ten years ;)

The gaming worry still deserves an answer. An agent that learns that schema changes block auto-merge may split one logical change into two diffs. That is fine, because the schema file is still in one of them and the floor still reacts. And if the agent splits a change into two safe, compatible steps, then the paved road works exactly as it should.

Try it on your last twenty

The floor I proposed for our stack is mostly a list of file patterns. Yours will be different, because the patterns come from your own incidents.

Take your last twenty merged pull requests. For each one, write down the class the author gave it, or would have, and the class the files alone would give it. Then count how often the two differ. If I had to guess, a third of your R2s are R3 by the files. I would like to know if I am wrong, so send me the two numbers.

#software-architecture#ai-transformation#artificial-intelligence#engineering-leadership#decision-making
Bartosz Frąckowiak
Bartosz Frąckowiak

Solution architect. I write weekly about software architecture, the humans around it, and the corporate machine they form together.

Discussion

Comments

No comments yet. The floor is yours.

Leave a comment

Your email is required but published only in masked form (j***@example.com). Nothing else is stored.