How guna-72/cdset_v4 works
Chaos Tutor/CD-SET accepts project archives or Git repositories, analyzes resilience failure surfaces, generates and safety-checks experiments, runs them in isolated sandboxes, and presents diagnostics and learning guidance. The graph preserves those stages alongside the React client, persistence, authentication, diagnosis providers, and the separate conversational tutor service. Relationships follow shown imports/calls or README descriptions; some unsampled subsystem links are omitted rather than inferred.
Main entry points: orchestrator.py Pipeline orchestration · api.py HTTP API · api.js Backend client · pages Product screens
Components 24
Frontend
- App navigation
chaos/src/App.jsx - Product screens
chaos/src/pages - Tutor screen
chaos/src/pages/TutorPage.jsx - Backend client
chaos/src/api.js - Auth context
chaos/src/context/AuthContext.jsx
Core backend
- HTTP API
backend/app/api.py - Pipeline orchestration
backend/app/orchestrator.py - Archive intake
backend/app/intake.py - Git intake
backend/app/git_intake.py - Static analysis
backend/app/analyzer.py - Failure discovery
backend/app/failure_discovery.py - Experiment generation
backend/app/experiment_generator.py - Safety gate
backend/app/safety_gate.py - Failure diagnosis
backend/app/diagnosis.py - SQLite persistence
backend/app/db.py
Experiment runtime
- Fault injection
backend/app/chaos_engine.py - Sandbox execution
backend/app/sandbox.py
AI tutoring
- Tutor guidance
backend/app/tutor.py - Tutor context
backend/app/tutor_context.py - Tutor microservice
ai_tutor_backend/app.py
Identity and providers
- LLM providers
backend/app/llm_providers.py - Firebase identity
chaos/src/firebase.js
Other components
- Developer
- User
Connections 23
- Developer → App navigation: uses
- App navigation → Product screens: routes to
chaos/src/App.jsx - Product screens → Backend client: requests
chaos/src/pages/ChaosLabPage.jsx - Product screens → Backend client: requests
chaos/src/pages/DashboardPage.jsx - Tutor screen → Backend client: requests
chaos/src/pages/TutorPage.jsx - Backend client → HTTP API: sends requests
- Auth context → Firebase identity: uses
chaos/src/context/AuthContext.jsx - HTTP API → Pipeline orchestration: calls
backend/app/api.py - HTTP API → Tutor guidance: calls
backend/app/api.py - HTTP API → Tutor context: calls
backend/app/api.py - Pipeline orchestration → Archive intake: validates archives
backend/app/orchestrator.py - Pipeline orchestration → Git intake: imports repositories
backend/app/orchestrator.py - Pipeline orchestration → Static analysis: analyzes project
backend/app/orchestrator.py - Pipeline orchestration → Failure discovery: discovers surfaces
backend/app/orchestrator.py - Pipeline orchestration → Experiment generation: generates experiments
backend/app/orchestrator.py - Pipeline orchestration → Safety gate: checks safety
backend/app/orchestrator.py - Pipeline orchestration → Fault injection: runs approved tests
backend/app/chaos_engine.py - Fault injection → Sandbox execution: launches in
backend/app/chaos_engine.py - Pipeline orchestration → Failure diagnosis: diagnoses failures
- Failure diagnosis → LLM providers: uses providers
- Pipeline orchestration → SQLite persistence: stores run history
backend/app/orchestrator.py - Tutor guidance → Tutor context: uses context
- User → Tutor microservice: asks questions