feat(infra): 落地 M01 基础框架与本机开发环境
交付 FastAPI/Celery/Vue 薄壳、FORCE RLS、Compose 回环与 review 修复证据,关闭 M01 DONE_LOCAL。 Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
1 parent
8b2a809f06
commit
8fb16f4a4a
97 files changed
+8059
-22
No files matched your search
@@ -0,0 +1,32 @@
|
||||
# M01 健康三态证据(脱敏摘要)
|
||||
|
||||
日期:2026-11-17
|
||||
|
||||
## 命令
|
||||
|
||||
```powershell
|
||||
cd web/apps/console
|
||||
pnpm test:unit
|
||||
pnpm test:e2e
|
||||
pnpm typecheck
|
||||
```
|
||||
|
||||
## 结果
|
||||
|
||||
- vitest:2 files / 8 tests passed(映射 + 组件三态 + locale 回退 + en 文案)
|
||||
- Playwright:3 passed
|
||||
- loading → success(含 loading 截图)
|
||||
- failure(含 50000)
|
||||
- `?lang=en` 英文成功文案
|
||||
- typecheck:通过
|
||||
|
||||
## 截图(可入库)
|
||||
|
||||
- `docs/evidence/M01/ui/health-loading.png` — 文案「健康检查加载中」
|
||||
- `docs/evidence/M01/ui/health-success.png` — 绿标「健康检查成功」+「服务可用: watchman 0.1.0」
|
||||
- `docs/evidence/M01/ui/health-failure.png` — 「健康检查失败」+ `50000: Internal server error`
|
||||
- `docs/evidence/M01/ui/health-success-en.png` — 「Health check succeeded」+「Service available: watchman 0.1.0」
|
||||
|
||||
## 视觉抽查
|
||||
|
||||
四张截图均可见:单层卡片、标题 Watchman、状态 Tag 与 Alert 分层清楚、无裁切/重叠;英文态无硬编码中文。
|
||||
@@ -0,0 +1,20 @@
|
||||
# M01 依赖许可证预检(脱敏)
|
||||
|
||||
日期:2026-11-17
|
||||
|
||||
对照 `uv.lock` 与 `web` lock 的主要运行时依赖,逐项确认核心路径无 AGPL:
|
||||
|
||||
| 依赖 | 锁定版本(摘要) | 许可证(公开记录) |
|
||||
|---|---|---|
|
||||
| fastapi | 0.163.1 | MIT |
|
||||
| sqlalchemy | 2.0.57 | MIT |
|
||||
| alembic | 1.20.1 | MIT |
|
||||
| celery | 5.7.0 | BSD-3-Clause |
|
||||
| pydantic | 2.14.3 | MIT |
|
||||
| vue | 3.5.x | MIT |
|
||||
| element-plus | 2.11.x | MIT |
|
||||
| vite | 7.1.x | MIT |
|
||||
| playwright | 1.65.x | Apache-2.0 |
|
||||
| tailwindcss | 4.x | MIT |
|
||||
|
||||
结论:M01 锁定核心依赖未见 AGPL;后续新增依赖须先补本表再合入。
|
||||
@@ -0,0 +1,24 @@
|
||||
# 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 三态
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 10 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 7.7 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 9.7 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 9.9 KiB |
Reference in new issue
Block a user