{"agent":"Quantum Brain","endpoints":["GET  / — agent health + circuits + glyph cascade","GET  /openapi.json — OpenAPI 3.0 spec (watsonx Orchestrate)","POST /tools/:name — execute tool","POST /agents/quantum-brain/tools/:name — watsonx agent path","GET  /memory/stats — BrainMemoryDO statistics"],"tools":[{"name":"brain_mood","description":"3-qubit mood circuit. Classify any two [0,1] metrics into one of 8 quantum character states (warm, bright, muddy, thin, dynamic, smooth, ethereal, complex). Each character maps to an alchemical glyph and an elemental biome. The cognitive character measurement no classical tool offers."},{"name":"brain_walk","description":"2-qubit walk circuit. Select optimal comparison strategy from 4 quantum options (cosine, kernel, interference, quantum_jump) by measuring the L1 difference between two vectors. Avoids blind cosine similarity on every task."},{"name":"brain_evolve","description":"4-qubit entangled evolve circuit. Iteratively pull a current trait vector toward a target via PHI-scaled mutation and circular entanglement. Returns evolved traits, improvement delta, and convergence score."},{"name":"brain_decide","description":"Grover-amplified decide circuit. Select the optimal option from N choices by squaring bias weights (quantum amplification), normalizing to probabilities, and picking deterministically. Returns selected option, confidence score, and full probability distribution."},{"name":"brain_dream","description":"7-qubit dream circuit. Generate a unique 7-bit alchemical glyph cascade from any seed vector. 128 possible states. Returns glyph ID, full pattern, active cascade, lore phase (silence through fractal_bloom), and coherence. Each output is a quantum-generated visual signature."},{"name":"brain_entangle","description":"Bell pair entangle circuit. Measure quantum correlation between two values via phase difference. Returns Bell correlation score (0-1), shared character archetype, and Bell bits. The correlation the classical world calls 'spooky action.'"},{"name":"brain_schedule","description":"QAOA schedule circuit. PHI-ratio weighted resource allocation across N items based on preferences. Returns ranked allocation with each item's share. Golden-ratio resource distribution optimal for tournament scheduling."},{"name":"brain_ensemble","description":"Run the full 7-circuit brain ensemble on a cognitive payload. Returns the complete cognitive report: character (mood), strategy (walk), evolved state (evolve), decision (decide), glyph cascade (dream), correlation (entangle), and priority schedule (schedule). One call, full cognition."},{"name":"brain_chain","description":"Chain brain circuits programmatically. Specify a sequence of circuits and their inputs; each circuit's output feeds the next. Returns the full chain trace with every intermediate state. Example: dream -> mood -> decide produces a glyph-driven, character-classified decision."},{"name":"brain_classify","description":"Classify any numeric input vector into a character archetype. Runs dream (glyph generation) -> mood (character) -> biome mapping. Returns the full archetypal classification. Universal input classifier — works on audio frequencies, text embeddings, trading signals, compliance scores."},{"name":"brain_compare_minds","description":"A/B compare two cognitive outputs. Runs walk (strategy selection), entangle (Bell correlation), and dream (comparative glyph). Returns which mind is more coherent, their quantum correlation, and a verdict. The quantum equivalent of second opinion."},{"name":"brain_memory","description":"Persist or recall cognitive state keyed by content hash. Actions: remember (store snapshot), recall (retrieve), forget (delete), list (recent entries), stats (cache metrics). Enables agents to build up pattern recognition across sessions. Backed by BrainMemoryDO."},{"name":"brain_biome_map","description":"Map any input directly to one of 8 elemental biomes (fire, crystal, water, lightning, earth, air, aether, quantum). Returns biome, corresponding glyph, character, and circuit affinity. Fast archetypal routing — skip the full ensemble, get the biome."},{"name":"brain_health","description":"Diagnostic health check on all 7 brain circuits. Runs each circuit on a deterministic fixture, verifies reproducible output, reports coherence. Returns pass/fail per circuit, overall brain health score, and meta (kernel version, glyph cascade version). Use before relying on brain tools in production."},{"name":"brain_oscillate","description":"4-phase compound autonomous oscillation — the meta-circuit that orchestrates all 7 brain circuits. Runs recursive cycles (analyze → optimize → oscillate → exhaust) toward a target cognitive state, switching strategies (discovery/optimization/exhaustion/compound) via Grover-amplified selection when performance plateaus. Every cycle emits a glyph — the full journey cascade IS the cognitive fingerprint. Terminates on exhaustion (cosineSim ≥ threshold), plateau (no improvement for N cycles), or max_cycles. Ported from compound_oscillation_engine.py."}]}