test: 补齐跨模板发布回归

This commit is contained in:
que01 committed 2026-09-27 18:05:03 +08:00
1 parent 0c5ff79b42
commit 34b872a84c
6 files changed
+231 -9

No files matched your search

@@ -0,0 +1,17 @@
# 执行记录
## 恢复信息
- 任务:验证餐饮与门窗模板的发布 readiness 由模板声明驱动且品牌隔离。
- 形态:single-full
- 进度:0/4
- 当前:补齐林境 required 信任内容回归。
- 文件:`.codex-tasks/trust-readiness-cross-template/TODO.csv`
- 下一步:扩展 API 集成测试并运行验证。
## 结果
- 林境 `process`、`credential` 均验证了取消发布或内容为空时 readiness 失败;恢复有效内容后 `process` 重新通过。
- readiness 检查键按模板声明隔离:餐饮出现 `schedule/coverage/process`,门窗出现 `process/credential`,互不要求对方行业类型。
- 两个模板 JSON 仅做 Prettier 格式化,语义和声明未改动。
- 验证:API integration 37/37、`pnpm format:check`、typecheck、lint、Admin production build、template validation、`git diff --check` 通过。
@@ -0,0 +1,16 @@
# 跨模板发布 readiness 回归
## 目标
验证发布 readiness 按视觉模板 package 的 `trustContentTypes` 声明工作,餐饮和门窗品牌的必需信任类型互不串用;同时清理现有模板 JSON 的格式门禁告警。
## 范围
- API 集成测试覆盖林境门窗模板的 `process`、`credential` 必需类型。
- 验证林境必需内容在未发布、标题为空、正文为空时均不能发布,恢复后可以发布。
- 验证餐饮和门窗 readiness 只检查各自模板声明的 required 类型。
- 格式化当前已有的两个模板 JSON 文件,并确认全仓格式检查通过。
## 非目标
- 不新增行业类型,不改变模板声明,不把模板示例内容写入数据库。
@@ -0,0 +1,5 @@
id,task,status,acceptance_criteria,validation_command,completed_at,retry_count,notes
1,补齐林境 required 信任内容回归,DONE,林境 process 和 credential 在缺失或内容为空时 readiness 失败且恢复后通过,pnpm --filter @personal-brand/api test:integration,2026-09-27,0,覆盖 process 的取消发布/空标题/空正文和 credential 的取消发布/空正文
2,验证品牌间 required 类型隔离,DONE,餐饮检查 schedule/coverage/process 且不要求门窗专属 credential,门窗检查 process/credential 且不要求餐饮专属 schedule,pnpm --filter @personal-brand/api test:integration,2026-09-27,0,断言 readiness 检查键由模板声明隔离
3,清理模板 JSON 格式告警,DONE,pnpm format:check 通过且不改变模板语义,pnpm format:check,2026-09-27,0,仅格式化两个已有模板 JSON
4,完成交付门禁并记录,DONE,typecheck、lint、Admin build、template validation、git diff --check 通过,pnpm typecheck && pnpm lint,2026-09-27,0,API integration 37/37;其余门禁均通过
1 id task status acceptance_criteria validation_command completed_at retry_count notes
2 1 补齐林境 required 信任内容回归 DONE 林境 process 和 credential 在缺失或内容为空时 readiness 失败且恢复后通过 pnpm --filter @personal-brand/api test:integration 2026-09-27 0 覆盖 process 的取消发布/空标题/空正文和 credential 的取消发布/空正文
3 2 验证品牌间 required 类型隔离 DONE 餐饮检查 schedule/coverage/process 且不要求门窗专属 credential,门窗检查 process/credential 且不要求餐饮专属 schedule pnpm --filter @personal-brand/api test:integration 2026-09-27 0 断言 readiness 检查键由模板声明隔离
4 3 清理模板 JSON 格式告警 DONE pnpm format:check 通过且不改变模板语义 pnpm format:check 2026-09-27 0 仅格式化两个已有模板 JSON
5 4 完成交付门禁并记录 DONE typecheck、lint、Admin build、template validation、git diff --check 通过 pnpm typecheck && pnpm lint 2026-09-27 0 API integration 37/37;其余门禁均通过