// Workflow maintains state across execution const dataQuality = { weather: weatherCurrent.main ? 100 : 50, news: newsData.articles?.length || 0, social: socialData.tweets?.length || 0, official: officialTraffic.updates?.length || 0, routes: allRoutes.length }; // Confidence calculation based on data availability const confidenceScore = Math.min(100, (dataQuality.weather + Math.min(dataQuality.news * 10, 50) + Math.min(dataQuality.social * 2, 30) + Math.min(dataQuality.official * 15, 50) + Math.min(dataQuality.routes * 20, 40)) / 2.7 );