How devasish009/cyvora works
CYVORA is an autonomous software repair system: users submit or select a project and error, the backend starts a repair session, analyzes the project and fault, investigates and generates a patch, then validates and applies a verified fix. The frontend exposes project, error, repair, test-result, activity, and Hindsight views. The graph also includes session/task/event state, security, persistence, and live telemetry. Arrows follow excerpts, SOURCE INDEX references, or README claims; several documented subsystems have directory-level paths because their implementation was not sampled.
Main entry points: engine_orchestrator.py Repair orchestrator · main.py REST and WebSocket API · event_bus.py Event bus · sandbox_executor.py Isolated execution
Components 23
User interface
- Control center
apps/frontend/src/App.jsx
API and orchestration
- REST and WebSocket API
apps/backend/main.py - Repair orchestrator
engine/core/orchestrator/engine_orchestrator.py
Analysis and repair
- Project scanning
engine/analyzers/project_analyzer/project_scanner.py - Code and dependency analysis
engine/analyzers/code_analyzer/code_analyzer.py - Code context
engine/context/context_builder/context_builder.py - Fault localization
engine/analyzers/error_analyzer/fault_localizer.py - Error investigation
engine/agents/investigation_agent/investigation_agent.py - Root cause analysis
engine/agents/root_cause_agent/root_cause_agent.py - Repair planning
engine/agents/repair_agent/repair_agent.py - Patch generation
engine/repair/patch_generator/candidate_synthesizer.py - Patch lifecycle
engine/repair/patch_manager/patch_manager.py - Unified diffs
engine/repair/diff_engine/diff_engine.py - Isolated execution
engine/sandbox/sandbox_executor.py - Fix verification
engine/validation/evidence_verifier.py
State and safeguards
- Project records
infrastructure/database/database.py - Hindsight memory
engine/memory/hindsight/hindsight_memory.py - Session state
engine/core/state_manager/state_manager.py - Task coordination
engine/core/task_manager/task_manager.py - Workflow engine
engine/core/workflow/workflow_engine.py - Event bus
engine/core/event_system/event_bus.py - Security policy
security/security_policy.py
Other components
- Engineer
Connections 25
- Engineer → Control center: starts analysis
- Control center → REST and WebSocket API: uses API
- REST and WebSocket API → Project records: stores records
apps/backend/main.py - REST and WebSocket API → Repair orchestrator: starts repair
apps/backend/main.py - Repair orchestrator → Session state: creates session
engine/core/orchestrator/engine_orchestrator.py - Repair orchestrator → Security policy: checks access
engine/core/orchestrator/engine_orchestrator.py - Repair orchestrator → Project scanning: scans project
engine/core/orchestrator/engine_orchestrator.py - Repair orchestrator → Code and dependency analysis: analyzes code
engine/core/orchestrator/engine_orchestrator.py - Repair orchestrator → Code context: builds context
engine/core/orchestrator/engine_orchestrator.py - Repair orchestrator → Fault localization: localizes fault
engine/core/orchestrator/engine_orchestrator.py - Repair orchestrator → Error investigation: investigates error
engine/core/orchestrator/engine_orchestrator.py - Repair orchestrator → Root cause analysis: analyzes cause
engine/core/orchestrator/engine_orchestrator.py - Repair orchestrator → Repair planning: plans repair
engine/core/orchestrator/engine_orchestrator.py - Repair planning → Patch generation: synthesizes patch
- Repair orchestrator → Patch lifecycle: manages patches
engine/core/orchestrator/engine_orchestrator.py - Patch lifecycle → Unified diffs: applies or rolls back
engine/repair/patch_manager/patch_manager.py - Repair orchestrator → Isolated execution: validates candidate
engine/core/orchestrator/engine_orchestrator.py - Isolated execution → Security policy: checks execution
engine/sandbox/sandbox_executor.py - Repair orchestrator → Fix verification: verifies evidence
engine/core/orchestrator/engine_orchestrator.py - Fix verification → Isolated execution: runs checks
engine/validation/evidence_verifier.py - Repair orchestrator → Hindsight memory: records repair
apps/backend/main.py - Repair orchestrator → Event bus: publishes progress
engine/core/orchestrator/engine_orchestrator.py - Task coordination → Event bus: publishes task events
engine/core/task_manager/task_manager.py - Workflow engine → Event bus: publishes step events
engine/core/workflow/workflow_engine.py - REST and WebSocket API → Event bus: streams telemetry
apps/backend/main.py