ELUVIXSovereign AI Router

Eluvix Visual Node Routing Editor

The Eluvix Visual Node Routing Editor (accessible at /editor) is an interactive, Pro Studio graph-based canvas powered by React Flow for designing, auto-laying out, live-simulating, auto-healing, and compiling multimodal routing topologies, agent gateways, and security guardrails.


Pro Studio Capabilities

The Eluvix Visual Node Routing Editor combines tactile graph wiring with keyboard-first studio tooling:

  • Spotlight Command Palette (Cmd/Ctrl + K): Fuzzy-search and spawn any of the 30+ node types at viewport center, switch starter presets, run auto-layout, open the Golden Eval Gate, trigger compilation, or auto-heal graph diagnostics.
  • Golden Eval Gate (πŸ§ͺ Evals & Verify Before Apply): Run $0.00 deterministic dry-run routing, PII redaction, prompt-injection, and paperclip-org-governance regression suites against unsaved canvas edits directly inside the Eluvix Visual Node Routing Editor (EvalGateDrawer) before hot-reloading production config.
  • 50-State Undo / Redo (Cmd/Ctrl + Z / Cmd/Ctrl + Shift + Z): Full snapshot history stack across node insertions, parameter edits, edge wiring, deletions, and layout transforms.
  • Deterministic Sugiyama Topological Auto-Layout: One-click 5-stage left-to-right hierarchical graph layout (Entry / Guards β†’ Cache / Memory / RAG β†’ Routers / Judges β†’ Gateways / Harnesses β†’ Local & Cloud Upstreams / Observability) with barycentric edge-crossing minimization.
  • Interactive Live Canvas Route Simulator: Dry-run prompts with modality, token count, confidential flags, and Paperclip org overrides (companyId, priority, budgetRemainingPct, sensitivity) directly on the canvas via POST /api/v1/route-explainβ€”animating the winning path in emerald green and dimming bypassed edges in amber with hoverable rejection reasons and applied X-Eluvix-Step-Tier / bias badges.
  • One-Click Diagnostic Auto-Fix: Actionable "Fix Now" buttons per lint warning and "Fix All Issues" batch healing for disconnected nodes, ungrounded Knowledge Bases, single-point-of-failure upstreams, unguarded cloud PII paths, and circular routing loops.
  • Ergonomic Node Handles & Dynamic Ports: Enlarged color-coded grab handles, semantic intent ports (#intent-code, #intent-reasoning, #tier-local, #tier-cloud), and direct in-card controls.
[ Client Entrypoint ]
         β”‚
         β–Ό
[ Privacy Guard Node ] ──► In-flight PII Masking (Token / Asterisk / Hash)
         β”‚
         β–Ό
[ Semantic Guard Node ] ──► Prompt Injection & Jailbreak Classifier
         β”‚
         β–Ό
[ Task Router Node ] ──► Semantic Intent Dispatcher
         β”‚
         β”œβ”€β”€β”€β–Ί #intent-code ──────► [ Coding Agent Node ]
         β”œβ”€β”€β”€β–Ί #intent-reasoning ─► [ Google Antigravity AGY ]
         └───► #intent-default ───► [ Switchyard Router Node ]
                                            β”‚
                                 β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
                                 β–Ό                     β–Ό
                       [ Model Gateway ]        [ Cloud Providers ]
                         (Local vLLM /           (Billama / OpenAI /
                          Ollama Cache)           Claude Direct)

Comprehensive Node Catalog

The Routing Editor organizes nodes into functional categories:

1. Security Nodes

  • Privacy Guard (privacyGuardNode):
    • Enforces in-flight PII redaction using token ([REDACTED_API_KEY]), asterisk (sk-β€’β€’β€’β€’), or cryptographic hash ([HASH:e3b0...] via SHA-256).
    • Built-in entity filters: API keys, SSNs, credit cards, emails, phone numbers, IP addresses.
    • Exempted Whitelist: Domain and token exemptions (e.g. internal.corp, localhost).
    • Custom Regex: Configurable user patterns with named identifiers.
    • Audit Logging: Optional logging of redacted fragments for security auditing.
  • Semantic Guard (semanticGuardNode):
    • Embedding classifier firewall models (DeBERTa-v3, BGE-Small, MiniLM).
    • Sensitivity slider (0.50–0.99).
    • Enforcement actions: block (HTTP 400), strip (sanitized pass-through), divert (quarantine sink), warn (audit only).
    • Active threat vectors: Instruction overrides, DAN jailbreaks, system prompt leaks, obfuscated attacks.
    • Custom banned phrases blacklist.

2. Routing & Intent Dispatchers

  • Switchyard Router (switchyardNode):
    • Layer 7 adaptive balancer supporting 6 routing strategies (cost-complexity, thompson-bandit, cascade-cost, lowest-cost, lowest-latency, round-robin).
    • Capability-tier vendor model aliasing (claude-*-opus*/o3* β†’ frontier, claude-*-sonnet*/gpt-4o β†’ heavy, claude-*-haiku*/*-mini β†’ \$0.00 local simple unless strictModelMatch: true).
    • Modality-aware media intent routing (mediaIntentRouting) isolating ComfyUI synthesis and headless audio nodes from text chat while steering generative media prompts.
    • Configurable latency spillover circuit breaker (spilloverThresholdMs), upstream timeout (timeoutMs), and retry counts.
    • Token complexity boundaries and automatic code escalation.
    • Financial governance: per-request cap (maxCostPerRequest) and rolling 24-hour cloud spend cap (maxDailySpendUsd with budgetExhaustedAction: prefer-local, strict-local, or reject).
  • Speculative Cascade & Distiller (speculativeCascadeNode):
    • Dedicated 3-port orchestration node (#draft, #verifier, #shadow-student) implementing buffer-verify speculative cascades (minConfidence, maxDraftTokens) with zero corrupted half-streams.
    • Optional asynchronous #shadow-student mirroring that captures PrivacyGuard-scrubbed teacher vs. student completions into SQLite distillation_pairs for SFT and DPO JSONL export.
  • Task Router (taskRouterNode):
    • Dispatches queries based on semantic intent using Heuristic Regex, FastEmbed Similarity, or Micro-LLM classification.
    • Dynamic intent target handles: #intent-code, #intent-reasoning, #intent-fast, #intent-tools, #intent-default.
    • Routing modes: Balanced, Lowest Cost, Max Speed, Capability Match.

3. Gateways & Proxies

  • Model Gateway (modelGatewayNode):
    • OpenAI-compatible Bifrost adapter for local and upstream models.
    • In-memory semantic response cache with configurable TTL (seconds) and similarity threshold (X-Eluvix-Cache: HIT).
    • Sliding-window RPM rate limiter with automatic HTTP 429 enforcement.
    • Fallback strategies: Cheaper Tier, Same-Tier Alternative, Fail Fast.
    • Global Enterprise System Prompt Prepend.
  • Agent Gateway (agentGatewayNode):
    • Secures Model Context Protocol (MCP) and Agent-to-Agent (A2A) tool invocations.
    • Access policies: restrictive (whitelist only), permissive (internal VPC), open (public registry).
    • Tool filter modes: all, whitelist, blacklist.
    • Output PII sanitization: Scrubs sensitive data from tool returns before feeding to LLMs.
    • OpenBao Secret Mapping: Directly maps encrypted API keys into tool runtime environments.
  • Paperclip Bridge (paperclipBridgeNode):
    • Connects Switchyard to a Paperclip agent org server with priority policies (critical, high, medium, low), budget-pressure cascade thresholds, confidential/internal sensitivity floors, SecretRef-aware HMAC context signing (env:, file:, bao:, vault:, keychain: status badges & requireSignedContext), and an interactive Probe health check (POST /api/v1/paperclip/health).

4. Tools & Observability

  • MCP Tool (mcpToolNode):
    • Connects external MCP servers via SSE or stdio endpoints.
    • Execution modes: auto (immediate), confirm (human-in-the-loop), dry-run (simulation).
    • Configurable execution timeouts.
  • Observability Node (observabilityNode):
    • Multi-exporter telemetry engine: Embedded SQLite, OpenTelemetry Collector (OTLP/gRPC), Langfuse LLM Tracing, Prometheus.
    • Trace sampling rate slider (1–100%).
    • PII scrubbing from recorded traces.
    • Full request input/output capture toggle.
    • SLA latency alert threshold (ms).

5. Agents & Runtimes

  • Custom Agent (agentNode):
    • Autonomous persona definitions with system instructions and temperature controls.
    • Primary capability specialization: General, Coding, Research, Orchestration.
    • Persistent multi-turn memory toggle.
  • Agent Harness (harnessNode):
    • Integrates autonomous runtime engines: trueforge, opencode, acp, hermes.
    • Headless tool approval policies: auto-approve-readonly (permits reads, halts on writes), auto-deny, surface (interactive SSE approval prompt).
    • Configurable loop limit (maxHops: 1–5) and loop-guard stage compilation.
  • Memory Engine (memoryNode):
    • Context and long-term memory providers: openviking, mem0, claudemem, sqlite.
    • Configurable max memory token budget (100–2,000 tokens) prepended in <recalled_context>.
    • Privacy Egress Firewall: cloudMode: "filter" or cloudMode: "strip" to safeguard private memory from third-party cloud leakage.
  • Local Engine & Synthesis Nodes (ramalamaNode, comfyuiNode, lemonadeNode, vllmNode, ollamaNode):
    • RamaLama (ramalamaNode): Rootless Podman/Docker OCI inference (:8080) with --rag artifacts, SELinux isolation, --network=none air-gapping, and systemd Quadlet .container unit generation.
    • ComfyUI (comfyuiNode): Local diffusion, video, and 3D mesh DAG engine (:8188) with workflow presets (flux-txt2img, sdxl-txt2img, wan21-txt2vid, hunyuan3d-mesh), live VRAM status, local LLM prompt enhancer, and ArtCraft post-processing.
    • Audio / Voice (audioVoiceNode): Headless sovereign Speech-to-Text (speaches-whisper Faster-Whisper :8005, whisper-cpp) and Text-to-Speech (kokoro-tts :8880, piper-tts) runtime node powering /api/v1/audio/transcriptions and /api/v1/audio/speech.
    • Ollama / vLLM / Lemonade: Local GPU/NPU-accelerated runtimes with priority scoring, max parallel concurrency, and context window limits.
  • Cloud Providers & Agent CLI Nodes:
    • Google Antigravity AGY (with first-class Gemini 4 Carbon 1M context & -low/-medium/-high/-xhigh/-max effort tiers), Billama Cloud, OpenAI Direct, Anthropic Claude Direct, OpenAI Codex, Claude Code.

Multi-Target Compiler (compiler.ts)

Clicking "Compile & Save" converts visual graph connections into synchronized configuration artifacts:

| Configuration Artifact | Target System | Description | | :--- | :--- | :--- | | eluvix.json | @eluvix/router-core | Master runtime routing, modality policies, spend caps, guards, and caching | | bifrost.yaml | Bifrost Proxy | Upstream model routing, caching, rate limits, and fallback policies | | eluvix-ramalama.container | Podman Quadlet / systemd | Rootless OCI container unit generated when ramalamaNode is present | | agent-router.json | Agent Router | Intent classification engines, routing preference, and intent targets | | semantic-router.ts | Semantic Router | Embedding classifier routes, sensitivity thresholds, and threat vectors | | privacy-guard.ts | Privacy Guard | PII entity detection, redaction styles, whitelist, and custom regex | | agent-gateway.json | Agent Gateway | MCP access policies, tool filter lists, timeouts, and sanitization | | observability.ts | OpenTelemetry / Braintrust | Telemetry collector endpoints, sampling rates, and SLA alerts | | antigravity.yaml | Google AGY | Antigravity agent CLI execution mode, Gemini 4 Carbon effort, and sandboxes | | codex.json | OpenAI Codex | Codex CLI toolchain, reasoning effort, and approval policies | | claudecode.json | Claude Code | Claude Code permissions, tool toggles, and token budgets |

Compiled configurations are applied authoritatively via POST /api/v1/config?authoritative=1 (hot-reloading ~/.config/eluvix/config.json without downtime) and can be deployed across all four orchestration tiers via POST /api/orchestrator/deploy:

  • Local Native Host (local): Validates, backs up (0o600), persists ~/.config/eluvix/config.json, syncs OpenCode models, and pushes live updates to local Switchyard (:8080).
  • Standalone Docker (docker): Writes secret-redacted runtime artifacts (eluvix.json, bifrost.yaml, routing.json, gateway.json) to docker/runtime-config/ (mounted read-only at /config), builds/recreates only the minimal containers required by the canvas topology, and verifies /health.
  • Docker Compose (compose): Writes the secret-redacted runtime bundle to docker/runtime-config/, runs GPU detection, recreates the core control plane (switchyard, vllm-sr, agent-router, agentgateway) plus topology-required and already-running Compose services (never pulling unused CUDA-only sglang), and verifies container health.
  • k3d / Helm Cluster (k3d): Validates the graph, starts stopped clusters or builds/imports local :latest images on creation, injects secret-redacted routingConfig Helm values, and triggers rolling pod restarts via checksum/config ConfigMap annotations.