PolymorphicSolver
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 specifies (Manifest via Card, Execute, Consult, Verify via Validate, Feedback — emits a typed PerformanceSignal). 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, accepting a Task and using Reason to orchestrate a lifecycle on a SolverNode. It yields a Solution, wrapping operations like ToolInvoke with ComputeBudget checks, SocraticLoop refinement, or Reflexion for self-improvement. When operating as a dispatcher (routing sub-tasks to child solvers), it maintains a local PathwayMemory 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 references
- Card references
- UniversalSolverTree references
- Validate references
- Solver references
- SolverNode references
- PathwayMemory composes_with
- SocraticLoop composes_with
- Reason composes_with
- Reflexion composes_with
- ComputeBudget composes_with
- ToolInvoke composes_with
- Solution yields
- Task accepts
Used by
- FractalIntelligence composes_with
- OptimisticSolver references
- PUREOptimization composes_with
- RealizationProtocol references
- RigorousSolver references
Identity
- Ref:
PolymorphicSolver#ce9a - Hash: sema:PolymorphicSolver#mh:SHA-256:ce9a27d50265e6e74e034eb4da3a6441d840b75a740772da3d577d9602727f1b
- Library: bootstrap 0.11.0, root a6a3d1ff0f98
- License: Not stated; check the repository