feat: update automation workspace and release pipeline

This commit is contained in:
coso
2026-03-25 23:13:17 +08:00
parent b8c10ad8ea
commit 8b9f91bd31
26 changed files with 2476 additions and 813 deletions
+14
View File
@@ -154,6 +154,20 @@ npm run verify:local
5. `npm run test:contracts` 通过
6. 涉及 compat / deprecated 的改动,已补 `governance:legacy-report` 或明确说明不需要
## 自动化 `agent_turn` 负载补充约定
当 `create_automation_job` / `update_automation_job` 的 `payload.kind = "agent_turn"` 用于持续产出交付物时,允许并推荐透传以下字段:
- `content_id`:绑定长期内容主线,供自动化版本持续沉淀到同一交付链
- `request_metadata`:与运行时 turn 保持同合同,至少可包含 `artifact` 与 `harness` 两层
推荐形态:
- `request_metadata.artifact`:`artifact_mode / artifact_kind / artifact_stage / workbench_surface`
- `request_metadata.harness`:`theme / session_mode / content_id`
这样做的目的不是给自动化新增第二套协议,而是让自动化直接复用现有 runtime turn 的 Artifact 主链。
## 明确禁止
- 在页面、组件、普通 Hook 中直接散落 `invoke`
+11
View File
@@ -130,6 +130,17 @@ npm run test:contracts
7. 验证页面出现 `Theme Workbench` 或相关工作台内容
8. 再次检查控制台 error
### 服务型技能自动化交付链
1. 从首页进入服务型技能卡片
2. 选择一个 `scheduled / managed` 的本地服务型技能
3. 打开“创建自动化任务”,提交后进入对应工作区
4. 确认同一次操作里:
- 自动化任务已创建
- 工作区已打开
- 对应内容仍落在同一个 `contentId`
5. 如能查看运行记录或调试面板,继续确认自动化 `agent_turn` payload 含 `content_id` 与 `request_metadata.artifact`
### 素材页验证
1. 从社媒内容项目进入 `素材`
+4
View File
@@ -181,6 +181,10 @@ npm run bridge:health -- --timeout-ms 120000
| Rust 模块改动 | 受影响 crate / 模块定向测试 | 再决定是否跑全量 `cargo test` |
| 真实页面交互验证 | 先跑 `npm run verify:gui-smoke` | 再进入 `playwright-e2e.md` |
补充说明:
- 如果这次改动把 `ServiceSkill -> automation_job -> agent_turn` 接到 Artifact 主线,除了常规 `verify:local` / `test:contracts` 之外,还应至少补一条稳定回归,证明 `content_id + request_metadata.artifact` 没在表单编辑或执行链路里丢失。
## CI 事实源
主工作流: