{
 "library": "bootstrap",
 "version": "0.11.0",
 "root": "a6a3d1ff0f982ee30430c5b42f3784c8ec901fd68482cfc1bc30899c1e5e48c5",
 "license": null,
 "slug": "ComputeBudget",
 "ref": "ComputeBudget#4091",
 "hash": "sema:ComputeBudget#mh:SHA-256:4091ac7c6677342920dc53808d02830e35c5849f2af1bb9ba7749c576d37478e",
 "stub": "4091",
 "layer": "Mind",
 "type": "Strategy",
 "summary": "Economic governor for cognitive spend",
 "mechanism": "The cognitive governor that prevents analysis paralysis. It acts as a dual-ledger Gate#664d, weighing the Value#37fd of a Task#a850 against the Budget#4e3e 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": [
  {
   "name": "max_budget",
   "type": "PositiveInteger",
   "range": "unspecified",
   "description": "The ceiling, in `unit`. Deliberately uncapped."
  },
  {
   "name": "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."
  },
  {
   "name": "estimation_share",
   "type": "Ratio",
   "range": "(0.0, 0.5]",
   "description": "Share of the budget estimation may consume before it must return."
  },
  {
   "name": "unit",
   "type": "Enum",
   "range": "{Tokens, USD, Ms}",
   "description": "Cost unit"
  }
 ],
 "signature": [],
 "preconditions": [
  "Current resource balance available",
  "Task#a850 value estimated"
 ],
 "postconditions": [
  "Budget constraints injected into Task#a850 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."
 ],
 "domain": "",
 "caution": "",
 "sources": [],
 "name": "ComputeBudget",
 "builds_on": [
  {
   "alias": "budget",
   "relation": "references",
   "library": "bootstrap",
   "slug": "Budget",
   "ref": "Budget#4e3e",
   "url": "https://semahash.org/vocabularies/bootstrap/patterns/Budget"
  },
  {
   "alias": "value",
   "relation": "references",
   "library": "bootstrap",
   "slug": "Value",
   "ref": "Value#37fd",
   "url": "https://semahash.org/vocabularies/bootstrap/patterns/Value"
  },
  {
   "alias": "gate",
   "relation": "references",
   "library": "bootstrap",
   "slug": "Gate",
   "ref": "Gate#664d",
   "url": "https://semahash.org/vocabularies/bootstrap/patterns/Gate"
  },
  {
   "alias": "task",
   "relation": "references",
   "library": "bootstrap",
   "slug": "Task",
   "ref": "Task#a850",
   "url": "https://semahash.org/vocabularies/bootstrap/patterns/Task"
  }
 ],
 "related": [
  {
   "alias": null,
   "relation": "related",
   "library": "bootstrap",
   "slug": "OptimalStop",
   "ref": "OptimalStop#975a",
   "url": "https://semahash.org/vocabularies/bootstrap/patterns/OptimalStop"
  },
  {
   "alias": null,
   "relation": "related",
   "library": "bootstrap",
   "slug": "Satisfice",
   "ref": "Satisfice#29ce",
   "url": "https://semahash.org/vocabularies/bootstrap/patterns/Satisfice"
  },
  {
   "alias": null,
   "relation": "related",
   "library": "bootstrap",
   "slug": "TimeboxThink",
   "ref": "TimeboxThink#2018",
   "url": "https://semahash.org/vocabularies/bootstrap/patterns/TimeboxThink"
  }
 ],
 "used_by": [
  {
   "slug": "Bid",
   "relation": "references",
   "url": "https://semahash.org/vocabularies/bootstrap/patterns/Bid"
  },
  {
   "slug": "EpistemicROI",
   "relation": "references",
   "url": "https://semahash.org/vocabularies/bootstrap/patterns/EpistemicROI"
  },
  {
   "slug": "OptimisticSolver",
   "relation": "composes_with",
   "url": "https://semahash.org/vocabularies/bootstrap/patterns/OptimisticSolver"
  },
  {
   "slug": "PolymorphicSolver",
   "relation": "composes_with",
   "url": "https://semahash.org/vocabularies/bootstrap/patterns/PolymorphicSolver"
  },
  {
   "slug": "Reason",
   "relation": "references",
   "url": "https://semahash.org/vocabularies/bootstrap/patterns/Reason"
  },
  {
   "slug": "StrategicReading",
   "relation": "references",
   "url": "https://semahash.org/vocabularies/bootstrap/patterns/StrategicReading"
  }
 ],
 "url": "https://semahash.org/vocabularies/bootstrap/patterns/ComputeBudget",
 "md_url": "https://semahash.org/vocabularies/bootstrap/patterns/ComputeBudget.md",
 "library_url": "https://semahash.org/vocabularies/bootstrap"
}
