Claude Code
2826b28645
Phase 1: Implement Docker Swarm API agent discovery
Replaces DNS-based discovery (2/34 agents) with Docker API enumeration
to discover ALL running CHORUS containers.
Implementation:
- NEW: internal/p2p/swarm_discovery.go (261 lines)
* Docker API client for Swarm task enumeration
* Extracts container IPs from network attachments
* Optional health verification before registration
* Comprehensive error handling and logging
- MODIFIED: internal/p2p/discovery.go (~50 lines)
* Integrated Swarm discovery with fallback to DNS
* New config: DISCOVERY_METHOD (swarm/dns/auto)
* Tries Swarm first, falls back gracefully
* Backward compatible with existing DNS discovery
- NEW: IMPLEMENTATION-SUMMARY-Phase1-Swarm-Discovery.md
* Complete deployment guide
* Testing checklist
* Performance metrics
* Phase 2 roadmap
Expected Results:
- Discovery: 34/34 agents (100% vs previous ~6%)
- Council activation: Both core roles claimed
- Task execution: Unblocked
Security:
- Read-only Docker socket mount
- No privileged mode required
- Minimal API surface (TaskList + Ping only)
Next: Build image, deploy, verify discovery, activate council
Part of hybrid approach:
- Phase 1: Docker API (this commit) ✅
- Phase 2: NATS migration (planned Week 3)
Related:
- /home/tony/chorus/docs/DIAGNOSIS-Agent-Discovery-And-P2P-Architecture.md
- /home/tony/chorus/docs/ARCHITECTURE-ANALYSIS-LibP2P-HMMM-Migration.md
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>
2025-10-10 09:48:16 +11:00
..
2025-09-12 09:49:36 +10:00
2025-09-12 20:34:17 +10:00
2025-09-06 11:16:39 +10:00
2025-09-21 21:57:16 +10:00
2025-09-12 20:34:17 +10:00
2025-10-10 09:12:08 +11:00
2025-09-06 11:16:39 +10:00
2025-09-21 17:35:15 +10:00
2025-10-10 09:12:08 +11:00
2025-09-22 13:59:01 +10:00
2025-10-10 09:48:16 +11:00
2025-10-10 09:23:07 +11:00
2025-09-10 12:57:11 +10:00
2025-09-12 20:34:17 +10:00
2025-09-12 20:34:17 +10:00