Commit Graph

113 Commits

Author SHA1 Message Date
David Baity
4bc34a714a feat(sprint83a): title_conflict_check template + project_review dispatch + atlas agent
- Add templates/title_conflict_check.yml: Atlas's 2x WebSearch title conflict pipeline with CLEAR/CAUTION/CONFLICT verdict
- Add title_conflict_check dispatch to templates/project_review.yml (PLANNING phase gate)
- Add title_conflict_check to agents/atlas/agent.yml supported_templates

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-04-29 12:13:51 -04:00
David Baity
fd390c465f fix: decouple proposal gate from board debate; fix genesis.yml hardcoded models 2026-04-29 00:38:55 -04:00
David Baity
1bff66b674 fix: stop chapter_production from dispatching project_index mid-book
- Remove project_index dispatch from chapter_production.yml entirely.
  chapter_production should ONLY dispatch book_chapter. The project_index
  dispatch belongs to book_editorial (which already handles it correctly).
  This was the root cause of the CLM hallucination cascade:
    pulse_check -> project_review -> chapter_production -> project_index -> marketing_campaign (infinite loop)

- Add clm_dispatch_gate guard in project_index.yml. project_index now checks
  whether its task message is a real book-complete signal or a generic/none
  message. If gate is 'skip', clm_dispatch_content is 'none' and the enqueue
  call returns gracefully (optional: true). Only fires when triggered by
  book_editorial with a legitimate completion message.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-04-28 20:04:24 -04:00
4d501c5ad3 fix(chapter_production): enforce sequential polished ordering, detect pipeline gaps 2026-04-28 22:31:02 +00:00
5b7024cb8f fix: enforce sequential chapter depends_on chain in book_outline package step 2026-04-28 20:58:32 +00:00
c990034cc0 feat: add project_review template for pulse cascade 2026-04-28 19:49:54 +00:00
David Baity
6d251b558b fix: replace hardcoded channel_id with channel_name routing in all templates; add response_channel to cl_schedules.json 2026-04-28 09:05:50 -04:00
David Baity
3d29870a22 fix: chapter_production -> channel, add project_index dispatch on book completion 2026-04-28 08:47:55 -04:00
3a0f1253c7 Fix chapter_production: use correct polished file pattern (staging/polished/chapter-ch-XX.md) 2026-04-18 00:31:44 +00:00
David Baity
20bf338e82 sprint 81: fix chapter filename interpolation, chapter_polish deadlock, Loop 2 CLM dispatch, project.yml data
- book_chapter.yml: add mini-package step after SELF-CHECK to extract chapter_number/chapter_ref
  before document steps run. Without this every chapter was saved as Chapter_chapter-number_draft.md.
  Also add source_step to both document steps so they read from correct prior step.
- DocumentStepHandler.cs (C#): add source_step support (template change depends on this).
- chapter_roundtable.yml: remove broken depends_on from chapter_polish spawn that caused deadlock
  (Polish: {chapter_ref_prev} never exists for ch-01, blocking all polish tasks).
- project_index.yml: Loop 2 CLM dispatch -- when book is complete, enqueue marketing_campaign
  to crimson_leaf_marketing/book-marketing-agency.
- project.yml files: fill in name, goal, genre, lead_author for all 3 CLP projects.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-04-17 19:45:29 -04:00
240cb60646 Sprint 81: update templates/chapter_production.yml 2026-04-17 20:37:30 +00:00
e8bd420f4e Sprint 81: update templates/project_index.yml 2026-04-17 20:37:28 +00:00
b7e3439754 Sprint 81: update templates/chapter_roundtable.yml 2026-04-17 20:37:26 +00:00
David Baity
181a761d52 fix: add chapter_ref/chapter_number to package schema; drop requires block
- Package step schema now includes chapter_ref and chapter_number so the LLM
  extracts them from the task name even when context vars are missing.
- Previously removed requires: block was the only guard; now the package step
  itself self-heals by asking the LLM to derive these values.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-04-15 19:16:15 -04:00
David Baity
b850eb5338 fix: remove requires block from book_chapter -- context vars from package step are optional 2026-04-15 18:56:47 -04:00
David Baity
3163053f25 fix: make Tool_WebSearcher step optional for resilience 2026-04-15 18:18:20 -04:00
David Baity
c621c4a803 fix: genesis uses openai/gpt-4o-mini to avoid gemini-flash-preview timeout 2026-04-15 02:21:06 -04:00
David Baity
65f0b03ebf fix: remove misplaced debug:true from genesis.yml schema, use nova agent
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-04-15 00:45:41 -04:00
David Baity
9263e92283 Fix adjudication template resolution -- add adjudication.yml 2026-04-11 12:28:14 -04:00
18fcd02a36 fix: remove Unicode chars from template 2026-04-09 23:03:49 +00:00
d642481f0a fix: remove Unicode chars from template 2026-04-09 23:03:48 +00:00
83f5eddf16 fix: remove Unicode chars from template 2026-04-09 23:03:46 +00:00
3ec14c1cb5 fix: remove Unicode chars from template 2026-04-09 23:03:45 +00:00
1032e89deb fix: remove Unicode chars from template 2026-04-09 23:03:44 +00:00
23b486cfca fix: remove Unicode chars from template 2026-04-09 23:03:43 +00:00
3cdbd4768d fix: remove Unicode chars from template 2026-04-09 23:03:41 +00:00
bbf47f1085 fix: remove Unicode chars from template 2026-04-09 23:03:40 +00:00
4b1c637939 fix: remove Unicode chars from template 2026-04-09 23:03:39 +00:00
1b8cb6684e fix: remove Unicode chars from template 2026-04-09 23:03:37 +00:00
faa956befd fix: remove Unicode chars from template 2026-04-09 23:03:36 +00:00
1b6b6c0397 fix: remove Unicode chars from template 2026-04-09 23:03:34 +00:00
c6671cb1fd fix: remove Unicode chars from template 2026-04-09 23:03:33 +00:00
3394595572 fix: remove Unicode chars from template 2026-04-09 23:03:32 +00:00
18c9d13e69 fix: remove Unicode chars from template 2026-04-09 23:03:31 +00:00
a56394a6d3 fix: remove Unicode chars from template 2026-04-09 23:03:30 +00:00
aae9370c61 fix: remove Unicode chars from template 2026-04-09 23:03:29 +00:00
e110f598db fix: remove Unicode chars from template 2026-04-09 23:03:28 +00:00
e15130d54b fix: remove Unicode chars from template 2026-04-09 23:03:28 +00:00
1d76880b29 fix: remove Unicode chars from template 2026-04-09 23:03:26 +00:00
314bb6565a fix: remove Unicode chars from template 2026-04-09 23:03:25 +00:00
39a14afa75 fix: remove Unicode chars from template 2026-04-09 23:03:23 +00:00
8a288c957c fix: remove Unicode chars from template 2026-04-09 23:03:22 +00:00
David Baity
20112eac6a feat: add debug:true to all templates; add LLM_LOG_DIR config 2026-04-09 14:38:11 -04:00
David Baity
99c4718baf updating 2026-04-06 21:51:34 -04:00
David Baity
4a7318bc53 Sprint 66g: template architecture -- company templates only, starter_pack, rename to lower_case_with_underscores
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-04-01 22:43:31 -04:00
David Baity
9c362b92f8 Strengthen chapter review quality gates
- chapter_review.yml: mandatory PROSE EVIDENCE section (3-5 verbatim quotes)
- CHARACTER VOICE AUDIT with per-constraint checks and violation quoting
- Score anchors (95-100/85-94/70-84/<70) to break rubber-stamp clustering
- MUST-FIX items require ORIGINAL quote + PROBLEM + FIX rewrite
- Adjudication: prose_evidence(35) specificity(30) voice_audit(20) coverage(15)
- chapter_roundtable.yml: require quoted evidence, add character_profiles check
2026-04-01 22:33:55 -04:00
David Baity
682454bc7b refactor: remove genre-specific chapter templates; all genres use book_chapter 2026-04-01 17:58:10 -04:00
David Baity
1675b87268 outline: populate bible/outline.md for crimson-vows and binding-thread 2026-04-01 16:53:28 -04:00
David Baity
15d8ac44d2 Reader Knows Rule: truncate outline at chapter N, character state from prev chapter
- book_chapter.yml PASS 0: Reader Knows Rule box, outline truncated at chapter_number_next,
  character state priority chain (RAG first, then prev-chapter traits, not final-book state)
- drafting.yml PASS 0: same rule applied, voice-only character profiles
- chapter_pass0_bible.yml (included by scifi/ya/romance/cozy genre templates): same fix
  All three reference {chapter_number_prev}, {chapter_number_next}, {chapter_ref_prev}
  which are now injected by OutlineSyncService.CreateChapterTaskAsync

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-03-31 17:34:12 -04:00
David Baity
1836ffcd75 Sprint 61k — Template & Pipeline Correctness Audit
- Fix {task.prompt} → {task.message} in all marketing templates (6 files)
- Add author_bio.yml and ad_copy.yml templates for crimson_leaf_marketing
- Add author_bio task_type to marketing_campaign.yml package schema
- Fix book_outline.yml: remove {prose_style} literal, add anti-truncation rule, fix scifi routing
- Fix InputFromUser.yml: echo full operator message in think output
- Fix planning.yml: add agent:Nova top-level field to lock chair
- Fix publishing genesis.yml: fix {task.message} variable and hardcode Nova title
- Add professional_title to AgentContext and build_state_map
- Increase _DEFAULT_MAX_RAG_CHARS from 4000 to 8000
- Fix adj_pass_rate=0.0: thread adjudication criteria through C# and Python

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-03-30 10:35:51 -04:00