L4-TOOL-DB接入数控系统仿真证据

结论:L4-TOOL-DB 已接入浏览器/WASM/OPFS 仿真证明链,并纳入 release/host gate;axis/db_demo/base.ngc 仍保持 L4-TOOL-DB locked,promotion_allowed=0,sim-config baseline 保持 28/28/131/0。
This commit is contained in:
2026-06-19 16:01:07 +08:00
parent db33224dd0
commit 51ae5d9a9a
14 changed files with 311 additions and 37 deletions

View File

@@ -219,7 +219,7 @@
"workflow overview release artifact validation API name",
);
assertEqual(releaseArtifactValidation.ready, true, "workflow overview release artifact validation readiness");
assertEqual(releaseArtifactValidation.gateCount, 12, "workflow overview release artifact validation gates");
assertEqual(releaseArtifactValidation.gateCount, 13, "workflow overview release artifact validation gates");
assertEqual(
releaseArtifactValidationSummary.statusLine,
"Ready: Artifact evidence complete",

View File

@@ -18,5 +18,3 @@ self.linuxCncToolDbPythonRuntimeProvider = {
async close() {},
};
await import("../../runtime/workers/tool-db-python-worker.js");

View File

@@ -85,8 +85,27 @@
assertEqual(workerPlanResult.promotionAllowed, false, "worker promotion guard");
await workerPort.close();
const missingModuleAdapter = createLinuxCncToolDbBrowserWorkerAdapter({
workerUrl: new URL("../../runtime/workers/tool-db-python-worker.js", import.meta.url),
pythonRuntimeModuleUrl: new URL("./missing_tool_db_python_runtime_provider.js", import.meta.url),
});
const missingModulePort = createLinuxCncToolDbProcessPort({
dbProgramPath: "./db_nonran.py",
runtimeMode: missingModuleAdapter.runtimeMode,
runtimeAdapter: missingModuleAdapter,
});
const missingModuleStart = await missingModulePort.start();
assertEqual(missingModuleStart.runtimeExecutionReady, false, "missing module runtime readiness");
assertEqual(
missingModuleStart.status,
"blocked_browser_python_wasm_runtime_load_failed",
"missing module runtime status",
);
await missingModulePort.close();
const fakeRuntimeAdapter = createLinuxCncToolDbBrowserWorkerAdapter({
workerUrl: new URL("./tool_db_fake_python_runtime_worker.js", import.meta.url),
workerUrl: new URL("./tool_db_python_runtime_module_worker.js", import.meta.url),
pythonRuntimeModuleUrl: new URL("./tool_db_fake_python_runtime_worker.js", import.meta.url),
});
const fakeRuntimePort = createLinuxCncToolDbProcessPort({
dbProgramPath: "./db_nonran.py",

View File

@@ -0,0 +1 @@
await import("../../runtime/workers/tool-db-python-worker.js");