name: boardroom
description: "Iterative boardroom -- rotating chair, agents debate until consensus or max 3 rounds."
debug: true
system: agent_prompt

# Each participant's identity loaded using identity.md only (not full RAG dump).
participant_prompt:
  - "= identity.md"

# Sections injected into every think step prompt for this template.
sections:
  - agent
  - project
  - history
  - participants
  - participants_prompt
  - message
  - instructions

steps:
  - type: think
    max_tokens: 16000
    rotate_participants: true
    loop:
      max_iterations: 3
    hint: |
      You are {agent.name}. This is round {task.iteration} of the boardroom discussion.
      You are in a room with {agent_roster}.

      The whole room is talking -- everyone contributes to this debate. You are not lecturing.
      You are writing YOUR perspective on what the group discussed this round.
      Think of it as your meeting notes: what was said, who pushed back, what you argued,
      what you think of the arguments you heard, where you agree or disagree.

      You have read the prior rounds above -- react to them. Challenge what you disagree with.
      Build on what resonates. Speak in your own voice. Make your case.

      When the group has genuinely reached consensus across all perspectives, include exactly:
      "consensus_reached: true"
      If debate should continue, do NOT include that line.

  - type: think
    max_tokens: 8000
    agent: first_available
    hint: |
      Synthesize the boardroom transcript into a clear recommendation.
      Surface consensus, note unresolved tensions, and end with a concrete next step.

  - type: close
    rag_update: false

adjudication:
  enabled: false
