{
 "library": "bootstrap",
 "version": "0.11.0",
 "root": "a6a3d1ff0f982ee30430c5b42f3784c8ec901fd68482cfc1bc30899c1e5e48c5",
 "license": null,
 "slug": "CounterfactualAnchor",
 "ref": "CounterfactualAnchor#435c",
 "hash": "sema:CounterfactualAnchor#mh:SHA-256:435c0c8fc20e0886da772bb89e16e81ed7e2c231eae38025f0aed2d3e0a2eebc",
 "stub": "435c",
 "layer": "Society",
 "type": "Protocols",
 "summary": "Freezing expectation to measure true surprise",
 "mechanism": "Freezes a prediction BEFORE observation. 1. Instantiate immutable Anchor (Expectation). 2. Observe#4a04 Reality. 3. Learning Signal#6eaf = Delta(Anchor, Reality). Prevents Hindsight CognitiveBias#c8a4 by forcing updates based on genuine surprise. It creates the static reference point against which SurprisalUpdate#5e09 measures the magnitude of the learning delta.",
 "invariants": [
  "Anchor Immutability: The Anchor cannot be modified once the Observation phase begins",
  "Delta Causality: Learning Signal#6eaf L = f(Anchor, Observation). No other inputs permitted during update",
  "Temporal Ordering: Creation(Anchor) < Time(Observation)"
 ],
 "parameters": [
  {
   "name": "granularity",
   "type": "Duration",
   "range": "unspecified",
   "description": "Temporal resolution for counterfactual comparison (e.g., hour, day, week)"
  },
  {
   "name": "retention_policy",
   "type": "Enum",
   "range": "{Snapshot, Rolling, Permanent}",
   "description": "How long to keep counterfactual baselines before expiry"
  }
 ],
 "signature": [],
 "preconditions": [
  "Agent#e127 has a predictive model capable of generating specific expectations",
  "Incoming observable event stream"
 ],
 "postconditions": [
  "A quantified 'Surprisal' delta is recorded",
  "Internal model weights/beliefs updated based on delta"
 ],
 "failure_modes": [
  "Hindsight Leakage: Agent#e127 unconsciously adjusts the Anchor as data comes in.",
  "Vague Anchor: Prediction is too broad to be falsified (e.g., 'Something will happen').",
  "Anchor Abandonment: Agent#e127 ignores the Anchor when the delta is too large (denial)."
 ],
 "domain": "",
 "caution": "",
 "sources": [],
 "name": "CounterfactualAnchor",
 "builds_on": [
  {
   "alias": "agent",
   "relation": "references",
   "library": "bootstrap",
   "slug": "Agent",
   "ref": "Agent#e127",
   "url": "https://semahash.org/vocabularies/bootstrap/patterns/Agent"
  },
  {
   "alias": "surprisal_update",
   "relation": "references",
   "library": "bootstrap",
   "slug": "SurprisalUpdate",
   "ref": "SurprisalUpdate#5e09",
   "url": "https://semahash.org/vocabularies/bootstrap/patterns/SurprisalUpdate"
  },
  {
   "alias": "observe",
   "relation": "references",
   "library": "bootstrap",
   "slug": "Observe",
   "ref": "Observe#4a04",
   "url": "https://semahash.org/vocabularies/bootstrap/patterns/Observe"
  },
  {
   "alias": "signal",
   "relation": "references",
   "library": "bootstrap",
   "slug": "Signal",
   "ref": "Signal#6eaf",
   "url": "https://semahash.org/vocabularies/bootstrap/patterns/Signal"
  },
  {
   "alias": "cognitive_bias",
   "relation": "references",
   "library": "bootstrap",
   "slug": "CognitiveBias",
   "ref": "CognitiveBias#c8a4",
   "url": "https://semahash.org/vocabularies/bootstrap/patterns/CognitiveBias"
  }
 ],
 "related": [
  {
   "alias": null,
   "relation": "related",
   "library": "bootstrap",
   "slug": "Belongbend",
   "ref": "Belongbend#4869",
   "url": "https://semahash.org/vocabularies/bootstrap/patterns/Belongbend"
  },
  {
   "alias": null,
   "relation": "related",
   "library": "bootstrap",
   "slug": "Wonderdwell",
   "ref": "Wonderdwell#88a4",
   "url": "https://semahash.org/vocabularies/bootstrap/patterns/Wonderdwell"
  }
 ],
 "used_by": [
  {
   "slug": "Belongbend",
   "relation": "references",
   "url": "https://semahash.org/vocabularies/bootstrap/patterns/Belongbend"
  },
  {
   "slug": "Wonderdwell",
   "relation": "references",
   "url": "https://semahash.org/vocabularies/bootstrap/patterns/Wonderdwell"
  }
 ],
 "url": "https://semahash.org/vocabularies/bootstrap/patterns/CounterfactualAnchor",
 "md_url": "https://semahash.org/vocabularies/bootstrap/patterns/CounterfactualAnchor.md",
 "library_url": "https://semahash.org/vocabularies/bootstrap"
}
