""" Gradio-only UI components for ARF Ensures full compatibility with app.py Updated with proper imports and error handling NOW WITH REAL ARF INSTALLATION DETECTION """ import gradio as gr from typing import Dict, List, Any import logging logger = logging.getLogger(__name__) # Try to import scenarios from registry first try: from config.scenario_registry import ScenarioRegistry INCIDENT_SCENARIOS = ScenarioRegistry.load_scenarios() logger.info(f"Loaded {len(INCIDENT_SCENARIOS)} scenarios from registry") except ImportError: logger.warning("Scenario registry not available, falling back to demo scenarios") from demo.scenarios import INCIDENT_SCENARIOS # ----------------------------- # Header & Status - UPDATED WITH INSTALLATION CHECK # ----------------------------- def create_header(version="3.3.7", mock_mode=False) -> gr.HTML: # Try to get installation status try: from app import get_installation_badges installation_badges = get_installation_badges() except ImportError: installation_badges = """
Production-grade multi-agent AI for autonomous system reliability intelligence
{installation_badges}Click "Run OSS Analysis" to activate
Click "Run OSS Analysis" to activate
Click "Run OSS Analysis" to activate
Analysis & Advisory Only - No execution, permanently safe
Action: Scale Redis cluster from 3 to 5 nodes
Pattern Match: Similar incident resolved with scaling (87% success rate)
Safety Check: โ Passed (blast radius: 2 services)
Estimated Impact: Reduce MTTR from 45min to 12min
Full Execution & Learning - Autonomous healing with safety guarantees
Mode: Autonomous (Requires Enterprise license)
Expected Recovery: 12 minutes (vs 45 min manual)
Cost Saved: $6,375
Users Protected: 45,000 โ 0 impacted
45s
โ 89% faster than average
12m
โ 73% faster than manual
81.7%
โ 5.4ร industry average
${int(business_impact.get('revenue_loss_per_hour', 8500) * 0.85 / 1000):.1f}K
Per incident avoided
Current Mode: Advisory (OSS Only)
Switch to "Approval" mode to enable human-in-the-loop workflows
Agentic Reliability Framework ยฉ 2025
Production-grade multi-agent AI for autonomous system reliability intelligence