Architecture: Should the git-proxy module move from backend-ai-api to back...
Documentation for Sessions
🏗️ Architecture: Should the git-proxy module move from backend-ai-api to back...
Date: 2026-03-24
Time: 17:38:54 UTC
Session: gspace1-259.5
Agent: architecture
Confidence: 95%
Status: ✅ Documented
📋 Decision Context
Question:
Should the git-proxy module move from backend-ai-api to backend-vitto-api as recommended by S265.4?
Task: S259: Evaluate git-proxy placement and audit backend architecture
🎯 Decision Made
Chosen:
Keep git-proxy in backend-ai-api for now. Don't move it. The recommendation was based on a false premise (ai-api = MCP only) that contradicts reality (60+ controllers across 6 domains). Moving one controller without moving the 30+ others in the same situation is inconsistent. Instead, plan a dedicated backend consolidation session that moves all misplaced controllers at once.
Options Considered:
- Move git-proxy to vitto-api now (S265.4 recommendation)
- Keep in ai-api, plan future consolidation (chosen)
- Duplicate in both backends with feature flag
- Create a new backend-infrastructure-api for infra concerns
💭 Reasoning
- backend-ai-api has SandboxProxyController, HetznerController, BrowserController, DesktopController, ComputerUseController, WorkflowController, StudioRepoController — all non-MCP. GitProxy follows the same established pattern. 2) The env vars (SANDBOX_SERVER_URL, SANDBOX_API_KEY) are wired in ai-api, not vitto-api. Moving requires plumbing work. 3) The S265.4 agent never explored what else lives in ai-api — it assumed CLAUDE.md was complete. 4) The RIGHT fix is a planned consolidation of ~17 controllers from ai-api to vitto-api, not a one-off move. Spec and plan written to docs/superpowers/.
📁 Files Involved
docs/superpowers/specs/2026-03-24-backend-consolidation-design.mddocs/superpowers/plans/2026-03-24-backend-consolidation.mdAPIs/backend-ai-api/src/app/git-proxy/git-proxy.controller.tsAPIs/backend-ai-api/src/app/infrastructure/controllers/sandbox-proxy.controller.ts
🔗 Related
- Decision ID:
dev_1774373934683_pgl7z02 - Session: 259
- Workspace: gspace1
Auto-generated by MCP Smart Consolidation