VoiceAssist V2 Documentation Index
Last Updated: 2025-11-27 Project Status: โ All 15 Phases Complete - Production Ready (100%)
๐ Quick Navigation
๐ค For AI Agents
If you're an AI coding assistant (Claude, GPT, Copilot, etc.):
- ai/AGENT_ONBOARDING.md - Start here for quick context, repository structure, critical rules, and common tasks
- overview/IMPLEMENTATION_STATUS.md - Single source of truth for component status
- Key Rule: Use
services/api-gateway/for backend work (NOTserver/which is deprecated)
๐ Start Here
- START_HERE.md - Project overview and getting started
- PROJECT_SUMMARY.md - Executive summary
- LOCAL_DEVELOPMENT.md - Development environment setup
- API_REFERENCE.md - High-level API overview and endpoint groups
- api-reference/rest-api.md - Detailed REST reference with request/response examples
- ../services/api-gateway/README.md - Canonical backend service guide
๐๏ธ Architecture
- UNIFIED_ARCHITECTURE.md - Complete system architecture (PRIMARY)
- BACKEND_ARCHITECTURE.md - Backend service architecture
- FRONTEND_ARCHITECTURE.md - Frontend monorepo architecture
- REALTIME_ARCHITECTURE.md - WebSocket and streaming architecture
- SECURITY_COMPLIANCE.md - Security model and HIPAA compliance
- architecture/ARCHITECTURE_DIAGRAMS.md - Visual diagrams
- DATA_MODEL.md - Database schema and relationships
- SERVICE_CATALOG.md - Microservices catalog
๐ Development Phases
- DEVELOPMENT_PHASES_V2.md - Official phase plan (Phases 0-14)
- phases/ - Individual phase documents
- PHASE_00_INITIALIZATION.md - โ Complete
- PHASE_01_INFRASTRUCTURE.md - โ Complete
- PHASE_02_SECURITY_NEXTCLOUD.md - โ Complete
- PHASE_03_MICROSERVICES.md - โ Complete
- PHASE_04_VOICE_PIPELINE.md - โ Complete
- PHASE_05_MEDICAL_AI.md - โ Complete
- PHASE_06_NEXTCLOUD_APPS.md - โ Complete
- PHASE_07_ADMIN_PANEL.md - โ Complete
- PHASE_08_OBSERVABILITY.md - โ Complete
- PHASE_09_IAC_CICD.md - โ Complete
- PHASE_10_LOAD_TESTING.md - โ Complete
- PHASE_11_SECURITY_HIPAA.md - โ Complete
- PHASE_12_HA_DR.md - โ Complete
- PHASE_13_TESTING_DOCS.md - โ Complete
- PHASE_14_PRODUCTION_DEPLOY.md - โ Complete
- PHASE_15_COMPLETE_SUMMARY.md - โ Complete (Final Review & Handoff)
- Archived summaries: see archive/ for all phase completion recaps and historical notes
๐ง Integration Improvements (Phase 7 Enhancement)
- INTEGRATION_IMPROVEMENTS_PHASE_0-8.md - Integration roadmap
- INTEGRATION_HANDOFF.md - Handoff document (previous session)
- Status: Priority 1-3 Complete (210/392 hours = 54%)
- โ P1: Health monitoring, tracing, config docs, security dashboards, async queues
- โ P2: Multi-level caching, E2E tests, SLO monitoring, architecture docs, connection pools
- โ P3: Feature flags, operational runbooks, business metrics, contract testing, chaos engineering
- ๐ P4: Secret management, UX monitoring, cost dashboard, onboarding, alert escalation (144h remaining)
๐ Feature-Specific Documentation
Security & Compliance
- SECURITY_COMPLIANCE.md - HIPAA compliance and security
- FEATURE_FLAGS.md - Feature flag system with A/B testing
Medical Features
- MEDICAL_FEATURES.md - Medical AI and RAG capabilities
- SEMANTIC_SEARCH_DESIGN.md - Vector search architecture
Integrations
- NEXTCLOUD_INTEGRATION.md - Nextcloud integration guide
- NEXTCLOUD_APPS_DESIGN.md - Nextcloud app specifications
- TOOLS_AND_INTEGRATIONS.md - External integrations
Infrastructure
- INFRASTRUCTURE_SETUP.md - Infrastructure deployment
- COMPOSE_TO_K8S_MIGRATION.md - Kubernetes migration guide
- ORCHESTRATION_DESIGN.md - Container orchestration
Backend Services & Shared Packages
| Document | Purpose | Audience |
|---|---|---|
| SERVICE_CATALOG.md | Microservices catalog | All developers, DevOps |
| ../services/api-gateway/README.md | Canonical API Gateway guide | Backend devs |
| server/README.md | Legacy server stub reference | Backend devs |
| ../apps/web-app/README.md | Web app implementation details | Frontend devs |
| ../apps/admin-panel/README.md | Admin panel implementation details | Frontend devs |
| ../apps/docs-site/README.md | Documentation site implementation | Frontend devs |
Shared packages:
- ../packages/api-client/README.md
- ../packages/config/README.md
- ../packages/design-tokens/README.md
- ../packages/telemetry/README.md
- ../packages/types/README.md
- ../packages/ui/README.md
- ../packages/utils/README.md
๐ Operations & Monitoring
Observability
- OBSERVABILITY.md - Observability overview
- operations/BUSINESS_METRICS.md - โจ NEW: Business KPIs guide
- operations/CONNECTION_POOL_OPTIMIZATION.md - Performance tuning
- operations/SLO_DEFINITIONS.md - Service Level Objectives
Operational Runbooks
All runbooks are production-ready with copy-paste commands:
- operations/runbooks/DEPLOYMENT.md - โจ NEW: Deployment procedures
- operations/runbooks/INCIDENT_RESPONSE.md - โจ NEW: Incident management
- operations/runbooks/BACKUP_RESTORE.md - โจ NEW: Backup procedures
- operations/runbooks/SCALING.md - โจ NEW: Horizontal/vertical scaling
- operations/runbooks/MONITORING.md - โจ NEW: Monitoring setup
- operations/runbooks/TROUBLESHOOTING.md - โจ NEW: Common issues
๐งช Testing
Testing Documentation
- TESTING_CONTRACTS.md - โจ NEW: Contract testing with Pact
- CHAOS_ENGINEERING.md - โจ NEW: Chaos engineering guide
- testing/E2E_TESTING_GUIDE.md - End-to-end testing
Test Types
- Unit Tests: Located in
tests/unit/ - Integration Tests: Located in
tests/integration/ - Contract Tests: Located in
tests/contract/(NEW) - Chaos Experiments: Located in
chaos/experiments/(NEW)
โ๏ธ Configuration
Configuration References
- CONFIGURATION_REFERENCE.md - Complete configuration catalog
.env.example- Environment variable templatedocker-compose.yml- Service orchestration
Configuration by Component
- Database: PostgreSQL with pgvector
- Cache: Redis with connection pooling
- Vector Store: Qdrant
- Content: Nextcloud with CalDAV/WebDAV
- Monitoring: Prometheus, Grafana, Jaeger, Loki
- Contract Testing: Pact Broker (NEW)
๐ API & UI Specifications
API Documentation
- High-level overview: API_REFERENCE.md โ use this for conceptual guidance, endpoint group summaries, and quick lookups
- REST reference: api-reference/rest-api.md โ use this when you need request/response schemas, parameters, and concrete examples
- OpenAPI Spec: Available at
http://localhost:8000/docswhen running - ReDoc: Available at
http://localhost:8000/redoc
UI Specifications
- WEB_APP_SPECS.md - Clinician web app specs
- ADMIN_PANEL_SPECS.md - Admin panel specs
- DOCUMENTATION_SITE_SPECS.md - Documentation site
๐ Phase Completion Reports
Completed Phases
- PHASE_0_1_COMPLETION_REPORT.md - Phases 0-1
- PHASE_02_COMPLETION_REPORT.md - Phase 2
- PHASE_03_COMPLETION_REPORT.md - Phase 3
- PHASE_04_COMPLETION_REPORT.md - Phase 4
- PHASE_05_COMPLETION_REPORT.md - Phase 5
- PHASE_06_COMPLETION_REPORT.md - Phase 6
- PHASE_07_COMPLETION_REPORT.md - Phase 7
- PHASE_08_COMPLETION_REPORT.md - โ Phase 8
- PHASE_09_COMPLETION_REPORT.md - โ Phase 9
Summary Documents
- ALL_PHASES_SUMMARY.md - Cross-phase summary
- DOCUMENTATION_COMPLETION_SUMMARY.md - Documentation status
- FINAL_DOCUMENTATION_SUMMARY.md - Final docs review
๐ฏ Current Status (2025-11-27)
โ All 15 Phases Complete - 100% Production Ready
Phase 0-1: Infrastructure, database, API gateway Phase 2: Security (JWT), Nextcloud integration Phase 3: Core microservices Phase 4: Realtime WebSocket communication Phase 5: Medical knowledge base with RAG Phase 6: Nextcloud app integration (CalDAV, files, email) Phase 7: Admin panel with RBAC Phase 8: Full observability stack (Prometheus, Grafana, Jaeger, Loki) Phase 9: Infrastructure as Code & CI/CD (Terraform, Ansible, GitHub Actions) Phase 10: Load testing & performance optimization Phase 11: Security hardening & HIPAA compliance Phase 12: High availability & disaster recovery Phase 13: Final testing & documentation Phase 14: Production deployment Phase 15: Final review & handoff
๐ Current Focus: Frontend Development & Continuous Improvement
- Client Applications: Web app, admin panel, docs site (monorepo with pnpm + Turborepo)
- Frontend Status: Phase 0-2 complete, Phase 3 (Voice Features) in progress
- See CONTINUOUS_IMPROVEMENT_PLAN.md for roadmap
๐ Quick Start Commands
Start All Services
cd ~/VoiceAssist docker compose up -d
Verify System Health
curl http://localhost:8000/health
View Metrics
curl http://localhost:8000/metrics | head -50
Run Tests
# Unit tests pytest tests/unit/ # Integration tests pytest tests/integration/ # Contract tests (NEW) pytest tests/contract/ # Chaos tests (NEW) ./scripts/run-chaos-tests.sh
Access Dashboards
- API Docs: http://localhost:8000/docs
- Grafana: http://localhost:3000 (admin/admin)
- Prometheus: http://localhost:9090
- Jaeger: http://localhost:16686
- Pact Broker: http://localhost:9292 (pact/pact)
๐ Metrics & Monitoring
Business Metrics (NEW)
VoiceAssist now exposes 257 lines of business metrics:
User Activity: DAU, MAU, registrations, logins, session duration RAG Performance: Query success rate, citations per query, satisfaction scores Knowledge Base: Documents, chunks, upload rates, indexing duration API Usage: Endpoint calls, response times Cost Tracking: OpenAI API calls, token usage, estimated costs System Health: Uptime, feature flag checks, admin actions
Dashboard: Import dashboards/business-metrics.json into Grafana (20 panels)
Key Prometheus Queries
# Daily Active Users voiceassist_active_users_daily # RAG Query Success Rate sum(voiceassist_rag_queries_total{success="true"}) / sum(voiceassist_rag_queries_total) # API P95 Latency histogram_quantile(0.95, voiceassist_http_request_duration_seconds_bucket) # OpenAI Cost voiceassist_openai_api_cost_dollars_total
๐ External Resources
Tools & Technologies
- FastAPI: https://fastapi.tiangolo.com/
- PostgreSQL: https://www.postgresql.org/docs/
- Redis: https://redis.io/documentation
- Qdrant: https://qdrant.tech/documentation/
- Nextcloud: https://docs.nextcloud.com/
- Prometheus: https://prometheus.io/docs/
- Grafana: https://grafana.com/docs/
- Jaeger: https://www.jaegertracing.io/docs/
- Pact: https://docs.pact.io/
- Chaos Toolkit: https://chaostoolkit.org/
Compliance
- HIPAA: https://www.hhs.gov/hipaa/
- HITECH: https://www.hhs.gov/hipaa/for-professionals/special-topics/hitech-act-enforcement-interim-final-rule/index.html
๐ Support & Contact
Documentation Issues
- File issues in the project repository
- Check
TROUBLESHOOTING.mdfor common problems
Phase-Specific Questions
- Refer to individual phase completion reports
- Check
operations/runbooks/for operational procedures
๐ Document Maintenance
Last Updated: 2025-11-27 Maintained By: VoiceAssist Development Team Review Cycle: After each phase completion Format: GitHub-Flavored Markdown
Contributing to Documentation
- Keep docs concise and actionable
- Update this index when adding new docs
- Follow existing formatting conventions
- Include code examples where helpful
- Mark deprecated docs with โ ๏ธ prefix
Version: V2.0 Status: โ Production Ready (All 15 Phases Complete) Current Focus: Frontend Development & Continuous Improvement