Architecture: How should Vitto's task execution pipeline integrate TenantA...

Documentation for Sessions

🏗️ Architecture: How should Vitto's task execution pipeline integrate TenantA...

Date: 2026-02-05
Time: 23:22:41 UTC
Session: editor2-93.3
Agent: backend
Confidence: 90%
Status: ✅ Documented


📋 Decision Context

Question:

How should Vitto's task execution pipeline integrate TenantAI personalization?

Task: Session 93.2: Wire TenantAIService learning pipelines into Vitto and Space Agent flows


🎯 Decision Made

Chosen:

3-layer personalization: (1) UserAgentService memories (facts/skills/personality), (2) TenantAI personalization (tech stack/approaches/anti-patterns), (3) cross-session intelligence (episode recall). All fed into system prompt before Claude API call.

Options Considered:

  1. 3-layer combined prompt
  2. separate TenantAI call before Vitto
  3. only use TenantAI for T2/T3 users
  4. replace UserAgentService with TenantAI

💭 Reasoning

Vitto already had UserAgentService memories and cross-session intelligence. TenantAI adds a middle layer of structured learning (preferences, successful approaches, anti-patterns from TenantUserProfile). All three sources are combined into personalContextParts for the system prompt. After execution, TenantAI.logInteraction() captures the request/response pair for future personalization, and learnTechStackFromCode() extracts framework/language signals from generated code.


📁 Files Involved


🔗 Related


Auto-generated by MCP Smart Consolidation