$ fssg build --deterministic --validate |

Where Determinism Is the Wrong Goal in AI Engineering

Logs

I argue for deterministic AI systems so often that the argument can be mistaken for a demand to make everything repeat.

That would be a mistake.

I do not want deterministic exploration. I do not want one fixed critique of every design, one permanent decomposition of every problem, or one evaluator pretending that an ambiguous engineering choice has a single mechanical answer. Determinism is valuable when repetition must preserve meaning. It is harmful when variation is the work.

The boundary I care about is simpler: discovery may vary; authority must not drift.

Four jobs that should not share one test policy

Teams often put every AI check under the word “eval.” That hides four different jobs:

Job Desired behavior What must be reproducible
Regression Detect a known capability loss fixture, model/config identity, assertion, verdict
Discovery Find new failures and alternatives seed, search budget, inputs, captured findings
Judgment Compare acceptable trade-offs rubric, evidence shown, reviewers, disagreement
Effect control Decide whether state may change artifact identity, policy, authorization, receipt

A regression test should be boring. If the same pinned system and fixture alternately pass and fail, the signal is weak. Martin Fowler’s warning about non-deterministic regression tests still applies: once engineers learn to ignore red tests, the suite loses its authority.

Discovery has the opposite objective. A red-team probe that never changes its route will keep finding the failures it already knows. Property-based testing and fuzzing deliberately vary inputs because the search space is larger than the examples we wrote by hand. The engineering requirement is not “always generate the same case.” It is “record enough state to reproduce a useful failure.”

Judgment is different again. Two sound reviewers may rank architectural trade-offs differently. Forcing their verdicts into fake unanimity does not create truth. I want the rubric, candidate artifacts, evidence, and disagreement preserved. The deterministic part is the procedure and the record—not the human or model opinion.

Effect control is where tolerance for variation collapses. A changing critique is useful. A changing answer to whether this exact patch may be deployed under this exact policy is not.

Seed the search, freeze the failure

The most useful pattern for variable testing is a two-stage pipeline:

variable probe
  -> candidate failure
  -> minimized fixture
  -> pinned regression

During the probe, I permit variation. I may rotate seeds, models, prompts, perturbations, or task order. But every run receives an identity and a bounded budget. If it finds something important, I capture the seed, model/configuration, input, output, environment, and evaluator path.

Then I remove novelty from the failure. I reduce it to the smallest fixture that still breaks the invariant and promote that fixture into the deterministic regression set.

This prevents two common failures. The first is turning a lucky discovery into a story nobody can replay. The second is freezing the entire exploratory harness after one success and gradually confusing a narrow fixture set with broad assurance.

The same separation appears in testing practice outside AI. Fowler distinguishes randomized edge-case hunting from the regression suite that protects delivery. That distinction matters more with models because both the generator and the evaluator may vary.

I do not use one model to certify itself

A stochastic evaluator can be useful for triage, clustering, critique, and candidate ranking. It is not automatically an authority.

If a model proposes a patch and another model says “looks good,” I have two probabilistic outputs, not a verified change. The second output may reveal a concern I missed. It may help prioritize human review. It may produce a structured claim that a deterministic check can test. But confidence phrasing is not evidence.

For merge or deployment gates, I prefer checks whose failure meaning is stable: compilation, schema validation, test results, scope policy, dependency rules, security scanners with pinned configuration, and explicit approval bound to the exact artifact. IOSM’s practical distinction between exploratory work and artifacts that enter a regression set is useful here. FACET’s deterministic compilation boundary serves a related purpose: variation can exist before the contract, while the contract compiles into an inspectable artifact.

This does not mean deterministic checks are correct. A stable test can encode the wrong requirement. A schema can validate a harmful payload. A policy can be consistently foolish. Determinism makes the rule inspectable and replayable; it does not make the rule wise.

The matrix I use before adding a gate

Before I automate an AI check, I ask five questions:

  1. Is the job discovery or enforcement? If it is discovery, variation may be the source of value. If it is enforcement, ambiguity needs an explicit escalation path.
  2. What does a failure mean? A regression failure should point to a broken invariant. An exploratory failure may only be a candidate worth investigation.
  3. Can the finding become a fixture? If not, I record why: irreducible environment dependence, subjective trade-off, or missing observability.
  4. What is pinned? Model snapshot, prompt or contract hash, tool versions, seed, rubric, dataset revision, and policy revision are separate dependencies.
  5. What may change reality? No variable judge should silently grant permission for a consequential effect.

That produces a practical policy:

checks:
  exploratory:
    variation: allowed
    budget: bounded
    capture: [seed, model, input, output, evaluator]
    authority: none
  regression:
    variation: prohibited
    pin: [fixture, model, config, assertion]
    failure: blocks
  judgment:
    variation: visible
    preserve: [rubric, evidence, disagreement]
    failure: escalate
  effect:
    variation: prohibited
    bind: [artifact, policy, approval, receipt]

The file is not a standard. It is a review aid. Its limitation is equally important: some external systems cannot be fully pinned, some model snapshots disappear, and some quality criteria remain contextual. In those cases I would downgrade the claim, separate the unstable check from the merge gate, and preserve the evidence needed for later review.

Determinism is a boundary property

I still want deterministic AI engineering. I just define it narrowly.

I want repeatable compilation, explicit policy, stable artifact identities, replayable decisions, and controlled side effects. I also want models to propose unfamiliar routes, adversarial probes to explore new states, and reviewers to expose genuine disagreement.

The wrong architecture asks one mechanism to do both jobs. It either makes exploration sterile or lets uncertainty acquire authority.

My rule is not “remove randomness.” It is:

Let the search move. Make the evidence portable. Freeze the failure. Bind the effect.

That is enough structure to learn without turning every experiment into chaos—and enough freedom to discover without pretending that engineering is merely repetition.

Sources

FACET AI CLI Terminal
facet@ai:~$