---
slug: "PolymorphicSolver"
name: "PolymorphicSolver"
type: "Strategy"
layer: "Mind"
ref: "PolymorphicSolver#f7fe"
sema_id: "sema:PolymorphicSolver#mh:SHA-256:f7fe4635a7520f918c823f0047d6fed8e38fd820c1970ef4623cc8fd78d2b0bd"
tags: ["Mind","Strategy"]
updated: 2026-11-11
mindscape: "bootstrap"
index_url: https://mindscape.pages.dev/bootstrap/index.json
url: https://mindscape.pages.dev/bootstrap/PolymorphicSolver/
related: ["Task","ComputeBudget","PathwayMemory","Reason","Reflexion","SocraticLoop","ToolInvoke","Card","PerformanceSignal","Solver","SolverNode","UniversalSolverTree","Validate","Solution","FractalIntelligence","OptimisticSolver","PUREOptimization","RealizationProtocol","RigorousSolver"]
---

# PolymorphicSolver

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

Layer: Mind · Category: Strategy

## Mechanism

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

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

## Signature

- `Solver(Task)`

## Builds on

- [Task](https://mindscape.pages.dev/bootstrap/Task.md) (Infrastructure; Accepts)
- [ComputeBudget](https://mindscape.pages.dev/bootstrap/ComputeBudget.md) (Mind; Composes with)
- [PathwayMemory](https://mindscape.pages.dev/bootstrap/PathwayMemory.md) (Mind; Composes with)
- [Reason](https://mindscape.pages.dev/bootstrap/Reason.md) (Mind; Composes with)
- [Reflexion](https://mindscape.pages.dev/bootstrap/Reflexion.md) (Mind; Composes with)
- [SocraticLoop](https://mindscape.pages.dev/bootstrap/SocraticLoop.md) (Mind; Composes with)
- [ToolInvoke](https://mindscape.pages.dev/bootstrap/ToolInvoke.md) (Infrastructure; Composes with)
- [Card](https://mindscape.pages.dev/bootstrap/Card.md) (Infrastructure; References)
- [PerformanceSignal](https://mindscape.pages.dev/bootstrap/PerformanceSignal.md) (Infrastructure; References)
- [Solver](https://mindscape.pages.dev/bootstrap/Solver.md) (Mind; References)
- [SolverNode](https://mindscape.pages.dev/bootstrap/SolverNode.md) (Society; References)
- [UniversalSolverTree](https://mindscape.pages.dev/bootstrap/UniversalSolverTree.md) (Society; References)
- [Validate](https://mindscape.pages.dev/bootstrap/Validate.md) (Infrastructure; References)
- [Solution](https://mindscape.pages.dev/bootstrap/Solution.md) (Infrastructure; Yields)

## Used by

- [FractalIntelligence](https://mindscape.pages.dev/bootstrap/FractalIntelligence.md) (Mind; Composes with)
- [OptimisticSolver](https://mindscape.pages.dev/bootstrap/OptimisticSolver.md) (Society; Extends)
- [OptimisticSolver](https://mindscape.pages.dev/bootstrap/OptimisticSolver.md) (Society; References)
- [PUREOptimization](https://mindscape.pages.dev/bootstrap/PUREOptimization.md) (Mind; Composes with)
- [RealizationProtocol](https://mindscape.pages.dev/bootstrap/RealizationProtocol.md) (Society; References)
- [RigorousSolver](https://mindscape.pages.dev/bootstrap/RigorousSolver.md) (Mind; Extends)
- [RigorousSolver](https://mindscape.pages.dev/bootstrap/RigorousSolver.md) (Mind; References)

## Identity

- Sema ID: `sema:PolymorphicSolver#mh:SHA-256:f7fe4635a7520f918c823f0047d6fed8e38fd820c1970ef4623cc8fd78d2b0bd`
- Ref: `PolymorphicSolver#f7fe`
- Supersedes:
  - `sema:CognitiveSolver#mh:SHA-256:30c8a18b41a5756020b39bf6d78a89331113e3a68c66fb3e2b0a28ddae8db782`
  - `sema:CognitiveSolver#mh:SHA-256:42e50cb80b61174d3be41e57ca8e17587e5caf0bf09cf5d3fcfad72d124363f2`
  - `sema:PolymorphicSolver#mh:SHA-256:272ac4237fd71c0782676ed30558bad9c08fca9373577516284bf5def22b2800`
  - `sema:PolymorphicSolver#mh:SHA-256:1362a5c7db1715b6683768b75720388810451c79127e566b8f1b4c27bb52391c`
  - `sema:PolymorphicSolver#mh:SHA-256:28f1d5d9b3edcc3967139a056b71acd75050f65e7002644e5a837dd5d9507a07`
  - `sema:PolymorphicSolver#mh:SHA-256:cb20e6504606549fba8628cea7a149a51f5813e1095b07c2c5e039e09a6fdd21`

## Links

- [Pattern page](https://mindscape.pages.dev/bootstrap/PolymorphicSolver/)
- [View in the interactive graph](https://mindscape.pages.dev/bootstrap/#PolymorphicSolver)
- [JSON](https://mindscape.pages.dev/bootstrap/PolymorphicSolver.json)
- [Index of all patterns](https://mindscape.pages.dev/bootstrap/index.json)
