diff --git "a/app.py" "b/app.py" --- "a/app.py" +++ "b/app.py" @@ -1,8 +1,7 @@ -""" +continue where the previous AI agent left off: """ π ARF Ultimate Investor Demo v3.8.0 - ENTERPRISE EDITION -MODULAR VERSION - Fixed with working visualizations and readable theme -ULTIMATE FIXED VERSION with all critical issues resolved -NOW WITH TRUE ARF v3.3.7 INTEGRATION AND WORKING VISUALIZATIONS +ENHANCED VERSION WITH CLEAR BOUNDARIES AND RELIABLE VISUALIZATIONS +Fixed to show clear OSS vs Enterprise boundaries with architectural honesty """ import logging @@ -33,12 +32,207 @@ logger = logging.getLogger(__name__) sys.path.insert(0, str(Path(__file__).parent)) # =========================================== -# ARF INSTALLATION CHECK SYSTEM - NEW +# BOUNDARY MANAGEMENT SYSTEM - NEW CRITICAL ADDITION +# =========================================== +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""" +
+ Action: {action}
+ Mode: Enterprise Simulation (not real execution)
+ Boundary: OSS advises β Enterprise would execute
+
+ In production, Enterprise edition would execute against real infrastructure +
+
+ Action: {action}
+ Mode: Enterprise Autonomous
+ Boundary: Real execution with safety guarantees
+
pip install plotly
+ {description}
Clear boundaries: OSS advises β Enterprise executes
+Error: {str(e)[:80]}...
-{status}
-ARF OSS v3.3.7 is advisory-only. Cannot execute in Advisory mode.
-Upgrade to Enterprise for:
-Mode: Enterprise Approval
Action: Scale Redis cluster from 3 to 5 nodes
Estimated Savings: ${savings:,}
+ +Enterprise Features Used: Approval workflows, Audit trail, Compliance checks
+
+ Architecture: {boundaries['oss']['label']} β {boundaries['enterprise']['label']}
+ Boundary: Advisory analysis β Approval workflow β Execution
+
Action Executed: Scaled Redis cluster from 3 to 5 nodes
Recovery Time: 12 minutes (vs 45 min manual)
Cost Saved: ${savings:,}
+ +Enterprise+ Features Used: Novel execution protocols, Rollback guarantees, Deterministic confidence, Business-aware execution
+
+ Architecture Executed: {boundaries['oss']['label']} β {boundaries['enterprise']['label']}
+ Boundary Crossed: Advisory β Autonomous execution
+
Scenario: {scenario_name}
Error: {execution_result.get('message', 'Unknown error')}
-This is a simulation. Real Enterprise execution requires arf_enterprise package.
++ Boundary Context: This is a simulation. Real {boundaries['enterprise']['label']} execution requires infrastructure access. +
Scenario: {scenario_name}
Error: {str(e)}
-This is a simulation. Real execution requires Enterprise license.
++ Boundary Context: Failed at OSSβEnterprise boundary. Real execution requires {boundaries['enterprise']['label']} license. +
+ ARF v3.3.7 β’ OSS advises β Enterprise executes +
+Scenario: {scenario_name}
-Workflow: OSS Analysis β Enterprise Execution
-Time Saved: 33 minutes (73% faster)
-Cost Avoided: ${savings:,}
-
- True ARF v3.3.7 Showcase:
- β’ OSS: agentic-reliability-framework==3.3.7 (advisory)
- β’ Enterprise: arf_enterprise (autonomous execution)
- β’ Clear boundary: OSS advises, Enterprise executes
-
Choose an incident scenario from the dropdown to begin analysis
-Error: """ + str(e) + """
+Troubleshooting Steps:
+