Most people who get good at something build up a pile of frameworks without ever noticing there's a layer above them.
Most people who get good at something build up a pile of frameworks without noticing there's a layer above them. I did it for years before I saw it. This is about that layer, what it is, when you've earned it, and why it's the thing that makes AI actually work for you instead of producing confident garbage.
Start with the stack, because the whole idea only makes sense as a progression.
The first layer is doing the task. You solve the problem in front of you. Every time it comes up, you figure it out again. That's where everyone starts and where most people stay.
The second layer is the framework. At some point you notice you're solving the same kind of problem over and over, so you write down how you do it. Now the process lives outside your head. Someone else can follow it. Your AI can follow it. You stopped reinventing the steps every time. This is the layer I've spent years on, and it's where most of my work lives.
The third layer is the one almost nobody talks about, because you can't see it until you've built enough frameworks to notice the pattern sitting on top of them. It's the doctrine.
A framework captures how a task gets done. A doctrine captures how a recurring decision gets made, so it stops needing to be made.
Here's the difference in one breath. A framework says "here's the process." A doctrine says "here's the call you'll keep having to make, and here's the answer, already decided."
I'll give you real ones from my own work. "Place by operative move, not topic." When I file a new framework, I used to decide its category case by case, and the decision was ambiguous every time. So once I'd made that call enough times to know how it always went, I froze it into a rule. Now the decision is pre-made. I don't re-litigate where something files. The doctrine files it.
Another: "ground-truth wins." When two parts of my system disagree, I used to reason out which one to trust each time. Then I noticed the answer was always the same, believe whatever can actually be checked against reality, not whatever looks most official. So I stopped deciding it and wrote it down. Now the conflict resolves itself.
A doctrine is a decision you've promoted from "I figure this out each time" to "this is just how it's done now."
You do not write doctrines up front. That's the mistake people make when they hear this idea, they go make a rulebook for a thing they've done twice. A doctrine written too early is a guess wearing a uniform.
You write a doctrine when one of two things happens.
The first is repetition. You catch yourself making the same decision a third time, the same way. That third time is the signal. The decision has stopped being a judgment call and become a pattern, and a pattern is a thing you can freeze.
The second is conflict. Two parts of your work keep disagreeing and you keep having to play referee. When you find yourself adjudicating the same dispute more than once, the tiebreaker wants to be written down. That's how "ground-truth wins" got born, not from planning, from being tired of settling the same argument.
Either way, the doctrine comes after the experience, never before it. You earn it by having made the call enough times to know how it goes.
Here's the discipline, and it matters more than the rest: not every decision should become a doctrine. Some decisions should stay case by case forever, and freezing those into rules makes you rigid and wrong.
The test is simple. Write a doctrine only when the decision should genuinely be the same every time, and when the cost of re-deciding it is higher than the cost of occasionally being wrong by following the rule.
"Ground-truth wins" passes that test easily. It's almost always right, and re-arguing it every single time is pure waste. Freeze it.
"How much do I charge this client" fails the test. The right answer genuinely varies, and a doctrine that fixed your price would cost you more than the thinking it saved. Leave it case by case.
So the skill isn't making doctrines. It's knowing which decisions have earned one and which ones you'd be caging by mistake.
This is the part that turns a nice idea into the thing you actually needed.
The reason AI produces generic or subtly wrong work for you is that it's guessing at decisions you never wrote down. Every place your process has an unstated judgment call, the model fills the gap with the average of everything it's ever seen, which is exactly what you don't want. It's making your decisions for you, badly, because you never made them explicit.
A doctrine removes the guess. When you hand the model a rule instead of a decision, it stops improvising the part that matters. That's why a cheaper, weaker model can do work you'd normally think requires a smart one, you took the judgment out of its hands and handed it a decision that was already made.
I enforce my most important doctrines in code, so the model literally cannot violate them. The rule that files frameworks by their operative move is checked by a validator. The rule against certain formatting is stripped automatically. The model doesn't get to decide those things, because I already decided them, once, and froze them.
So if your AI keeps producing work that's almost right but off in a way you can't quite name, the problem usually isn't the model. It's that your best decisions are still trapped in your head, getting guessed at. Write them down. Not as a process, as a verdict. That's the third layer.
Do the task. That's layer one.
Notice you keep doing the same kind of task, and write down how. That's the framework, layer two.
Notice you keep making the same decision inside those tasks, and write down the answer so it stops needing to be made. That's the doctrine, layer three.
Most people never get to three, because you can't see it until you've built enough of layer two to notice the decisions repeating on top. But once you see it, you can't unsee it, and it's the layer that finally lets you hand your work to someone else, or something else, and trust what comes back.
Building the second layer is the first step. Learning to recognize the third is what makes it compound into something you can hand off, to people or to AI.
Explore How to Framework