name: scifi_chapter
description: "Write one science fiction chapter — internal logic, sense of wonder, and human stakes inside a vast universe."
extends: book_chapter

# Sci-fi projects load the SciFi guide directly
skills:
  - guides/SciFiFictionGuide.md

steps:
  - include: steps/chapter_pass0_bible.yml
  - include: steps/scifi_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:
    worldbuilding_consistency:
      weight: 20
      description: "World rules established earlier in the manuscript are honored — no retcons or forgotten constraints"
    internal_logic:
      weight: 15
      description: "Technology, alien biology, political systems, and physics behave consistently within the story's own rules"
    sense_of_wonder:
      weight: 15
      description: "At least one moment per chapter enlarges the reader's imagination — a revelation, a view, a moral question"
    prose_quality:
      weight: 20
      description: "Writing is vivid and readable; voice is consistent with {prose_style}"
