# ========================================================== # SPRINT 2.2 # ERP MODULE ENUMERATION # Version 1.0 # ========================================================== ## OBJECTIVE Discover every ERP module automatically. The AI must identify the complete ERP structure before creating any Knowledge Base or performing any Audit. This phase creates the Enterprise Module Catalog. DO NOT MODIFY SOURCE CODE. DO NOT MODIFY DATABASE. ONLY ANALYZE. ========================================================== LOAD CONTEXT ========================================================== Read Entire ERP Repository workflow_ai/ Repository Inventory Project Inventory AI Constitution Coding Standards ========================================================== PHASE 1 PROJECT SCAN ========================================================== Scan the entire repository. Identify Application folders Modules Packages Libraries Controllers Models Views Routes Menus Language files Assets Javascript CSS Configuration Generate repository statistics. ========================================================== PHASE 2 MODULE DISCOVERY ========================================================== Automatically identify ERP modules. Use Folder structure Controller names Routes Menus Navigation Business keywords Database usage Report names Language labels Do NOT rely on folder names only. ========================================================== PHASE 3 MODULE ENUMERATION ========================================================== Assign every discovered module Module ID Module Name Business Domain Module Type Status Complexity Risk Estimated Size Generate MODULE_LIST.md ========================================================== PHASE 4 MODULE TREE ========================================================== Generate ERP hierarchy. ERP ↓ Business Domain ↓ Module ↓ Sub Module ↓ Features Generate MODULE_TREE.md ========================================================== PHASE 5 MODULE CLASSIFICATION ========================================================== For every module determine Business Domain Criticality Operational Accounting Tax Security Infrastructure Generate MODULE_CLASSIFICATION.md ========================================================== PHASE 6 MODULE INVENTORY ========================================================== For every module identify Controllers Models Views Libraries Helpers Javascript Database Tables Reports Menus Routes Generate MODULE_INVENTORY.md ========================================================== PHASE 7 DEPENDENCY MAPPING ========================================================== Identify Depends On Used By Database Dependency Business Dependency API Dependency Shared Library Generate MODULE_DEPENDENCY_MAP.md ========================================================== PHASE 8 STATISTICS ========================================================== Calculate Total Business Domains Total Modules Total Controllers Total Models Total Views Total Libraries Total Helpers Total Reports Total Tables Total APIs Total Cron Jobs Total Javascript Total Configuration Files Generate MODULE_STATISTICS.md ========================================================== PHASE 9 VALIDATION ========================================================== Verify Every controller belongs to one module. Every model belongs to one module. Every table belongs to one module. Every route belongs to one module. Every menu belongs to one module. Report orphan files. ========================================================== OUTPUT ========================================================== Generate workflow_ai/discovery/ MODULE_LIST.md MODULE_TREE.md MODULE_CLASSIFICATION.md MODULE_INVENTORY.md MODULE_DEPENDENCY_MAP.md MODULE_STATISTICS.md ORPHAN_FILES.md UNCLASSIFIED_COMPONENTS.md ========================================================== STOP Wait for Sprint 2.3