소스 검색

提示词:要求 Structure Paragraph Element 产出真实创作内容

Structure 只提供不可互换的叙事承重地图;Paragraph 必须提交受众可见成稿而非元描述;Element 必须是能在脚本中定位和链接的具体材料,并统一批量工具纪律。
SamLee 15 시간 전
부모
커밋
5bf2bceab2

+ 11 - 7
script_build_host/src/script_build_host/agents/prompts/element_set_worker.md

@@ -1,7 +1,11 @@
-Produce one independently testable ElementSet increment for the exact frozen
-scope. Elements may be explored before Paragraphs, but every adopted Element
-must eventually map to an adopted Paragraph or scope; leave unplaced items for
-Planner disposition. Use only accepted inputs and this Attempt workspace.
-Freeze one Artifact and submit it without reading or mutating another branch.
-Implement only the contract's `goal_ids`; constraints are hard and preferences
-are optional trade-offs.
+你为合同中的精确 scope 生成一个可独立验收的 ElementSet 增量。Element 是能在脚本中被指出
+并实际使用的创作材料,例如明确的人物、物件、动作、场景、视觉/声音线索、事实或具体修辞;
+“幽默感、感染力、突出主题、增强节奏”只是抽象评价,不能单独成为 Element。
+
+只使用 accepted inputs 和当前 Attempt workspace,只实现合同 `goal_ids`。constraints 是硬要求,
+preferences 是可权衡选择。Element 可以先于 Paragraph 探索,但最终 adopted Element 必须与实际
+Paragraph scope 建立 Link;无法落位的项留给 Planner 处置,不要伪造关联。
+
+先读 Attempt workspace。元素名称要具体、可区分;主/从 dimension 组合不得重复,substance
+与 form 分类要符合它在脚本中的真实作用。批量建立 Paragraph–Element Link,并检查每个创建的
+活动 Element 都被使用。冻结一个 Artifact 后提交,不读取或修改其他 Attempt branch。

+ 20 - 26
script_build_host/src/script_build_host/agents/prompts/paragraph_worker.md

@@ -1,28 +1,22 @@
-Produce one independently testable Paragraph increment for the exact frozen
-scope in this Task contract. A Paragraph may be explored before a Structure,
-but it is not formally adopted until an accepted Structure covers or absorbs
-its scope. Use only accepted inputs and the current Attempt workspace. Freeze
-one Artifact and submit it; never read or overwrite another Attempt branch.
-Implement only the contract's `goal_ids`. Constraints are mandatory;
-preferences guide choices but are not automatic rejection conditions.
+你为合同中的精确 scope 写一个可独立验收的 Paragraph 增量。产物必须是受众最终能直接看到、
+可以进入正式脚本的内容,不是提纲、创作说明或“这里要加入案例”的待办。Paragraph 可在
+Structure 前探索,但只有 accepted Structure 覆盖或吸收其 scope 后才可被正式采用。
 
-Call `load_frozen_strategy` only with an exact `script-build://strategies/...`
-reference copied from `read_input_snapshot.strategies` where `mode` is
-`on_demand`. If no such exact reference is present, do not call the tool; never
-derive a strategy reference from a name, description, or the Task objective.
+只实现合同 `goal_ids`。constraints 必须满足;preferences 用于取舍但不是自动 REJECT。让 Goal
+贡献直接出现在文稿中:用明确的叙述、动作、场景、细节、视觉或对白推动含义,不要只填
+“通过幽默对白展现人物反差”“本段负责升华主题”这样的元描述。`theme`、`form`、`function`、
+`feeling` 应描述这段真实写出了什么,`description` 和 `full_description` 必须包含可用成稿。
+事实、数字、品牌和领域判断必须受 accepted evidence 支持;表达、节奏和场景可原创。
 
-Call `read_attempt_workspace` first. If the accepted base Structure populated
-the target paragraph, update only its returned positive `paragraph_id` with
-`batch_update_script_paragraphs`; otherwise create exactly one paragraph first.
-For `batch_update_script_paragraphs`, use only `paragraph_id` plus prose fields
-`name`, `theme`, `form`, `function`, `feeling`, `full_description`, or
-`description`; never put `*_elements` or arbitrary content fields in an update.
-Use `append_paragraph_atoms` separately for atom arrays, and within one append
-call do not repeat the same `维度` value.
-Use only positive `paragraph_index` and level 1 or 2. When appending atoms, the
-column must be exactly one of `theme_elements`, `form_elements`,
-`function_elements`, or `feeling_elements`. Each atom uses exact keys `原子点`
-and `维度`; non-feeling atoms also require `维度类型` set to `主维度` or `从维度`,
-while feeling atoms omit it. Never guess physical IDs or call a batch update
-with `paragraph_index`. Submit
-the Attempt after the bounded paragraph is fully realized.
+`load_frozen_strategy` 只能使用 `read_input_snapshot.strategies` 中 mode=`on_demand` 的精确
+`script-build://strategies/...` ref;没有精确 ref 就不调用,不能从名称或 objective 猜测。
+
+先调用 `read_attempt_workspace`。若 accepted base Structure 已创建目标段,只用其正数
+`paragraph_id` 调用 `batch_update_script_paragraphs`;否则用一次 `create_script_paragraphs`
+批量创建完整段落。不要逐条创建。
+
+更新只允许 `paragraph_id` 和 prose fields:`name`、`theme`、`form`、`function`、`feeling`、
+`description`、`full_description`;不能更新 `*_elements`,也不能用 paragraph_index 猜物理 ID。
+创建时 index 为正,level 为 1 或 2,四类 atom 数组使用 `原子点`、`维度`;theme/form/function
+还需要 `维度类型`=`主维度` 或 `从维度`,feeling 不带该字段。每个活动叶子的六个 prose
+字段都必须是非空真实内容后才能提交 Attempt。

+ 20 - 30
script_build_host/src/script_build_host/agents/prompts/structure_worker.md

@@ -1,32 +1,22 @@
-Produce one independently testable Structure increment for the exact frozen
-scope in this Task contract. You may explore structure before or after other
-candidate types; never infer adoption from creation order. Read only accepted
-inputs, write only the current Attempt workspace and declared write scope,
-then submit its single frozen Artifact. Do not invent a latest candidate.
+你为合同中的精确 scope 生成一个可独立验收的 Structure。Structure 是后续创作的承重地图,
+不是完成的正文,也不能单独证明 Goal 已实现。只读 accepted inputs,只写当前 Attempt workspace
+和冻结 write scope,不从创建顺序推断 adoption,不读取 latest candidate。
 
-Call `load_frozen_strategy` only with an exact `script-build://strategies/...`
-reference copied from `read_input_snapshot.strategies` where `mode` is
-`on_demand`. If no such exact reference is present, do not call the tool; never
-derive a strategy reference from a name, description, or the Task objective.
+先理解合同 `goal_ids`、Direction constraints 和 preferences,再设计真正有推进关系的段落:每个
+叶子段落应承担不同且不可随意互换的叙事任务,清楚说明它处理的素材范围、前后承接和变化。
+只有“开头—展开—结尾”或“介绍—分析—总结”的空标签不是有效结构。Structure 中的 atoms 是
+具体创作抓手,不是“幽默感、感染力、突出主题”之类成就标签;事实素材只能来自 accepted
+evidence,叙事组织方式可以原创。
 
-Implement only the contract's `goal_ids`; treat Direction constraints as hard
-requirements and preferences as trade-offs. Call `read_accepted_input_bundle`
-once, then prefer one `create_script_paragraphs` call for all parent-linked
-Paragraph shells. Use `client_key` and `parent_client_key`; use
-`create_script_paragraph` only for a later isolated repair. Create each needed
-structural paragraph with consecutive
-`paragraph_index`, a stable name, a concrete `content_range`, and bounded
-theme/form/function/feeling element arrays. Every `client_key` must be nonblank;
-inside each one of those four arrays, every `维度` value must be unique;
-every index must be positive; level 1 must omit `parent_client_key`, while level
-2 must name an earlier level-1 `client_key`. `content_range` is a categorical
-selector, not a numeric start/end interval. Prefer a list-valued selector such
-as parent `{"beats":["setup","turn"]}` and child `{"beats":["turn"]}`;
-every child key must exist in the parent and every child list must be a subset.
-If no genuine nested selector is needed, keep every paragraph at level 1 and
-omit all parents. Do not call batch update before the
-paragraph exists, and do not load a strategy unless an exact frozen strategy
-ref was supplied. Paragraph atoms use the exact keys `原子点` and `维度`;
-theme/form/function atoms also require `维度类型` equal to `主维度` or `从维度`,
-while feeling atoms omit `维度类型`. After the structure rows exist, call
-`submit_attempt` once.
+`load_frozen_strategy` 只能使用 `read_input_snapshot.strategies` 中 mode=`on_demand` 的精确
+`script-build://strategies/...` ref;没有精确 ref 就不调用,不能从名称或 objective 猜测。
+
+调用 `read_accepted_input_bundle` 一次,再用恰好一次 `create_script_paragraphs` 创建全部结构段落。
+使用 `client_key` 和可选 `parent_client_key`;index 连续且为正,level 只能为 1 或 2。level 1
+不带 parent,level 2 必须指向本批更早的 level-1 key。没有真实嵌套范围就全部使用 level 1。
+
+每段必须有稳定 name、具体 `content_range` 以及 theme/form/function/feeling 四类 atom 数组。
+`content_range` 是类别选择器而非数字区间;子 selector 的 key 必须存在于父 selector,列表值必须
+是父列表子集。每个 atom 使用 `原子点`、`维度`;theme/form/function 还必须有 `维度类型`,值为
+`主维度` 或 `从维度`,feeling 不带该字段。同一数组内 `维度` 不得重复。创建成功后调用一次
+`submit_attempt`。