Autonomous Critical Infrastructure Dispatch Orchestrator Microsoft Agents League Hackathon 2026 โ€” Reasoning Agents Track

"When a transformer overloads at 2 AM, the average utility takes 47 minutes to dispatch a repair crew. Every minute costs $9,000 in cascading damages. OmniDispatch reduces that to 3 seconds โ€” with full human oversight."


๐ŸŽฏ The Problem

Critical infrastructure failures (power grid overloads, telecom outages, pipeline leaks) require immediate coordinated response across three isolated domains:

Domain Challenge
IoT Telemetry Sensor feeds arrive continuously โ€” which ones are critical?
Regulatory Compliance Union labor rules, safety certifications, and SLA deadlines must be verified before dispatch
Workforce Logistics Who is nearby, certified, and available right now?

Today, human operators manually cross-reference these three systems. It takes an average of 47 minutes from telemetry alert to technician dispatch. OmniDispatch eliminates this bottleneck.


โšก The Solution

OmniDispatch is a multi-agent AI orchestration platform that:

  1. Fans out three specialized AI agents in parallel using the ConcurrentBuilder pattern
  2. Merges their outputs instantly through a custom zero-latency aggregator (no extra LLM call)
  3. Halts the execution graph for Human-in-the-Loop (HITL) approval before any dispatch is authorized
  4. Traces every agent span via OpenTelemetry for full auditability
โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚               OMNIDISPATCH ARCHITECTURE                        โ”‚
โ”‚                                                                 โ”‚
โ”‚  Telemetry Alert โ”€โ”€โ†’ ConcurrentBuilder (Fan-Out)               โ”‚
โ”‚                        โ”œโ”€โ”€ Analysis Agent (IoT Classification)  โ”‚
โ”‚                        โ”œโ”€โ”€ Policy Agent (Azure AI Search RAG)   โ”‚
โ”‚                        โ””โ”€โ”€ Logistics Agent (SQL MCP Routing)    โ”‚
โ”‚                               โ”‚                                 โ”‚
โ”‚                        Custom Aggregator (Zero-Latency Merge)   โ”‚
โ”‚                               โ”‚                                 โ”‚
โ”‚                        HITL Signature Lock โŸต HUMAN OPERATOR    โ”‚
โ”‚                               โ”‚                                 โ”‚
โ”‚                        Dispatch Authorized โ”€โ”€โ†’ Field Units      โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€๏ฟฝ๏ฟฝ๏ฟฝโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜

Before vs. After

Metric Manual Process OmniDispatch
Alert โ†’ Dispatch 47 minutes < 3 seconds
Agent Reasoning Sequential human review 3 parallel AI agents
Compliance Check Manual policy lookup Automated RAG grounding
Audit Trail Paper-based Cryptographic + OTel traced
Oversight No formal approval HITL always_require enforcement

๐Ÿ—๏ธ System Architecture

   โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
   โ”‚                  Microsoft Copilot Canvas                   โ”‚
   โ”‚   - Interactive Fluent UI HTML Map Widget (Port 3000)      โ”‚
   โ”‚   - OpenAPI-discovered tools via MCP Protocol              โ”‚
   โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ–ฒโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
                   โ”‚                             โ”‚
       [1] Telemetry Alert            [5] Renders Widget (HTML)
                   โ”‚                             โ”‚
   โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ–ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
   โ”‚              Azure AI Foundry Agent Service                 โ”‚
   โ”‚               - FastAPI (Port 8088, Responses Protocol)     โ”‚
   โ”‚   โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”   โ”‚
   โ”‚   โ”‚        Microsoft Agent Framework v1.0 (MAF)         โ”‚   โ”‚
   โ”‚   โ”‚             - ConcurrentBuilder Orchestrator        โ”‚   โ”‚
   โ”‚   โ”‚                                                     โ”‚   โ”‚
   โ”‚   โ”‚   โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”   โ”‚   โ”‚
   โ”‚   โ”‚   โ”‚ Analysis Agentโ”‚  Policy Agent   โ”‚ Logistics โ”‚   โ”‚   โ”‚
   โ”‚   โ”‚   โ”‚(Azure OpenAI) โ”‚(AI Search RAG)  โ”‚ Agent     โ”‚   โ”‚   โ”‚
   โ”‚   โ”‚   โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”˜   โ”‚   โ”‚
   โ”‚   โ”‚           โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ” โ”‚ โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€๏ฟฝ๏ฟฝโ”˜         โ”‚   โ”‚
   โ”‚   โ”‚                          โ–ผ โ–ผ โ–ผ                      โ”‚   โ”‚
   โ”‚   โ”‚              [2] Custom Aggregator                  โ”‚   โ”‚
   โ”‚   โ”‚                     (Zero-Latency)                  โ”‚   โ”‚
   โ”‚   โ”‚                          โ”‚                          โ”‚   โ”‚
   โ”‚   โ”‚              [3] Cryptographic HITL                 โ”‚   โ”‚
   โ”‚   โ”‚           (approval_mode='always_require')          โ”‚   โ”‚
   โ”‚   โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜   โ”‚
   โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
                                  โ”‚
                       [4] Dispatch Signed & Approved
                                  โ–ผ
                     [Field Dispatch Hardware Units]

Technology Stack

Layer Technology Purpose
Compute Azure AI Foundry Hosted Agents Container deployment, Responses Protocol (Port 8088)
Orchestration Microsoft Agent Framework v1.0 ConcurrentBuilder for parallel fan-out execution
LLM Azure OpenAI (GPT-4o) Real-time reasoning for analysis, policy, and logistics agents
Knowledge (RAG) Azure AI Search + Foundry IQ Semantic vector search over safety regulations and SLA policies
MCP Server Node.js / Express Exposes tools and renders Fluent UI widgets for Copilot Canvas
UX React + TanStack Start Real-time Control Room with OTel Gantt trace, voice alerts, PDF export
Safety MAF @ai_function approval_mode='always_require' for HITL dispatch halt
Observability OpenTelemetry + Azure App Insights End-to-end trace spans for every agent and tool call
IaC Bicep + Azure Developer CLI (azd) One-command provisioning and deployment

โœจ Key Features

Real-Time Control Room

  • Live WebSocket Streaming: Telemetry alerts broadcast instantly to the React dashboard
  • OTel Waterfall Gantt Trace: Animated visualization of parallel agent execution with per-span latency
  • Voice Synthesis Alerts: Web Speech API announces critical incidents and dispatch confirmations
  • Severity Heatmap: Color-coded grid sectors (Critical/High/Moderate/Low) on the canvas map
  • Multi-Incident Queue: Handles concurrent incidents with auto-load on dispatch completion
  • PDF Audit Export: One-click compliance report with cryptographic hashes

Multi-Agent Orchestration

  • ConcurrentBuilder Pattern: Three agents execute simultaneously, not sequentially
  • Custom Aggregator: Compiles parallel outputs without triggering additional LLM inference
  • Hybrid Agents: Transparently use Azure OpenAI when configured, fall back to deterministic mocks

Enterprise Safety

  • HITL Enforcement: @ai_function(approval_mode='always_require') halts the execution graph
  • Cryptographic Audit Trail: Every dispatch generates a unique AUDIT-{id}-{uuid} token
  • Compliance Grounding: Policy agent retrieves real regulations from Azure AI Search

๐Ÿ“ Project Structure

OmniDispatch/
โ”œโ”€โ”€ azure.yaml                    # Azure Developer CLI deployment manifest
โ”œโ”€โ”€ infra/
โ”‚   โ””โ”€โ”€ main.bicep                # Infrastructure-as-Code (all Azure resources)
โ”œโ”€โ”€ agent/
โ”‚   โ”œโ”€โ”€ Dockerfile                # Multi-stage production container (non-root)
โ”‚   โ”œโ”€โ”€ agent.yaml                # Foundry Agent Service manifest
โ”‚   โ”œโ”€โ”€ requirements.txt          # Python dependencies (Azure SDKs included)
โ”‚   โ”œโ”€โ”€ .env.example              # Environment variable template
โ”‚   โ”œโ”€โ”€ main.py                   # FastAPI server (Responses Protocol, WebSocket, Telemetry)
โ”‚   โ”œโ”€โ”€ agent_logic.py            # HybridAgent orchestration (Azure OpenAI + AI Search + MAF)
โ”‚   โ”œโ”€โ”€ mock_services.py          # Deterministic fallback agents and mock databases
โ”‚   โ”œโ”€โ”€ telemetry_generator.py    # IoT sensor simulator for live demos
โ”‚   โ””โ”€โ”€ test_system.py            # Automated verification tests
โ”œโ”€โ”€ mcp-server/
โ”‚   โ”œโ”€โ”€ server.js                 # MCP tool endpoints + Copilot Canvas integration
โ”‚   โ”œโ”€โ”€ ai-plugin.json            # Copilot plugin manifest (tool discovery)
โ”‚   โ””โ”€โ”€ public/
โ”‚       โ”œโ”€โ”€ openapi.json          # OpenAPI 3.1 specification
โ”‚       โ””โ”€โ”€ map_widget.html       # Fluent UI interactive dispatch map
โ”œโ”€โ”€ Frontend/
โ”‚   โ””โ”€โ”€ src/
โ”‚       โ””โ”€โ”€ routes/
โ”‚           โ”œโ”€โ”€ index.tsx          # Landing page
โ”‚           โ”œโ”€โ”€ control-room.tsx   # Real-time dispatch console (WebSocket, OTel, Voice)
โ”‚           โ”œโ”€โ”€ architecture.tsx   # System architecture visualization
โ”‚           โ”œโ”€โ”€ agents.tsx         # Agent capability showcase
โ”‚           โ”œโ”€โ”€ compliance.tsx     # Regulatory compliance dashboard
โ”‚           โ””โ”€โ”€ deployments.tsx    # Deployment status monitor
โ””โ”€โ”€ run_local.ps1                 # One-command local startup script

๐Ÿš€ Getting Started

Prerequisites

  • Python 3.11+
  • Node.js 18+
  • (Optional) Azure subscription for real AI services

Quick Start (Local)

# Clone the repository
git clone https://github.com/your-org/OmniDispatch.git
cd OmniDispatch

# Run the automated startup script
.\run_local.ps1

This starts three services:

Service URL Purpose
React Frontend http://localhost:8082 Control Room dashboard
Python Agent Service http://localhost:8088 Responses Protocol + WebSocket
MCP Server http://localhost:3000 Copilot Canvas tools + widgets

Connecting Real Azure Services (Optional)

# Copy the environment template
cp agent/.env.example agent/.env

# Fill in your Azure credentials
# See the "Azure Setup Guide" section below

Azure Deployment

# Install Azure Developer CLI
winget install Microsoft.Azd

# One-command provisioning and deployment
azd up

๐Ÿ”‘ Azure Setup Guide

To connect OmniDispatch to real Azure AI services:

Step 1: Create Azure OpenAI Resource

  1. Go to Azure Portal โ†’ Create โ†’ "Azure OpenAI"
  2. Deploy a gpt-4o model
  3. Copy the Endpoint and API Key from the resource's "Keys and Endpoint" page

Step 2: Create Azure AI Search Resource

  1. Go to Azure Portal โ†’ Create โ†’ "Azure AI Search"
  2. Create an index named omnidispatch-policies
  3. Upload safety regulation documents (PDFs)
  4. Enable Semantic Search configuration

Step 3: Configure Environment Variables

# In agent/.env
AZURE_OPENAI_ENDPOINT=https://your-resource.openai.azure.com/
AZURE_OPENAI_API_KEY=your-key
AZURE_OPENAI_DEPLOYMENT=gpt-4o
AZURE_SEARCH_ENDPOINT=https://your-search.search.windows.net
AZURE_SEARCH_KEY=your-key
AZURE_SEARCH_INDEX=omnidispatch-policies

What's Real vs. What's Simulated

Component With Azure Credentials Without Credentials
Analysis Agent Real GPT-4o inference on telemetry data Deterministic mock classification
Policy Agent RAG retrieval from Azure AI Search index Mock safety policy database
Logistics Agent Real GPT-4o reasoning over workforce data Mock proximity calculations
ConcurrentBuilder Real parallel execution pattern Identical parallel mock execution
HITL Approval Full approval_mode='always_require' Identical approval enforcement
OTel Tracing Azure App Insights export Console span export
WebSocket Streaming Identical real-time broadcast Identical real-time broadcast
Control Room UI Identical live dashboard Identical live dashboard

Note: The HITL approval, WebSocket streaming, OTel tracing, PDF export, and Control Room are fully real in both modes. Only the LLM inference and RAG search switch between Azure and mock.


๐Ÿงช Testing

# Run automated verification tests
cd agent
python test_system.py

# Check system health and Azure connectivity
curl http://localhost:8088/

# Send a test telemetry alert
curl -X POST http://localhost:8088/telemetry -H "Content-Type: application/json" -d '{"incident_id":"INC-TEST-001","failure_type":"Transformer Overload","severity":"Critical","grid_zone":"North-East Sector (NE-04)","metrics":{"temperature_c":115.4,"coolant_level_percent":14.2,"load_percentage":138.5}}'

๐Ÿ† Hackathon Rubric Alignment

Criterion (Weight) OmniDispatch Implementation Evidence
Reasoning & Multi-step (20%) ConcurrentBuilder fans out 3 agents in parallel. Custom Aggregator merges without extra LLM call. agent_logic.py โ€” HybridAgent class + register_aggregator()
Reliability & Safety (20%) @ai_function(approval_mode='always_require') halts execution graph. UUID audit tokens. Cryptographic hash in PDF reports. agent_logic.py โ€” dispatch_technicians() decorator
Accuracy & Relevance (20%) Azure AI Search RAG for policy grounding. Semantic search over safety regulations. Real GPT-4o inference. agent_logic.py โ€” search_policy_index() + Azure OpenAI integration
User Experience (15%) Fluent UI widgets in Copilot Canvas. React Control Room with OTel Gantt, voice alerts, heatmap, PDF export. control-room.tsx + map_widget.html
Creativity (15%) Novel domain (critical infrastructure). Real-time WebSocket telemetry. Multi-incident queue. Voice synthesis. Full system integration across all components

๐Ÿ“‹ Copilot Canvas Integration

OmniDispatch integrates with Microsoft Copilot Canvas via the Model Context Protocol (MCP):

  1. Plugin Discovery: ai-plugin.json + openapi.json at /.well-known/ai-plugin.json
  2. Tool Invocation: Copilot calls /tools/show_assignments_on_map to render interactive HTML widgets
  3. Theme Adaptation: Widgets detect Copilot's light/dark mode via CSS media queries
  4. Real-Time Data: Widget connects to the Agent Service WebSocket for live incident updates
Copilot Canvas โ†โ†’ MCP Server (Port 3000) โ†โ†’ Agent Service (Port 8088)
                     โ”‚                              โ”‚
              Tool Discovery               WebSocket Streaming
              Widget Rendering             Telemetry Processing
              OpenAPI Spec                 HITL Approval

๐ŸŽฌ Demo Video

๐Ÿ“น Watch the 3-minute demo video โ†’ (Add link after recording)

The demo shows:

  1. A live telemetry alert arriving via WebSocket
  2. Three agents executing in parallel (visible on the OTel Gantt trace)
  3. Voice synthesis announcing the incident
  4. Human operator authorizing the dispatch
  5. PDF audit report generation

๐Ÿ“„ License

MIT License โ€” See LICENSE for details.


โ—† OMNIDISPATCH // AUTONOMOUS DISPATCH, DONE RESPONSIBLY โ—†

Built for the Microsoft Agents League Hackathon 2026