| |
| """ |
| 📊 PHASE 5 ECOSYSTEM STATUS CHECK |
| Quick verification of Phase 5 implementation. |
| """ |
|
|
| import sys |
| from pathlib import Path |
| from datetime import datetime |
|
|
| def check_phase5_status(): |
| """Check Phase 5 implementation status""" |
| print("\n" + "="*80) |
| print("📊 PHASE 5 IMPLEMENTATION STATUS") |
| print("="*80) |
| |
| checks = [] |
| |
| |
| ecosystem_file = Path("intelligence/ecosystem_authority.py") |
| if ecosystem_file.exists(): |
| size_kb = ecosystem_file.stat().st_size / 1024 |
| checks.append(("Ecosystem Authority", f"✅ {size_kb:.1f} KB", True)) |
| else: |
| checks.append(("Ecosystem Authority", "❌ Missing", False)) |
| |
| |
| test_file = Path("test_ecosystem.py") |
| if test_file.exists(): |
| checks.append(("Test Script", "✅ Present", True)) |
| else: |
| checks.append(("Test Script", "❌ Missing", False)) |
| |
| |
| launch_file = Path("launch_phase5.bat") |
| if launch_file.exists(): |
| checks.append(("Launch Script", "✅ Present", True)) |
| else: |
| checks.append(("Launch Script", "❌ Missing", False)) |
| |
| |
| auto_files = [ |
| Path("autonomous/core/autonomous_core.py"), |
| Path("autonomous/platform/main.py"), |
| Path("autonomous/launch.bat") |
| ] |
| auto_exists = all(f.exists() for f in auto_files) |
| if auto_exists: |
| checks.append(("Autonomous Platform", "✅ Operational", True)) |
| else: |
| checks.append(("Autonomous Platform", "❌ Incomplete", False)) |
| |
| |
| archive_dirs = [d for d in Path(".").iterdir() if d.is_dir() and "archive_before_phase5" in d.name] |
| if archive_dirs: |
| archive = archive_dirs[0] |
| file_count = len(list(archive.iterdir())) |
| checks.append(("Cleanup Archive", f"✅ {file_count} files", True)) |
| else: |
| checks.append(("Cleanup Archive", "⚠️ Not found", False)) |
| |
| |
| print("\nCOMPONENT STATUS") |
| print("-" * 40) |
| |
| passed = 0 |
| for name, status, ok in checks: |
| print(f"{name:20} {status}") |
| if ok: |
| passed += 1 |
| |
| |
| print("\n" + "="*80) |
| print("📈 SUMMARY") |
| print("="*80) |
| |
| score = (passed / len(checks)) * 100 |
| print(f"Components Ready: {passed}/{len(checks)}") |
| print(f"Implementation Score: {score:.1f}%") |
| |
| if score >= 100: |
| print("\n✅ PHASE 5: FULLY IMPLEMENTED") |
| print(" All components present and ready") |
| elif score >= 80: |
| print("\n⚠️ PHASE 5: MOSTLY IMPLEMENTED") |
| print(" Minor components may be missing") |
| elif score >= 60: |
| print("\n🔧 PHASE 5: PARTIALLY IMPLEMENTED") |
| print(" Core components present") |
| else: |
| print("\n❌ PHASE 5: INCOMPLETE") |
| print(" Significant components missing") |
| |
| print("\n🧭 NEXT ACTIONS:") |
| if score >= 80: |
| print(" 1. Run: launch_phase5.bat") |
| print(" 2. Test: python test_ecosystem.py") |
| print(" 3. Verify: python intelligence/ecosystem_authority.py") |
| else: |
| print(" 1. Review missing components above") |
| print(" 2. Re-run setup scripts") |
| print(" 3. Check archive_before_phase5 directory") |
| |
| return score >= 80 |
|
|
| if __name__ == "__main__": |
| ready = check_phase5_status() |
| sys.exit(0 if ready else 1) |
|
|