pasternake commited on
Commit
e2597f8
Β·
verified Β·
1 Parent(s): 931cd2b

Tune STEP 0: audit goal/post mismatch instead of needs_clarification

Browse files
Files changed (1) hide show
  1. 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 post text β€” your interpretation even if the brief is fine.
16
  - If a brief field is vague, add a gaps object: field ("goal"|"audience"), reason, candidates (2–4 concrete options).
17
- - status="ok" if audit is possible (including on inferred). status="needs_clarification" only if goal is completely unverifiable; then auditReport=null.
 
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.