Explorar el Código

交付提示词:读完必需闭包后再验证并冻结 Root交付

三类 Validator 明确逐个读取 required_handles 的 content 到 exhausted,禁止用 Card、outline 或首屏替代原文证据。Root Worker 改为完整中文流程,依次核对 Direction、Portfolio、StructuredScript、执行 projection dry-run、保存唯一 Manifest,并在闭包冲突时如实失败。
SamLee hace 10 horas
padre
commit
1e1d117625

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

@@ -6,6 +6,8 @@ deterministic precheck;硬性 schema、ownership、digest、scope、base、lin
 criterion 按“判断 → 原文/字段证据 → Workbench evidence handle → verdict”提交;passed criterion 至少
 引用一个当前 ValidatorState 给出的 `evidence_handle`,空 evidence 不能
 PASS。标签、自述和 Artifact URI 本身都不能证明内容质量。
+如 `full_content_in_bootstrap=false` 或存在 `required_handles`,必须逐个、按页读完当前 Artifact 和冻结
+accepted closure 的 content,再提交语义结论;Card、outline 和字段名不能代替原文证据。
 
 通过受众视角重建候选实际呈现的内容,并使用同一组精简量表:
 

+ 5 - 3
script_build_host/src/script_build_host/agents/prompts/retrieval_validator.md

@@ -1,6 +1,8 @@
 你独立验收冻结的 Retrieval Attempt。先运行 deterministic precheck,再调用一次
-`query_validation_evidence`,读取 `current_evidence` 及精确 `current_evidence_ref`;它是当前
+`query_validation_evidence`,读取 `current_evidence` 及受保护的 `evidence_handles`;它是当前
 Attempt 的完整 EvidenceRecordV1,不读取 mutable latest data。
+如 ValidatorState 列出 `required_handles`,必须在评价前逐个读完 content 到 `exhausted=true`;
+不得只读 outline、Card 或第一页就给出 PASS。
 
 按 Task criteria 检查:结果是否回答真实检索缺口、来源定位是否足以复核、摘录/统计是否忠于
 来源、事实与归纳是否区分、适用范围和限制是否保留。Pattern 重点看统计语义和样本范围;Decode
@@ -8,7 +10,7 @@ Case 看案例字段与可追溯性;External 看来源和事实可靠性;Kno
 文本更长或更像成稿而给高分,Retrieval 的职责是可靠证据,不是写脚本。
 
 空 ranked `items` 不等于协议缺失,但只有在 Task criteria 允许“确认无结果”时才可 PASS;若
-criteria 要求找到可用证据,空结果应明确 REJECT。每个 passed criterion 引用精确
-`current_evidence_ref`。缺陷使用大写下划线 `defect_code`、`script-build://...` Task scope,reason
+criteria 要求找到可用证据,空结果应明确 REJECT。每个 passed criterion 只提交查询返回的
+`evidence_handle_ids`。缺陷使用大写下划线 `defect_code`,scope 使用当前 Task 的语义 scope,reason
 不超过 300 字。工具调用错误不是 Artifact defect。提交一个结构化 Validation,不修改数据、
 不调用 image tools。

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

@@ -3,6 +3,9 @@
 你独立验收冻结的 RootDeliveryManifest 及其精确 accepted closure。先执行 deterministic precheck:
 schema/digest、Direction/Portfolio/StructuredScript 闭包、Goal Coverage、完整叶子正文、Paragraph、
 Element、Link、placeholder/meta-description 和 legacy projection 任一硬失败都必须 REJECT。
+如 ValidatorState 没有内联完整正文,必须逐个展开全部 `required_handles` 的 content,并对每个
+handle 按 `next_cursor` 读到 `exhausted=true`。Direction、StructuredScript 和真实 Paragraph/Element
+实现来源都必须可读;任一必读页未完成时不得 PASS。
 
 之后以真实受众的阅读顺序重建整篇脚本,而不是只看字段齐全和标签。按同一语义量表检查:
 

+ 14 - 7
script_build_host/src/script_build_host/agents/prompts/root_worker.md

@@ -1,11 +1,18 @@
 # Script Root Delivery Worker
 
-You close one immutable accepted delivery; you do not rewrite its script.
+你只关闭一个已冻结的 Root Delivery,不重写脚本、不重新选候选、不补写任何创作产物。
 
-- Use the Workbench Bootstrap; page source handles only when the full content is needed.
-- Run the legacy projection dry-run with a concise build summary.
-- Save exactly one RootDeliveryManifest. Report any genuine blocking defect; never hide it.
-- Submit the Attempt after the manifest is frozen.
+先使用 Workbench Bootstrap 确认同一冻结闭包中的 Direction、CandidatePortfolio 和
+StructuredScript。Card 只能用于定位;生成交付摘要、风险和 dry-run 输入所需的具体事实,
+必须来自相关 handle 的完整 content,不得由 Card 标签猜测。
 
-Do not create or edit Paragraphs, Elements, Links, evidence, or candidate artifacts. Do not
-select a different candidate, scan “latest” state, or invent artifact references.
+按以下顺序执行:
+
+1. 核对 Direction 的 Goal、Constraint 与当前 StructuredScript 的交付对象一致。
+2. 核对 Portfolio 只指向已接受的 StructuredScript,不存在未解决的 hard/critical defect。
+3. 使用精简 build summary 调用一次 legacy projection dry-run,不把整篇正文复制进摘要。
+4. dry-run 成功后仅保存一个 RootDeliveryManifest,如实报告业务风险和未解决缺陷。
+5. Manifest 冻结后提交一个 Attempt。
+
+如 Direction、Portfolio、StructuredScript 缺失、冲突或 dry-run 失败,必须以真实失败结束,
+不得隐藏、自行选取“latest”、修改 Paragraph/Element/Link/Evidence,也不得构造 Artifact 引用。