Determinism Should Bound AI, Not Flatten It
I do not want deterministic AI everywhere. I want deterministic boundaries around the places where variation can cause damage.
That distinction matters. If every model call must return the same text, follow the same line of reasoning, and produce the same candidate, we remove much of what makes generative systems useful. But if authority, side effects, state transitions, and acceptance criteria are left probabilistic, we do not have flexibility. We have an incident generator.
The engineering goal is not to flatten the whole system into one repeatable path. It is to decide where variation is valuable, where it is tolerable, and where it must stop.
Three zones, not one switch
“Make it deterministic” is too coarse to be an architecture decision. I separate an AI workflow into three zones.
| Zone | What belongs there | Required property |
|---|---|---|
| Exploration | candidate generation, hypotheses, search queries, design alternatives | diversity within a budget |
| Decision | ranking, comparison, abstention, policy checks | explicit criteria and observable uncertainty |
| Commitment | writes, payments, deployment, deletion, permission changes | deterministic authorization and idempotent effects |
The first zone may benefit from stochastic sampling. Asking several runs to propose different database decompositions can expose alternatives that greedy decoding would repeatedly miss. A creative drafting tool that always returns the same paragraph is not necessarily reliable; it may simply be narrow.
The second zone should not pretend that one sampled answer is a fact. It needs a stable comparison surface: a rubric, tests, constraints, or a human decision. Variation may enter, but the reason for accepting one candidate must remain inspectable.
The third zone is where probabilistic freedom ends. A model may propose deploy release-42. It must not acquire authority merely because it produced a plausible command. The system must validate the target, policy, approval, current state, and effect identity before anything irreversible happens.
This is the same boundary I use in my broader AI engineering runtime model: the model proposes; the execution system decides what may cross into reality.
Repeatability is not quality
A repeatable wrong answer is still wrong. A stable trace can make a defect easier to reproduce, but it cannot prove that the selected objective, evidence, or policy was correct.
This is where determinism becomes a bad proxy. Teams sometimes optimize exact output equality because it is easy to count. Then harmless changes in wording look like regressions, while two runs that perform the same unsafe action look “consistent.”
The unit of comparison must match the consequence:
- for prose, compare factual claims, required coverage, and forbidden content;
- for code, compare tests, interfaces, security properties, and the resulting diff;
- for tool use, compare authorized effects and terminal state;
- for research, compare source support, uncertainty, and whether counterevidence was considered.
A recent tutorial on agent stochasticity makes the same useful separation across token generation, model output, agent action, and workflow outcome. A seed may help reproduce a decoder path under controlled conditions. It cannot freeze a webpage, an API, a database, a provider backend, or the rest of a changing environment. “Temperature zero” is therefore a narrow decoding choice, not a system-level reliability guarantee.
The consequence is practical: deterministic tests are diagnostic controls, while production behavior often needs distributional evaluation. One replay tells me whether a known path still works. Repeated runs tell me how often paths diverge, where they diverge, and whether those differences change the accepted effect.
Put entropy behind an interface
When variation is useful, I want it declared rather than ambient.
A generation step should expose a contract like this:
{
"purpose": "generate architecture candidates",
"candidate_count": 5,
"variation_budget": "high",
"allowed_tools": ["read_repository", "search_docs"],
"forbidden_effects": ["write_file", "deploy"],
"selection": {
"rubric": "architecture-review-v3",
"minimum_evidence": 2,
"abstain_below": 0.72
}
}
The exact fields are illustrative. The mechanism is the point: variability has a purpose, a budget, a capability boundary, and an exit condition.
That gives us two different identities:
- run identity — this particular sampled attempt, with its model, context, settings, observations, and trace;
- effect identity — the external change the system may eventually authorize.
Five exploratory runs should have five run IDs. If they converge on one approved deployment, the deployment still needs one stable effect identity. Retries must not turn five proposals into five external effects.
This is why I treat canonical contracts and stable hashes as boundaries, not as a demand for identical prose. FACET’s compiler explicitly limits its guarantee to deterministic contract compilation and execution boundaries; it does not promise deterministic model output or correct external APIs. That limitation is not a weakness. It is the honest location of the guarantee. The FACET YAML-to-JSON path exists to stabilize meaning around the model, not to erase the model’s generative behavior.
A decision table for real systems
I use four questions before deciding how much variation a component may keep.
| Question | If the answer is yes | Design response |
|---|---|---|
| Does variation improve discovery or coverage? | Multiple plausible outputs have value | sample several bounded candidates |
| Can two valid outputs lead to materially different effects? | Outcome variance matters | compare against stable policy before commitment |
| Is the action reversible and cheap? | Failure has a contained blast radius | allow supervised exploration with rollback |
| Does the action spend money, change authority, or destroy state? | Error crosses a hard boundary | require deterministic checks, approval, and idempotency |
This produces different architectures for different tasks.
Brainstorming an API shape: preserve diversity. Read-only repository access is enough. Save candidates and rationale; do not force one canonical answer too early.
Classifying a support ticket: some variation may be acceptable, but confidence thresholds and an abstention path must be stable. High-impact classes should route to review.
Editing a codebase: let the model explore patches, but make tests, scope, diff review, and merge authority explicit. The useful invariant is not byte-identical patches; it is that only an acceptable patch can cross the gate.
Issuing a refund: constrain the action path. The model may summarize the case or propose a decision, but amount limits, customer identity, policy version, approval, and idempotency belong to deterministic code.
The agent reliability boundary map helps locate the repair layer when one of these designs fails. If candidates are repetitive, adjust exploration. If selection is unstable, repair the decision surface. If an effect duplicates, repair effect identity and commitment—not the prompt temperature.
What must remain variable
Some uncertainty should survive all the way to the interface.
If sources disagree, the system should not deterministically manufacture certainty. If several designs satisfy the same constraints with different trade-offs, the output should preserve those alternatives. If the evidence is weak, abstention is more truthful than forcing every run into the same confident label.
Deterministic systems can hide uncertainty particularly well: they return the same polished error every time. I would rather have a stable representation of uncertainty than a stable fiction.
That means the contract may require a fixed shape while allowing variable content:
{
"decision": "abstain",
"supported_options": ["A", "B"],
"missing_evidence": ["production traffic profile"],
"next_action": "run load test"
}
The schema is deterministic. The evidence and conclusion remain open to the world.
The boundary is the product
I still believe determinism is a system property. I just do not believe every component should express that property in the same way.
For exploratory generation, reliability means bounded diversity and traceability. For decisions, it means explicit criteria and honest uncertainty. For commitments, it means authorization, idempotency, and a reproducible state transition.
The wrong goal is identical output everywhere. The better goal is controlled freedom inside a system that knows exactly where freedom ends.