How ttahsin124-wq/cha-bagan-mu-hackathon-team-nexus-builders works
CHA-BAGAN OPS AI is an incident-analysis and guarded-remediation application. An operator submits or selects an incident; the API loads telemetry and evidence, evaluates customer-visible SLO impact, attributes a cause, checks safety, and presents a plan. Where authorized, actions pass through an idempotent outbox to a worker and simulated cluster; recovery is observed and audited. The graph includes the implemented analysis, safety, agent, persistence, and remediation layers. Several README capabilities are explicitly planned, so they are not represented as implemented components; unsampled relationships are omitted unless documented or indexed.
Main entry points: main.py Incident API · model.py Domain records · attribute.py Causal attribution · compute.py SLO evaluation
Components 22
Incident interface
- Incident UI
web/index.html - Run view
web/run.html - Incident API
app/api/main.py
Incident analysis
- Domain records
app/core/model.py - Core ports
app/core/ports.py - SLO evaluation
app/core/slo/compute.py - Causal attribution
app/core/attribution/attribute.py - Proposal guard
app/core/attribution/guard.py - Blast radius
app/core/blast/radius.py - Safety chain
app/core/safety/chain.py - Incident lifecycle
app/core/lifecycle.py - Bounded agent
app/core/agent/loop.py
Ports and adapters
- Fixture loader
app/adapters/telemetry/fixture.py - Incident generator
app/adapters/telemetry/generate.py - Policy config
app/adapters/config.py - Scenario clock
app/adapters/clock.py - Reasoning adapter
app/adapters/reasoning/llm.py - SQLite store
app/adapters/store/sqlite.py
Guarded execution
- Simulated cluster
app/adapters/remediation/sim_cluster.py - Outbox worker
app/worker/runner.py
Other components
- Operator
- NVIDIA model API
Connections 33
- Operator → Incident UI: uses
README.md - Operator → Run view: uses
README.md - Incident UI → Incident API: requests
- Run view → Incident API: requests
- Incident API → Fixture loader: loads fixtures
app/api/main.py - Incident API → Incident generator: generates incidents
app/api/main.py - Incident API → SQLite store: reads and writes
app/api/main.py - Incident API → Scenario clock: gets time
app/api/main.py - Incident API → Policy config: loads policies
app/api/main.py - Incident API → SLO evaluation: evaluates SLO
app/api/main.py - Incident API → Causal attribution: attributes cause
app/api/main.py - Incident API → Proposal guard: checks proposal
app/api/main.py - Incident API → Reasoning adapter: requests proposal
app/api/main.py - Incident API → Blast radius: computes impact
app/api/main.py - Incident API → Safety chain: checks actions
app/api/main.py - Incident API → Incident lifecycle: advances incident
app/api/main.py - Incident API → Bounded agent: runs agent
app/api/main.py - Incident API → Simulated cluster: configures remediation
app/api/main.py - Reasoning adapter → NVIDIA model API: requests completion
app/adapters/reasoning/llm.py - Causal attribution → Domain records: uses records
app/core/attribution/attribute.py - Causal attribution → SLO evaluation: uses mechanisms
app/core/attribution/attribute.py - Proposal guard → Causal attribution: reconciles cause
app/core/attribution/guard.py - SLO evaluation → Domain records: evaluates records
app/core/slo/compute.py - Blast radius → SLO evaluation: uses SLO results
app/core/blast/radius.py - Safety chain → Domain records: checks policy
app/core/safety/chain.py - Bounded agent → Reasoning adapter: requests next step
- Outbox worker → SQLite store: claims and records jobs
app/worker/runner.py - Outbox worker → Simulated cluster: applies action
app/worker/runner.py - Simulated cluster → SQLite store: reads and updates state
app/adapters/remediation/sim_cluster.py - Incident API → Core ports: uses interfaces
app/api/main.py - SQLite store → Domain records: persists records
app/adapters/store/sqlite.py - Fixture loader → Domain records: builds records
app/adapters/telemetry/fixture.py - Incident generator → Domain records: creates evidence
app/adapters/telemetry/generate.py