🤖 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: 50 rows
  • ✅ Documents: 82 rows
  • ✅ Agent Logs: 632 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: 50
  • ✅ Ready batches: 10
  • ⚠️ Review batches: 6
  • ❌ Blocked batches: 34
  • 📄 Batches with documents: 27
  • 🔍 Sample batch: BATCH-2026-26423 (Score: 0)

Document Data

✅ PASS 4/10
  • 📄 Total documents: 82
  • ✅ Verified: 82
  • ⏳ Pending: 0
  • ❌ Rejected: 0
  • 📋 Top document types:
  • - invoice: 32
  • - packing_list: 20
  • - health_cert: 15
  • - halal: 10
  • - sps: 5

Agent Logs

✅ PASS 4/10
  • 📊 Total agent logs: 632
  • - document_gap_v2: 303 logs
  • - master_controller: 8 logs
  • - supervisor: 9 logs
  • - supervisor_v2: 312 logs
  • 🕒 Recent logs:
  • - supervisor_v2: review at 2026-03-16 15:51:12
  • - supervisor_v2: blocked at 2026-03-16 15:48:14
  • - document_gap_v2: partial at 2026-03-16 14:32:25

Supervisor Agent V2

✅ PASS 5/10
  • ✅ File exists
  • ✅ Class SupervisorAgentV2 found
  • 🔍 Would test on batch #53 (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: 1,186 bytes
  • - api_apeda.log: 876 bytes
  • - api_dgft.log: 677 bytes
  • - api_fssai.log: 270 bytes
  • - api_icegate.log: 272 bytes
  • - cashfree.log: 1,359 bytes
  • - document_gap_agent.log: 55,323 bytes
  • - master_controller.log: 8,221 bytes
  • - otp.log: 449 bytes
  • - php_errors.log: 1,484 bytes
  • - profile_errors.log: 8,526 bytes
  • - readiness_agent.log: 60,036 bytes
  • - shipping_errors.log: 8,013 bytes
  • - supervisor_agent.log: 77,639 bytes
  • 📦 Total log size: 244,895 bytes
  • ⚠️ Found 89 recent errors/warnings

Performance Test

✅ PASS 7/10
  • ⏱️ Simple query time: 0.06ms
  • ✅ Query performance: Excellent
  • ⏱️ Complex query time: 1.21ms
  • ✅ Complex query: Good
  • 💾 Memory usage: 2.00 MB
  • ✅ Memory usage: Good

🔧 Quick Fixes

Debug run: 2026-03-16 21:21:58 | Server: www.pashusevak.com | PHP: 8.2.29