{
 "library": "bootstrap",
 "version": "0.11.0",
 "root": "a6a3d1ff0f982ee30430c5b42f3784c8ec901fd68482cfc1bc30899c1e5e48c5",
 "license": null,
 "slug": "PolymorphicSolver",
 "ref": "PolymorphicSolver#ce9a",
 "hash": "sema:PolymorphicSolver#mh:SHA-256:ce9a27d50265e6e74e034eb4da3a6441d840b75a740772da3d577d9602727f1b",
 "stub": "ce9a",
 "layer": "Mind",
 "type": "Strategy",
 "summary": "Solver implementing the five-surface contract (polymorphic across substrates)",
 "mechanism": "A PolymorphicSolver is any entity — from a fleeting thought process to a complex swarm — that implements the five-surface contract Solver#a447 specifies (Manifest via Card#e4b2, Execute, Consult, Verify via Validate#ffd1, Feedback — emits a typed PerformanceSignal#9dfb). Manifest and Execute are mandatory; Consult/Verify/Feedback are optional but strongly recommended at hard seams. The pattern is named for its polymorphism: any substrate conforming to the contract qualifies — LLM, human, hybrid, tool-using agent, nested composition, or mechanical dispatcher — not just cognitive ones. It acts as a fractal node in the UniversalSolverTree#f9fb, accepting a Task#a850 and using Reason#81ec to orchestrate a lifecycle on a SolverNode#f895. It yields a Solution#8d55, wrapping operations like ToolInvoke#1096 with ComputeBudget#4091 checks, SocraticLoop#ffaa refinement, or Reflexion#81eb for self-improvement. When operating as a dispatcher (routing sub-tasks to child solvers), it maintains a local PathwayMemory#ce2e so routing decisions compound as experience accumulates — the property that gives the fractal structure its learning dynamics.",
 "invariants": [
  "Polymorphism: External Runtime treats all Solvers identically via this Interface.",
  "Recursion: Solver must accept sub-tasks via the same Interface it exposes."
 ],
 "parameters": {},
 "signature": [
  "Solver(Task)"
 ],
 "preconditions": [],
 "postconditions": [],
 "failure_modes": [
  "Interface Non-Compliance: Solver omits Manifest or Execute, or advertises an optional Consult, Verify, or Feedback surface it cannot provide.",
  "Manifest Drift: Capabilities declared in Manifest do not match runtime behavior."
 ],
 "domain": "",
 "caution": "",
 "sources": [],
 "name": "PolymorphicSolver",
 "builds_on": [
  {
   "alias": "performance_signal",
   "relation": "references",
   "library": "bootstrap",
   "slug": "PerformanceSignal",
   "ref": "PerformanceSignal#9dfb",
   "url": "https://semahash.org/vocabularies/bootstrap/patterns/PerformanceSignal"
  },
  {
   "alias": "card",
   "relation": "references",
   "library": "bootstrap",
   "slug": "Card",
   "ref": "Card#e4b2",
   "url": "https://semahash.org/vocabularies/bootstrap/patterns/Card"
  },
  {
   "alias": "universal_solver_tree",
   "relation": "references",
   "library": "bootstrap",
   "slug": "UniversalSolverTree",
   "ref": "UniversalSolverTree#f9fb",
   "url": "https://semahash.org/vocabularies/bootstrap/patterns/UniversalSolverTree"
  },
  {
   "alias": "validate",
   "relation": "references",
   "library": "bootstrap",
   "slug": "Validate",
   "ref": "Validate#ffd1",
   "url": "https://semahash.org/vocabularies/bootstrap/patterns/Validate"
  },
  {
   "alias": "solver",
   "relation": "references",
   "library": "bootstrap",
   "slug": "Solver",
   "ref": "Solver#a447",
   "url": "https://semahash.org/vocabularies/bootstrap/patterns/Solver"
  },
  {
   "alias": "solver_node",
   "relation": "references",
   "library": "bootstrap",
   "slug": "SolverNode",
   "ref": "SolverNode#f895",
   "url": "https://semahash.org/vocabularies/bootstrap/patterns/SolverNode"
  },
  {
   "alias": "pathway_memory",
   "relation": "composes_with",
   "library": "bootstrap",
   "slug": "PathwayMemory",
   "ref": "PathwayMemory#ce2e",
   "url": "https://semahash.org/vocabularies/bootstrap/patterns/PathwayMemory"
  },
  {
   "alias": "socratic_loop",
   "relation": "composes_with",
   "library": "bootstrap",
   "slug": "SocraticLoop",
   "ref": "SocraticLoop#ffaa",
   "url": "https://semahash.org/vocabularies/bootstrap/patterns/SocraticLoop"
  },
  {
   "alias": "reason",
   "relation": "composes_with",
   "library": "bootstrap",
   "slug": "Reason",
   "ref": "Reason#81ec",
   "url": "https://semahash.org/vocabularies/bootstrap/patterns/Reason"
  },
  {
   "alias": "reflexion",
   "relation": "composes_with",
   "library": "bootstrap",
   "slug": "Reflexion",
   "ref": "Reflexion#81eb",
   "url": "https://semahash.org/vocabularies/bootstrap/patterns/Reflexion"
  },
  {
   "alias": "compute_budget",
   "relation": "composes_with",
   "library": "bootstrap",
   "slug": "ComputeBudget",
   "ref": "ComputeBudget#4091",
   "url": "https://semahash.org/vocabularies/bootstrap/patterns/ComputeBudget"
  },
  {
   "alias": "tool_invoke",
   "relation": "composes_with",
   "library": "bootstrap",
   "slug": "ToolInvoke",
   "ref": "ToolInvoke#1096",
   "url": "https://semahash.org/vocabularies/bootstrap/patterns/ToolInvoke"
  },
  {
   "alias": "solution",
   "relation": "yields",
   "library": "bootstrap",
   "slug": "Solution",
   "ref": "Solution#8d55",
   "url": "https://semahash.org/vocabularies/bootstrap/patterns/Solution"
  },
  {
   "alias": "task",
   "relation": "accepts",
   "library": "bootstrap",
   "slug": "Task",
   "ref": "Task#a850",
   "url": "https://semahash.org/vocabularies/bootstrap/patterns/Task"
  }
 ],
 "related": [],
 "used_by": [
  {
   "slug": "FractalIntelligence",
   "relation": "composes_with",
   "url": "https://semahash.org/vocabularies/bootstrap/patterns/FractalIntelligence"
  },
  {
   "slug": "OptimisticSolver",
   "relation": "references",
   "url": "https://semahash.org/vocabularies/bootstrap/patterns/OptimisticSolver"
  },
  {
   "slug": "PUREOptimization",
   "relation": "composes_with",
   "url": "https://semahash.org/vocabularies/bootstrap/patterns/PUREOptimization"
  },
  {
   "slug": "RealizationProtocol",
   "relation": "references",
   "url": "https://semahash.org/vocabularies/bootstrap/patterns/RealizationProtocol"
  },
  {
   "slug": "RigorousSolver",
   "relation": "references",
   "url": "https://semahash.org/vocabularies/bootstrap/patterns/RigorousSolver"
  }
 ],
 "url": "https://semahash.org/vocabularies/bootstrap/patterns/PolymorphicSolver",
 "md_url": "https://semahash.org/vocabularies/bootstrap/patterns/PolymorphicSolver.md",
 "library_url": "https://semahash.org/vocabularies/bootstrap"
}
