fix: CC追问防压制——confirmed块让位+禁令例外扩围+伪回显示例

Co-Authored-By: Claude Code <noreply@anthropic.com>
This commit is contained in:
浅念
2026-10-08 12:50:34 +08:00
parent 31ffb638b6
commit 206beae11b
4 changed files with 63 additions and 14 deletions
+18
View File
@@ -43,3 +43,21 @@ def test_system_md_contains_verbatim_note_bodies():
for note in (_CC_NOTE_EN, _CC_NOTE_ZH, _EMAIL_NOTE_EN, _EMAIL_NOTE_ZH):
body = _note_body(note)
assert body in src, body[:40]
def test_system_md_cc_reask_exception_in_all_five_prohibitions():
"""生产验收场景①修复: 五处禁令例外全部扩围——号码缺国家代码时可请客户
重发完整号一次。CC 追问是对已在手渠道的重发请求,原先只豁免缺失渠道,
GLM 会视其为禁令压制对象(裸号追问两轮一致被压制即此根因)。"""
src = _read_system_md()
# 五节(语言规则/红线/对话流程/提醒配合/注意)逐一扩围,措辞锚点各落一次
assert src.count("重发完整号一次") >= 5
def test_system_md_pseudo_echo_bad_example():
"""生产验收 r2 实测伪回显: AI 把 +966 5x xxx xxxx 掩码样例当客户号码回显
("Got your number +966 5x xxx xxxx")——好差示例补组钉死禁止。"""
src = _read_system_md()
assert "Got your number +966 5x xxx xxxx" in src # 差例逐字在场
assert "那不是客户的号码" in src # 差例定性
assert "掩码样例当号码回显" in src # 好例禁令