name: cozy_mystery_chapter
description: "Write one cozy mystery chapter — fair-play clues, warm community life, and an amateur sleuth who wins through intimacy not expertise."
extends: book_chapter

# Cozy mystery projects load the genre guide from skills
skills:
  - guides/CozyMysteryGuide.md

steps:
  - include: steps/chapter_pass0_bible.yml
  - include: steps/cozy_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: 80
  criteria:
    clue_integrity:
      weight: 20
      description: "Any clue or red herring introduced is discoverable in retrospect — nothing comes from nowhere; suspects have real motives"
    cozy_atmosphere:
      weight: 15
      description: "The chapter feels warm, community-rooted, and safe — the world is troubled but ultimately resolvable; no gratuitous darkness"
    ensemble_presence:
      weight: 15
      description: "Recurring cast members contribute meaningfully — the community feels alive, not just backdrop"
    prose_quality:
      weight: 20
      description: "Writing is vivid and readable; voice is consistent with {prose_style}"
