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

@@ -4,8 +4,8 @@ import (
"context"
"time"
"chorus.services/bzzz/pkg/ucxl"
slurpContext "chorus.services/bzzz/pkg/slurp/context"
"chorus/pkg/ucxl"
slurpContext "chorus/pkg/slurp/context"
)
// GoalManager handles definition and management of project goals

View File

@@ -3,8 +3,8 @@ package alignment
import (
"time"
"chorus.services/bzzz/pkg/ucxl"
slurpContext "chorus.services/bzzz/pkg/slurp/context"
"chorus/pkg/ucxl"
slurpContext "chorus/pkg/slurp/context"
)
// ProjectGoal represents a high-level project objective

View File

@@ -1,7 +1,7 @@
// Package context provides core context types and interfaces for the SLURP contextual intelligence system.
//
// This package defines the foundational data structures and interfaces for hierarchical
// context resolution within the BZZZ distributed AI development system. It implements
// context resolution within the CHORUS distributed AI development system. It implements
// bounded hierarchy traversal with role-based access control for efficient context
// resolution and caching.
//
@@ -10,7 +10,7 @@
// - Role-based access control and encryption for context data
// - CSS-like inheritance patterns for cascading context properties
// - Efficient caching with selective invalidation
// - Integration with BZZZ election system for leader-only generation
// - Integration with CHORUS election system for leader-only generation
//
// Core Types:
// - ContextNode: Represents a single context entry in the hierarchy
@@ -60,5 +60,5 @@
// All context data is encrypted based on role access levels before storage
// in the distributed DHT. Only nodes with appropriate role permissions can
// decrypt and access context information, ensuring secure context sharing
// across the BZZZ cluster.
// across the CHORUS cluster.
package context

View File

@@ -5,8 +5,8 @@ import (
"fmt"
"time"
"chorus.services/bzzz/pkg/ucxl"
"chorus.services/bzzz/pkg/config"
"chorus/pkg/ucxl"
"chorus/pkg/config"
)
// ContextResolver defines the interface for hierarchical context resolution
@@ -437,7 +437,7 @@ Integration Examples:
4. Complete Resolution Flow Example:
// Resolve context with full BZZZ integration
// Resolve context with full CHORUS integration
func (resolver *DefaultContextResolver) ResolveWithIntegration(ctx context.Context, address ucxl.Address, role string, maxDepth int) (*ResolvedContext, error) {
// 1. Validate request
if err := ValidateContextResolutionRequest(address, role, maxDepth); err != nil {

View File

@@ -4,8 +4,8 @@ import (
"fmt"
"time"
"chorus.services/bzzz/pkg/ucxl"
"chorus.services/bzzz/pkg/config"
"chorus/pkg/ucxl"
"chorus/pkg/config"
)
// ContextNode represents a hierarchical context node in the SLURP system.

View File

@@ -7,12 +7,12 @@ import (
"sync"
"time"
"chorus.services/bzzz/pkg/dht"
"chorus.services/bzzz/pkg/crypto"
"chorus.services/bzzz/pkg/election"
"chorus.services/bzzz/pkg/config"
"chorus.services/bzzz/pkg/ucxl"
slurpContext "chorus.services/bzzz/pkg/slurp/context"
"chorus/pkg/dht"
"chorus/pkg/crypto"
"chorus/pkg/election"
"chorus/pkg/config"
"chorus/pkg/ucxl"
slurpContext "chorus/pkg/slurp/context"
)
// DistributionCoordinator orchestrates distributed context operations across the cluster

View File

@@ -9,17 +9,17 @@ import (
"sync"
"time"
"chorus.services/bzzz/pkg/dht"
"chorus.services/bzzz/pkg/crypto"
"chorus.services/bzzz/pkg/election"
"chorus.services/bzzz/pkg/ucxl"
"chorus.services/bzzz/pkg/config"
slurpContext "chorus.services/bzzz/pkg/slurp/context"
"chorus/pkg/dht"
"chorus/pkg/crypto"
"chorus/pkg/election"
"chorus/pkg/ucxl"
"chorus/pkg/config"
slurpContext "chorus/pkg/slurp/context"
)
// ContextDistributor handles distributed context operations via DHT
//
// This is the primary interface for distributing context data across the BZZZ
// This is the primary interface for distributing context data across the CHORUS
// cluster using the existing DHT infrastructure with role-based encryption
// and conflict resolution capabilities.
type ContextDistributor interface {

View File

@@ -10,15 +10,15 @@ import (
"sync"
"time"
"chorus.services/bzzz/pkg/dht"
"chorus.services/bzzz/pkg/crypto"
"chorus.services/bzzz/pkg/election"
"chorus.services/bzzz/pkg/ucxl"
"chorus.services/bzzz/pkg/config"
slurpContext "chorus.services/bzzz/pkg/slurp/context"
"chorus/pkg/dht"
"chorus/pkg/crypto"
"chorus/pkg/election"
"chorus/pkg/ucxl"
"chorus/pkg/config"
slurpContext "chorus/pkg/slurp/context"
)
// DHTContextDistributor implements ContextDistributor using BZZZ DHT infrastructure
// DHTContextDistributor implements ContextDistributor using CHORUS DHT infrastructure
type DHTContextDistributor struct {
mu sync.RWMutex
dht *dht.DHT
@@ -52,7 +52,7 @@ func NewDHTContextDistributor(
return nil, fmt.Errorf("config is required")
}
deploymentID := fmt.Sprintf("bzzz-slurp-%s", config.Agent.ID)
deploymentID := fmt.Sprintf("CHORUS-slurp-%s", config.Agent.ID)
dist := &DHTContextDistributor{
dht: dht,

View File

@@ -1,6 +1,6 @@
// Package distribution provides context network distribution capabilities via DHT integration.
//
// This package implements distributed context sharing across the BZZZ cluster using
// This package implements distributed context sharing across the CHORUS cluster using
// the existing Distributed Hash Table (DHT) infrastructure. It provides role-based
// encrypted distribution, conflict resolution, and eventual consistency for context
// data synchronization across multiple nodes.
@@ -23,7 +23,7 @@
// - NetworkManager: Network topology and partition handling
//
// Integration Points:
// - pkg/dht: Existing BZZZ DHT infrastructure
// - pkg/dht: Existing CHORUS DHT infrastructure
// - pkg/crypto: Role-based encryption and decryption
// - pkg/election: Leader coordination for conflict resolution
// - pkg/slurp/context: Context types and validation
@@ -67,7 +67,7 @@
//
// Security Model:
// All context data is encrypted before distribution using role-specific keys
// from the BZZZ crypto system. Only nodes with appropriate role permissions
// from the CHORUS crypto system. Only nodes with appropriate role permissions
// can decrypt and access context information, ensuring secure collaborative
// development while maintaining access control boundaries.
//

View File

@@ -9,9 +9,9 @@ import (
"sync"
"time"
"chorus.services/bzzz/pkg/dht"
"chorus.services/bzzz/pkg/config"
"chorus.services/bzzz/pkg/ucxl"
"chorus/pkg/dht"
"chorus/pkg/config"
"chorus/pkg/ucxl"
)
// GossipProtocolImpl implements GossipProtocol interface for metadata synchronization

View File

@@ -10,7 +10,7 @@ import (
"sync"
"time"
"chorus.services/bzzz/pkg/config"
"chorus/pkg/config"
)
// MonitoringSystem provides comprehensive monitoring for the distributed context system
@@ -1075,9 +1075,9 @@ func (ms *MonitoringSystem) handleDashboard(w http.ResponseWriter, r *http.Reque
html := `
<!DOCTYPE html>
<html>
<head><title>BZZZ SLURP Monitoring</title></head>
<head><title>CHORUS SLURP Monitoring</title></head>
<body>
<h1>BZZZ SLURP Distributed Context Monitoring</h1>
<h1>CHORUS SLURP Distributed Context Monitoring</h1>
<p>Monitoring dashboard placeholder</p>
</body>
</html>

View File

@@ -9,8 +9,8 @@ import (
"sync"
"time"
"chorus.services/bzzz/pkg/dht"
"chorus.services/bzzz/pkg/config"
"chorus/pkg/dht"
"chorus/pkg/config"
"github.com/libp2p/go-libp2p/core/peer"
)

View File

@@ -7,9 +7,9 @@ import (
"sync"
"time"
"chorus.services/bzzz/pkg/dht"
"chorus.services/bzzz/pkg/config"
"chorus.services/bzzz/pkg/ucxl"
"chorus/pkg/dht"
"chorus/pkg/config"
"chorus/pkg/ucxl"
"github.com/libp2p/go-libp2p/core/peer"
)

View File

@@ -14,8 +14,8 @@ import (
"sync"
"time"
"chorus.services/bzzz/pkg/config"
"chorus.services/bzzz/pkg/crypto"
"chorus/pkg/config"
"chorus/pkg/crypto"
)
// SecurityManager handles all security aspects of the distributed system
@@ -653,7 +653,7 @@ func (sm *SecurityManager) generateSelfSignedCertificate() ([]byte, []byte, erro
template := x509.Certificate{
SerialNumber: big.NewInt(1),
Subject: pkix.Name{
Organization: []string{"BZZZ SLURP"},
Organization: []string{"CHORUS SLURP"},
Country: []string{"US"},
Province: []string{""},
Locality: []string{"San Francisco"},

View File

@@ -11,8 +11,8 @@ import (
"strings"
"time"
"chorus.services/bzzz/pkg/ucxl"
slurpContext "chorus.services/bzzz/pkg/slurp/context"
"chorus/pkg/ucxl"
slurpContext "chorus/pkg/slurp/context"
)
// DefaultDirectoryAnalyzer provides comprehensive directory structure analysis

View File

@@ -47,7 +47,7 @@
// fmt.Printf("Role insights: %v\n", insights)
//
// Leadership Integration:
// This package is designed to be used primarily by the elected BZZZ leader node,
// This package is designed to be used primarily by the elected CHORUS leader node,
// which has the responsibility for context generation across the cluster. The
// intelligence engine coordinates with the leader election system to ensure
// only authorized nodes perform context generation operations.

View File

@@ -4,8 +4,8 @@ import (
"context"
"time"
"chorus.services/bzzz/pkg/ucxl"
slurpContext "chorus.services/bzzz/pkg/slurp/context"
"chorus/pkg/ucxl"
slurpContext "chorus/pkg/slurp/context"
)
// IntelligenceEngine provides AI-powered context analysis and generation

View File

@@ -10,8 +10,8 @@ import (
"sync"
"time"
"chorus.services/bzzz/pkg/ucxl"
slurpContext "chorus.services/bzzz/pkg/slurp/context"
"chorus/pkg/ucxl"
slurpContext "chorus/pkg/slurp/context"
)
// AnalyzeFile analyzes a single file and generates contextual understanding

View File

@@ -7,7 +7,7 @@ import (
"testing"
"time"
slurpContext "chorus.services/bzzz/pkg/slurp/context"
slurpContext "chorus/pkg/slurp/context"
)
func TestIntelligenceEngine_Integration(t *testing.T) {

View File

@@ -9,7 +9,7 @@ import (
"sync"
"time"
slurpContext "chorus.services/bzzz/pkg/slurp/context"
slurpContext "chorus/pkg/slurp/context"
)
// GoalAlignmentEngine provides comprehensive goal alignment assessment

View File

@@ -9,7 +9,7 @@ import (
"strings"
"time"
slurpContext "chorus.services/bzzz/pkg/slurp/context"
slurpContext "chorus/pkg/slurp/context"
)
// DefaultPatternDetector provides comprehensive pattern detection capabilities

View File

@@ -11,7 +11,7 @@ import (
"sync"
"time"
slurpContext "chorus.services/bzzz/pkg/slurp/context"
slurpContext "chorus/pkg/slurp/context"
)
// DefaultRAGIntegration provides comprehensive RAG system integration

View File

@@ -8,8 +8,8 @@ import (
"sync"
"time"
"chorus.services/bzzz/pkg/crypto"
slurpContext "chorus.services/bzzz/pkg/slurp/context"
"chorus/pkg/crypto"
slurpContext "chorus/pkg/slurp/context"
)
// RoleAwareProcessor provides role-based context processing and insight generation

View File

@@ -16,7 +16,7 @@ import (
"strings"
"time"
slurpContext "chorus.services/bzzz/pkg/slurp/context"
slurpContext "chorus/pkg/slurp/context"
)
// Utility functions and helper types for the intelligence engine

View File

@@ -229,7 +229,7 @@ type DecisionNavigator interface {
// DistributedStorage handles distributed storage of context data.
//
// Provides encrypted, role-based storage using the existing BZZZ DHT
// Provides encrypted, role-based storage using the existing CHORUS DHT
// infrastructure with consistency guarantees and conflict resolution.
type DistributedStorage interface {
// Store stores context data in the DHT with encryption.

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -3,12 +3,12 @@
// This package implements comprehensive role-based access control (RBAC) for contextual
// intelligence, ensuring that context information is appropriately filtered, encrypted,
// and distributed based on role permissions and security requirements. It integrates
// with the existing BZZZ crypto system to provide secure, scalable access control.
// with the existing CHORUS crypto system to provide secure, scalable access control.
//
// Key Features:
// - Hierarchical role definition and management
// - Context filtering based on role permissions and access levels
// - Integration with BZZZ crypto system for role-based encryption
// - Integration with CHORUS crypto system for role-based encryption
// - Dynamic permission evaluation and caching for performance
// - Role-specific context views and perspectives
// - Audit logging for access control decisions
@@ -88,7 +88,7 @@
//
// Security Model:
// All access control decisions are based on cryptographically verified
// role assignments and permissions. The system integrates with the BZZZ
// role assignments and permissions. The system integrates with the CHORUS
// crypto infrastructure to ensure secure key distribution and context
// encryption, preventing unauthorized access even in case of node
// compromise or network interception.

View File

@@ -4,9 +4,9 @@ import (
"context"
"time"
"chorus.services/bzzz/pkg/security"
"chorus.services/bzzz/pkg/ucxl"
slurpContext "chorus.services/bzzz/pkg/slurp/context"
"chorus/pkg/security"
"chorus/pkg/ucxl"
slurpContext "chorus/pkg/slurp/context"
)
// RoleManager handles definition and management of roles and permissions
@@ -184,7 +184,7 @@ type AuditLogger interface {
// EncryptionManager handles role-based encryption and key management
//
// Manages encryption keys and operations for role-based access control,
// integrating with the BZZZ crypto system for secure context storage
// integrating with the CHORUS crypto system for secure context storage
// and distribution.
type EncryptionManager interface {
// EncryptForRoles encrypts context data for specific roles

View File

@@ -3,9 +3,9 @@ package roles
import (
"time"
"chorus.services/bzzz/pkg/security"
"chorus.services/bzzz/pkg/ucxl"
slurpContext "chorus.services/bzzz/pkg/slurp/context"
"chorus/pkg/security"
"chorus/pkg/ucxl"
slurpContext "chorus/pkg/slurp/context"
)
// Stub types for interfaces (to be implemented later)

View File

@@ -1,4 +1,4 @@
// Package slurp provides contextual intelligence capabilities for BZZZ.
// Package slurp provides contextual intelligence capabilities for CHORUS.
//
// SLURP (Storage, Logic, Understanding, Retrieval, Processing) implements:
// - Hierarchical context resolution with bounded depth traversal
@@ -20,7 +20,7 @@
// - pkg/election Admin-only operations coordination
// - pkg/config Configuration extension for SLURP settings
//
// This package follows established BZZZ patterns for interfaces, error handling,
// This package follows established CHORUS patterns for interfaces, error handling,
// and distributed operations while providing native Go implementations of the
// contextual intelligence capabilities originally prototyped in Python.
package slurp
@@ -31,17 +31,17 @@ import (
"sync"
"time"
"chorus.services/bzzz/pkg/config"
"chorus.services/bzzz/pkg/crypto"
"chorus.services/bzzz/pkg/dht"
"chorus.services/bzzz/pkg/election"
"chorus/pkg/config"
"chorus/pkg/crypto"
"chorus/pkg/dht"
"chorus/pkg/election"
)
// SLURP is the main coordinator for contextual intelligence operations.
//
// It orchestrates the interaction between context resolution, temporal analysis,
// distributed storage, and intelligence generation while enforcing security
// and access controls through integration with existing BZZZ systems.
// and access controls through integration with existing CHORUS systems.
//
// Thread Safety: SLURP is safe for concurrent use across multiple goroutines.
// All public methods handle synchronization internally.
@@ -78,7 +78,7 @@ type SLURP struct {
eventMux sync.RWMutex
}
// SLURPConfig holds SLURP-specific configuration that extends the main BZZZ config
// SLURPConfig holds SLURP-specific configuration that extends the main CHORUS config
type SLURPConfig struct {
// Enable/disable SLURP system
Enabled bool `yaml:"enabled" json:"enabled"`
@@ -315,8 +315,8 @@ type SLURPEvent struct {
// NewSLURP creates a new SLURP instance with the provided dependencies.
//
// The SLURP system requires integration with existing BZZZ components:
// - config: Main BZZZ configuration including SLURP settings
// The SLURP system requires integration with existing CHORUS components:
// - config: Main CHORUS configuration including SLURP settings
// - dhtInstance: Distributed hash table for storage and discovery
// - cryptoInstance: Role-based encryption for access control
// - electionManager: Admin election coordination for restricted operations
@@ -574,7 +574,7 @@ func (s *SLURP) RegisterEventHandler(eventType EventType, handler EventHandler)
// Close gracefully shuts down the SLURP system.
//
// This method stops all background tasks, flushes caches, and releases
// resources. It should be called when the BZZZ node is shutting down.
// resources. It should be called when the CHORUS node is shutting down.
func (s *SLURP) Close() error {
s.mu.Lock()
defer s.mu.Unlock()

View File

@@ -46,7 +46,7 @@ The main orchestrator that coordinates between all storage layers:
### 2. Encrypted Storage (`encrypted_storage.go`)
Role-based encrypted storage with enterprise-grade security:
- **Per-role encryption** using the existing BZZZ crypto system
- **Per-role encryption** using the existing CHORUS crypto system
- **Key rotation** with automatic re-encryption
- **Access control validation** with audit logging
- **Encryption metrics** tracking for performance monitoring
@@ -184,16 +184,16 @@ type ContextStoreOptions struct {
- **Timeout values**: Set appropriate timeouts for your network
- **Background intervals**: Balance between performance and resource usage
## Integration with BZZZ Systems
## Integration with CHORUS Systems
### DHT Integration
The distributed storage layer integrates seamlessly with the existing BZZZ DHT system:
The distributed storage layer integrates seamlessly with the existing CHORUS DHT system:
- Uses existing node discovery and communication protocols
- Leverages consistent hashing algorithms
- Integrates with leader election for coordination
### Crypto Integration
The encryption layer uses the existing BZZZ crypto system:
The encryption layer uses the existing CHORUS crypto system:
- Role-based key management
- Shamir's Secret Sharing for key distribution
- Age encryption for data protection

View File

@@ -13,7 +13,7 @@ import (
"time"
"github.com/robfig/cron/v3"
"chorus.services/bzzz/pkg/crypto"
"chorus/pkg/crypto"
)
// BackupManagerImpl implements the BackupManager interface

View File

@@ -6,8 +6,8 @@ import (
"sync"
"time"
"chorus.services/bzzz/pkg/ucxl"
slurpContext "chorus.services/bzzz/pkg/slurp/context"
"chorus/pkg/ucxl"
slurpContext "chorus/pkg/slurp/context"
)
// BatchOperationsImpl provides efficient batch operations for context storage

View File

@@ -7,10 +7,10 @@ import (
"sync"
"time"
"chorus.services/bzzz/pkg/crypto"
"chorus.services/bzzz/pkg/dht"
"chorus.services/bzzz/pkg/ucxl"
slurpContext "chorus.services/bzzz/pkg/slurp/context"
"chorus/pkg/crypto"
"chorus/pkg/dht"
"chorus/pkg/ucxl"
slurpContext "chorus/pkg/slurp/context"
)
// ContextStoreImpl is the main implementation of the ContextStore interface

View File

@@ -7,8 +7,8 @@ import (
"sync"
"time"
"chorus.services/bzzz/pkg/dht"
"chorus.services/bzzz/pkg/types"
"chorus/pkg/dht"
"chorus/pkg/types"
)
// DistributedStorageImpl implements the DistributedStorage interface

View File

@@ -2,12 +2,12 @@
//
// This package implements the storage layer for context data, providing both local
// and distributed storage capabilities with encryption, caching, and efficient
// retrieval mechanisms. It integrates with the BZZZ DHT for distributed context
// retrieval mechanisms. It integrates with the CHORUS DHT for distributed context
// sharing while maintaining role-based access control.
//
// Key Features:
// - Local context storage with efficient indexing and retrieval
// - Distributed context storage using BZZZ DHT infrastructure
// - Distributed context storage using CHORUS DHT infrastructure
// - Role-based encryption for secure context sharing
// - Multi-level caching for performance optimization
// - Backup and recovery capabilities for data durability
@@ -55,7 +55,7 @@
// Storage Architecture:
// The storage system uses a layered approach with local caching, distributed
// replication, and role-based encryption. Context data is stored locally for
// fast access and replicated across the BZZZ cluster for availability and
// fast access and replicated across the CHORUS cluster for availability and
// collaboration. Encryption ensures that only authorized roles can access
// sensitive context information.
//

View File

@@ -8,9 +8,9 @@ import (
"sync"
"time"
"chorus.services/bzzz/pkg/crypto"
"chorus.services/bzzz/pkg/ucxl"
slurpContext "chorus.services/bzzz/pkg/slurp/context"
"chorus/pkg/crypto"
"chorus/pkg/ucxl"
slurpContext "chorus/pkg/slurp/context"
)
// EncryptedStorageImpl implements the EncryptedStorage interface

View File

@@ -13,8 +13,8 @@ import (
"github.com/blevesearch/bleve/v2/analysis/analyzer/standard"
"github.com/blevesearch/bleve/v2/analysis/lang/en"
"github.com/blevesearch/bleve/v2/mapping"
"chorus.services/bzzz/pkg/ucxl"
slurpContext "chorus.services/bzzz/pkg/slurp/context"
"chorus/pkg/ucxl"
slurpContext "chorus/pkg/slurp/context"
)
// IndexManagerImpl implements the IndexManager interface using Bleve

View File

@@ -4,9 +4,9 @@ import (
"context"
"time"
"chorus.services/bzzz/pkg/ucxl"
"chorus.services/bzzz/pkg/crypto"
slurpContext "chorus.services/bzzz/pkg/slurp/context"
"chorus/pkg/ucxl"
"chorus/pkg/crypto"
slurpContext "chorus/pkg/slurp/context"
)
// ContextStore provides the main interface for context storage and retrieval

View File

@@ -410,7 +410,7 @@ func (ls *LocalStorageImpl) compress(data []byte) ([]byte, error) {
// Create gzip writer with best compression
writer := gzip.NewWriter(&buf)
writer.Header.Name = "storage_data"
writer.Header.Comment = "BZZZ SLURP local storage compressed data"
writer.Header.Comment = "CHORUS SLURP local storage compressed data"
// Write data to gzip writer
if _, err := writer.Write(data); err != nil {

View File

@@ -3,9 +3,9 @@ package storage
import (
"time"
"chorus.services/bzzz/pkg/ucxl"
"chorus.services/bzzz/pkg/crypto"
slurpContext "chorus.services/bzzz/pkg/slurp/context"
"chorus/pkg/ucxl"
"chorus/pkg/crypto"
slurpContext "chorus/pkg/slurp/context"
)
// DatabaseSchema defines the complete schema for encrypted context storage

View File

@@ -3,9 +3,9 @@ package storage
import (
"time"
"chorus.services/bzzz/pkg/ucxl"
"chorus.services/bzzz/pkg/crypto"
slurpContext "chorus.services/bzzz/pkg/slurp/context"
"chorus/pkg/ucxl"
"chorus/pkg/crypto"
slurpContext "chorus/pkg/slurp/context"
)
// ListCriteria represents criteria for listing contexts

View File

@@ -5,7 +5,7 @@ import (
"fmt"
"time"
"chorus.services/bzzz/pkg/slurp/storage"
"chorus/pkg/slurp/storage"
)
// TemporalGraphFactory creates and configures temporal graph components

View File

@@ -4,8 +4,8 @@ import (
"context"
"time"
"chorus.services/bzzz/pkg/ucxl"
slurpContext "chorus.services/bzzz/pkg/slurp/context"
"chorus/pkg/ucxl"
slurpContext "chorus/pkg/slurp/context"
)
// TemporalGraph manages the temporal evolution of context through decision points

View File

@@ -9,9 +9,9 @@ import (
"sync"
"time"
"chorus.services/bzzz/pkg/ucxl"
slurpContext "chorus.services/bzzz/pkg/slurp/context"
"chorus.services/bzzz/pkg/slurp/storage"
"chorus/pkg/ucxl"
slurpContext "chorus/pkg/slurp/context"
"chorus/pkg/slurp/storage"
)
// temporalGraphImpl implements the TemporalGraph interface

View File

@@ -5,9 +5,9 @@ import (
"testing"
"time"
"chorus.services/bzzz/pkg/ucxl"
slurpContext "chorus.services/bzzz/pkg/slurp/context"
"chorus.services/bzzz/pkg/slurp/storage"
"chorus/pkg/ucxl"
slurpContext "chorus/pkg/slurp/context"
"chorus/pkg/slurp/storage"
)
// Mock storage for testing

View File

@@ -8,7 +8,7 @@ import (
"sync"
"time"
"chorus.services/bzzz/pkg/ucxl"
"chorus/pkg/ucxl"
)
// influenceAnalyzerImpl implements the InfluenceAnalyzer interface

View File

@@ -5,8 +5,8 @@ import (
"testing"
"time"
"chorus.services/bzzz/pkg/ucxl"
slurpContext "chorus.services/bzzz/pkg/slurp/context"
"chorus/pkg/ucxl"
slurpContext "chorus/pkg/slurp/context"
)
func TestInfluenceAnalyzer_AnalyzeInfluenceNetwork(t *testing.T) {

View File

@@ -5,9 +5,9 @@ import (
"testing"
"time"
"chorus.services/bzzz/pkg/ucxl"
slurpContext "chorus.services/bzzz/pkg/slurp/context"
"chorus.services/bzzz/pkg/slurp/storage"
"chorus/pkg/ucxl"
slurpContext "chorus/pkg/slurp/context"
"chorus/pkg/slurp/storage"
)
// Integration tests for the complete temporal graph system

View File

@@ -7,7 +7,7 @@ import (
"sync"
"time"
"chorus.services/bzzz/pkg/ucxl"
"chorus/pkg/ucxl"
)
// decisionNavigatorImpl implements the DecisionNavigator interface

View File

@@ -5,8 +5,8 @@ import (
"testing"
"time"
"chorus.services/bzzz/pkg/ucxl"
slurpContext "chorus.services/bzzz/pkg/slurp/context"
"chorus/pkg/ucxl"
slurpContext "chorus/pkg/slurp/context"
)
func TestDecisionNavigator_NavigateDecisionHops(t *testing.T) {

View File

@@ -7,8 +7,8 @@ import (
"sync"
"time"
"chorus.services/bzzz/pkg/ucxl"
"chorus.services/bzzz/pkg/slurp/storage"
"chorus/pkg/ucxl"
"chorus/pkg/slurp/storage"
)
// persistenceManagerImpl handles persistence and synchronization of temporal graph data

View File

@@ -8,7 +8,7 @@ import (
"sync"
"time"
"chorus.services/bzzz/pkg/ucxl"
"chorus/pkg/ucxl"
)
// querySystemImpl implements decision-hop based query operations

View File

@@ -8,7 +8,7 @@ import (
"sync"
"time"
"chorus.services/bzzz/pkg/ucxl"
"chorus/pkg/ucxl"
)
// stalenessDetectorImpl implements the StalenessDetector interface

View File

@@ -3,8 +3,8 @@ package temporal
import (
"time"
"chorus.services/bzzz/pkg/ucxl"
slurpContext "chorus.services/bzzz/pkg/slurp/context"
"chorus/pkg/ucxl"
slurpContext "chorus/pkg/slurp/context"
)
// ChangeReason represents why a context changed at a decision point

View File

@@ -3,7 +3,7 @@ package slurp
import (
"time"
"chorus.services/bzzz/pkg/crypto"
"chorus/pkg/crypto"
)
// Core data types for the SLURP contextual intelligence system.