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

@@ -7,13 +7,13 @@ import (
"strings"
)
// BzzzURI represents a parsed bzzz:// URI with semantic addressing
// Grammar: bzzz://[agent]:[role]@[project]:[task]/[path][?query][#fragment]
// BzzzURI represents a parsed CHORUS:// URI with semantic addressing
// Grammar: CHORUS://[agent]:[role]@[project]:[task]/[path][?query][#fragment]
type BzzzURI struct {
// Core addressing components
Agent string // Agent identifier (e.g., "claude", "any", "*")
Role string // Agent role (e.g., "frontend", "backend", "architect")
Project string // Project context (e.g., "chorus", "bzzz")
Project string // Project context (e.g., "chorus", "CHORUS")
Task string // Task identifier (e.g., "implement", "review", "test", "*")
// Resource path
@@ -29,7 +29,7 @@ type BzzzURI struct {
// URI grammar constants
const (
BzzzScheme = "bzzz"
BzzzScheme = "CHORUS"
// Special identifiers
AnyAgent = "any"
@@ -49,10 +49,10 @@ var (
pathPattern = regexp.MustCompile(`^/[a-zA-Z0-9\-_/\.]*$|^$`)
// Full URI pattern for validation
bzzzURIPattern = regexp.MustCompile(`^bzzz://([a-zA-Z0-9\-_*]|any):([a-zA-Z0-9\-_*]|any)@([a-zA-Z0-9\-_*]|any):([a-zA-Z0-9\-_*]|any)(/[a-zA-Z0-9\-_/\.]*)?(\?[^#]*)?(\#.*)?$`)
bzzzURIPattern = regexp.MustCompile(`^CHORUS://([a-zA-Z0-9\-_*]|any):([a-zA-Z0-9\-_*]|any)@([a-zA-Z0-9\-_*]|any):([a-zA-Z0-9\-_*]|any)(/[a-zA-Z0-9\-_/\.]*)?(\?[^#]*)?(\#.*)?$`)
)
// ParseBzzzURI parses a bzzz:// URI string into a BzzzURI struct
// ParseBzzzURI parses a CHORUS:// URI string into a BzzzURI struct
func ParseBzzzURI(uri string) (*BzzzURI, error) {
if uri == "" {
return nil, fmt.Errorf("empty URI")
@@ -292,14 +292,14 @@ func (u *BzzzURI) ToAddress() string {
return fmt.Sprintf("%s:%s@%s:%s", u.Agent, u.Role, u.Project, u.Task)
}
// ValidateBzzzURIString validates a bzzz:// URI string without parsing
// ValidateBzzzURIString validates a CHORUS:// URI string without parsing
func ValidateBzzzURIString(uri string) error {
if uri == "" {
return fmt.Errorf("empty URI")
}
if !bzzzURIPattern.MatchString(uri) {
return fmt.Errorf("invalid bzzz:// URI format")
return fmt.Errorf("invalid CHORUS:// URI format")
}
return nil