Files
crimson_leaf_publishing/templates/chapter_polish.yml
David Baity 87c01864dc Sprint 56: Upstream draft control and editorial boundary refactor
- book_chapter: Remove PASS 2+3 (internal polish cycle); replace with narrow
  SELF-CHECK step (structural validation only — names/POV/hook/format/word-floor).
  Add anti-overpolish drafting discipline rules to PASS 1.
  Add genre-aware guide-use note (apply only the guide matching {genre_name}).
  Update adjudication prose_quality description to match draft-quality standard.

- chapter_polish: Convert from broad 'Rewrite the chapter' pass to bounded
  editorial control pass. Explicitly forbids expansion, sensory addition,
  global voice upgrades, new content. Instructs verbatim preservation of
  unaffected paragraphs. Adjudication rewritten around correction fidelity
  rather than 'more polished is better'. Threshold lowered from 90 to 80.

- chapter_review: Add explicit output categories — STRENGTHS TO PRESERVE,
  MUST-FIX CONTINUITY, MUST-FIX CLARITY, OPTIONAL, FORBIDDEN, VERDICT.
  Remove 'REWRITE' verdict option (roundtable resolves that). Remove all three
  writing-craft guides (editorial tasks do not need genre writing guidance).

- chapter_roundtable: Update CONSENSUS REACHED block to MUST APPLY / OPTIONAL /
  PRESERVE / VERDICT categories. Require disagreements to be resolved before
  calling consensus. Remove REWRITE verdict option. Remove all writing-craft
  guides. Remove 'skills' from sections. Add package hint to populate key_changes
  from the full structured consensus. Update adjudication to score structured output.

- book_outline: Strengthen Voice & Tone Guide as hard operating constraints
  (not aspirations); include anti-overpolish rules, rhythm rules, and voice
  don'ts. Expand per-chapter outline format to include Opens-at location,
  Character state, and Dominant tension. Enrich chapter task description
  packets with that state data so book_chapter has richer upstream context.

- skills/skills.md: Document writing-vs-editorial guide split established in
  Sprint 56. Update Used-by column. Add boundary rules section.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-03-21 16:34:32 -04:00

104 lines
3.5 KiB
YAML

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: "{{task_name_slug}}-polished"
- 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"