chapter_roundtable.yml: - Reduce max_iterations 9 → 5 (3 rounds of 3 editors is enough; 9 was burning credits in a retry loop after credit exhaustion) - Add explicit 'Once any participant outputs CONSENSUS REACHED, the debate is over' — prevents continuation into wasted rounds planning.yml: - Add ANTI-HALLUCINATION RULE FOR AGENTS block: explicitly names the known ghost agents (Worldbuilder, Prose Engine, Plot Architect, etc.) and forbids their use; maps task types to canonical CLP agents so planning LLM has unambiguous fallback assignments Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
99 lines
2.9 KiB
YAML
99 lines
2.9 KiB
YAML
name: chapter_roundtable
|
||
description: >
|
||
Editorial roundtable — available editors debate the chapter in 2–3 structured rounds.
|
||
Each round, each participant responds to the others' most recent positions.
|
||
The output is a consensus critique (or documented disagreement) for the polish step.
|
||
|
||
debug: true
|
||
|
||
participant_prompt:
|
||
- "= identity.md"
|
||
|
||
iteration_limit: 3
|
||
convergence_signal: "CONSENSUS REACHED"
|
||
|
||
sections:
|
||
- agent
|
||
- project
|
||
- participants
|
||
- participants_prompt
|
||
- message
|
||
- instructions
|
||
|
||
steps:
|
||
- type: think
|
||
rotate_participants: true
|
||
loop:
|
||
max_iterations: 5
|
||
hint: |
|
||
You are {agent.name}, an editor in the editorial roundtable for this chapter.
|
||
{agent.identity}
|
||
|
||
CHAPTER REFERENCE: {chapter_ref}
|
||
GENRE: {genre_name} | AUDIENCE: {genre_audience}
|
||
|
||
---
|
||
CHAPTER TEXT:
|
||
{chapter_text}
|
||
---
|
||
|
||
Round {task.iteration} of the editorial debate.
|
||
|
||
Read the chapter carefully from your editorial perspective.
|
||
React to what other editors have written in prior rounds above.
|
||
Where you agree, say so clearly. Where you disagree, argue your position
|
||
with evidence from the text. If you have changed your mind, say so.
|
||
|
||
Cover the areas most relevant to your role:
|
||
- Story structure and pacing
|
||
- Character voice and consistency
|
||
- Line-level clarity and prose quality
|
||
- Continuity with prior chapters and world rules
|
||
|
||
If the group has reached sufficient consensus for the polish step,
|
||
end your response with this EXACT block — no variations, no paraphrasing:
|
||
|
||
CONSENSUS REACHED
|
||
CRITIQUE: [One concise paragraph summarizing the full editorial consensus]
|
||
KEY CHANGES:
|
||
- [Specific change 1]
|
||
- [Specific change 2]
|
||
- [Specific change 3 if needed]
|
||
VERDICT: [PASS / REVISE / REWRITE]
|
||
|
||
Once any participant outputs CONSENSUS REACHED, the debate is over.
|
||
Do NOT continue to another round after CONSENSUS REACHED has been written.
|
||
|
||
- type: package
|
||
schema:
|
||
consensus_critique: string
|
||
chapter_verdict: string
|
||
key_changes: string
|
||
spawn:
|
||
- task_type: chapter_polish
|
||
task_name: "Polish: {chapter_ref}"
|
||
agent_name: Iris
|
||
context:
|
||
chapter_text: "{chapter_text}"
|
||
consensus_critique: "{consensus_critique}"
|
||
key_changes: "{key_changes}"
|
||
chapter_verdict: "{chapter_verdict}"
|
||
genre_name: "{genre_name}"
|
||
genre_audience: "{genre_audience}"
|
||
chapter_ref: "{chapter_ref}"
|
||
|
||
adjudication:
|
||
enabled: true
|
||
pass_threshold: 60
|
||
deliverable_type: coordination
|
||
criteria:
|
||
completeness:
|
||
weight: 40
|
||
description: "All viewpoints and concerns addressed"
|
||
consensus_clarity:
|
||
weight: 35
|
||
description: "Clear outcome or decision documented"
|
||
actionability:
|
||
weight: 25
|
||
description: "Next steps are concrete and assignable"
|