新增项目发布 gate action plan API

This commit is contained in:
2026-06-16 10:51:18 +08:00
parent 1d383b475c
commit 9abca15d60
9 changed files with 185 additions and 9 deletions

View File

@@ -3308,6 +3308,67 @@ ui_node_smokes=ok
继续只做实质能力推进。优先选择可执行 gate、SDK/API surface、或真实 browser workflow
不要做只整理断言或局部常量化的批次。
四十五、2026-06-16 继续执行记录project release gate action-plan SDK API
本轮继续按“每批必须产出可调用 API、可验证 workflow、可执行 gate、或真实 UI/browser 能力”推进,
把 project release gate matrix 进一步提升为外部 CI/SDK 可直接消费的 action-plan API。外部工具现在可以
从 observed outputs、explicit gate results 或现成 matrix 得到 pending gate commands、next command、
display rows 和可展示/可执行的 shell script而不需要复制 release gate manifest 顺序或匹配逻辑。
完成内容:
- `runtime/sdk/src/project-release-readiness.js` 新增:
- `createProjectReleaseGateActionPlan()`
- 新 action plan 返回:
- `apiName: project-release-gate-action-plan`
- `planVersion: 1`
- `phase/ready`
- `gateCount/completedCount/pendingCount`
- `completedGateIds/pendingGateIds`
- `nextGateId/nextCommand`
- `commands[]`
- `rows[]`
- `shellScript`
- `createProjectReleaseReadinessReport()` 现在嵌入 `gateActionPlan`,与 `gateManifest` 和
`gateResultMatrix` 使用同一份 evidence
- `runtime/sdk/src/index.js` re-export 新 action-plan API
- `verify_project_release_gate_manifest.mjs` 覆盖 partial matrix action plan、next command、pending
commands 和 ready shellScript
- `verify_sdk_surface.mjs` 覆盖 SDK export、默认 waiting action plan、逐项 full-pass shellScript
- `runtime/sdk/README.md`、`docs/project-release-handoff.md`、`verify_project_release_handoff_docs.mjs`
记录 action-plan API
- `PROJECT_COMPLETION_TRACKER.md` 同步 latest completed batch 和 SDK/API surface 状态;
- 未新增控制按钮;
- 未在 SDK 中执行 shell command
- 未解析 G-code
- 未解释 canonical events
- 未新增 JS CNC 语义;
- 未运行 opt-in runtime probes
- 未 promotion blocked runtime family
- 未改变 LinuxCNC interpreter、tool、parameter、planner、kinematics、remap 或 LinuxCNC-owned
runtime semantics。
验证已通过(先行 targeted
```bash
wasm-port/tests/sdk/node/verify_project_release_gate_manifest.sh
wasm-port/tests/sdk/node/verify_sdk_surface.sh
wasm-port/tests/docs/node/verify_project_release_handoff_docs.sh
```
关键输出:
```text
project_release_gate_manifest_node_smoke=ok
sdk_surface_node_smoke=ok
project_release_handoff_docs_node_smoke=ok
```
下一步工作计划:
继续只做实质能力推进。优先选择可执行 gate、SDK/API surface、或真实 browser workflow
不要做只整理断言或局部常量化的批次。
四十二、2026-06-16 继续执行记录project release gate manifest SDK API/gate
本轮继续按“每批必须产出可调用 API、可验证 workflow、可执行 gate、或真实 UI/browser 能力”推进,