# Changelog All notable changes to the Warehouse Robot Fleet Digital Twin will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). ## [0.9.0] - 2026-10-21 ### Added - Phase 8: Operational Dashboard - **Dashboard Data Provider** (`warehouse_twin.dashboard.data_provider`): - Automated discovery of simulation experiment runs from `results/experiments/`. - Fast, typed parsing of `kpi_summary.json`, `config.json`, `robots.csv`, `tasks.csv`, and `aisle_congestion.csv`. - Markdown table parser extracting scenario comparison matrices for fleet sizing and dispatch policies. - Raw SVG heatmap delivery for `congestion_heatmap.svg`. - Safe read-only architecture preventing simulation data corruption. - **Lightweight Decoupled Dashboard Server** (`warehouse_twin.dashboard.server`): - Pure Python standard library HTTP server (`http.server.ThreadingHTTPServer`) with zero extra pip dependencies. - REST API endpoints for experiments, details, SVG heatmaps, and scenario comparisons. - Safe static asset serving with proper MIME types. - **Glassmorphic Modern Single Page Web UI** (`warehouse_twin.dashboard.static`): - Custom Vanilla CSS dark-mode design system with responsive grid layouts. - 6 Executive KPI summary cards with trend indicators. - Latency distribution percentile matrix table. - Real-time AMR fleet telemetry table with dynamic battery health gauges. - Interactive embedded 2D SVG spatial heatmap viewer. - Top corridor bottleneck diagnosis table with severity badges (`CRITICAL`, `WARNING`, `INFO`). - Tasks lifecycle summary and task-type performance breakdown. - Scenario comparison tables for fleet sizing ($2, 4, 6, 8$ AMRs) and dispatch policies. - Audit-ready executive Markdown report viewer with instant file download. - **Optional Streamlit Dashboard** (`warehouse_twin.dashboard.streamlit_app`): - Streamlit interface for environments with `streamlit` installed. - **CLI Subcommand**: - `warehouse-twin dashboard [--port 8501] [--results-dir results]`: Launches the web dashboard server. - **Unit Test Suite**: - Added 7 unit tests across `test_dashboard_data_provider.py`, `test_dashboard_server.py`, and `test_optional_dependencies.py`. - Expanded test suite to **144 passed unit tests (100% pass rate in 2.43s)**. ## [0.8.0] - 2026-10-21 ### Added - Phase 7: NVIDIA Omniverse USD 3D Visualization & Trajectory Playback - **Continuous Spatial Interpolation & Playback Engine** (`warehouse_twin.visualization.trajectory_player`): - Linear Cartesian interpolation of position coordinates $(X, Y, Z)$ between simulation waypoints. - Shortest-arc circular angular interpolation of heading angle (`yaw_degrees`) with $-180^\circ \leftrightarrow 180^\circ$ wrap-around handling. - Continuous battery SoC interpolation and discrete payload cargo attachment. - Complete playback state machine (`play`, `pause`, `toggle`, `reset`, `seek`, `advance`, `set_speed`) supporting $0.5\times$ to $50.0\times$ speeds. - Safe subscriber callback registration and leak-free unregistration. - **Time-Sampled OpenUSD Scene Generator** (`warehouse_twin.visualization.animated_usd`): - Direct export of time-sampled OpenUSD ASCII stages (`warehouse_phase7_animated.usda`). - Native playback support via Omniverse Kit's timeline (`omni.timeline`) without extension dependencies. - Time-sampled translation (`xformOp:translate.timeSamples`) and rotation (`xformOp:rotateXYZ.timeSamples`). - Dynamic status dome color samples (`primvars:displayColor.timeSamples`) reflecting robot operational states. - Dynamic battery LED bar color samples reflecting battery health. - Dynamic payload carton box visibility samples (`visibility.timeSamples`). - **NVIDIA Omniverse Kit 110.4 Extension** (`omni.warehouse.twin.visualizer`): - Native Kit extension (`omni.ext.IExt`) compatible with Kit 110.4. - Interactive UI Window (`omni.ui.Window`): trajectory file loader, playback buttons, scrub slider, speed selectors, and live AMR fleet HUD table. - Frame-by-frame stage prim transformation updates driven by Kit's update loop (`omni.kit.app.get_app().get_update_event_stream()`). - Clean shutdown handler guaranteeing zero dangling update callbacks or lingering subscriptions. - Symlinked directly into Kit release `exts/` directory for automatic discovery. - **CLI Subcommands**: - `warehouse-twin export-usd --trajectory --output `: Generates time-sampled animated USD scenes. - `warehouse-twin play-trajectory --step `: Validates kinematics and previews fleet playback in terminal. - Updated `validate-env` to detect host Kit at `/home/dmhai/Desktop/nvidia-omniverse/kit-app-template`. - **Unit Test Suite**: - Added 8 unit tests across `test_trajectory_player.py`, `test_animated_usd.py`, and `test_kit_extension.py`. - Expanded test suite to **137 passed unit tests (100% pass rate in 1.01s)**. ## [0.7.0] - 2026-10-21 ### Added - Phase 6: Analytics and Experiment Framework - **Comprehensive KPI Calculator** (`warehouse_twin.analytics.kpi_calculator`): - Standardized, unit-defined metrics for throughput, turnaround latency distributions (mean, std dev, min, p50, p90, p95, p99, max), fleet utilization, loaded vs. empty distances, loaded ratio %, energy intensity, bay occupancy, and SLA compliance. - Strict isolation of incomplete tasks (pending and in-progress) from completion latency percentiles. - Granular operational breakdowns grouped by individual task type (`ORDER_PICK`, `PRODUCTION_LINE_FEED`, `REPLENISHMENT`). - **Telemetry & Event Store** (`warehouse_twin.storage.event_store`): - Streaming JSON Lines simulation event logger (`events.jsonl`). - Tabular lifecycle CSV export (`tasks.csv`). - Robot operational summary CSV export (`robots.csv`). - Edge and corridor contention CSV export (`aisle_congestion.csv`). - Full structured KPI summary JSON export (`kpi_summary.json`). - **Spatial Heatmap & Bottleneck Analyzer** (`warehouse_twin.analytics.heatmap`): - Interactive, scalable 2D SVG heatmap visualizer with warehouse zone overlays, rack positions, stations, and color-coded traffic flow intensity. - Terminal-friendly ASCII floorplan heatmap. - Automated bottleneck diagnosis producing prioritized severity levels and actionable engineering recommendations. - **Executive Markdown Report Generator** (`warehouse_twin.analytics.report_generator`): - Automated rendering of executive-ready Markdown reports (`report.md`) with latency distribution tables, fleet spatial distance matrices, individual robot telemetry, and bottleneck diagnosis. - **Experiment Execution & Scenario Comparison Engine** (`warehouse_twin.analytics.experiment_runner`): - Deterministic PRNG seed control for 100% reproducible experiments. - Monte Carlo multi-seed execution engine computing mean, standard deviation, and 95% confidence intervals across replications. - Automated scenario comparator executing parameter sweeps: - Fleet sizing analysis across 2, 4, 6, and 8 AMRs under identical order workloads. - Dispatch heuristic benchmarking (`priority_nearest_idle`, `nearest_idle`, `balanced_utilization`). - Automated Markdown comparison reports (`results/reports/fleet_size_comparison.md`, `results/reports/dispatch_policy_comparison.md`). - **CLI Commands**: - `warehouse-twin run-experiment`: Headless experiment execution with automated report, SVG heatmap, and telemetry exports. - `warehouse-twin compare-scenarios`: Multi-parameter sweep execution for fleet sizing and dispatch policies. - **Unit Test Suite**: - Added 19 comprehensive unit tests across `test_kpi_calculator.py`, `test_event_store.py`, `test_heatmap.py`, `test_experiment_runner.py`, and `test_scenario_comparison.py`. - Expanded test suite to **129 passed unit tests (100% pass rate in 0.97s)**. ## [0.6.0] - 2026-10-21 ### Added - Phase 5: Charging and Operational Constraints - **Physics-Informed Battery Model** (`warehouse_twin.fleet.battery_model`): - `BatteryModel` implementing operational electrical power draw across states (`idle`, `moving_empty`, `moving_loaded`, `handling`). - Load-dependent consumption model scaling linear electrical power based on carried payload weight. - Comprehensive mission feasibility validator (`validate_mission_feasibility`) enforcing a $20\%$ minimum post-mission safety headroom. - Rejection of infeasible missions with descriptive `InfeasibleEnergyMissionError`. - **Capacity-Constrained Charging Management** (`warehouse_twin.fleet.charging_manager`): - `ChargingBay` with SimPy `Resource` backing single-vehicle occupancy constraints ($\text{capacity} = 1$). - `ChargingManager` coordinating multi-bay queues, wait time tracking, and charger rating selection ($50\,\text{kW}$ for heavy AMRs, $25\,\text{kW}$ for light AMRs). - Automated opportunity charging when idle with SoC $\le 60\%$, and mandatory return-to-base charging when SoC $\le 25\%$. - **Production Line Deadlines & SLA Tracking** (`warehouse_twin.domain.task` & `warehouse_twin.simulation.sim_engine`): - Strict $300\,\text{s}$ delivery lead time SLA deadlines for Zone C scheduled batch feeds. - Lateness and overdue tracking emitting `DEADLINE_MISSED` telemetry events upon SLA violations. - Dispatch queue urgency re-ordering prioritizing tasks nearest to deadline expiration. - **Inventory Stock-Out Monitoring**: - Verification of stock availability prior to task dispatch, triggering `STOCKOUT_OCCURRED` telemetry events. - Automated generation of high-priority stock replenishment missions. - **Safe Task Reassignment & Preemption** (`warehouse_twin.fleet.task_reassigner`): - `TaskReassigner` safely detaching tasks from low-battery robots, clearing spatial reservations, and reverting tasks to `PENDING`. - Graceful preemption of unstarted low-priority missions for critical production feeds. - **Test Suite Expansion**: - Added 15 new unit tests across battery models, charging queues, production deadlines, stockouts, and task reassignment. - Test suite expanded to **110 unit tests (100% pass rate in 0.68s)**. - OpenUSD Phase 5 scene generated at `omniverse/scenes/warehouse_phase5.usda`. - Implementation documentation in `docs/phases/phase_5_charging_and_operational_constraints.md`. ## [0.5.0] - 2026-10-21 ### Added - Phase 4: Routing, Fleet Assignment, and Traffic Management - **NetworkX Shortest-Path Planning Engine** (`warehouse_twin.routing.path_planner`): - `PathPlanner` supporting Dijkstra and A* path planning over directed warehouse navigation graphs. - Strict enforcement of robot capabilities (e.g. Light AMRs restricted from Zone B wide aisles). - Dynamic edge cost calculation incorporating congestion penalties from active reservation density. - Auto-resolution of entity identifiers (racks, charging bays, docks) to graph node coordinates. - Unreachable destination detection with descriptive `NoPathFoundError` diagnostics. - **Time-Space Reservation Grid** (`warehouse_twin.routing.reservations`): - `TimeSpaceReservationGrid` managing temporal reservations across navigation nodes and edges. - Head-on collision avoidance on bidirectional corridors, eliminating opposite-direction entry conflicts. - Trailing vehicle headway safety buffers ($1.0\,\text{s}$) preventing rear-end collisions. - Intersection exclusive single-occupancy zones with temporal clearance buffers. - Dynamic `find_earliest_free_departure` solver for safe scheduling. - Memory-efficient expired reservation purging. - **Traffic Manager & Cooperative Yielding** (`warehouse_twin.routing.traffic_manager`): - `TrafficManager` coordinating multi-AMR flow according to `config/dispatch_policies.json`. - Right-of-way arbitration: Priority 1 production feed > Priority 2 replenishment > Priority 4 picking; loaded AMRs maintain precedence over empty AMRs. - Cooperative waypoint waiting: yielding AMRs hold at preceding nodes until bottlenecks clear. - Deadlock detection with automatic dynamic bypass rerouting upon exceeding `deadlock_timeout_seconds`. - Comprehensive traffic metrics: conflicts detected, yield waits executed, wait durations, and replans. - **Physical Waypoint Simulation & Trajectory Export** (`warehouse_twin.simulation.sim_engine`): - Step-by-step physical waypoint transit in SimPy discrete-event simulation. - Real-time time-indexed motion trajectory export to `results/trajectories/trajectory_sim.json` conforming to project data contracts. - **OpenUSD Navigation Corridor Overlays** (`warehouse_twin.interfaces.usd_generator`): - Generated `omniverse/scenes/warehouse_phase4.usda` featuring visual highway corridors (cyan/blue) and Zone B wide aisles (industrial amber). - **Test Suite Expansion**: - Added 23 new unit tests across path planning, time-space reservations, traffic coordination, and trajectory recording. - Test suite expanded to **95 unit tests** (100% pass rate in 0.65s). - Implementation documentation in `docs/phases/phase_4_routing_and_fleet_assignment.md`. ## [0.4.0] - 2026-10-19 ### Added - Phase 3: Discrete-Event Simulation Engine - **Wider Aisles in Zone B**: - Configured `config/warehouse.json` with `aisle_width: 4.0` for Zone B (slow-moving & heavy specialized items). - Updated `WarehouseGraphBuilder` to construct wide $4.0\text{m}$ aisle columns across Zone B ($x \in [32, 36, 40, 44]$), double the $2.0\text{m}$ spacing of Zone A, facilitating heavy AMR navigation with wide pallets and heavy loads. - Added unit test `test_slow_moving_zone_b_has_wider_aisles`. - **Order Generation Engine** (`warehouse_twin.simulation.order_generator`): - `OrderGenerator` and `WorkloadConfig` implementing multi-zone workload processes: - Zone A Poisson arrivals for fast-moving items (`expovariate`). - Zone B Gaussian arrivals for heavy components navigating wider aisles (`gauss`). - Zone C scheduled batch feeds for production-line delivery. - Automated stock replenishment order generation when inventory dips below minimum threshold. - Peak demand traffic scaling ($1.5\times$ multiplier from 1200s to 2400s). - **Fleet Dispatcher** (`warehouse_twin.simulation.dispatcher`): - `FleetDispatcher` with priority queueing, sorting tasks by priority, deadline, and release time. - Compatibility validation enforcing payload capacity ratings, battery headroom filtering ($20\%$), and Zone B restrictions. - Nearest-idle robot selection based on graph network routing distances. - **SimPy Discrete-Event Simulation Core** (`warehouse_twin.simulation.sim_engine`): - `SimulationEnvironment` managing master clock, discrete order arrival processes, and dispatcher daemon. - Robot mission lifecycle execution: empty transit, picking, stock reservation/consumption, loaded transit, dropoff, and automatic opportunity/mandatory recharging. - Real-time event streaming to JSONL (`logs/simulation_events.jsonl`). - `SimulationMetrics` computing throughput, turnaround, wait times, on-time delivery rate, fleet utilization, and energy consumption. - **CLI Subcommand**: - `warehouse-twin run-sim`: supports `--duration`, `--seed`, `--config-dir`, and `--output-events`. - Expanded test suite to **72 unit tests** (16 new Phase 3 tests, 100% pass rate in 0.37s). - Comprehensive Phase 3 implementation report in `docs/phases/phase_3_simulation_engine.md`. ## [0.3.0] - 2026-10-19 ### Added - Phase 2: Robot and Task Models - Domain entity models for Autonomous Mobile Robots (`warehouse_twin.domain.robot`): - `RobotState` enum representing operational lifecycle states (`IDLE`, `DISPATCHED`, `PICKING`, `LOADED_TRANSIT`, `DROPPING`, `TRANSIT_TO_CHARGE`, `CHARGING`, `MAINTENANCE`). - Strict transition lookup table `LEGAL_ROBOT_TRANSITIONS` preventing illegal state transitions with `InvalidStateTransitionError`. - `RobotTypeSpec` parsing `config/robots.json` specifications for light and heavy AMRs. - `Robot` model managing kinematics, battery capacity, linear energy consumption (idle, moving, loaded), fast-charging, active tasks, routes, and allowed zones. - Pre-assignment validation `Robot.validate_task_compatibility(task)` enforcing payload capacity and zone restrictions (`IncompatibleRobotTaskError`). - Domain models for warehouse tasks (`warehouse_twin.domain.task`): - `TaskType` enum (`INBOUND_TRANSPORT`, `OUTBOUND_PICKING`, `PRODUCTION_FEED`, `REPLENISHMENT`, `CHARGING`). - `TaskStatus` enum (`PENDING`, `ASSIGNED`, `IN_PROGRESS`, `COMPLETED`, `CANCELLED`, `FAILED`) enforced by `LEGAL_TASK_TRANSITIONS`. - `Task` dataclass tracking creation time, assignment time, start/completion times, turnaround time, queue wait time, execution duration, and SLA deadline overdue checks. - Inventory item and catalog models (`warehouse_twin.domain.inventory`): - `InventoryItem` with available/reserved quantities, unit weight, reorder threshold, and restocking amounts. - `InventoryCatalog` loading 13 SKUs from `config/inventory.json` with stock reservation, consumption, and replenishment trigger checks. - Event telemetry models (`warehouse_twin.domain.events`): - `SimulationEventType` and `SimulationEvent` dataclass with ISO8601 formatting and JSONL serialization. - OpenUSD generator enhancements (`warehouse_twin.interfaces.usd_generator`): - `WarehouseUSDGenerator.from_config_bundle` now renders the active AMR fleet with realistic geometry (pearl white for light AMRs, industrial amber for heavy AMRs, with illuminated status domes). - Exported OpenUSD 3D stage `omniverse/scenes/warehouse_phase2.usda`. - 30 new unit tests covering robot states, task lifecycles, inventory dynamics, telemetry events, and USD robot generation (56 total unit tests passing in 0.24s). - Implementation report in `docs/phases/phase_2_robot_and_task_models.md`. ## [0.2.0] - 2026-10-19 ### Added - Phase 1: Warehouse Model - Complete warehouse domain entities in `warehouse_twin.domain.warehouse`: `Position3D`, `WarehouseDimensions`, `ZoneArea`, `ZoneDefinition`, `Station`, `ChargingStation`, `StorageLocation`, `WarehouseNode`, `WarehouseEdge`, and `WarehouseModel`. - Topological navigation graph builder (`WarehouseGraphBuilder` in `warehouse_twin.routing.graph_builder`): - Unified coordinate hashing producing deterministic 540-node, 1,730-edge directed graph. - Multi-lane perimeter highway network (West, South, North, East) and inter-zone transfer corridors at $x=26\text{m}$ and $x=46\text{m}$. - Detailed internal grid networks across Zone A (fast-moving), Zone B (slow-moving/heavy), and Zone C (production supply). - Explicit bindings for 6 stations (2 inbound docks, 1 outbound pack dock, 2 picking stations, 1 production line feed). - Explicit bindings for 4 fast/heavy charging bays. - Explicit bindings for 13 storage rack locations mapped to inventory catalog items. - Operational zone restrictions: Zone B aisles restricted exclusively to `heavy_amr` AMR classes. - Connectivity and topology verification engine (`validate_connectivity`): - Strong connectivity verification ($1$ strongly connected component). - Complete station, charger, and rack reachability verification. - Sub-graph robot class access verification. - Custom exceptions `DisconnectedGraphError` and `UnreachableStationError`. - JSON graph topology serialization (`export_topology_dict`, `export_json` exporting to `results/reports/warehouse_graph.json`). - CLI subcommands: `warehouse-twin validate-graph` and `warehouse-twin export-graph`. - Unit test suite expanded to 26 tests (9 new graph unit tests, 100% pass rate in 0.21s). - Comprehensive Phase 1 implementation report in `docs/phases/phase_1_warehouse_model.md`. ## [0.1.0] - 2026-10-19 ### Added - Phase 0: Environment and Project Foundation - Initial project directory layout adhering strictly to master prompt specifications. - Host environment inspection identifying Ubuntu 24.04.3 LTS, Python 3.12.3, NVIDIA RTX 5090 GPU (Driver 580.178.04), and 8.9 GB disk availability. - Omniverse Kit inspection discovering installed Kit 110.4.0 and base app `warehouse_twin.kit` under `/home/dmhai/nvidia-omniverse/kit-app-template`. - Python packaging configuration (`pyproject.toml`) with dependencies on `simpy` 4.1.2, `networkx` 3.7, and `pytest` 9.1.1. - `.gitignore` and `.env.example` with secondary drive relocation parameters. - Base configurations in `config/`: - `warehouse.json`: 60m x 40m facility with Zones A, B, C, inbound docks, picking stations, production drop-offs, and charging bays. - `robots.json`: Light AMR and Heavy AMR definitions with speed, payload, and energy models. - `inventory.json`: Fast-moving, slow-moving, and production raw material item catalogs. - `simulation.json`: Discrete-event parameters, arrival rates, and random seed. - `dispatch_policies.json`: Dispatch policy definitions and traffic reservation settings. - Structured rotating logging module (`warehouse_twin.logging_config`) managing `application.log`, `simulation.log`, and `errors.log`. - Robust configuration loader (`warehouse_twin.config.loader`) with schema validation. - Command-line interface (`warehouse_twin.cli`) supporting `validate-env` and `validate-config`. - Automated shell verification scripts: `scripts/check_environment.sh` and `scripts/run_tests.sh`. - Comprehensive unit test suite in `tests/unit/` (17 tests passing in 0.09s). - Full documentation suite: `README.md`, `IMPLEMENTATION_DETAILS.md`, `PROJECT_STATUS.md`, `docs/ARCHITECTURE.md`, `docs/INSTALLATION.md`, `docs/USER_GUIDE.md`, `docs/API_AND_DATA_CONTRACTS.md`, `docs/TESTING.md`, `docs/DECISIONS.md`, `docs/phases/phase_0_foundation.md`, and `omniverse/README.md`.