{
  "handle": "SimulationTrace",
  "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}} of a {{mental_sim}}, creating an immutable record of the predicted future state.",
  "gloss": "Pre-execution mental model",
  "failure_modes": [
    "{{simulation}} inaccuracy (the map is not the territory)."
  ],
  "invariants": [
    "Causality: Every step T+1 is derived from T",
    "Replayability: {{trace}}(Start) == End",
    "{{trace}} immutable after creation."
  ],
  "preconditions": [
    "{{simulation}} engine initialized"
  ],
  "postconditions": [
    "Verifiable trace artifact generated"
  ],
  "parameters": [
    {
      "name": "confidence_floor",
      "type": "Probability",
      "range": "[0.5, 0.9]",
      "description": "Min certainty to trust trace"
    },
    {
      "name": "simulation_fidelity",
      "type": "Percentage",
      "range": "[70%, 99%]",
      "description": "Required model accuracy"
    }
  ],
  "_meta": {
    "tier": 1,
    "ring": 2,
    "supersedes": [
      "sema:SimulationTrace#mh:SHA-256:9da67f06f48d0416c35169ed3a5a825dd1a477f3966a175fd0a66280c93d49d0",
      "sema:SimulationTrace#mh:SHA-256:096eee69576638b38a5595613c41f79ae093e1036bdb70cd852edf65c42eead3",
      "sema:SimulationTrace#mh:SHA-256:9383a9b0cb85562dc38baba1967c166f4f836ae399c08b5b229070ad279a8163",
      "sema:SimulationTrace#mh:SHA-256:efded93ef0b1b96bb3e16e794e463895d2d5955827dac3476852b3f4413c62b5",
      "sema:SimulationTrace#mh:SHA-256:a24e63dacfc29c2ed9e07c1f2d24947fd5247b88658b9d42629fdfbc8c3566de"
    ],
    "path": [
      "Mind",
      "Memory"
    ]
  },
  "sema_id": "sema:SimulationTrace#mh:SHA-256:e18789d2ae0413d7f4a4429598f9a12c6f2b9fe4b515eef176d855dcadc0d987",
  "sema_ref": "SimulationTrace#e187",
  "sema_stub": "e187",
  "dependencies": {
    "references": {
      "mental_sim": "sema:MentalSim#mh:SHA-256:c28c84db7597a2e8cef38b73dc9780b6f8fe28c9d45700c4431b3a7a2ac3b8fc",
      "simulation": "sema:Simulation#mh:SHA-256:1058e7090079e846251ed480d7afec0328809d22bebb6b205425b2de614787c3",
      "trace": "sema:Trace#mh:SHA-256:b68d64423aa72b13a06714aa182baab79eb49a5a856dce56dd554fd63b41c2a9"
    }
  },
  "sema_layer": "Mind",
  "sema_category": "Memory",
  "used_by": {
    "references": {
      "PropheticQuorum": "sema:PropheticQuorum#mh:SHA-256:f7fff3a87881c7f923e067c30eee122443ae6ab47c2831edac0eccc1f1e01230"
    }
  }
}
