type: package
hint: |
  The draft chapter has been written, self-checked, and committed.

  CRITICAL — include the `chapter_text` field:
  Copy the COMPLETE chapter text from the self-check output (step 2 — the final chapter draft)
  into the `chapter_text` field.
  Reviewers have NO other way to access the chapter content.
  Do NOT summarize or truncate it — include every word of the chapter.

  Now spawn the three independent editorial reviewers
  and the roundtable debate. Use the exact task_names shown — the roundtable depends_on all three.
schema:
  chapter_text: string
spawn:
  - task_type: chapter_review
    task_name: "Review (Devon): {chapter_ref}"
    agent_name: Devon
    priority: 6
    context:
      chapter_text: "{chapter_text}"
      review_focus: developmental
      genre_name: "{genre_name}"
      genre_audience: "{genre_audience}"
      chapter_ref: "{chapter_ref}"
      character_profiles: "{character_profiles}"
  - task_type: chapter_review
    task_name: "Review (Lane): {chapter_ref}"
    agent_name: Lane
    priority: 6
    context:
      chapter_text: "{chapter_text}"
      review_focus: line
      genre_name: "{genre_name}"
      genre_audience: "{genre_audience}"
      chapter_ref: "{chapter_ref}"
      character_profiles: "{character_profiles}"
  - task_type: chapter_review
    task_name: "Review (Cora): {chapter_ref}"
    agent_name: Cora
    priority: 6
    context:
      chapter_text: "{chapter_text}"
      review_focus: continuity
      genre_name: "{genre_name}"
      genre_audience: "{genre_audience}"
      chapter_ref: "{chapter_ref}"
      character_profiles: "{character_profiles}"
  - task_type: chapter_roundtable
    task_name: "Roundtable: {chapter_ref}"
    agents:
      - Devon
      - Lane
      - Cora
    priority: 7
    context:
      chapter_text: "{chapter_text}"
      genre_name: "{genre_name}"
      genre_audience: "{genre_audience}"
      chapter_ref: "{chapter_ref}"
      chapter_target_words: "{chapter_target_words}"
      character_profiles: "{character_profiles}"
    depends_on:
      - "Review (Devon): {chapter_ref}"
      - "Review (Lane): {chapter_ref}"
      - "Review (Cora): {chapter_ref}"
