---
library: "bootstrap"
slug: "Decay"
name: "Decay"
ref: "Decay#482b"
hash: "sema:Decay#mh:SHA-256:482b97f7196f35c8c50be1b2537ec6e04410a4920fcd8409bec735db3278737a"
type: "Primitives"
layer: "Physics"
version: "0.11.0"
root: "a6a3d1ff0f982ee30430c5b42f3784c8ec901fd68482cfc1bc30899c1e5e48c5"
license: null
url: "https://semahash.org/vocabularies/bootstrap/patterns/Decay"
---

# Decay

Automatic expiration of stale state

Physics · Primitives

## Mechanism

Gradual attenuation: without reinforcement, [Value](https://semahash.org/vocabularies/bootstrap/patterns/Value.md) V decreases over time. `half_life` determines the rate. Reinforcement resets or boosts V. V descends to `floor_value` and stops there; reaching the floor triggers a [State](https://semahash.org/vocabularies/bootstrap/patterns/State.md) change, and removal only where the floor is zero.

## Invariants

- Monotone absent reinforcement: V does not increase unless reinforced.
- V never descends below `floor_value`.

## Parameters

- floor_value: type=Float, range=[0.0, 0.5], description=Minimum value, never decays below
- half_life: type=Duration, range=[1min, 30d], description=Time for value to halve

## Failure modes

- Unreachable removal: `floor_value` is above zero, so V never reaches zero and a removal trigger set at zero never fires.

## Where this came from

—

## Builds on

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

## Used by

- [Crystallize](https://semahash.org/vocabularies/bootstrap/patterns/Crystallize.md) (references)
- [CurriculumReplay](https://semahash.org/vocabularies/bootstrap/patterns/CurriculumReplay.md) (references)
- [EpistemicCalibrate](https://semahash.org/vocabularies/bootstrap/patterns/EpistemicCalibrate.md) (references)
- [ExpiringToken](https://semahash.org/vocabularies/bootstrap/patterns/ExpiringToken.md) (references)
- [GlacialVault](https://semahash.org/vocabularies/bootstrap/patterns/GlacialVault.md) (references)
- [Resonate](https://semahash.org/vocabularies/bootstrap/patterns/Resonate.md) (references)
- [Stigmergy](https://semahash.org/vocabularies/bootstrap/patterns/Stigmergy.md) (references)

## Related

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

## Identity

- Library: bootstrap 0.11.0 (root a6a3d1ff0f98)
- Ref: Decay#482b
- Hash: sema:Decay#mh:SHA-256:482b97f7196f35c8c50be1b2537ec6e04410a4920fcd8409bec735db3278737a

## Links

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