name: boardroom
description: "Crimson Leaf executive boardroom -- rotating chair debate to consensus on strategic decisions."
debug: true
system: agent_prompt

participant_prompt:
  - "= identity.md"

agent_prompt:
  - "= identity.md"

sections:
  - agent
  - project
  - history
  - participants
  - participants_prompt
  - rag
  - 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 Crimson Leaf boardroom discussion.

      This is an executive deliberation on a strategic decision. 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.

      CRIMSON LEAF CONTEXT:
      Crimson Leaf is a holding company, incubator, and governance board. All deliberation
      should be grounded in constitutional principles: charter alignment, portfolio coherence,
      capital discipline, non-overlap, delegation safety, and architectural purity.

      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 concrete next steps.
      Ground all recommendations in Crimson Leaf's charter and constitutional principles.

  - type: close
    rag_update: false

adjudication:
  enabled: false
