先提交到云仓库

结论:已提交当前 Python-remap proof 链路、runtime/browser/UI/docs 相关变更;保持 L4-PYTHON-REMAP inventory baseline 不直接批量 PASS。
This commit is contained in:
2026-06-20 00:06:10 +08:00
parent fbf9dade9c
commit ac52b48d62
36 changed files with 4388 additions and 240 deletions

View File

@@ -274,6 +274,38 @@
if (!api?.getLimitsHomeState || !api?.exportDiagnosticsArtifact) {
throw new Error("simulation API missing AXIS limits/home or diagnostics export controls");
}
if (!api?.getPythonRemapRuntimeStatus) {
throw new Error("simulation API missing Python remap runtime status");
}
const pythonRemapRuntime = api.getPythonRemapRuntimeStatus();
if (
pythonRemapRuntime?.apiName !== "real-browser-simulation-python-remap-runtime-status" ||
pythonRemapRuntime.boundaryClass !== "L4-PYTHON-REMAP" ||
pythonRemapRuntime.fixtureFamily !== "axis/remap/stop-lookahead/nc_files" ||
pythonRemapRuntime.iniPath !== "axis/remap/stop-lookahead/demo.ini" ||
pythonRemapRuntime.pythonPathPrepend !== "python" ||
pythonRemapRuntime.topLevelPath !== "python/toplevel.py" ||
pythonRemapRuntime.runtimeMode !== "contract-only" ||
pythonRemapRuntime.executionEnabled !== false ||
pythonRemapRuntime.promotionAllowed !== false ||
pythonRemapRuntime.bulkPromotionAllowed !== false ||
pythonRemapRuntime.ngcOnlySubroutinePromoted !== false ||
pythonRemapRuntime.jsCncSemantics !== false ||
doc.body.dataset.pythonRemapRuntimePhase !== "locked" ||
doc.querySelector('[data-python-remap-runtime="boundary"]')?.textContent !== "L4-PYTHON-REMAP" ||
doc.querySelector('[data-python-remap-runtime="fixture"]')?.textContent !== "axis/remap/stop-lookahead/nc_files" ||
doc.querySelector('[data-python-remap-runtime="execution"]')?.textContent !== "disabled" ||
doc.querySelector('[data-python-remap-runtime="promotion"]')?.textContent !== "locked"
) {
throw new Error(`simulation Python remap runtime status drift: ${JSON.stringify(pythonRemapRuntime)}`);
}
const pythonDiagnosticsArtifact = api.exportDiagnosticsArtifact();
if (
pythonDiagnosticsArtifact.pythonRemapRuntime?.boundaryClass !== "L4-PYTHON-REMAP" ||
pythonDiagnosticsArtifact.pythonRemapRuntime?.promotionAllowed !== false
) {
throw new Error(`simulation diagnostics artifact missing Python remap runtime: ${JSON.stringify(pythonDiagnosticsArtifact.pythonRemapRuntime)}`);
}
if (!api?.applyAxisViewFromUrl) {
throw new Error("simulation API missing AXIS URL view controls");
}