Skip to content

Bring PS5 GTA6 to 120FPS with DLSS 5. An advanced Windows video player and capture enhancement tool featuring real-time preview for videos, images, and capture card sources. Combine AI-powered Super Resolution, DLSS5 image enhancement, and Frame Generation to deliver a next-generation visual experience.

C++

release: prepare formal Veyra 2.0.5 publication

Veyra Goal Agente44e82811971
diff --git a/AGENTS.md b/AGENTS.md
index efc90749..fda2ca93 100644
--- a/AGENTS.md
+++ b/AGENTS.md
@@ -1,5 +1,7 @@
# Veyra 项目 Agent 执行规则
+> **2026-10-07 2.0.5 正式发布授权**:用户明确“发布吧,2.0.5 老样子发完给我弄个群公告”。按docs/PUBLISH_2.0.5_PLAN_2026-10-07.md,仅将已测2.0.5做发布文档/元数据整理,允许本轮main合并、普通推送、v2.0.5标签、正式GitHub Release与5项资产上传;本条覆盖此前本地交付的no-push/no-Release限制。产品EXE/QML/shader/运行库/模型保持;NVIDIA显存持续增长未修复,留待下一版,不实施假说。群公告只交用户、不代发,不关机。独立start基线保护28既有工作树/495修改文件/53历史证据,先运行本轮publish-2.0.5-control.py,旧guard不修改。不派Agent、无压力/竞争负载、不改用户配置/驱动,所有产物E盘,保留双二维码width220、Discord和Ko-fi。
+
> **2026-10-07 2.0.5 本地整合授权**:用户明确要求先将目前完成的修复合入 main,构建 2.0.5 给用户测试,显存持续增长留待下一版本详细排查。按 `docs/RELEASE_2.0.5_PLAN_2026-10-07.md` 在 E盘 `codex/release-2.0.5-20261007` 整合已测 ef2069f/4c917aa 及其调查记录,仅修改版本、文档和必要构建/定向验收/打包脚本;不实施未证实的 NR Shutdown、驱动或显存假说修复。允许本地 commit/checkpoint/main 合并和 NVIDIA/AMD 同源码测试包,不新增 push/GitHub Release/上传/关机授权。独立不可变基线 `archives/release-2.0.5-20261007/start.json` 保护27个原工作树(main只按授权推进)、495个未提交文件及14份已发布文件;先执行本轮 control,不修改旧 guard/baseline。不派Agent、不做压力/竞争负载、不改DLL/模型/驱动/用户配置;测试每进程≤300秒,构建≤900秒,全部产物统一 E:/项目/Veyra。
> **2026-10-06 稳定性/导出/性能回归修复授权**:用户要求一起解决 AMD 补帧选择异常、补帧导出 DLSS 限制、NR 导出 1080p 限制、跨来源撕裂及 2.0.3→2.0.4 性能回退,确认使用当前电脑、NVIDIA 原版 NR、4K 视频输入。按 `docs/STABILITY_EXPORT_PRIORITY_PLAN_2026-10-06.md` 在 E盘 `codex/stability-export-priority-20261006` 从 main `578d63c` 隔离修复共享 graph/presenter/导出冻结与 codec/能力选择/QML及必要构建测试接点;本次具体范围覆盖历史冻结。先运行本轮 `scripts/acceptance/stability-export-priority-control.py`,独立开工基线不可修改;保留25个工作区及已发布包。不得派Agent、压力/竞争负载、修改DLL/模型/驱动/其他应用或用户配置。每个测试≤300秒,构建≤900秒,产物统一E盘。本轮交付本地可测修复包,未授权新的公开发布、贡献者消息或关机;AMD真实HIP推理、物理屏幕扫描与RTX软件测试分别报告。
diff --git a/README.md b/README.md
index 91e6eca1..87ff8c8c 100644
--- a/README.md
+++ b/README.md
@@ -61,9 +61,9 @@ Turn local video, capture cards and game streaming into one real-time GPU enhanc
---
-**2.0.4 release, 2026-10-06:** performance improvements, NR strength 5 with style-specific picture control, Xbox/capture recovery, ASS subtitles, UI and unified presets. [Full release notes](docs/RELEASE_NOTES_2.0.4.md).
+**2.0.5 release, 2026-10-07:** telemetry performance regression, AMD FG defaults and NR composition, FSR/multi-NR export, OBS repaint, Auto display sync and adapted PR #19/#20. [Full release notes](docs/RELEASE_NOTES_2.0.5.md).
-**Measured performance:** the dual-NR/SR4K/DLSS2X enhancement interval improved 3.52%; native single-layer NR remains about 6.1ms and software-Present P99 is nearly unchanged. Creation, paused editing and process GPU utilization are reported separately in the [measurement report](docs/PERF_RELEASE_REPORT_2.0.4_2026-10-06.md). Severe background loss and GPU-UI OBS Game Capture remain unresolved; the existing OBS compatibility mode is available. HDR/Dolby PRs remain deferred.
+**Measured performance:** on RTX 5070, original single-layer internal 1080p NR at actual Normal priority, the same-EXE telemetry comparison reduced NR interval **5.80%** and UI submissions **89.06%**. Matched comparisons with 2.0.3 differed +0.009% (GTA 4K30) / −0.638% (4K60). These are local interval/UI measurements, not latency or VRAM gains. [Conditions and results](docs/RELEASE_NOTES_2.0.5.md). **NVIDIA VRAM growth remains unresolved**, with deeper investigation deferred to the next version; real AMD offline encoding and physical display tests remain incomplete. PR #13/#14 stay deferred.
## Highlights
@@ -75,18 +75,18 @@ Turn local video, capture cards and game streaming into one real-time GPU enhanc
- **New export workflow:** editable ordered queue, trimming, MP4/MKV, multiple audio/embedded subtitle tracks, cancellation/retry and completion sound.
- **Enhancement and compatibility:** four NR runtime choices (NVIDIA original for RTX 50, Lecram, SF-v2 and AMD lmxxf), DLSS/XeSS/FSR options, capture improvements and a persistent OBS Game Capture switch with restart confirmation. Full details are in the Release.
-## New in 2.0.4
+## New in 2.0.5
-- **NR strength and picture control:** total strength up to 5, optional per-layer automatic/manual control, separate automatic settings for styles 0/1/2, an amount slider and nine manual controls.
-- **Performance:** reuse eligible NR cores and single-NR configurations, avoid repeated work while paused, and improve selected dual-NR/SR/FG and export scheduling. The matched dual-NR1080/SR4K/DLSS2X enhancement interval fell **3.52%**; warm NR creation fell **75.83%**. See the [measurement report](docs/PERF_RELEASE_REPORT_2.0.4_2026-10-06.md) for conditions and limits. Prewarming defaults off.
-- **Playback and reliability:** custom 0.25–4× speed with preserved pitch, libass ASS subtitles/font attachments, bounded Xbox decoder recovery, capture cadence/history repairs, AMD NR enablement and restored GPU timing after graph rebuilds.
-- **UI and presets:** resizable Professional panels, typed slider values and fullscreen/RTSS/floating-control repairs. Existing List/Node presets can optionally include optical flow, estimation quality and content cadence; unchecked values remain unchanged. Unset GPU scheduling requests Realtime; saved choices are retained.
+- **Performance:** bound telemetry updates to avoid monitor-rate GPU contention; matched Normal-priority comparisons no longer showed the approximately 7% regression in the tested GTA/4K60 cases.
+- **AMD and export:** prefer available FSR then XeSS for AMD/Intel, migrate unavailable saved DLSS choices, retain FSR in offline exports and repair multi-NR setting snapshots. AMD video NR can use internal 1080p with original-size output; actual AMD offline encoding remains unverified. XeSS FG export remains explicitly unsupported.
+- **Compatibility and display:** repair OBS software-UI scroll trails and lmxxf linear-output composition; Auto now synchronizes in window/fullscreen while manual tearing stays selectable.
+- **PR #19/#20:** opt-in HDR display tuning with preset/session adaptation, UTF-8 logs and RemotePlay-off builds. HDR display tuning is not baked into offline export.
-[Full 2.0.4 release notes and validation limits](docs/RELEASE_NOTES_2.0.4.md).
+[Full 2.0.5 release notes, measurements and validation limits](docs/RELEASE_NOTES_2.0.5.md).
## Install and upgrade
-Download **Veyra-2.0.4-NVIDIA-win64-portable.zip** or **Veyra-2.0.4-AMD-win64-portable.zip** for Veyra's active GPU. Extract with Windows or 7-Zip into a new writable folder and run **veyra_qml_ui.exe**. You need one GPU package to run the application; source assets are only for rebuilding. Windows 11 x64 and DirectX 12 are required; Qt and approved runtimes are included, while GPU/capture drivers are installed separately. Backend hardware requirements vary; most local tests used an RTX 5070.
+Download **Veyra-2.0.5-NVIDIA-win64-portable.zip** or **Veyra-2.0.5-AMD-win64-portable.zip** for Veyra's active GPU. Extract with Windows or 7-Zip into a new writable folder and run **veyra_qml_ui.exe**. You need one GPU package to run the application; source assets are only for rebuilding. Windows 11 x64 and DirectX 12 are required; Qt and approved runtimes are included, while GPU/capture drivers are installed separately. Backend hardware requirements vary; most local tests used an RTX 5070.
Start with effects off, check picture/sound, then enable effects individually. High resolution, layered NR and frame generation increase GPU/VRAM requirements.
@@ -105,7 +105,7 @@ Home offers files, capture card, PS5, PC, Xbox and screen capture. Files/images
### List mode
-The NR version selector offers RTX 50 · NVIDIA original, RTX 50 · Lecram, RTX 20–50 · SF-v2 and RX9000 · lmxxf (experimental) in both List and Node mode. Unsupported versions remain visible but gray; switching supported versions updates the entire NR chain. AMD NR requires driver HIP 7 and is limited to its 1080p pixel budget; HDR/native 1440p or 4K NR export is unavailable. See [runtime identities](docs/RUNTIME_COMPONENTS_2.0.3.md).
+The NR version selector offers RTX 50 · NVIDIA original, RTX 50 · Lecram, RTX 20–50 · SF-v2 and RX9000 · lmxxf (experimental) in both List and Node mode. Unsupported versions remain visible but gray; switching supported versions updates the entire NR chain. AMD NR requires driver HIP 7. Video export uses at most internal 1080p inference and composites to the original output size; this is not native 4K NR and actual AMD offline encoding still needs hardware retesting. Image exports retain the native model pixel budget; HDR NR is unavailable. See [runtime identities](docs/RUNTIME_COMPONENTS_2.0.3.md).
Select List at the top of Professional. Enable SR, NR or RTX Video HDR as needed. Up to four NR layers have independent internal resolution, strength and parameters. The master switch disables all layers and restores their previous enabled states.
@@ -124,7 +124,7 @@ Select Nodes at the top of Professional. This is an executable chain editor:
5. Optical flow is shared after input; SR is a single instance. RTX Video HDR stays before final FG; select one DLSS/XeSS/FSR backend. This is not an arbitrary branching/mixing graph.
6. List and Node settings, presets and sessions are separate. Returning to List restores its settings and retains the node graph. Switching rebuilds processing and may briefly pause the picture.
-**2.0.4 Node mode does not support offline export or List mode's global NR protection region.** Switch to List and verify its effects before exporting; graphs are not silently converted.
+**2.0.5 Node mode does not support offline export or List mode's global NR protection region.** Switch to List and verify its effects before exporting; graphs are not silently converted.
### Capture and streaming
@@ -179,7 +179,7 @@ QML renders UI; native D3D12 renders video. List/Nodes share the engine, disconn
## Source and build
-Original code: GPL-3.0. The combined Chiaki streaming application is also subject to AGPL-3.0 and its OpenSSL exception (licenses/remoteplay). [Third-party notices](THIRD_PARTY_NOTICES.md), [2.0.4 build/source](docs/BUILD_2.0.4.md). Source Git excludes proprietary runtimes/models. Release manifests audit publisher files, not hash-lock user DLL replacements.
+Original code: GPL-3.0. The combined Chiaki streaming application is also subject to AGPL-3.0 and its OpenSSL exception (licenses/remoteplay). [Third-party notices](THIRD_PARTY_NOTICES.md), [2.0.5 build/source](docs/BUILD_2.0.5.md). Source Git excludes proprietary runtimes/models. Release manifests audit publisher files, not hash-lock user DLL replacements.
## Support
diff --git a/README_CN.md b/README_CN.md
index 7bbff4c0..85b9958f 100644
--- a/README_CN.md
+++ b/README_CN.md
@@ -14,11 +14,11 @@
Windows 视频、图片、采集卡与串流增强工具。在同一处理链组合超分辨率、NR 画面增强、调色、RTX Video HDR 与补帧。社区增强能力保留实验性质。
-[下载 2.0.4 免安装版](https://github.com/Likely7/Veyra-NRVideo/releases/tag/v2.0.4) · [完整更新(English / 中文)](docs/RELEASE_NOTES_2.0.4.md) · [反馈](https://github.com/Likely7/Veyra-NRVideo/issues)
+[下载 2.0.5 免安装版](https://github.com/Likely7/Veyra-NRVideo/releases/tag/v2.0.5) · [完整更新(English / 中文)](docs/RELEASE_NOTES_2.0.5.md) · [反馈](https://github.com/Likely7/Veyra-NRVideo/issues)
-**2.0.4 正式版,2026-10-06:** 本次整合性能优化、NR强度5与三风格画面调控、Xbox/采集恢复、ASS字幕、界面和统一预设修复。详见[完整更新](docs/RELEASE_NOTES_2.0.4.md)。
+**2.0.5 正式版,2026-10-07:** 修复统计界面性能回退、AMD补帧默认项/NR合成、FSR与多层NR导出、OBS重绘、自动显示同步,并适配PR #19/#20。详见[完整更新](docs/RELEASE_NOTES_2.0.5.md)。
-**实测数据:** 双NR+4K超分+DLSS2X处理区间降低3.52%;单层原生NR仍约6.1ms,软件Present P99基本不变。重建、暂停编辑及暂停GPU占用分别报告,详见[优化数据](docs/PERF_RELEASE_REPORT_2.0.4_2026-10-06.md)。严重后台掉帧根因与GPU界面OBS游戏采集限制仍未解决,OBS可用现有兼容模式;HDR/杜比PR继续暂缓。
+**实测数据:** 本机RTX5070、原版单层内部1080p NR、实际普通优先级,同EXE统计动画对照的NR区间降低 **5.80%**,UI提交减少 **89.06%**。与2.0.3匹配对照差+0.009%(GTA 4K30)/−0.638%(4K60)。这些是限定条件下的处理区间/UI数据,不是延迟或显存降幅。[完整条件](docs/RELEASE_NOTES_2.0.5.md)。**NVIDIA显存持续增长仍未修复**,下版深入排查;AMD实卡离线编码及物理显示仍待验证。PR #13/#14继续暂缓。
## 2.0.0 重点
@@ -30,18 +30,18 @@ Windows 视频、图片、采集卡与串流增强工具。在同一处理链组
- **导出页重做**:可编辑顺序队列、剪辑、MP4/MKV、多音轨/内嵌字幕、取消重试和完成提示音。
- **增强与兼容**:NR 四版本(50 系 NVIDIA 原版、Lecram、SF-v2、AMD lmxxf)、DLSS/XeSS/FSR 补帧入口、采集优化及带重启确认的 OBS 游戏采集开关。详细新功能与修复见 Release。
-## 2.0.4 新增与修复
+## 2.0.5 新增与修复
-- **NR 强度与画面调控**:总变化强度最高5;每层可选自动/手动,自动分别适配风格0/1/2,新增力度滑块与九项手动参数。
-- **性能优化**:复用符合条件的NR核心/单NR配置,暂停时减少重复工作,优化限定双NR/超分/补帧组合与导出调度。同条件双NR1080+SR4K+DLSS2X增强区间降低 **3.52%**,NR暖创建耗时降低 **75.83%**;条件和边界见[实测报告](docs/PERF_RELEASE_REPORT_2.0.4_2026-10-06.md)。预热默认关闭。
-- **播放与稳定性**:自定义0.25–4倍速保调,libass ASS特效字幕/字体附件,Xbox有界解码恢复,采集节奏/掉帧历史修复,AMD NR启用及重建后GPU耗时采样恢复。
-- **界面与预设**:专业面板可拖宽,滑条数字可直接输入,修复全屏/RTSS/浮窗误触。已有列表/节点预设可勾选保存光流算法、估算质量及内容节奏,未勾选项保留当前值。未保存GPU优先级时默认实时,已有选择保留。
+- **性能回退**:限制统计动画无效高频重绘;GTA/4K60普通优先级匹配对照未再出现约7%差距。
+- **AMD与导出**:默认优先可用FSR、其次XeSS,迁移不可用旧DLSS选择;FSR离线导出不再强换DLSS,多层NR冻结参数一致。AMD视频NR支持内部1080p合成原尺寸输出,实卡离线编码待复测;XeSS补帧导出仍明确不支持。
+- **兼容与显示**:修复OBS软件界面滚动拖影和lmxxf线性输出合成;自动显示同步在窗口/全屏生效,手动允许撕裂保留。
+- **PR #19/#20**:可选HDR显示调优及预设/会话适配,修复UTF-8日志和RemotePlay-off构建;显示调优不烘焙进离线导出。
-[2.0.4 完整更新与验收边界](docs/RELEASE_NOTES_2.0.4.md)。
+[2.0.5 完整更新、数据与验收边界](docs/RELEASE_NOTES_2.0.5.md)。
## 下载、启动与升级
-1. 按 Veyra 实际使用的显卡下载 **Veyra-2.0.4-NVIDIA-win64-portable.zip** 或 **Veyra-2.0.4-AMD-win64-portable.zip**,用 Windows 或 7-Zip 完整解压到可写新目录,运行 **veyra_qml_ui.exe**。运行只需一个显卡包,源码包仅供重编译。
+1. 按 Veyra 实际使用的显卡下载 **Veyra-2.0.5-NVIDIA-win64-portable.zip** 或 **Veyra-2.0.5-AMD-win64-portable.zip**,用 Windows 或 7-Zip 完整解压到可写新目录,运行 **veyra_qml_ui.exe**。运行只需一个显卡包,源码包仅供重编译。
2. Windows 11 x64、DirectX 12;无需安装 Qt、Python 或开发 SDK。显卡/采集卡驱动仍需安装。后端各有硬件要求,主要实测显卡为 RTX 5070。
3. 先关闭效果确认基础画面和声音,再逐项开启。8K、多层 NR 和补帧会增加显存与处理时间,不保证所有组合实时运行。
4. **1.4.4 教程不再适用。** 2.0 使用独立配置目录,保留旧版用于回退;不要直接复制旧 `veyra.ini`、整个 `runtime_local` 或混装 DLL 覆盖新版。
@@ -59,7 +59,7 @@ Windows 视频、图片、采集卡与串流增强工具。在同一处理链组
### 列表模式
-列表与节点的 **NR 版本** 均可选四项:RTX 50 · NVIDIA 原版、RTX 50 · Lecram、RTX 20–50 · SF-v2、RX9000 · lmxxf(实验)。不支持的版本保留置灰,支持的版本切换时全 NR 链同步。AMD NR 需要驱动 HIP 7,内部最高 1080p 像素预算,HDR/原生 1440p/4K NR 导出不支持。[运行组件身份](docs/RUNTIME_COMPONENTS_2.0.3.md)。
+列表与节点的 **NR 版本** 均可选四项:RTX 50 · NVIDIA 原版、RTX 50 · Lecram、RTX 20–50 · SF-v2、RX9000 · lmxxf(实验)。不支持的版本保留置灰,支持的版本切换时全 NR 链同步。AMD NR需要驱动HIP 7;视频最高内部1080p推理并合成原尺寸输出,不等于原生4K NR,实卡离线编码待复测;图片保持原尺寸模型预算,HDR NR不可用。[运行组件身份](docs/RUNTIME_COMPONENTS_2.0.3.md)。
顶部选 **列表**,按需开启超分、NR、RTX Video HDR。NR 最多四层,独立调整内部尺寸、强度等参数;总开关关闭全部 NR,重开恢复各层原状态。
@@ -78,7 +78,7 @@ Windows 视频、图片、采集卡与串流增强工具。在同一处理链组
5. 光流在输入后计算并共享,超分为单实例;RTX Video HDR 在补帧前,补帧固定末端,DLSS/XeSS/FSR 选一个后端。不是任意分支混合图。
6. 列表和节点分别保存参数、预设、会话。切回列表恢复原列表配置,节点链保留;切换重建处理链,可能短暂停顿。
-**2.0.4 节点模式不支持离线导出,也没有列表的 NR 全局保护区域。** 导出前切回列表并确认效果,不会自动转换节点链。
+**2.0.5 节点模式不支持离线导出,也没有列表的 NR 全局保护区域。** 导出前切回列表并确认效果,不会自动转换节点链。
### 采集与串流
@@ -133,7 +133,7 @@ QML 管界面,视频由原生 D3D12 呈现。列表/节点共用引擎,未
## 开源与构建
-Veyra 原有代码 GPL-3.0;含 Chiaki 串流的组合程序同时适用 AGPL-3.0 与上游 OpenSSL 例外(见 licenses/remoteplay)。[第三方来源与许可](THIRD_PARTY_NOTICES.md)、[2.0.4 构建与对应源码](docs/BUILD_2.0.4.md)。源码与运行库/模型分离;Release manifest 用于发行审计,不用哈希锁阻止用户替换 DLL。
+Veyra 原有代码 GPL-3.0;含 Chiaki 串流的组合程序同时适用 AGPL-3.0 与上游 OpenSSL 例外(见 licenses/remoteplay)。[第三方来源与许可](THIRD_PARTY_NOTICES.md)、[2.0.5 构建与对应源码](docs/BUILD_2.0.5.md)。源码与运行库/模型分离;Release manifest 用于发行审计,不用哈希锁阻止用户替换 DLL。
## 支持与反馈
diff --git a/docs/BUILD_2.0.5.md b/docs/BUILD_2.0.5.md
index 2003f826..2abd9712 100644
--- a/docs/BUILD_2.0.5.md
+++ b/docs/BUILD_2.0.5.md
@@ -1,11 +1,19 @@
-# Veyra 2.0.5 本地测试包对应源码
+# Veyra 2.0.5 corresponding source and build / 对应源码与构建
-应用源码为同目录 `Veyra-2.0.5-source.zip`;源码提交与SHA见 `DELIVERY.json` / 包内manifest。本次只更新Veyra版本和整合已完成修复,外部依赖未替换。
+Download both [2.0.5 application source](https://github.com/Likely7/Veyra-NRVideo/releases/download/v2.0.5/Veyra-2.0.5-source.zip) and [2.0.5 dependency source](https://github.com/Likely7/Veyra-NRVideo/releases/download/v2.0.5/Veyra-2.0.5-dependency-source.zip). Use a GPU-matching complete portable package to run the application. Exact source commit, executable identity and hashes are recorded in package-manifest.json and SHA256SUMS.txt.
-沿用2.0.4已核验的 `Veyra-2.0.4-dependency-source.zip`,SHA256 `4eccde6343d66e0511b641aaacc12b999e424738a383fcce268d762abb3dceb9`,本机位于 `E:/项目/Veyra/releases/publish-2.0.4-20261006/`。依赖的固定提交、许可证及构建材料见 [2.0.4构建说明](BUILD_2.0.4.md) 与相应source manifests;不要将2.0.4应用源码误当本次应用源码。
+The dependency asset is byte-identical to the 2.0.4 dependency-source ZIP, SHA256 `4eccde6343d66e0511b641aaacc12b999e424738a383fcce268d762abb3dceb9`, renamed for this release. No dependency/runtime/model was upgraded. Follow [2.0.4 dependency details](BUILD_2.0.4.md) and [2.0.0 baseline build](BUILD_2.0.0.md) with the current Veyra source/version. The old 2.0.4 application source is not the source of this release.
-Visual Studio2022/MSVC x64、C++20、CMake/Ninja、Python3.11、Qt6.8.3。保留FFmpeg PS5 H264 slice补丁和静态libass/字体依赖;RemotePlay、Moonlight、Xbox及必要公开依赖路径沿用固定缓存。配置 `-DVEYRA_DISPLAY_VERSION=2.0.5`,项目/PE数字版本也为2.0.5。构建 `veyra_qml_ui`,按本轮验收记录执行实际QML入口定向测试。
+Extract nested unchanged/ source archives as documented there. They retain Qt 6.8.3, patched FFmpeg/dav1d, Chiaki, Moonlight, Xbox/WebRTC, OpenSSL and FidelityFX SDK 2.3.0. Preserve FFmpeg's PS5 H.264 32→256 slice patch and veyra-local-build.json. Also retained: pinned MIT lmxxf 78f5487 source/build adaptation, MIT VFG reference 52011f8, and static subtitle tarballs/ports/patches for libass 0.17.5, FreeType 2.14.3, FriBidi 1.0.16, HarfBuzz 14.4.0, libpng 1.6.58, zlib 1.3.2, Brotli 1.2.0 and bzip2 1.0.8, with vcpkg 30ef65cad98f08e7197c9a1656fbd871bcb72f2d. SoundTouch 2.4.1 remains in application source. Proprietary SDK/runtime files, model weights and HIP code objects are excluded from source.
-本机复现脚本 `scripts/acceptance/release-2.0.5-build.py` 从已审计 `build/list-preset-flow-20261006/CMakeCache.txt` 提取外置依赖到新任务构建目录,不重用旧编译输出。其他机器应显式配置自身外置路径,不能照搬本机绝对路径。新工作树/不可变基线/测试输出按本轮PLAN设置;脚本不适用于脱离这些前提的任意目录。
+Use Visual Studio 2022/MSVC x64, Windows SDK, C++20, CMake/Ninja, Python 3.11 and Qt 6.8.3 MSVC2022 x64. Configure explicit external paths as in BUILD_2.0.0, enable QML/RemotePlay/Moonlight/Xbox as required, and set `-DVEYRA_DISPLAY_VERSION=2.0.5`. Current CMake numeric version is 2.0.5; shipped PE File/ProductVersion is 2.0.5.0. Build `veyra_qml_ui`. RemotePlay-off retains the C compilation required by Moonlight/Xbox. Point `-DVEYRA_LIBASS_ROOT=<installed/x64-windows-static>` at the pinned static subtitle build.
-同EXE/QML/shaders分别组合已批准NVIDIA/AMD组件;不将SDK、专有运行库或模型进入源码Git/源码ZIP。不改proprietary DLL;Qt动态链接可替换,静态LGPL组件可按提供源码重编译/重链接。此次仅本地测试交付,未创建公开2.0.5 Release。
+Modified static libass/font dependencies can be rebuilt from supplied tarballs and pinned vcpkg ports, then relinked into Veyra using the application source/build scripts. Qt is dynamically linked and replaceable. Optional VFG builds need external CUDA driver development headers through VEYRA_CUDA_DRIVER_INCLUDE_DIR; no driver/proprietary SDK headers are supplied in source. AMD driver HIP 7 and model/runtime payloads remain separate.
+
+Both vendor packages share one executable/QML/shader set. A new build can use package-qml-release.py followed by package-vendor-release.py with explicit external build/runtime/Qt/license/output paths; vendor staging audits driver exclusions, PE imports and runtime identities. Publication scripts publish-2.0.5-*.py freeze this publisher's already-tested executable and package paths, and serve as evidence rather than portable path defaults. Other machines must set their own external dependency locations.
+
+The application ZIP comes from the exact clean release commit. One historical tracked Python bytecode cache is explicitly omitted; no source code is excluded and the original Git file is preserved. Product source files match the fresh tested 2.0.5 build; publication changes are documents/scripts/metadata only.
+
+Veyra original code is GPL-3.0; the combined Chiaki application also carries AGPL-3.0 and its OpenSSL exception. Preserve THIRD_PARTY_NOTICES.md, runtime/source manifests and licenses. MIT host/sample code does not relicense proprietary models or NVIDIA runtimes. Publisher manifests do not lock compatible user runtime replacements.
+
+中文:重编译同时使用本Release应用源码与依赖源码;依赖ZIP与2.0.4逐字节相同,仅改名2.0.5,应用源码必须用本版。保留FFmpeg slice补丁、静态字幕依赖源码/重链接材料。项目数字/显示版本2.0.5,PE版本2.0.5.0。其他机器显式配置自己的外置目录,不能照搬本机E盘路径。RX9000预览可用来自用户反馈,AMD高分辨率HIP离线导出/硬编码仍待实卡验证,NV显存持续增长未修复。
diff --git a/docs/CURRENT_STATUS.md b/docs/CURRENT_STATUS.md
index 0b5bb18a..249ffe26 100644
--- a/docs/CURRENT_STATUS.md
+++ b/docs/CURRENT_STATUS.md
@@ -1,5 +1,9 @@
# 当前项目状态 / Current Status
+## 2026-10-07 2.0.5 正式发布
+
+用户在本地交付后新增明确发布授权,按[PUBLISH_2.0.5_PLAN](PUBLISH_2.0.5_PLAN_2026-10-07.md)整理正式版本;下方“未授权发布”只描述各历史阶段。产品与已测2.0.5保持,发布阶段只更新文档/脚本/包元数据;最新线上状态及正式资产身份以本轮GitHub回执为准。详情见[正式更新](RELEASE_NOTES_2.0.5.md)。NVIDIA显存持续增长仍未定位/修复,AMD真实HIP高分辨率导出/硬编码仍待复测。
+
## 2026-10-07 2.0.5 本地测试包整合
用户要求将已完成的跨厂商补帧/导出、AMD旧DLSS选择迁移、自动显示同步及统计动画性能修复合入main并构建2.0.5本地测试包。隔离分支codex/release-2.0.5-20261007从71483d5准备,保留既有PR19/20和fix1;具体进度以 [整合验收记录](RELEASE_2.0.5_ACCEPTANCE_2026-10-07.md) 与任务DELIVERY/main-merge收据为准。公开版仍2.0.4,本次未授权新公开发布。
diff --git a/docs/PUBLISH_2.0.5_PLAN_2026-10-07.md b/docs/PUBLISH_2.0.5_PLAN_2026-10-07.md
new file mode 100644
index 00000000..5befcb68
--- /dev/null
+++ b/docs/PUBLISH_2.0.5_PLAN_2026-10-07.md
@@ -0,0 +1,14 @@
+# Veyra 2.0.5 正式发布计划
+
+用户在本地测试交付后明确授权:“发布吧,2.0.5 老样子发完给我弄个群公告”。允许本次main合并、普通推送、v2.0.5标签和GitHub正式Release上传;群公告只交用户,不代发,不关机。不继续显存假说施工,不修改产品代码、DLL、模型、驱动、用户配置或其他工作树。
+
+源起点main54740646cbc6b416beeda0cf92ffa8c39f66ae32;隔离工作树E:/项目/Veyra/worktrees/publish-2.0.5-20261007,同名codex分支。发布前fetch确认远端nrvideo/main为578d63c,v2.0.5标签/Release不存在。独立开工封存28个既有工作树、495个未提交文件、1724个源输入与53份历史/本地交付证据;start SHA256 a94e3e83c8b80dc16adb1e65c68b508fb9e56f3af5b944b45c264b516c6c9c0d。每轮先运行scripts/acceptance/publish-2.0.5-control.py,旧baseline/guard不改。
+
+1. 仅替换README当前更新区和必要版本/已失效限制;保留其他内容、Discord、Ko-fi与双二维码width220。写双语详细Release说明,分别标注当前验收、fix2匹配性能证据、AMD用户反馈及未验证项。NV显存持续增长明确未修复、下版排查。
+2. 冻结当前已测2.0.5生产EXE acd49a23074b58ec9698d260d63b2d5a59a640627e09a9b83f0127ae47ebb936。两正式包从本地2.0.5逐文件manifest复制,更新发布文档与manifest;运行组件/许可证、EXE、QML、shader和依赖字节保持。不因文档发布重建产品或重复GPU性能测试。
+3. 提交文档/发布脚本,--no-ff合入main并验证树完全一致;记录允许推进的main收据。源码ZIP来自精确发布提交,排除唯一历史tracked pyc但保留原Git文件;检查全清单/CRC/每文件SHA,保留Git bundle。依赖源码与2.0.4资产字节相同,改名2.0.5,SHA4eccde6343d66e0511b641aaacc12b999e424738a383fcce268d762abb3dceb9。
+4. 两正式包逐文件SHA、跨厂商边界/PE依赖审计、全部ZIP CRC/载荷核验。各从最终ZIP新解压,私有profile和仅系统PATH启动,检查Qt/FFmpeg模块来自各自包。每测试进程≤300秒,无压力/竞争负载,不派Agent。
+5. 正常推送nrvideo/main及v2.0.5标签,先建草稿,上传NVIDIA/AMD、应用源码、依赖源码与SHA256SUMS共5资产。核对远端digest/大小、标签指向、正文和支持区;通过后改为正式最新版本,再核对公开下载/QR可访问性。无force push或覆盖旧资产。
+6. WORKLOG/正式回执记录实际结果,群公告≤1000字,量化数据带本机条件,不把UI提交减少冒充延迟/显存降低,不把RX9000预览反馈扩展为AMD离线编码验收。
+
+产物统一E:/项目/Veyra/{archives,logs,releases,tests,tmp,verify}/publish-2.0.5-20261007。实际GitHub ID、提交/资产SHA、冷启和线上核验以任务JSON回执为准。保留当前构建/最终包/必要证据,不重试此前自动审批已拒绝的清理。
diff --git a/docs/RELEASE_NOTES_2.0.5.md b/docs/RELEASE_NOTES_2.0.5.md
new file mode 100644
index 00000000..aa3a3a21
--- /dev/null
+++ b/docs/RELEASE_NOTES_2.0.5.md
@@ -0,0 +1,78 @@
+# Veyra 2.0.5 · 稳定性、跨厂商导出与性能回归修复
+
+2026-10-07 · Windows 11 x64 · 正式应用版本。增强运行组件仍保留各自实验/社区性质,不代表NVIDIA、AMD或Intel认证,也不是完整官方DLSS 5集成。
+
+本次包含公开2.0.4之后的OBS/AMD NR/多层导出修复、PR #19/#20适配,以及补帧选择、FSR导出、显示同步和统计界面性能回归修复。NR强度5、自动/手动画面调控和统一列表/节点预设等2.0.4功能继续保留。
+
+## 下载与升级
+
+- NVIDIA:Veyra-2.0.5-NVIDIA-win64-portable.zip。
+- AMD:Veyra-2.0.5-AMD-win64-portable.zip;lmxxf NR目前限定RX9000,需驱动提供HIP 7。
+- 运行只需适合当前显卡的一个完整包。在可写新目录完整解压后启动veyra_qml_ui.exe,先确认基础播放,再逐项开启效果。保留旧版便于回退,勿混装旧DLL或整个runtime目录。
+- 重编译使用本Release的应用源码和依赖源码两个资产;SHA256SUMS及包内manifest用于核对发布者文件,不限制用户自行替换兼容运行库。[源码/构建](BUILD_2.0.5.md)。
+
+## 已修复的问题
+
+**统计界面性能回退。** 高频读数不断重启数值动画,在本机320Hz环境产生约320次/秒UI提交,与NR竞争GPU。改为有界33ms更新和像素精度变化判断,保持读数推进、交互与动画;隐藏、关闭动效和零时长时停止无效更新。未减少NR工作、切换软件界面或提高GPU优先级掩盖差距。已确认2.0.3默认是普通优先级,不是高。
+
+**AMD/Intel补帧默认和旧配置。** 新配置优先选择可用FSR,再回退XeSS;旧配置中不可用DLSS/VFG也按此迁移,保留启用状态及独立列表/节点设置。已可用的手动选择不被覆盖。通用“添加补帧”按所有后端实际能力判断,避免FSR/XeSS可用却因DLSS不可用而禁用入口。
+
+**FSR补帧视频导出。** 冻结、规划和工作进程保留所选后端与倍率,不再偷偷替换为DLSS而产生错误限制。FSR使用共享图生成可编码帧;FSR4硬件/provider检查保持。XeSS当前接口不提供离线可编码补帧纹理,界面和工作进程会明确拒绝并提示替代选项,本版未实现XeSS补帧导出。
+
+**AMD NR黑屏及视频分辨率限制。** 修正lmxxf输出线性颜色契约和共享残差/时域合成。RX9000预览已获用户实卡可用反馈。视频导出最高内部1080p推理,再合成到原工作/输出尺寸,避免把4K输入直接当4K模型推理拒绝;这不等于原生4K NR。图片原尺寸模型预算限制保持,AMD真实HIP高分辨率导出/硬编码仍待实卡复测。
+
+**多层NR导出。** 冻结每层/全局设置和执行计划,修正离线native尺寸及旧汇总字段不一致,避免预览正常、导出失败或参数遗漏。原版双层NR和SR→NR→FSR→编码链已验证。
+
+**OBS兼容模式UI拖影。** 修正软件QML重绘/脏区域更新导致的滚动残影,保留现有兼容模式和视频GPU处理。完整UI采集仍建议Windows窗口采集;不宣称GPU界面游戏采集限制已消失。
+
+**窗口/全屏显示同步。** Auto明确使用Present(1,0),手动允许撕裂保留Present(0,ALLOW_TEARING),同步低排队深度1保持,增加实际参数日志。12组窗口/全屏、队列和同步组合通过API/像素验证;未直接复现用户物理屏幕扫描/VRR的所有撕裂现象,不能保证全部来源/驱动设置消除撕裂。
+
+**GPU优先级。** 请求档位已生效时避免重复写入调度API,保留用户保存选择。该项未单独测得提速,不计入性能收益。
+
+## PR #19 / #20 适配
+
+- PR #19:HDR显示输出曲线、调优预设、力度、显示峰值及HDR10 metadata生命周期,适配列表/节点、预设/会话和QML接口。调优默认关闭,关闭/力度0保留原像素;属于显示输出处理,不烘焙进离线导出,不宣称新增自动HDR导出算法。
+- PR #20:MSVC UTF-8日志转换与RemotePlay条件编译;关闭PS5 RemotePlay时保留Moonlight/Xbox所需C编译链。标准和RemotePlay-off构建均通过。
+- HDR验证为GPU像素/软件契约及metadata调用结果,未测实体显示器亮度/色差,未证明Windows/显示器实际采用metadata。暂缓PR #13/#14不在本版。
+
+## 优化数据与条件
+
+RTX5070/驱动616.56/320Hz;用户GTA VI 4K30,NVIDIA原版NR310.8.0.0,单层内部1080p、总变化1/风格0,画面调控/时域及SR/FG/HDR关闭,实际GPU普通class2。每轮正常播放35–40秒,无压力/竞争负载。数值为一秒GPU平均读数的中位数,不是逐帧P95或屏幕延迟。
+
+| 对照 | 修复前/旧版 | 修复后 | 结果 |
+|---|---:|---:|---|
+| 同EXE仅恢复旧统计动画,GTA NR区间 | 6.964ms | 6.559ms | 降低5.80% |
+| 上述同组UI提交 | 320次/秒 | 35次/秒 | 减少89.06% |
+| 原2.0.3与修复后,GTA相邻匹配 | 6.558881ms | 6.559476ms | +0.009%,未再出现约7%差距 |
+| 原2.0.3与修复后,另一4K60素材 | 6.632515ms | 6.590205ms | −0.638% |
+
+上述是fix2阶段匹配/反向因果证据,本版保留同一产品修复。全新2.0.5另用用户GTA视频复核,普通优先级32次观测NR中位6.295ms、视频提交30fps;这是独立单轮检查,不与前表拼接计算额外提速。时钟/覆盖层及其他活动未锁定,结果限列明环境/设置。UI提交减少不等于GPU总占用、端到端延迟或显存减少。[完整调查](STABILITY_EXPORT_PRIORITY_REPORT_2026-10-06.md)。
+
+## 2.0.5实际验收
+
+全新生产/相关目标构建13项/513步通过;7项CPU契约套件、真实统计组件6/6、AMD共享图10例、显示同步12组和真实DLSS4X/6X/4X像素/生命周期检查通过。AMD共享图是恒等诊断提供器,不是HIP实卡推理。
+
+FSR2X→H.264及FSR SR→原版NR→FSR2X→HEVC实际导出均60源帧→120编码帧,后者2560×1440;双层原版NR→HEVC为60→60帧。4份输出全部逐帧解码及严格CFR PTS核验通过。实际QML播放、暂停恢复、seek、全屏切换、列表/节点、FSR GUI导出和重启恢复通过。缺NVIDIA运行库的AMD包在RTX上验证选择迁移/入口,不伪装AMD实卡。
+
+正式包与已测2.0.5共用相同EXE/QML/shaders,分别保留NVIDIA215/AMD694项原组件身份。发布仅更新文档/包元数据,重新进行最终ZIP逐文件/CRC、PE依赖与隔离冷启动核验;实际结果见发布回执。[2.0.5构建验收](RELEASE_2.0.5_ACCEPTANCE_2026-10-07.md)。
+
+## 已知问题与边界
+
+**NVIDIA显存持续增长尚未定位/修复,按用户决定留待下一版本深入排查。** 本机短测不证明长期不增长,不能把缺失Shutdown、驱动或AMD内存池假说写成根因。本版没有基于这些猜测的生命周期改动。
+
+AMD真实HIP高分辨率导出/硬编码、FSR4 ML实卡、RTX20/30/40全部组合、主机/采集长稳、物理撕裂/VRR/HDR仍有验证缺口。XeSS补帧离线导出、节点离线导出及节点全局NR保护区仍不支持。严重后台掉帧/部分NR TDR不宣称根治。运行库/模型不升级不修改;源码与专有组件隔离,保留patched FFmpeg PS5 slice补丁和静态字幕依赖。
+
+## English
+
+Veyra 2.0.5 integrates repairs after public 2.0.4: OBS software-UI repaint, AMD NR linear-output/compositing, frozen multi-NR exports, adapted PR #19/#20, cross-vendor FG defaults/export, Auto display sync and telemetry animation performance. Strength-5 controls and unified List/Node presets remain.
+
+- Bounded 33ms telemetry updates avoid monitor-rate GPU contention while preserving animation and NR work. On RTX 5070/616.56/320Hz, GTA 4K30, original single-layer internal 1080p NR and actual Normal priority, reverting only the fix in the same EXE changed NR 6.559→6.964ms and UI 35→320 submissions/sec. The fix reduces these by 5.80%/89.06%. Adjacent matched 2.0.3/fixed results differed +0.009% on GTA and −0.638% on 4K60. Local interval measurements are not universal FPS, display-latency or VRAM gains. The fresh 2.0.5 single 6.295ms run is not a new matched speedup.
+- AMD/Intel new settings prefer available FSR then XeSS. Unavailable saved DLSS/VFG choices migrate while enabled state and independent List/Node settings survive; supported manual selections remain. Add FG checks all providers.
+- FSR offline exports retain backend/multiplier instead of being forced DLSS. Frozen settings/plans fix multi-NR export. AMD videoNR uses at most internal 1080p inference and composites to original output size; it is not native 4K NR, and image budget restrictions remain. XeSS offline FG is explicitly rejected: the integrated interface exposes no encodable generated texture.
+- lmxxf linear-output/shared composition and OBS software-UI scroll trails are repaired. User RX9000 preview confirmation does not establish real AMD offline encoding or GPU-UI Game Capture support.
+- Auto uses Present(1,0), manual tearing uses Present(0,ALLOW_TEARING), synchronized low-queue limit remains 1. Twelve window/fullscreen combinations passed API/pixel checks; physical tearing/VRR remains partially unverified. Redundant GPU-priority write avoidance has no separate claimed gain.
+- PR #19 adds opt-in HDR display curves/presets/amount/peak/metadata lifecycle with session/preset adaptation; PR #20 fixes MSVC UTF-8 logging and RemotePlay-off compilation. HDR display tuning is not baked into exports; physical HDR/metadata adoption are unverified. PR #13/#14 remain deferred.
+
+Fresh 2.0.5 build and targeted CPU/GPU/QML checks passed. Real FSR H.264/HEVC and stacked-original-NR outputs passed full decode and strict CFR PTS. AMD selection tests ran the AMD package on RTX with missing NVIDIA components; AMD graph checks used an identity provider, not HIP. Final formal ZIPs retain the tested EXE/QML/shaders and runtime bytes; publication audits/cold starts are recorded separately.
+
+**NVIDIA VRAM growth remains unresolved and deferred to the next version.** Short runs do not establish long-term stability. RealAMD high-resolution HIP/encoding, FSR4 ML hardware, all GPU combinations, console/capture long runs and physical display tests remain incomplete. XeSS FG/Node offline export remain unavailable. Experimental/community runtimes are not vendor certification. Extract the matching complete ZIP into a new writable folder, retain the old version for rollback; application and unchanged dependency sources are supplied.
diff --git a/docs/WORKLOG.md b/docs/WORKLOG.md
index 81091712..d20e360b 100644
--- a/docs/WORKLOG.md
+++ b/docs/WORKLOG.md
@@ -1,5 +1,13 @@
# Veyra 工作记录
+## 2026-10-07 2.0.5 正式发布准备
+
+用户授权正式发布和群公告,未要求代发或关机。git fetch nrvideo --tags确认远端main578d63c、v2.0.5不存在;本地main5474064/测试源4deb479清洁,20份当前通过收据与EXE acd49a23…冻结。独立open.py封存28工作树/495修改文件/1724输入/53历史证据,start SHAa94e3e83…;新worktree codex/publish-2.0.5-20261007。仅更新README当前版本区、失效限制、发布说明/构建材料及发布脚本;不改算法、运行库、模型和驱动。性能数据采用fix2匹配/反向验证5.80% NR/89.06% UI,不把2.0.5单轮6.295ms拼成额外收益。
+
+命令统一Python3.11 -B,scripts/acceptance/publish-2.0.5-{control,package,audit,cold,remote}.py;新产物E:/项目/Veyra/{archives,logs,releases,tests,tmp,verify}/publish-2.0.5-20261007。本轮control保护旧工作树、既有包与20当前收据;正式包从已测2.0.5复制,依赖源码沿用2.0.4原SHA。详细动作/通过或失败/线上ID和哈希写任务JSON及正式收尾记录。未实际完成的步骤不由计划文字视为通过。NV显存明确未修复。
+
+开工guard首轮检查到新Git工作树13个继承文件被CRLF checkout转换;git status仍清洁,逐项证实仅换行差异后在本轮新工作树恢复受保护main原字节。baseline未改,随后guard通过。日志checkout-line-endings.json。
+
## 2026-10-07 2.0.5 本地整合与测试包
用户明确授权将已完成修复合入main并构建2.0.5测试,NV显存持续增长延期到下一版。main起点578d63c;候选从71483d5隔离,产品修复ef2069f/4c917aa、PR19/20与fix1均保留;其后NV文档/只读采集脚本不等于显存修复。本轮仅版本/整合文档与验收打包脚本变动,不扩改产品算法。27个原工作树、495个本地修改/未跟踪文件、14份发布文件已独立封存,start SHA48b998d583676c9c39b14cc417c89d294639060f2e2fd4aa1986b366113625c8;旧基线不改。
diff --git a/scripts/acceptance/publish-2.0.5-audit.py b/scripts/acceptance/publish-2.0.5-audit.py
new file mode 100644
index 00000000..40cb033e
--- /dev/null
+++ b/scripts/acceptance/publish-2.0.5-audit.py
@@ -0,0 +1,52 @@
+"""Independent complete payload hashes, vendor boundaries and PE import closure."""
+import hashlib, json, os, sys
+from pathlib import Path
+import pefile
+
+BASE=Path('E:/项目/Veyra'); TASK='publish-2.0.5-20261007'
+app=Path(sys.argv[1]).resolve(); flavor=sys.argv[2]; label=sys.argv[3]
+assert app.is_relative_to(BASE.resolve()) and flavor in ('NVIDIA','AMD')
+out=BASE/'logs'/TASK/(label+'.json'); assert not out.exists()
+manifest=json.loads((app/'package-manifest.json').read_text(encoding='utf8'))
+names={f.relative_to(app).as_posix():f for f in app.rglob('*') if f.is_file()}
+expected={r['path'] for r in manifest['files']}|{'package-manifest.json'}
+assert set(names)==expected, {'unexpected':list(set(names)-expected),'missing':list(expected-set(names))}
+for row in manifest['files']:
+ f=names[row['path']]
+ with f.open('rb') as stream: sha=hashlib.file_digest(stream,'sha256').hexdigest()
+ assert f.stat().st_size==row['size'] and sha==row['sha256'],row['path']
+assert not any(f.suffix.lower() in ('.pdb','.lib','.pyd','.whl','.addon64') for f in names.values())
+drivers={'nvcuda.dll','nvopticalflow64.dll','amdhip64.dll','amdhip64_6.dll','amdhip64_7.dll'}
+assert not drivers & {f.name.lower() for f in names.values()}
+if flavor=='NVIDIA':
+ assert not any(n.startswith('runtime/amd-nr/') for n in names)
+ vfg={f.name for n,f in names.items() if n.startswith('runtime/nvidia-vfg/')}
+ assert vfg=={'NVVideoEffects.dll','nvVFXVideoFrameGeneration.dll','NVCVImage.dll','cudart64_12.dll','nvngxruntime.dll'},vfg
+else:
+ assert not any(f.name.lower().startswith(('nvngx','nvvideoeffects','cudart','npp','nvcv')) for f in names.values())
+ assert 'runtime/amd-nr/LmxxfNrRuntime.dll' in names
+fsr={f.name for n,f in names.items() if n.startswith('runtime_local/amd/fidelityfx/')}
+assert fsr=={'amd_fidelityfx_loader_dx12.dll','amd_fidelityfx_upscaler_dx12.dll','amd_fidelityfx_framegeneration_dx12.dll'}
+runtime=json.loads((app/'release-runtime-manifest.json').read_text(encoding='utf8'))
+assert runtime==json.loads((app/'runtime/experimental/release-runtime-manifest.json').read_text(encoding='utf8'))
+assert {n for n,f in names.items() if n.startswith(('runtime/','runtime_local/')) and f.suffix.lower() not in ('.json','.md','.txt')} <= {r['path'] for r in runtime['files']}
+packaged={f.name.lower() for f in names.values() if f.suffix.lower()=='.dll'}
+system=Path(os.environ['WINDIR'])/'System32'; imports=[]; missing=[]
+for name,f in names.items():
+ if f.suffix.lower() not in ('.dll','.exe'):continue
+ pe=pefile.PE(str(f),fast_load=True)
+ pe.parse_data_directories(directories=[pefile.DIRECTORY_ENTRY['IMAGE_DIRECTORY_ENTRY_IMPORT'],pefile.DIRECTORY_ENTRY['IMAGE_DIRECTORY_ENTRY_DELAY_IMPORT']])
+ direct=[i.dll.decode().lower() for i in getattr(pe,'DIRECTORY_ENTRY_IMPORT',[])]
+ delay=[i.dll.decode().lower() for i in getattr(pe,'DIRECTORY_ENTRY_DELAY_IMPORT',[])]
+ pe.close()
+ assert not any(n.startswith('npp') for n in direct+delay),(name,direct,delay)
+ for dll in direct+delay:
+ if dll in packaged or dll.startswith(('api-ms-','ext-ms-')) or (system/dll).is_file():continue
+ missing.append({'file':name,'dependency':dll,'delay':dll in delay})
+ imports.append({'file':name,'direct':direct,'delay':delay})
+assert not missing,missing
+result=dict(flavor=flavor,app=str(app),payloadFiles=len(manifest['files']),payloadBytes=sum(r['size'] for r in manifest['files']),
+ sourceCommit=manifest.get('baseCommit'),releaseReady=manifest.get('releaseReady'),runtimeFiles=len(runtime['files']),
+ peFiles=len(imports),imports=imports,missing=missing,fsrException=True)
+out.write_text(json.dumps(result,ensure_ascii=False,indent=2),encoding='utf8')
+print('PACKAGE AUDIT PASS',flavor,result['payloadFiles'],result['payloadBytes'],out,flush=True)
diff --git a/scripts/acceptance/publish-2.0.5-cold.py b/scripts/acceptance/publish-2.0.5-cold.py
new file mode 100644
index 00000000..0a27200b
--- /dev/null
+++ b/scripts/acceptance/publish-2.0.5-cold.py
@@ -0,0 +1,67 @@
+from pathlib import Path, PurePosixPath
+import ctypes, hashlib, json, os, stat, subprocess, time, zipfile
+
+BASE=Path('E:/项目/Veyra'); TASK='publish-2.0.5-20261007'
+PACK=BASE/'releases'/TASK/'packages'; LOG=BASE/'logs'/TASK
+receipt=json.loads((PACK/'DELIVERY.json').read_text(encoding='utf8'))
+results=[]
+for row in receipt:
+ vendor=row['vendor']; destination=BASE/'verify'/TASK/vendor
+ assert destination.resolve().is_relative_to((BASE/'verify'/TASK).resolve()) and not destination.exists()
+ archive=Path(row['archive']); assert hashlib.sha256(archive.read_bytes()).hexdigest()==row['archiveSha256']
+ with zipfile.ZipFile(archive) as z:
+ assert len(z.infolist())<5000 and sum(i.file_size for i in z.infolist())<5*1024**3
+ for entry in z.infolist():
+ path=PurePosixPath(entry.filename)
+ assert not path.is_absolute() and '..' not in path.parts and ':' not in entry.filename
+ assert not stat.S_ISLNK(entry.external_attr>>16)
+ assert (destination/entry.filename).resolve().is_relative_to(destination.resolve())
+ z.extractall(destination)
+ app=destination/Path(row['candidate']).name
+ manifest=json.loads((app/'package-manifest.json').read_text(encoding='utf8'))
+ for item in manifest['files']:
+ assert hashlib.sha256((app/item['path']).read_bytes()).hexdigest()==item['sha256'],item['path']
+ out=BASE/'tests'/TASK/('cold-'+vendor); tmp=BASE/'tmp'/TASK/('cold-'+vendor)
+ for p in (out,tmp):p.mkdir(parents=True,exist_ok=False)
+ engine=LOG/('cold-'+vendor+'-engine.log'); console=LOG/('cold-'+vendor+'.log')
+ env={k:v for k,v in os.environ.items() if not k.upper().startswith(('VEYRA_','QT_','QSG_'))}
+ windows=Path(env['WINDIR'])
+ env.update(TEMP=str(tmp),TMP=str(tmp),CUDA_CACHE_PATH=str(tmp/'cuda-cache'),VEYRA_LOG_FILE=str(engine),
+ QML_DISABLE_DISK_CACHE='1',QT_FORCE_STDERR_LOGGING='1',
+ PATH=os.pathsep.join(map(str,(windows/'System32',windows,windows/'System32/Wbem'))))
+ args=[str(app/'veyra_qml_ui.exe'),'--data-dir',str(out/'profile'),'--page','pro','--size','1280x800',
+ '--obs-game-capture','--exit-after','8000',str(BASE/'tests/field-fixes-20261005/media/fx-embedded.mkv')]
+ begin=time.monotonic(); modules=[]
+ with console.open('xb') as log:
+ process=subprocess.Popen(args,cwd=app,env=env,stdout=log,stderr=subprocess.STDOUT)
+ try:
+ time.sleep(3)
+ kernel=ctypes.WinDLL('kernel32',use_last_error=True); psapi=ctypes.WinDLL('psapi',use_last_error=True)
+ kernel.OpenProcess.argtypes=[ctypes.c_ulong,ctypes.c_int,ctypes.c_ulong];kernel.OpenProcess.restype=ctypes.c_void_p
+ kernel.CloseHandle.argtypes=[ctypes.c_void_p]
+ psapi.EnumProcessModulesEx.argtypes=[ctypes.c_void_p,ctypes.POINTER(ctypes.c_void_p),ctypes.c_ulong,ctypes.POINTER(ctypes.c_ulong),ctypes.c_ulong]
+ psapi.GetModuleFileNameExW.argtypes=[ctypes.c_void_p,ctypes.c_void_p,ctypes.c_wchar_p,ctypes.c_ulong]
+ handle=kernel.OpenProcess(0x0410,False,process.pid);assert handle
+ try:
+ items=(ctypes.c_void_p*512)(); needed=ctypes.c_ulong()
+ assert psapi.EnumProcessModulesEx(handle,items,ctypes.sizeof(items),ctypes.byref(needed),3)
+ for i in range(min(512,needed.value//ctypes.sizeof(ctypes.c_void_p))):
+ buffer=ctypes.create_unicode_buffer(32768)
+ if psapi.GetModuleFileNameExW(handle,items[i],buffer,len(buffer)):
+ path=Path(buffer.value)
+ if path.name.startswith(('Qt6','avcodec-','avformat-','avutil-','swscale-','swresample-')):
+ assert path.resolve().is_relative_to(app.resolve()),str(path)
+ modules.append(str(path))
+ finally:kernel.CloseHandle(handle)
+ rc=process.wait(timeout=50)
+ except BaseException:
+ process.kill();process.wait(timeout=10);raise
+ text=engine.read_text(encoding='utf8',errors='replace')+'\n'+console.read_text(encoding='utf8',errors='replace')
+ bad=[line for line in text.splitlines() if any(word in line for word in ('[ERROR]','[FATAL]','ReferenceError:','TypeError:','no root object'))]
+ assert rc==0 and not bad and len(modules)>10 and 'track ready events=5' in text and 'fonts configured container=1' in text,bad[:12]
+ result={'vendor':vendor,'passed':True,'exit':rc,'seconds':round(time.monotonic()-begin,3),'app':str(app),
+ 'args':args,'archiveSha256':row['archiveSha256'],'executableSha256':row['exeSha256'],
+ 'ownQtAndCodecModulePaths':modules,'console':str(console),'engine':str(engine)}
+ results.append(result);print('COLD ZIP START PASS',vendor,len(modules),'modules from extracted app',flush=True)
+ (LOG/'cold-verify-results.json').write_text(json.dumps(results,ensure_ascii=False,indent=2)+'\n',encoding='utf8')
+subprocess.run(['py','-3.11','-B','scripts/acceptance/publish-2.0.5-control.py'],cwd=BASE/'worktrees'/TASK,check=True)
diff --git a/scripts/acceptance/publish-2.0.5-control.py b/scripts/acceptance/publish-2.0.5-control.py
new file mode 100644
index 00000000..2295cf3c
--- /dev/null
+++ b/scripts/acceptance/publish-2.0.5-control.py
@@ -0,0 +1,45 @@
+"""Protect the independently captured publication baseline and tested product."""
+from pathlib import Path
+import hashlib,json,subprocess
+ROOT=Path(__file__).resolve().parents[2];BASE=Path('E:/项目/Veyra');TASK='publish-2.0.5-20261007'
+ARCH=BASE/'archives'/TASK;LOG=BASE/'logs'/TASK
+def sha(p):
+ with Path(p).open('rb') as f:return hashlib.file_digest(f,'sha256').hexdigest()
+def git(p,*a):return subprocess.check_output(['git','-C',str(p),*a],stderr=subprocess.PIPE).decode('utf8')
+opening=ARCH/'start.json'
+assert sha(opening)=='a94e3e83c8b80dc16adb1e65c68b508fb9e56f3af5b944b45c264b516c6c9c0d'
+start=json.loads(opening.read_text(encoding='utf8'))
+assert ROOT.resolve()==Path(start['worktree']).resolve()
+assert git(ROOT,'branch','--show-current').strip()==start['branch']
+subprocess.run(['git','-C',str(ROOT),'merge-base','--is-ancestor',start['sourceBase'],'HEAD'],check=True)
+allowed={'AGENTS.md','README.md','README_CN.md','docs/BUILD_2.0.5.md','docs/CURRENT_STATUS.md','docs/WORKLOG.md',
+ 'docs/RELEASE_NOTES_2.0.5.md','docs/PUBLISH_2.0.5_PLAN_2026-10-07.md','docs/PUBLISH_2.0.5_REPORT_2026-10-07.md'}
+def in_scope(n):return n in allowed or n.startswith('scripts/acceptance/publish-2.0.5-')
+for n,h in start['trackedSha256'].items():
+ assert (ROOT/n).is_file(),n
+ if sha(ROOT/n)!=h:assert in_scope(n),n
+names={n for n in git(ROOT,'ls-files','-z').split('\0') if n}|{n for n in git(ROOT,'ls-files','--others','--exclude-standard','-z').split('\0') if n}
+assert all(in_scope(n) for n in names-set(start['trackedSha256']))
+for row in start['preserved_worktrees']:
+ p=Path(row['path']);head=git(p,'rev-parse','HEAD').strip()
+ if p.resolve()==Path(start['mainPath']).resolve() and head!=row['head']:
+ merge=json.loads((LOG/'main-merge.json').read_text(encoding='utf8'))
+ release_head=merge['mainAfter']
+ assert merge['mainBefore']==row['head']
+ assert git(p,'rev-list','--parents','-n','1',release_head).strip().split()[1:]==[row['head'],merge['sourceCommit']]
+ assert git(p,'rev-parse',release_head+'^{tree}').strip()==git(ROOT,'rev-parse',merge['sourceCommit']+'^{tree}').strip()
+ if head!=release_head:
+ finish=json.loads((LOG/'documentation-close.json').read_text(encoding='utf8'))
+ assert finish['releaseMainCommit']==release_head and finish['mainAfter']==head
+ assert git(p,'rev-parse',head+'^').strip()==release_head
+ changed=set(git(p,'diff','--name-only',release_head,head).splitlines())
+ assert changed=={'docs/WORKLOG.md','docs/CURRENT_STATUS.md','docs/PUBLISH_2.0.5_REPORT_2026-10-07.md'}
+ else:assert head==row['head'],str(p)
+ assert git(p,'status','--porcelain=v1','-z','--untracked-files=all')==row['status'],str(p)
+ for n,h in row['modified'].items():assert (sha(p/n) if (p/n).is_file() else None)==h,str(p/n)
+for row in start['protectedFiles']:assert sha(row['path'])==row['sha256'],row['path']
+frozen=json.loads((BASE/'logs/release-2.0.5-20261007/tested-inputs.json').read_text(encoding='utf8'))
+for n,h in frozen['testReceipts'].items():assert sha(BASE/'logs/release-2.0.5-20261007'/n)==h,n
+assert sha(BASE/'build/release-2.0.5-20261007/standard/veyra_qml_ui.exe')==frozen['executableSha256']
+subprocess.run(['git','-C',str(ROOT),'diff','--check'],check=True,capture_output=True)
+print('PUBLISH GUARD PASS',len(start['preserved_worktrees']),'worktrees;',len(start['protectedFiles']),'protected files; product and',len(frozen['testReceipts']),'test receipts unchanged',flush=True)
diff --git a/scripts/acceptance/publish-2.0.5-finish.py b/scripts/acceptance/publish-2.0.5-finish.py
new file mode 100644
index 00000000..220211a1
--- /dev/null
+++ b/scripts/acceptance/publish-2.0.5-finish.py
@@ -0,0 +1,78 @@
+"""Record completed publication in main without changing the release tag/tree."""
+from pathlib import Path
+import hashlib,json,subprocess,sys
+ROOT=Path(__file__).resolve().parents[2];BASE=Path('E:/项目/Veyra');TASK='publish-2.0.5-20261007'
+LOG=BASE/'logs'/TASK;OUT=BASE/'releases'/TASK;MAIN=BASE/'worktrees/main-merge-20261002'
+def git(p,*a):return subprocess.check_output(['git','-C',str(p),*a],stderr=subprocess.PIPE).decode('utf8').strip()
+def save(p,v):p.write_text(json.dumps(v,ensure_ascii=False,indent=2)+'\n',encoding='utf8')
+subprocess.run([sys.executable,'-B',str(ROOT/'scripts/acceptance/publish-2.0.5-control.py')],check=True)
+remote=json.loads((LOG/'verify-public.json').read_text(encoding='utf8'));assert remote['passed'] and remote['latest']
+merge=json.loads((LOG/'main-merge.json').read_text(encoding='utf8'));head=merge['mainAfter']
+assert git(MAIN,'rev-parse','HEAD')==head and not git(MAIN,'status','--porcelain')
+assert not (LOG/'documentation-close.json').exists()
+cold=json.loads((LOG/'cold-verify-results.json').read_text(encoding='utf8'))
+assets=json.loads((LOG/'assets.json').read_text(encoding='utf8'))
+table='\n'.join('| '+r['name']+' | '+str(r['bytes'])+' | '+r['sha256']+' |' for r in assets)
+report=f'''# Veyra 2.0.5 正式发布回执
+
+已发布:{remote['url']},GitHub Release ID {remote['releaseId']},published_at {remote['publishedAt']}。正式版、非预发布,GitHub latest核对通过。发布标签v2.0.5指向main合并{head},发布源码提交{merge['sourceCommit']};标签/源码树相同。收尾文档另行提交,不改标签或资产。
+
+产品沿用已测2.0.5:EXE SHA256 acd49a23074b58ec9698d260d63b2d5a59a640627e09a9b83f0127ae47ebb936,PE File/ProductVersion2.0.5.0。EXE/QML/shaders和NVIDIA215/AMD694项原运行组件字节保持;本轮只有发布文档、脚本和元数据。1724个开工源输入、20份当前验收收据、28旧工作树/495修改文件/53历史证据受独立guard保护。
+
+## 实际命令和结果
+
+Python3.11 -B运行publish-2.0.5-control.py:通过;package.py:两完整包、应用/依赖源码、5资产清单完成,逐载荷SHA和ZIP CRC通过;audit.py:逐文件manifest、厂商隔离、PE导入闭包通过;cold.py:两最终ZIP独立解压、仅系统PATH/私有profile基础播放及内嵌字幕启动通过。冷启动:{'; '.join(r['vendor']+' '+str(r['seconds'])+'秒/exit0/'+str(len(r['ownQtAndCodecModulePaths']))+'个包内Qt/FFmpeg模块' for r in cold)}。均RTX5070本机基础运行,不能代替AMD HIP推理/编码验收。
+
+remote.py push/draft/verify-draft/publish/verify-public:普通atomic推送main+标签,草稿上传5资产,远端全部size及sha256 digest与本机一致;逐字核对正文,标签和main匹配,正式latest核验通过。实际重新下载SHA256SUMS与本机一致,5公开资产/Release页面和双QR及Ko-fi按钮HTTP可用。双QR width220、Discord/Ko-fi保留;旧v2.0.4 ID/正文/时间/资产未改。没有代发群消息或关机。
+
+所有回执:E:/项目/Veyra/logs/{TASK}/,包括source-audit.json、stage-AMD/NVIDIA.json、cold-verify-results.json、main-merge.json、push.json、verify-draft.json、verify-public.json及remote-public-release.json。产物E:/项目/Veyra/releases/{TASK}/;源码bundle在archives/{TASK}/source-final.bundle并已verify。
+
+## 失败和复核
+
+开工严格guard发现新checkout13个继承文件被CRLF转换;所有内容先证实仅换行差异,再在新自有工作树恢复受保护main原字节,并确认clean-filter blob等于HEAD。旧baseline/其他工作树未改,随后guard通过。原记录checkout-line-endings.json保留。唯一历史tracked pyc保留在Git,源码ZIP明确排除;不修改/删除既有源文件。
+
+## 正式资产
+
+| 文件 | 字节 | SHA256 |
+|---|---:|---|
+{table}
+
+依赖源码与2.0.4原包字节相同(4eccde63…),本次改名并随Release提供;patched FFmpeg、静态字幕和串流对应源完整保留。源码无proprietary SDK/runtime/模型,用户包无开发LIB/PDB/测试媒体/配置/日志。
+
+## 数据与边界
+
+fix2同EXE统计动画反向对照NR区间下降5.80%、UI提交下降89.06%,只限RTX5070/616.56/320Hz、GTA4K30、原版单NR内部1080、普通优先级。与2.0.3匹配差+0.009%/−0.638%。新2.0.5单轮6.295ms不拼算新提速;UI提交不等于延迟/显存。NVIDIA显存持续增长仍未定位/修复,下版排查;AMD真实高分辨率HIP离线导出/编码、物理HDR/撕裂/VRR及长期多设备稳定性未全部验收。XeSS补帧/节点离线导出仍不支持。公告同样保留这些边界。
+'''
+(MAIN/'docs/PUBLISH_2.0.5_REPORT_2026-10-07.md').write_text(report,encoding='utf8')
+p=MAIN/'docs/WORKLOG.md';s=p.read_text(encoding='utf8');header='# Veyra 工作记录';assert s.startswith(header)
+s=s.replace(header,header+'\n\n## 2026-10-07 2.0.5 正式发布完成\n\n'+
+ f'已正式发布{remote["url"]}(Release ID {remote["releaseId"]},{remote["publishedAt"]}),5资产远端大小/SHA256 digest一致,最新正式版本、对应源码/依赖源码、正文/双QR和下载可用性核对通过。两最终ZIP冷启及26个包内模块路径各通过,产品字节保持。实际命令、结果、失败复核、哈希与日志路径见[PUBLISH_2.0.5_REPORT](PUBLISH_2.0.5_REPORT_2026-10-07.md)。main合并{head}、源码{merge["sourceCommit"]};随后只提交此正式回执,不改标签/资产/产品。NV显存未修复;公告≤1000字,只交用户,不代发不关机。\n',1);p.write_text(s,encoding='utf8')
+p=MAIN/'docs/CURRENT_STATUS.md';s=p.read_text(encoding='utf8');header='# 当前项目状态 / Current Status';assert s.startswith(header)
+s=s.replace(header,header+'\n\n## 2026-10-07 当前公开正式版2.0.5\n\n'+
+ f'[v2.0.5]({remote["url"]})已发布并核对为latest,NVIDIA/AMD完整便携包、应用/依赖源码及SHA256SUMS共5资产的远端digest一致。产品与已测2.0.5保持,正式冷启通过,详见[发布回执](PUBLISH_2.0.5_REPORT_2026-10-07.md)。NVIDIA显存持续增长仍未定位/修复,AMD实卡离线编码仍待复测;下方各记录仅代表其当时状态。\n',1);p.write_text(s,encoding='utf8')
+changed=set(git(MAIN,'diff','--name-only').splitlines())|set(git(MAIN,'ls-files','--others','--exclude-standard').splitlines())
+assert changed=={'docs/WORKLOG.md','docs/CURRENT_STATUS.md','docs/PUBLISH_2.0.5_REPORT_2026-10-07.md'},changed
+subprocess.run(['git','-C',str(MAIN),'diff','--check'],check=True)
+subprocess.run(['git','-C',str(MAIN),'add','--',*sorted(changed)],check=True)
+subprocess.run(['git','-C',str(MAIN),'commit','-m','docs: record verified Veyra 2.0.5 publication'],check=True)
+after=git(MAIN,'rev-parse','HEAD');save(LOG/'documentation-close.json',dict(releaseMainCommit=head,mainAfter=after,files=sorted(changed)))
+subprocess.run(['git','-C',str(MAIN),'push','nrvideo','main:main'],check=True)
+announcement='''Veyra 2.0.5 正式版已发布!
+
+这次重点修复稳定性与性能回退:修复OBS兼容模式滚动拖影、AMD NR黑屏合成问题和多层NR导出;AMD/Intel补帧默认优先FSR,不可用的旧DLSS配置会自动迁移。FSR视频导出不再被强制切成DLSS。自动显示同步覆盖窗口与全屏,并适配PR19/20的HDR显示调优、日志和构建修复。
+
+本机RTX5070、GTA VI 4K输入、原版单层1080p NR、普通GPU优先级,同EXE统计动画对照中:NR处理区间降低约5.8%,UI提交减少约89%。与2.0.3同条件对照已接近持平;这些是本机限定数据,不代表所有显卡收益,也不是延迟或显存降幅。
+
+请按显卡下载NVIDIA/AMD完整包,在新目录解压,保留旧版方便回退。NR强度5、自动/手动调控和列表/节点统一预设继续保留。
+
+已知:NVIDIA显存持续增长尚未修复,下版深入排查;AMD实卡离线编码待复测,XeSS补帧离线导出仍不支持。反馈请附显卡、驱动、输入来源、效果设置和日志。
+
+下载:https://github.com/Likely7/Veyra-NRVideo/releases/tag/v2.0.5
+Discord:https://discord.gg/c9aREyMj8
+赞助:https://ko-fi.com/likely7
+'''
+assert len(announcement)<1000
+(OUT/'GROUP_ANNOUNCEMENT.txt').write_text(announcement,encoding='utf8')
+save(LOG/'finish.json',dict(passed=True,mainCommit=after,releaseTagCommit=head,announcementCharacters=len(announcement),announcement=str(OUT/'GROUP_ANNOUNCEMENT.txt')))
+subprocess.run([sys.executable,'-B',str(ROOT/'scripts/acceptance/publish-2.0.5-control.py')],check=True)
+print('PUBLICATION DOCUMENTATION COMPLETE',after,len(announcement),'announcement characters',flush=True)
diff --git a/scripts/acceptance/publish-2.0.5-package.py b/scripts/acceptance/publish-2.0.5-package.py
new file mode 100644
index 00000000..87ed30d2
--- /dev/null
+++ b/scripts/acceptance/publish-2.0.5-package.py
@@ -0,0 +1,92 @@
+"""Formal packages preserve the complete tested 2.0.5 production payload."""
+from pathlib import Path
+import hashlib,json,subprocess,shutil,sys,zipfile
+ROOT=Path(__file__).resolve().parents[2];BASE=Path('E:/项目/Veyra');TASK='publish-2.0.5-20261007'
+OUT=BASE/'releases'/TASK;PACK=OUT/'packages';LOG=BASE/'logs'/TASK;ARCH=BASE/'archives'/TASK
+OLD=BASE/'test-packages/release-2.0.5-20261007';EXE='acd49a23074b58ec9698d260d63b2d5a59a640627e09a9b83f0127ae47ebb936'
+def sha(p):
+ with Path(p).open('rb') as f:return hashlib.file_digest(f,'sha256').hexdigest()
+def save(p,v):p.write_text(json.dumps(v,ensure_ascii=False,indent=2)+'\n',encoding='utf8')
+def git(*a):return subprocess.check_output(['git','-C',str(ROOT),*a],stderr=subprocess.PIPE).decode('utf8').strip()
+def guard():subprocess.run([sys.executable,'-B',str(ROOT/'scripts/acceptance/publish-2.0.5-control.py')],check=True)
+guard();assert not git('status','--porcelain'),'Commit exact release source first'
+head=git('rev-parse','HEAD');merge=json.loads((LOG/'main-merge.json').read_text(encoding='utf8'))
+assert merge['sourceCommit']==head
+tracked=sorted(n for n in git('ls-files','-z').split('\0') if n)
+excluded=[n for n in tracked if '__pycache__' in Path(n).parts or Path(n).suffix.lower()=='.pyc']
+assert excluded==['scripts/acceptance/__pycache__/fg-utilization-matrix.cpython-311.pyc']
+files=[n for n in tracked if n not in excluded]
+for rel in files:
+ assert not rel.startswith(('runtime/','runtime_local/','models/','third_party_local/'))
+ assert Path(rel).suffix.lower() not in ('.dll','.exe','.lib','.pdb','.addon64','.onnx','.bin','.hsaco','.ptx','.f16','.f32','.pyc','.zip','.7z')
+sourcezip=OUT/'Veyra-2.0.5-source.zip';partial=sourcezip.with_suffix('.zip.partial')
+assert not sourcezip.exists() and not partial.exists()
+with zipfile.ZipFile(partial,'x',zipfile.ZIP_DEFLATED,compresslevel=6) as z:
+ for rel in files:z.write(ROOT/rel,'Veyra-2.0.5-source/'+rel)
+with zipfile.ZipFile(partial) as z:
+ assert z.testzip() is None and len(z.infolist())==len(files)
+ for rel in files:
+ with z.open('Veyra-2.0.5-source/'+rel) as f:assert hashlib.file_digest(f,'sha256').hexdigest()==sha(ROOT/rel),rel
+partial.rename(sourcezip)
+dependency=OUT/'Veyra-2.0.5-dependency-source.zip';assert not dependency.exists()
+olddep=BASE/'releases/publish-2.0.4-20261006/Veyra-2.0.4-dependency-source.zip'
+assert sha(olddep)=='4eccde6343d66e0511b641aaacc12b999e424738a383fcce268d762abb3dceb9'
+shutil.copyfile(olddep,dependency);assert sha(dependency)==sha(olddep)
+with zipfile.ZipFile(dependency) as z:assert z.testzip() is None
+subprocess.run(['git','-C',str(ROOT),'bundle','create',str(ARCH/'source-final.bundle'),'HEAD'],check=True)
+subprocess.run(['git','-C',str(ROOT),'bundle','verify',str(ARCH/'source-final.bundle')],check=True)
+save(LOG/'source-audit.json',dict(sourceCommit=head,mainCommit=merge['mainAfter'],sourceFiles=len(files),excludedTrackedCaches=excluded,
+ sourceSha256=sha(sourcezip),dependencySha256=sha(dependency),dependencyByteIdenticalTo='v2.0.4',passed=True))
+docnames=('RELEASE_NOTES_2.0.5.md','BUILD_2.0.5.md','PUBLISH_2.0.5_PLAN_2026-10-07.md',
+ 'RELEASE_2.0.5_ACCEPTANCE_2026-10-07.md','STABILITY_EXPORT_PRIORITY_REPORT_2026-10-06.md','RELEASE_SUPPORT.md')
+delivery=[]
+for vendor in ('AMD','NVIDIA'):
+ source=OLD/f'Veyra-2.0.5-{vendor}-win64-portable';app=PACK/source.name
+ assert not app.exists();app.mkdir(parents=True)
+ old=json.loads((source/'package-manifest.json').read_text(encoding='utf8'));immutable={}
+ for row in old['files']:
+ rel=row['path'];p=source/rel
+ assert p.is_file() and p.stat().st_size==row['size'] and sha(p)==row['sha256'],rel
+ assert p.resolve().is_relative_to(source.resolve()) and not p.is_symlink()
+ if rel in ('TEST_NOTES_2.0.5.md','docs/TEST_NOTES_2.0.5.md','RELEASE_2.0.4.md'):continue
+ q=app/rel;q.parent.mkdir(parents=True,exist_ok=True);shutil.copyfile(p,q)
+ if rel.startswith(('runtime/','runtime_local/','models/','licenses/')) or p.suffix.lower() in ('.dll','.exe','.cso') or rel in ('release-runtime-manifest.json','vfg-runtime-manifest.json'):
+ immutable[rel]=row['sha256']
+ for name in ('README.md','README_CN.md','README_EN.md','THIRD_PARTY_NOTICES.md','LICENSE'):shutil.copyfile(ROOT/name,app/name)
+ for name in docnames:shutil.copyfile(ROOT/'docs'/name,app/'docs'/name)
+ (app/'RELEASE_2.0.5.md').write_text('Veyra 2.0.5 正式应用版本 / Stable application release\n\n新目录完整解压后运行veyra_qml_ui.exe。增强组件保留实验边界;详细更新/数据/未验证项见docs/RELEASE_NOTES_2.0.5.md。NVIDIA显存持续增长未修复,留待下一版本。\n\nRelease: https://github.com/Likely7/Veyra-NRVideo/releases/tag/v2.0.5\nDiscord: https://discord.gg/c9aREyMj8\nKo-fi: https://ko-fi.com/likely7\n对应源码与静态字幕依赖重链接见docs/BUILD_2.0.5.md。\n',encoding='utf8')
+ for rel,h in immutable.items():assert sha(app/rel)==h,rel
+ assert sha(app/'veyra_qml_ui.exe')==EXE
+ for p in (ROOT/'qml').rglob('*'):
+ if p.is_file():assert sha(app/'qml'/p.relative_to(ROOT/'qml'))==sha(p),str(p)
+ actual={p.relative_to(app).as_posix() for p in app.rglob('*') if p.is_file()}
+ assert 'package-manifest.json' not in actual
+ assert not any(Path(n).suffix.lower() in ('.pdb','.lib','.addon64','.log','.dmp','.pyc','.whl') or n.startswith(('logs/','tmp/','profile/','outputs/')) for n in actual)
+ records=[dict(path=rel,size=(app/rel).stat().st_size,sha256=sha(app/rel)) for rel in sorted(actual)]
+ manifest=dict(old);manifest.update(version='2.0.5',displayVersion='2.0.5',candidate='2.0.5',sourceCommit=head,baseCommit=head,
+ sourceArchiveCommit=head,mainCommit=merge['mainAfter'],worktreeDirty=False,localOnly=False,releaseReady=True,
+ releaseTag='v2.0.5',releaseUrl='https://github.com/Likely7/Veyra-NRVideo/releases/tag/v2.0.5',
+ productCodeCommit='4deb4793763c4c6197876e84d25140943b284856',executableSha256=EXE,
+ validation='Tested 2.0.5 product retained; formal payload/PE/ZIP audit and isolated final-ZIP cold start',files=records)
+ manifest['correspondingSource'].update(application='https://github.com/Likely7/Veyra-NRVideo/releases/download/v2.0.5/'+sourcezip.name,
+ dependencies='https://github.com/Likely7/Veyra-NRVideo/releases/download/v2.0.5/'+dependency.name,
+ applicationSha256=sha(sourcezip),dependencySha256=sha(dependency),instructions='docs/BUILD_2.0.5.md')
+ manifest['sourceZipSha256']=sha(sourcezip);save(app/'package-manifest.json',manifest)
+ subprocess.run([sys.executable,'-B',str(ROOT/'scripts/acceptance/publish-2.0.5-audit.py'),str(app),vendor,'stage-'+vendor],check=True)
+ archive=OUT/(app.name+'.zip');assert not archive.exists();print('ARCHIVE',vendor,flush=True)
+ with zipfile.ZipFile(archive,'x',zipfile.ZIP_DEFLATED,compresslevel=6) as z:
+ for rel in sorted(actual|{'package-manifest.json'}):z.write(app/rel,app.name+'/'+rel)
+ with zipfile.ZipFile(archive) as z:
+ assert z.testzip() is None and len(z.infolist())==len(records)+1
+ for row in records:
+ with z.open(app.name+'/'+row['path']) as f:assert hashlib.file_digest(f,'sha256').hexdigest()==row['sha256'],row['path']
+ assert json.loads(z.read(app.name+'/package-manifest.json'))==manifest
+ receipt=dict(vendor=vendor,candidate=str(app),archive=str(archive),archiveBytes=archive.stat().st_size,archiveSha256=sha(archive),
+ exeSha256=EXE,sourceCommit=head,mainCommit=merge['mainAfter'],sourceZip=str(sourcezip),sourceZipSha256=sha(sourcezip),
+ unchangedComponentCount=len(immutable),fileCount=len(records)+1,zipCrcAndAllPayloadHashesPassed=True)
+ delivery.append(receipt);print(json.dumps(receipt,ensure_ascii=False),flush=True)
+save(PACK/'DELIVERY.json',delivery);save(OUT/'DELIVERY.json',delivery)
+assets=[Path(r['archive']) for r in delivery]+[sourcezip,dependency]
+(OUT/'SHA256SUMS.txt').write_text(''.join(sha(p)+' '+p.name+'\n' for p in sorted(assets)),encoding='ascii')
+save(LOG/'assets.json',[dict(path=str(p),name=p.name,bytes=p.stat().st_size,sha256=sha(p)) for p in assets+[OUT/'SHA256SUMS.txt']])
+guard()
diff --git a/scripts/acceptance/publish-2.0.5-remote.py b/scripts/acceptance/publish-2.0.5-remote.py
new file mode 100644
index 00000000..0f28e5b5
--- /dev/null
+++ b/scripts/acceptance/publish-2.0.5-remote.py
@@ -0,0 +1,84 @@
+"""Publish only the audited v2.0.5 assets, then verify GitHub server digests."""
+from pathlib import Path
+import hashlib,json,re,subprocess,sys,urllib.request,datetime
+ROOT=Path(__file__).resolve().parents[2];BASE=Path('E:/项目/Veyra');TASK='publish-2.0.5-20261007'
+LOG=BASE/'logs'/TASK;OUT=BASE/'releases'/TASK;REPO='Likely7/Veyra-NRVideo';TAG='v2.0.5'
+def save(p,v):p.write_text(json.dumps(v,ensure_ascii=False,indent=2)+'\n',encoding='utf8')
+def command(*args):return subprocess.check_output(list(args),stderr=subprocess.PIPE).decode('utf8')
+def api(path):return json.loads(command('gh','api',path))
+def sha(p):
+ with Path(p).open('rb') as f:return hashlib.file_digest(f,'sha256').hexdigest()
+subprocess.run([sys.executable,'-B',str(ROOT/'scripts/acceptance/publish-2.0.5-control.py')],check=True)
+phase=sys.argv[1];assets=json.loads((LOG/'assets.json').read_text(encoding='utf8'))
+merge=json.loads((LOG/'main-merge.json').read_text(encoding='utf8'));head=merge['mainAfter']
+assert command('git','-C',str(ROOT),'status','--porcelain').strip()==''
+assert command('git','-C',str(ROOT),'rev-parse','HEAD').strip()==merge['sourceCommit']
+for row in assets:assert Path(row['path']).stat().st_size==row['bytes'] and sha(row['path'])==row['sha256']
+bodyfile=OUT/'RELEASE_BODY.md'
+if not bodyfile.exists():
+ text=(ROOT/'docs/RELEASE_NOTES_2.0.5.md').read_text(encoding='utf8')
+ text=re.sub(r'\]\((?!https?://)([^)]+)\)',lambda m:'](https://github.com/'+REPO+'/blob/'+TAG+'/docs/'+m[1]+')',text)
+ text+='\n\n---\n\n'+(ROOT/'docs/RELEASE_SUPPORT.md').read_text(encoding='utf8')
+ bodyfile.write_text(text,encoding='utf8')
+body=bodyfile.read_text(encoding='utf8')
+assert body.count('width="220"')==2 and 'https://discord.gg/c9aREyMj8' in body and 'https://ko-fi.com/likely7' in body
+if phase=='push':
+ for name in ('cold-verify-results.json','stage-AMD.json','stage-NVIDIA.json','source-audit.json'):assert (LOG/name).is_file(),name
+ cold=json.loads((LOG/'cold-verify-results.json').read_text(encoding='utf8'));assert len(cold)==2 and all(r['passed'] for r in cold)
+ before=api('repos/'+REPO+'/releases/tags/v2.0.4');save(LOG/'previous-release-before.json',before)
+ assert command('git','-C',str(ROOT),'ls-remote','--heads','nrvideo','refs/heads/main').split()[0]=='578d63c3a0143429b306e26eeb89137473b4d99f'
+ assert not command('git','-C',str(ROOT),'ls-remote','--tags','nrvideo','refs/tags/'+TAG).strip()
+ subprocess.run(['git','-C',str(ROOT),'tag','-a',TAG,head,'-m','Veyra 2.0.5 stable application release'],check=True)
+ subprocess.run(['git','-C',str(ROOT),'push','--atomic','nrvideo','main:main','refs/tags/'+TAG],check=True)
+ save(LOG/'push.json',dict(mainCommit=head,sourceCommit=merge['sourceCommit'],tag=TAG,passed=True))
+elif phase=='draft':
+ assert (LOG/'push.json').is_file()
+ subprocess.run(['gh','release','create',TAG,'--repo',REPO,'--draft','--verify-tag','--title',
+ 'Veyra 2.0.5 · Stability, cross-vendor export & performance fixes','--notes-file',str(bodyfile)],check=True)
+ save(LOG/'draft-created.json',api('repos/'+REPO+'/releases/tags/'+TAG))
+ subprocess.run(['gh','release','upload',TAG,'--repo',REPO,*[r['path'] for r in assets]],check=True,timeout=1800)
+elif phase in ('verify-draft','verify-public'):
+ release=api('repos/'+REPO+'/releases/tags/'+TAG)
+ assert release['draft']==(phase=='verify-draft') and not release['prerelease']
+ assert release['body'].replace('\r\n','\n')==body.replace('\r\n','\n')
+ assert len(release['assets'])==len(assets)==5
+ expected={r['name']:r for r in assets}
+ for r in release['assets']:
+ local=expected.pop(r['name']);assert r['size']==local['bytes'] and r['state']=='uploaded'
+ assert r.get('digest')=='sha256:'+local['sha256'],(r['name'],r.get('digest'))
+ assert not expected
+ ref=api('repos/'+REPO+'/git/ref/tags/'+TAG)['object']
+ if ref['type']=='tag':ref=api('repos/'+REPO+'/git/tags/'+ref['sha'])['object']
+ assert ref['type']=='commit' and ref['sha']==head
+ finishpath=LOG/'documentation-close.json'
+ expected_main=json.loads(finishpath.read_text(encoding='utf8'))['mainAfter'] if finishpath.exists() else head
+ assert api('repos/'+REPO+'/git/ref/heads/main')['object']['sha']==expected_main
+ previous=api('repos/'+REPO+'/releases/tags/v2.0.4')
+ old=json.loads((LOG/'previous-release-before.json').read_text(encoding='utf8'))
+ for key in ('id','tag_name','body','published_at','assets'):assert previous[key]==old[key],key
+ result=dict(passed=True,phase=phase,releaseId=release['id'],url=release['html_url'],mainCommit=expected_main,releaseMainCommit=head,
+ sourceCommit=merge['sourceCommit'],tagCommit=ref['sha'],publishedAt=release['published_at'],
+ draft=release['draft'],prerelease=release['prerelease'],assets=release['assets'],bodySha256=sha(bodyfile),
+ originalReleaseUnchanged=True,checkedUtc=datetime.datetime.now(datetime.timezone.utc).isoformat())
+ if phase=='verify-public':
+ latest=api('repos/'+REPO+'/releases/latest');assert latest['id']==release['id']
+ destination=BASE/'verify'/TASK/('remote-final' if finishpath.exists() else 'remote');destination.mkdir(parents=True,exist_ok=False)
+ subprocess.run(['gh','release','download',TAG,'--repo',REPO,'--pattern','SHA256SUMS.txt','--dir',str(destination)],check=True,timeout=120)
+ assert sha(destination/'SHA256SUMS.txt')==sha(OUT/'SHA256SUMS.txt')
+ urls=[('release',release['html_url'])]
+ urls.extend((r['name'],r['browser_download_url']) for r in release['assets'])
+ urls.extend(('support-image',u.replace('&amp;','&')) for u in re.findall(r'<img src="([^"]+)"[^>]+width="220"',body))
+ urls.append(('ko-fi-button','https://storage.ko-fi.com/cdn/kofi5.png?v=6'))
+ availability=[]
+ for name,url in urls:
+ req=urllib.request.Request(url,method='HEAD',headers={'User-Agent':'Veyra-release-verification/2.0.5'})
+ with urllib.request.urlopen(req,timeout=60) as response:
+ assert response.status==200,(name,response.status)
+ availability.append(dict(name=name,url=url,status=response.status,contentType=response.headers.get('Content-Type')))
+ result.update(latest=True,downloadedChecksumsIdentical=True,httpAvailability=availability)
+ save(LOG/'remote-public-release.json',release)
+ save(LOG/(phase+'.json'),result);print('REMOTE VERIFY PASS',phase,len(release['assets']),'server SHA256 digests',flush=True)
+elif phase=='publish':
+ draft=json.loads((LOG/'verify-draft.json').read_text(encoding='utf8'));assert draft['passed'] and draft['draft']
+ subprocess.run(['gh','release','edit',TAG,'--repo',REPO,'--draft=false','--prerelease=false','--latest'],check=True)
+else:raise SystemExit('Unknown phase')