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

# PolymorphicSolver

Solver implementing the five-surface contract (polymorphic across substrates)

Mind · Strategy

## Mechanism

A PolymorphicSolver is any entity — from a fleeting thought process to a complex swarm — that implements the five-surface contract [Solver](https://semahash.org/vocabularies/bootstrap/patterns/Solver.md) specifies (Manifest via [Card](https://semahash.org/vocabularies/bootstrap/patterns/Card.md), Execute, Consult, Verify via [Validate](https://semahash.org/vocabularies/bootstrap/patterns/Validate.md), Feedback — emits a typed [PerformanceSignal](https://semahash.org/vocabularies/bootstrap/patterns/PerformanceSignal.md)). 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](https://semahash.org/vocabularies/bootstrap/patterns/UniversalSolverTree.md), accepting a [Task](https://semahash.org/vocabularies/bootstrap/patterns/Task.md) and using [Reason](https://semahash.org/vocabularies/bootstrap/patterns/Reason.md) to orchestrate a lifecycle on a [SolverNode](https://semahash.org/vocabularies/bootstrap/patterns/SolverNode.md). It yields a [Solution](https://semahash.org/vocabularies/bootstrap/patterns/Solution.md), wrapping operations like [ToolInvoke](https://semahash.org/vocabularies/bootstrap/patterns/ToolInvoke.md) with [ComputeBudget](https://semahash.org/vocabularies/bootstrap/patterns/ComputeBudget.md) checks, [SocraticLoop](https://semahash.org/vocabularies/bootstrap/patterns/SocraticLoop.md) refinement, or [Reflexion](https://semahash.org/vocabularies/bootstrap/patterns/Reflexion.md) for self-improvement. When operating as a dispatcher (routing sub-tasks to child solvers), it maintains a local [PathwayMemory](https://semahash.org/vocabularies/bootstrap/patterns/PathwayMemory.md) 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.

## Signature

- Solver(Task)

## 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.

## Where this came from

—

## Builds on

- [PerformanceSignal](https://semahash.org/vocabularies/bootstrap/patterns/PerformanceSignal.md) (references)
- [Card](https://semahash.org/vocabularies/bootstrap/patterns/Card.md) (references)
- [UniversalSolverTree](https://semahash.org/vocabularies/bootstrap/patterns/UniversalSolverTree.md) (references)
- [Validate](https://semahash.org/vocabularies/bootstrap/patterns/Validate.md) (references)
- [Solver](https://semahash.org/vocabularies/bootstrap/patterns/Solver.md) (references)
- [SolverNode](https://semahash.org/vocabularies/bootstrap/patterns/SolverNode.md) (references)
- [PathwayMemory](https://semahash.org/vocabularies/bootstrap/patterns/PathwayMemory.md) (composes_with)
- [SocraticLoop](https://semahash.org/vocabularies/bootstrap/patterns/SocraticLoop.md) (composes_with)
- [Reason](https://semahash.org/vocabularies/bootstrap/patterns/Reason.md) (composes_with)
- [Reflexion](https://semahash.org/vocabularies/bootstrap/patterns/Reflexion.md) (composes_with)
- [ComputeBudget](https://semahash.org/vocabularies/bootstrap/patterns/ComputeBudget.md) (composes_with)
- [ToolInvoke](https://semahash.org/vocabularies/bootstrap/patterns/ToolInvoke.md) (composes_with)
- [Solution](https://semahash.org/vocabularies/bootstrap/patterns/Solution.md) (yields)
- [Task](https://semahash.org/vocabularies/bootstrap/patterns/Task.md) (accepts)

## Used by

- [FractalIntelligence](https://semahash.org/vocabularies/bootstrap/patterns/FractalIntelligence.md) (composes_with)
- [OptimisticSolver](https://semahash.org/vocabularies/bootstrap/patterns/OptimisticSolver.md) (references)
- [PUREOptimization](https://semahash.org/vocabularies/bootstrap/patterns/PUREOptimization.md) (composes_with)
- [RealizationProtocol](https://semahash.org/vocabularies/bootstrap/patterns/RealizationProtocol.md) (references)
- [RigorousSolver](https://semahash.org/vocabularies/bootstrap/patterns/RigorousSolver.md) (references)

## Identity

- Library: bootstrap 0.11.0 (root a6a3d1ff0f98)
- Ref: PolymorphicSolver#ce9a
- Hash: sema:PolymorphicSolver#mh:SHA-256:ce9a27d50265e6e74e034eb4da3a6441d840b75a740772da3d577d9602727f1b

## Links

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