Skip to content

Contributing Guidelines

UnDaoDu edited this page Jul 3, 2025 · 3 revisions

🤝 Contributing Guidelines

How to Contribute to Post-Capitalist Innovation

🌍 Welcome to the Revolution

Contributing to FoundUps means joining the planetary-scale transformation from extractive capitalism to regenerative collaboration. Every line of code you contribute helps build the infrastructure for a fundamentally different world.

You're not just contributing to software - you're building the economic and technological foundation for post-scarcity abundance.

🎯 Contribution Philosophy

For Humanity, Not Shareholders

  • Build solutions that benefit everyone, not just those who can afford them
  • Prioritize planetary health over quarterly profits
  • Create regenerative systems that heal rather than extract
  • Enable collaborative abundance instead of competitive scarcity

For 100-Year Lifespans

  • Write code that will outlast its creators
  • Follow WSP protocols religiously - they ensure long-term sustainability
  • Document everything - knowledge must be accessible to all
  • Build for recursive improvement - systems that evolve themselves

For Autonomous Operation

  • Design for agent orchestration rather than human micromanagement
  • Enable self-monitoring and recovery capabilities
  • Implement clean interfaces that agents can coordinate through
  • Plan for recursive self-improvement of your contributions

🚀 Getting Started

1. Environment Setup

# Clone the repository
git clone https://github.com/Foundup/Foundups-Agent.git
cd Foundups-Agent

# Set up development environment
python -m venv venv
source venv/bin/activate  # Windows: venv\Scripts\activate
pip install pytest pytest-cov pytest-asyncio

# Verify everything works
python -m pytest modules/ -v
python tools/modular_audit/modular_audit.py modules/

2. Study the Ecosystem

Before contributing, understand the existing patterns:

# Explore the enterprise domain architecture
ls modules/
cat modules/README.md

# Study successful modules in your area of interest
find modules/communication/ -name "*.py" | head -3 | xargs cat
find modules/ai_intelligence/ -name "*.py" | head -3 | xargs cat

3. Create Your First Clean State

# Always start with a clean state snapshot
python -c "
from modules.wre_core.src.components.clean_state_manager import WSP2CleanStateManager
from pathlib import Path
csm = WSP2CleanStateManager(Path('.'))
result = csm.create_clean_state_snapshot('Starting my contribution')
print(f'Safe rollback point: {result[\"tag_name\"]}')
"

📋 Contribution Types

🧩 New Module Creation

Most Valuable: Create entirely new capabilities

High-Priority Areas:

  • Bitcoin/Lightning Network integration - Enable decentralized value flows
  • Social media platform adapters - Twitter, LinkedIn, YouTube automation
  • AI agent coordination systems - Multi-agent collaboration patterns
  • Testing and quality tools - Improve WSP compliance automation
  • Documentation generators - Make knowledge more accessible

Process:

  1. Choose appropriate domain (function over platform)
  2. Use WSP 33 autonomous workflow for guided creation
  3. Follow established patterns from existing modules in that domain
  4. Achieve ≥90% test coverage (WSP 5 requirement)
  5. Document interfaces thoroughly (WSP 7-10 requirements)

🔧 Module Enhancement

Incremental Improvement: Enhance existing modules

Focus Areas:

  • Performance optimization - Faster, more efficient implementations
  • Feature completions - Finish placeholder functionality
  • Integration improvements - Better cross-module coordination
  • Error handling enhancement - More robust autonomous operation
  • Documentation updates - Keep knowledge current and accurate

🛡️ WSP Protocol Extensions

Framework Evolution: Improve the protocols themselves

Advanced Contributions:

  • New WSP protocols for emerging needs
  • WSP validation tools for better compliance automation
  • WSP metric collection for ecosystem health monitoring
  • WSP integration patterns for external systems

🤖 Agent Development

Autonomous Capabilities: Create new autonomous agents

Agent Types Needed:

  • Domain-specific agents for specialized module types
  • Cross-domain coordinators for complex multi-module workflows
  • Quality assurance agents for specialized testing patterns
  • Optimization agents for performance and resource management

📚 Documentation & Education

Knowledge Sharing: Make the ecosystem more accessible

Documentation Needs:

  • Tutorial series for different skill levels
  • Best practices guides for common patterns
  • Integration examples showing real-world usage
  • Vision articulation helping others understand the mission

🔄 Contribution Workflow

Phase 1: Discovery & Planning

# 1. Identify what you want to contribute
# 2. Search existing issues and discussions
# 3. Check if similar work exists
# 4. Plan your approach

Phase 2: Implementation

# 1. Create feature branch
git checkout -b feature/your-contribution-name

# 2. Use WSP 33 for module creation (if applicable)
cd modules/wre_core
python src/wre_core_poc.py
# Select option 2: "New Module Build"

# 3. Follow WSP protocols throughout development
python tools/modular_audit/modular_audit.py modules/
pytest modules/your_module/ --cov=modules.your_module.src --cov-report=term-missing

# 4. Document everything as you go
# Update README.md, create INTERFACE.md, maintain ModLog.md

Phase 3: Quality Assurance

# 1. Achieve full WSP compliance
python tools/modular_audit/modular_audit.py modules/

# 2. Ensure comprehensive test coverage
pytest modules/ -v --cov=modules --cov-report=term-missing

# 3. Validate agent integration (if applicable)
cd modules/wre_core
python src/wre_core_poc.py
# Test your module through orchestration workflows

# 4. Create clean state snapshot of completion
python -c "
from modules.wre_core.src.components.clean_state_manager import WSP2CleanStateManager
from pathlib import Path
csm = WSP2CleanStateManager(Path('.'))
result = csm.create_clean_state_snapshot('Completed: your-contribution-name')
print(f'Completion snapshot: {result[\"tag_name\"]}')
"

Phase 4: Submission & Review

# 1. Commit with WSP-compliant messages
git add .
git commit -m "WSP: Add [module_name] - [brief_description]

- WSP 1: Modular design with clear interfaces
- WSP 3: Correctly placed in [domain] domain
- WSP 5: [X]% test coverage achieved
- WSP 6: All tests passing
- Implements: [specific_functionality]
- Dependencies: [list_dependencies]
- Agent Integration: [orchestration_capabilities]"

# 2. Push feature branch
git push origin feature/your-contribution-name

# 3. Create Pull Request with detailed description

📊 WSP Compliance Requirements

Mandatory WSP Standards

Every contribution MUST comply with:

WSP 1: Framework Principles

  • ✅ Agentic Responsibility
  • ✅ Protocol-Driven Development
  • ✅ Recursive Self-Improvement
  • ✅ Traceable Narrative
  • ✅ Modular Cohesion
  • ✅ Quantum Temporal Decoding

WSP 3: Enterprise Domain Architecture

  • ✅ Correct domain placement (function over platform)
  • ✅ Clear interface boundaries
  • ✅ No hidden cross-domain dependencies
  • ✅ Standard module structure

WSP 4: FMAS Compliance

# Must pass structural audit
python tools/modular_audit/modular_audit.py modules/
# Result must show: "✅ All modules passed structural compliance"

WSP 5: Test Coverage

# Must achieve ≥90% test coverage
pytest modules/your_module/ --cov=modules.your_module.src --cov-report=term-missing
# Coverage must show ≥90%

WSP 6: Test Quality

# All tests must pass
pytest modules/ -v
# Result must show: "X passed, 0 failed"

Documentation Standards (WSP 7-10)

Required Files:

  • README.md - Implementation overview and usage
  • INTERFACE.md - Public API specification
  • ModLog.md - Change history and decisions
  • module.json - Metadata and configuration

Documentation Quality:

  • Clear explanations of purpose and functionality
  • Code examples showing real usage patterns
  • Integration guidance for other developers
  • WSP compliance status explicitly documented

🤖 Agent Integration Guidelines

Making Your Module Agent-Ready

# 1. Implement health monitoring
class YourModule:
    async def health_check(self):
        """Return current module health status."""
        return {
            "status": "healthy",
            "performance_metrics": self.get_performance_data(),
            "resource_usage": self.get_resource_usage(),
            "error_count": self.get_error_count()
        }

# 2. Enable autonomous error recovery
    async def handle_error(self, error, context):
        """Autonomous error handling and recovery."""
        if error.is_recoverable():
            return await self.attempt_recovery(error)
        else:
            return await self.graceful_degradation(error)

# 3. Support agent orchestration
    async def execute_with_context(self, orchestration_context):
        """Execute module function within agent orchestration."""
        result = await self.primary_function(orchestration_context.input)
        orchestration_context.update_with_result(result)
        return result

Orchestration Registration

# Register with WRE orchestration system
from modules.wre_core.src.components.agentic_orchestrator.orchestration_context import OrchestrationTrigger

@register_orchestration_handler(OrchestrationTrigger.YOUR_TRIGGER_TYPE)
async def handle_orchestrated_workflow(context):
    """Handle agent orchestration requests."""
    return await your_module.execute_with_context(context)

🚫 What NOT to Contribute

Anti-Patterns to Avoid

  • Platform-specific silos (put YouTube functionality in platform_integration, not youtube_domain)
  • Proprietary dependencies that create vendor lock-in
  • Competitive features designed to exclude or disadvantage others
  • Extractive patterns that benefit few at expense of many
  • Hidden interfaces that prevent agent orchestration
  • Non-WSP compliant code that doesn't follow protocol standards

Contribution Red Flags

"This module only works with our specific setup""This module follows WSP interfaces for maximum interoperability"

"We'll document this later"
"Documentation is complete and WSP-compliant"

"Tests are optional for this feature""95% test coverage achieved, exceeding WSP 5 requirement"

"This gives us a competitive advantage""This creates value for the entire ecosystem"

🌟 Contribution Recognition

Contributor Levels

  • Module Contributors - Created or significantly enhanced modules
  • Agent Developers - Built autonomous capabilities
  • Protocol Architects - Extended WSP framework
  • Ecosystem Gardeners - Documentation, testing, quality improvements
  • Vision Ambassadors - Spread FoundUps mission and onboard others

Future Economic Recognition

As Bitcoin integration develops, contributors will benefit from:

  • Decentralized attribution tracking all contributions via blockchain
  • Value capture for contributors based on module usage and impact
  • Regenerative rewards that grow over time rather than diminish
  • No gatekeepers - direct value flows without intermediaries

📞 Getting Help

Community Resources

  • GitHub Issues - Technical problems and feature discussions
  • GitHub Discussions - Architectural decisions and design questions
  • Wiki Pages - Comprehensive guides and reference documentation
  • Code Examples - modules/wre_core/ and other modules for patterns

Contribution Questions

"Which domain should my module go in?" → See Module Ecosystem for enterprise domain guide

"How do I make my module work with agents?"
→ See Agent System for orchestration patterns

"What does WSP compliance actually require?" → See WSP Framework for complete protocol reference

"How do I follow the FoundUps vision?" → See FoundUps Manifesto for philosophical foundation

🎯 Your Contribution Matters

Remember the Mission

Every contribution moves humanity closer to:

  • Post-capitalist innovation where collaboration replaces competition
  • Regenerative abundance where technology heals rather than extracts
  • AI accessibility where everyone benefits from artificial intelligence
  • Economic sovereignty where value flows without gatekeepers

Quality Over Quantity

  • One excellent module is better than ten mediocre ones
  • Follow WSP protocols religiously - they ensure 100-year lifespans
  • Build for autonomous operation - agents must be able to use your work
  • Document everything - knowledge must outlast its creators

🚀 Ready to Change the World?

Your contribution could be the module that makes FoundUps work at planetary scale.

Your code could be the foundation that enables post-scarcity abundance.

Your documentation could be what helps the next contributor build something incredible.

Start now. Build for humanity. Transform everything.

The revolution needs your code. 🌍⚡

Clone this wiki locally