What FACET Should Not Make Deterministic
I do not want deterministic language models.
I want deterministic authority around them.
That distinction is easy to lose when an AI system starts failing unpredictably. The immediate response is often to lower temperature, pin a seed, add retries, and demand identical text. But identical wording is rarely the property the product actually needs. A support answer may vary and remain correct. A design assistant may produce several useful alternatives. A classifier may improve after a model upgrade.
What must not drift is the contract that decides what the model sees, which tools it can reach, what state it may change, and what evidence survives afterward.
FACET exists to freeze that boundary. It should not freeze the intelligence inside it.
The boundary map
I use a simple test: would variation here change meaning, authority, or irreversible state? If yes, make the decision deterministic or stop before execution. If no, variation may be a feature—provided the result still passes an explicit acceptance boundary.
| Layer | Desired property | Why |
|---|---|---|
| Source resolution and imports | Deterministic | The same contract must not compile into different architecture |
| Types and dependency order | Deterministic | Invalid or cyclic state must fail the same way |
| Context allocation | Deterministic | Critical instructions must not disappear by chance |
| Tool exposure and authorization | Deterministic | Authority cannot depend on sampling |
| Effect commit and state transition | Deterministic | The same operation must not produce duplicate or ambiguous consequences |
| Model wording and candidate generation | Variable within bounds | Diversity can improve exploration, explanation, and design |
| External observations | Explicitly bounded or volatile | The system cannot pretend changing reality is pure |
| Evaluation | Stable contract, potentially statistical evidence | One exact answer is often the wrong success criterion |
This map is the practical meaning of the FACET thesis: deterministic structure around probabilistic generation. It is also the limit of that thesis.
Freeze meaning before bytes
Some variation is only cosmetic. Two JSON objects with different key order may represent the same value. Two answers may explain the same conclusion in different words. Treating every byte difference as a failure creates brittle systems and incentives to overconstrain generation.
FACET's compiler has a different job. It resolves imports, checks types, evaluates dependencies, lays out context, and emits a canonical request artifact. Those phases freeze the meaning of the request boundary before a provider sees it.
That is why canonicalization belongs before inference. It gives the system a stable answer to questions such as:
- Which normalized source was compiled?
- Which runtime inputs were materialized?
- Which policy and host profile were active?
- Which tools were visible?
- Which critical context survived the budget?
The model may still return different sentences. The system no longer has to wonder whether those sentences came from different hidden contracts.
This is the narrower, useful definition behind determinism as a system property. It does not promise identical cognition. It makes the conditions and consequences inspectable.
Keep exploration probabilistic
There are tasks where forcing one path is actively harmful.
A coding agent may need several patch candidates. A research assistant may need competing hypotheses. A naming tool should not emit the same safe phrase forever. Even a planner can benefit from producing alternatives before the runtime chooses what is admissible.
The boundary should therefore separate proposal from commit:
probabilistic proposals
↓
deterministic validation
↓
explicit selection or approval
↓
guarded effect
↓
recorded state transition
Variation is allowed above validation. Authority begins below it.
This prevents a common category error: trying to make the model deterministic because the commit path is unsafe. The correct repair is to harden the commit path. A model can propose five migrations; only a validated, approved artifact against a named revision may execute.
FACET's runtime-input, policy, interface, and provenance machinery belongs at that transition. It does not need to dictate how many candidate ideas the model produced before one entered the contract.
Do not hide volatility behind a deterministic label
FACET's lens classes make another boundary explicit:
purecomputation depends only on declared inputs;boundedcomputation crosses an external boundary under a defined cache and gas contract;volatilecomputation is nondeterministic or has unbounded external effects.
This taxonomy is more honest than calling the whole pipeline deterministic.
A network lookup changes. A clock advances. A queue receives new work. A provider can update a model behind a stable API name. None of these become pure because the surrounding file is canonical JSON.
In Pure Mode, FACET permits hermetic work and already-materialized bounded dependencies; a missing bounded dependency fails instead of silently reaching the network. The Pure Mode cache contract explains that mechanism in detail. The important principle is broader: determinism must not erase dependency identity.
When reality is volatile, the contract should record the observation, version it when possible, and narrow the claim. It should not manufacture certainty.
Evaluate invariants, not prose identity
Exact-string comparison is useful for compiler fixtures, canonical serialization, and provider-adapter mapping. It is usually weak evidence for model quality.
For probabilistic output, I prefer a layered evaluation contract:
- Structural invariants — schema, required fields, allowed tool names, citation shape.
- Semantic invariants — the answer preserves required facts and does not contradict the source.
- Effect invariants — no unauthorized operation can pass the guard.
- Distributional evidence — repeated runs reveal failure rate, variance, and regressions when those metrics are actually measured.
The first and third layers can often be strict. The second needs task-specific evaluators. The fourth requires a real experiment, not a claim inferred from one successful run.
This article does not provide a benchmark, so it makes no claim that one sampling configuration is superior. Numerical reproducibility can also be affected by inference implementation and hardware behavior even under greedy decoding; the engineering response is to measure the property required by the product rather than assume a parameter guarantees it.
Three anti-patterns
1. Deterministic creativity
A team removes variation from an ideation task, then celebrates repeatability. The system is stable because it has stopped exploring. That may be acceptable for a regulated template, but it is a loss for design work.
2. Probabilistic authorization
A model decides whether its own proposed tool call is safe. The policy is written as prose inside the same context that produces the action. This is variation in the wrong place. Authorization must happen at the execution boundary, as described in FACET policy as executable authorization.
3. Canonicalized uncertainty
The system serializes a volatile observation into stable bytes and treats the hash as proof of truth. A digest proves identity, not correctness or freshness. Canonicalization can tell us exactly which claim we used; it cannot validate the world behind that claim.
A better design target
The useful goal is not “same output every time.” It is:
same declared inputs
+ same contract semantics
+ same authority boundary
+ same acceptance rules
= explainable variation with controlled consequences
That target leaves room for intelligence to search while preventing search from becoming authority.
For me, this is where FACET is strongest. It can make source resolution, dependency evaluation, context packing, policy decisions, canonical artifacts, and guarded effects reviewable. It can classify bounded and volatile dependencies instead of hiding them. It can fail when a deterministic promise cannot be upheld.
It should not claim to turn a probabilistic model into a pure function. The FACET specification and its reproducibility documentation explicitly reject that promise: model outputs may vary, creative sampling remains possible, and providers need not produce identical text.
That limit is not a weakness. It is the architecture.
Freeze contracts. Freeze authority. Freeze state transitions. Measure behavior across runs when the outcome matters.
Let the model vary where variation creates value.