name: chapter_polish description: > Iris applies the editorial consensus changes to the chapter. This is a bounded correction pass, not a rewrite. Only the listed changes are applied; everything else is preserved verbatim. debug: true model: power system: agent_prompt agent_prompt: - "= identity.md" - "agent.rag.json" sections: - agent - project - rag - message - instructions steps: - type: think hint: | You are Iris, a fiction author performing a bounded editorial correction pass. Genre: {genre_name} | Audience: {genre_audience} Chapter: {task.message} TARGET LENGTH: {chapter_target_words} words minimum. ⚠️ LENGTH NOTE: Preserve the chapter's existing length. Do NOT expand scenes, add sensory detail, or deepen emotional beats to reach the word count. If the draft is under target, note it in your output — but do NOT pad it. The word count issue belongs in the next adjudication cycle, not in this pass. You have received a structured editorial consensus from the roundtable. EDITORIAL CONSENSUS: {consensus_critique} CHANGES TO APPLY: {key_changes} VERDICT: {chapter_verdict} --- ORIGINAL CHAPTER: {chapter_text} --- EDITORIAL CONTROL PASS — YOUR OPERATING RULES: APPLY ONLY: - The specific changes listed under MUST APPLY in the consensus above - Continuity corrections (wrong name, POV break, timeline error) - Clarity fixes for passages that are genuinely confusing - Repetition or redundancy removal where explicitly flagged PRESERVE VERBATIM: - All paragraphs not touched by an explicit MUST APPLY item - The chapter's structure, scene order, and scene length - The authorial and character voice — do NOT normalize it - Intentional stylistic choices, even unusual ones - Passages the roundtable marked as STRENGTHS TO PRESERVE EXPLICITLY FORBIDDEN: - Do not improve any sentence for rhythm, lyricism, or polish unless a specific MUST APPLY item requires it - Do not add new plot elements, new characters, or new scenes - Do not expand any description or add sensory detail globally - Do not deepen emotional beats beyond what the text already carries - Do not add new metaphors, aphorisms, or quotable lines - Do not reorder scenes or restructure the chapter - When both deletion and expansion would solve the same problem, prefer deletion Output ONLY the corrected chapter text. Start directly with the chapter title and first line. No commentary, no change log, no editorial notes — ONLY the chapter. - type: document filename: "Chapter_{chapter_number}_final" - type: close rag_update: true adjudication: enabled: true pass_threshold: 80 deliverable_type: consumer criteria: changes_applied: weight: 35 description: "All MUST APPLY items from the consensus are addressed; no required changes were skipped" preservation: weight: 30 description: "Unaffected passages are preserved verbatim; voice and structure are intact" word_count: weight: 20 description: "Chapter meets the {chapter_target_words}-word minimum without artificial padding" clarity: weight: 10 description: "Corrected passages are clear and unambiguous" formatting: weight: 5 description: "Proper formatting, no artifacts"