Add comprehensive documentation and final improvements

Documentation Added:
- AI_INSIGHTS_DEMO_SETUP_GUIDE.md: Complete setup guide for demo sessions
- AI_INSIGHTS_DATA_FLOW.md: Architecture and data flow diagrams
- AI_INSIGHTS_QUICK_START.md: Quick reference guide
- DEMO_SESSION_ANALYSIS_REPORT.md: Detailed analysis of demo session d67eaae4
- ROOT_CAUSE_ANALYSIS_AND_FIXES.md: Complete analysis of 8 issues (6 fixed, 2 analyzed)
- COMPLETE_FIX_SUMMARY.md: Executive summary of all fixes
- FIX_MISSING_INSIGHTS.md: Forecasting and procurement fix guide
- FINAL_STATUS_SUMMARY.md: Status overview
- verify_fixes.sh: Automated verification script
- enhance_procurement_data.py: Procurement data enhancement script

Service Improvements:
- Demo session cleanup worker: Use proper settings for Redis configuration with TLS/auth
- Procurement service: Add Redis initialization with proper error handling and cleanup
- Production fixture: Remove duplicate worker assignments (cleaned 56 duplicates)
- Orchestrator fixture: Add purchase order metadata for better tracking

Impact:
- Complete documentation for troubleshooting and setup
- Improved Redis connection handling across services
- Clean production data without duplicates
- Better error handling and logging

🤖 Generated with Claude Code (https://claude.com/claude-code)

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
This commit is contained in:
Urtzi Alfaro
2025-12-16 11:32:45 +01:00
parent 4418ff0876
commit 9f3b39bd28
14 changed files with 3982 additions and 60 deletions

View File

@@ -448,7 +448,6 @@
"30000000-0000-0000-0000-000000000001"
],
"staff_assigned": [
"50000000-0000-0000-0000-000000000001",
"50000000-0000-0000-0000-000000000001"
],
"station_id": "STATION-01",
@@ -510,7 +509,6 @@
"30000000-0000-0000-0000-000000000001"
],
"staff_assigned": [
"50000000-0000-0000-0000-000000000001",
"50000000-0000-0000-0000-000000000001"
],
"station_id": "STATION-02",
@@ -563,7 +561,6 @@
"30000000-0000-0000-0000-000000000001"
],
"staff_assigned": [
"c1a2b3c4-d5e6-47a8-b9c0-d1e2f3a4b5c6",
"c1a2b3c4-d5e6-47a8-b9c0-d1e2f3a4b5c6"
],
"station_id": "STATION-01",
@@ -625,7 +622,6 @@
"30000000-0000-0000-0000-000000000002"
],
"staff_assigned": [
"50000000-0000-0000-0000-000000000001",
"50000000-0000-0000-0000-000000000001"
],
"station_id": "STATION-02",
@@ -678,7 +674,6 @@
"30000000-0000-0000-0000-000000000001"
],
"staff_assigned": [
"c1a2b3c4-d5e6-47a8-b9c0-d1e2f3a4b5c6",
"c1a2b3c4-d5e6-47a8-b9c0-d1e2f3a4b5c6"
],
"station_id": "STATION-01",
@@ -732,7 +727,6 @@
"30000000-0000-0000-0000-000000000001"
],
"staff_assigned": [
"c1a2b3c4-d5e6-47a8-b9c0-d1e2f3a4b5c6",
"c1a2b3c4-d5e6-47a8-b9c0-d1e2f3a4b5c6"
],
"station_id": "STATION-02",
@@ -785,7 +779,6 @@
"30000000-0000-0000-0000-000000000001"
],
"staff_assigned": [
"c1a2b3c4-d5e6-47a8-b9c0-d1e2f3a4b5c6",
"c1a2b3c4-d5e6-47a8-b9c0-d1e2f3a4b5c6"
],
"station_id": "STATION-01",
@@ -838,7 +831,6 @@
"30000000-0000-0000-0000-000000000001"
],
"staff_assigned": [
"c1a2b3c4-d5e6-47a8-b9c0-d1e2f3a4b5c6",
"c1a2b3c4-d5e6-47a8-b9c0-d1e2f3a4b5c6"
],
"station_id": "STATION-01",
@@ -892,7 +884,6 @@
"30000000-0000-0000-0000-000000000001"
],
"staff_assigned": [
"c1a2b3c4-d5e6-47a8-b9c0-d1e2f3a4b5c6",
"c1a2b3c4-d5e6-47a8-b9c0-d1e2f3a4b5c6"
],
"station_id": "STATION-02",
@@ -945,7 +936,6 @@
"30000000-0000-0000-0000-000000000001"
],
"staff_assigned": [
"c1a2b3c4-d5e6-47a8-b9c0-d1e2f3a4b5c6",
"c1a2b3c4-d5e6-47a8-b9c0-d1e2f3a4b5c6"
],
"station_id": "STATION-02",
@@ -998,7 +988,6 @@
"30000000-0000-0000-0000-000000000001"
],
"staff_assigned": [
"c1a2b3c4-d5e6-47a8-b9c0-d1e2f3a4b5c6",
"c1a2b3c4-d5e6-47a8-b9c0-d1e2f3a4b5c6"
],
"station_id": "STATION-01",
@@ -1051,7 +1040,6 @@
"30000000-0000-0000-0000-000000000001"
],
"staff_assigned": [
"50000000-0000-0000-0000-000000000001",
"50000000-0000-0000-0000-000000000001"
],
"station_id": "STATION-01",
@@ -1105,7 +1093,6 @@
"30000000-0000-0000-0000-000000000001"
],
"staff_assigned": [
"c1a2b3c4-d5e6-47a8-b9c0-d1e2f3a4b5c6",
"c1a2b3c4-d5e6-47a8-b9c0-d1e2f3a4b5c6"
],
"station_id": "STATION-02",
@@ -1158,7 +1145,6 @@
"30000000-0000-0000-0000-000000000001"
],
"staff_assigned": [
"50000000-0000-0000-0000-000000000001",
"50000000-0000-0000-0000-000000000001"
],
"station_id": "STATION-01",
@@ -1728,7 +1714,6 @@
"30000000-0000-0000-0000-000000000001"
],
"staff_assigned": [
"50000000-0000-0000-0000-000000000005",
"50000000-0000-0000-0000-000000000005"
],
"station_id": "STATION-01",
@@ -1789,7 +1774,6 @@
"30000000-0000-0000-0000-000000000002"
],
"staff_assigned": [
"50000000-0000-0000-0000-000000000005",
"50000000-0000-0000-0000-000000000005"
],
"station_id": "STATION-02",
@@ -1850,7 +1834,6 @@
"30000000-0000-0000-0000-000000000003"
],
"staff_assigned": [
"50000000-0000-0000-0000-000000000005",
"50000000-0000-0000-0000-000000000005"
],
"station_id": "STATION-03",
@@ -1911,7 +1894,6 @@
"30000000-0000-0000-0000-000000000002"
],
"staff_assigned": [
"50000000-0000-0000-0000-000000000005",
"50000000-0000-0000-0000-000000000005"
],
"station_id": "STATION-02",
@@ -1972,7 +1954,6 @@
"30000000-0000-0000-0000-000000000001"
],
"staff_assigned": [
"50000000-0000-0000-0000-000000000005",
"50000000-0000-0000-0000-000000000005"
],
"station_id": "STATION-01",
@@ -2033,7 +2014,6 @@
"30000000-0000-0000-0000-000000000002"
],
"staff_assigned": [
"50000000-0000-0000-0000-000000000005",
"50000000-0000-0000-0000-000000000005"
],
"station_id": "STATION-02",
@@ -2094,7 +2074,6 @@
"30000000-0000-0000-0000-000000000003"
],
"staff_assigned": [
"50000000-0000-0000-0000-000000000005",
"50000000-0000-0000-0000-000000000005"
],
"station_id": "STATION-03",
@@ -2155,7 +2134,6 @@
"30000000-0000-0000-0000-000000000002"
],
"staff_assigned": [
"50000000-0000-0000-0000-000000000005",
"50000000-0000-0000-0000-000000000005"
],
"station_id": "STATION-02",
@@ -2216,7 +2194,6 @@
"30000000-0000-0000-0000-000000000001"
],
"staff_assigned": [
"50000000-0000-0000-0000-000000000005",
"50000000-0000-0000-0000-000000000005"
],
"station_id": "STATION-01",
@@ -2277,7 +2254,6 @@
"30000000-0000-0000-0000-000000000002"
],
"staff_assigned": [
"50000000-0000-0000-0000-000000000005",
"50000000-0000-0000-0000-000000000005"
],
"station_id": "STATION-02",
@@ -2338,7 +2314,6 @@
"30000000-0000-0000-0000-000000000003"
],
"staff_assigned": [
"50000000-0000-0000-0000-000000000001",
"50000000-0000-0000-0000-000000000001"
],
"station_id": "STATION-03",
@@ -2399,7 +2374,6 @@
"30000000-0000-0000-0000-000000000002"
],
"staff_assigned": [
"50000000-0000-0000-0000-000000000005",
"50000000-0000-0000-0000-000000000005"
],
"station_id": "STATION-02",
@@ -2460,7 +2434,6 @@
"30000000-0000-0000-0000-000000000001"
],
"staff_assigned": [
"50000000-0000-0000-0000-000000000006",
"50000000-0000-0000-0000-000000000006"
],
"station_id": "STATION-01",
@@ -2764,7 +2737,6 @@
"30000000-0000-0000-0000-000000000002"
],
"staff_assigned": [
"50000000-0000-0000-0000-000000000006",
"50000000-0000-0000-0000-000000000006"
],
"station_id": "STATION-02",
@@ -2977,7 +2949,6 @@
"30000000-0000-0000-0000-000000000002"
],
"staff_assigned": [
"50000000-0000-0000-0000-000000000005",
"50000000-0000-0000-0000-000000000005"
],
"station_id": "STATION-02",
@@ -3099,7 +3070,6 @@
"30000000-0000-0000-0000-000000000002"
],
"staff_assigned": [
"50000000-0000-0000-0000-000000000005",
"50000000-0000-0000-0000-000000000005"
],
"station_id": "STATION-02",
@@ -3160,7 +3130,6 @@
"30000000-0000-0000-0000-000000000001"
],
"staff_assigned": [
"50000000-0000-0000-0000-000000000006",
"50000000-0000-0000-0000-000000000006"
],
"station_id": "STATION-01",
@@ -3221,7 +3190,6 @@
"30000000-0000-0000-0000-000000000002"
],
"staff_assigned": [
"50000000-0000-0000-0000-000000000005",
"50000000-0000-0000-0000-000000000005"
],
"station_id": "STATION-02",
@@ -3282,7 +3250,6 @@
"30000000-0000-0000-0000-000000000003"
],
"staff_assigned": [
"50000000-0000-0000-0000-000000000005",
"50000000-0000-0000-0000-000000000005"
],
"station_id": "STATION-03",
@@ -3343,7 +3310,6 @@
"30000000-0000-0000-0000-000000000002"
],
"staff_assigned": [
"50000000-0000-0000-0000-000000000005",
"50000000-0000-0000-0000-000000000005"
],
"station_id": "STATION-02",
@@ -3465,7 +3431,6 @@
"30000000-0000-0000-0000-000000000002"
],
"staff_assigned": [
"50000000-0000-0000-0000-000000000005",
"50000000-0000-0000-0000-000000000005"
],
"station_id": "STATION-02",
@@ -3526,7 +3491,6 @@
"30000000-0000-0000-0000-000000000003"
],
"staff_assigned": [
"50000000-0000-0000-0000-000000000006",
"50000000-0000-0000-0000-000000000006"
],
"station_id": "STATION-03",
@@ -3587,7 +3551,6 @@
"30000000-0000-0000-0000-000000000002"
],
"staff_assigned": [
"50000000-0000-0000-0000-000000000005",
"50000000-0000-0000-0000-000000000005"
],
"station_id": "STATION-02",
@@ -3648,7 +3611,6 @@
"30000000-0000-0000-0000-000000000001"
],
"staff_assigned": [
"50000000-0000-0000-0000-000000000005",
"50000000-0000-0000-0000-000000000005"
],
"station_id": "STATION-01",
@@ -3770,7 +3732,6 @@
"30000000-0000-0000-0000-000000000003"
],
"staff_assigned": [
"50000000-0000-0000-0000-000000000001",
"50000000-0000-0000-0000-000000000001"
],
"station_id": "STATION-03",
@@ -3892,7 +3853,6 @@
"30000000-0000-0000-0000-000000000001"
],
"staff_assigned": [
"50000000-0000-0000-0000-000000000005",
"50000000-0000-0000-0000-000000000005"
],
"station_id": "STATION-01",
@@ -3953,7 +3913,6 @@
"30000000-0000-0000-0000-000000000002"
],
"staff_assigned": [
"50000000-0000-0000-0000-000000000005",
"50000000-0000-0000-0000-000000000005"
],
"station_id": "STATION-02",
@@ -4136,7 +4095,6 @@
"30000000-0000-0000-0000-000000000001"
],
"staff_assigned": [
"50000000-0000-0000-0000-000000000001",
"50000000-0000-0000-0000-000000000001"
],
"station_id": "STATION-01",
@@ -4197,7 +4155,6 @@
"30000000-0000-0000-0000-000000000002"
],
"staff_assigned": [
"50000000-0000-0000-0000-000000000005",
"50000000-0000-0000-0000-000000000005"
],
"station_id": "STATION-02",
@@ -4258,7 +4215,6 @@
"30000000-0000-0000-0000-000000000003"
],
"staff_assigned": [
"50000000-0000-0000-0000-000000000005",
"50000000-0000-0000-0000-000000000005"
],
"station_id": "STATION-03",
@@ -4502,7 +4458,6 @@
"30000000-0000-0000-0000-000000000003"
],
"staff_assigned": [
"50000000-0000-0000-0000-000000000005",
"50000000-0000-0000-0000-000000000005"
],
"station_id": "STATION-03",
@@ -4563,7 +4518,6 @@
"30000000-0000-0000-0000-000000000002"
],
"staff_assigned": [
"50000000-0000-0000-0000-000000000005",
"50000000-0000-0000-0000-000000000005"
],
"station_id": "STATION-02",
@@ -4746,7 +4700,6 @@
"30000000-0000-0000-0000-000000000003"
],
"staff_assigned": [
"50000000-0000-0000-0000-000000000006",
"50000000-0000-0000-0000-000000000006"
],
"station_id": "STATION-03",
@@ -4807,7 +4760,6 @@
"30000000-0000-0000-0000-000000000002"
],
"staff_assigned": [
"50000000-0000-0000-0000-000000000005",
"50000000-0000-0000-0000-000000000005"
],
"station_id": "STATION-02",
@@ -4868,7 +4820,6 @@
"30000000-0000-0000-0000-000000000001"
],
"staff_assigned": [
"50000000-0000-0000-0000-000000000005",
"50000000-0000-0000-0000-000000000005"
],
"station_id": "STATION-01",
@@ -4929,7 +4880,6 @@
"30000000-0000-0000-0000-000000000002"
],
"staff_assigned": [
"50000000-0000-0000-0000-000000000006",
"50000000-0000-0000-0000-000000000006"
],
"station_id": "STATION-02",
@@ -5051,7 +5001,6 @@
"30000000-0000-0000-0000-000000000002"
],
"staff_assigned": [
"50000000-0000-0000-0000-000000000001",
"50000000-0000-0000-0000-000000000001"
],
"station_id": "STATION-02",
@@ -5112,7 +5061,6 @@
"30000000-0000-0000-0000-000000000001"
],
"staff_assigned": [
"50000000-0000-0000-0000-000000000005",
"50000000-0000-0000-0000-000000000005"
],
"station_id": "STATION-01",
@@ -5173,7 +5121,6 @@
"30000000-0000-0000-0000-000000000002"
],
"staff_assigned": [
"50000000-0000-0000-0000-000000000005",
"50000000-0000-0000-0000-000000000005"
],
"station_id": "STATION-02",
@@ -5356,7 +5303,6 @@
"30000000-0000-0000-0000-000000000001"
],
"staff_assigned": [
"50000000-0000-0000-0000-000000000006",
"50000000-0000-0000-0000-000000000006"
],
"station_id": "STATION-01",
@@ -5417,7 +5363,6 @@
"30000000-0000-0000-0000-000000000002"
],
"staff_assigned": [
"50000000-0000-0000-0000-000000000005",
"50000000-0000-0000-0000-000000000005"
],
"station_id": "STATION-02",
@@ -5478,7 +5423,6 @@
"30000000-0000-0000-0000-000000000003"
],
"staff_assigned": [
"50000000-0000-0000-0000-000000000005",
"50000000-0000-0000-0000-000000000005"
],
"station_id": "STATION-03",