# Lab 4.13: Multi-Team Configuration — SOLUTION

teams:
  - team-name: Engineering
    team-color: "#4A90D9"
    lead:
      name: Engineering Lead
      path: .pi/multi-team/agents/engineering-lead.md
      color: "#4A90D9"
    members:
      - name: Frontend Dev
        path: .pi/multi-team/agents/frontend-dev.md
        color: "#7BB3E0"
        consult-when: "UI components, client-side logic, CSS"
      - name: Backend Dev
        path: .pi/multi-team/agents/backend-dev.md
        color: "#2E6DB4"
        consult-when: "APIs, databases, server logic"
      - name: DevOps
        path: .pi/multi-team/agents/devops.md
        color: "#1A4D8F"
        consult-when: "Infrastructure, deployment, CI/CD"

  - team-name: Validation
    team-color: "#E87D2F"
    lead:
      name: Validation Lead
      path: .pi/multi-team/agents/validation-lead.md
      color: "#E87D2F"
    members:
      - name: QA Engineer
        path: .pi/multi-team/agents/qa-engineer.md
        color: "#F0A050"
        consult-when: "Test cases, regression, automation"
      - name: Security Reviewer
        path: .pi/multi-team/agents/security-reviewer.md
        color: "#CC3333"
        consult-when: "Threat modeling, auth, data protection"

  - team-name: Planning
    team-color: "#50C878"
    lead:
      name: Planning Lead
      path: .pi/multi-team/agents/planning-lead.md
      color: "#50C878"
    members:
      - name: Product Manager
        path: .pi/multi-team/agents/product-manager.md
        color: "#80D8A0"
        consult-when: "Requirements, prioritization, user stories"
      - name: UX Researcher
        path: .pi/multi-team/agents/ux-researcher.md
        color: "#A0E8C0"
        consult-when: "User behavior, personas, journey mapping"

orchestrator:
  name: Orchestrator
  model: claude-opus-4-20260501
  skills:
    - path: .pi/multi-team/skills/conversational-response.md
      use-when: Always
    - path: .pi/multi-team/skills/delegate-dont-execute.md
      use-when: Always
    - path: .pi/multi-team/skills/tilldone-discipline.md
      use-when: Always. Define tasks before delegating.

domain_permissions:
  frontend-dev:
    - path: "src/frontend/"
      read: true
      upsert: true
      delete: false
    - path: "."
      read: true
      upsert: false
      delete: false
  
  backend-dev:
    - path: "src/backend/"
      read: true
      upsert: true
      delete: false
    - path: "database/"
      read: true
      upsert: true
      delete: false
    - path: "."
      read: true
      upsert: false
      delete: false
  
  devops:
    - path: "deploy/"
      read: true
      upsert: true
      delete: false
    - path: "Dockerfile"
      read: true
      upsert: true
      delete: false
    - path: ".github/"
      read: true
      upsert: true
      delete: false
    - path: "."
      read: true
      upsert: false
      delete: false
  
  qa-engineer:
    - path: "tests/"
      read: true
      upsert: true
      delete: false
    - path: "."
      read: true
      upsert: false  # Can read everything, write nothing outside tests/
      delete: false
  
  security-reviewer:
    - path: "."
      read: true
      upsert: false  # Read only — security reviewers never write
      delete: false
  
  planning-lead:
    - path: "docs/"
      read: true
      upsert: true
      delete: false
    - path: "specs/"
      read: true
      upsert: true
      delete: false
    - path: "."
      read: true
      upsert: false
      delete: false
