|
| 1 | +# Mobile AI Orchestrator - Roadmap |
| 2 | + |
| 3 | +**Last Updated**: 2025-12-17 |
| 4 | +**Current Version**: 0.1.0 |
| 5 | +**RSR Compliance**: Bronze |
| 6 | + |
| 7 | +--- |
| 8 | + |
| 9 | +## Current Status: Phase 1 Complete |
| 10 | + |
| 11 | +### Completed (v0.1.0) |
| 12 | + |
| 13 | +| Component | Status | Tests | Coverage | |
| 14 | +|-----------|--------|-------|----------| |
| 15 | +| Expert System | Complete | 8 | >90% | |
| 16 | +| Router (Heuristic) | Complete | 7 | >90% | |
| 17 | +| Context Manager | Complete | 9 | >90% | |
| 18 | +| Orchestrator | Complete | 7 | >90% | |
| 19 | +| CLI Interface | Complete | - | Manual | |
| 20 | +| Type System | Complete | 10 | 100% | |
| 21 | +| Reservoir Computing | Complete | 8 | >90% | |
| 22 | +| MLP Router | Complete | 8 | >90% | |
| 23 | +| SNN Module | Complete | 8 | >90% | |
| 24 | +| Persistence | Complete | 9 | >90% | |
| 25 | +| Training | Complete | 6 | >90% | |
| 26 | + |
| 27 | +**Total**: 92 unit tests + 2 doc tests = **94 tests passing** |
| 28 | + |
| 29 | +### Recent Security Fixes (2025-12-17) |
| 30 | + |
| 31 | +- [x] Fixed license inconsistency across SCM files |
| 32 | + - `guix.scm`: Now dual-licensed (MIT + AGPL-3.0-or-later) |
| 33 | + - `flake.nix`: Now dual-licensed (MIT + AGPL-3.0-or-later) |
| 34 | + - `Cargo.toml`: Now matches LICENSE.txt (MIT OR AGPL-3.0-or-later) |
| 35 | +- [x] Fixed flaky SNN tests (`test_lif_neuron_reset`, `test_spiking_network_reset`) |
| 36 | +- [x] All HTTPS URLs verified |
| 37 | +- [x] No MD5/SHA1 hash usage (security compliant) |
| 38 | +- [x] No hardcoded secrets detected |
| 39 | + |
| 40 | +--- |
| 41 | + |
| 42 | +## Phase 2: Production Hardening |
| 43 | + |
| 44 | +**Target**: v0.2.0 |
| 45 | +**Goal**: Silver RSR Compliance |
| 46 | + |
| 47 | +### Security Enhancements |
| 48 | + |
| 49 | +| Task | Priority | Status | |
| 50 | +|------|----------|--------| |
| 51 | +| Encrypted SQLite (SQLCipher) | High | Planned | |
| 52 | +| API key management (OS keychain) | High | Planned | |
| 53 | +| Rate limiting implementation | Medium | Planned | |
| 54 | +| TLS certificate pinning | Medium | Planned | |
| 55 | +| cargo-vet integration | Medium | Planned | |
| 56 | +| Fuzz testing (cargo-fuzz) | Medium | Planned | |
| 57 | + |
| 58 | +### Performance Optimizations |
| 59 | + |
| 60 | +| Task | Priority | Status | |
| 61 | +|------|----------|--------| |
| 62 | +| Reservoir state persistence | High | Planned | |
| 63 | +| MLP weight caching | High | Planned | |
| 64 | +| Query batching | Medium | Planned | |
| 65 | +| Lazy loading for large contexts | Medium | Planned | |
| 66 | + |
| 67 | +### Features |
| 68 | + |
| 69 | +| Task | Priority | Status | |
| 70 | +|------|----------|--------| |
| 71 | +| RAG system with vector database | High | Planned | |
| 72 | +| Knowledge graph for project relationships | High | Planned | |
| 73 | +| Cross-session context continuity | High | Planned | |
| 74 | +| Proactive context loading | Medium | Planned | |
| 75 | + |
| 76 | +--- |
| 77 | + |
| 78 | +## Phase 3: Advanced AI |
| 79 | + |
| 80 | +**Target**: v0.3.0 |
| 81 | +**Goal**: Maintain Silver RSR |
| 82 | + |
| 83 | +### Features |
| 84 | + |
| 85 | +| Task | Priority | Status | |
| 86 | +|------|----------|--------| |
| 87 | +| Mixture of Experts (MoE) | High | Planned | |
| 88 | +| Bayesian decision engine | High | Planned | |
| 89 | +| Background monitoring daemon | Medium | Planned | |
| 90 | +| Proactive assistance triggers | Medium | Planned | |
| 91 | +| Context inference via graph walks | Medium | Planned | |
| 92 | + |
| 93 | +### Integration |
| 94 | + |
| 95 | +| Task | Priority | Status | |
| 96 | +|------|----------|--------| |
| 97 | +| Claude API integration | High | Planned | |
| 98 | +| Mistral API fallback | Medium | Planned | |
| 99 | +| Local llama.cpp inference | High | Planned | |
| 100 | +| Model switching based on context | Medium | Planned | |
| 101 | + |
| 102 | +--- |
| 103 | + |
| 104 | +## Phase 4: Mobile Deployment |
| 105 | + |
| 106 | +**Target**: v1.0.0 |
| 107 | +**Goal**: Gold RSR Compliance |
| 108 | + |
| 109 | +### Mobile-Specific |
| 110 | + |
| 111 | +| Task | Priority | Status | |
| 112 | +|------|----------|--------| |
| 113 | +| Android ARM64 optimization | High | Planned | |
| 114 | +| iOS support (via FFI) | Medium | Planned | |
| 115 | +| Battery-aware scheduling | High | Planned | |
| 116 | +| WASM sandboxing for models | Medium | Planned | |
| 117 | + |
| 118 | +### Production Features |
| 119 | + |
| 120 | +| Task | Priority | Status | |
| 121 | +|------|----------|--------| |
| 122 | +| SNN wake-word detection | Medium | Planned | |
| 123 | +| Reinforcement learning personalization | Low | Planned | |
| 124 | +| On-device fine-tuning | Low | Planned | |
| 125 | +| Federated learning support | Low | Planned | |
| 126 | + |
| 127 | +--- |
| 128 | + |
| 129 | +## Build System Roadmap |
| 130 | + |
| 131 | +### Package Management |
| 132 | + |
| 133 | +| System | Status | File | |
| 134 | +|--------|--------|------| |
| 135 | +| Cargo | Complete | `Cargo.toml` | |
| 136 | +| Nix | Complete | `flake.nix` | |
| 137 | +| Guix | Complete | `guix.scm` | |
| 138 | +| Docker/Containerfile | Planned | - | |
| 139 | + |
| 140 | +### CI/CD |
| 141 | + |
| 142 | +| Platform | Status | File | |
| 143 | +|----------|--------|------| |
| 144 | +| GitLab CI | Complete | `.gitlab-ci.yml` | |
| 145 | +| GitHub Actions | Complete | `.github/workflows/` | |
| 146 | +| Codecov | Complete | Integrated | |
| 147 | +| SLSA 3 Provenance | Complete | `generator-generic-ossf-slsa3-publish.yml` | |
| 148 | + |
| 149 | +--- |
| 150 | + |
| 151 | +## Security Roadmap |
| 152 | + |
| 153 | +### Phase 1 (Current) |
| 154 | + |
| 155 | +- [x] Zero `unsafe` blocks (`#![forbid(unsafe_code)]`) |
| 156 | +- [x] Memory safety (Rust ownership) |
| 157 | +- [x] Input validation (Expert system) |
| 158 | +- [x] Minimal dependencies (4 core) |
| 159 | +- [x] `cargo audit` integration |
| 160 | +- [x] SECURITY.md + security.txt |
| 161 | + |
| 162 | +### Phase 2 (Planned) |
| 163 | + |
| 164 | +- [ ] Encrypted storage (SQLCipher) |
| 165 | +- [ ] Keychain integration (OS-native) |
| 166 | +- [ ] Rate limiting |
| 167 | +- [ ] TLS pinning |
| 168 | +- [ ] cargo-vet |
| 169 | + |
| 170 | +### Phase 3+ (Future) |
| 171 | + |
| 172 | +- [ ] Formal verification (Rust model checking) |
| 173 | +- [ ] Third-party security audit |
| 174 | +- [ ] WASM sandboxing |
| 175 | +- [ ] Hardware security module support |
| 176 | + |
| 177 | +--- |
| 178 | + |
| 179 | +## RSR Compliance Targets |
| 180 | + |
| 181 | +| Version | Target Level | Key Requirements | |
| 182 | +|---------|--------------|------------------| |
| 183 | +| 0.1.0 | Bronze | Type safety, memory safety, offline-first | |
| 184 | +| 0.2.0 | Silver | Encryption, rate limiting, >95% coverage | |
| 185 | +| 1.0.0 | Gold | Formal verification, third-party audit | |
| 186 | + |
| 187 | +--- |
| 188 | + |
| 189 | +## Known Limitations (Phase 1) |
| 190 | + |
| 191 | +1. **No encryption at rest**: Context history stored in plaintext |
| 192 | + - Mitigation: Use full-disk encryption |
| 193 | + - Timeline: Phase 2 |
| 194 | + |
| 195 | +2. **No API key protection**: Requires environment variables |
| 196 | + - Mitigation: Never commit keys |
| 197 | + - Timeline: Phase 2 (keychain integration) |
| 198 | + |
| 199 | +3. **No rate limiting**: Potential battery drain |
| 200 | + - Mitigation: None currently |
| 201 | + - Timeline: Phase 2 |
| 202 | + |
| 203 | +4. **Expert rules not comprehensive**: May miss novel attack patterns |
| 204 | + - Mitigation: Conservative allow-list |
| 205 | + - Timeline: Ongoing improvement |
| 206 | + |
| 207 | +--- |
| 208 | + |
| 209 | +## Contributing |
| 210 | + |
| 211 | +See [CONTRIBUTING.md](CONTRIBUTING.md) for how to help with roadmap items. |
| 212 | + |
| 213 | +**Priority areas**: |
| 214 | +1. Security enhancements (Phase 2) |
| 215 | +2. Test coverage improvements |
| 216 | +3. Documentation |
| 217 | +4. Cross-platform testing |
| 218 | + |
| 219 | +--- |
| 220 | + |
| 221 | +## Version History |
| 222 | + |
| 223 | +| Version | Date | Milestone | |
| 224 | +|---------|------|-----------| |
| 225 | +| 0.1.0 | 2025-11-22 | Phase 1 MVP | |
| 226 | +| 0.2.0 | TBD | Production Hardening | |
| 227 | +| 0.3.0 | TBD | Advanced AI | |
| 228 | +| 1.0.0 | TBD | Mobile Deployment | |
| 229 | + |
| 230 | +--- |
| 231 | + |
| 232 | +*This roadmap is updated regularly. For the latest status, check the GitHub/GitLab issue tracker.* |
0 commit comments