Yaojia Wang
f6e88d7438
test(qa): AI 对话(聊天记录)E2E + #1/#6 真源围栏守卫(AC-4)
计划 §6/§8。收口 AI-chat-history 功能(AC-1..AC-4 全交付)。
- tests/test_ai_chat_history_e2e.py:真 pg、零 LLM/无网关(纯 CRUD 侧记录),
覆盖 §6 全 6 用例——缓冲多轮线程一批落库 + GET newest-first/meta 保真、
作用域分区(本章 ∪ 项目级 NULL)、跨批分页 + kind 过滤、
append 只写 ai_messages(其它业务表零变 + usage_ledger 恒 0)/GET 只读、
404 + 五类 422 失败零落库、clarify-abandon(服务端无部分写路径)。
- tests/test_ai_messages_not_in_generation_path.py:AST 静态围栏——
memory/orchestrator 两目录无一 import/引用 ai_messages,
MemoryRepos 捆绑与 assemble 形参都不含它;植入违规自证探测器非空,能变红。
- memory/gotchas.md:登记 ai_messages 真源围栏(append-only 侧记录,
绝不喂 assemble/prompt;接入生成链 = code-review BLOCKER)。
门禁全绿:ruff/format · mypy 238 · alembic 无漂移 · pytest 1002 passed(+10)。
2026-07-09 17:42:45 +02:00
..
2026-07-06 17:57:31 +02:00
2026-06-18 11:38:28 +02:00
2026-06-18 11:38:28 +02:00
2026-07-09 17:42:45 +02:00
2026-07-09 17:42:45 +02:00
2026-06-23 20:45:06 +02:00
2026-06-23 18:04:10 +02:00
2026-06-23 19:17:08 +02:00
2026-07-06 17:57:31 +02:00
2026-07-08 10:56:01 +02:00
2026-06-18 11:38:28 +02:00
2026-06-18 11:38:28 +02:00
2026-06-18 11:38:28 +02:00
2026-07-08 11:29:27 +02:00
2026-06-18 11:38:28 +02:00
2026-06-18 11:38:28 +02:00
2026-06-18 14:21:17 +02:00
2026-06-21 19:32:24 +02:00
2026-07-06 14:36:11 +02:00
2026-06-18 11:38:28 +02:00
2026-06-29 12:06:04 +02:00
2026-06-24 04:49:44 +02:00
2026-06-23 19:38:56 +02:00
2026-06-23 20:24:24 +02:00
2026-06-23 20:24:24 +02:00
2026-07-08 12:16:06 +02:00