Comprehensive documentation for the JTAG system and PersonaUser architecture.
docs/
├── architecture/ - System architecture and design patterns
│ ├── VISION-MEDIA-ARCHITECTURE.md
│ └── MEDIA-FORMAT-CONVERSION-ARCHITECTURE.md
├── personas/ - PersonaUser, genomic, and fine-tuning architecture
├── papers/ - Research papers on core innovations (RTOS, LoRA genomes)
├── recipes/ - Recipe system for AI learning and collaboration
├── testing/ - Testing strategies, reports, and findings
├── design/ - Design patterns and style guides
│ ├── principles/ - Core design principles
│ │ └── DESIGN-PRINCIPLE-NATURAL-IDIOMS.md
│ └── interfaces/ - Interface design patterns
│ └── CLI-ARRAY-PARAMETERS.md
└── archive/ - Historical docs and session notes
Core System Architecture:
- ARCHITECTURE-INDEX.md - Master architecture overview
- ARCHITECTURE-RULES.md - Design principles and rules
- PATTERNS.md - Common patterns and idioms
- ARCHITECTURE_INCONSISTENCIES.md - Known issues and tech debt
Command & Event System:
- JTAG_SYSTEM_ANALYSIS.md - JTAG system overview
- JTAG_COMMAND_ARCHITECTURE_REDESIGN.md - Command architecture
- JTAG_CLIENT_UNIFICATION.md - Client API unification
- UNIFIED_CLIENT_API.md - Unified client design
- EVENTS_UNIFICATION_PLAN.md - Event system unification
- UNIFIED_EVENTS_COMPLETE.md - Event system implementation
Data & Entity System:
- CRUD-EVENT-TEST-ARCHITECTURE.md - CRUD testing strategy
- ELEGANT-CRUD-ARCHITECTURE.md - CRUD design patterns
- ENTITY-ARCHITECTURE.md - Entity system design
- ENTITY-EVOLUTION-PLAN.md - Entity evolution strategy
- entity-adapter-architecture.md - Entity adapters
User System:
- AI-HUMAN-USER-INTEGRATION.md - User integration patterns
- USER_DAEMON_ARCHITECTURE.md - User daemon design
- USER_DAEMON_DESIGN.md - User daemon implementation
- USER_CREATION_DESIGN.md - User creation flow
- USER-STATE-ARCHITECTURE.md - User state management
UI & Widgets:
- DYNAMIC-CONTENT-STATE-SYSTEM.md - Dynamic content state
- widget-consolidation-migration-plan.md - Widget migration
Security & Services:
- DAEMON-RESPONSIBILITIES.md - Daemon roles
- PASSKEY-AUTHENTICATION-DESIGN.md - Passkey auth
Training & Learning:
- TRAINING-DATA-PIPELINE.md - NEW - Automatic training data from natural collaboration
Media & Vision:
- VISION-MEDIA-ARCHITECTURE.md - Vision and media handling architecture
- MEDIA-FORMAT-CONVERSION-ARCHITECTURE.md - NEW - Bidirectional media format conversion
Core Persona Architecture:
- THREADING-AS-THOUGHTSTREAM.md - NEW - Threading = cognitive architecture for multi-persona coordination
- PERSONA-SYSTEM-AUDIT.md - NEW - Complete system audit (November 2025)
- GITHUB-TRAINING-PIPELINE.md - NEW - Self-improving code review AI trained on your repo
- PERSONA-GENOMIC-ARCHITECTURE.md - Master genomic design
- ARTIFACTS-PERSONA-ARCHITECTURE.md - Persona artifacts
- PERSONA_ENDTOEND_PLAN.md - End-to-end implementation plan
- PERSONAUSER-EVENT-ANALYSIS.md - Event analysis
- PERSONAUSER-NEXT-PHASE.md - Next phase planning
Phase 7: LoRA Fine-Tuning:
- PHASE-7-ROADMAP.md - START HERE - Complete Phase 7 roadmap
- PHASE-7-STATUS.md - Current implementation status
- PHASE-7-FINE-TUNING-ARCHITECTURE.md - Fine-tuning design
- FINE-TUNING-STRATEGY.md - Training strategy
- GENOME-MANAGER-INTEGRATION.md - Genome manager design
- TESTING-GENOME-TRAINING.md - Training testing guide
- UNSLOTH-SETUP.md - Unsloth configuration
Academy & Learning (Legacy):
- ACADEMY_ARCHITECTURE.md - Original Academy design (deprecated)
- ACADEMY_GENOMIC_DESIGN.md - Academy genomic concepts
Module-Level Documentation:
See system/user/server/modules/ for the latest autonomous loop and genome paging designs:
- PERSONA-CONVERGENCE-ROADMAP.md - CRITICAL - Three architectures converging
- AUTONOMOUS-LOOP-ROADMAP.md - RTOS-inspired servicing
- SELF-MANAGED-QUEUE-DESIGN.md - AI autonomy via tasks
- LORA-GENOME-PAGING.md - Virtual memory for skills
- ADAPTIVE-THRESHOLDS-ROADMAP.md - Dynamic thresholds
- FINE-TUNING-PROVIDER-RESEARCH.md - Provider comparison
Academic Papers on Core Innovations:
- papers/README.md - Research papers index
- papers/RTOS-COGNITIVE-ARCHITECTURE.md - RTOS principles in AI cognition
- papers/LORA-GENOME-DEMOCRATIZATION.md - Democratic AI through LoRA genomes
- papers/GRID-DECENTRALIZED-MARKETPLACE.md - NEW - P2P marketplace vision (Phase 3+)
Vision Documents:
- PRACTICAL-ROADMAP.md - START HERE - Phase 1 roadmap (current focus)
- COLLABORATIVE-LEARNING-VISION.md - Multi-layer learning through natural collaboration
- COMPOSABLE-EXPERTISE.md - LoRA layer stacking architecture
Key Topics Covered:
- RTOS infinite loop patterns for autonomous agents
- CBAR Mobile-Home-SDK architecture (42fps on iPhone 7 with heavy AR workload)
- Thought frame parallel processing and worker affinity
- Economic accessibility of SOTA intelligence via LoRA adapters
- Mentorship-based training and phenotype trading on Grid
- Democratic mission: From AI oligopoly to ecosystem
- Human-AI collaboration as training methodology
- Scope-based expertise with hot-swappable LoRA layers
Recipe Architecture:
- SCOPE-BASED-RECIPES.md - NEW - Scope-based collaboration with hot-swappable LoRA genome layers
- RECIPES.md - Recipe system overview
- RECIPE-SYSTEM-REQUIREMENTS.md - Requirements and design
- RECIPE-SYSTEM-STATUS.md - Implementation status
- RECIPE-LEARNING-DYNAMICS.md - Learning dynamics
- RECIPE-EMBEDDED-LEARNING.md - Embedded learning patterns
- PRACTICAL-IMPLEMENTATION-PLAN.md - Implementation guide
Module-Level Recipe Docs:
See system/recipes/ for additional recipe documentation:
- MULTI-PERSONA-RECIPE-GUIDE.md - Multi-persona coordination
- ADAPTER-EXTENSIBILITY.md - Recipe adapter patterns
- LEARNING-MODE-ARCHITECTURE.md - Learning mode design
- PHASE-2-PLAN.md - Recipe Phase 2 plan
- RAG-THOUGHT-COHERENCE-ANALYSIS.md - RAG analysis
Testing Strategy & Reports:
- PATH-ALIASES-TEST-RESULTS.md - Path alias verification
- CHAT-DEBUG-TRIAL-FINDINGS.md - Chat debugging findings
- DEBUG-FRICTION.md - Debug experience analysis
- REAL-TIME-CRUD-SUCCESS-REPORT.md - CRUD testing success
- RAG-INSPECT-TRIAL-RUN-REPORT.md - RAG inspection results
- TEST_COMMAND_ARCHITECTURE.md - Command testing architecture
- USER_CREATION_TEST_DESIGN.md - User creation testing
Core Design Principles:
- DESIGN-PRINCIPLE-NATURAL-IDIOMS.md - NEW - Natural idioms for each interface layer
Interface Design Patterns:
- CLI-ARRAY-PARAMETERS.md - NEW - Repeated flag pattern for CLI arrays
Type Safety & Defaults:
- RUST-STYLE-DEFAULTS-PLAN.md - Rust-style type safety and defaults
Session Notes:
- SESSION-SUMMARY-2025-10-08.md - Session summary
Historical Testing & Validation:
- final-complete-test.md - Final test validation
- final-validation-test.md - Final validation results
- test-validation-artifacts.md - Test artifacts
- trigger-validation.md - Trigger validation
- VALIDATION_SUCCESS.md - Validation success report
- validation-test-1758946949.md - Timestamped validation
Historical Architecture:
- SYSTEM-FIX-PLAN.md - System fix planning
- AI-TRANSPARENCY-COMMANDS.md - Transparency commands
- MAGIC_STRINGS_AUDIT.md - Magic string audit
Many system modules have their own documentation within their directories:
System Core:
system/core/router/- Router enhancement proposalssystem/core/shared/- Event architecturesystem/transports/- Transport layer architecture
Conversation System:
system/conversation/- ThoughtStream, coordination, MCP tools, cognition events
Data & Events:
system/data/- Data daemon documentationsystem/events/- Event coalescing, RAG data completeness
Genome & Fine-Tuning:
system/genome/fine-tuning/- Dataset construction architecture
User System (PersonaUser):
system/user/- AI coordination, turn-taking, protocol architecturesystem/user/server/modules/- CRITICAL - Autonomous loop, genome paging, convergence roadmap
RAG System:
system/rag/- RAG adapter architecture
Recipes:
system/recipes/- Multi-persona recipes, adapter extensibility
Resources:
system/resources/- Graceful fallback patterns
Security:
system/secrets/- Security documentation
For New Developers:
- Read CLAUDE.md - Essential development guide
- Read ARCHITECTURE-INDEX.md - System overview
- Read PERSONA-CONVERGENCE-ROADMAP.md - Current vision
For Fine-Tuning Work:
- Read PHASE-7-ROADMAP.md - Complete roadmap
- Read PHASE-7-STATUS.md - Current status
- Read LORA-GENOME-PAGING.md - Genome architecture
- Read AUTONOMOUS-LOOP-ROADMAP.md - Autonomous design
For Recipe System:
- Read RECIPES.md - Overview
- Read MULTI-PERSONA-RECIPE-GUIDE.md - Coordination
For Testing:
- Read PATH-ALIASES-TEST-RESULTS.md - Test examples
- Read TEST_COMMAND_ARCHITECTURE.md - Test patterns
File Naming:
- Use UPPERCASE-WITH-DASHES.md for major architectural docs
- Use lowercase-with-dashes.md for implementation guides
- Place docs close to the code they document when module-specific
- Place cross-cutting docs in docs/ subdirectories
Organization Principles:
- docs/architecture/ - Cross-cutting system architecture
- docs/personas/ - PersonaUser, genomic, fine-tuning architecture
- docs/papers/ - Academic research papers on core innovations
- docs/recipes/ - Recipe system architecture and guides
- docs/testing/ - Testing strategies and reports
- docs/design/ - Design patterns and philosophy
- docs/archive/ - Historical and session documentation
- system/[module]/ - Module-specific implementation docs
Writing Style:
- Start with a clear purpose statement
- Use code examples liberally
- Link to related documentation
- Keep docs close to the code they describe
- Update docs when code changes
Last Updated: 2025-11-26 Total Documentation Files: 71 in docs/ (including 3 research papers, organized into subdirectories), 49 in system/ subdirectories
Recent Changes:
- Organized design docs into
design/principles/anddesign/interfaces/subdirectories - Added MEDIA-FORMAT-CONVERSION-ARCHITECTURE.md for bidirectional media conversion
- Moved VISION-MEDIA-ARCHITECTURE.md to architecture/ directory