参考所有分组,完成尽量多的内容:收紧switchkins source-map边界守卫

This commit is contained in:
cnc
2026-06-05 06:57:11 +08:00
parent f64db24060
commit 79077fa695
2 changed files with 22 additions and 3 deletions

View File

@@ -1,7 +1,7 @@
# LinuxCNC switchkins/remap source map
This map records the source basis for generated M428/M429/M430 switchkins
aliases and config cases. It is a generator/table map only; it must not add new smoke parser behavior or expose LinuxCNC source-only assets as browser API fields.
aliases and config cases. It is a generator/table map only; it must not add CNC behavior, must not expand the temporary smoke parser, and must not expose LinuxCNC source-only assets as browser API fields.
## LinuxCNC Source Basis
@@ -31,6 +31,12 @@ aliases and config cases. It is a generator/table map only; it must not add new
are source coverage, not browser API surface.
- Generated tables must continue to derive M428/M429/M430 kinstypes from
LinuxCNC remap `#<kinstype>` assignments, not from hand-authored behavior.
- `test-native.sh`, `test-linuxcnc-source-link.sh`, and `build-wasm.sh` must
run `./check-linuxcnc-switchkins-remap-source-map.sh` before consuming
generated config aliases, source-linked LinuxCNC objects, or browser
artifacts.
- The switchkins/remap source-map guard validates LinuxCNC source/config
ownership and generated table drift only; it does not interpret G-code.
## Checks