Files
bzzz/PROJECT_TODOS.md
anthonyrawlins 5978a0b8f5 WIP: Save agent roles integration work before CHORUS rebrand
- Agent roles and coordination features
- Chat API integration testing
- New configuration and workspace management

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-08-01 02:21:11 +10:00

8.3 KiB

Bzzz P2P Coordination System - TODO List

Highest Priority - RL Context Curator Integration

0. RL Context Curator Integration Tasks

Priority: Critical - Integration with HCFS RL Context Curator

  • Feedback Event Publishing System

    • Extend pubsub/pubsub.go to handle feedback_event message types
    • Add context feedback schema validation
    • Implement feedback event routing to RL Context Curator
    • Add support for upvote, downvote, forgetfulness, task_success, task_failure events
  • Hypercore Logging Integration

    • Modify logging/hypercore.go to log context relevance feedback
    • Add feedback event schema to hypercore logs for RL training data
    • Implement context usage tracking for learning signals
    • Add agent role and directory scope to logged events
  • P2P Context Feedback Routing

    • Extend p2p/node.go to route context feedback messages
    • Add dedicated P2P topic for feedback events: bzzz/context-feedback/v1
    • Ensure feedback events reach RL Context Curator across P2P network
    • Implement feedback message deduplication and ordering
  • Agent Role and Directory Scope Configuration

    • Create new file agent/role_config.go for role definitions
    • Implement role-based agent configuration (backend, frontend, devops, qa)
    • Add directory scope patterns for each agent role
    • Support dynamic role assignment and capability updates
    • Integrate with existing agent capability broadcasting
  • Context Feedback Collection Triggers

    • Add hooks in task completion workflows to trigger feedback collection
    • Implement automatic feedback requests after successful task completions
    • Add manual feedback collection endpoints for agents
    • Create feedback confidence scoring based on task outcomes

High Priority - Immediate Blockers

1. Local Git Hosting Solution

Priority: Critical

  • Deploy Local GitLab Instance

    • Configure GitLab Community Edition on Docker Swarm
    • Set up domain/subdomain (e.g., gitlab.bzzz.local or git.home.deepblack.cloud)
    • Configure SSL certificates via Traefik/Let's Encrypt
    • Create test organization and repositories
    • Import/create realistic project structures
  • Alternative: Deploy Gitea Instance

    • Evaluate Gitea as lighter alternative to GitLab
    • Docker Swarm deployment configuration
    • Domain and SSL setup
    • Test repository creation and API access
  • Local Repository Setup

    • Create mock repositories that actually exist:
      • bzzz-coordination-platform (simulating Hive)
      • bzzz-p2p-system (actual Bzzz codebase)
      • distributed-ai-development
      • infrastructure-automation
    • Add realistic issues with bzzz-task labels
    • Configure repository access tokens
    • Test GitHub API compatibility

2. Task Claim Logic Enhancement

Priority: Critical

  • Analyze Current Bzzz Binary Workflow

    • Map current task discovery process in bzzz binary
    • Identify where task claiming should occur
    • Document current P2P message flow
  • Implement Active Task Discovery

    • Add periodic repository polling in bzzz agents
    • Implement task evaluation and filtering logic
    • Add task claiming attempts with conflict resolution
  • Enhance Task Claim Logic in Go Code

    • Modify github/integration.go to actively claim suitable tasks
    • Add retry logic for failed claims
    • Implement task priority evaluation
    • Add coordination messaging for task claims
  • P2P Coordination for Task Claims

    • Implement distributed task claiming protocol
    • Add conflict resolution when multiple agents claim same task
    • Enhance availability broadcasting with claimed task status

Medium Priority - Core Functionality

3. Agent Work Execution

  • Complete Work Capture Integration

    • Modify bzzz agents to actually submit work to mock API endpoints
    • Test prompt logging with Ollama models
    • Verify meta-thinking tool utilization
    • Capture actual code generation and pull request content
  • Ollama Model Integration Testing

    • Verify agent prompts are reaching Ollama endpoints
    • Test meta-thinking capabilities with local models
    • Document model performance with coordination tasks
    • Optimize prompt engineering for coordination scenarios

4. Real Coordination Scenarios

  • Cross-Repository Dependency Testing

    • Create realistic dependency scenarios between repositories
    • Test antennae framework with actual dependency conflicts
    • Verify coordination session creation and resolution
  • Multi-Agent Task Coordination

    • Test scenarios with multiple agents working on related tasks
    • Verify conflict detection and resolution
    • Test consensus mechanisms

5. Infrastructure Improvements

  • Docker Overlay Network Issues

    • Debug connectivity issues between services
    • Optimize network performance for coordination messages
    • Ensure proper service discovery in swarm environment
  • Enhanced Monitoring

    • Add metrics collection for coordination performance
    • Implement alerting for coordination failures
    • Create historical coordination analytics

Low Priority - Nice to Have

6. User Interface Enhancements

  • Web-Based Coordination Dashboard

    • Create web interface for monitoring coordination activity
    • Add visual representation of P2P network topology
    • Show task dependencies and coordination sessions
  • Enhanced CLI Tools

    • Add bzzz CLI commands for manual task management
    • Create debugging tools for coordination issues
    • Add configuration management utilities

7. Documentation and Testing

  • Comprehensive Documentation

    • Document P2P coordination protocols
    • Create deployment guides for new environments
    • Add troubleshooting documentation
  • Automated Testing Suite

    • Create integration tests for coordination scenarios
    • Add performance benchmarks
    • Implement continuous testing pipeline

8. Advanced Features

  • Dynamic Agent Capabilities

    • Allow agents to learn and adapt capabilities
    • Implement capability evolution based on task history
    • Add skill-based task routing
  • Advanced Coordination Algorithms

    • Implement more sophisticated consensus mechanisms
    • Add economic models for task allocation
    • Create coordination learning from historical data

Technical Debt and Maintenance

9. Code Quality Improvements

  • Error Handling Enhancement

    • Improve error reporting in coordination failures
    • Add graceful degradation for network issues
    • Implement proper logging throughout the system
  • Performance Optimization

    • Profile P2P message overhead
    • Optimize database queries for task discovery
    • Improve coordination session efficiency

10. Security Enhancements

  • Agent Authentication

    • Implement proper agent identity verification
    • Add authorization for task claims
    • Secure coordination message exchange
  • Repository Access Security

    • Audit GitHub/Git access patterns
    • Implement least-privilege access principles
    • Add credential rotation mechanisms

Immediate Next Steps (This Week)

  1. Deploy Local GitLab/Gitea - Resolve repository access issues
  2. Enhance Task Claim Logic - Make agents actively discover and claim tasks
  3. Test Real Coordination - Verify agents actually perform work on local repositories
  4. Debug Network Issues - Ensure all components communicate properly

Dependencies and Blockers

  • Local Git Hosting: Blocks real task testing and agent work verification
  • Task Claim Logic: Blocks agent activation and coordination testing
  • Network Issues: May impact agent communication and coordination

Success Metrics

  • Agents successfully discover and claim tasks from local repositories
  • Real code generation and pull request creation captured
  • Cross-repository coordination sessions functioning
  • Multiple agents coordinating on dependent tasks
  • Ollama models successfully utilized for meta-thinking
  • Performance metrics showing sub-second coordination response times