Documentation Reorganization Plan
Current State Analysis
Root Level Files (Too Many - Needs Organization)
- Core content:
index.md,architecture.md,agents.md,deployment.md,finops.md - Feature specs:
voice-chat-integration.md,connectors-plan.md - Guides:
TESTING-GUIDE.md,LOCAL-TESTING-GUIDE.md,setup-secrets-guide.md - Reports:
bug-fixing-progress-report.md,sage-visual-implementation-report.md - HTML duplicates: Many
.htmland.old.htmlfiles (should be removed or archived)
Existing Folders (Good Structure)
architecture/- Architecture docs and diagrams ✅troubleshooting/- Troubleshooting guides ✅sop/- Standard Operating Procedures ✅dev-guides/- Development guides ✅concept/- Conceptual documentation ✅assets/- Static assets ✅
Issues Identified
- Too many root-level files - Hard to navigate
- Duplicate content -
.htmland.mdversions - Inconsistent naming - Mix of kebab-case and UPPER_CASE
- Missing categories - No clear “Getting Started”, “Reference”, etc.
- Scattered diagrams - Some in root, some in architecture/, some in assets/
Proposed New Structure
docs/
├── README.md # Main landing page
├── _config.yml # Jekyll config
├── getting-started/
│ ├── index.md # Getting started guide
│ ├── quick-start.md # Quick start guide
│ ├── local-setup.md # Local development setup
│ └── secrets-setup.md # Secrets configuration
├── architecture/
│ ├── index.md # Architecture overview
│ ├── brain-spine/ # Brain + Spine pattern
│ │ ├── index.md
│ │ └── brain-spine-story.md
│ ├── context-schema/ # 4-Layer Context Schema
│ │ ├── index.md
│ │ ├── 4-layer-context-schema-story.md
│ │ └── security-context-enterprise-architecture.md
│ ├── authentication/ # Authentication & Security
│ │ ├── index.md
│ │ ├── authentication-analysis.md
│ │ ├── authentication-architecture-evolution.md
│ │ ├── enterprise-auth-strategy.md
│ │ ├── entra-external-id.md
│ │ └── diagrams/
│ │ ├── auth-flow-diagram.json
│ │ ├── security-context-flow-diagram.json
│ │ └── *.png
│ └── diagrams/ # Architecture diagrams
│ ├── 4-layer-context-schema-diagram.json
│ └── brain-spine-diagram.json
├── agents/
│ ├── index.md # Agents overview (from agents.md)
│ ├── elena/ # Elena agent docs
│ │ └── persona.md
│ ├── marcus/ # Marcus agent docs
│ │ └── persona.md
│ └── sage/ # Sage agent docs
│ └── visual-implementation-report.md
├── features/
│ ├── index.md
│ ├── voice/ # Voice features
│ │ ├── index.md
│ │ ├── voice-chat-integration.md
│ │ └── voicelive-v2-architecture.md
│ ├── memory/ # Memory features
│ │ ├── index.md
│ │ ├── memory-architecture.md
│ │ ├── knowledge-graph-implementation.md
│ │ └── sessions-vs-episodes.md
│ ├── connectors/ # Connectors
│ │ ├── index.md
│ │ └── connectors-plan.md
│ └── mobile/ # Mobile features
│ ├── index.md
│ └── [mobile-feature-specs]
├── development/
│ ├── index.md
│ ├── setup/ # Development setup
│ │ ├── local-testing.md
│ │ ├── test-in-separate-terminal.md
│ │ └── github-secrets.md
│ ├── guides/ # Development guides
│ │ ├── commit-guidelines.md
│ │ ├── visual-development.md
│ │ └── UI_DESIGN_REFERENCE.md
│ └── testing/ # Testing guides
│ ├── TESTING-GUIDE.md
│ └── LOCAL-TESTING-GUIDE.md
├── deployment/
│ ├── index.md # Deployment overview (from deployment.md)
│ ├── enterprise/ # Enterprise deployment
│ │ ├── index.md
│ │ └── [dev-guides content]
│ ├── infrastructure/ # Infrastructure guides
│ │ ├── azure-postgresql.md
│ │ ├── app-insights-guide.md
│ │ └── storage-strategy.md
│ └── finops/ # FinOps
│ ├── index.md # From finops.md
│ └── finops-bau-implementation.md
├── operations/
│ ├── index.md
│ ├── monitoring/ # Monitoring & observability
│ │ ├── vendor-monitoring.md
│ │ └── data-plane-tagging.md
│ ├── stability/ # Stability guides
│ │ └── [stability content]
│ └── troubleshooting/ # Troubleshooting (keep existing)
│ └── [existing troubleshooting files]
├── reference/
│ ├── index.md
│ ├── sop/ # Standard Operating Procedures
│ │ └── [existing sop files]
│ ├── api/ # API reference
│ │ └── auth-api.md
│ └── sessions/ # Session documentation
│ └── [sessions content]
├── guides/
│ ├── index.md
│ ├── enterprise-poc-guide.md
│ ├── project-tracking-setup.md
│ └── system-navigator.md
└── assets/ # Keep existing structure
├── images/
├── diagrams/
├── css/
└── js/
Migration Plan
Phase 1: Create New Structure
- Create new folder structure
- Create index.md files for each section
Phase 2: Move Files
- Move architecture files to subfolders
- Move feature files to features/
- Move development files to development/
- Move deployment files to deployment/
- Move reference files to reference/
Phase 3: Update Links
- Update all internal markdown links
- Update _config.yml navigation
- Update index.md quick links
Phase 4: Cleanup
- Remove duplicate .html files (or archive)
- Remove .old.html files
- Standardize file naming (kebab-case)
File Mapping
Getting Started
index.md→getting-started/index.md(new content)local-testing.md→getting-started/local-setup.mdsetup-secrets-guide.md→getting-started/secrets-setup.md
Architecture
architecture.md→architecture/index.md4-layer-context-schema-story.md→architecture/context-schema/4-layer-context-schema-story.mdbrain-spine-story.md→architecture/brain-spine/brain-spine-story.mdarchitecture/security-context-enterprise-architecture.md→ Keep inarchitecture/context-schema/architecture/authentication-*.md→architecture/authentication/
Agents
agents.md→agents/index.md- Split agent personas into subfolders
Features
voice-chat-integration.md→features/voice/voice-chat-integration.mdconnectors-plan.md→features/connectors/connectors-plan.mdconcept/memory-architecture.md→features/memory/memory-architecture.mdknowledge-graph-implementation.md→features/memory/knowledge-graph-implementation.md
Development
visual-development.md→development/guides/visual-development.mdUI_DESIGN_REFERENCE.md→development/guides/UI_DESIGN_REFERENCE.mdTESTING-GUIDE.md→development/testing/TESTING-GUIDE.mddevelopment/commit-guidelines.md→development/guides/commit-guidelines.md
Deployment
deployment.md→deployment/index.mdfinops.md→deployment/finops/index.mddev-guides/*→deployment/enterprise/
Operations
troubleshooting/*→operations/troubleshooting/(keep structure)stability/*→operations/stability/vendor-monitoring.md→operations/monitoring/vendor-monitoring.md
Reference
sop/*→reference/sop/(keep structure)sessions/*→reference/sessions/
Navigation Updates
New _config.yml Navigation
nav:
- title: Home
url: /
- title: Getting Started
url: /getting-started
- title: Architecture
url: /architecture
- title: Agents
url: /agents
- title: Features
url: /features
- title: Development
url: /development
- title: Deployment
url: /deployment
- title: Operations
url: /operations
- title: Reference
url: /reference
Benefits
- Clear Hierarchy - Logical grouping by purpose
- Easy Navigation - Clear categories
- Scalable - Easy to add new content
- Professional - Enterprise-grade organization
- Maintainable - Clear structure for contributors