Roadmap
Section titled “Roadmap”Implementation roadmap for YouLab’s AI tutoring platform.
Vision
Section titled “Vision”A complete system where:
- Students log into OpenWebUI, each routed to their personal Letta agent
- All messages persisted to Honcho for long-term ToM modeling
- Agent context adapts based on which chat/module student is in
- Curriculum defined in markdown, hot-reloadable without redeploy
- Background process periodically enriches agent memory from Honcho insights
- New students smoothly onboarded with initial setup flow
Current Status
Section titled “Current Status”┌─────────────────────────────────────────────────────────────────┐│ Completed │├─────────────────────────────────────────────────────────────────┤│ Phase 1: HTTP Service ✓ ││ Phase 2: User Identity ✓ (absorbed into Phase 1) ││ Phase 3: Honcho Integration ✓ ││ Phase 4: Thread Context ✓ ││ Phase 5: Curriculum System ✓ ││ Phase 6: Background Worker ✓ │└─────────────────────────────────────────────────────────────────┘ │ ▼ ┌──────────────────────────┐ │ Next: Phase 7 │ └──────────────────────────┘Phase Overview
Section titled “Phase Overview”| Phase | Name | Status | Dependencies |
|---|---|---|---|
| 1 | HTTP Service | Complete | - |
| 2 | User Identity & Routing | Complete | Phase 1 |
| 3 | Honcho Integration | Complete | Phase 1 |
| 4 | Thread Context | Complete | Phase 1 |
| 5 | Curriculum System | Complete | Phase 4 |
| 6 | Background Worker | Complete | Phase 3 |
| 7 | Student Onboarding | Not Started | Phase 5 |
Dependency Graph
Section titled “Dependency Graph”Phase 1: HTTP Service (includes Phase 2) │ ├── Phase 3: Honcho ──────┐ │ │ │ │ └── Phase 6: Background Worker │ └── Phase 4: Thread Context │ └── Phase 5: Curriculum │ └── Phase 7: OnboardingPhase 1: HTTP Service (Complete)
Section titled “Phase 1: HTTP Service (Complete)”Convert YouLab Server from a library to an HTTP service.
Deliverables
Section titled “Deliverables”- FastAPI application on port 8100
- Health endpoint with Letta connection status
- Agent CRUD endpoints
- Synchronous chat endpoint
- SSE streaming chat endpoint
- Agent template system
- Strategy agent for RAG
- Langfuse tracing
Key Files
Section titled “Key Files”src/youlab_server/server/main.pysrc/youlab_server/server/agents.pysrc/youlab_server/agents/templates.py
Phase 2: User Identity & Routing (Complete)
Section titled “Phase 2: User Identity & Routing (Complete)”Ensure each student gets their own persistent agent.
Note: This phase was absorbed into Phase 1 during implementation.
Deliverables
Section titled “Deliverables”- User ID extraction (
__user__["id"]) - Agent creation and lookup
- Agent caching for fast lookups
- Per-user agent naming convention (
youlab_{user_id}_{agent_type})
Deferred to Future Phases
Section titled “Deferred to Future Phases”- First-interaction detection (Phase 7: Onboarding)
- Course-specific memory fields (Phase 4: Thread Context)
Phase 3: Honcho Integration (Complete)
Section titled “Phase 3: Honcho Integration (Complete)”Persist all messages to Honcho for theory-of-mind modeling.
Deliverables
Section titled “Deliverables”- HonchoClient with lazy initialization
- Fire-and-forget message persistence
- Integration with
/chatendpoint - Integration with
/chat/streamendpoint - Health endpoint reports Honcho status
- Graceful degradation when Honcho unavailable
- Configuration via environment variables
- Unit and integration tests
Key Files
Section titled “Key Files”src/youlab_server/honcho/client.pysrc/youlab_server/config/settings.py(ServiceSettings)src/youlab_server/server/main.py(lifespan, endpoints)tests/test_honcho.pytests/test_server_honcho.py
What’s NOT Included (Future Work)
Section titled “What’s NOT Included (Future Work)”- Dialectic queries from Honcho (Phase 6)
- Working representation updates (Phase 6)
- ToM-informed agent behavior (Phase 6)
Phase 4: Thread Context (Complete)
Section titled “Phase 4: Thread Context (Complete)”Chat title extraction and management for thread context.
Deliverables
Section titled “Deliverables”- Chat title extraction from OpenWebUI database (
_get_chat_title) - Chat title passed to HTTP service in requests
- Chat title stored in Honcho as message metadata
- Chat title rename capability (
_set_chat_title) - Unit tests for title operations
Key Files
Section titled “Key Files”src/youlab_server/pipelines/letta_pipe.py(_get_chat_title,_set_chat_title)tests/test_pipe.py(TestGetChatTitle,TestSetChatTitle)
What’s NOT Included (Simplified Scope)
Section titled “What’s NOT Included (Simplified Scope)”Original plan included complex title parsing (“Module 1 / Step 2” format), context caching, and memory block updates. These were deferred as:
- 1:1 OpenWebUI→Honcho thread mapping simplifies architecture
- Primary course uses single thread
- Title metadata already flows through system
Phase 5: Curriculum System (Complete)
Section titled “Phase 5: Curriculum System (Complete)”Load course definitions from TOML files.
Deliverables
Section titled “Deliverables”- Define curriculum in TOML with course.toml and modules/
- Parse into Pydantic schemas (CourseConfig, ModuleConfig, StepConfig)
- Hot-reload on API endpoint
- Dynamic memory block generation from schema
- HTTP endpoints for curriculum management
Key Files
Section titled “Key Files”src/youlab_server/curriculum/schema.pysrc/youlab_server/curriculum/loader.pysrc/youlab_server/curriculum/blocks.pysrc/youlab_server/server/curriculum.pyconfig/courses/college-essay/course.toml
Phase 6: Background Worker (Complete)
Section titled “Phase 6: Background Worker (Complete)”Query Honcho dialectic and update agent memory on schedule or manual trigger.
Deliverables
Section titled “Deliverables”- BackgroundAgentRunner execution engine
- MemoryEnricher for external memory updates
- Audit trails in archival memory
- HTTP endpoints for manual triggers
- TOML configuration for background agents
Key Files
Section titled “Key Files”src/youlab_server/background/runner.pysrc/youlab_server/memory/enricher.pysrc/youlab_server/server/background.py
Phase 7: Student Onboarding
Section titled “Phase 7: Student Onboarding”Handle new student first-time experience.
- Detect new students
- Initialize agent with onboarding context
- Guide through setup flow
- Transition to Module 1
Onboarding Flow
Section titled “Onboarding Flow”- Welcome message
- Collect basic info (name, goals)
- Explain system capabilities
- First step setup
What We’re NOT Doing
Section titled “What We’re NOT Doing”Out of scope for current roadmap:
- Full user management UI (admin dashboard)
- Multi-facilitator support
- Course marketplace / multi-course
- Production deployment infrastructure
- Automated pedagogical testing
- Mobile-specific optimizations
Verification Plan
Section titled “Verification Plan”Automated
Section titled “Automated”- Unit tests for each component
- Integration tests for message flow
- Pre-commit verification
Manual
Section titled “Manual”- Create two test users in OpenWebUI
- Each sends messages in multiple chats
- Verify isolation (different agents)
- Verify continuity (same agent across sessions)
- Check Honcho dashboard for messages
- Trigger background process, verify updates
- Modify curriculum, verify hot-reload
- New user goes through onboarding
Related Pages
Section titled “Related Pages”- Architecture - System design
- HTTP Service - Phase 1 implementation
- Memory System - Memory management
- Agent System - Agent templates