All notable changes to the "Financial Digital Twin" research artifact will be documented in this file.
- Global Observability Hub: Integrated Grafana Cloud telemetry and a dedicated launch button directly into the Capacity Hub (Tab 1).
- Semantic Data Compression: Implemented 'Global Briefing' summarization pipeline to pass macro-network statistics into the AI without exceeding token limits.
- AI Intelligence Upgrade: Updated the Google Generative AI model endpoint to
gemini-2.5-flashfor enhanced reasoning, speed, and to resolve deprecation warnings. - Contextual Ingestion: Modified the RAG pipeline to dynamically inject the most recent 30 rows of time-series data (Operational, Financial, and Strategic metrics) for granular day-to-day analysis.
- UI Flow Optimization: Reordered the Streamlit application flow to Report Generation -> Global Observability -> AI Strategy Assistant.
- API Resilience: Added exponential backoff and retry logic (max 3 attempts) to gracefully handle HTTP 429 rate limits and prevent AI timeout crashes.
- UI Rendering: Fixed Streamlit tab indentation anomalies and replaced hardcoded map fallback warnings with professional UI captions.
- Geospatial Network Designer: Integration with Google Maps Platform for live trade lane visualization and interactive route analysis.
- Geopolitical Logic Engine: Automated filtering for blocked commercial borders (e.g., India-Pakistan) and conflict zones.
- Logistics AI Companion: Embedded Gemini 1.5 Flash consultant to explain routing constraints, customs delays, and supply chain trade-offs.
- Intermodal Realism: New deterministic logic accounting for port drayage, vessel frequency buffers (weekly sailings), and mandatory customs processing times.
- Open Border Exceptions: Specialized routing rules for EU Schengen and NAFTA zones allowing long-haul trucking (>3,500km) based on regional trade agreements.
- Landlocked Validation: Automated exclusion of Sea freight modes for landlocked nations (e.g., Nepal, Bhutan, Switzerland) to ensure model accuracy.
- UI Architecture: Redesigned Tab 5 into a split-screen dashboard layout (Inputs & Metrics on Left | Interactive Map on Right).
- State Management: Implemented
st.session_statepersistence for Search Inputs and AI Chat history to prevent data loss on interface reruns. - Security: Decoupled Maps and AI API authentication to support separate restriction policies for Google Cloud and AI Studio.
- Global Sourcing Simulator: CBAM and FTA impact modeling.
- Sensitivity Matrix: Visualizing the sourcing tipping point.
- Health Diagnostics: New health_check.py for environment validation.
- Standardized all financial metrics to USD ($).
- Optimized Monte Carlo engine to handle 10k iterations natively.
- Fixed LaTeX formatting issues in AI chat responses.
- Hardened math modules against zero-demand edge cases.
- Monte Carlo Risk Engine: Implemented 1,000-iteration stochastic simulation for profit forecasting.
- Geospatial Logic: Integrated
map_viz.pyfor lane-specific network topology visualization. - Multi-Modal Selectors: Added Air/Rail/Road logic with dynamic CO2 and lead-time multipliers.
- Research Refocus: Shifted core logic from simple "EOQ" to "Supply Chain Resilience" (Wallenburg 2011 framework).
- UI: Redesigned Streamlit layout to a multi-tab architecture.
- Governance: Added Code of Conduct and Contributing Guidelines for academic compliance.
- Documentation: Implemented
CITATION.cfffor standardized research referencing. - Badges: Added status indicators to README for quick assessment.
- AI Intelligence Layer: Integrated Google Gemini 2.0 Flash for real-time heatmap interpretation.
-
Profit Optimizer: Added Critical Ratio (
$\alpha^*$ ) calculation to the Streamlit sidebar. - Live Database: Full migration from static CSV to Render PostgreSQL cloud infrastructure.
- Refactored
db_manager.pyto support cloud-native connections. - Updated Newsvendor logic to include "Stockout Cost" as a dynamic variable rather than a hardcoded constant.
- Security: Moved all API keys to
.envenvironment handling.
- Basic Streamlit interface for inventory simulation.
- Deterministic Safety Stock calculation (standard formula).
- Local CSV file support only.