How surendraraju09/supply_ops works
APEXX is a supply-chain disruption control tower. Its main workflow discovers external signals, resolves them against shipment and ERP data, calculates inventory and customer-order impact, evaluates recovery options and constraints, then presents role-based decisions and audit evidence. The README documents the end-to-end stages and workspaces; sampled code confirms the SerpAPI fallback, impact calculations, and frontend API boundary. Several backend connections below rely on README documentation because those source files were not excerpted.
Main entry points: graph.py Agent Orchestrator · server.py Control Tower API · impact_engine_v2.py Impact and PAB · serp_client.py News Search
Components 17
Signal and Evidence
- News Search
serp_client.py - Signal Cache
cache/serp_cache.json - Disruption Parser
disruption_parser.py - Signal Agent
signal_agent.py
ERP and Impact
- ERP Database
mock_erp.db - ERP Resolver
erp_resolver.py - Impact and PAB
impact_engine_v2.py - Impact Engine
impact_engine.py
Decision Services
- Agent Orchestrator
graph.py - Constraint Rules
constraint_agent.py - Recovery Agent
recovery_agent.py - Recovery Scoring
recommendation.py - Control Tower API
server.py
Role Workspaces
- Control Tower UI
frontend/src/App.tsx - Frontend API Client
frontend/src/api.ts - Workspace Data Types
frontend/src/types.ts
Other components
- Supply Planner
Connections 19
- Supply Planner → News Search: searches signals
README.md - News Search → Signal Cache: reads or writes
serp_client.py - News Search → Disruption Parser: supplies news
README.md - Disruption Parser → Signal Agent: provides parsed signal
README.md - Signal Agent → ERP Resolver: resolves ERP entities
README.md - ERP Resolver → ERP Database: looks up records
README.md - Impact and PAB → ERP Database: reads shipment and BOM data
impact_engine_v2.py - Impact and PAB → Recovery Scoring: requests AI synthesis
impact_engine_v2.py - Impact and PAB → Agent Orchestrator: provides impact dossier
README.md - Agent Orchestrator → Constraint Rules: validates options
README.md - Agent Orchestrator → Recovery Agent: coordinates recovery
README.md - Agent Orchestrator → Recovery Scoring: scores recovery options
README.md - Control Tower API → Agent Orchestrator: serves decisions
README.md - Control Tower API → ERP Database: records ERP decisions
README.md - Control Tower UI → Frontend API Client: uses API client
frontend/src/App.tsx - Frontend API Client → Control Tower API: calls API routes
README.md - Control Tower UI → Workspace Data Types: uses workspace types
frontend/src/App.tsx - Frontend API Client → Workspace Data Types: uses response types
frontend/src/api.ts - Control Tower API → Control Tower UI: serves role workspaces
README.md