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:
@@ -6,7 +6,7 @@ import (
|
||||
"strconv"
|
||||
"strings"
|
||||
"time"
|
||||
"chorus.services/bzzz/pkg/config"
|
||||
"chorus/pkg/config"
|
||||
)
|
||||
|
||||
// SLURPLeaderConfig represents comprehensive configuration for SLURP-enabled leader election
|
||||
@@ -280,7 +280,7 @@ func DefaultSLURPLeaderConfig() *SLURPLeaderConfig {
|
||||
return &SLURPLeaderConfig{
|
||||
Core: &CoreConfig{
|
||||
NodeID: "", // Will be auto-generated
|
||||
ClusterID: "bzzz-cluster",
|
||||
ClusterID: "CHORUS-cluster",
|
||||
DataDirectory: "./data",
|
||||
Capabilities: []string{"admin_election", "context_curation", "project_manager"},
|
||||
ProjectManagerEnabled: true,
|
||||
@@ -579,11 +579,11 @@ func (cfg *SLURPLeaderConfig) GetEffectiveConfig() *SLURPLeaderConfig {
|
||||
return &effective
|
||||
}
|
||||
|
||||
// ToBaseBZZZConfig converts SLURP leader config to base BZZZ config format
|
||||
// ToBaseBZZZConfig converts SLURP leader config to base CHORUS config format
|
||||
func (cfg *SLURPLeaderConfig) ToBaseBZZZConfig() *config.Config {
|
||||
// TODO: Convert to base BZZZ config structure
|
||||
// TODO: Convert to base CHORUS config structure
|
||||
// This would map SLURP-specific configuration to the existing
|
||||
// BZZZ configuration structure for compatibility
|
||||
// CHORUS configuration structure for compatibility
|
||||
|
||||
bzzzConfig := &config.Config{
|
||||
// Map core settings
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
// Package leader provides leader-specific context management duties for the SLURP system.
|
||||
//
|
||||
// This package implements the leader node responsibilities within the BZZZ cluster,
|
||||
// This package implements the leader node responsibilities within the CHORUS cluster,
|
||||
// where only the elected leader performs context generation, coordinates distributed
|
||||
// operations, and manages cluster-wide contextual intelligence tasks. It integrates
|
||||
// with the BZZZ election system to ensure consistent leadership and proper failover.
|
||||
// with the CHORUS election system to ensure consistent leadership and proper failover.
|
||||
//
|
||||
// Key Features:
|
||||
// - Leader-only context generation to prevent conflicts and ensure consistency
|
||||
@@ -66,7 +66,7 @@
|
||||
// }
|
||||
//
|
||||
// Leader Election Integration:
|
||||
// The context manager automatically integrates with the BZZZ election system,
|
||||
// The context manager automatically integrates with the CHORUS election system,
|
||||
// responding to leadership changes, handling graceful transitions, and ensuring
|
||||
// no context generation operations are lost during failover events. State
|
||||
// transfer includes queued requests, active jobs, and coordination metadata.
|
||||
@@ -105,7 +105,7 @@
|
||||
// - Conflict detection and resolution for concurrent changes
|
||||
//
|
||||
// Security Integration:
|
||||
// All leader operations integrate with the BZZZ security model:
|
||||
// All leader operations integrate with the CHORUS security model:
|
||||
// - Role-based authorization for context generation requests
|
||||
// - Encrypted communication between leader and cluster nodes
|
||||
// - Audit logging of all leadership decisions and actions
|
||||
|
||||
@@ -7,14 +7,14 @@ import (
|
||||
"sync"
|
||||
"time"
|
||||
|
||||
"chorus.services/bzzz/pkg/election"
|
||||
"chorus.services/bzzz/pkg/dht"
|
||||
"chorus.services/bzzz/pkg/slurp/intelligence"
|
||||
"chorus.services/bzzz/pkg/slurp/storage"
|
||||
slurpContext "chorus.services/bzzz/pkg/slurp/context"
|
||||
"chorus/pkg/election"
|
||||
"chorus/pkg/dht"
|
||||
"chorus/pkg/slurp/intelligence"
|
||||
"chorus/pkg/slurp/storage"
|
||||
slurpContext "chorus/pkg/slurp/context"
|
||||
)
|
||||
|
||||
// ElectionIntegratedContextManager integrates SLURP context management with BZZZ election system
|
||||
// ElectionIntegratedContextManager integrates SLURP context management with CHORUS election system
|
||||
type ElectionIntegratedContextManager struct {
|
||||
*LeaderContextManager // Embed the base context manager
|
||||
|
||||
|
||||
@@ -7,12 +7,12 @@ import (
|
||||
"sync"
|
||||
"time"
|
||||
|
||||
"chorus.services/bzzz/pkg/election"
|
||||
"chorus.services/bzzz/pkg/health"
|
||||
"chorus.services/bzzz/pkg/metrics"
|
||||
"chorus.services/bzzz/pkg/slurp/intelligence"
|
||||
"chorus.services/bzzz/pkg/slurp/storage"
|
||||
slurpContext "chorus.services/bzzz/pkg/slurp/context"
|
||||
"chorus/pkg/election"
|
||||
"chorus/pkg/health"
|
||||
"chorus/pkg/metrics"
|
||||
"chorus/pkg/slurp/intelligence"
|
||||
"chorus/pkg/slurp/storage"
|
||||
slurpContext "chorus/pkg/slurp/context"
|
||||
)
|
||||
|
||||
// EnhancedLeaderManager provides enhanced leadership lifecycle management for SLURP
|
||||
|
||||
@@ -6,13 +6,13 @@ import (
|
||||
"log"
|
||||
"time"
|
||||
|
||||
"chorus.services/bzzz/pkg/config"
|
||||
"chorus.services/bzzz/pkg/election"
|
||||
"chorus.services/bzzz/pkg/dht"
|
||||
"chorus.services/bzzz/pkg/slurp/intelligence"
|
||||
"chorus.services/bzzz/pkg/slurp/storage"
|
||||
slurpContext "chorus.services/bzzz/pkg/slurp/context"
|
||||
"chorus.services/bzzz/pubsub"
|
||||
"chorus/pkg/config"
|
||||
"chorus/pkg/election"
|
||||
"chorus/pkg/dht"
|
||||
"chorus/pkg/slurp/intelligence"
|
||||
"chorus/pkg/slurp/storage"
|
||||
slurpContext "chorus/pkg/slurp/context"
|
||||
"chorus/pubsub"
|
||||
libp2p "github.com/libp2p/go-libp2p/core/host"
|
||||
)
|
||||
|
||||
@@ -282,7 +282,7 @@ func (sys *SLURPLeaderSystem) initializeContextComponents(ctx context.Context) e
|
||||
func (sys *SLURPLeaderSystem) initializeElectionSystem(ctx context.Context) error {
|
||||
sys.logger.Debug("Initializing election system")
|
||||
|
||||
// Convert to base BZZZ config
|
||||
// Convert to base CHORUS config
|
||||
bzzzConfig := sys.config.ToBaseBZZZConfig()
|
||||
|
||||
// Create SLURP election configuration
|
||||
|
||||
@@ -8,12 +8,12 @@ import (
|
||||
"sync"
|
||||
"time"
|
||||
|
||||
"chorus.services/bzzz/pkg/election"
|
||||
"chorus.services/bzzz/pkg/dht"
|
||||
"chorus.services/bzzz/pkg/ucxl"
|
||||
"chorus.services/bzzz/pkg/slurp/intelligence"
|
||||
"chorus.services/bzzz/pkg/slurp/storage"
|
||||
slurpContext "chorus.services/bzzz/pkg/slurp/context"
|
||||
"chorus/pkg/election"
|
||||
"chorus/pkg/dht"
|
||||
"chorus/pkg/ucxl"
|
||||
"chorus/pkg/slurp/intelligence"
|
||||
"chorus/pkg/slurp/storage"
|
||||
slurpContext "chorus/pkg/slurp/context"
|
||||
)
|
||||
|
||||
// ContextManager handles leader-only context generation duties
|
||||
|
||||
@@ -3,8 +3,8 @@ package leader
|
||||
import (
|
||||
"time"
|
||||
|
||||
"chorus.services/bzzz/pkg/ucxl"
|
||||
slurpContext "chorus.services/bzzz/pkg/slurp/context"
|
||||
"chorus/pkg/ucxl"
|
||||
slurpContext "chorus/pkg/slurp/context"
|
||||
)
|
||||
|
||||
// Priority represents priority levels for context generation requests
|
||||
|
||||
Reference in New Issue
Block a user