CURRENTLY BUILDING β€” Primary Project

AIRA β€” Autonomous Manufacturing Intelligence Platform

Comprehensive Project Report | AMD Developer Cloud Hackathon 2025

V.S. Karthik Manikandan Β· Full Stack LLM Engineer

πŸ–₯️ AMD MI300X πŸ”₯ Fireworks AI πŸ”— LangGraph ⚑ Next.js 15 πŸš€ FastAPI πŸ”Œ MCP πŸ§ͺ SimPy πŸ“Š Recharts
01 β€” PROJECT OVERVIEW

What is AIRA?

AIRA (Autonomous Intelligence & Response Architecture) is an enterprise-grade Autonomous Manufacturing Decision Platform built for the AMD Developer Cloud Hackathon. Unlike traditional AI chatbots that wait for user queries, AIRA continuously monitors manufacturing operations through 8 specialized AI agents, makes proactive decisions, and executes actions across enterprise systems β€” all powered by AMD Instinctβ„’ MI300X GPUs and Fireworks AI serverless inference.


The platform transforms manufacturing operations from reactive to proactive β€” predicting risks before they happen, simulating outcomes via Digital Twin (SimPy), and autonomously orchestrating cross-system responses through Model Context Protocol (MCP).


Hackathon Challenge: Build an innovative application leveraging AMD Developer Cloud's GPU infrastructure.

My Approach: Instead of building yet another chatbot, I built a full autonomous decision platform that treats AI agents as manufacturing operators, not assistants. The dashboard IS the product. The chatbot is secondary.

02 β€” SYSTEM ARCHITECTURE

7-Layer Architecture Design

AIRA System Architecture β€” 7-Layer Autonomous Manufacturing Decision Platform

AIRA System Architecture β€” 7-Layer Autonomous Manufacturing Decision Platform (AMD Developer Cloud + Fireworks AI)

Layer 1 β€” User Experience

πŸ–₯️ Frontend

Executive Dashboard (Real-time Command Center), AI Copilot Chatbot (Ask β€’ Analyze β€’ Simulate), Smart Alerts (Proactive Notifications), Approvals & Actions (Review β€’ Approve β€’ Execute), Reports & Insights (Analytics β€’ Audit β€’ KPIs)

Layer 2 β€” API & Gateway

⚑ FastAPI Gateway

REST API + WebSocket (Real-time) + Auth Middleware. JWT-based authentication with role-based access. Rate limiting and request validation for all endpoints.

Layer 3 β€” Orchestration

🧠 LangGraph + Decision Engine

LangGraph Orchestrator (Supervisor Agent), 8 Specialized AI Agents (collaborative), Decision Engine (Reason β€’ Plan β€’ Decide β€’ Prioritize). Tools: RAG Retriever, Knowledge Search, Digital Twin Simulator, Analytics Tools, Workflow Planner.

Layer 4 β€” Event Stream

πŸ“‘ Real-Time Events

Event Bus (Kafka / Redpanda) for continuous data flow. Stream Ingestion with Validation, Normalization, and Enrichment. Data flows continuously from enterprise systems upward β€” not only when users interact.

Layer 5 β€” AI Compute

πŸ–₯️ AMD + Fireworks

AMD Developer Cloud: MI300X GPUs, ROCm Stack, vLLM Inference, Predictive Models, SimPy Digital Twin, Embeddings.
Fireworks AI: Llama 3.3 70B Agent, Reasoning & Planning, Structured JSON, Tool Calling, Multi-Agent Communication.

Layer 6 β€” Data Layer

πŸ—„οΈ Operational Data

TimescaleDB (Time-series), pgvector (Vector Store), RAG Index, Metadata & Documents. Data Processing: ETL, Aggregation, Feature Engineering.

Layer 7 β€” Integration (MCP)

πŸ”Œ Enterprise Integration

MCP Server (Read APIs) β€” Secure Read Access. JWT Auth + RBAC Gate β€” Human Approval Required. MCP Client (Write APIs) β€” Execute Actions After Approval. Full audit logging.

Source Systems

🏒 Enterprise Systems

ERP (Ramco), MES (Manufacturing Execution), WMS (Warehouse Management), DMS (Dealer Management), IoT/Telematics (Sensors, Vehicles, Machines), Supplier Systems, Finance Systems, External APIs.

πŸ“Š Outcomes & Business Impact

β€’ Predict Risks Before They Happen
β€’ Reduce Downtime & Losses
β€’ Optimize Inventory & Production
β€’ Improve Delivery & Customer SLA
β€’ Increase Operational Efficiency
β€’ Data-Driven Autonomous Decisions

πŸ” Explainable AI (XAI)

β€’ Root Cause Analysis
β€’ Evidence & Correlation
β€’ Confidence Score
β€’ Business Impact Estimation

Every decision includes full transparency β€” no black boxes.

πŸ”’ Audit & Governance

β€’ Immutable Audit Logs
β€’ Action History
β€’ Compliance Reports
β€’ Security & Access Logs

Enterprise-grade accountability for autonomous operations.

03 β€” TECHNOLOGY STACK

Every Tool in Detail

Frontend Technologies

ToolPurposeWhy Used
Next.js 15React frameworkApp Router, Server Components, TypeScript, optimized builds
TypeScriptType safetyCatch errors at compile time, better developer experience
Tailwind CSSStylingRapid dark theme development, utility-first approach
Framer MotionAnimationsAgent canvas particles, panel transitions, card reveals, data flow
RechartsChartsBar & Pie charts for sales, Line charts for telematics in Copilot
Lucide ReactIconsCPU, Cloud, Shield, Zap, AlertTriangle β€” consistent icon set
next/fontFont loadingInter + JetBrains Mono from Google Fonts, optimized loading
ESLintLintingCode quality enforcement across all components
PostCSSCSS processingRequired by Tailwind CSS build pipeline
AutoprefixerCSS prefixingCross-browser compatibility for CSS features

Backend Technologies

ToolPurposeWhy Used
FastAPIAPI frameworkAsync, auto-docs (Swagger), Pydantic integration, WebSocket
uvicornASGI serverHigh-performance async server for FastAPI
LangGraphAgent orchestrationStateGraph, supervisor pattern, conditional routing, streaming
LangChainLLM integrationChatFireworks wrapper, prompt templates, structured output
langchain-fireworksFireworks connectorChatFireworks model wrapper for Llama 3.3 70B
PydanticData validationRequest/response schemas, structured LLM output validation
SimPySimulationDiscrete-event simulation engine for Digital Twin scenarios
python-dotenvEnv managementLoad .env variables securely
websocketsWebSocketReal-time bidirectional agent activity streaming
sse-starletteSSEServer-Sent Events for real-time event feed
httpxHTTP clientAsync HTTP requests for MCP communication
PyJWTJWT tokensAuthentication token generation and validation
python-multipartForm dataFile upload support in FastAPI endpoints

AI & Data Infrastructure

ToolPurposeWhy Used
Fireworks AILLM inferenceLlama 3.3 70B serverless, tool calling, structured output
AMD Dev CloudGPU computeMI300X GPUs for predictions, simulation, embeddings
vLLMLLM servingHigh-throughput inference engine on AMD ROCm GPUs
ROCmGPU SDKAMD's open-source GPU compute stack for AI workloads
FAISSVector searchFast similarity search for RAG document retrieval
TimescaleDBTime-series DBSensor and telematics time-series data storage
pgvectorVector extensionPostgreSQL vector store for RAG embeddings
04 β€” IMPLEMENTATION DETAILS

Every Component Explained

4.1 Project Scaffolding

Initialized Next.js 15 with TypeScript, Tailwind CSS, App Router, and src/ directory. Configured next.config.ts with API rewrites to proxy frontend requests to the FastAPI backend at port 8000. Installed npm dependencies: framer-motion, lucide-react, recharts. Created Python backend directory with requirements.txt. Set up .env with Fireworks API key, Supabase credentials, and AMD Cloud endpoints.

4.2 Design System (globals.css)

Built a complete dark industrial theme with CSS custom properties. Glassmorphism utilities: backdrop-filter: blur(20px), glass borders rgba(255,255,255,0.06). Animated glow effects β€” green (#10b981) for healthy, amber (#f59e0b) for warning, red (#ef4444) for critical. Custom scrollbar, keyframe animations (pulse, float, shimmer, fadeInUp, slideIn), responsive grid layout, Inter + JetBrains Mono font setup.

4.3 Executive Dashboard (Primary Interface)

  • SystemHealthIndex.tsx β€” Large circular SVG gauge with animated arc, ambient glow pulse that changes color based on score threshold
  • FactoryMetrics.tsx β€” Grid of KPI cards: OEE, Production Rate, Defect Rate, MTBF, Energy/Unit, On-Time Delivery with trend indicators and sparklines
  • RiskStream.tsx β€” Real-time scrolling feed of events from ERP, MES, WMS, DMS, IoT. Particle effects on anomaly detection. Source badges. Auto-scroll with pause-on-hover
  • AIRecommendations.tsx β€” AI recommendation cards with confidence scores, Approve/Reject/Investigate buttons, business impact metrics
  • AIDecisionFeed.tsx β€” Timeline of all AI decisions with pending/approved/executed status, agent attribution, expandable evidence

4.4 Multi-Agent Collaboration Canvas

  • AgentCanvas.tsx β€” SVG-based visualization with enterprise system nodes, MCP gateway, LangGraph orchestrator, 8 agents in circular arc, AMD + Fireworks compute nodes. Animated glowing data packets flow between nodes
  • AgentNode.tsx β€” Individual agent with states: idle (dim), active (pulsing glow), complete (green check). Hover tooltip
  • DataFlowParticles.tsx β€” Animated particles traveling along SVG paths representing real data flow
  • AgentNegotiation.tsx β€” Panel with typewriter animation showing agent conversation in real-time

4.5 Digital Twin Simulation

  • DigitalTwinPanel.tsx β€” Glassmorphism panel with scenario simulation, current vs projected metrics, animated progress bars, Explainable AI breakdown (downtime avoided, production impact, financial savings, confidence score, root cause)
  • ScenarioComparison.tsx β€” Side-by-side: Scenario A "Immediate maintenance" vs Scenario B "Delay 6 hours" with animated differential metrics
  • Backend simulator.py β€” SimPy discrete-event simulation. Takes current state + proposed action β†’ projects outcomes for downtime, production loss, financial impact, delivery delay

4.6 AI Copilot (Secondary Interface)

  • CopilotPanel.tsx β€” Right-side slide-out panel (like GitHub Copilot). Opens on "Investigate" click. Chat input, streaming responses
  • ChatMessage.tsx β€” Message bubbles with markdown rendering, embedded chart rendering, typewriter streaming animation
  • ChartRenderer.tsx β€” Detects chart data in AI responses. Renders Bar charts (sales), Pie charts (distribution), Line charts (telematics) via Recharts

4.7 MCP Execution Terminal

Authentic terminal UI with JetBrains Mono font. Color-coded execution logs with timestamps. Auto-scroll with typewriter effect.

[14:02:31] MCP β†’ Connecting to ERP (Ramco Systems)...
[14:02:32] AUTH β†’ JWT verified βœ“ Role: plant_manager
[14:02:33] MCP:READ β†’ Fetching PO#2847 status... OK
[14:02:34] RBAC β†’ Write operation requires approval
[14:02:35] APPROVAL β†’ Manager approved: Update PO#2847
[14:02:36] MCP:WRITE β†’ ERP PO#2847 updated β†’ EXPEDITED βœ“
[14:02:37] MCP:WRITE β†’ MES Schedule updated β†’ Line 3 break extended βœ“
[14:02:38] MCP:WRITE β†’ DMS Notification sent β†’ 3 dealers notified βœ“
[14:02:39] AUDIT β†’ Action logged β†’ ID: AX-2847-MAINT

4.8 Hardware & Infrastructure Badges

Three prominent glassmorphism badges in the dashboard header: AMD ROCm Core (AMD Instinctβ„’ MI300X β€’ ROCm Stack), AMD Developer Cloud (GPU Cluster β€’ vLLM Inference), Fireworks AI (Serverless Inference β€’ Llama 3.3 70B). Subtle glow animations with Lucide icons (CPU, Cloud, Zap).

4.9 FastAPI Backend (main.py)

FastAPI app with CORS middleware, WebSocket support, and structured endpoints:

POST /api/chat β€” AI Copilot (streaming responses)
POST /api/decision β€” Trigger decision workflow
GET /api/events β€” SSE real-time event stream
GET /api/health β€” System health metrics
GET /api/metrics β€” Factory KPI data
POST /api/simulate β€” Digital Twin simulation
POST /api/approve/{id} β€” Approve/reject actions
WS /ws/agents β€” Agent activity WebSocket

Config: temp=0.3 | max_tokens=1024 | max_iterations=3

4.10 LangGraph Multi-Agent Orchestrator

  • state.py β€” ManufacturingState TypedDict: messages, next_agent, agent_results, decision, context, event_data
  • workflow.py β€” StateGraph with supervisor pattern. 8 specialized agents + 1 supervisor. max_iterations=3 enforced. Conditional routing. Streaming support
  • decision_engine.py β€” Aggregates multi-agent outputs, calculates confidence scores, generates business impact, produces structured recommendations with evidence

4.11 8 Specialized Agents

Each agent has a specialized system prompt, domain-specific tools, Pydantic output schemas, and is connected to Fireworks AI via ChatFireworks:

  • πŸ”§ Telematics Agent β€” Monitors vehicle/machine sensor data, detects anomalies, temperature thresholds
  • πŸ“¦ Inventory Agent β€” Checks stock levels, spare parts availability, warehouse locations, reorder points
  • βš™οΈ Production Agent β€” Monitors production lines, OEE metrics, maintenance windows, line schedules
  • πŸ”¨ Maintenance Agent β€” Schedules preventive/reactive maintenance, resource allocation
  • πŸͺ DMS Agent β€” Dealer management, order tracking, customer impact analysis
  • πŸ’° Finance Agent β€” Cost analysis, budget impact, ROI calculations, savings projections
  • βœ… Quality Agent β€” Defect detection, QC metrics, compliance checks, recall monitoring
  • 🚚 Logistics Agent β€” Supply chain optimization, delivery tracking, route planning

4.12 MCP Integration Layer

  • server.py (Read APIs) β€” Simulated read operations from ERP, MES, WMS, DMS. Returns realistic manufacturing data with structured response schemas
  • client.py (Write APIs) β€” RBAC-gated write operations. Approval workflow: pending β†’ approved β†’ executed. Immutable audit logging. JWT verification per operation

4.13 Mock Data & Demo Scenario

Realistic manufacturing data for demo: truck battery telemetry, inventory levels across warehouses, production line schedules, financial projections. The demo auto-plays on page load β€” no user prompt needed. Proactive intelligence from second one.

05 β€” DESIGN DECISIONS

10 Critical Decisions & Rationale

01

Dashboard-First, Not Chatbot-First

Manufacturing operators need at-a-glance status, not a chat prompt. The dashboard IS the product; the copilot is secondary.

02

8 Specialized Agents vs 1 General Agent

Domain expertise matters. A finance agent shouldn't reason about maintenance schedules. Specialization = accuracy.

03

Explicit Decision Engine

LangGraph orchestrates, AMD computes, Fireworks reasons β€” but the Decision Engine is where business logic lives. Judges need to see it.

04

Digital Twin with SimPy

Before executing any action, AIRA simulates outcomes. This is the safety net that justifies autonomous operation.

05

MCP with RBAC Gate

Autonomous doesn't mean uncontrolled. Every write operation requires human approval with full audit trail.

06

Event-Driven Architecture

Data flows continuously from enterprise systems upward through Event Bus. Not only when users interact. True autonomy.

07

Fireworks + AMD Collaboration

Fireworks handles reasoning/planning (Llama 3.3 70B). AMD handles heavy compute (predictions, simulations, embeddings). They collaborate, not compete.

08

Explainable AI Outputs

Every decision includes root cause, evidence, confidence score, and business impact. No black boxes in manufacturing.

09

max_iterations = 3

Safety limit on agent loops to prevent runaway inference, cost explosion, and infinite agent conversations.

10

Temperature = 0.3

Low temperature for manufacturing decisions where accuracy matters more than creativity. No hallucinated maintenance schedules.

06 β€” ARCHITECTURE EVOLUTION

From 8.5/10 to 9.8/10

8.5/10

❌ Initial Architecture

  • Traditional request/response flow
  • Missing explicit Decision Engine
  • Digital Twin (SimPy) hidden inside AMD block
  • No Event Stream / Event Bus
  • RAG placed as an agent (it's a tool)
  • "AMD Data Layer" mislabeled (AMD = compute)
  • Only "Portal" β€” no Dashboard/Alerts/Approvals
  • No Explainable AI block
  • No Audit & Governance sidebar
  • Fireworks & AMD drawn as parallel (they collaborate)
9.8/10

βœ… Final Architecture

  • Event-driven autonomous decision platform
  • Explicit Decision Engine at center
  • Digital Twin as first-class block with SimPy
  • Event Bus (Kafka/Redpanda) for continuous flow
  • RAG moved to Tools & Services
  • Renamed to "Operational Data Layer"
  • Dashboard + Copilot + Alerts + Approvals + Reports
  • Explainable AI sidebar (Root Cause, Confidence)
  • Audit & Governance sidebar (Logs, Compliance)
  • AMD + Fireworks shown as collaborative pipeline
07 β€” DEMO SCENARIO WALKTHROUGH

Truck Battery Failure Response

The demo auto-plays on page load β€” no user prompt needed. Here's the complete sequence:

T+0s

🟒 Dashboard Loads

All metrics green. System Health at 94%. Factory running optimally.

T+3s

⚠️ Anomaly Detected

Risk Stream: "Battery temperature anomaly β€” Truck #EV-2847 β€” +41% above threshold"

T+4s

🟑 System Alert

System Health drops to 72%. Gauge turns amber. Ambient glow shifts to warning state.

T+5s

πŸ”§ Telematics Agent Activates

"Battery cell #3 temp 78Β°C vs 55Β°C threshold. Degradation rate: 2.3%/hr. Estimated failure: 6 hours."

T+7s

πŸ“¦ Inventory Agent

"Compatible battery EV-BAT-300A available. Warehouse B, Slot R4-C2. Lead time: 45 min."

T+8s

βš™οΈ Production Agent

"Line 3 maintenance window: 14:00-15:30. Current OEE: 87%. Impact if delayed: -12% OEE."

T+9s

πŸ’° Finance Agent

"Immediate replacement: β‚Ή2.8L. Delayed failure: β‚Ή19L (downtime + damage). ROI: 578%."

T+10s

βœ… Quality Agent

"Battery lot QC passed. No recalls on EV-BAT-300A series."

T+11s

🚚 Logistics Agent

"Optimal route: Warehouse B β†’ Line 3 via Gate C. ETA: 35 minutes."

T+12s

πŸ§ͺ Digital Twin Simulates

SimPy runs 2 scenarios. A (immediate): 0.5hr downtime, β‚Ή2.8L. B (delay 6hr): 8hr downtime, β‚Ή19L.

T+13s

🎯 Decision Engine

"RECOMMENDATION: Immediate battery replacement during Line 3 maintenance window. Confidence: 94%. Evidence: 6 agents, 12 data points."

T+14s

πŸ“‹ Recommendation Card

Dashboard shows recommendation with Approve/Reject buttons and business impact summary.

User Action

βœ… User Clicks Approve

MCP Terminal animates: ERP updated, MES schedule modified, DMS dealers notified, audit logged.

Post-Approval

🟒 System Recovers

System Health returns to 91%. All metrics update. Decision logged to AI Decision Feed.

Investigate

πŸ’¬ Copilot Opens

User clicks "Investigate" β€” Copilot panel slides open with full explanation, charts, evidence.

08 β€” KEY METRICS

Impact by the Numbers

70%
Data Accessibility Improvement
95%
Retrieval Time Reduction
94%
Decision Confidence Score
8
Specialized AI Agents
6+
Enterprise Data Sources
15%
Operational Efficiency Gain
3
Max Iterations (Safety)
0.3
LLM Temperature
09 β€” COMPLETE FILE STRUCTURE

Project Tree

airan/
β”œβ”€β”€ .env # API keys, configs
β”œβ”€β”€ package.json # Next.js dependencies
β”œβ”€β”€ next.config.ts # API rewrites to FastAPI
β”œβ”€β”€ tailwind.config.ts # Dark industrial theme
β”œβ”€β”€ tsconfig.json # TypeScript config
β”œβ”€β”€ src/
β”‚ β”œβ”€β”€ app/
β”‚ β”‚ β”œβ”€β”€ layout.tsx # Root layout, fonts, dark bg
β”‚ β”‚ β”œβ”€β”€ page.tsx # Main dashboard page
β”‚ β”‚ β”œβ”€β”€ globals.css # Design system, animations
β”‚ β”‚ └── api/
β”‚ β”‚ β”œβ”€β”€ chat/route.ts # Chat API proxy
β”‚ β”‚ β”œβ”€β”€ decision/route.ts # Decision API proxy
β”‚ β”‚ └── events/route.ts # SSE events proxy
β”‚ β”œβ”€β”€ components/
β”‚ β”‚ β”œβ”€β”€ dashboard/ # SystemHealthIndex, FactoryMetrics,
β”‚ β”‚ β”‚ # RiskStream, AIRecommendations,
β”‚ β”‚ β”‚ # AIDecisionFeed, ProductionHealth...
β”‚ β”‚ β”œβ”€β”€ agents/ # AgentCanvas, AgentNode,
β”‚ β”‚ β”‚ # DataFlowParticles, AgentNegotiation
β”‚ β”‚ β”œβ”€β”€ digital-twin/ # DigitalTwinPanel, ScenarioComparison
β”‚ β”‚ β”œβ”€β”€ copilot/ # CopilotPanel, ChatMessage, ChartRenderer
β”‚ β”‚ β”œβ”€β”€ mcp/ # MCPTerminal
β”‚ β”‚ β”œβ”€β”€ charts/ # SalesBarChart, SalesPieChart, TelematicsLineChart
β”‚ β”‚ └── ui/ # GlassCard, PulsingDot, TypewriterText,
β”‚ β”‚ # ParticleEffect, HardwareBadge
β”‚ β”œβ”€β”€ lib/ # types.ts, mockData.ts, api.ts, constants.ts
β”‚ └── hooks/ # useWebSocket, useEventStream, useSimulation
β”œβ”€β”€ backend/
β”‚ β”œβ”€β”€ main.py # FastAPI entry point
β”‚ β”œβ”€β”€ config.py # Centralized configuration
β”‚ β”œβ”€β”€ agents/ # supervisor.py, telematics.py, inventory.py,
β”‚ β”‚ # production.py, finance.py, maintenance.py,
β”‚ β”‚ # logistics.py, quality.py, dealer.py
β”‚ β”œβ”€β”€ graph/ # state.py, workflow.py, decision_engine.py
β”‚ β”œβ”€β”€ digital_twin/ # simulator.py (SimPy engine)
β”‚ β”œβ”€β”€ mcp/ # server.py (Read), client.py (Write+RBAC)
β”‚ β”œβ”€β”€ models/ # schemas.py (Pydantic models)
β”‚ └── data/ # mock_data.py (realistic demo data)
10 β€” WHAT MAKES THIS DIFFERENT

6 Key Differentiators

πŸ€–

Autonomous, Not Assistive

AIRA doesn't wait for user queries. It continuously monitors, detects anomalies, and proactively decides β€” acting like a manufacturing operator, not an assistant.

πŸ“Š

Dashboard-First UX

Operators see status at a glance. KPIs, health gauges, risk streams β€” all visible immediately. The chatbot is supplementary, not primary.

πŸ§ͺ

Digital Twin Safety Net

Every decision is simulated via SimPy before execution. Compare scenarios, project outcomes, and only then act. Autonomy with guardrails.

πŸ”

Explainable AI

No black boxes. Every recommendation includes root cause analysis, evidence chain, confidence score, and estimated business impact.

πŸ”

Enterprise-Grade MCP + RBAC

Read/write separation. Human-in-the-loop approval for all write operations. Immutable audit logs. JWT authentication per action.

⚑

AMD + Fireworks Synergy

Heavy compute (predictions, simulations, embeddings) on MI300X GPUs. Reasoning & planning on Llama 3.3 70B via Fireworks. Best of both worlds.

11 β€” FUTURE ROADMAP

What's Next