# SPRINT 2 # ERP DISCOVERY & KNOWLEDGE EXTRACTION ## OBJECTIVE The AI Operating System has been installed. Your task now is to understand the ERP. Do NOT modify ERP source code. Do NOT refactor. Do NOT optimize. Only analyze and document. -------------------------------------------------- STEP 1 Read the entire repository. Read application/ assets/ catalog/ documentations/ lib/ public/ system/ uploads/ workflow_ai/ Ignore logs/ vendor cache temporary files -------------------------------------------------- STEP 2 Discover project structure. Identify Modules Controllers Models Libraries Helpers Views Javascript CSS Configuration Routes Language Files Cron Jobs API Reports Imports Exports Uploads -------------------------------------------------- STEP 3 Generate Repository Inventory. Create workflow_ai/project/ RepositoryInventory.md Include Folder Purpose Owner Dependencies Risk Estimated Size -------------------------------------------------- STEP 4 Discover HMVC Modules. For every module identify Purpose Business Area Dependencies Controllers Models Views Database Tables Configuration Risk Priority Complexity Generate workflow_ai/project/ModuleCatalog.md -------------------------------------------------- STEP 5 Discover Database Usage. Without changing SQL. Identify Tables Views Triggers Stored Procedures Functions Foreign Keys Indexes Generate DatabaseCatalog.md -------------------------------------------------- STEP 6 Business Discovery. Identify Sales Purchase Inventory Accounting Finance Cash Bank Manufacturing Assets Tax HR Payroll Master Data Approval Workflow Reporting Generate BusinessCatalog.md -------------------------------------------------- STEP 7 Architecture Discovery. Identify MVC Pattern HMVC Pattern Shared Library Framework Customization Third Party Libraries Generate ArchitectureOverview.md -------------------------------------------------- STEP 8 Dependency Discovery. Generate DependencyGraph.md Include Module ↓ Controller ↓ Model ↓ Table ↓ Report -------------------------------------------------- STEP 9 Generate Knowledge Base. Create workflow_ai/knowledge/ ApplicationKnowledge.md BusinessKnowledge.md DatabaseKnowledge.md ArchitectureKnowledge.md AccountingKnowledge.md TaxKnowledge.md WorkflowKnowledge.md -------------------------------------------------- STEP 10 Self Review. Review every generated document. Merge duplicates. Improve readability. Cross reference. Generate DiscoverySummary.md -------------------------------------------------- OUTPUT Repository Inventory Module Catalog Database Catalog Business Catalog Architecture Overview Dependency Graph Knowledge Base Discovery Summary STOP. Wait for Sprint 3.