# @template-name: Users/samhenry/tailwind-ai-workspace/roadcrew/templates/assignment-rules.yml
# @version: 2.0.0
# @release-date: 2025-10-31
# Assignment Rules Configuration Template
# Copy this file to config/assignment-rules.yml and customize for your team
#
# CHANGED in v2.0.0: Replaced classification-based assignments with resource capability modeling
# See Issue #1018 for details

# GitHub Configuration
github:
  default_project: ""  # Default GitHub Project name for issues (leave empty if none)
  # Project name must match exactly as shown in GitHub Projects (case-sensitive)

# Resource Capability Definitions
# Defines what AI agents and human skill levels can reliably handle per dimension
# Thresholds are on a 1-10 scale matching TaskProfile dimensions
resource_capabilities:
  # AI Agent Capabilities (conservative estimates based on industry research)
  ai-agents:
    - resourceId: "claude-opus"
      resourceType: "ai-agent"
      maxDeterminism: 4      # AI struggles with creative judgment
      maxContextBreadth: 6    # Can handle moderate context
      maxVerificationCost: 5  # Moderate verification complexity
      maxDomainKnowledge: 4  # Limited specialized expertise
    
    - resourceId: "claude-sonnet"
      resourceType: "ai-agent"
      maxDeterminism: 3
      maxContextBreadth: 5
      maxVerificationCost: 4
      maxDomainKnowledge: 3
  
  # Human Capability Definitions
  humans:
    - resourceId: "junior-dev"
      resourceType: "human"
      maxDeterminism: 10      # Humans can handle all determinism levels
      maxContextBreadth: 6     # Limited context understanding initially
      maxVerificationCost: 7   # Moderate verification ability
      maxDomainKnowledge: 5    # Basic domain knowledge
    
    - resourceId: "mid-dev"
      resourceType: "human"
      maxDeterminism: 10
      maxContextBreadth: 8     # Better context understanding
      maxVerificationCost: 8   # Good verification ability
      maxDomainKnowledge: 7    # Good domain knowledge
    
    - resourceId: "senior-dev"
      resourceType: "human"
      maxDeterminism: 10
      maxContextBreadth: 10    # Full system-wide context
      maxVerificationCost: 10  # Can verify complex scenarios
      maxDomainKnowledge: 10  # Deep specialized expertise

# Legacy Assignment Rules (deprecated - kept for backward compatibility)
# Will be removed in a future version after migration to resource capabilities
assignments:
  # Classification levels (1-10 scale) - DEPRECATED
  classification-1: "ai-agent"        # 🟢 AI-autonomous, human reactive only
  classification-2: "ai-agent"        # 🟢 AI-autonomous, human reactive only
  classification-3: "ai-agent"        # 🟢 AI-autonomous, human reactive only
  classification-4: "junior-dev"      # 🟡 AI-led, human validates
  classification-5: "junior-dev"      # 🟡 AI-led, human validates
  classification-6: "mid-dev"         # 🟡 AI-led, human validates
  classification-7: "mid-senior-dev"  # 🟠 Human-led, AI assists
  classification-8: "senior-dev"      # 🟠 Human-led, AI assists
  classification-9: "senior-dev"      # 🔴 Human-owned, AI limited
  classification-10: "senior-dev"     # 🔴 Human-owned, AI limited
  
  # Optional: Override assignments by issue type
  # bug: "qa-lead"
  # enhancement: "feature-lead"
  # process: "devops-lead"
  
  # Optional: Default assignee if classification not detected
  # default: "team-lead"
