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

# ComputeBudget

Economic governor for cognitive spend

Mind · Strategy

## Mechanism

The cognitive governor that prevents analysis paralysis. It acts as a dual-ledger [Gate](https://semahash.org/vocabularies/bootstrap/patterns/Gate.md), weighing the [Value](https://semahash.org/vocabularies/bootstrap/patterns/Value.md) of a [Task](https://semahash.org/vocabularies/bootstrap/patterns/Task.md) against the [Budget](https://semahash.org/vocabularies/bootstrap/patterns/Budget.md) to ensure return on investment (ROI). It enforces stopping rules when the cost of thinking exceeds the value of the solution.

## Invariants

- Hard ceiling: total execution cost cannot exceed `max_budget`.

## Parameters

- max_budget: type=PositiveInteger, range=unspecified, description=The ceiling, in `unit`. Deliberately uncapped.
- roi_threshold: type=Float, range=[0.1, 2.0], description=Expected value required per unit spent before work proceeds. Scales how demanding the gate is; it does not license spending past the ceiling.
- estimation_share: type=Ratio, range=(0.0, 0.5], description=Share of the budget estimation may consume before it must return.
- unit: type=Enum, range={Tokens, USD, Ms}, description=Cost unit

## Preconditions

- Current resource balance available
- [Task](https://semahash.org/vocabularies/bootstrap/patterns/Task.md) value estimated

## Postconditions

- Budget constraints injected into [Task](https://semahash.org/vocabularies/bootstrap/patterns/Task.md) context
- Execution strategy Selected (Direct vs Recursive)

## Failure modes

- Analysis Paralysis: Spending more on estimation than the task is worth.
- Penny Wise: Rejecting necessary deep thinking for high-stakes/high-complexity problems.
- Cost estimation is itself costly (meta-cost problem).
- Uncertainty about uncertainty makes expected_gain hard to calculate.
- Risk of penny-wise pound-foolish: refusing decomposition on hard problems because estimate was wrong.

## Where this came from

—

## Builds on

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

## Used by

- [Bid](https://semahash.org/vocabularies/bootstrap/patterns/Bid.md) (references)
- [EpistemicROI](https://semahash.org/vocabularies/bootstrap/patterns/EpistemicROI.md) (references)
- [OptimisticSolver](https://semahash.org/vocabularies/bootstrap/patterns/OptimisticSolver.md) (composes_with)
- [PolymorphicSolver](https://semahash.org/vocabularies/bootstrap/patterns/PolymorphicSolver.md) (composes_with)
- [Reason](https://semahash.org/vocabularies/bootstrap/patterns/Reason.md) (references)
- [StrategicReading](https://semahash.org/vocabularies/bootstrap/patterns/StrategicReading.md) (references)

## Related

- [OptimalStop](https://semahash.org/vocabularies/bootstrap/patterns/OptimalStop.md)
- [Satisfice](https://semahash.org/vocabularies/bootstrap/patterns/Satisfice.md)
- [TimeboxThink](https://semahash.org/vocabularies/bootstrap/patterns/TimeboxThink.md)

## Identity

- Library: bootstrap 0.11.0 (root a6a3d1ff0f98)
- Ref: ComputeBudget#4091
- Hash: sema:ComputeBudget#mh:SHA-256:4091ac7c6677342920dc53808d02830e35c5849f2af1bb9ba7749c576d37478e

## Links

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