From 23a586d4ac460294cf6938f4b37b49d781fe7bf4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=B5=85=E5=BF=B5?= Date: Mon, 2 Nov 2026 17:00:55 +0800 Subject: [PATCH] =?UTF-8?q?docs(spec):=20=E6=8A=98=E5=85=A5=E5=AE=A1?= =?UTF-8?q?=E6=9F=A5=E5=8F=91=E7=8E=B0=E2=80=94=E2=80=94=E8=A1=A5=20test:6?= =?UTF-8?q?81/692=20=E4=B8=AD=E6=80=A7=E5=8C=96=E9=94=9A=E3=80=81=E8=BD=BB?= =?UTF-8?q?=E8=A1=A5=E5=8F=A5=E9=80=90=E5=AD=97=E5=AD=98=E6=B4=BB=E3=80=81?= =?UTF-8?q?=E6=8C=89=E8=AF=AD=E8=A8=80=E9=92=89=E6=AD=BB=E4=B8=AD=E6=80=A7?= =?UTF-8?q?=E9=94=9A=E3=80=81deflections=20=E6=9D=A1=E6=95=B0=E5=8B=98?= =?UTF-8?q?=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Code --- .../2026-11-02-jiancai-dual-contact-ask-design.md | 11 ++++++----- 1 file changed, 6 insertions(+), 5 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 483f0ad..f08aa03 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 @@ -34,8 +34,8 @@ | L155 已留资好例 | 渠道中性 | | L166-167 好/差例 | **不动**(已留 WhatsApp → 轻补邮箱,机制保留的锚) | | 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" | -| L214 App 反向留资句 | 双要形态(与 wall `contact_ask.app` 逐字句同源) | +| 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!" | | L173 / L221 / L227 "缺失渠道轻补一次"表述 | 通用化:"缺失渠道(号码或邮箱)可再礼貌提一次,仅一次不纠缠";L221 确认式例句渠道中性 | @@ -43,8 +43,8 @@ | 字段 | 改法 | |---|---| -| `deflections` en/zh/es(9 条) | 全部双要("What's your WhatsApp **and** email?" / "留个WhatsApp和邮箱?" / "¿Me dejas tu WhatsApp y tu correo?") | -| `pivots` en/zh/es(9 条) | 全部双要 | +| `deflections` en 3 / zh 2 / es 3(共 8 条) | 全部双要("What's your WhatsApp **and** email?" / "留个WhatsApp和邮箱?" / "¿Me dejas tu WhatsApp y tu correo?") | +| `pivots` en/zh/es(各 1 条,共 3 条) | 全部双要 | | `deflections_contact` en/zh/es(3 条) | **渠道中性**:"Our manager will send you the exact quote shortly. Anything else about our pipes?"(去 "to your WhatsApp") | | `pivots_contact` en/zh/es(3 条) | **渠道中性** | | `no_contact.app` | 双要:"Drop your WhatsApp and email — our manager will reach out to you directly with the full quote!" | @@ -77,8 +77,9 @@ L30 统一兜底句:"留个 WhatsApp,他直接联系你" → "留个 WhatsAp 1. **锚点同步(同包必改)**: - test_cc_integration.py:122 `"缺失渠道仅可按轻补指引提一次"` → 新通用化措辞 - test_lead_email_trigger.py:454 / :693 `"缺失渠道可按轻补指引提一次"` → 新措辞 + - test_lead_email_trigger.py:681 / :692 `"reach out to you at your WhatsApp"` → 新中性措辞(该串源自 `contact_ask.app_already` 逐字句与 `no_contact.already`,渠道中性化后必红;spec 审查抓出的遗漏点) 2. **锚点保留(改话术时不得破坏)**:test_prompt_static 全部("唯一例外"/"回显补全后的完整号码"≥4/"客户自己的号码也不回显"/"is that right"/extractor 门控句);test_system_prompt_dual_contact 全部("with the country code"/"formal quotation PDF"+"轻补"/"国家代码"≥2/"已在手的渠道"+"缺失渠道"/"邮箱轻补句");test_lead_email_trigger.py:993-1002 三处禁令锚 + 回显例外就近断言。 -3. **新增静态锚(防回退,按仓库文化)**:wall.json deflections 三语各含双要措辞("and email"/"和邮箱"/"y tu correo");deflections_contact 三语不含 "your WhatsApp"(中性钉死);system.md 含 "双渠道一次要齐";company_facts.md 含 "WhatsApp 和邮箱"。 +3. **新增静态锚(防回退,按仓库文化)**:wall.json deflections 三语各含双要措辞("and email"/"和邮箱"/"y tu correo");deflections_contact/pivots_contact 三语**不含任何渠道词**(en "your WhatsApp"、zh "你的 WhatsApp"、es "tu WhatsApp" 按语言逐一钉死,防只用 en 子串漏检 zh/es 回归);system.md 含 "双渠道一次要齐";company_facts.md 含 "WhatsApp 和邮箱"。 4. **全量 pytest**(CLAUDE.md 强制:改 seed_profiles 必跑),基线 632 passed + 2 skipped,改后锚点同步数目一致。 ## 6. 生产落地(整体对齐出厂)