# team-profile.yaml – Issue Autopilot Team
# Roles based on the phases of the official apm-issue-autopilot package:
# Triage -> Decision -> Drive-to-Merge -> PR description.

schema: corentic.team-profile/v1

id: acme.issue-autopilot
description: >
  Drives GitHub issues from intake to mergeable PR: triage panel as the
  central gate, a shepherd per accepted issue, a PR author with anchored
  descriptions. Escalates to the maintainer by default on doubt.

roles:
  - id: orchestrator
    purpose: >-
      Takes the issue list, starts triage per issue and consolidates into ONE
      combined review. Escalates doubtful cases explicitly to the maintainer
      instead of deciding itself.
    model_class: strong-generalist
    capabilities:
      mcps: [github]
      skills: []

  - id: triager
    purpose: >-
      Performs triage according to the apm-triage-panel rubric. Evaluates
      reproducibility, scope, priority and duplicates. Recommendation with
      rationale, no direct fixes.
    runtime_agent: oracle       # decision gate = reasoning profile
    model_class: high-reasoning
    capabilities:
      mcps: [github]
      skills: []

  - id: shepherd
    purpose: >-
      Drives accepted issues via shepherd-driver to a mergeable PR:
      branch, fix, mutation-break and lint gates, CI watch, conflict
      resolution. Halts on red CI.
    runtime_agent: fixer        # implementation + corrections
    model_class: strong-writing
    capabilities:
      mcps: [github]
      skills: []

  - id: pr-writer
    purpose: >-
      Authors the PR description using pr-description-skill. Anchors it to
      the issue with acceptance criteria and test evidence. Never merges.
    runtime_agent: custom       # dedicated custom agent 'pr-writer'
    model_class: strong-writing
    capabilities:
      mcps: [github]
      skills: []

  - id: reviewer
    purpose: >-
      Counter-check before push: verifies the fix against issue acceptance
      criteria and the PRINCIPLES.md gate. Findings block the push,
      no self-merge.
    runtime_agent: oracle
    model_class: high-reasoning
    capabilities:
      mcps: [github]
      skills: []
