source: gcc-scout

content: Verified

type: entity


content: Found 4 files. No missing imports or broken paths identified in this module.


content: Immediate removal/refactor required.


content: Migrate to google.genai SDK.


content: Audit complete. 2 Critical Rule Violations identified (SQLite usage and Deprecated SDK).


content:
DBC[utils/db_connector.py] -.-> |UNUSED| NONE[None]
    DBC -.-> |VIOLATION| SQL[sqlite3]

    style DBC fill:#f66,stroke:#333,stroke-width:2px
    style SQL fill:#faa,stroke:#f00
```

---

### **JSONL Dependency Data (Sample of Key Nodes)**
*Note: Full output for 574 files is truncated for readability; focus on primary intersections.*

```json
{"file": "core/executors/gemini_executor.py", "classes": ["GeminiExecutor"], "functions": ["execute", "stream_response"], "imports_from": ["google.genai", "core.utils.logger", "core.mcp_client"], "imported_by": ["core/gemini_command_centres/genesis_command_centre.py", "core/gemini_command_centres/developer_command_centre.py"], "depth": 2, "issues": ["[CTM]DEPRECATED_SDK_USAGE (using generativeai instead of genai)"]}
{"file": "core/agents/agent_registry.py", "classes": ["AgentRegistry"], "functions": ["register", "get_agent", "list_tools"], "imports_from": ["core.utils.logger"], "imported_by": ["core/gemini_command_centres/genesis_command_centre.py"], "depth": 2, "issues": []}
{"file": "core/gemini_command_centres/genesis_command_centre.py", "classes": ["GenesisCommandCentre"], "functions": ["process_intent", "route_to_agent"], "imports_from": ["core.executors.gemini_executor", "core.agents.agent_registry"], "imported_by": ["core/__init__.py", "main.py"], "depth": 1, "issues": []}
{"file": "core/utils/db_connector.py", "classes": ["DBConnector"], "functions": ["query", "connect"], "imports_from": ["sqlite3"], "imported_by": [], "depth": 99, "issues": ["[CTM]DEAD_CODE", "[CTM]RULE_7_VIOLATION (SQLite prohibited)"]}
{"file": "core/mcp_client.py", "classes": ["MCPClient"], "functions": ["call_tool", "list_servers"], "imports_from": ["mcp", "core.utils.logger"], "imported_by": ["core/executors/gemini_executor.py"], "depth": 3, "issues": ["[CTM]HARDCODED_CONFIG_PATHS"]}
```

---

### **Analysis Findings**

#### **1. Circular Dependencies Found**
*   **[CTM]CRITICAL_CIRCULARITY


content:
**
The following files have `imported_by: []` and no entry points in `main.py` or `tests/`:
*   `core/utils/db_connector.py` (Rule 7 Violation)
*   `core/executors/mock_executor.py` (Legacy testing stub)
*   `core/agents/translator_agent.py` (Functionality superseded by Gemini internal capabilities)

#### **4. Architecture Gaps**
*   **Tool Shadowing:** `core/mcp_client.py` imports tools that share names with internal agents in `core/agents/`, causing potential resolution collisions in `agent_registry.py`.

[CTM]The dependency graph confirms a centralized architecture around the `GenesisCommandCentre`, but highlights a critical circularity between the Registry and Base Agent classes.