How sys-sharedbuilds/agnitia_hackathon works
SwitchOn accepts telecom activation orders, resolves each product into a dependency-aware task plan, and executes the plan durably with compensation on failure. Operators use the console to submit and inspect orders, events, metrics, catalogues, reconciliation, and verification proofs. The API persists order/read-model state while Temporal workers run activities against the downstream systems. The README documents Redis Streams and cryptographic certificates as product capabilities; their implementation relationships are shown only where supported. Several auxiliary backend subsystems are unsampled, so their connections are omitted or marked unverified.
Main entry points: activities.py Task activities · orders.py Order handling · Shell.tsx Operator console · main.py Order API
Components 26
Operator console
- Operator console
web/app/Shell.tsx - Order views
web/app/orders/page.tsx - Activation view
web/app/new/page.tsx - Ops and proof views
web/app/reconciler/page.tsx
Order control plane
- Order API
services/order_api/main.py - Order handling
services/order_api/routes/orders.py - Product plans
shared/catalog.py - Order read model
services/order_api/db.py - Event stream API
services/order_api/routes/stream.py - Metrics API
services/order_api/routes/metrics.py
Durable execution
- Temporal service
- Workflow worker
services/orchestrator/worker.py - Activation workflow
services/orchestrator/workflows/activation.py - Task activities
services/orchestrator/activities.py - Event publisher
services/orchestrator/events.py - Redis Streams
- Read-model projection
services/orchestrator/projector.py - State reconciler
services/orchestrator/reconciler.py - Consistency proofs
shared/crypto.py - Baseline engine
services/orchestrator/baseline.py
External systems
- OMS mock
- Inventory mock
- Network mock
- Billing mock
- Notification mock
Other components
- Operator
Connections 29
- Operator → Operator console: uses
README.md - Operator console → Order views: navigates
- Operator console → Activation view: navigates
- Operator console → Ops and proof views: navigates
- Operator console → Order API: uses API
README.md - Activation view → Order API: submits orders
- Order views → Order API: reads orders
- Ops and proof views → Order API: requests ops data
- Order API → Order handling: routes requests
services/order_api/main.py - Order handling → Order read model: reads and writes
services/order_api/routes/orders.py - Order handling → Product plans: resolves plans
services/order_api/routes/orders.py - Order handling → Temporal service: starts workflows
- Order handling → Baseline engine: runs baseline
services/order_api/routes/orders.py - Workflow worker → Temporal service: connects worker
services/orchestrator/worker.py - Temporal service → Workflow worker: dispatches tasks
- Workflow worker → Activation workflow: registers workflow
services/orchestrator/worker.py - Activation workflow → Task activities: schedules activities
services/orchestrator/workflows/activation.py - Task activities → OMS mock: calls
services/orchestrator/activities.py - Task activities → Inventory mock: calls
services/orchestrator/activities.py - Task activities → Network mock: calls
services/orchestrator/activities.py - Task activities → Billing mock: calls
services/orchestrator/activities.py - Task activities → Notification mock: calls
- Task activities → Event publisher: publishes events
services/orchestrator/activities.py - Event publisher → Redis Streams: publishes to
- Event stream API → Redis Streams: streams events
- Read-model projection → Order read model: updates read model
- State reconciler → Order read model: checks state
- Order handling → Consistency proofs: signs certificate
services/order_api/routes/orders.py - Metrics API → Order read model: queries metrics
services/order_api/routes/metrics.py