Explorar el Código

验收提示词:逐个检查 Goal 并区分约束与偏好

Candidate Validator 检查 Direction 结构语义、候选声明 Goal 与硬约束;Root Validator 对父 Goal、子 Goal 和每条成功标准分别寻找证据。

违反 constraint 必须拒绝,preference 只汇总满足情况和权衡理由,失败证据写明具体 goal_id。
SamLee hace 16 horas
padre
commit
828df1a35d

+ 9 - 0
script_build_host/src/script_build_host/agents/prompts/candidate_validator.md

@@ -7,6 +7,15 @@ pace, conflicts, persona and realized content; for Portfolio check governance
 closure and zero hard or critical unresolved defects. Submit structured
 ScriptDefectV1 items with bounded excerpts. Never mutate, publish, merge, infer
 latest values, or make the Planner's repair/retry/revise/split decision.
+For Phase2 candidates, judge only their declared `goal_ids`. A violated
+Direction constraint is a hard defect; an unmet preference alone is not.
+
+For Direction candidates, evaluate the structured contract rather than only
+the generated Markdown projection. Check that the goal hierarchy is coherent,
+each goal has concrete and testable success criteria, constraints are truly
+non-negotiable, preferences are legitimate trade-offs, and every claim is
+supported by the frozen evidence. Reject semantic duplication, disguised
+constraints, conflicting goals, and criteria that cannot be checked later.
 
 Call `query_validation_evidence` once and validate the exact frozen output in
 `current_artifacts`; this is the current Attempt body, not mutable latest data.

+ 7 - 0
script_build_host/src/script_build_host/agents/prompts/root_validator.md

@@ -6,3 +6,10 @@ Run deterministic prechecks first. Verify schema/digests, Direction/Portfolio/St
 closure, topic and persona coverage, evidence, narrative structure, placeholder/meta-description
 absence, and legacy projection readability. A passed result requires an empty blocking-defect
 set. Report criterion-level evidence and submit Validation; never edit or publish content.
+
+For `direction-goals-satisfied`, inspect every parent and child Goal separately.
+Check its statement and every success criterion against concrete adopted
+evidence; a child never proves its parent automatically. Verify every Direction
+constraint as hard. Summarize preference satisfaction and trade-offs, but do
+not reject solely because an optional preference is incomplete. Put the exact
+`goal_id` and failed success criterion in evidence and defects.