docs: add axis run process working set
This commit is contained in:
32
work/working8-暂停按钮/04-任务矩阵.md
Normal file
32
work/working8-暂停按钮/04-任务矩阵.md
Normal file
@@ -0,0 +1,32 @@
|
||||
# 04-任务矩阵
|
||||
|
||||
状态定义:
|
||||
|
||||
- `待办`:尚未修改代码。
|
||||
- `进行中`:已有部分修改或验证。
|
||||
- `已完成`:代码、测试、证据均完成。
|
||||
- `阻塞`:需要外部输入或依赖。
|
||||
|
||||
| 任务编号 | 状态 | 任务 | 目标文件 | 验收标准 |
|
||||
|---|---|---|---|---|
|
||||
| W8-001 | 已完成 | task runtime 增加 `interpResumeState` 保存与恢复 | `wasm-port/runtime/core/linuxcnc_wrap/linuxcnc_task_hal_wasm.cpp` | pause 前状态为 `READING/WAITING` 时被保存;resume 后恢复原状态;status JSON 输出该字段。 |
|
||||
| W8-002 | 已完成 | 扩展 task-hal SDK 和 Web runtime 映射 | `wasm-port/runtime/sdk/src/linuxcnc-task-hal.js`、`web-rtcp-5axis-xyzbc-trt-sim-plan/app/src/runtime/linuxcnc-task-hal-runtime.js` | Web state 可读取小写 `interpResumeState`、`motionPaused`、`singleStepping`。 |
|
||||
| W8-003 | 已完成 | motion runtime 实现 immediate pause/resume | `wasm-port/runtime/core/linuxcnc_wrap/linuxcnc_motion_runtime.c` | pause 后连续 cycles 不消费普通 move;queue 保留;resume 后继续消费。 |
|
||||
| W8-004 | 已完成 | motion runtime 增加 stepping/id 追踪 | `wasm-port/runtime/core/linuxcnc_wrap/linuxcnc_motion_runtime.c` | STEP 只推进一个 motion id 或一行,并自动回到 paused。 |
|
||||
| W8-005 | 已完成 | task STEP 与 motion STEP 对齐 | `wasm-port/runtime/core/linuxcnc_wrap/linuxcnc_task_hal_wasm.cpp` | STEP 完成后 task 仍为 `PAUSED`、`taskPaused=true`,resume 可继续运行。 |
|
||||
| W8-006 | 已完成 | 扩展 WASM task-hal Node 测试 | `wasm-port/tests/wasm/node/verify_task_hal_wasm.mjs` | 覆盖 pause freeze、resume restore、step one motion、queue preserved。 |
|
||||
| W8-007 | 已完成 | TP wasm 增加 pause/resume probe | `wasm-port/runtime/core/linuxcnc_wrap/linuxcnc_tp_wasm.c`、`wasm-port/tests/wasm/node/verify_tp_wasm.mjs` | `verify_tp_wasm.mjs` 可证明 `tpPause()/tpResume()` 生效。 |
|
||||
| W8-008 | 已完成 | Web task policy 接入 motion paused | `web-rtcp-5axis-xyzbc-trt-sim-plan/app/src/state/linuxcnc-task-policy.js` | `canResume` 使用 motion paused/task paused/interp paused 综合判断;菜单 Pause 仍保持 AXIS 严格条件。 |
|
||||
| W8-009 | 已完成 | Store 暂停恢复分发优先使用 motion paused | `web-rtcp-5axis-xyzbc-trt-sim-plan/app/src/state/store.js` | `PAUSE_RESUME` 在 motion paused 时触发 resume;pause 后写入 `machine.motionPaused`。 |
|
||||
| W8-010 | 已完成 | UI 暂停按钮 active 状态接入 motion paused | `web-rtcp-5axis-xyzbc-trt-sim-plan/app/src/ui/axis-shell.js` | motion paused 同步窗口内按钮显示 Resume,`data-paused=true`。 |
|
||||
| W8-011 | 已完成 | Web Node 回归增加暂停底层状态断言 | `web-rtcp-5axis-xyzbc-trt-sim-plan/tests/node/verify_run_feedback_loop.mjs` | pause 后断言 `taskHalStatus.motionStatus.motion.paused=true` 且 active line 不推进。 |
|
||||
| W8-012 | 已完成 | 浏览器暂停冻结证据重跑 | `web-rtcp-5axis-xyzbc-trt-sim-plan/tools/trace-pause-position-json.mjs` | 输出 `pause_position_status=passed-position-frozen`,trace 写入 working evidence。 |
|
||||
| W8-013 | 已完成 | 50ms 长流程暂停/恢复截图重跑 | `web-rtcp-5axis-xyzbc-trt-sim-plan/tools/verify-estop-power-home-run-pause-50ms.mjs` | 输出 `verification_status=passed`,截图 manifest 记录两次暂停保持。 |
|
||||
| W8-014 | 已完成 | 更新验收证据与推进台账 | `work/working8/03-推进台账.md`、`work/working8/05-验收证据.md` | 每个完成任务都有命令、输出和路径证据。 |
|
||||
|
||||
## 防重复规则
|
||||
|
||||
1. 前端 `runState=paused` 通过不等于 `W8-003/W8-004` 完成。
|
||||
2. Node smoke 只检查 `motion.paused` true/false 不等于 STEP 对标完成。
|
||||
3. 未记录 trace 或截图路径,不得关闭浏览器验收任务。
|
||||
4. 任何 task/motion pause 行为变化必须同步更新 task matrix 和验收证据。
|
||||
Reference in New Issue
Block a user