Integrate BACKBEAT SDK and resolve KACHING license validation

Major integrations and fixes:
- Added BACKBEAT SDK integration for P2P operation timing
- Implemented beat-aware status tracking for distributed operations
- Added Docker secrets support for secure license management
- Resolved KACHING license validation via HTTPS/TLS
- Updated docker-compose configuration for clean stack deployment
- Disabled rollback policies to prevent deployment failures
- Added license credential storage (CHORUS-DEV-MULTI-001)

Technical improvements:
- BACKBEAT P2P operation tracking with phase management
- Enhanced configuration system with file-based secrets
- Improved error handling for license validation
- Clean separation of KACHING and CHORUS deployment stacks

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

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
anthonyrawlins
2025-09-06 07:56:26 +10:00
parent 543ab216f9
commit 9bdcbe0447
4730 changed files with 1480093 additions and 1916 deletions

View File

@@ -8,14 +8,14 @@ import (
"sync"
"time"
"chorus.services/bzzz/logging"
"chorus.services/bzzz/p2p"
"chorus.services/bzzz/pubsub"
"chorus/internal/logging"
"chorus/p2p"
"chorus/pubsub"
"github.com/gorilla/websocket"
"github.com/sashabaranov/go-openai"
)
// McpServer integrates BZZZ P2P network with MCP protocol for GPT-4 agents
// McpServer integrates CHORUS P2P network with MCP protocol for GPT-4 agents
type McpServer struct {
// Core components
p2pNode *p2p.Node
@@ -51,7 +51,7 @@ type ServerStats struct {
mutex sync.RWMutex
}
// GPTAgent represents a GPT-4 agent integrated with BZZZ network
// GPTAgent represents a GPT-4 agent integrated with CHORUS network
type GPTAgent struct {
ID string
Role AgentRole
@@ -310,7 +310,7 @@ func (s *McpServer) CreateGPTAgent(config *AgentConfig) (*GPTAgent, error) {
s.agents[agent.ID] = agent
s.agentsMutex.Unlock()
// Announce agent to BZZZ network
// Announce agent to CHORUS network
if err := s.announceAgent(agent); err != nil {
return nil, fmt.Errorf("failed to announce agent: %w", err)
}
@@ -485,7 +485,7 @@ func (s *McpServer) handleBzzzAnnounce(args map[string]interface{}) (map[string]
"node_id": s.p2pNode.ID().ShortString(),
}
// Publish to BZZZ network
// Publish to CHORUS network
if err := s.pubsub.PublishBzzzMessage(pubsub.CapabilityBcast, announcement); err != nil {
return nil, fmt.Errorf("failed to announce: %w", err)
}
@@ -500,7 +500,7 @@ func (s *McpServer) handleBzzzAnnounce(args map[string]interface{}) (map[string]
// Helper methods
// announceAgent announces an agent to the BZZZ network
// announceAgent announces an agent to the CHORUS network
func (s *McpServer) announceAgent(agent *GPTAgent) error {
announcement := map[string]interface{}{
"type": "gpt_agent_announcement",