System Architecture
KEK is a multi-agent trading intelligence system built on three interconnected platforms. Its architecture is designed to generate, evolve, and execute trading strategies that adapt to changing market conditions — with clear separation between intelligence, execution, and custody.
What this covers
- KEK's three-platform architecture
- How agents, data, and quantitative evaluation work together
- The Memory Layer for persistent AI context
- Data flow and system boundaries
- The meta-learning feedback cycle
- Custody separation and non-custodial design
Three-Platform Architecture
KEK is structured around three core platforms, each with distinct responsibilities:
1. Agent Platform
Multi-agent orchestration with specialized agents for research, strategy, risk, execution, and meta-coordination.
- Specialized agent roles — each agent has a distinct reasoning domain (regime detection, narrative analysis, asset relevance, strategy synthesis)
- Structured inter-agent communication — agents coordinate through the Model Context Protocol (MCP), not ad-hoc prompts
- Cross-validation — agents challenge and refine each other's analysis before any strategy is produced
- Coordinated decision-making — not a single model prompted repeatedly, but a system of specialized reasoners working together
This is fundamentally different from single-model systems. Each agent brings domain-specific reasoning, and the coordination layer ensures their outputs are coherent and cross-validated.
2. Data Platform
The context layer that gives agents something worth reasoning about. Raw market data is transformed into structured, hierarchical intelligence.
- Hierarchical intelligence structuring — from tick data to regime classifications to narrative signals, structured across timeframes
- Context-aware retrieval — agents query structured intelligence, not raw feeds, enabling multi-level reasoning
- Narrative and regime detection — cross-asset relationships, thematic signals, and structural indicators are extracted and maintained
- Real-time signal enrichment — continuous processing ensures agents reason over current market meaning, not stale snapshots
The Data Platform exists so agents reason over meaning, not noise.
3. Quant Platform
Evolutionary strategy generation, optimization, simulation, and robustness evaluation.
- Evolutionary strategy generation — strategies are generated and evolved through multi-objective optimization, not just manually defined
- Monte Carlo simulation and walk-forward testing — robustness is measured across thousands of scenarios
- Multi-objective evaluation — strategies are scored across Sharpe, Sortino, Calmar, and custom fitness functions simultaneously
- Regime-aware adaptation — strategy parameters adapt to detected market conditions
The Quant Platform produces strategies that are designed to perform across conditions — not just the window they were optimized for.
Supporting Layers
Products Layer
Purpose: User-facing interfaces built on top of the three platforms
- KEK Terminal — Strategy intelligence environment for research, generation, optimization, and monitoring
- KEK Mix — The orchestration engine that coordinates agents, data, and quant evaluation
- KEK DEX — Optional execution interface, non-custodial
Products are surfaces on the intelligence system — not independent trading engines.
Meta-Learning & Drift Tracking
Purpose: Monitor performance and refine strategies over time
- Performance Snapshots — Periodic tracking of key metrics against baselines
- Drift Detection — Identifies performance degradation or regime changes using statistical methods
- Refinement Triggers — Initiates re-optimization or variant generation when drift exceeds thresholds
- Feedback Cycle — Informs the Agent and Quant Platforms with observed outcomes
Meta-learning improves generation quality over time but does not promise continuous profitability.
Execution & Custody
Purpose: Optional, user-authorized trade execution via external infrastructure
KEK integrates with non-custodial execution rails for omnichain orderbook execution. The execution infrastructure uses a three-layer architecture:
Asset Layer (User Custody)
User funds remain in smart contract vaults on their native chain (Arbitrum, Optimism, Base, Solana, etc.). Only the user's wallet signature can authorize withdrawals.
Settlement Layer
A dedicated settlement chain maintains the ledger of all transactions, balances, and trading activity. Periodic rollups to Ethereum provide finality.
Engine Layer (Off-Chain Matching)
A high-performance matching engine provides CEX-like speed while all orders require cryptographic signatures verified on-chain.
Custody guarantees:
- Users retain custody at all times — KEK cannot move funds
- Every trade requires explicit wallet signature
- Even if the operator is compromised, funds remain safe (signature verification prevents unauthorized orders)
- Omnichain trading without asset bridging (only messages cross chains)
Detailed mechanics are available in private technical materials.
Execution is external to KEK's core intelligence system.
Core Design Principles
Intelligence-First
KEK is an intelligence system, not an execution platform. Its primary purpose is to generate, evolve, and adapt strategies through coordinated multi-agent reasoning and quantitative evaluation.
Execution is a capability the system supports — not its identity.
Separation of Concerns
Each platform has a well-defined purpose:
- Agent Platform generates intelligence through multi-agent coordination
- Data Platform structures market context for agent reasoning
- Quant Platform evaluates, optimizes, and evolves strategies
- Execution is handled by external, non-custodial infrastructure
This separation ensures KEK does not custody funds, initiate trades autonomously, or blend strategy generation with execution.
Non-Custodial by Design
KEK never controls user funds or private keys:
- All evaluation runs in simulation
- Execution happens via external, non-custodial execution rails
- Users authorize trades explicitly through their own custody solution
- KEK provides intelligence, not custody or execution authority
Strategy Generation, Not Capital Allocation
KEK generates and evolves trading strategies. It does not make capital allocation decisions for users. Strategy intelligence is produced for human judgment — the system does not decide what "deserves" capital.
Execution is Optional
Strategies produced through KEK may be used in multiple ways:
- Manual trading informed by generated signals
- External bots consuming KEK strategy specs
- Optional live execution via non-custodial DEX integration
Users decide if, when, and how to deploy capital.
Data Flow
Strategy Generation and Evaluation
- Data Platform structures market context (regimes, narratives, signals)
- Agent Platform coordinates specialized agents to analyze context and generate strategy candidates
- Quant Platform evaluates candidates through evolutionary optimization, simulation, and robustness testing
- Top performers advance to paper-trading environments for real-market observation
- Performance data feeds back into the system, driving the next generation of strategy evolution
Intelligence to Optional Execution
- User reviews strategy intelligence outputs (evaluation results, paper trading metrics)
- User decides whether to deploy capital
- If executing, user authorizes trades via non-custodial infrastructure
- KEK does not execute trades autonomously
- Execution layer (external) handles order placement and fills
Meta-Learning Feedback
- Performance snapshots are captured periodically
- Drift detection compares current vs. expected performance
- If drift detected, refinement is triggered
- Re-optimization generates new variants or adjustments
- New candidates enter the evaluation cycle
This feedback cycle improves strategy generation over time but does not eliminate risk.
Intelligence Layer Detail
MCP Agent Server
The Model Context Protocol (MCP) is an open standard that enables secure connections between AI systems and external data sources. KEK's MCP Agent Server orchestrates specialized agents through three primitives:
- Tools — Executable functions that agents can invoke (query data, run analysis, generate strategies)
- Resources — Read-only data sources (market feeds, knowledge bases, performance metrics)
- Prompts — Templated workflows for common operations (strategy analysis, risk assessment)
This coordination model ensures agents share context consistently and operate through structured interfaces rather than hidden state.
Knowledge Network
The Knowledge Network provides domain-specific intelligence including market regime analysis, narrative tracking, and signal aggregation. It supplies structured context to all agents through the MCP interface.
Memory Layer
The Memory Layer provides persistent context through two complementary systems:
- Persistent Memory Layer — User and agent memory for preferences, past outcomes, and personalized context (sub-50ms retrieval)
- Knowledge Graph — Temporal knowledge graph for time-aware facts and evolving relationships (bi-temporal model)
Memory enables agents to maintain context across sessions without exceeding context window limits. For detailed documentation, see Memory Layer.
Strategy Synthesis
Intelligence outputs are deterministic, machine-readable strategy definitions (JSON specs). They describe intent, not execution commands.
Quant Platform Detail
Backtesting & Optimization Engine
KEK uses a high-speed, vectorized backtesting engine for strategy evaluation. Its vectorized approach enables testing thousands of parameter combinations simultaneously — 1,000,000 backtests can complete in approximately 20 seconds. This enables:
- Rapid parameter optimization across large search spaces
- Walk-forward analysis to prevent overfitting
- Multi-objective evaluation (Sharpe, Sortino, max drawdown, etc.)
For high-fidelity simulation requiring event-driven execution realism, KEK also uses Nautilus Trader.
Paper Trading
Real-time simulation under live market conditions observes:
- Signal timing and execution behavior
- Slippage and liquidity sensitivity
- Strategy stability across regime transitions
Time-Series Database
All evaluation artifacts are stored in a time-series database optimized for high-performance analytics:
- Automatic partitioning — Time-based partitioning for fast queries
- Compression — 90%+ storage reduction for historical data
- Continuous aggregates — Real-time materialized views for monitoring dashboards
This serves as KEK's source of truth for strategy records, evaluation outputs, paper trading metrics, and monitoring signals.
Risk Controls
Structural risk controls enforce leverage limits, position sizing constraints, and drawdown thresholds before any strategy becomes eligible for execution.
Simulation results are not guarantees of live performance.
System Boundaries
What KEK Does
- Generates trading strategies through multi-agent intelligence
- Evolves strategies through evolutionary optimization
- Evaluates strategies through quantitative simulation and robustness testing
- Monitors performance and detects drift
- Adapts to changing market conditions through continuous feedback
What KEK Does Not Do
- Custody user funds or control private keys
- Execute trades autonomously without user authorization
- Make capital allocation decisions for users
- Guarantee strategy performance or profitability
- Provide investment advice or financial recommendations
Security and Trust Model
KEK's architecture enforces separation between intelligence and execution:
- No custody — KEK cannot access user funds
- No autonomous execution — Trades require explicit user authorization
- Transparent limitations — Evaluation outputs do not guarantee future results
- Open monitoring — Performance drift is tracked and disclosed
Intelligence reduces uncertainty. It does not eliminate risk.
Capital Strategy
Capital Strategy & Economics
For approved parties, detailed financial modeling and deployment strategy are available in the Investor Room.