HomeLAB v4.0 Community

AI-powered trading analysis engine — runtime architecture

HomeLAB v4.0 Community AI-powered trading analysis engine — runtime architecture User Desktop Zone Application Core Zone Data & Persistence Zone External / Vendor Zone DeepSeek-V3 API · Cloud LLM · External / Vendor Zone · 5 departments DeepSeek-V3 API Cloud LLM 5 departments Apex Coil Meter · Volatility compression · Application Core Zone Apex Coil Meter Volatility compression Signal Observer · Signal filter · Application Core Zone Signal Observer Signal filter run_lab.py · Launcher / entry · User Desktop Zone run_lab.py Launcher / entry MetaTrader 5 · Market data source · External / Vendor Zone · JSON files MetaTrader 5 Market data source JSON files MT5 Bridge · Signal parser · Data & Persistence Zone MT5 Bridge Signal parser Orchestrator · Department router · Application Core Zone · BLACKBOARD.md Orchestrator Department router BLACKBOARD.md Genome Tracker · Cognitive state · Application Core Zone Genome Tracker Cognitive state GUI App · Tkinter desktop · User Desktop Zone GUI App Tkinter desktop Ollama · Gemma4:26B local · External / Vendor Zone · :11434 Ollama Gemma4:26B local :11434 Sovereign Monitor · Telemetry loop · Application Core Zone Sovereign Monitor Telemetry loop AgentBrain · Local LLM interface · Application Core Zone AgentBrain Local LLM interface Council Guardian · Cognitive patrol · Application Core Zone Council Guardian Cognitive patrol Backup Engine · SHA256 zip archives · Data & Persistence Zone Backup Engine SHA256 zip archives Vault Memory · Long-term memory · Data & Persistence Zone Vault Memory Long-term memory SQLite · vault_memory.db · Data & Persistence Zone SQLite vault_memory.db JSON signals TimeframeData state update render cloud LLM local LLM REST :11434 Legend External Backend Frontend Database

Orchestrator — 5 AI Departments

  • • Strategy (DeepSeek-V3 Cloud)
  • • Analyst (DeepSeek-V3 + Vault LTM)
  • • Local (Gemma4:26B via Ollama)
  • • Board (DS3+G3 hybrid consensus)
  • • Executive (DeepSeek-V3 Cloud)
  • • Shared state: BLACKBOARD.md

MT5 Bridge — Signal Ingestion

  • • Reads HomeLAB_Signal_{SYM}_{TF}.json
  • • TimeframeData: 14+ fields (price, Hebbian, VWAP, coil)
  • • Spring Release detection at bridge level
  • • Anti tick-spam deduplication filter

Council Guardian — Cognitive Patrol

  • • Detects hallucination patterns in logs
  • • Generates GuardianAlert clips (guardian_clips/)
  • • Clip types: COGNITIVE_CRISIS, EXTREME_COMPRESSION,
  • • SPRING_RELEASE, HALLUCINATIONS_BATCH
  • • Monitors Genome for cognitive drift

Genome Tracker — Central Nervous System

  • • GenomeState: generation, dna_marker, win_rate
  • • Sharpe ratio, total_trades, equity_change
  • • Cognitive tier, Hebbian trends, PPS
  • • Coil metrics integration

Vault Memory — Long-Term Storage

  • • SQLite: market_snapshots table
  • • Hebbian M1/M4/M15 + coil metrics per snapshot
  • • Temporal decay weighting, CV risk scoring
  • • Bayesian prior calculation
  • • Spring release accuracy tracking

Apex Coil Meter — Volatility Engine

  • • CoilMetrics: tightness, velocity, acceleration
  • • Power, coil_age, status
  • • Phases: LOOSE → COMPRESSING → COILED → SPRING_RELEASE
  • • Structural compression detection

AgentBrain — Local Inference

  • • Singleton per model (Gemma4:26B)
  • • Ollama REST: /api/chat, /api/generate
  • • Health check, retry, streaming
  • • Fallback model chain on failure

Backup Engine — Data Safety

  • • SHA256 verified zip archives
  • • Startup + scheduled backups
  • • Pattern: core_backup_*.zip
  • • Cloud-native upload support