---
library: "bootstrap"
slug: "DepthGovernor"
name: "DepthGovernor"
ref: "DepthGovernor#5b24"
hash: "sema:DepthGovernor#mh:SHA-256:5b24d810ede53e7e6716e3e20e7c28cf578f171845af2358344c25f0c56b7b75"
type: "Strategy"
layer: "Mind"
version: "0.11.0"
root: "a6a3d1ff0f982ee30430c5b42f3784c8ec901fd68482cfc1bc30899c1e5e48c5"
license: null
url: "https://semahash.org/vocabularies/bootstrap/patterns/DepthGovernor"
---

# DepthGovernor

Entropy-based stopping condition for recursion

Mind · Strategy

## Mechanism

Entropy-Bounded Recursion: Decomposition depth is not fixed but governed by informational entropy. [Agent](https://semahash.org/vocabularies/bootstrap/patterns/Agent.md) measures uncertainty of current [Plan](https://semahash.org/vocabularies/bootstrap/patterns/Plan.md). If entropy exceeds `entropy_threshold`, [Decompose](https://semahash.org/vocabularies/bootstrap/patterns/Decompose.md) further; below it, execute. Stop thinking when uncertainty drops below action cost. Depth is a function of ambiguity, bounded by `max_depth` only as a backstop. It acts as the termination [Condition](https://semahash.org/vocabularies/bootstrap/patterns/Condition.md) for [RecursionDive](https://semahash.org/vocabularies/bootstrap/patterns/RecursionDive.md), halting descent when informational entropy drops below the threshold.

## Invariants

- The governor cannot be bypassed.
- Descends only while entropy exceeds `entropy_threshold`.
- Never descends past `max_depth`, whatever the entropy.

## Parameters

- entropy_threshold: type=Float, range=[0.1, 0.5], description=Stop when uncertainty below this
- max_depth: type=Integer, range=[3, 20], description=Hard limit on recursion

## Failure modes

- Ambiguity [Loop](https://semahash.org/vocabularies/bootstrap/patterns/Loop.md): entropy never drops because the [Problem](https://semahash.org/vocabularies/bootstrap/patterns/Problem.md) is inherently subjective, so descent runs to `max_depth` and acts on an unresolved plan.
- Miscalculated entropy leads to premature action.
- Estimation overhead: measuring entropy costs more than the decomposition it avoids.

## Where this came from

—

## Builds on

- [Loop](https://semahash.org/vocabularies/bootstrap/patterns/Loop.md) (references)
- [Plan](https://semahash.org/vocabularies/bootstrap/patterns/Plan.md) (references)
- [Agent](https://semahash.org/vocabularies/bootstrap/patterns/Agent.md) (references)
- [RecursionDive](https://semahash.org/vocabularies/bootstrap/patterns/RecursionDive.md) (references)
- [Problem](https://semahash.org/vocabularies/bootstrap/patterns/Problem.md) (references)
- [Decompose](https://semahash.org/vocabularies/bootstrap/patterns/Decompose.md) (references)
- [Condition](https://semahash.org/vocabularies/bootstrap/patterns/Condition.md) (references)

## Used by

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

## Identity

- Library: bootstrap 0.11.0 (root a6a3d1ff0f98)
- Ref: DepthGovernor#5b24
- Hash: sema:DepthGovernor#mh:SHA-256:5b24d810ede53e7e6716e3e20e7c28cf578f171845af2358344c25f0c56b7b75

## Links

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