Comprehensive Documentation Audit - January 11, 2026
Prepared by: GitHub Copilot
Date: January 11, 2026
Scope: Complete /docs directory structure, organization, vitepress configuration, broken links, and outdated content
Executive Summary
The documentation system is mostly well-maintained with several organizational issues that should be addressed:
✅ What's Working Well:
- VitePress is properly configured with auto-generation for subdirectories
- Links are generally accurate with minimal broken references
- Content is relatively up-to-date (last audit was 2026-01-07, previous was 2025-01-04)
- Clear separation of concerns (business, engineering, features, governance)
⚠️ What Needs Attention:
- Features directory is inconsistently organized (top-level docs + subdirectories)
- Business directory is missing links (sidebar only shows 2 of 8 files in VitePress)
- Several orphaned/duplicate docs (COMPLETE_SUMMARY.md, IMPLEMENTATION_SUMMARY.md)
- Documentation guidelines missing - no standards for when to create docs, where they go, or categorization
- Some stale worklog entries that should be archived or integrated
- Inconsistent cross-references between domains
❌ Critical Issues: None - no broken links found, all referenced files exist.
Detailed Findings
1. VitePress Configuration Analysis
File: docs/.vitepress/config.mjs
Current Structure:
- ✅ 15+ feature categories properly configured with auto-generation
- ✅ Sidebar sections for engineering (architecture, deployment, security, mobile, testing, guides)
- ✅ Feature sections for: safety, frens, profile, wave, lantern-hub
- ✅ Business, economics, governance, design, storybook, development sections
Issues Found:
1.1 Business Section Underutilized
// Current config shows:
{
text: '💼 Business',
items: [
{ text: 'Business Model', link: '/business/BUSINESS' },
{ text: 'IP Strategy', link: '/business/IP_STRATEGY' }
]
}Problem: Only 2 of 8 business files are linked:
- ✅ BUSINESS.md
- ✅ IP_STRATEGY.md
- ❌ COFOUNDER_FEEDBACK_POA.md (⭐ Critical, should be in nav)
- ❌ FOUNDER_CONTEXT.md
- ❌ PILOT_STRATEGY.md
- ❌ QUICK_START_PILOT.md
- ❌ MERCHANT_INTEGRATION_POA.md
- ❌ MERCHANT_INTEGRATION_SUMMARY.md
- ❌ TEAM_STRUCTURE.md
Recommendation: Use auto-generation or expand sidebar items.
1.2 Features Organization Issues
Problem: Features directory has conflicting organization patterns:
Top-level features docs:
- GLOBAL_LANTERN_FLOWS.md
- LIGHT_LANTERN_FLOWS.md
- LIGHT_LANTERN_REFACTOR_PROPOSAL.md
Subdirectories with auto-generation:
- features/frens/ (4 files)
- features/lantern-hub/ (3 files)
- features/profile/ (2 files)
- features/safety/ (2 files)
- features/wave/ (5 files)
Better Pattern: All features should follow subdirectory structure like engineering/.
2. Documentation Inventory
Total Files: 120+ markdown files across 18 directories
By Category:
| Category | Files | Status | Issues |
|---|---|---|---|
| Audit | 2 | ✅ | None |
| Business | 9 | ⚠️ | Missing 7 from sidebar |
| Design | 1 | ✅ | None |
| Economics | 3 | ✅ | None |
| Engineering | 41 | ✅ | Well-organized |
| Features | 18 | ⚠️ | Inconsistent structure |
| Governance | 12 | ✅ | Comprehensive |
| Security | 4 | ✅ | None |
| Storybook | 7 | ✅ | None |
| Worklog | 8 | ⚠️ | Duplicate summaries |
| Root | 7 | ✅ | None |
3. Link Audit Results
Total Links Scanned: 200+ markdown references
Broken Links Found: 0 ✅
Dead References: None found
Issues Identified:
- Some worklog entries reference relative paths with
.../which work but are fragile - A few links in SETUP_COMPLETE.md use
docs/engineering/prefix (absolute from repo root) instead of relative paths - Cross-references could be more consistent
4. Outdated/Duplicate Content
Duplicate Governance Summaries
governance/IMPLEMENTATION_SUMMARY.md- Implementation detailsgovernance/COMPLETE_SUMMARY.md- "Comprehensive summary"
Both appear to serve the same purpose - could be consolidated.
Stale Worklog Entries
- SETUP_COMPLETE.md (Jan 2025) - contains environment setup steps that belong in
engineering/guides/ - PHASE_1_COMPLETE.md (Jan 2025) - implementation summary
- PROMPTS_FOR_BUGS.md (Feb 2025) - debugging prompts (minimal content)
These should be archived or linked from appropriate feature docs, not primary navigation.
Orphaned Files
engineering/deployment/MERCHANT_INTEGRATION.md- ✅ FIXED: Now organized under deployment subdirectorybusiness/MERCHANT_INTEGRATION_SUMMARY.md- similar to aboveworklog/IMPLEMENTATION_SUMMARY.md- redundant with worklog structure
5. Missing Cross-References
Examples of Good Cross-Referencing:
- Economics docs link to business/governance ✅
- Governance docs link to each other ✅
- Feature docs link to related features ✅
Examples of Missing Links:
- COFOUNDER_FEEDBACK_POA.md isn't linked from DOCS_INDEX.md nav section
- MERCHANT_INTEGRATION docs aren't connected in sidebar
- Some engineering guides aren't linked from business docs that reference them
6. VitePress Rendering Issues
Current State:
- ✅ Homepage (index.md) renders correctly
- ✅ All sidebar sections expand/collapse properly
- ✅ Search functionality works (local provider)
- ✅ Auto-generation works for subdirectories with
.mdfiles
Problem: Only 3 business links visible in nav/sidebar despite having 9 files total.
Reorganization Recommendations
Phase 1: Immediate Fixes (No Breaking Changes)
Expand Business Section in Sidebar
javascript// Replace static items with auto-generation { text: '💼 Business', collapsed: false, items: autoGenerateSidebarItems('business', { sortFn: (a, b) => { // COFOUNDER_FEEDBACK_POA first if (a === 'COFOUNDER_FEEDBACK_POA.md') return -1 if (b === 'COFOUNDER_FEEDBACK_POA.md') return 1 // Then other key docs const order = ['QUICK_START_PILOT.md', 'PILOT_STRATEGY.md', 'BUSINESS.md', 'IP_STRATEGY.md'] const aIdx = order.indexOf(a) const bIdx = order.indexOf(b) if (aIdx !== -1 && bIdx !== -1) return aIdx - bIdx if (aIdx !== -1) return -1 if (bIdx !== -1) return 1 return a.localeCompare(b) } }) }Move Top-Level Feature Docs into Proper Subdirectories
- Create
features/global-flows/for GLOBAL/LIGHT_LANTERN_FLOWS.md - Create
features/refactor/for refactor proposals - Update vitepress config to reference these subdirectories
- Create
Remove Orphaned Files
- Delete or archive
worklog/PROMPTS_FOR_BUGS.md(minimal content) - Consolidate governance summaries: Keep GOVERNANCE_QUICK_REFERENCE.md, archive COMPLETE_SUMMARY.md as reference
- Delete or archive
Fix Worklog Docs
- Keep only recent/active worklogs in vitepress sidebar
- Archive old entries to
docs/archive/worklog-historical/ - Add link from CHANGELOG.md to worklog summaries
Phase 2: Structural Improvements
Standardize Features Directory
- Move: GLOBAL_LANTERN_FLOWS.md → features/global-flows/
- Move: LIGHT_LANTERN_FLOWS.md → features/light-lanterns/
- Move: LIGHT_LANTERN_REFACTOR_PROPOSAL.md → features/light-lanterns/ (as REFACTOR.md)
- All features now have consistent
/features/{name}/structure
Create Documentation Guidelines (See section 7 below)
Create Central "Getting Started" Hub
- Link to by category: Business, Engineering, Features, Governance
- Replace nav complexity with clear categorization
Documentation Guidelines (NEW)
When to Create New Documentation
1. Worklog Entry (docs/worklog/)
Use when: Documenting completed work, bug fixes, or implementation sprints
Criteria:
- Work took significant time (2+ hours)
- Work involved decision-making that others should understand
- Work created new patterns or established conventions
- Integration of major features across multiple files
Naming: {FEATURE_OR_PHASE}_{DATE_OR_OUTCOME}.md
Examples:
- WAVE_INTEGRATION_COMPLETE.md
- BUG_FIXES_LANTERN_FLOWS.md
- PHASE_1_COMPLETE.md
Content Template:
# {Feature/Work} - Completion Summary
**Date:** YYYY-MM-DD
**Related Feature(s):** Link to feature docs
**Scope:** What was completed
## Problem Statement / Goal
## Solution Overview
## Files Changed/Created
## Testing Results
## Next StepsLifecycle: Active entries in sidebar for ~1 month, then move to archive if needed for reference.
2. Feature Documentation (docs/features/{feature-name}/)
Use when: Building a new user-facing feature or documenting existing feature behavior
Structure: Each feature gets its own directory:
docs/features/{feature-name}/
├── QUICK_START.md # 5-min quick start
├── {FEATURE_NAME}.md # Complete spec/docs
├── IMPLEMENTATION.md # For developers
└── TESTING_GUIDE.md # Testing proceduresExamples:
- docs/features/wave/
- docs/features/lantern-hub/
- docs/features/profile/
VitePress Config: Auto-generates from directory with QUICK_START first.
3. Engineering Documentation (docs/engineering/)
Use when: Documenting system architecture, deployment, setup, or technical implementation
Subcategories:
architecture/- System design, tech stack, patternsdeployment/- Deployment guides, CI/CD, infrastructuresecurity/- Security architecture, encryption, complianceguides/- Onboarding, troubleshooting, utilitiesmobile/- Mobile-specific optimizationstesting/- Testing strategies and guides
Naming Convention: {TOPIC_OR_SYSTEM}_{TYPE}.md
Examples:
- ENVIRONMENT_SETUP.md (setup guide)
- SECURITY_ARCHITECTURE.md (architecture)
- DEPLOYMENT.md (deployment)
- ZERO_KNOWLEDGE_ENCRYPTION.md (explanation)
4. Business Documentation (docs/business/)
Use when: Documenting business model, strategy, market positioning, or commercial aspects
Standard Docs:
- BUSINESS.md - Core business model, monetization
- QUICK_START_PILOT.md - 10-min overview of current phase
- PILOT_STRATEGY.md - Detailed execution plan with financials
- FOUNDER_CONTEXT.md - Market positioning and narrative
- COFOUNDER_FEEDBACK_POA.md - Strategic roadmap (⭐ Must maintain)
- IP_STRATEGY.md - Intellectual property protection
- MERCHANT_INTEGRATION_POA.md - Merchant onboarding strategy
- TEAM_STRUCTURE.md - Org structure, roles, compensation
Avoid: Duplicate summaries. Use QUICK_START_PILOT.md for overview.
5. Economics Documentation (docs/economics/)
Use when: Documenting financial models, unit economics, pricing, fund allocation
Standard Docs:
- ECONOMICS.md - Complete cost breakdown, revenue models, margins
- CALCULATOR.md - Tools for modeling (Python, Google Sheets, sensitivity)
- FUND_ALLOCATION.md - Comprehensive allocation framework
Lifecycle: Update quarterly during planning cycles.
6. Governance Documentation (docs/governance/)
Use when: Documenting organizational structure, employee rights, decision-making, legal compliance
Standard Docs:
- GOVERNANCE.md - Overview and legal structures
- GOVERNANCE_QUICK_REFERENCE.md - One-page cheatsheet
- FOUNDATIONAL_PHILOSOPHY.md - Philosophical foundation (Four Pillars)
- IMMUTABLE_RIGHTS.md - Undeletable constitutional rights
- EMPLOYEE_RIGHTS_CHARTER.md - Comprehensive employee protections
- SHAREHOLDER_LENDER_FRAMEWORK.md - Funding structure
- DECISION_MAKING_AUTHORITY.md - Authority matrix by role
- ANTI_GREED_SAFEGUARDS.md - 21+ protections against mission drift
- HIRING_POLICY.md - Interview process and hiring standards
- CONTRACTOR_PATHWAY.md - Contractor vs. employee classification
- LEGAL_COMPLIANCE.md - Legal requirements and checklist
- SECURITY.md - Security incident response
Avoid: Duplicate summaries (COMPLETE_SUMMARY.md, IMPLEMENTATION_SUMMARY.md).
Documentation Organization Rules
| Domain | Directory | Auto-Generated | Structure | Ordering |
|---|---|---|---|---|
| Business | docs/business/ | Manual links only | Flat | By importance |
| Engineering | docs/engineering/{subdomain}/ | ✅ Yes | Subdirectories | Custom per subdomain |
| Features | docs/features/{name}/ | ✅ Yes | Per-feature dir | QUICK_START first |
| Governance | docs/governance/ | ✅ Yes | Flat | QUICK_REF, main, then alpha |
| Economics | docs/economics/ | Manual | Flat | By role/importance |
| Design | docs/design/ | Manual | Flat | Single-doc domain |
| Security | docs/security/ | ✅ Yes | Flat | Policy first |
| Worklog | docs/worklog/ | ✅ Yes (recent only) | Flat | Most recent first |
| Audit | docs/audit/ | ✅ Yes | Flat | Reverse chronological |
Cross-Reference Standards
Rule 1: Every doc should link to "See Also" or "Related Docs" section
Rule 2: Index pages (DOCS_INDEX.md, README files) should list all sub-docs
Rule 3: VitePress sidebar should expose the MOST important docs first
Rule 4: Business, engineering, and features should reference each other when relevant
Example (Good Cross-Referencing):
## See Also
- [Wave Testing Guide](../features/wave/WAVE_TESTING_GUIDE.md) - For QA procedures
- [Security Architecture](../engineering/security/SECURITY_ARCHITECTURE.md) - Technical design
- [Deployment Guide](../engineering/deployment/DEPLOYMENT.md) - Going to productionVitepress Sidebar Principles
Auto-generate subdirectories when they contain 3+ files
Manual links only when:
- Directory has 1-2 files (don't pollute sidebar)
- Need custom ordering not alphabetical
- Files are critical entry points
Naming convention: Use descriptive folder names that match menu labels
- ✅
engineering/architecture/ - ✅
engineering/deployment/ - ❌
eng/arch/(non-obvious)
- ✅
Sidebar ordering:
- Quick Start / Overview first
- Detailed docs second
- Reference / Advanced last
Example Config:
{
text: '⚙️ Engineering',
items: [
{
text: '📚 Guides',
collapsed: true,
items: autoGenerateSidebarItems('engineering/guides')
},
// ... more sections
]
}Action Items
Immediate (Next Day)
- [ ] Update vitepress config to auto-generate business sidebar
- [ ] Consolidate governance duplicate summaries
- [ ] Fix SETUP_COMPLETE.md worklog links
This Week
- [ ] Move top-level feature docs into subdirectories
- [ ] Create FEATURES_ORGANIZATION.md explaining structure
- [ ] Archive old worklog entries
- [ ] Update DOCS_INDEX.md with new organization
Before Next Release
- [ ] Add "Documentation Guidelines" section to copilot-instructions.md
- [ ] Review COFOUNDER_FEEDBACK_POA.md - ensure it's findable in nav
- [ ] Test all links in DOCS_INDEX.md against vitepress sidebar
Metrics Summary
| Metric | Current | Target | Status |
|---|---|---|---|
| Total docs | 120+ | 120-150 | ✅ Good |
| Broken links | 0 | 0 | ✅ Excellent |
| Business sidebar links | 2 | 9 | ⚠️ Needs fix |
| Feature subdirs | 5 | 5 | ✅ Good |
| Top-level feature docs | 3 | 0 | ⚠️ Move to dirs |
| Duplicate summaries | 2 | 0 | ⚠️ Consolidate |
| Documentation guidelines | 0 | Full | ⚠️ Create |
Conclusion
The documentation system is solid and well-maintained. The recommended changes are:
- Expose all business docs in VitePress sidebar (quick fix)
- Reorganize features to use consistent subdirectory structure
- Create documentation guidelines to prevent future inconsistencies
- Archive old worklogs to keep nav clean
None of these changes are breaking or require rework of existing content. All can be implemented incrementally.
Estimated effort: 4-6 hours total
Recommended sequence: Fix business sidebar → move feature docs → create guidelines → update copilot-instructions
This audit was generated by GitHub Copilot on January 11, 2026.