- Delete infra/modules/cockpit/ and infra/live/production/cockpit/ (Scaleway Cockpit replaced by self-hosted Grafana+Prometheus+Loki+Tempo) - Delete CI-CD dashboards (foxhunt-ci-pipelines, gitlab-services) and grafana-dashboards-cicd ConfigMap from K8s - Delete config/grafana/ — unreferenced old dashboards (15 files) - Delete config/monitoring/grafana/ — unreferenced DQN staging dashboard - Delete crates/ml/grafana/ — unreferenced ML performance dashboard - Delete services/broker_gateway_service/grafana/ — unreferenced - Delete .claude/agents/devops/ci-cd/ — GitHub Actions agent (we use GitLab CI) - Fix grafana-values.yaml: dashboard folder GitLab → Foxhunt, hardcoded adminPassword → K8s secret (grafana-admin), gitlab-overview → node-exporter (correct name for gnetId 1860) - Remove CI-CD group from import.sh ConfigMap groups and API fallback Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
broker_gateway_service
Broker communication gateway with FIX 4.2/4.4 protocol, order routing, execution management, and position reconciliation via CQG.
Status: MVP (database persistence only, FIX protocol deferred to Phase 2)
Key Types
BrokerGatewayService-- main gRPC service (7 methods)SequenceManager-- FIX MsgSeqNum trackingOrderStateMachine-- order lifecycle state transitionsPositionReconciler-- 3-way sync (CQG, database, trading service)CircuitBreaker-- broker connection protection
gRPC Endpoints
RouteOrder-- submit order to brokerCancelOrder-- cancel existing orderGetOrderStatus-- query order stateGetPositions-- current account positionsStreamExecutions-- real-time execution reports
Configuration
GRPC_PORT(50056) -- gRPC listen portHEALTH_PORT(8086) -- HTTP health checkMETRICS_PORT(9096) -- Prometheus metricsDATABASE_URL-- PostgreSQL (broker_orders, broker_executions tables)REDIS_URL-- session state and sequence numbersFIX_*-- FIX session parameters (Phase 2)
Testing
SQLX_OFFLINE=true cargo test -p broker_gateway_service --lib