Guard tool-table direct staging

This commit is contained in:
2026-06-13 16:37:28 +08:00
parent 2c7e4644d2
commit 76124f9c9b
3 changed files with 108 additions and 12 deletions

View File

@@ -1084,3 +1084,73 @@ filesystem path guard不改变 tool table runtime semantics。
```bash
git status --short && git log -5 --oneline && tail -n 120 text7.txt && awk '/^[一二三四五六七八九十百]+、/ {print}' text7.txt | sort | uniq -d
```
二十、2026-06-13 继续执行记录tool-table direct staging guard
1. 本批目标。
继续 staged path guard inventory 第十五轮,处理 Node/browser 成对覆盖的 direct
tool table fixture path
```text
tool.tbl
random-tool.tbl
browser-direct-tool.tbl
browser-direct-random-tool.tbl
```
2. 已完成改动。
- Node 侧新增 `generatedToolTablePath(...)` 与
`writeGeneratedToolTableFixture(...)`
- Node 侧 direct `tool.tbl` 与 `random-tool.tbl` 初始写入改为走显式 path parity
guard
- browser 侧同步新增 direct tool-table fixture path guard helper
- browser 侧 `browser-direct-tool.tbl` 与 `browser-direct-random-tool.tbl` 初始写入改为
走显式 path parity guard
- 未修改 tool table fixture 内容、load/save expected output、random tool changer
配置或 tool table runtime semantics。
涉及文件:
```text
wasm-port/tests/wasm/node/verify_interp_wasm.mjs
wasm-port/tests/browser/interp_smoke.html
```
3. 已完成的目标验证。
```bash
git diff --check
node --check wasm-port/tests/wasm/node/verify_interp_wasm.mjs
SKIP_INTERP_BUILD=1 wasm-port/tests/wasm/node/verify_interp_wasm.sh
SKIP_INI_BUILD=1 SKIP_INTERP_BUILD=1 wasm-port/tests/browser/verify_interp_browser.sh
```
4. 本批剩余建议验证。
```bash
wasm-port/tools/verify_vendor_sync.sh
wasm-port/tools/verify_no_standalone_cnc_semantics.sh
SKIP_INTERP_BUILD=1 wasm-port/tests/wasm/node/verify_sim_configs_inventory_wasm.sh
wasm-port/tests/host/verify_host_smokes.sh
```
如果通过,提交建议:
```text
Guard tool-table direct staging
```
5. 下一步工作建议。
继续 staged path guard inventory 第十六轮,优先处理 browser OPFS/session tool-table
path guard例如 `/work/browser-tool.tbl`、`/work/browser-random-tool.tbl`、
`/work/browser-custom-tool.tbl`、`/work/browser-explicit-tool.tbl`;仍只加
filesystem/OPFS path guard不改变 tool table、INI 或 session runtime semantics。
下一轮第一条命令仍保持:
```bash
git status --short && git log -5 --oneline && tail -n 120 text7.txt && awk '/^[一二三四五六七八九十百]+、/ {print}' text7.txt | sort | uniq -d
```