新增项目发布 gate result matrix API
This commit is contained in:
59
text14.txt
59
text14.txt
@@ -3370,3 +3370,62 @@ project_release_handoff_docs_node_smoke=ok
|
||||
|
||||
继续只做实质能力推进。优先选择可执行 gate、SDK/API surface、或真实 browser workflow;
|
||||
不要做只整理断言或局部常量化的批次。
|
||||
|
||||
四十三、2026-06-16 继续执行记录:project release gate result matrix SDK API
|
||||
|
||||
本轮继续按“每批必须产出可调用 API、可验证 workflow、可执行 gate、或真实 UI/browser 能力”推进,
|
||||
把 project release gate evidence matching 从 report 内部实现提升为外部可调用 result matrix API。外部
|
||||
CI 现在可以直接把 observed outputs 和 explicit gate results 归一化为每个 required gate 的 passed/unknown
|
||||
行,不需要复制 SDK 内部匹配逻辑。
|
||||
|
||||
完成内容:
|
||||
|
||||
- `runtime/sdk/src/project-release-readiness.js` 新增:
|
||||
- `createProjectReleaseGateResultMatrix()`;
|
||||
- 新 matrix 返回:
|
||||
- `apiName: project-release-gate-result-matrix`;
|
||||
- `matrixVersion: 1`;
|
||||
- `phase/ready`;
|
||||
- `gateCount/passedCount/unknownCount`;
|
||||
- `missingGateIds`;
|
||||
- `manifest`;
|
||||
- `rows[]` 的 `id/label/command/expectedOutput/status/passed`;
|
||||
- `createProjectReleaseReadinessReport()` 现在复用该 matrix,并返回 `gateResultMatrix`;
|
||||
- `runtime/sdk/src/index.js` re-export 新 matrix API;
|
||||
- `verify_project_release_gate_manifest.mjs` 覆盖 partial observed outputs、explicit gate result 和 unknown rows;
|
||||
- `verify_sdk_surface.mjs` 覆盖 SDK export、report.gateResultMatrix 和单 gate observed output matching;
|
||||
- `runtime/sdk/README.md`、`docs/project-release-handoff.md`、`verify_project_release_handoff_docs.mjs`
|
||||
记录 result matrix API;
|
||||
- `PROJECT_COMPLETION_TRACKER.md` 同步 latest completed batch 和 SDK/API surface 状态;
|
||||
- 未新增控制按钮;
|
||||
- 未执行 release gate/action-plan;
|
||||
- 未解析 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
|
||||
wasm-port/tests/host/verify_project_release_readiness_artifact.sh wasm-port/tests/fixtures/project-release-readiness-ready.json
|
||||
```
|
||||
|
||||
关键输出:
|
||||
|
||||
```text
|
||||
project_release_gate_manifest_node_smoke=ok
|
||||
sdk_surface_node_smoke=ok
|
||||
project_release_handoff_docs_node_smoke=ok
|
||||
project_release_readiness_artifact_node_smoke=ok
|
||||
```
|
||||
|
||||
下一步工作计划:
|
||||
|
||||
继续只做实质能力推进。优先选择可执行 gate、SDK/API surface、或真实 browser workflow;
|
||||
不要做只整理断言或局部常量化的批次。
|
||||
|
||||
Reference in New Issue
Block a user