fix: clm dispatch gate -- use project_slug=none to skip, not content=none

This commit is contained in:
2026-04-26 16:45:33 +00:00
parent 69d2c2c00a
commit 31210d7f18

View File

@@ -102,7 +102,7 @@ steps:
Keep it actionable. David is one person -- prioritize ruthlessly. Keep it actionable. David is one person -- prioritize ruthlessly.
PROPOSAL GATE ASSESSMENT: PROPOSAL GATE ASSESSMENT:
Check the strategic_log and last cycle entry below. Has CLO (or whichever gap-company) Check the strategic_log and last cycle entry. Has CLO (or whichever gap-company)
been proposed in the last 30 days? If yes, state PROPOSAL_NEEDED: none. been proposed in the last 30 days? If yes, state PROPOSAL_NEEDED: none.
Only propose if: gap is materially blocking revenue AND cannot be solved by Only propose if: gap is materially blocking revenue AND cannot be solved by
existing resources AND no proposal for this company appears in the log. existing resources AND no proposal for this company appears in the log.
@@ -110,8 +110,10 @@ steps:
MARKETING DISPATCH ASSESSMENT: MARKETING DISPATCH ASSESSMENT:
A book "needs marketing" if crimson_leaf_marketing shows no active campaign for it. A book "needs marketing" if crimson_leaf_marketing shows no active campaign for it.
Only dispatch to CLM for books that EXIST in Crimson Leaf Publishing (Cypress Bend,
Crimson Vows, or The Binding Thread). Do NOT dispatch for hallucinated book titles.
At the end of your brief, include: At the end of your brief, include:
CLM_DISPATCH: <book-project-slug if a completed book needs CLM campaign, or "none"> CLM_DISPATCH: <book-project-slug if a real completed book needs CLM campaign, or "none">
=== STRATEGIC LOG === === STRATEGIC LOG ===
{strategic_log_data} {strategic_log_data}
@@ -166,18 +168,24 @@ steps:
output_key: clm_dispatch_slug output_key: clm_dispatch_slug
hint: | hint: |
Read the CLM_DISPATCH line from the strategic brief above. Read the CLM_DISPATCH line from the strategic brief above.
Extract the value after "CLM_DISPATCH: " and output it exactly, nothing else. Map the book slug to the CLM project slug as follows:
Valid values: cypress-bend, crimson-vows, binding-thread, or none. cypress-bend -> book-marketing-agency
Output ONLY the value. No explanation. crimson-vows -> book-marketing-agency
binding-thread -> book-marketing-agency
none -> none
Output ONLY the mapped slug. No explanation. No extra text.
- type: think - type: think
max_tokens: 600 max_tokens: 600
output_key: clm_dispatch_message output_key: clm_dispatch_message
hint: | hint: |
If {clm_dispatch_slug} is "none", output exactly: none Read the CLM_DISPATCH line from the strategic brief above.
The book identified is one of: cypress-bend, crimson-vows, binding-thread, or none.
Otherwise write a marketing campaign request for that book. Include: If the book is "none" or {clm_dispatch_slug} is "none", output exactly: none
- Book title, genre, audience
Otherwise write a marketing campaign request. Include:
- Book title and genre (use the CLM_DISPATCH value to identify it)
- The manuscript is complete in Crimson Leaf Publishing Gitea repo - The manuscript is complete in Crimson Leaf Publishing Gitea repo
- Request: full marketing campaign (strategy, social, email, press release, ad copy) - Request: full marketing campaign (strategy, social, email, press release, ad copy)
- Urgency: book has no active campaign and needs revenue generation - Urgency: book has no active campaign and needs revenue generation
@@ -194,7 +202,7 @@ steps:
optional: true optional: true
params: params:
company_slug: "crimson_leaf_marketing" company_slug: "crimson_leaf_marketing"
project_slug: "book-marketing-agency" project_slug: "{clm_dispatch_slug}"
task_type: "marketing_campaign" task_type: "marketing_campaign"
content: "{clm_dispatch_message}" content: "{clm_dispatch_message}"