---
library: "bootstrap"
slug: "SimulationTrace"
name: "SimulationTrace"
ref: "SimulationTrace#e187"
hash: "sema:SimulationTrace#mh:SHA-256:e18789d2ae0413d7f4a4429598f9a12c6f2b9fe4b515eef176d855dcadc0d987"
type: "Memory"
layer: "Mind"
version: "0.11.0"
root: "a6a3d1ff0f982ee30430c5b42f3784c8ec901fd68482cfc1bc30899c1e5e48c5"
license: null
url: "https://semahash.org/vocabularies/bootstrap/patterns/SimulationTrace"
---

# SimulationTrace

Pre-execution mental model

Mind · Memory

## Mechanism

Before taking an irreversible action (e.g., `delete_file`), the agent simulates the execution step-by-step in a scratchpad. It inspects the predicted state after the action. If the state looks bad, it aborts. It generates a verifiable [Trace](https://semahash.org/vocabularies/bootstrap/patterns/Trace.md) of a [MentalSim](https://semahash.org/vocabularies/bootstrap/patterns/MentalSim.md), creating an immutable record of the predicted future state.

## Invariants

- Causality: Every step T+1 is derived from T
- Replayability: [Trace](https://semahash.org/vocabularies/bootstrap/patterns/Trace.md)(Start) == End
- [Trace](https://semahash.org/vocabularies/bootstrap/patterns/Trace.md) immutable after creation.

## Parameters

- confidence_floor: type=Probability, range=[0.5, 0.9], description=Min certainty to trust trace
- simulation_fidelity: type=Percentage, range=[70%, 99%], description=Required model accuracy

## Preconditions

- [Simulation](https://semahash.org/vocabularies/bootstrap/patterns/Simulation.md) engine initialized

## Postconditions

- Verifiable trace artifact generated

## Failure modes

- [Simulation](https://semahash.org/vocabularies/bootstrap/patterns/Simulation.md) inaccuracy (the map is not the territory).

## Where this came from

—

## Builds on

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

## Used by

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

## Identity

- Library: bootstrap 0.11.0 (root a6a3d1ff0f98)
- Ref: SimulationTrace#e187
- Hash: sema:SimulationTrace#mh:SHA-256:e18789d2ae0413d7f4a4429598f9a12c6f2b9fe4b515eef176d855dcadc0d987

## Links

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