交付 FastAPI/Celery/Vue 薄壳、FORCE RLS、Compose 回环与 review 修复证据,关闭 M01 DONE_LOCAL。 Co-authored-by: Cursor <cursoragent@cursor.com>
946 B
946 B
M01 RLS、幂等与 review 修复证据(脱敏摘要)
日期:2026-11-17
命令
uv run pytest services/watchman/tests -q
结果
- 23 passed
- 覆盖:信封(含 41000/42000/503、无 timestamp)、env 分层真值、启动缺键失败、probe/docs 生产收口、RLS 读写/角色/commit 后重绑、幂等(含并发)、租户注入忽略、IntegrityError 回退、测试数据清理
关键修复
missing_required_keys/ensure_runtime_config已接入进程启动/_probe/*、/docs、/openapi.json仅ENV_NAME=dev|test- 幂等
begin_nested+IntegrityError回读首次结果 Session.after_begin在非嵌套事务开始时重绑租户- 信封去掉未规范
timestamp - 门禁漂移已回滚(D17);Compose
0.0.0.0行内标注(D18) - 前端:Tailwind v4、
element-theme.css、El locale 随 i18n、非 JSON → BusinessError、Playwright 三态