Files
cnc_wams/完善wasm/working/29-04-Host-Runtime-Opt-In-Evidence-Gate实施记录.md
2026-07-10 21:26:42 -04:00

2.7 KiB
Raw Blame History

29-04 Host Runtime Opt-In Evidence Gate 实施记录

定位

本文件落实 ACC-041/INT-028,执行 25host_runtime_opt_in_evidence、promotion state machine 和 release/promotion separation gate。普通命令没有设置任何 opt-in 环境变量,也没有启动 User-M、Tool DB 或 Python remap 宿主进程。

实现

新增 wasm-port/tools/write_host_runtime_opt_in_evidence.mjs,从当前机器可读 artifact 生成:

wasm-port/build/evidence/host-runtime-opt-in-evidence.json

生成器读取并哈希 host readiness、dispatch、promotion readiness、promotion blockers、native summary 和逐 family probe gate。每个 family 精确记录 target、LinuxCNC reference、opt-in env、当前 probe/native/Node/Browser 状态、人工锁、blocker 和 artifact SHA-256。

当前 artifact 事实:

  • User-M、Tool DB 为 ready_disabled_by_default,不是 native pass
  • Python 只绑定 axis/remap/stop-lookahead/nc_files 单 fixture不能批量晋级 family
  • 三个 family 均 executionEnabled=falsepromotionLockActive=truemanualReview=nullpromotionAllowed=false
  • project release ready 与 Web simulation allowed 为真host promotion、realtime、hardware、完整 native process topology 均为假。

Gate

cd wasm-port
node tests/host/verify_host_runtime_opt_in_evidence.mjs
node tests/host/verify_host_runtime_promotion_state_machine.mjs
node tests/host/verify_project_release_vs_host_promotion.mjs

cd ../web-rtcp-5axis-xyzbc-trt-sim-plan
node tests/node/verify_host_runtime_opt_in_evidence.mjs
npm --prefix app run evidence:web
npm --prefix app run evidence:compare

输出:

host_runtime_opt_in_evidence_schema=ok
host_runtime_promotion_state_machine=ok
disabled_probe_not_native_pass=ok
single_fixture_not_bulk_promotion=ok
project_release_host_promotion_separation=ok
realtime_hardware_remain_blocked=ok
web_host_runtime_opt_in_evidence=ok
web_release_host_promotion_separation=ok
compare_xyzbc_trt_status=pass

Web evidence 现包含 hostRuntimeOptInEvidencehostPromotionSummaryblockedRuntimeFamiliescompare 包含 hostRuntimePromotionComparison

边界

本轮完成的是可机读状态与反跳级 gate不是人工 promotion。只有显式运行相应 opt-in probe、接受 native evidence、完成 Node/Browser、解除人工锁并记录 approved review 后,精确 target 才可能晋级。Realtime/hardware 必须另建安全任务,不能继承三个 process probe 权限。

结论

ACC-041/INT-028 已闭合 host evidence schema、状态机和 release/promotion separation。当前正确结论仍是 promotionScope=web_simulation_onlyhostPromotionAllowed=false