---
library: "bootstrap"
slug: "MentalSim"
name: "MentalSim"
ref: "MentalSim#c28c"
hash: "sema:MentalSim#mh:SHA-256:c28c84db7597a2e8cef38b73dc9780b6f8fe28c9d45700c4431b3a7a2ac3b8fc"
type: "Strategy"
layer: "Mind"
version: "0.11.0"
root: "a6a3d1ff0f982ee30430c5b42f3784c8ec901fd68482cfc1bc30899c1e5e48c5"
license: null
url: "https://semahash.org/vocabularies/bootstrap/patterns/MentalSim"
---

# MentalSim

Predictive modeling of system dynamics

Mind · Strategy

## Mechanism

[System](https://semahash.org/vocabularies/bootstrap/patterns/System.md) 2 [Simulation](https://semahash.org/vocabularies/bootstrap/patterns/Simulation.md). [Agent](https://semahash.org/vocabularies/bootstrap/patterns/Agent.md) constructs a causal graph of the target system. It executes a 'Dry Run' of the proposed plan within that graph, inside an isolated [AgentSandbox](https://semahash.org/vocabularies/bootstrap/patterns/AgentSandbox.md), to predict [State](https://semahash.org/vocabularies/bootstrap/patterns/State.md)(t+1) — toggling between fast [HeuristicSnap](https://semahash.org/vocabularies/bootstrap/patterns/HeuristicSnap.md) and rigorous [Deep](https://semahash.org/vocabularies/bootstrap/patterns/Deep.md) simulation modes.

## Invariants

- Builds a causal graph of the target [System](https://semahash.org/vocabularies/bootstrap/patterns/System.md) before running anything.
- The [Simulation](https://semahash.org/vocabularies/bootstrap/patterns/Simulation.md) produces no side effects in the production context.
- Costs at most `cost_fraction` of executing the plan for real.

## Parameters

- cost_fraction: type=Ratio, range=(0.0, 0.5], description=Share of real execution cost the simulation may consume before simulating is not worth it.
- fidelity: type=Enum, range={Low, High}, description=Whether the causal graph models coarse dynamics or detailed ones.
- steps: type=Integer, range=[1, 10], description=How far ahead the dry run looks.

## Preconditions

- Causal model of target system available
- Initial state known

## Postconditions

- Probabilistic outcome vector generated

## Failure modes

- Map-Territory Error: [Simulation](https://semahash.org/vocabularies/bootstrap/patterns/Simulation.md) diverges from reality (Hallucinated Physics).
- Overconfidence: [Agent](https://semahash.org/vocabularies/bootstrap/patterns/Agent.md) trusts the simulation execution log more than real-world feedback.

## Where this came from

—

## Builds on

- [HeuristicSnap](https://semahash.org/vocabularies/bootstrap/patterns/HeuristicSnap.md) (references)
- [Agent](https://semahash.org/vocabularies/bootstrap/patterns/Agent.md) (references)
- [State](https://semahash.org/vocabularies/bootstrap/patterns/State.md) (references)
- [System](https://semahash.org/vocabularies/bootstrap/patterns/System.md) (references)
- [Deep](https://semahash.org/vocabularies/bootstrap/patterns/Deep.md) (references)
- [Simulation](https://semahash.org/vocabularies/bootstrap/patterns/Simulation.md) (references)
- [AgentSandbox](https://semahash.org/vocabularies/bootstrap/patterns/AgentSandbox.md) (references)

## Used by

- [SimulationTrace](https://semahash.org/vocabularies/bootstrap/patterns/SimulationTrace.md) (references)

## Related

- [ProphetFanOut](https://semahash.org/vocabularies/bootstrap/patterns/ProphetFanOut.md)

## Identity

- Library: bootstrap 0.11.0 (root a6a3d1ff0f98)
- Ref: MentalSim#c28c
- Hash: sema:MentalSim#mh:SHA-256:c28c84db7597a2e8cef38b73dc9780b6f8fe28c9d45700c4431b3a7a2ac3b8fc

## Links

- Page: https://semahash.org/vocabularies/bootstrap/patterns/MentalSim
- JSON: https://semahash.org/vocabularies/bootstrap/patterns/MentalSim.json
- Library: https://semahash.org/vocabularies/bootstrap
- Library index: https://semahash.org/vocabularies/bootstrap/index.json
