# @template-name: Users/samhenry/tailwind-ai-workspace/roadcrew/templates/roadcrew.yml
# @version: 1.0.0
# @release-date: 2025-10-25
# Roadcrew Configuration Template
# Copy this file to config/roadcrew.yml and customize for your instance

# Project Information
project:
  name: "{{PROJECT_NAME}}"
  repo_url: "{{REPO_URL}}"  # e.g., "https://github.com/org/repo"
  
# GitHub Configuration
github:
  default_project: "{{DEFAULT_PROJECT}}"  # Default GitHub Project for issues
  # Project name must match exactly as shown in GitHub Projects (case-sensitive)
  
# Developer Assignment Rules
# Maps risk levels to GitHub usernames for auto-assignment
assignments:
  high_risk: "{{HIGH_RISK_DEVELOPER}}"      # Senior developer for high-risk work
  medium_risk: "{{MEDIUM_RISK_DEVELOPER}}"  # Senior developer for medium-risk work
  low_risk: "{{LOW_RISK_DEVELOPER}}"        # Can be handled with AI assistance
  
  # Optional: Override by issue type
  # bug: "username"
  # enhancement: "username"
  # process: "username"
  
  # Optional: Default if risk level not detected
  # default: "username"

# Resource Configuration (TOC-based capacity planning)
# Define team capacity and classification ranges for optimal work allocation
resources:
  experts:
    - name: "{{EXPERT_NAME}}"
      capacity: 20  # hours/week available for development
      classification_min: 7    # ai-assisted zone minimum
      classification_max: 10   # ai-limited zone maximum
      # Experts handle complex, high-value work (classifications 7-10)
      
  juniors:
    - name: "{{JUNIOR_NAME}}"
      capacity: 40  # hours/week available for development
      classification_min: 4    # ai-led zone minimum
      classification_max: 6    # ai-led zone maximum
      # Juniors handle moderate complexity work with AI assistance (classifications 4-6)
      
  ai:
    - name: "AI Assistant"
      classification_min: 1    # ai-solo zone minimum
      classification_max: 3    # ai-solo zone maximum
      # AI handles routine, low-complexity work autonomously (classifications 1-3)

# TOC Optimization Notes:
# - Expert capacity is the constraint - protect it by assigning only classification 7-10 work
# - Junior capacity subordinates to experts - handles preparatory work to unblock experts
# - AI capacity is unlimited - handles all routine work to free up human capacity
# - Classification ranges should not overlap to ensure clear assignment boundaries

# Note: Separate configuration files still used for:
# - config/google-drive.json - Google Drive API credentials (copy from templates/google-drive.template.json)
# - config/schema/ - Auto-generated database schema tracking

