Complete BZZZ functionality port to CHORUS

🎭 CHORUS now contains full BZZZ functionality adapted for containers

Core systems ported:
- P2P networking (libp2p with DHT and PubSub)
- Task coordination (COOEE protocol)
- HMMM collaborative reasoning
- SHHH encryption and security
- SLURP admin election system
- UCXL content addressing
- UCXI server integration
- Hypercore logging system
- Health monitoring and graceful shutdown
- License validation with KACHING

Container adaptations:
- Environment variable configuration (no YAML files)
- Container-optimized logging to stdout/stderr
- Auto-generated agent IDs for container deployments
- Docker-first architecture

All proven BZZZ P2P protocols, AI integration, and collaboration
features are now available in containerized form.

Next: Build and test container deployment.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
anthonyrawlins
2025-09-02 20:02:37 +10:00
parent 7c6cbd562a
commit 543ab216f9
224 changed files with 86331 additions and 186 deletions

15
pubsub/pubsub_test.go Normal file
View File

@@ -0,0 +1,15 @@
package pubsub
import (
"testing"
)
// Note: This is a light test around name routing; full pubsub requires network.
func TestPublishRaw_NameRouting_NoSubscription(t *testing.T) {
// Build a minimal PubSub with names set but no subscriptions.
p := &PubSub{ bzzzTopicName: "bzzz/coordination/v1", hmmmTopicName: "hmmm/meta-discussion/v1", contextTopicName: "bzzz/context-feedback/v1" }
if err := p.PublishRaw("nonexistent/topic", []byte("{}")); err == nil {
t.Fatalf("expected error for unknown topic")
}
}