# Lab 4.13: Multi-Team Configuration
#
# Define an orchestrator + 2 teams with domain locking.
# Fill in the missing team definitions.

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"

  # TODO: Add a QA/Validation team
  # - team-name: Validation
  #   team-color: "#something"
  #   lead:
  #     ...
  #   members:
  #     ...

  # TODO: Add a Research/Planning team
  # - team-name: Planning
  #   ...

# Orchestrator configuration
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. You are a manager, not a doer.

# Domain permissions template (per-agent)
# Each agent can only access paths within their domain
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

  # TODO: Add domain permissions for the QA team
  # QA should be able to read everything but only write to test/ directories

  # TODO: Add domain permissions for the Planning team
  # Planning should be able to read everything but write only to docs/ and specs/
