Files
unknownandCursor 8fb16f4a4a feat(infra): 落地 M01 基础框架与本机开发环境
交付 FastAPI/Celery/Vue 薄壳、FORCE RLS、Compose 回环与 review 修复证据,关闭 M01 DONE_LOCAL。

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-11-17 15:00:39 +08:00

25 lines
946 B
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# M01 RLS、幂等与 review 修复证据(脱敏摘要)
日期:2026-11-17
## 命令
```powershell
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 三态