feat: enforce AI page recipe gate
This commit is contained in:
@@ -23,6 +23,11 @@ AI 自动开发链路中的 `PAGE_SCHEMA` 草稿仍然保存编译后的 amis sc
|
||||
- `pageBlueprintVersion`
|
||||
- `pageBlueprint`
|
||||
|
||||
声明了 `pageRecipe` 的草稿必须通过 `page-recipe` 门禁。该门禁会重新解析 metadata 中的
|
||||
`pageBlueprint`,用平台注册的 recipe/compiler 重新编译,并要求草稿 payload 与编译结果一致。
|
||||
因此 Agent 不能一边声明使用标准 recipe,一边绕过 compiler 私改 amis JSON。没有声明 recipe 的
|
||||
历史/手工 `PAGE_SCHEMA` 草稿暂按自由 schema 处理,只走 amis schema 和 typed page schema。
|
||||
|
||||
## Recipe: maintenance-crud-v1
|
||||
|
||||
适用范围:
|
||||
@@ -73,10 +78,16 @@ AI 自动开发链路中的 `PAGE_SCHEMA` 草稿仍然保存编译后的 amis sc
|
||||
|
||||
这些类型必须作为新的 recipe 增量加入,不能让 Agent 直接绕过 blueprint 生成最终 amis JSON。
|
||||
|
||||
## 已落地门禁
|
||||
|
||||
- `page-recipe`:校验 recipe 已注册、metadata 证据完整、payload 等于 blueprint 编译结果。
|
||||
- `typed-page-schema`:校验组件和 actionType 来自 EIP4 注册表。
|
||||
- `amis-schema`:校验最终 schema 符合 amis schema。
|
||||
- `local-smoke`:本地发布后访问页面、实体、服务流和新增接口。
|
||||
|
||||
## 后续演进
|
||||
|
||||
1. 将 `maintenance-crud-v1.yaml` 中的规则接入 UI lint。
|
||||
2. 增加 `master-detail-v1`、`tree-crud-v1`、`approval-task-v1` recipe。
|
||||
3. 让设计器 overlay 保存也能记录对应 blueprint 或 template 来源。
|
||||
4. 在功能包中导出 blueprint,线上部署包继续导出编译后的 amis schema。
|
||||
5. Playwright E2E 从 recipe 反推出应验证的 UI 行为。
|
||||
1. 增加 `master-detail-v1`、`tree-crud-v1`、`approval-task-v1` recipe。
|
||||
2. 让设计器 overlay 保存也能记录对应 blueprint 或 template 来源。
|
||||
3. 在功能包中导出 blueprint,线上部署包继续导出编译后的 amis schema。
|
||||
4. Playwright E2E 从 recipe 反推出应验证的 UI 行为。
|
||||
|
||||
Reference in New Issue
Block a user