PolymorphicSolver

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

Mind · Strategy · bootstrap 0.11.0

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

Signature

Failure modes

Where this came from

—

Builds on

Used by

Identity