6 Commits

Author SHA1 Message Date
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
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
240cb60646 Sprint 81: update templates/chapter_production.yml 2026-04-17 20:37:30 +00:00