diff --git a/templates/book_chapter.yml b/templates/book_chapter.yml index 77dc5e99..456c543e 100644 --- a/templates/book_chapter.yml +++ b/templates/book_chapter.yml @@ -429,10 +429,16 @@ steps: The draft chapter has been written, self-checked, and committed. The character-state from PASS 3 is provided above. - Summarize the character state changes for {chapter_ref} in the `chapter_state` field + Summarize the character state changes in the `chapter_state` field (2-3 sentences max). This is used for bookkeeping -- the chapter text itself is passed to reviewers directly. + CHAPTER IDENTIFICATION (required fields): + Extract the chapter reference from the task name or task context: + - chapter_number: the plain chapter number as a string (e.g. "8" from "Write Chapter 8: ...") + - chapter_ref: zero-padded two-digit reference (e.g. "ch-08" for chapter 8) + If not available in context, derive it from the chapter number in the task name. + NEW CHARACTER DETECTION: For each NEW character introduced this chapter (not previously known), emit one create_task action using task_type: character_sheet. @@ -444,6 +450,8 @@ steps: Now confirm the chapter is ready for review. schema: chapter_state: string + chapter_ref: string + chapter_number: string spawn: - task_type: chapter_review task_name: "Review (Devon): {chapter_ref}"