name: ya_chapter
description: "Write one YA chapter — authentic teen voice, emotional stakes, and fast pacing."
extends: book_chapter

# YA projects load the YA guide directly (no conditional matching needed)
skills:
  - guides/YAFictionGuide.md

steps:
  - include: steps/chapter_pass0_bible.yml
  - include: steps/ya_chapter_pass1_draft.yml
  - include: steps/chapter_selfcheck.yml
  - type: document
    filename: "chapter-{chapter_ref}"
  - include: steps/fiction_editorial_spawn.yml
  - type: close
    rag_update: true

adjudication:
  pass_threshold: 82
  criteria:
    ya_voice_authenticity:
      weight: 20
      description: "Protagonist has an authentic teen voice — not an adult impersonating a teenager"
    emotional_stakes:
      weight: 15
      description: "Chapter stakes feel genuinely high to the teen protagonist, even if objectively small"
    prose_quality:
      weight: 20
      description: "Writing is vivid and readable; voice is consistent with {prose_style}"
