2026 03 09 Vitto Memory Job Mastery Design

Documentation for Plans

Vitto Memory Enhancements + Job Mastery Framework — Design Document

Session: 196 Date: 2026-03-09 Status: Approved

Overview

Two major systems built together:

  1. User Dossier System — Per-user structured knowledge in vitto-users database, replacing 60-read brute-force with single-doc pre-compiled briefs
  2. Job Mastery Framework — Two-layer (global + per-user) composable skill system where Vitto tracks, learns, and self-optimizes at specific job types

Architecture

Database: vitto-users (new, same cluster as vitto-mind)

Collections:

Job Mastery: Two-Layer Design

Layer 1 — Global Playbooks (job-playbooks collection):

Layer 2 — Per-User Overlay (embedded in dossier.jobMastery):

Self-Optimization Loop

After 3+ failures at same sub-skill:

  1. Cheap LLM analyzes failure patterns against current strategy
  2. Proposes revised strategy → stored as new version
  3. A/B tested on next executions
  4. Better? Promote. Worse? Rollback + flag for human review.

Progressive Disclosure (context injection)

Backend Implementation (backend-vitto-api)

New Files

File Purpose
app/users/schemas/user-dossier.schema.ts Dossier schema (identity, personality, expertise, workPatterns, spaces, relationships, timeline, jobMastery, brief)
app/users/schemas/job-playbook.schema.ts Global playbook schema (skills, strategies, graduation criteria)
app/users/user-dossier.service.ts Dossier CRUD + brief compilation + hydration from gograb-api
app/users/job-mastery.service.ts Mastery tracking, tier promotion, self-optimization loop
app/users/users.module.ts NestJS module for vitto-users DB
app/users/users.controller.ts REST endpoints for dossier + mastery

Modified Files

File Change
app/app.module.ts Add vitto-users DB connection
app/engine/context-assembly.service.ts Wire dossier + mastery into prompt assembly
app/mind/mind.service.ts Auto-populate dossier after executions
libs/libs-api/backend-core/.../database-names.config.ts Add VITTO_USERS constant

Frontend Implementation

New Library: @libs-ai/vitto-intelligence

Location: libs/libs-ai/vitto-intelligence/

Components:

Services:

New Routes (under /vitto/)

Route Component Access
/vitto/mastery JobMasteryDashboardComponent All authenticated
/vitto/mastery/:jobType JobMasteryDetailComponent All authenticated
/vitto/mastery/:jobType/edit PlaybookEditorComponent roleLevel >= 90
/vitto/mastery/new PlaybookCreatorComponent roleLevel >= 90
/vitto/dossier UserDossierViewComponent All authenticated (own)
/vitto/dossier/:userId UserDossierViewComponent roleLevel >= 90
/vitto/instructions ExecutiveInstructionsComponent roleLevel >= 90

New Chat Plugin: mastery.plugin.ts

Modified: VittoUnifiedChildRoutes

Add new routes to existing unified shell navigation.

Seeded Job Type: code-platform-generation

First playbook, seeded with sub-skills:

  1. analyze-space-profile — Understand space context, modules, tech stack
  2. select-template — Choose appropriate generation template
  3. plan-architecture — Design module structure before generation
  4. generate-backend — Backend code generation (NestJS, MongoDB)
  5. generate-frontend — Frontend code generation (Angular, standalone)
  6. verify-build — Build verification, lint, type check
  7. validate-output — Quality validation against success criteria

Key Constraints