01 · 只有透明
Alpha 混合;没有模糊,也没有折射。
工程任务
只透明会让背景线条穿过控件。
这是不能替代毛玻璃的透明面板。
同一份活动背板,比较透明、背景模糊与边缘折射。前景文字始终保持清楚。
Alpha 混合;没有模糊,也没有折射。
只透明会让背景线条穿过控件。
Backdrop blur + 饱和度 + 轻染色。
颜色透入,细节经过真实模糊。
SVG 位移贴图采样背后内容,弯曲边缘。
观察边界处的竖线与文字弯曲。
直接调用 SetWindowCompositionAttribute。左侧为普通透明,右侧为原生模糊,背板来自独立的实时窗口。
DWM 背景类型的调用成功不代表实际有模糊,需查看实测报告。
所有背景图形由页面生成,无图片截图纹理;没有远程媒体或 CDN。SVG 滤镜依赖浏览器支持,浏览器不支持时应回退到普通磨砂。本页不操作 CAD 或任务数据。
+ diff --git a/docs/reviews/2026-10-30-ui/material-lab.png b/docs/reviews/2026-10-30-ui/material-lab.png new file mode 100644 index 0000000..34eb62c Binary files /dev/null and b/docs/reviews/2026-10-30-ui/material-lab.png differ diff --git a/docs/reviews/2026-10-30-ui/material-verification.json b/docs/reviews/2026-10-30-ui/material-verification.json new file mode 100644 index 0000000..2f47c25 --- /dev/null +++ b/docs/reviews/2026-10-30-ui/material-verification.json @@ -0,0 +1,37 @@ +{ + "browser": "156.0.8078.73", + "backdrop_support": true, + "svg_displacement_support": true, + "frost_filter": "blur(18px) saturate(1.25)", + "effects_off": "none", + "background_transform": "matrix(1, 0, 0, 1, 65, 0)", + "compact_no_horizontal_overflow": true, + "page_errors": [], + "pixel_comparisons": [ + { + "card": 0, + "effects_on_vs_off_mean_difference": 0.8051708148482342, + "backdrop_moved_difference": 11.28541744993358 + }, + { + "card": 1, + "effects_on_vs_off_mean_difference": 14.270726560144709, + "backdrop_moved_difference": 4.7047532911265195 + }, + { + "card": 2, + "effects_on_vs_off_mean_difference": 10.785156778705165, + "backdrop_moved_difference": 8.87468481339449 + } + ], + "native": { + "sharp_horizontal_edge_energy": 4.490932590169232, + "acrylic_horizontal_edge_energy": 0.7067472915091962, + "edge_suppression_ratio": 6.354368306922327, + "live_backdrop_color_difference": 7.227865290602934, + "os_build": 26200, + "swca_returned_success": true, + "dwm_hresult": 0, + "dwm_observation": "Solid output in this isolated Qt setup after clearing SWCA; HRESULT 0 alone is not evidence of backdrop blur." + } +} diff --git a/docs/reviews/2026-10-30-ui/native-acrylic-a.png b/docs/reviews/2026-10-30-ui/native-acrylic-a.png new file mode 100644 index 0000000..d3927e5 Binary files /dev/null and b/docs/reviews/2026-10-30-ui/native-acrylic-a.png differ diff --git a/docs/reviews/2026-10-30-ui/native-acrylic-b.png b/docs/reviews/2026-10-30-ui/native-acrylic-b.png new file mode 100644 index 0000000..30a81e0 Binary files /dev/null and b/docs/reviews/2026-10-30-ui/native-acrylic-b.png differ diff --git a/docs/reviews/2026-10-30-ui/native-acrylic-live.gif b/docs/reviews/2026-10-30-ui/native-acrylic-live.gif new file mode 100644 index 0000000..43e059d Binary files /dev/null and b/docs/reviews/2026-10-30-ui/native-acrylic-live.gif differ diff --git a/docs/reviews/2026-10-30-ui/native-acrylic-probe.py b/docs/reviews/2026-10-30-ui/native-acrylic-probe.py new file mode 100644 index 0000000..aa8a647 --- /dev/null +++ b/docs/reviews/2026-10-30-ui/native-acrylic-probe.py @@ -0,0 +1,124 @@ +"""Disposable native Windows material probe, not a CAD or production UI change. + +Run with Python + PySide6 + Pillow on Windows. Opens only owned test windows, +captures their shared rectangle, then closes them. No user content is sampled. +""" +import ctypes +from ctypes import wintypes +import json +import os +from pathlib import Path +import sys + +os.environ.pop('QT_QPA_PLATFORM',None) +from PySide6.QtCore import Qt,QTimer,QRectF +from PySide6.QtGui import QColor,QFont,QPainter,QLinearGradient,QPen +from PySide6.QtWidgets import QApplication,QWidget,QVBoxLayout,QLabel +from PIL import ImageGrab + +root=Path(__file__).resolve().parent +user=ctypes.WinDLL('user32',use_last_error=True) +dwm=ctypes.WinDLL('dwmapi',use_last_error=True) +user.SetWindowCompositionAttribute.argtypes=[wintypes.HWND,ctypes.c_void_p] +user.SetWindowCompositionAttribute.restype=wintypes.BOOL +class Point(ctypes.Structure): + _fields_=[('x',ctypes.c_long),('y',ctypes.c_long)] +user.WindowFromPoint.argtypes=[Point] +user.WindowFromPoint.restype=wintypes.HWND +user.GetWindowThreadProcessId.argtypes=[wintypes.HWND,ctypes.POINTER(wintypes.DWORD)] +dwm.DwmSetWindowAttribute.argtypes=[wintypes.HWND,wintypes.DWORD,ctypes.c_void_p,wintypes.DWORD] +dwm.DwmSetWindowAttribute.restype=ctypes.c_long +class Accent(ctypes.Structure): + _fields_=[('state',ctypes.c_int),('flags',ctypes.c_int),('color',ctypes.c_uint32),('animation',ctypes.c_int)] +class Composition(ctypes.Structure): + _fields_=[('attribute',ctypes.c_int),('data',ctypes.c_void_p),('size',ctypes.c_size_t)] +def accent(hwnd,state): + policy=Accent(state,0,0x20F4F4F4,0) + data=Composition(19,ctypes.cast(ctypes.pointer(policy),ctypes.c_void_p),ctypes.sizeof(policy)) + return bool(user.SetWindowCompositionAttribute(hwnd,ctypes.byref(data))) +def backdrop(hwnd,kind): + value=ctypes.c_int(kind) + return int(dwm.DwmSetWindowAttribute(hwnd,38,ctypes.byref(value),ctypes.sizeof(value))) + +app=QApplication([]) +app.setFont(QFont('Segoe UI',11)) +screen=app.primaryScreen().availableGeometry() +width=min(1200,screen.width()-60);height=min(760,screen.height()-60) +origin=(screen.x()+(screen.width()-width)//2,screen.y()+(screen.height()-height)//2) +class Background(QWidget): + phase=0 + def paintEvent(self,event): + p=QPainter(self);p.setRenderHint(QPainter.RenderHint.Antialiasing) + p.fillRect(self.rect(),QColor('#e8edf2')) + for col in range(2): + area=QRectF(30+col*(width/2),110,width/2-60,height-155) + g=QLinearGradient(area.topLeft(),area.bottomRight()) + g.setColorAt(0,QColor('#4c79b6') if self.phase==0 else QColor('#cf8663')) + g.setColorAt(.47,QColor('#aecac9'));g.setColorAt(1,QColor('#d6a39e') if self.phase==0 else QColor('#6a88b1')) + p.fillRect(area,g) + p.setPen(QPen(QColor('#ffffffb0'),2)) + for x in range(int(area.left()),int(area.right()),24):p.drawLine(x,int(area.top()),x,int(area.bottom())) + p.setPen(QColor('#253d57'));p.setFont(QFont('Segoe UI',35,QFont.Weight.Bold)) + p.drawText(area.adjusted(22,90,-10,0),'BACKDROP\nLIVE '+str(self.phase+1)) + p.setPen(QColor('#fff'));p.setFont(QFont('Consolas',13)) + for row in range(6):p.drawText(int(area.left()+22),int(area.top()+260+row*30),'RV05 4100-CA0000-T7 100nF') + p.setPen(QColor('#34475f'));p.setFont(QFont('Segoe UI',18,QFont.Weight.DemiBold)) + p.drawText(30,38,'Native Windows / PySide6 material probe') + p.setFont(QFont('Segoe UI',10));p.setPen(QColor('#6c7f96')) + p.drawText(30,66,'Identical owned background on both sides. No screenshot texture is painted into either foreground window.') + p.drawText(30,height-17,'Captured from actual Windows composition; no CAD, no user project, no foreign window in the capture rectangle.') + +class Pane(QWidget): + def __init__(self,title,subtitle): + super().__init__(None,Qt.WindowType.FramelessWindowHint|Qt.WindowType.Tool|Qt.WindowType.WindowStaysOnTopHint) + self.setAttribute(Qt.WidgetAttribute.WA_TranslucentBackground) + layout=QVBoxLayout(self);layout.setContentsMargins(24,25,24,24) + titleLabel=QLabel(title);titleLabel.setStyleSheet('background:transparent;color:#213952;font-size:18px;font-weight:600') + hint=QLabel(subtitle);hint.setStyleSheet('background:transparent;color:#46617f;font-size:11px');hint.setWordWrap(True) + layout.addWidget(titleLabel);layout.addWidget(hint);layout.addStretch() + for text in ['Audio_D2128','Selected: RV05','Plan saved / No CAD write']: + label=QLabel(text);label.setStyleSheet('background:rgba(255,255,255,110);color:#314d6c;border:1px solid rgba(255,255,255,170);border-radius:7px;padding:10px;font-size:12px');layout.addWidget(label) + def paintEvent(self,event): + p=QPainter(self);p.fillRect(self.rect(),QColor(255,255,255,45));p.setPen(QPen(QColor(255,255,255,170),1));p.drawRect(self.rect().adjusted(0,0,-1,-1)) + +bg=Background(None,Qt.WindowType.FramelessWindowHint|Qt.WindowType.Tool|Qt.WindowType.WindowStaysOnTopHint) +bg.setGeometry(origin[0],origin[1],width,height) +left=Pane('Transparency only','OS blur disabled. Background lines and letters remain sharp.') +right=Pane('Windows Acrylic','ACCENT_ENABLE_ACRYLICBLURBEHIND. Background is composed by Windows.') +paneW=int(width/2-112);paneH=height-250 +left.setGeometry(origin[0]+56,origin[1]+143,paneW,paneH) +right.setGeometry(origin[0]+int(width/2)+56,origin[1]+143,paneW,paneH) +report={'os_build':sys.getwindowsversion().build,'capture_method':'PIL ImageGrab of owned background window rectangle, not QWidget.grab','uses_baked_backdrop':False,'ownership_grid_checked':True,'artifacts':[]} +bg.show();left.show();right.show();right.raise_();right.activateWindow() +def capture(name): + dpr=app.primaryScreen().devicePixelRatio() + bbox=tuple(round(v*dpr) for v in [origin[0],origin[1],origin[0]+width,origin[1]+height]) + for y in range(bbox[1]+3,bbox[3]-3,24): + for x in range(bbox[0]+3,bbox[2]-3,24): + hwnd=user.WindowFromPoint(Point(x,y));pid=wintypes.DWORD() + user.GetWindowThreadProcessId(hwnd,ctypes.byref(pid)) + if pid.value!=os.getpid(): + left.close();right.close();bg.close();app.quit() + raise RuntimeError('Owned test rectangle is occluded; no capture saved') + im=ImageGrab.grab(bbox=bbox,all_screens=True) + im.save(root/name);report['artifacts'].append({'file':name,'dimensions':im.size,'phase':bg.phase}) +def first(): + report['accent_api_return']=accent(int(right.winId()),4) + report['left_native_handle']=int(left.winId());report['right_native_handle']=int(right.winId()) + QTimer.singleShot(1800,second) +def second(): + capture('native-acrylic-a.png');bg.phase=1;bg.update();QTimer.singleShot(1400,third) +def third(): + capture('native-acrylic-b.png') + report['clear_accent_before_dwm']=accent(int(right.winId()),0) + report['dwm_transient_hresult']=backdrop(int(right.winId()),3) + QTimer.singleShot(1400,fourth) +def fourth(): + capture('native-dwm-acrylic.png') + (root/'native-acrylic-verification.json').write_text(json.dumps(report,ensure_ascii=False,indent=2)+'\n',encoding='utf-8') + left.close();right.close();bg.close();app.quit() +QTimer.singleShot(800,first) +QTimer.singleShot(15000,app.quit) +app.exec() +assert 'dwm_transient_hresult'in report,'Probe did not complete' +print(json.dumps(report,ensure_ascii=True)) diff --git a/docs/reviews/2026-10-30-ui/native-acrylic-verification.json b/docs/reviews/2026-10-30-ui/native-acrylic-verification.json new file mode 100644 index 0000000..8bd323f --- /dev/null +++ b/docs/reviews/2026-10-30-ui/native-acrylic-verification.json @@ -0,0 +1,37 @@ +{ + "os_build": 26200, + "capture_method": "PIL ImageGrab of owned background window rectangle, not QWidget.grab", + "uses_baked_backdrop": false, + "ownership_grid_checked": true, + "artifacts": [ + { + "file": "native-acrylic-a.png", + "dimensions": [ + 1500, + 944 + ], + "phase": 0 + }, + { + "file": "native-acrylic-b.png", + "dimensions": [ + 1500, + 944 + ], + "phase": 1 + }, + { + "file": "native-dwm-acrylic.png", + "dimensions": [ + 1500, + 944 + ], + "phase": 1 + } + ], + "accent_api_return": true, + "left_native_handle": 21301414, + "right_native_handle": 36241716, + "clear_accent_before_dwm": true, + "dwm_transient_hresult": 0 +} diff --git a/docs/reviews/2026-10-30-ui/native-dwm-acrylic.png b/docs/reviews/2026-10-30-ui/native-dwm-acrylic.png new file mode 100644 index 0000000..b6b5b3a Binary files /dev/null and b/docs/reviews/2026-10-30-ui/native-dwm-acrylic.png differ diff --git a/docs/reviews/2026-10-30-ui/polish-acceptance.json b/docs/reviews/2026-10-30-ui/polish-acceptance.json new file mode 100644 index 0000000..0f3698c --- /dev/null +++ b/docs/reviews/2026-10-30-ui/polish-acceptance.json @@ -0,0 +1,25 @@ +{ + "cad_started": false, + "sample_data_only": true, + "ownership_checked": true, + "os_build": 26200, + "native_enabled": true, + "sidebar_backdrop_difference": 21.82010089789873, + "opaque_table_backdrop_difference": 0.0, + "right_header_backdrop_difference": 9.334799022873641, + "right_execution_backdrop_difference": 12.328983050847457, + "visible_search_feedback": true, + "empty_search_feedback": true, + "solid_sidebar_mean": [ + 233.0, + 238.0, + 244.0 + ], + "solid_fallback": true, + "compact_size": [ + 980, + 700 + ], + "compact_table_height": 197, + "options_exposed": true +} diff --git a/docs/reviews/2026-10-30-ui/polish-compact.png b/docs/reviews/2026-10-30-ui/polish-compact.png new file mode 100644 index 0000000..56afb25 Binary files /dev/null and b/docs/reviews/2026-10-30-ui/polish-compact.png differ diff --git a/docs/reviews/2026-10-30-ui/polish-empty.png b/docs/reviews/2026-10-30-ui/polish-empty.png new file mode 100644 index 0000000..d5c2a5c Binary files /dev/null and b/docs/reviews/2026-10-30-ui/polish-empty.png differ diff --git a/docs/reviews/2026-10-30-ui/polish-native.png b/docs/reviews/2026-10-30-ui/polish-native.png new file mode 100644 index 0000000..8b0424e Binary files /dev/null and b/docs/reviews/2026-10-30-ui/polish-native.png differ diff --git a/docs/reviews/2026-10-30-ui/polish-search.png b/docs/reviews/2026-10-30-ui/polish-search.png new file mode 100644 index 0000000..9770c86 Binary files /dev/null and b/docs/reviews/2026-10-30-ui/polish-search.png differ diff --git a/docs/reviews/2026-10-30-ui/pr10-review-117-fixes.md b/docs/reviews/2026-10-30-ui/pr10-review-117-fixes.md new file mode 100644 index 0000000..f004a73 --- /dev/null +++ b/docs/reviews/2026-10-30-ui/pr10-review-117-fixes.md @@ -0,0 +1,29 @@ +# PR #10 第二轮审查修复(2026-10-31) + +对应[评论 #117](https://git.simgreek.com/Skyworth_Digital_Hardware/dxdesigner-part-replacement/pulls/10#issuecomment-117),基于已同步 main 的 `6f9f820`,仍在独立检出中验证,不包含主工作区未提交的 DSH 生命周期文件。 + +## P1:原执行轮次的停止意图 + +审查复现成立:用户在最后一步请求安全暂停或强制结束,而末项返回 `batch_failed` 时,队列可能已耗尽,`paused=False`。原实现先清除 `_batch_stop`,诊断开始时新建 `StopControl`,导致自动重试的 `not_stopped` 门禁失去原始停止请求。 + +现在窗口在运行收尾时保留原执行轮次的 `StopControl`(包括 `force_event`),排入诊断队列时将该对象与原 `run_id` 一起捕获。`DshAutomation` 直接复用该对象;等待诊断启动及模型回复期间的停止请求也能被同一对象观察。单任务结果、批次结果及 worker 异常回调统一经过这一传递。诊断、证据和待提交工单仍可保存,但停止后的轮次不会准备或执行失败项重试,也不会消耗重试额度。 + +新的显式确认执行通过 `_begin_run` 创建新轮次与新控制对象;不会清除或重置旧轮次的停止请求。回归验证了暂停后用户重新准备并确认执行的路径,正常重试仍可用。 + +## P2:运行时输出的 UTF-8 分块 + +审查复现成立:QProcess 输出块边界可落在中文字符的 UTF-8 字节中间,按块 `decode(..., 'replace')` 会把合法中文改成替换字符,而 JSON 仍能解析。 + +stdout 和 stderr 现分别使用持续的增量 UTF-8 解码器;stdout 完成解码后再按行解析原协议。每次启动(含重试启动)均清空协议行缓冲和两个解码器,旧进程的半行或未完成字符不会混入新进程。无改变协议前缀、任务参数、Origin 校验或动作门禁。 + +## 回归证据 + +新增 `tests/ui/test_pr10_review_edges.py` 共 15 项: + +- 单任务/批次 × 未暂停、暂停、强制结束、暂停后重新授权。使用真实 `TaskCenterService`、执行队列、持久化、`DshAutomation` 和 `IncidentRunner`,只替换外部 CAD、模型、工单传输与线程派发。明确断言末项结果 `paused=False`,停止后执行器仅调用一次,正常对照允许两次;重新授权路径仍可执行并重试。 +- worker 异常收尾覆盖未暂停、暂停和强制结束三种情况,验证诊断收到同一个原控制对象、原 run ID 和授权上下文。 +- CREATE_REQUEST 在每个字节位置拆成两块,涵盖中文、目录、自定义 Value、μ 与 emoji;多行 DIAGNOSIS 每字节分块;stderr 中文分块;通过真实 `start()` 路径验证重启清空旧半行和 UTF-8 状态。 + +修改前复现暂停/强制结束的 4 个错误重试,以及两个 Unicode 损坏用例;正常对照通过。修改后新增 15 项通过,独立复核同样通过 15 项。`tests/ui tests/dsh` 加安全停止相关回归共 156 项通过。完整 `tests/v1_1 tests/ui tests/dsh tests/packaging` 回归 **1101 项通过**,无忽略/跳过项,1 条已有 pywinauto COM 模式警告,结果见本目录的 `pr10-review-117-tests.json`。 + +本轮未启动 CAD、真实模型、浏览器运行时或远端工单传输;未重建 EXE。真实源码协议方法通过信号接收器及 QProcess 字节流替身调用。 diff --git a/docs/reviews/2026-10-30-ui/pr10-review-117-tests.json b/docs/reviews/2026-10-30-ui/pr10-review-117-tests.json new file mode 100644 index 0000000..ff6e2f2 --- /dev/null +++ b/docs/reviews/2026-10-30-ui/pr10-review-117-tests.json @@ -0,0 +1,15 @@ +{ + "command": "python -m pytest -q tests/v1_1 tests/ui tests/dsh tests/packaging --junitxml=build/pr10-review-117-tests.xml", + "tests": 1101, + "failures": 0, + "errors": 0, + "skipped": 0, + "seconds": 333.04, + "review_comment": 117, + "main_base": "2cf526e1769f354cd7e57861c4b0df9f165565dd", + "isolated_checkout": true, + "test_exclusions": [], + "warnings": [ + "pywinauto: Revert to STA COM threading mode" + ] +} diff --git a/docs/reviews/2026-10-30-ui/pr10-review-127-fixes.md b/docs/reviews/2026-10-30-ui/pr10-review-127-fixes.md new file mode 100644 index 0000000..4edbf9f --- /dev/null +++ b/docs/reviews/2026-10-30-ui/pr10-review-127-fixes.md @@ -0,0 +1,22 @@ +# PR #10 评论 #127 修复(2026-10-31) + +对应[评论 #127](https://git.simgreek.com/Skyworth_Digital_Hardware/dxdesigner-part-replacement/pulls/10#issuecomment-127)提出的两项 P3。基于 `0bc1f64` 的独立检出修改,不包含主工作区未提交文件。 + +## 畸形协议行不再丢弃后续消息 + +原 `_stdout()` 已取出一批完整行,但其中一行 `json.loads` 异常会提前退出 Qt 槽,导致同批后续行丢失。现逐行解析并隔离 JSON、对象类型和 READY 地址字段的输入错误;坏行跳过后继续处理同批合法消息。增量 UTF-8 解码与原 task_id/revision、本机 URL 检查继续生效。 + +诊断信息仅追加固定协议前缀与异常类型,并沿用 12000 字符上限;不保存坏行原文或解析异常中的载荷,避免把用户数据或凭据带入错误日志。未知普通输出仍忽略。 + +## 模型元数据原子发布 + +`provider.json` 改为先写同目录唯一临时文件,写完整后 flush/fsync,再通过 `os.replace` 发布。受控的半途写入、刷盘和替换失败均保留旧的完整 JSON,并清理临时文件。元数据仍不包含 API 密钥,DPAPI 密钥存储与加载接口保持原状。 + +此处保证元数据单文件的原子发布,不把密钥与元数据两个文件表述为一个跨文件事务。 + +## 验证 + +- 修复前新增故障用例 25 项失败,复现协议 JSON/类型异常、同批消息丢失及元数据未使用原子发布。 +- 本轮新增 27 项回归:五类协议消息 × 非法 JSON/null/list/string、READY 字段错误、坏行后的正常本机握手,以及配置写入/刷盘/替换故障。 +- 与上一轮停止意图、UTF-8 和已有配置回归合计 43 项通过;独立复核同样通过 43 项,无阻塞或重要问题。 +- 完整 `tests/v1_1 tests/ui tests/dsh tests/packaging` 回归 **1128 项通过**,无忽略/跳过项,1 条已有 pywinauto COM 模式警告;结果见 `pr10-review-127-tests.json`。未使用真实用户模型配置、未启动 CAD、真实模型或远端工单传输,未重建 EXE。 diff --git a/docs/reviews/2026-10-30-ui/pr10-review-127-tests.json b/docs/reviews/2026-10-30-ui/pr10-review-127-tests.json new file mode 100644 index 0000000..51e759e --- /dev/null +++ b/docs/reviews/2026-10-30-ui/pr10-review-127-tests.json @@ -0,0 +1,15 @@ +{ + "command": "python -m pytest -q tests/v1_1 tests/ui tests/dsh tests/packaging --junitxml=build/pr10-review-127-tests.xml", + "tests": 1128, + "failures": 0, + "errors": 0, + "skipped": 0, + "seconds": 534.309, + "review_comment": 127, + "main_base": "2cf526e1769f354cd7e57861c4b0df9f165565dd", + "isolated_checkout": true, + "test_exclusions": [], + "warnings": [ + "pywinauto: Revert to STA COM threading mode" + ] +} diff --git a/docs/reviews/2026-10-30-ui/pr10-review-134-fixes.md b/docs/reviews/2026-10-30-ui/pr10-review-134-fixes.md new file mode 100644 index 0000000..90c7cd2 --- /dev/null +++ b/docs/reviews/2026-10-30-ui/pr10-review-134-fixes.md @@ -0,0 +1,25 @@ +# PR #10 评论 #134 修复(2026-10-31) + +对应[评论 #134](https://git.simgreek.com/Skyworth_Digital_Hardware/dxdesigner-part-replacement/pulls/10#issuecomment-134)的 P2。基于 `dfbc14c` 的独立检出处理,未修改主工作区未提交内容。 + +## 配置对的一致性提交 + +原实现先覆盖固定 `provider-key.dpapi`,再发布 `provider.json`。即使 JSON 保持完整,第二步失败仍会加载旧 URL/模型与新密钥。使用不同的两个虚构服务器地址和密钥、真实 Windows DPAPI,故障注入已复现此混合;正常切换对照通过。 + +现采用版本化不可变密钥和最终原子发布指针: + +1. 每次保存用独占创建的新 `provider-key-| 替换 | 位号 | 图页 | 旧料号 | 新料号 | 原 Value | 自定义 Value | 同步 NC |
|---|
| 启用 | 旧料号 | 新料号 | 自定义 Value | 同步 NC | 目标封装 |
|---|---|---|---|---|---|
| 4100-CA0000-T7 | 4100-CA0000-T0 | 不写入 | 是 | 未指定 |
执行后核对位号、实际回读料号和保存核验状态。
完整日志与轮次证据保留独立入口。
读取来源:当前工程已保存的位号计划
助手回复不作为保存核验结果,工程写入仍需确认执行范围。