name: ai_article_plan
description: "Plan a 10-article series -- select topics, write briefs, spawn 10 writing tasks for Iris."
debug: true
rag_exclude: [business_plan, charter]
system: agent_prompt

agent_prompt:
  - "= identity.md"
  - "agent.rag.json"

sections:
  - agent
  - project
  - history
  - rag
  - deliverables
  - message
  - instructions

steps:
  - type: think
    hint: |
      You have research deliverables above. Read the project description to understand
      the audience and subject matter.

      Design a SERIES PLAN for exactly 10 standalone articles (5-minute reads, ~800-1000 words).
      You choose the topics. Aim for variety -- cover different angles so a wide range of readers
      each find something valuable.

      For EACH article define:
        - ARTICLE TITLE
        - TARGET READER: one sentence
        - THE HOOK: the real problem they face that opens the article
        - THE PROMISE: the one thing they walk away knowing
        - KEY POINTS: 3-4 specific, concrete points
        - CALL TO ACTION: one thing they can do this week
        - TONE NOTES: anything specific to this reader or topic

      Write the complete SERIES PLAN now.

  - type: document
    filename: "{{task_name_slug}}"

  - type: package
    packet_type: IntakeResponse
    hint: |
      Convert the series plan into exactly 10 create_task actions for Iris.

      RULES:
      - Exactly 10 actions
      - task_name: "Write Article N: [Title]" where N is 1 through 10
      - agent_name: "Iris"
      - task_type: "ai_article_write"
      - description: Full brief for this article (hook, promise, key points, CTA, tone).
        Begin: "You are writing Article N of the series."
        End: "Word count: 800-1000 words. Standalone -- no assumed knowledge of other articles."
      - depends_on: "" (all parallel)

      JSON array of exactly 10 objects. No prose.
    schema:
      actions:
        - type: create_task
          task_name: "string"
          agent_name: "string"
          task_type: "ai_article_write"
          description: "string"
          depends_on: "string"

  - type: close
    rag_update: true
adjudication:
  enabled: true
  pass_threshold: 60
  deliverable_type: coordination
  criteria:
    completeness:
      weight: 40
      description: "All required sections and elements present"
    structure:
      weight: 35
      description: "Logical organization and hierarchy"
    actionability:
      weight: 25
      description: "Clear enough for execution without guessing"
