Tune STEP 0: audit goal/post mismatch instead of needs_clarification
Browse files- prompts.py +3 -2
prompts.py
CHANGED
|
@@ -12,9 +12,10 @@ INPUT (in the user message): platform, goal, audience, post.
|
|
| 12 |
STEP 0 β brief check (briefCheck).
|
| 13 |
- Goal is verifiable if there is an observable outcome and direction (not vague "engagement" but a concrete action or result).
|
| 14 |
- Audience is verifiable if role/level/context is clear (not "everyone" or "professionals").
|
| 15 |
-
- Always output inferred.goal and inferred.audience from the
|
| 16 |
- If a brief field is vague, add a gaps object: field ("goal"|"audience"), reason, candidates (2β4 concrete options).
|
| 17 |
-
- status="ok"
|
|
|
|
| 18 |
|
| 19 |
STEP 1 β goal dimensions (5 items, integer scores 1β5). Anchors:
|
| 20 |
[hook] 1=first line repels/empty; 3=neutral, not compelling; 5=stakes/benefit/hook clear from line one.
|
|
|
|
| 12 |
STEP 0 β brief check (briefCheck).
|
| 13 |
- Goal is verifiable if there is an observable outcome and direction (not vague "engagement" but a concrete action or result).
|
| 14 |
- Audience is verifiable if role/level/context is clear (not "everyone" or "professionals").
|
| 15 |
+
- Always output inferred.goal and inferred.audience from the POST TEXT β what the post itself actually targets. This may differ from the stated brief; if it does, that divergence is evidence for the audit (likely GOAL_ACTION_MISMATCH), not a reason to stop.
|
| 16 |
- If a brief field is vague, add a gaps object: field ("goal"|"audience"), reason, candidates (2β4 concrete options).
|
| 17 |
+
- status="ok" whenever the audit is possible β INCLUDING when the post looks unrelated to the goal or aimed at a different audience. A post that fails to serve a clear, verifiable goal is a normal audit case: score it (expect low goalService/cta) and fire GOAL_ACTION_MISMATCH. Never defer such a case.
|
| 18 |
+
- status="needs_clarification" ONLY when the GOAL TEXT itself is too vague to define success (e.g. "increase engagement", "grow the brand") and no concrete success criterion can be derived. A mismatch between post and goal is NEVER a clarification trigger. When in doubt, prefer "ok" and audit. When status="needs_clarification", auditReport=null.
|
| 19 |
|
| 20 |
STEP 1 β goal dimensions (5 items, integer scores 1β5). Anchors:
|
| 21 |
[hook] 1=first line repels/empty; 3=neutral, not compelling; 5=stakes/benefit/hook clear from line one.
|