Self-Hosted Contextual Bandit in Rust: Syntra & Lycan for Adaptive Decision Systems

✍️ OpenClawRadar📅 Published: May 15, 2026🔗 Source
Self-Hosted Contextual Bandit in Rust: Syntra & Lycan for Adaptive Decision Systems
Ad

Two new open-source projects aim to bring contextual bandit functionality to production systems without a Python ML stack. Lycan is a small graph execution language where strategy nodes are a first-class primitive — you define multiple implementations of the same contract, and the runtime learns weights from outcome feedback. It compiles to a binary graph executed by a Rust runtime with no LLM in the hot path.

Syntra is a self-hosted Docker/API appliance that serves compiled Lycan capsules. Key features:

  • Multi-tenant, shadow-mode-first design
  • Contextual learning per contextKey
  • Persistent filesystem store
  • Separated audit, decision, and feedback logs
  • MVP YAML authoring layer (no need to write underlying Lisp)

The stated use cases: repeated decisions where the best option depends on context and outcome arrives later — LLM model routing, retry/timeout policy, queue selection, threshold tuning.

Ad

Dogfooding against MoEFolio.ai (a public AI stock-debate panel with 30-day market-resolved outcomes) revealed the first surprise: the contextKey schema was collapsing all sectors into unknown because the sector lookup only resolved symbols from one of three input paths. The bandit was nominally 5-dimensional but effectively 2-dimensional, learning a cross-sector average. Fixing the data pipeline, not the algorithm, is most of the work in adaptive systems.

Licensed Apache-2.0, very early stage. The author invites eyes from anyone who's worked on bandits in production.

📖 Read the full source: r/ClaudeAI

Ad

👀 See Also