$ fssg build --deterministic --validate |

Deterministic AI Systems Are Built Around Runtime, Not Prompts

AI Engineering

A better prompt can improve one answer. It cannot make a system deterministic.

Determinism in AI engineering is not about forcing a language model to behave like a pure function. That is the wrong target. Models are probabilistic engines. The engineering question is how to put that probabilistic engine inside a system that has deterministic boundaries.

Prompts are not boundaries

A prompt can ask for discipline. A runtime can enforce it.

A prompt can say “do not change public APIs.” A contract can fail the run when the public API changes. A prompt can say “run tests.” A runtime can require test output before a patch is accepted. A prompt can say “be careful.” A checkpoint can make carefulness recoverable.

This is why prompt engineering alone plateaus. It improves language. It does not govern execution.

Where determinism actually lives

Determinism lives in the parts around the model:

  • structured inputs, not vague requests;
  • scoped tools, not unlimited authority;
  • contracts, not preferences;
  • validators, not trust;
  • traces, not memory of a conversation;
  • checkpoints, not hope;
  • reproducible artifacts, not screenshots of success.

The model may still produce different candidate solutions. The runtime decides which transitions are legal.

The engineering pattern

The pattern is familiar from the rest of computing.

Databases do not assume clients are perfectly behaved. They enforce transactions. Operating systems do not assume programs are safe. They enforce processes, permissions, and memory boundaries. Compilers do not assume code is correct. They produce artifacts and errors.

AI systems need the same discipline.

From stochastic generation to controlled execution

The useful move is not to eliminate uncertainty. It is to isolate it. Let the model generate options. Let the runtime control state. Let contracts define invariants. Let validators produce evidence. Let rollback make exploration safe.

That is what I mean by deterministic AI systems: not deterministic models, but deterministic engineering surfaces around models.

Related reading

FACET AI CLI Terminal
facet@ai:~$