feat(roundtable): 深链接业务链抽取规范 + 总结报告文件干净/对话强制核对
深链接会商(taskId+goPath,businessCode)下按所选业务链完整层级强制校正 结构化抽取(flow-json) 与 方案总结报告: - 新增 harness 层 extraction_spec(app+harness 共用,单份领域知识两角色用法): build_structure_directive / build_summary_directive 按 businessCode 取 · rwfx(6BF):线性 任务→目的→行为体→预期行为→驱动因素→叙事;预期行为↔驱动因素 1:1、余 1:N · xdfx(7BF):分叉汇聚 DAG,根=行动;行动→受众目标/关键传播节点(1:N)→脆弱点(1:N)→策略(多对一) · 其余业务通用规范(强约束完整性+命名+取数、不套固定模板);business_code 空→零副作用 - 结构化抽取:flow_extract._hierarchy_hint + _validate_messages 用 structure_directive 权威覆盖默认层级(根治"无论什么业务都按目的→行为体抽/停在行为体");前端 streamFlowExtract 传 business_code(源 ingestBusinessCode) - 方案总结报告:前台 multi_agent._special_run(summary) + 后台 build_summary_prompt 注入 business 完整性核对(StartJobRequest/StartParams 透传) - 报告产物策略:.md 报告文件保持完整、干净、无需修改(不写 待补充/不足/⚠️); 「核对说明」(意图对齐+业务链完整性+不足/可补充)改为只在对话回复正文、且每次必出 - 种子 roundtable-structure SOUL 层级顺序改 spec-driven、去 rwfx 写死示例 Tests: test_roundtable_extraction_spec / test_roundtable_summary_prompt Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
1 parent
3ab674e438
commit
b1b1ff98f5
17 files changed
+378
-25
No files matched your search
@@ -31,10 +31,12 @@ def test_summary_prompt_carries_intent_and_alignment_directive():
|
||||
# 意图对齐 + 缺口核对指令
|
||||
assert "意图对齐与缺口核对" in out
|
||||
assert "核心诉求清单" in out
|
||||
# 防幻觉护栏三条
|
||||
assert "综合推断" in out
|
||||
assert "待补充" in out
|
||||
# 防幻觉 + 报告文件完整干净(不足只在对话正文、不写进 .md)+ 对话必须有「核对说明」
|
||||
assert "绝不凭空编" in out
|
||||
assert "无需用户修改" in out
|
||||
assert "不写进 .md" in out
|
||||
assert "核对说明" in out
|
||||
assert "不要省略" in out
|
||||
|
||||
|
||||
def test_summary_prompt_alignment_directive_present_even_without_coordinator_prompt():
|
||||
|
||||
Reference in new issue
Block a user