---
library: "bootstrap"
slug: "CounterfactualAnchor"
name: "CounterfactualAnchor"
ref: "CounterfactualAnchor#435c"
hash: "sema:CounterfactualAnchor#mh:SHA-256:435c0c8fc20e0886da772bb89e16e81ed7e2c231eae38025f0aed2d3e0a2eebc"
type: "Protocols"
layer: "Society"
version: "0.11.0"
root: "a6a3d1ff0f982ee30430c5b42f3784c8ec901fd68482cfc1bc30899c1e5e48c5"
license: null
url: "https://semahash.org/vocabularies/bootstrap/patterns/CounterfactualAnchor"
---

# CounterfactualAnchor

Freezing expectation to measure true surprise

Society · Protocols

## Mechanism

Freezes a prediction BEFORE observation. 1. Instantiate immutable Anchor (Expectation). 2. [Observe](https://semahash.org/vocabularies/bootstrap/patterns/Observe.md) Reality. 3. Learning [Signal](https://semahash.org/vocabularies/bootstrap/patterns/Signal.md) = Delta(Anchor, Reality). Prevents Hindsight [CognitiveBias](https://semahash.org/vocabularies/bootstrap/patterns/CognitiveBias.md) by forcing updates based on genuine surprise. It creates the static reference point against which [SurprisalUpdate](https://semahash.org/vocabularies/bootstrap/patterns/SurprisalUpdate.md) measures the magnitude of the learning delta.

## Invariants

- Anchor Immutability: The Anchor cannot be modified once the Observation phase begins
- Delta Causality: Learning [Signal](https://semahash.org/vocabularies/bootstrap/patterns/Signal.md) L = f(Anchor, Observation). No other inputs permitted during update
- Temporal Ordering: Creation(Anchor) < Time(Observation)

## Parameters

- granularity: type=Duration, range=unspecified, description=Temporal resolution for counterfactual comparison (e.g., hour, day, week)
- retention_policy: type=Enum, range={Snapshot, Rolling, Permanent}, description=How long to keep counterfactual baselines before expiry

## Preconditions

- [Agent](https://semahash.org/vocabularies/bootstrap/patterns/Agent.md) 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](https://semahash.org/vocabularies/bootstrap/patterns/Agent.md) 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](https://semahash.org/vocabularies/bootstrap/patterns/Agent.md) ignores the Anchor when the delta is too large (denial).

## Where this came from

—

## Builds on

- [Agent](https://semahash.org/vocabularies/bootstrap/patterns/Agent.md) (references)
- [SurprisalUpdate](https://semahash.org/vocabularies/bootstrap/patterns/SurprisalUpdate.md) (references)
- [Observe](https://semahash.org/vocabularies/bootstrap/patterns/Observe.md) (references)
- [Signal](https://semahash.org/vocabularies/bootstrap/patterns/Signal.md) (references)
- [CognitiveBias](https://semahash.org/vocabularies/bootstrap/patterns/CognitiveBias.md) (references)

## Used by

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

## Related

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

## Identity

- Library: bootstrap 0.11.0 (root a6a3d1ff0f98)
- Ref: CounterfactualAnchor#435c
- Hash: sema:CounterfactualAnchor#mh:SHA-256:435c0c8fc20e0886da772bb89e16e81ed7e2c231eae38025f0aed2d3e0a2eebc

## Links

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