How shubhamkr07/opssentinel works
OpsSentinel is a logistics exception-orchestration system. The README-described workflow ingests events, processes and validates them, detects exceptions, decides and executes actions, and records resolution/state. The tree also contains a second, more feature-rich opssentinel runtime with agent orchestration, memory, logistics connectors, and geo/traffic/weather services; it is represented as a distinct branch. Some edges rely on the SOURCE INDEX or README rather than inspected implementation excerpts, so unsampled subsystem links are omitted where ownership is unclear.
Main entry points: opssentinel/runtime.py Agent runtime · ops_sentinel/runtime.py Workflow runtime · event_bus.py Topic event bus · multi_agents.py Multi-agent system
Components 31
Event workflow
- CLI entry
main.py - Workflow runtime
ops_sentinel/runtime.py - Event producer
ops_sentinel/services/event_producer.py - Event processor
ops_sentinel/services/event_processor_service.py - Exception engine
ops_sentinel/services/exception_engine.py - Agent service
ops_sentinel/services/agent_service.py - Action service
ops_sentinel/services/action_service.py
Agent runtime
- Agent runtime
opssentinel/runtime.py - Multi-agent system
opssentinel/agent/multi_agents.py - Agent router
opssentinel/services/orchestration/agent_router.py - Exception analysis
opssentinel/exception/engine.py - LLM client
opssentinel/llm/openai_client.py - Tool gateway
opssentinel/mcp/gateway.py - Semantic memory
opssentinel/services/memory/memory_service.py - Memory store
opssentinel/services/memory/memory_store.py - Event processor
opssentinel/processor/processor.py - Event simulator
opssentinel/producer/simulator.py - Action executor
opssentinel/actions/executor.py - Live evaluation
opssentinel/services/eval/live_eval_engine.py
Logistics context
- TMS connector
opssentinel/connectors/tms.py - WMS connector
opssentinel/connectors/wms.py - Geo routing
opssentinel/services/geo/route_service.py - Traffic risk
opssentinel/services/traffic/route_risk_engine.py - Weather service
opssentinel/services/weather/weather_service.py
Shared internals
- Topic event bus
ops_sentinel/bus/event_bus.py - Event contract
ops_sentinel/contracts/event_contract.py - Workflow state
ops_sentinel/state_store/state_store.py - Runtime state
opssentinel/state/store.py - Async event bus
opssentinel/event_bus/bus.py - Structured logging
opssentinel/observability/logging.py
Other components
- Run operator
Connections 36
- Run operator → CLI entry: starts
README.md - CLI entry → Workflow runtime: runs
main.py - Workflow runtime → Event producer: starts
ops_sentinel/runtime.py - Workflow runtime → Event processor: starts
ops_sentinel/runtime.py - Workflow runtime → Exception engine: starts
ops_sentinel/runtime.py - Workflow runtime → Agent service: starts
ops_sentinel/runtime.py - Workflow runtime → Action service: starts
ops_sentinel/runtime.py - Event producer → Topic event bus: publishes events
ops_sentinel/services/event_producer.py - Event processor → Topic event bus: consumes and publishes
ops_sentinel/services/event_processor_service.py - Exception engine → Topic event bus: consumes and publishes
ops_sentinel/services/exception_engine.py - Agent service → Topic event bus: consumes and publishes
ops_sentinel/services/agent_service.py - Action service → Topic event bus: consumes and publishes
ops_sentinel/services/action_service.py - Topic event bus → Event contract: validates events
ops_sentinel/bus/event_bus.py - Event processor → Workflow state: updates state
ops_sentinel/services/event_processor_service.py - Exception engine → Workflow state: records exceptions
ops_sentinel/services/exception_engine.py - Agent service → Workflow state: reads state
ops_sentinel/services/agent_service.py - Action service → Workflow state: records actions
ops_sentinel/services/action_service.py - Agent runtime → Multi-agent system: configures
opssentinel/runtime.py - Agent runtime → Exception analysis: configures
opssentinel/runtime.py - Agent runtime → Event processor: configures
opssentinel/runtime.py - Agent runtime → Event simulator: configures
- Multi-agent system → LLM client: requests proposals
opssentinel/agent/multi_agents.py - Multi-agent system → Tool gateway: uses tools
opssentinel/agent/multi_agents.py - Multi-agent system → Runtime state: reads and writes
opssentinel/agent/multi_agents.py - Exception analysis → Semantic memory: uses memory
opssentinel/exception/engine.py - Exception analysis → Runtime state: updates exceptions
opssentinel/exception/engine.py - Semantic memory → Memory store: persists records
opssentinel/services/memory/memory_service.py - Semantic memory → Runtime state: uses runtime state
- Event processor → Async event bus: publishes events
opssentinel/processor/processor.py - Event simulator → Async event bus: publishes events
opssentinel/producer/simulator.py - TMS connector → Async event bus: publishes events
opssentinel/connectors/tms.py - Geo routing → Traffic risk: uses route risk
- Weather service → Structured logging: logs service activity
opssentinel/services/weather/weather_service.py - Async event bus → Structured logging: logs publishes
opssentinel/event_bus/bus.py - Agent runtime → Action executor: configures
opssentinel/runtime.py - Agent runtime → Live evaluation: configures
opssentinel/runtime.py