feat(marketing): add product gate guard to campaign_review

Skip review if project description has no ASIN (book not yet published).
CLM projects created by kdp_publish always include ASIN in the goal.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
2026-05-01 13:45:30 +00:00
parent 1f48353bab
commit fd36fe95d1

View File

@@ -13,6 +13,22 @@ sections:
- message - message
- instructions - instructions
steps: steps:
# Guard: only run campaign reviews for projects with a live published book.
# CLM projects created by kdp_publish always have "ASIN:" in the project goal.
# Projects created prematurely (no published book yet) will not have an ASIN.
- type: think
max_tokens: 30
output_key: product_gate
hint: |
Read this project description: {project.description}
If it contains the text "ASIN:" followed by any value, output exactly: PUBLISHED
Otherwise output exactly: NO_PRODUCT
- type: branch
condition: "{product_gate} == NO_PRODUCT"
target: skip_no_product
- type: tool - type: tool
capability: Tool_WebSearcher capability: Tool_WebSearcher
optional: true optional: true
@@ -102,6 +118,13 @@ steps:
- type: close - type: close
rag_update: true rag_update: true
- type: label
name: skip_no_product
- type: close
rag_update: false
adjudication: adjudication:
enabled: true enabled: true
pass_threshold: 60 pass_threshold: 60