Skip to content

Commit 17d3cc3

Browse files
committed
Add Phases 20-24 to roadmap: scalability, AI, voice, growth, sustainability
- Phase 20: Scalability & Performance Hardening (v1.9) Horizontal scaling, federation perf, voice resilience, large-server tools - Phase 21: Advanced AI & Intelligence Layer (v2.0) Semantic search, proactive assists, moderation AI, voice AI, governance - Phase 22: Enhanced Voice & Real-Time Collaboration (v2.1) Video grid, live streaming, breakout rooms, spatial HRTF, low-latency - Phase 23: User Growth & Retention (v2.2) Onboarding personalization, cross-device continuity, gamification, offline-first - Phase 24: Long-Term Sustainability & Extensibility (v2.x) Protocol versioning, governance tools, security audits, documentation Updated appendix: What Nexus Does Better (+4 rows), Feature Gap Analysis (+v2.x Horizons table), Community Most-Wanted Top 10 (March 2026 refresh)
1 parent 5dd3035 commit 17d3cc3

1 file changed

Lines changed: 227 additions & 13 deletions

File tree

.planning/ROADMAP.md

Lines changed: 227 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -886,6 +886,197 @@ Phantom is an infant today. This phase will happen when it is ready, not before.
886886

887887
---
888888

889+
## Phase 20: Scalability & Performance Hardening (v1.9) 🔲 Planned
890+
891+
> **High priority for large and federated communities.** Everything built so far works for small-to-mid instances. This phase ensures Nexus can handle 100k+ member servers and dense federation meshes without degradation.
892+
893+
### 20-01: Horizontal Scaling
894+
895+
- [ ] ScyllaDB message partitioning improvements (shard by channel + time bucket, automatic compaction strategy tuning)
896+
- [ ] Redis clustering support (Sentinel and Cluster modes for pub/sub, rate limiting, and session store)
897+
- [ ] Load-balanced WebSocket gateways (sticky sessions via session-id header, coordinated dispatch across N gateway nodes)
898+
- [ ] Multi-instance voice SFU (region-aware routing, seamless handoff between SFU nodes)
899+
900+
### 20-02: Federation Performance
901+
902+
- [ ] Batched federation event delivery (coalesce presence/typing/reactions into fewer HTTP round-trips)
903+
- [ ] Push-based federation subscriptions (persistent WebSocket between peered instances, fallback to polling)
904+
- [ ] Automatic health-based routing (prefer lowest-latency peer path for multi-hop federation)
905+
- [ ] Federation event deduplication and idempotency (handle retries without duplicate processing)
906+
907+
### 20-03: Voice Network Resilience
908+
909+
- [ ] Adaptive bitrate with Opus FEC tuning (dynamically adjust codec parameters based on packet loss / jitter)
910+
- [ ] Multi-region SFU peering (optional self-hosted relay nodes for geographically distributed communities)
911+
- [ ] Graceful SFU failover (detect unhealthy SFU node, migrate participants to backup with minimal interruption)
912+
- [ ] Bandwidth estimation and quality indicators (expose per-participant connection quality to client)
913+
914+
### 20-04: Large-Server Tooling
915+
916+
- [ ] Member list pagination and search optimization (cursor-based, indexed by role/join-date/activity)
917+
- [ ] Role hierarchy visualization (tree view in admin panel, conflict detection)
918+
- [ ] Auto-prune inactive members (configurable inactivity threshold, grace period DM notification before removal)
919+
- [ ] Slow mode enhancements (per-role overrides, escalating cooldowns for repeated violations)
920+
921+
### 20-05: Operational Excellence
922+
923+
- [ ] Auto-scaling metrics and alerting (Prometheus rules for connection saturation, message throughput, voice capacity)
924+
- [ ] Zero-downtime rolling upgrades (connection drain on gateway/SFU, migration-safe DB schema changes)
925+
- [ ] Distributed tracing (OpenTelemetry spans across API → gateway → SFU → federation)
926+
- [ ] Capacity planning dashboard (project growth based on current trends, recommend infrastructure changes)
927+
928+
---
929+
930+
## Phase 21: Advanced AI & Intelligence Layer (v2.0) 🔲 Planned
931+
932+
> **Medium-high priority.** Builds on the Phase 16 on-device AI assists foundation. All AI features remain fully opt-in per-server and per-user, with zero cloud dependency by default.
933+
934+
### 21-01: Semantic Search
935+
936+
- [ ] AI-powered query understanding (natural language → structured search, e.g. "last week's memes about cats" → cross-channel media results)
937+
- [ ] On-device embedding generation (lightweight sentence-transformer model, stored in Tantivy alongside keyword index)
938+
- [ ] Hybrid search ranking (combine BM25 keyword score + vector similarity for relevance)
939+
- [ ] Cross-federated search (query forwarded to peered instances with consent, merged results)
940+
941+
### 21-02: Proactive Assists
942+
943+
- [ ] Context-aware reply suggestions (thread/forum context → relevant response options, privacy-first on-device inference)
944+
- [ ] Auto-tag and summarize long threads/forum posts (generate TL;DR when thread exceeds N messages)
945+
- [ ] Intelligent notification filtering (learn per-user engagement patterns → surface urgent items, suppress noise)
946+
- [ ] Meeting notes from voice channels (auto-generate summary from captions after voice session ends)
947+
948+
### 21-03: Moderation AI Evolution
949+
950+
- [ ] Toxicity/sentiment scoring for reported messages (flag for human review with confidence level, never auto-action)
951+
- [ ] Auto-categorize reports by type (spam, harassment, NSFW, off-topic — suggested label for moderator)
952+
- [ ] Spam pattern learning per-server (adaptive rules that improve from moderator accept/dismiss decisions)
953+
- [ ] Raid detection and auto-response (detect coordinated join + spam patterns, auto-enable slow mode, alert admins)
954+
955+
### 21-04: Voice AI
956+
957+
- [ ] Real-time speaker identification / diarisation in recordings and captions (attribute transcript segments to speakers)
958+
- [ ] Emotion-aware noise suppression (detect voice stress → prioritize speech clarity)
959+
- [ ] Voice command integration (hands-free mute/deafen/channel-switch via keyword trigger)
960+
- [ ] Auto-translate voice captions (real-time caption language conversion, on-device where possible)
961+
962+
### 21-05: AI Governance
963+
964+
- [ ] All AI features opt-in at both server and user level (double consent)
965+
- [ ] Fully on-device or self-hosted LLM endpoints only — no default cloud calls, ever
966+
- [ ] Model provenance transparency (show which model generated each suggestion, version, license)
967+
- [ ] AI audit log per server (track which AI features are active, who enabled them, usage statistics)
968+
969+
---
970+
971+
## Phase 22: Enhanced Voice & Real-Time Collaboration (v2.1) 🔲 Planned
972+
973+
> **Medium priority.** Capitalizes on SFU maturity from Phase 3 and drawing/whiteboard infrastructure from Phase 17. Makes Nexus the strongest voice platform in the open-source ecosystem.
974+
975+
### 22-01: Video Grid Polish
976+
977+
- [ ] Dynamic layouts (spotlight/active-speaker, mosaic/gallery, side-by-side, custom drag-and-drop arrangement)
978+
- [ ] Picture-in-picture mode (floating mini-player when navigating away from voice channel)
979+
- [ ] Mobile-optimized video grid (swipe between participants, pinch-to-zoom on mobile)
980+
- [ ] Virtual backgrounds and blur (on-device processing, no cloud dependency)
981+
982+
### 22-02: Live Streaming
983+
984+
- [ ] Go-live from voice channels (broadcast to channel followers, announcement-style distribution)
985+
- [ ] Stream viewer list with count (opt-in visibility, streamer controls who can watch)
986+
- [ ] E2EE opt-in recording of live streams (encrypted at rest, decryptable only by participants)
987+
- [ ] Low-latency HLS/DASH fallback for high viewer counts (SFU → media server fan-out)
988+
989+
### 22-03: Collaborative Sessions
990+
991+
- [ ] Shared screen with pointer/highlight tools (remote cursor visible to all participants)
992+
- [ ] In-call whiteboard (extend Phase 17 `DrawingCanvas`, synchronized via gateway events)
993+
- [ ] Breakout rooms (temporary sub-channels within a voice session, moderator-controlled split/merge)
994+
- [ ] Collaborative document editing in voice (open Canvas doc during call, cursor presence for all participants)
995+
996+
### 22-04: Spatial & Immersive Audio
997+
998+
- [ ] HRTF personalization (head-related transfer function calibration per-user for realistic spatial positioning)
999+
- [ ] 360° audio positioning in virtual stages/events (place speakers in a virtual room layout)
1000+
- [ ] Ambisonics support for immersive environments (first-order ambisonics encoding/decoding)
1001+
- [ ] Spatial audio presets (conference table, auditorium, campfire — pre-configured positioning templates)
1002+
1003+
### 22-05: Low-Latency & Quality
1004+
1005+
- [ ] "Competitive" voice preset (minimal buffering, aggressive jitter control, sub-50ms target)
1006+
- [ ] Echo and feedback auto-calibration (detect and eliminate acoustic feedback loops automatically)
1007+
- [ ] Per-participant audio normalization (consistent volume across different microphones/setups)
1008+
- [ ] Network quality overlay (real-time per-user latency/jitter/packet-loss badges in voice UI)
1009+
1010+
---
1011+
1012+
## Phase 23: User Growth & Retention (v2.2) 🔲 Planned
1013+
1014+
> **Medium priority — post-mobile adoption focus.** These features drive stickiness after users arrive. Reduces churn and makes Nexus feel personal and indispensable.
1015+
1016+
### 23-01: Onboarding Personalization
1017+
1018+
- [ ] AI-assisted server recommendations (interest tags + activity patterns → suggested public servers, privacy-respecting)
1019+
- [ ] Quick-join previews with sample messages (read-only peek into active channels before committing)
1020+
- [ ] Adaptive onboarding flow (skip steps the user has already completed, remember preferences across servers)
1021+
- [ ] Friend-of-friend discovery (opt-in: suggest servers where your contacts are active)
1022+
1023+
### 23-02: Cross-Device Continuity
1024+
1025+
- [ ] Seamless voice handoff (start call on desktop → transfer to mobile without dropping, via SFU session migration)
1026+
- [ ] Unified read state across all clients (real-time sync, not poll-based — gateway `READ_STATE_SYNC` event)
1027+
- [ ] Clipboard sync across devices (copy on desktop → paste on mobile, E2EE in transit)
1028+
- [ ] "Continue where you left off" (deep-link to exact scroll position and channel on device switch)
1029+
1030+
### 23-03: Gamification Lite
1031+
1032+
- [ ] Server-level XP and levels for participation (opt-in, configurable per-server, no central leaderboard)
1033+
- [ ] Custom reaction pack unlocks tied to level milestones
1034+
- [ ] Activity streaks (daily/weekly engagement badges, gentle and non-predatory)
1035+
- [ ] Server achievements (configurable milestones: "First 100 Members", "1000 Messages", "Host an Event")
1036+
1037+
### 23-04: Offline-First Improvements
1038+
1039+
- [ ] Full offline compose and search (local SQLite cache, queued messages sent on reconnect)
1040+
- [ ] Conflict resolution for offline edits (last-write-wins with merge notification for simultaneous edits)
1041+
- [ ] Cached federated content (store recent messages from peered servers for offline browsing)
1042+
- [ ] Background sync (delta-based message sync on reconnect, minimize bandwidth after long offline periods)
1043+
1044+
---
1045+
1046+
## Phase 24: Long-Term Sustainability & Extensibility (v2.x Ongoing) 🔲 Planned
1047+
1048+
> **Ongoing maintenance and evolution.** Ensures Nexus stays secure, interoperable, and community-governed as the ecosystem grows.
1049+
1050+
### 24-01: Protocol Evolution
1051+
1052+
- [ ] Versioned federation API (backward-compatible negotiation, deprecation path for old protocol versions)
1053+
- [ ] Plugin protocol extensions for custom gateway events (plugins can define and dispatch new event types)
1054+
- [ ] Stable bot API versioning (v1, v2… with migration guides, no breaking changes without major version bump)
1055+
- [ ] Federation capability negotiation (instances advertise supported features, graceful degradation for mismatched versions)
1056+
1057+
### 24-02: Community Governance Tools
1058+
1059+
- [ ] Decentralized voting/polls for server policies (binding votes on moderation rules, role changes, etc.)
1060+
- [ ] Contributor badges tied to GitHub/development activity (opt-in, verified via signatures)
1061+
- [ ] Community proposal system (RFC-style discussions for server-wide changes, integrated with forum channels)
1062+
- [ ] Transparent moderation logs (opt-in public audit trail for server actions — community trust building)
1063+
1064+
### 24-03: Security & Threat Modeling
1065+
1066+
- [ ] Regular post-quantum readiness audits beyond Phantom (track NIST PQC standards, update as needed)
1067+
- [ ] Metadata minimization in federation (reduce leaked timing/size information in S2S traffic)
1068+
- [ ] Automated dependency vulnerability scanning in CI (cargo-deny + advisory DB refresh, block merges on critical CVEs)
1069+
- [ ] Penetration testing framework (self-hosted security assessment tooling for instance admins)
1070+
1071+
### 24-04: Documentation & Education
1072+
1073+
- [ ] Interactive threat model explainer (visual walkthrough of how E2EE, federation, and Phantom protect users)
1074+
- [ ] "Why Nexus?" migration guide (comparison with Discord 2026 changes, Matrix/Element, Revolt, Guilded, TeamSpeak)
1075+
- [ ] Video tutorials for self-hosters (setup walkthroughs, federation peering, plugin development)
1076+
- [ ] Contributor onboarding guide (architecture overview, crate map, "your first PR" tutorial)
1077+
1078+
---
1079+
8891080
## Appendix: Platform Comparison & Competitive Positioning
8901081

8911082
> Reference document for feature prioritisation. Updated after full audit of Nexus vs. IRC, Discord, Telegram, Slack, Microsoft Teams, Signal, WhatsApp, Zulip, and Guilded.
@@ -945,6 +1136,10 @@ Phantom is an infant today. This phase will happen when it is ready, not before.
9451136
| Privacy as policy promise | Mathematical privacy via Phantom (Phase 11) |
9461137
| Matrix bridge complexity / latency | True federation without bridges or compatibility shims |
9471138
| Docker-only self-hosting (most alternatives) | Single-binary lite mode — download, run, invite friends |
1139+
| TeamSpeak/Mumble basic voice only | Full voice ecosystem: spatial audio, live captions/transcripts, on-device processing |
1140+
| Guilded/Slack lightweight productivity | Built-in productivity suite: tasks, Canvas docs, calendar sync, file versioning |
1141+
| Emerging cloud-dependent AI trends | On-device/edge AI only — summaries, smart replies, auto-mod with zero cloud leakage |
1142+
| Discord/Stoat age-gating & ID verification | No teen restrictions, no default age-gating — mathematical anonymity path via Phantom |
9481143

9491144
### Feature Gap Analysis (Priority)
9501145

@@ -1001,17 +1196,36 @@ Phantom is an infant today. This phase will happen when it is ready, not before.
10011196
| Discord / Slack import tools | ✅ Complete | Phase 19 |
10021197
| Plugin marketplace (federated) | ✅ Complete | Phase 19 |
10031198

1004-
### Community Most-Wanted Top 10 (2026 Update)
1005-
1006-
> Updated to reflect what the community is asking for now that Phases 1–14 are complete.
1199+
#### v2.x Horizons (scalability, AI, voice evolution)
10071200

1008-
1. **Robust mobile apps** — top request everywhere; no features matter if people can't use Nexus on their phone
1009-
2. **Stronger default privacy** — E2EE everywhere + Phantom integration; the unique Nexus edge
1010-
3. **Creator tools & monetization** — tip jars, subscriptions, supporter tiers without a central cut
1011-
4. **Better voice** — spatial audio, mobile parity, voice notes with transcripts
1012-
5. **Collaborative docs & tasks** — Canvas + task management for teams and knowledge communities
1013-
6. **Stories & ephemeral content** — 24h status updates, casual engagement for younger users
1014-
7. **Import / migration ease** — ✅ Discord, Slack, Matrix import tools + bulk invite (Phase 19)
1015-
8. **On-device AI helpers** — ✅ message summaries, auto-moderation, smart replies (Phase 16)
1016-
9. **Advanced search** — cross-federated full-text search, semantic search, media filters
1017-
10. **Voice channel captions & transcripts** — ✅ live captioning + TTS (Phase 18)
1201+
| Feature | Status | Phase |
1202+
|---|---|---|
1203+
| Horizontal scaling (ScyllaDB sharding, Redis cluster, multi-SFU) | Not yet built | Phase 20 |
1204+
| Federation performance (batched events, push-based subscriptions) | Not yet built | Phase 20 |
1205+
| Large-server tooling (auto-prune, role tree, member search) | Not yet built | Phase 20 |
1206+
| Semantic / AI-powered search | Not yet built | Phase 21 |
1207+
| Proactive AI assists (thread summaries, notification filtering) | Not yet built | Phase 21 |
1208+
| Moderation AI (toxicity scoring, raid detection) | Not yet built | Phase 21 |
1209+
| Video grid polish (layouts, PiP, virtual backgrounds) | Not yet built | Phase 22 |
1210+
| Live streaming from voice channels | Not yet built | Phase 22 |
1211+
| Breakout rooms & collaborative sessions | Not yet built | Phase 22 |
1212+
| Cross-device voice handoff & continuity | Not yet built | Phase 23 |
1213+
| Gamification lite (XP, levels, achievements) | Not yet built | Phase 23 |
1214+
| Offline-first compose & search | Not yet built | Phase 23 |
1215+
| Versioned federation protocol | Not yet built | Phase 24 |
1216+
| Community governance tools (voting, proposals) | Not yet built | Phase 24 |
1217+
1218+
### Community Most-Wanted Top 10 (March 2026 Update)
1219+
1220+
> Updated to reflect community priorities now that Phases 1–19 are complete. Items 1–2 are clear blockers; 3–10 are post-mobile evolution priorities.
1221+
1222+
1. **Robust mobile apps** — still the #1 blocker; no features matter if people can't use Nexus on their phone (Phase 10)
1223+
2. **Phantom / mathematical privacy default** — E2EE everywhere + anonymous networking; the unique Nexus edge (Phase 11)
1224+
3. **Advanced AI intelligence** — semantic search, proactive thread summaries, intelligent notifications (Phase 21)
1225+
4. **Scalable large-server & federation performance** — horizontal scaling, batched federation, multi-region SFU (Phase 20)
1226+
5. **Immersive & collaborative voice** — video grid polish, breakout rooms, live streaming, spatial audio HRTF (Phase 22)
1227+
6. **Semantic / cross-federated search** — natural language queries across servers and peered instances (Phase 21)
1228+
7. **Proactive retention & personalization** — AI-assisted onboarding, cross-device continuity, gamification lite (Phase 23)
1229+
8. **Deeper creator monetization** — ✅ tip jar + subscriptions done (Phase 15); next: integrated self-hosted tipping workflows
1230+
9. **Edge / on-device processing** — voice AI, privacy-first inference, zero cloud dependency for all AI features (Phase 21)
1231+
10. **Large-community moderation at scale** — auto-prune, raid detection, AI-assisted report triage (Phases 20 + 21)

0 commit comments

Comments
 (0)