For everyone — Follow the recipe or improvise?

Think of two ways of cooking. The first follows a precise recipe: with the same ingredients, you always get the same dish, reproducible and explainable. The second relies on the intuition of a chef who has tasted thousands of recipes: it improvises, it adapts to what's in the cupboard, but it is never sure of the result. Computer systems know both profiles: rules written by hand, reliable and predictable; and statistical models, trained on examples, able to suggest choices where no one has written a rule — like Bayesian networks or large language models.

The real question is not choosing between the two, but making them work together: the recipe guarantees coherence, intuition brings the unexpected. At stake: autonomous cars, navigation assistants, a drone pilot in unknown terrain, and even the simulators that model living systems.

This is exactly the idea of Yokul, the non-profit this site showcases: modeling virtual worlds where actors perceive, decide, learn and pass information to one another. These worlds need both cooks: clear rules so the simulation is understandable and reproducible, and statistical AI bricks for more unpredictable, more credible behavior. The architecture, designed like legos, makes it possible to plug in one or the other without rewriting everything. The article that follows explains this crossing, and what a language model brings as a cognitive layer.

The full text

The Yokul project was born from a question of cognition: how does an actor perceive, decide, learn and transmit? Contemporary AI answers a different, statistical question: how do you approximate a function from examples? The two approaches do not overlap; they compose.

Why cross the two?

A simulated world needs understandable, reproducible decisions: rules, behavior graphs, Actor-based systems. It also needs useful unpredictability: that is the role of Bayesian networks, already presented in detail elsewhere, then of learned models.

Each profile has, symmetrically, its blind spot. Pure rules don't know how to arbitrate under uncertainty; a statistical model alone guarantees nothing — neither the coherence of the world, nor the explainability of a choice. Side by side, each profile covers the other's blindness: the rule remains the foundation, and what statistical AI suggests is treated as a material — never a law of the world whose deciphering could be lost.

The five facets, AI side

The project describes an actor's cognition in five facets — perception, decision, learning, memory, transmission. For each of them, modern AI has something to contribute:

  • Perception — an actor first observes a partial, noisy world. A Bayesian network serves to believe reasonably in it: from incomplete clues, it updates a belief about the state of the world (is the prey nearby? is the season moving forward?).
  • Decision — the behavior graph drives the transitions; Bayesian beliefs inform it (conditioning a branch on a level of belief), and statistical learning can adjust the fine arbitrations.
  • Learning — adjusting beliefs and parameters against lived experience in simulation: that is the heart of the facet, and the natural ground of learned models.
  • Memory — a trace of events over the short and long term. Techniques from LLMs (context, retrieval-augmented generation) provide ideas here for storing, summarizing and recalling.
  • Transmission — dialogue between actors, narration of the world, high-level planning. That is where the LLM brings the most visible contribution.

An LLM as a cognitive component

A large language model can take on facet 05 of the project — the transmission of information: dialogue between entities, narration of the world, high-level planning translated into engine actions (for example with the open models of Mistral AI). It replaces neither the physics, nor the genetics, nor the rules: it slots into them as a semantic layer.

The key point is not to entrust it with what it does poorly. The LLM is good at saying and organizing; it is bad at guaranteeing. The in-house rules therefore remain in charge of correctness (physics, resources, limits), and the model is isolated behind an interface, tested by contracts, with validation of its outputs — the details of the three practical rules are in the LLM article. Properly contained, an output becomes a verified intention before acting; otherwise, a hallucination in the middle of a simulation can write an impossible state into it.

Toward hybrid worlds

The Yokul architecture, designed to make modules interchangeable — like legos — is precisely what makes this hybrid possible: replacing a rule-based planner with an LLM agent, or watching a neural network drive a behavior graph, without rewriting the foundation. This modularity itself was put into practice with original methods (see Vibe coding and the rework of yokul.org).

Open avenue: a single world can host purely rule-based actors and hybrid ones — same initial conditions, different profiles — and we observe what changes. It is also a prudent trial: the statistical share progresses facet by facet, and can always be removed if it costs more than it brings. It is, in the end, the definition of a component: something you can test, judge, and unplug.

See also