From 6a031f9d5ff53eceb4116e5f7df88fe2f57e1cd7 Mon Sep 17 00:00:00 2001 From: Alex Verkhovsky Date: Sun, 11 Jan 2026 06:17:25 -0800 Subject: [PATCH] fix: align reader_type parameter naming across editorial tasks Prose task was using 'target_audience' for the humans/llm optimization flag while structure task correctly separates 'target_audience' (who reads) from 'reader_type' (optimization mode). Aligns to reader_type. Co-Authored-By: Claude Opus 4.5 --- src/core/tasks/editorial-review-prose.xml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/core/tasks/editorial-review-prose.xml b/src/core/tasks/editorial-review-prose.xml index 50716437..f6714b43 100644 --- a/src/core/tasks/editorial-review-prose.xml +++ b/src/core/tasks/editorial-review-prose.xml @@ -7,7 +7,7 @@ - + @@ -39,8 +39,8 @@ Check if content is empty or contains fewer than 3 words HALT with error: "Content too short for editorial review (minimum 3 words required)" - Validate target_audience is "humans" or "llm" (or not provided, defaulting to "humans") - HALT with error: "Invalid target_audience. Must be 'humans' or 'llm'" + Validate reader_type is "humans" or "llm" (or not provided, defaulting to "humans") + HALT with error: "Invalid reader_type. Must be 'humans' or 'llm'" Identify content type (markdown, plain text, XML with text) Note any code blocks, frontmatter, or structural markup to skip @@ -48,9 +48,9 @@ Analyze the style, tone, and voice of the input text Note any intentional stylistic choices to preserve (informal tone, technical jargon, rhetorical patterns) - Calibrate review approach based on target_audience parameter - Prioritize: unambiguous references, consistent terminology, explicit structure, no hedging - Prioritize: clarity, flow, readability, natural progression + Calibrate review approach based on reader_type parameter + Prioritize: unambiguous references, consistent terminology, explicit structure, no hedging + Prioritize: clarity, flow, readability, natural progression @@ -84,7 +84,7 @@ HALT with error if content is empty or fewer than 3 words - HALT with error if target_audience is not "humans" or "llm" + HALT with error if reader_type is not "humans" or "llm" If no issues found after thorough review, output "No editorial issues identified" (this is valid completion, not an error)