Description
Parent Specification: #270 - Radicle Integration Specification
Parent Epic: #258 - Coherence Beacon System
Implement complete Radicle CLI integration to enable peer-to-peer DreamNode collaboration on macOS/Linux. This establishes the primary network layer for InterBrain's decentralized collective cognition system.
Enhanced Acceptance Criteria
Radicle Integration
Metadata & Contact Info
Platform Compatibility
Error Handling
Documentation
Implementation Summary
✅ Core Features Implemented
1. Lazy Radicle Initialization (Superior to Original Plan)
- DreamNodes created local-first (no automatic init on creation)
- Intelligent initialization triggered on first network use (video call email export)
RadicleBatchInitService handles batch rad init with race condition prevention
- Graceful degradation if Radicle unavailable
2. Clone Workflow with Deep Links
- Obsidian URI protocol:
obsidian://interbrain-clone?id=rad:...
- Auto-derive DreamNode name from Radicle metadata
- Duplicate detection with performance optimization
- Auto-refresh after clone (vault scan + relationship scan + constellation layout)
- Auto-focus on cloned/existing nodes
- Batch clone support for multiple nodes
3. Share Command
- Manual "Share DreamNode" command
- Background
rad push operation
- Status notifications
- Error handling and graceful degradation
4. Performance Optimizations
- Constellation repositioning: 100x faster (10s → 100ms)
- Radicle duplicate detection: ~10x faster (parallel I/O + early exit)
- Parallel DreamSong relationship scanning
5. Metadata & Storage
radicleId field in UDD schema and runtime types
- Auto-save Radicle ID to
.udd file after clone
- Contact field integration (email, phone, radicleId)
User Testing Results
✅ User testing completed successfully
✅ Clone workflow validated with real Radicle network
✅ Duplicate detection works instantly
✅ Auto-focus and auto-refresh working perfectly
✅ Performance optimizations confirmed (~100ms repositioning)
✅ No outstanding issues identified
Technical Achievements
Key Implementation Decisions:
- Lazy initialization (better than automatic init-on-creation)
- Single
.udd file (not directory structure)
- Parallel I/O for relationship scanning
- Batch position updates for instant repositioning
- Early exit patterns for duplicate detection
Architecture Patterns:
- Dependency injection for service composition
- Graceful error handling throughout
- Platform detection for cross-platform compatibility
- Intelligent caching with
.udd file storage
Definition of Done
Next Steps
Feature Complete - Ready for epic integration
Documentation enhancements (can be separate PRs):
- Detailed Radicle setup section in README
rad auth configuration guide
- Troubleshooting section
Description
Parent Specification: #270 - Radicle Integration Specification
Parent Epic: #258 - Coherence Beacon System
Implement complete Radicle CLI integration to enable peer-to-peer DreamNode collaboration on macOS/Linux. This establishes the primary network layer for InterBrain's decentralized collective cognition system.
Enhanced Acceptance Criteria
Radicle Integration
DreamNode creation automatically runsSUPERSEDED: Implemented superior lazy initialization patternrad initafter git initrad pushexecutes in background with status indicatorrad cloneand integrates into vaultMetadata & Contact Info
radicleIdfield added to DreamNode metadata structure.uddfile (single JSON file)Platform Compatibility
Error Handling
Documentation
rad auth) (deferred - can be added incrementally)Implementation Summary
✅ Core Features Implemented
1. Lazy Radicle Initialization (Superior to Original Plan)
RadicleBatchInitServicehandles batchrad initwith race condition prevention2. Clone Workflow with Deep Links
obsidian://interbrain-clone?id=rad:...3. Share Command
rad pushoperation4. Performance Optimizations
5. Metadata & Storage
radicleIdfield in UDD schema and runtime types.uddfile after cloneUser Testing Results
✅ User testing completed successfully
✅ Clone workflow validated with real Radicle network
✅ Duplicate detection works instantly
✅ Auto-focus and auto-refresh working perfectly
✅ Performance optimizations confirmed (~100ms repositioning)
✅ No outstanding issues identified
Technical Achievements
Key Implementation Decisions:
.uddfile (not directory structure)Architecture Patterns:
.uddfile storageDefinition of Done
Next Steps
Feature Complete - Ready for epic integration
Documentation enhancements (can be separate PRs):
rad authconfiguration guide