From b8447dab950e26f4d4f5aa6f8776ab244117efe4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=B5=85=E5=BF=B5?= Date: Mon, 2 Nov 2026 23:13:22 +0800 Subject: [PATCH] =?UTF-8?q?fix(prompts):=20L57=20=E7=BA=A2=E7=BA=BF?= =?UTF-8?q?=E8=8A=82=E6=8B=AC=E6=B3=A8=E9=80=9A=E7=94=A8=E5=8C=96=E8=A1=A5?= =?UTF-8?q?=E6=BC=8F=EF=BC=88Task=202=20=E8=B4=A8=E9=87=8F=E5=AE=A1?= =?UTF-8?q?=E6=9F=A5=20Important=20=E6=94=B6=E5=8F=A3=EF=BC=89+=E8=B4=9F?= =?UTF-8?q?=E5=90=91=E9=94=9A=E4=BD=9C=E7=94=A8=E5=9F=9F=E6=B3=A8=E9=87=8A?= =?UTF-8?q?+spec=20L216/L57=20=E5=AF=B9=E8=B4=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Code --- .../specs/2026-11-02-jiancai-dual-contact-ask-design.md | 3 ++- seed_profiles/jiancai/prompts/system.md | 2 +- tests/test_dual_ask_static.py | 6 +++++- 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/docs/superpowers/specs/2026-11-02-jiancai-dual-contact-ask-design.md b/docs/superpowers/specs/2026-11-02-jiancai-dual-contact-ask-design.md index f08aa03..c99aedc 100644 --- a/docs/superpowers/specs/2026-11-02-jiancai-dual-contact-ask-design.md +++ b/docs/superpowers/specs/2026-11-02-jiancai-dual-contact-ask-design.md @@ -36,7 +36,8 @@ | L179-188 索要话术池(en 4 条 + zh 4 条) | 全部改双要;**至少一条保留 "with the country code" 原样措辞**(test_system_prompt_dual_contact:44 锚) | | L190-195 「双渠道与国家代码」原则节 | "分步双要,一次只问一个" → "**双渠道一次要齐**:首次索要就把 WhatsApp 和邮箱一起要(理由=经理 WhatsApp 联系 + 报价单 PDF 发邮箱);客户只给一个时,另一渠道轻补一次(邮箱按系统轻补指引逐字句;号码礼貌补问一句),不成就不再提,绝不纠缠(转化率优先)";**保留锚词**:"已在手的渠道"、"缺失渠道"、"轻补"、"formal quotation PDF"、"国家代码"≥2、"with the country code";**两条邮箱轻补逐字句(en "Got it! And an email address would help too — …" / zh "收到!邮箱也留一个呗?…")必须原文存活**(test_system_prompt_dual_contact.py:90-102 对引擎常量逐字断言) | | L214 App 反向留资句 | 双要形态,**与 wall `contact_ask.app` 逐字句一字不差**(现状两处尾部 "full quotation!" vs "full quote!" 有一词分叉,本次统一为同一字符串) | -| L216 互留句 | "Drop yours too — WhatsApp and email — and our manager will send the full quotation!" | +| L216 互留句 | "Drop your WhatsApp and email too — and our manager will send the full quotation!"(实施定稿措辞,较原草案收敛) | +| L57 红线节括注 | "缺失渠道可轻补一次" → "缺失渠道——号码或邮箱——可再礼貌提一次"(Task 2 质量审查补列,与 L173/L227 同构) | | L173 / L221 / L227 "缺失渠道轻补一次"表述 | 通用化:"缺失渠道(号码或邮箱)可再礼貌提一次,仅一次不纠缠";L221 确认式例句渠道中性 | ### 3.2 seed_profiles/jiancai/wall.json diff --git a/seed_profiles/jiancai/prompts/system.md b/seed_profiles/jiancai/prompts/system.md index f96b302..1753c9c 100644 --- a/seed_profiles/jiancai/prompts/system.md +++ b/seed_profiles/jiancai/prompts/system.md @@ -54,7 +54,7 @@ $DEFLECTION_POOL - 回复中不能出现任何电话号码或邮箱地址(**唯一例外**:系统提供的补全号码原文,逐字照抄)——客户自己的号码也不回显(确认收到即可);哪怕是客户刚发的号码、刚更正的号码,也绝不能在回复里写出来,一律用 "your WhatsApp" / "你的WhatsApp" 指代;引导联系一律用页面按钮(网页)或请客户留联系方式(App) - 一切不清楚、没把握的问题(卡外国家/库存/质保/认证/任何事实细节)——不编造、不承诺、不否定、不断言,引导客户留联系方式,由客户经理沟通 - 不对库存/现货做断言——有没有货、什么时候能交,由客户经理确认;你只能说"生产上可以调配,具体排期我们的经理确认" -- 客户已留资(系统提醒"已提供")→ 已在手的渠道绝不再索要,确认收到即可(缺失渠道可轻补一次;号码缺国家代码时,按系统提醒**回显补全后的完整号码**请客户确认——仅系统提供的号码,禁止自编,见【联系方式引导策略】) +- 客户已留资(系统提醒"已提供")→ 已在手的渠道绝不再索要,确认收到即可(缺失渠道——号码或邮箱——可再礼貌提一次;号码缺国家代码时,按系统提醒**回显补全后的完整号码**请客户确认——仅系统提供的号码,禁止自编,见【联系方式引导策略】) ### 客户反复追问时(坚持策略) - 第一次:解释原因(规格/数量/目的地/行情因人而异)+ 引导留资 diff --git a/tests/test_dual_ask_static.py b/tests/test_dual_ask_static.py index 14f8e54..250eac1 100644 --- a/tests/test_dual_ask_static.py +++ b/tests/test_dual_ask_static.py @@ -75,7 +75,11 @@ def test_company_facts_dual_ask(): def test_deflections_no_either_or_wording(): - """负向锚: 首次索要池不得回退二选一措辞(en "or email"/zh "或邮箱"/es "o correo")。""" + """负向锚: 首次索要池不得回退二选一措辞(en "or email"/zh "或邮箱"/es "o correo")。 + + 作用域仅限 deflections(首问池):通用化补句子句合法存在于 reminders 与 + system.md("号码或邮箱"/"number or email" 等),若把负向锚扩到那里会误伤—— + 别"修正"子串也别扩作用域。""" w = _wall() for s in w["deflections"]["en"]: assert " or email" not in s