What the AI Should Guess and What It Should Look Up
On this page
A model is good when the answer is unknown. A deterministic system is good when the rules are known. How to tell which question belongs to which.
Take two eight-digit numbers and ask a language model to multiply them. It answers at once, in a confident tone, and the digits look right. A calculator would take the same two numbers and follow fixed rules to one answer, every time, with no tone at all.
Post 1 argued that generation is cheap and proof is scarce. This one is about how to divide the work: what you let a model guess, and what you make the system look up.
Two Kinds of Questions
Some questions have no known answer yet. What might solve this? What other designs exist? What could explain this error? What should we try first? A model is excellent here, because exploring many possibilities cheaply is what it does.
Other questions have rules that already exist, and the rules decide the answer. A system should answer those, because it can do it the same way every time.
| Ask the model | Ask the system |
|---|---|
| What might solve this? What alternatives exist? What could explain this? Which plan might work? | Is this syntactically valid? Is it type-safe? Is the operation permitted? Does the invariant hold? Did the test pass? Did the system reach the expected state? |
The model should handle uncertainty. The system should handle certainty.
Where Each One Belongs
Software work is many different activities, and they do not all suit the same tool. Here they are side by side. “Supporting” means the model helps but does not carry the result.
Engineering activities, and what each one needs
| Activity | Probabilistic AI | Deterministic infrastructure |
|---|---|---|
| Generate an implementation | Strong fit | Supports |
| Generate alternatives | Strong fit | Supports |
| Explain code | Strong fit | Supports |
| Brainstorm architecture | Strong fit | Supports |
| Infer intent | Strong fit | Supports |
| Parse source code | Not needed | Required |
| Type checking | No | Required |
| Compilation | No | Required |
| Dependency resolution | No | Required |
| Policy enforcement | No | Required |
| Security validation | Partly | Required |
| Formal verification | Partly | Required |
| Test execution | No | Required |
| State management | No | Required |
| Reproducible execution | No | Required |
| Auditability | No | Required |
Read the top half and the bottom half separately. The top half is exploration, where a wrong guess costs little. The bottom half is truth and guarantees, where a wrong guess is the whole problem.
Deterministic Does Not Mean Old-Fashioned
It is easy to hear “deterministic engineering” and picture conventional software written the slow way. That is not what this is. It is a design principle: a component whose behaviour can be specified, constrained, inspected, reproduced or verified, with stronger guarantees than free generation gives you.
Many familiar tools fit that description:
- Compilers turn source into another form by explicit language rules.
- Type systems reject programs that break their constraints.
- Static analyzers derive facts from a program’s structure.
- Databases give defined meaning to operations on data.
- Constraint solvers search within explicit mathematical limits.
- Policy engines decide whether an action satisfies rules written in advance.
- Test systems run defined checks of behaviour.
- State machines limit which transitions can happen.
- Graph engines hold relationships explicitly.
- Sandboxed runtimes limit what a program can actually do.
- Formal verification systems try to establish properties against a formal specification.
None of them competes with AI. They are building blocks that AI can use.
Try it. Pick a task you gave an assistant recently. List each question inside it, such as “does this compile?” or “which function calls this?”. Mark every one that a tool on your machine could answer exactly. Those marks are the questions the model should not be guessing.
Look It Up Instead of Guessing
Go back to the multiplication. You can connect the model to a calculator, and then it stops doing arithmetic from learned patterns and starts handing the arithmetic to something that does it by rule.
The model did not become a better mathematician. Its effective capability went up, because it now has a reliable primitive to call. That word means a basic building block that you can depend on without thinking about how it works.
The same move applies far beyond arithmetic: search, code analysis, databases, simulation, theorem proving, optimization, planning, running code and verification. A person works this way too. Nobody does everything in their head; we use mathematics, instruments, databases, compilers and simulations.
One way to a smarter system is not a bigger model. It is better tools the model can call.
The Parts of a Reasoning System
A useful picture is that the language model is the general reasoning interface, and the deterministic engines are specialised organs it can rely on. Each ability on the left has a computational counterpart on the right.
Abilities of a reasoning system and their deterministic counterparts
| Ability | Deterministic counterpart |
|---|---|
| Reason | Search, solver |
| Remember structure | Database, knowledge graph |
| Understand code | Compiler, syntax tree, graph |
| Decide within rules | Policy engine |
| Calculate | Numerical engine |
| Plan | Planner, constraint solver |
| Validate | Verification engine |
| Execute | Runtime |
| Observe | Telemetry, instrumentation |
| Recover | State machine, rollback |
| Experiment | Simulator |
| Learn from outcomes | Evaluation infrastructure |
Automation Is Not the Same as Engineering
Two questions sound alike and lead to different systems.
| Automation asks | Engineering asks |
|---|---|
| Can the machine do this task without me? It optimises for removing human effort. | Can the machine reason about this task while working inside a system that guarantees the properties that matter? It optimises for capability, reliability and controlled autonomy. |
This matters more as AI moves from answering to acting, which is the subject of post 4.
Where This Idea Stops
Every technique has a limit, and this one has several.
- Rules must exist. If nobody can write down what “good” means, there is nothing deterministic to check against. A recommendation, a tone or a design taste has no compiler.
- A specification can be wrong. A system that checks perfectly against the wrong rule gives you a perfect wrong answer. This is sometimes called the oracle problem: someone still has to decide what correct means.
- Tests prove only what they test. Forty-eight passing tests say little about the forty-ninth case nobody wrote.
- A model used as a judge is not deterministic. If an AI grades another AI’s work, you still have a probabilistic check. It may be useful, but it is a different kind of evidence.
- Checking costs time and money. Verifying everything is not free, so the strength of the check should match the cost of a mistake.
Going deeper. Some checks give a stronger kind of certainty than a test. A type checker rules out a whole class of mistakes for every input. A test only samples inputs. Neither tells you whether the program does what its users wanted.
Which Side Does This Question Belong To?
When you give work to a model, run it through four questions first.
- Is there a written rule? If a rule exists, a system can apply it. Let it.
- Would a wrong answer be expensive? The more it costs, the stronger the check you need.
- Can the answer be checked by a tool? If yes, ask the tool and show the model its output.
- Is the check itself deterministic? If an AI grades the work, treat that grade as a hint, not proof.
Let the model explore. Let the system answer what has an answer.