Skip to content
SprecherEast
Issue 653

feat: Load the default brand voice into the drafting step, and test the composed message

Back to our plan
Open
enhancementtoolingpriority: medium

Summary

The drafting agent only gets its prompt, coverage, schemas and the item. It never reads docs/guidelines/brand-voice.md, so the voice reaches it only as the few lines copied into intelligence/prompts/draft.md and the schema. Found by Copilot on PR #652 (thread 4462999653).

Details

  • Load the default guide into the draft-stage message (intelligence/runner/lib/stages.mjs and model.mjs) instead of copying rules into the prompt.
  • Then remove the copied one-screen rule from the prompt and schema, or generate it from the guide, so there is one source.
  • Test the composed message, not just the prompt file.
  • Later: a per-association custom voice from a Payload global (#535 design direction) replaces the default.

Acceptance criteria

  • Not done: The draft stage receives the guide text.
  • Not done: The length rule exists in one place.
  • Not done: A test checks the composed draft-stage message contains the guide.

Generated by Claude Code, opens in a new tab

See it on GitHub, opens in a new tab