🤖 NADIS AI Agents - Master Debug

Complete diagnostic test for all AI agents and components

Overall Score: 98/150 (65%)
Grade: C (Average)
Run Full Tests Run Master Controller Test Supervisor

Database Connection

✅ PASS 10/10
  • Connected successfully
  • Host: Localhost via UNIX socket
  • Database: wwwpashu_nadis_export

Required Tables

✅ PASS 10/10
  • ✅ Exporters: 3 rows
  • ✅ Batches: 228 rows
  • ✅ Documents: 374 rows
  • ✅ Agent Logs: 6135 rows
  • ✅ Plants: 1 rows
  • ✅ Verifications: 5 rows
  • ✅ Subscriptions: 0 rows
  • ✅ ZoonoTrack: 2 rows
  • ✅ Destination Rules: 5 rows
📊 Tables: 9/9

Agent Files

✅ PASS 10/10
  • ✅ Supervisor Agent V2: 18,236 bytes
  • ✅ Document Gap Agent V2: 16,695 bytes
  • ✅ Readiness Agent V2: 22,005 bytes
  • ✅ Traceability Agent: 6,429 bytes
  • ✅ Animal Data Agent: 25,660 bytes
  • ✅ Destination Rule Agent: 16,690 bytes
  • ✅ Master Controller: 15,239 bytes
📁 Files: 7/7

API Configuration

✅ PASS 10/10
  • ✅ DeepSeek API key configured
  • ✅ DeepSeek API connection successful
🔌 APIs: 1/3

Batch Data

✅ PASS 6/10
  • 📊 Total batches: 228
  • ✅ Ready batches: 47
  • ⚠️ Review batches: 23
  • ❌ Blocked batches: 158
  • 📄 Batches with documents: 117
  • 🔍 Sample batch: BATCH-2026-81602 (Score: 0)

Document Data

✅ PASS 4/10
  • 📄 Total documents: 374
  • ✅ Verified: 374
  • ⏳ Pending: 0
  • ❌ Rejected: 0
  • 📋 Top document types:
  • - invoice: 144
  • - packing_list: 92
  • - health_cert: 69
  • - halal: 46
  • - sps: 23

Agent Logs

✅ PASS 4/10
  • 📊 Total agent logs: 6135
  • - document_gap_v2: 2956 logs
  • - master_controller: 65 logs
  • - supervisor: 9 logs
  • - supervisor_v2: 3105 logs
  • 🕒 Recent logs:
  • - document_gap_v2: partial at 2026-04-30 17:44:39
  • - supervisor_v2: ready at 2026-04-30 17:44:39
  • - document_gap_v2: partial at 2026-04-30 17:44:39

Supervisor Agent V2

✅ PASS 5/10
  • ✅ File exists
  • ✅ Class SupervisorAgentV2 found
  • 🔍 Would test on batch #231 (dry run)

Document Gap Agent V2

✅ PASS 6/10
  • ✅ File exists
  • ✅ Class DocumentGapAgentV2 found
  • ✅ Country requirements defined

Readiness Agent V2

✅ PASS 6/10
  • ✅ File exists
  • ✅ Class ReadinessAgentV2 found
  • ✅ Score weights defined

Master Controller

✅ PASS 6/10
  • ✅ File exists
  • ✅ Class MasterAgentController found
  • ✅ runAll() method found

ML Model

✅ PASS 5/10
  • ✅ ML directory exists
  • ✅ Model file exists (16 bytes)
  • ✅ Python training script exists

File Permissions

✅ PASS 6/10
  • ✅ Agents directory: OK (writable)
  • ✅ Logs directory: OK (writable)
  • ✅ Uploads directory: OK (writable)
  • ✅ Certificates directory: OK (writable)
  • ✅ ML directory: OK (writable)
  • ✅ Models directory: OK (writable)
📁 Files: 6/6

Error Logs

⚠️ PARTIAL 3/10
  • 📊 Found 17 log files
  • - admin_errors.log: 17,696 bytes
  • - agent_document_gap.log: 412 bytes
  • - agent_readiness.log: 2,456 bytes
  • - animal_data_agent.log: 2,076 bytes
  • - api_apeda.log: 5,256 bytes
  • - api_dgft.log: 4,062 bytes
  • - api_fssai.log: 1,366 bytes
  • - api_icegate.log: 1,632 bytes
  • - cashfree.log: 7,178 bytes
  • - document_gap_agent.log: 416,604 bytes
  • - master_controller.log: 38,487 bytes
  • - otp.log: 449 bytes
  • - php_errors.log: 1,484 bytes
  • - profile_errors.log: 8,526 bytes
  • - readiness_agent.log: 630,966 bytes
  • - shipping_errors.log: 8,013 bytes
  • - supervisor_agent.log: 471,877 bytes
  • 📦 Total log size: 1,618,540 bytes
  • ⚠️ Found 148 recent errors/warnings

Performance Test

✅ PASS 7/10
  • ⏱️ Simple query time: 0.08ms
  • ✅ Query performance: Excellent
  • ⏱️ Complex query time: 12.67ms
  • ✅ Complex query: Good
  • 💾 Memory usage: 4.00 MB
  • ✅ Memory usage: Good

🔧 Quick Fixes

Debug run: 2026-05-01 00:35:19 | Server: www.pashusevak.com | PHP: 8.2.30