docs(spec): 折入审查发现——补 test:681/692 中性化锚、轻补句逐字存活、按语言钉死中性锚、deflections 条数勘误
Co-Authored-By: Claude Code <noreply@anthropic.com>
This commit is contained in:
@@ -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. 生产落地(整体对齐出厂)
|
||||
|
||||
Reference in New Issue
Block a user