Commit Graph

69 Commits

Author SHA1 Message Date
David Baity
f4b7a04a27 fix: roundtable uses all three editors as participants
Replace agent_name: Devon with agents: [Devon, Lane, Cora] so the
chapter_roundtable task has all three editors rotating in the debate.
Addresses user feedback that roundtable should not be a specific
agent - everyone in the editorial team should be drafted.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-03-12 04:31:04 -04:00
David Baity
c180e6ea67 fix: use single-brace {agent_slug} in chapter_review filename
Double-brace {{agent_slug}} left outer braces in filename even after
substitution, causing all 3 reviewers (Devon/Lane/Cora) to write to
the same file review-ch-XX-{agent-slug}.md overwriting each other.
Single-brace now correctly produces review-ch-XX-devon.md etc.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-03-12 04:17:46 -04:00
David Baity
66e4e4f902 fix(planning): add BOARDROOM and NO-RE-PIPELINE rules
- BOARDROOM RULE: when request is a strategic debate/deliberation, create
  ONE task_type: boardroom for Selene, NOT content pipeline tasks
- NO-RE-PIPELINE RULE: if project already has book_research/outline/chapters
  in history, do NOT restart the pipeline mid-flight

Fixes Issue where planning incorrectly spawned a full research pipeline
when asked for a boardroom session, creating a 3rd set of Hollow Crown chapters.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-03-12 03:29:43 -04:00
David Baity
deeb20b91a Disable adjudication on book_outline to prevent duplicate chapter spawning
Root cause: AR retries book_outline when score < 60; each retry's package step
creates a new batch of chapters. InProgress chapters can't be deleted on rejection
so multiple sets accumulate. The boardroom deliberation (4 rounds) is the quality
gate — no retry needed at the outline level.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-03-12 03:17:17 -04:00
David Baity
ccffc65443 Fix duplicate chapter bug: strengthen synthesis/package step to prevent multi-variant chapter inflation
- Synthesis step: explicit rule against presenting alternatives or 'Option A/B' variants
- Package step: explicit deduplication — count only '- Chapter N:' entries in PART 2 only
- Clear warning: producing more actions than chapters = error, recount

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-03-12 03:13:03 -04:00
David Baity
6c39789f94 Fix: add agent_name to roundtable and polish spawns
- book_chapter.yml: spawn Roundtable task with agent_name: Devon
  (dispatcher requires at least one agent; Devon chairs the roundtable
  while rotate_participants still drafts all available editors)
- chapter_roundtable.yml: spawn Polish task with agent_name: Iris
  (Iris is the designated chapter polish author)

Previously: dispatch_create_task_skipped reason=no_agent for both tasks.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-03-12 02:54:12 -04:00
David Baity
25f25da192 Fix chapter_polish: remove empty devon/lane/cora_final context refs
CLP's chapter_roundtable doesn't extract individual editor finals
(it's roster-driven, not hardcoded to Devon/Lane/Cora).
Removed the three empty context references from the polish step hint.
consensus_critique already summarizes all editorial positions.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-03-12 02:41:25 -04:00
David Baity
92caebc339 fix(book_outline): spawn EXACTLY one task per chapter, not minimum N
LLM was creating 20 tasks (2x outlines worth) because the hint said
'minimum {chapter_count|10} chapters'. Changed to explicit 'count the
chapters in the outline and create that exact number of actions'.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-03-12 02:25:52 -04:00
David Baity
df62a19c3f fix(book-pipeline): inference hints + LLM-filled context vars + roster roundtable
- book_research.yml: add inference hint when genre_name/genre_audience/research_focus are empty
- book_outline.yml: add inference hint for genre/audience; change package schema to ask LLM
  to FILL genre_name/genre_audience/prose_style/chapter_target_words from the outline text
  (was using {template_vars} which stay empty unless planning sets them)
- devon/agent.yml: add chapter_roundtable to supported_templates
- lane/agent.yml: add chapter_roundtable to supported_templates
  (all three editors now participate in roundtable — roster-driven, not hardcoded)

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-03-12 02:16:18 -04:00
David Baity
dd00c07a90 fix(ai_article_research): use type: spawn instead of package/IntakeResponse
IntakeResponse packet type is for intake routing only, not child task creation.
Replace with type: spawn (same pattern as book_research.yml) to correctly
spawn the ai_article_plan task after research completes.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-03-12 02:05:47 -04:00
David Baity
06faeb0c41 fix(short_story): remove requires block, infer genre/audience/style from task description
Templates spawned from genesis only receive a description, not pre-set
context variables. Removing requires: prevents step-0 failures when the
story brief is rich enough for Iris to infer genre/audience/prose style.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-03-12 01:58:29 -04:00
David Baity
c43e931bdb fix(planning): replace hardcoded generic task types with roster-driven selection
The serialization think step (step 2) had a hardcoded list of generic task types
(research_plus, draft, review, polish, etc.) — these NEVER matched CLP templates.
This is the root cause of auto-hired agents and quick-task fallbacks for all
book/story/article pipelines.

Replaced with:
- Instruction to use ONLY task types from TEAM ROSTER supported_templates
- Explicit sequencing rules for book, article, blog, recipe, short story pipelines
- Book pipeline: book_research first, cascade handles the rest
- Article pipeline: ai_article_research first
- Blog: blog_research per post
- Recipe: recipe_collection_plan
- Short story: short_story

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-03-12 01:54:29 -04:00
David Baity
d78d99304c fix(genesis): constrain to ONE entry-point task, explicit pipeline routing
Genesis must spawn exactly ONE task (book_research, short_story,
recipe_collection_plan, ai_article_research, blog_research, or planning).
The cascade templates handle everything downstream automatically.

This prevents Nova from skipping the book_research→book_outline pipeline
and spawning chapters/editorial tasks without proper context.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-03-12 01:49:04 -04:00
David Baity
f1e010d08d fix(clp): add genesis template, fix roster-driven task types
- templates/genesis.yml: copied from global seed, fixed to use
  roster-driven task types (no hardcoded generic type list)
- agents/nova/agent.yml: added genesis to supported_templates

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-03-12 01:37:48 -04:00
David Baity
1f811e98e1 fix(clp): genericise templates — no hardcoded agents/companies/task-types
- planning.yml: roster-driven task types, no hardcoded agent names or generic types
- chapter_roundtable.yml: removed fixed [Devon,Lane,Cora] participant list, any editor can join
- book_chapter.yml: removed hardcoded agents from roundtable spawn
- book_research.yml: removed agent: Atlas from book_outline spawn (Bouncer routes by type)
- ai_article_research.yml: removed agent_name: Atlas from plan spawn
- book_editorial.yml: removed Shadow Heir/Elara/Kai/Alpha Publishing/Wattpad hardcoding
- project_index.yml: removed Wattpad reference
- ai_article_write.yml: fixed adjudication criteria (article, not fiction chapter)
- chapter_review.yml: reply→document so reviews are committed and accessible

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-03-12 01:34:36 -04:00
David Baity
d90eceda0c fix(clp): route intake to Nova (CEO), clean task type overlaps
- InputFromUser.yml: route planning tasks to Nova (not Selene)
- Nova: restored planning to supported_templates (is CEO)
- Selene: removed planning (now boardroom/quick/hire_agent only)
- Atlas: removed planning+quick, added blog_research
- Nova: removed quick (Selene handles quick)

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-03-12 01:27:28 -04:00
David Baity
50749f8e2b feat(clp): build full CLP agent roster, templates, and skills library
- 8 company agents: Lyra (intake), Selene (CEO), Atlas (research),
  Nova (publishing ops), Iris (author), Devon (dev editor),
  Lane (line editor), Cora (continuity editor)
- 19 additional templates (20 total): blog, recipe, short_story,
  book pipeline, ai_article, planning, boardroom, quick, project_index
- 5 skill guides: YA, Romance, SciFi, Blog, Recipe writing
- Rewritten charter and business plan

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-03-12 01:14:51 -04:00
PAE
d6b2c94135 Provision intake template: InputFromUser for crimson_leaf_publishing 2026-03-12 04:08:34 +00:00
5ae606adb7 Bootstrap: scaffold templates/ 2026-03-12 04:08:12 +00:00