diff --git "a/app.py" "b/app.py" --- "a/app.py" +++ "b/app.py" @@ -1,4 +1,4 @@ -continue where the previous AI agent left off: """ +# app.py - Complete fixed version π ARF Ultimate Investor Demo v3.8.0 - ENTERPRISE EDITION ENHANCED VERSION WITH CLEAR BOUNDARIES AND RELIABLE VISUALIZATIONS Fixed to show clear OSS vs Enterprise boundaries with architectural honesty @@ -32,150 +32,17 @@ logger = logging.getLogger(__name__) sys.path.insert(0, str(Path(__file__).parent)) # =========================================== -# BOUNDARY MANAGEMENT SYSTEM - NEW CRITICAL ADDITION +# IMPORT UTILITY CLASSES FIRST +# =========================================== +from utils.installation import InstallationHelper +from demo.guidance import DemoPsychologyController, get_demo_controller + +# =========================================== +# BOUNDARY MANAGEMENT SYSTEM # =========================================== class BoundaryManager: """Manages clear boundaries between OSS and Enterprise""" - - @staticmethod - def get_system_boundaries() -> Dict[str, Any]: - """Get clear system boundary definitions""" - installation = get_installation_status() - - boundaries = { - "oss": { - "available": installation["oss_installed"], - "version": installation["oss_version"] or "mock", - "license": "Apache 2.0", - "capabilities": ["advisory", "analysis", "reasoning"], - "cannot_do": ["execute", "modify_infrastructure", "autonomous_healing"], - "label": "β REAL ARF OSS" if installation["oss_installed"] else "β οΈ MOCK ARF", - "color": "#10b981" if installation["oss_installed"] else "#64748b", - "icon": "β " if installation["oss_installed"] else "β οΈ" - }, - "enterprise": { - "available": installation["enterprise_installed"], - "version": installation["enterprise_version"] or "simulated", - "license": "Commercial" if installation["enterprise_installed"] else "SIMULATED", - "capabilities": ["autonomous_execution", "rollback_guarantees", "novel_protocols"], - "requires": ["infrastructure_access", "safety_controls", "enterprise_license"], - "label": "π REAL Enterprise" if installation["enterprise_installed"] else "π SIMULATED Enterprise", - "color": "#8b5cf6" if installation["enterprise_installed"] else "#f59e0b", - "icon": "π" if installation["enterprise_installed"] else "π" - }, - "demo_mode": { - "architecture": "OSS advises β Enterprise executes", - "honesty_level": "Architecturally Honest", - "transparency": "Clear boundaries between real and simulated" - } - } - - return boundaries - - @staticmethod - def get_boundary_badges() -> str: - """Get HTML badges showing clear boundaries""" - boundaries = BoundaryManager.get_system_boundaries() - oss = boundaries["oss"] - enterprise = boundaries["enterprise"] - - return f""" -
pip install plotly
- {description}
-Clear boundaries: OSS advises β Enterprise executes
-Scenario: {scenario_name}
-Mode: Enterprise Approval
-Action: Scale Redis cluster from 3 to 5 nodes
-Estimated Savings: ${savings:,}
- - -
- Architecture: {boundaries['oss']['label']} β {boundaries['enterprise']['label']}
- Boundary: Advisory analysis β Approval workflow β Execution
-
Scenario: {scenario_name}
-Mode: Enterprise Autonomous
-Action Executed: Scaled Redis cluster from 3 to 5 nodes
-Recovery Time: 12 minutes (vs 45 min manual)
-Cost Saved: ${savings:,}
- - -
- Architecture Executed: {boundaries['oss']['label']} β {boundaries['enterprise']['label']}
- Boundary Crossed: Advisory β Autonomous execution
-
Scenario: {scenario_name}
-Error: {execution_result.get('message', 'Unknown error')}
-- Boundary Context: This is a simulation. Real {boundaries['enterprise']['label']} execution requires infrastructure access. -
-Scenario: {scenario_name}
-Error: {str(e)}
-- Boundary Context: Failed at OSSβEnterprise boundary. Real execution requires {boundaries['enterprise']['label']} license. -
-- ARF v3.3.7 β’ OSS advises β Enterprise executes -
-+ ARF v3.3.7 β’ OSS advises β Enterprise executes +
+Error: """ + str(e) + """
+Error: {str(e)}
Troubleshooting Steps: