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:
unknownandCursor committed 2026-11-17 15:00:39 +08:00
1 parent 8b2a809f06
commit 8fb16f4a4a
97 files changed
+8059 -22

No files matched your search

+43
View File
@@ -0,0 +1,43 @@
# Task Intake Result
## Task Type
feature. Watchman M01,搭建基础框架和开发环境。Tier M:一个已有任务边界的模块,含 API、壳层 UI 和本模块迁移。不是跨模块权限模型或真实外发。
## Current Understanding
用户要求先规划、不编码。范围以 `docs/tasks/INDEX.md` 的 M01 为准:后端/前端骨架、平台库迁移、任务队列与测试环境、错误/审计/运行记录基础和契约。不实现登录、业务模块或真实外发。
已确认技术方向见 `docs/decisions.md` D01:FastAPI、SQLAlchemy/Alembic、PostgreSQL、Celery/RabbitMQ、Vue 3/TS/Vite/Element Plus、Pinia/Router、pytest/Playwright、Docker Compose。不建微服务,不引入 Redis 作为任务结果库。
`D:\PROJECT\syops` 是 Flask + 自建 worker + Redis 的既有项目,Python 3.12,字符串错误码 `DOMAIN.SUBTYPE`,前端为 Vue 3.5、Element Plus、Pinia、vue-i18n、Tailwind 3。可借鉴环境文件分层、请求号和分层异常,不能把 Flask 应用或业务模块搬过来。公司现行信封已改为数值错误码。
## Gate Policy
- config/default: autonomous
- allowTaskOverride: true
- recommended: strict
- selected: autonomous
- reason or override reason: 用户于 2026-11-17 明确选择 autonomous。建议 strict 仍只作参考。
- effective: autonomous
- finalApprovalRequired: true
## Blocking Questions
无。2026-11-17 用户已选:autonomous、公司目录、薄壳、M01 实施 RLS、Compose 只绑本机。
## Non-blocking Assumptions
- 错误码按 `standards://api/api-envelope?version=1.1.0` 使用 40000/41000/42000/43000/50000。不沿用 syops 字符串码。`error-handling?version=1.1.1` 里残留的 `SYSTEM.INTERNAL_ERROR` 与信封冲突,内部错误拟用 50000。
- 四语言目录按 `frontend-stack?version=2.1.0` 建齐。M01 不交付业务列表,因此不锁定「cursor 分页」和 Element Plus 页码分页的冲突。
- 按钮图标按 `element-plus?version=1.0.2` 使用 `@element-plus/icons-vue`。
- 密钥只进 env。样例不含真实值。迁移只新增。
- 正式 Casdoor、业务表和真实发送不在 M01。
## Recommended Next Step
用户回答阻塞问题后,写 M01 实现切片。编码仍须单独确认。
## Suggested Prompt For Next Step
按已选门禁和目录,为 M01 写 implementation slices。只覆盖骨架、契约、迁移、队列和壳层。