fix: system.md质量审查补丁(多语言示例/例外规则/库存话术)
Co-Authored-By: Claude Code <noreply@anthropic.com>
This commit is contained in:
@@ -252,6 +252,9 @@ SPEC_NON_HITS = [
|
||||
"20ft container load", "40ft HQ",
|
||||
"5.8m and 11.8m lengths",
|
||||
"PE80 PE100 grades",
|
||||
# Task 3 质量审查发现: customs 是 custo 超集,高频外贸词,不得误杀
|
||||
"customs paperwork for 20ft containers",
|
||||
"HS code 3917 for customs clearance",
|
||||
]
|
||||
```
|
||||
|
||||
@@ -273,10 +276,13 @@ python -m pytest tests/test_boundary_filter.py -q
|
||||
# 货币符号: €/£ 参考项目只有 $
|
||||
re.compile(r"[€£]\s?\d"),
|
||||
# 价格名词前置(西/葡/俄/阿): 词后 0-20 非数字字符内出现数字
|
||||
re.compile(r"(?:precio|costo|custo|preço|цена|стоимость|سعر|ثمن)[^\d\n]{0,20}\d", re.I),
|
||||
# ⚠️ 拉丁词必须加 \b 词边界——custo 是英文 customs 的子串,外贸高频
|
||||
# "customs paperwork for 20ft" 会被误杀(Task 3 质量审查发现)
|
||||
re.compile(r"\b(?:precio|costo|custo|preço|цена|стоимость|سعر|ثمن)\b[^\d\n]{0,20}\d", re.I),
|
||||
# 货币名词后置(数字+货币词)
|
||||
re.compile(r"\d[\d,.]*\s*(?:d[óo]lares?|euros?\b|рублей|руб\.?)", re.I),
|
||||
# 多语言时间承诺(与英文 days/weeks 组同构)
|
||||
# ⚠️ 不收 horas/hours/小时——system.md 的 "reply within 12 hours" 依赖此豁免
|
||||
re.compile(r"\d+\s*[- ]?(?:d[ií]as?|semanas?|дн(?:ей|я)|недел[ьи]|أيام)\b"),
|
||||
```
|
||||
|
||||
@@ -362,6 +368,7 @@ _DIGIT_TRANSLATE = str.maketrans("٠١٢٣٤٥٦٧٨٩۰۱۲۳۴۵۶۷۸۹", "01
|
||||
2. context 种子白名单:`vehicle_name/vehicle_id` → `product_name/product_id`
|
||||
3. `_build_context_reminder`/`_enrich_short_message` 中的车型话术 → 产品方案话术
|
||||
4. 同步更新 `tests/test_context_seeding.py` 的键名
|
||||
5. **话术跨层同步(Task 3 质量审查 Minor 4)**:conversation.py 约 592 行的注入提醒与 boundary_filter.py 的 NO_CONTACT_WEB 仍是 "our manager replies fast!",与 system.md 的 "reply within 12 hours" 口径不一致——统一为 12 小时句(或两版并存亦可,但须明确决定)
|
||||
|
||||
- [ ] **Step 5: 全量测试 + Commit**
|
||||
|
||||
|
||||
Reference in New Issue
Block a user