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 Veyra 2.0.6 with VFG, NR/FSR and capture fixes

Veyra Goal Agente1f6952a6ab1
diff --git a/AGENTS.md b/AGENTS.md
index df236072..411bf9ae 100644
--- a/AGENTS.md
+++ b/AGENTS.md
@@ -1,5 +1,7 @@
# Veyra 项目 Agent 执行规则
+> **2026-10-07 2.0.6正式发布授权**:用户明确构建2.0.6并发布GitHub,替换满员4群为所附5群二维码,发布后交付群公告。按docs/RELEASE_2.0.6_PLAN_2026-10-07.md从已验bf6e651在E盘codex/release-2.0.6-20261007整合VFG/Blackmagic/AMD NR-FSR修复,允许版本/双语README/新二维码/构建定向验收/同源码双显卡包及本轮commit/tag/main合并/普通push/v2.0.6正式Release与5资产上传。覆盖历史no-merge/no-push/no-Release;不扩改已验算法或运行组件,不改用户配置/驱动/其它工作树,不派Agent/竞争压力,不关机,群公告只交用户不代发。先运行release-2.0.6-control.py,独立start/bundle保护33工作树、495脏文件与3678项原件;仅main允许按合并回执推进,旧guard/baseline不改。测试≤300秒、构建≤900秒、产物全E盘。保留赞助QR/Discord/Ko-fi、双QR各width220,AMD/Blackmagic实卡与NV显存增长边界如实说明。
+
> **2026-10-07 AMD NR/FSR现场修复**:用户报告1080p文件与XSX1080p60开关AMD NR无画面变化,提供veyra-qml(37).log。按docs/AMD_NR_FSR_PLAN_2026-10-07.md从4294341在E盘codex/amd-nr-fsr-handoff-20261007隔离修复共享NR→FSR资源交接和必要定向测试/构建/本地候选;这些具体接点覆盖历史冻结。先运行amd-nr-fsr-control.py,独立start/bundle保护32个工作树、495个脏文件与3672项已发布/候选文件,不改旧guard。运行库/模型原字节、正常链路不回读;无子Agent/竞争压力、不改用户配置/驱动/其他工作树、无新main合并/push/Release/关机。每测试≤300秒、构建≤900秒,所有产物E盘。本机RTX共享交接验证不等于RX9070/HIP/XSX实卡验收。
> **2026-10-07 Blackmagic采集兼容授权**:用户要求兼容日志中的 Blackmagic WDM Capture / Decklink Video Capture,并说明不能确认物理卡数。从已验VFG候选cc22e88在E盘codex/blackmagic-capture-20261007按docs/BLACKMAGIC_CAPTURE_PLAN_2026-10-07.md隔离修复必要DirectShow上游连接/HDYC格式/驱动属性页/源黑帧诊断与QML及针对性构建验收。本次具体接点覆盖历史冻结;不改其它补帧/NR算法、不碰驱动/用户配置/其他工作树。独立start和Git bundle在archives/blackmagic-capture-20261007,先执行blackmagic-control.py,不改旧guard/baseline。无子Agent、压力/竞争负载;单测试≤300秒、构建≤900秒,产物统一E盘。运行库/模型原字节且不进Git;没有新merge/push/Release/关机授权。实卡未验不能宣称已解决。
diff --git a/CMakeLists.txt b/CMakeLists.txt
index afc2cd45..05e2ae8e 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -1,10 +1,10 @@
cmake_minimum_required(VERSION 3.24)
-project(veyra VERSION 2.0.5 LANGUAGES C CXX RC)
+project(veyra VERSION 2.0.6 LANGUAGES C CXX RC)
# Moonlight/Xbox have C sources independently of the optional PS5 backend.
# Shown in the EXE's version resource and in the package name. CMake versions
# must be numeric, so the beta marker lives here instead.
-set(VEYRA_DISPLAY_VERSION "2.0.5" CACHE STRING "Human-readable version string")
+set(VEYRA_DISPLAY_VERSION "2.0.6" CACHE STRING "Human-readable version string")
# The cache keeps the first value it ever saw, so a release that bumps
# project(VERSION) used to ship an EXE still stamped with the previous display
# string. Re-align it whenever the cached label does not start with the project
diff --git a/README.md b/README.md
index 87ff8c8c..af2bd1e7 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.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).
+**2.0.6 release, 2026-10-07:** VFG real-time submission optimization, NR-first output preservation through FSR, and Blackmagic/DeckLink capture compatibility with driver properties. [Full release notes](docs/RELEASE_NOTES_2.0.6.md).
-**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.
+**VFG measurements:** RTX 5070, GTA 4K30, original single-layer internal 1080p NR, actual Normal priority: adjacent comparisons improved Medium 4X submission readings **80→120fps (+50%)**, High 2X **35.5→60fps (+69%)**. These are local software submission measurements, not universal GPU or display-latency gains. Medium 6X+ and High 3X+ remain limited; **NVIDIA VRAM growth remains unresolved**. Actual AMD inference/consoles and physical Blackmagic hardware need further verification. [Conditions and limits](docs/RELEASE_NOTES_2.0.6.md).
## 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.5
+## New in 2.0.6
-- **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.
+- **VFG real-time submission:** bounded asynchronous SDK work keeps presentation moving, with per-frame success checks and ordered teardown; exports retain synchronous SDK verdicts.
+- **AMD NR→FSR:** preserve the NR result through upscaling and first-frame/discontinuity fallback instead of reading the original image.
+- **Blackmagic/DeckLink:** WDM upstream connection, native HDYC/BT709, driver/input property pages, exact format restoration and sustained-black observations. Physical hardware still needs verification.
+- **Community:** switch to group 5; retain WeChat donation, Discord and Ko-fi.
-[Full 2.0.5 release notes, measurements and validation limits](docs/RELEASE_NOTES_2.0.5.md).
+[Full 2.0.6 release notes, measurements and validation limits](docs/RELEASE_NOTES_2.0.6.md).
## Install and upgrade
-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.
+Download **Veyra-2.0.6-NVIDIA-win64-portable.zip** or **Veyra-2.0.6-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.
@@ -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.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.
+**2.0.6 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.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.
+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.6 build/source](docs/BUILD_2.0.6.md). Source Git excludes proprietary runtimes/models. Release manifests audit publisher files, not hash-lock user DLL replacements.
## Support
@@ -192,7 +192,7 @@ Original code: GPL-3.0. The combined Chiaki streaming application is also subjec
<p align="center">
<img src="https://raw.githubusercontent.com/Likely7/Veyra-NRVideo/v1.4.0/docs/images/1.4.0/donate-wechat.jpg" alt="WeChat donation" width="220">
&nbsp;&nbsp;&nbsp;&nbsp;
- <img src="https://raw.githubusercontent.com/Likely7/Veyra-NRVideo/v2.0.0/docs/images/2.0.0/community-group.png" alt="Veyra community group 4" width="220">
+ <img src="https://raw.githubusercontent.com/Likely7/Veyra-NRVideo/v2.0.6/docs/images/2.0.6/community-group.png" alt="Veyra community group 5" width="220">
</p>
-Left: optional donation, no feature restrictions. Right: community group; QR valid **before 2026-10-09** as shown. Check repository updates after expiry.
+Left: optional donation, no feature restrictions. Right: community group; QR valid **before 2026-10-14** as shown. Check repository updates after expiry.
diff --git a/README_CN.md b/README_CN.md
index 85b9958f..f0c906a7 100644
--- a/README_CN.md
+++ b/README_CN.md
@@ -14,11 +14,11 @@
Windows 视频、图片、采集卡与串流增强工具。在同一处理链组合超分辨率、NR 画面增强、调色、RTX Video HDR 与补帧。社区增强能力保留实验性质。
-[下载 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.6 免安装版](https://github.com/Likely7/Veyra-NRVideo/releases/tag/v2.0.6) · [完整更新(English / 中文)](docs/RELEASE_NOTES_2.0.6.md) · [反馈](https://github.com/Likely7/Veyra-NRVideo/issues)
-**2.0.5 正式版,2026-10-07:** 修复统计界面性能回退、AMD补帧默认项/NR合成、FSR与多层NR导出、OBS重绘、自动显示同步,并适配PR #19/#20。详见[完整更新](docs/RELEASE_NOTES_2.0.5.md)。
+**2.0.6 正式版,2026-10-07:** 优化VFG实时提交,修复NR→FSR结果被原图覆盖,增加Blackmagic/DeckLink采集兼容与驱动属性入口。详见[完整更新](docs/RELEASE_NOTES_2.0.6.md)。
-**实测数据:** 本机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继续暂缓。
+**VFG实测:** 本机RTX5070、GTA 4K30、单层内部1080p原版NR、实际普通优先级,相邻对照中Medium 4X送显提交读数 **80→120fps(+50%)**,High 2X **35.5→60fps(+69%)**。这是该环境的软件提交数据,不是所有显卡的保证或屏幕延迟收益。Medium 6X以上、High 3X以上仍有限制;**NVIDIA显存持续增长尚未修复**。AMD真实推理/主机和Blackmagic实卡需继续复测。[条件与边界](docs/RELEASE_NOTES_2.0.6.md)。
## 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.5 新增与修复
+## 2.0.6 新增与修复
-- **性能回退**:限制统计动画无效高频重绘;GTA/4K60普通优先级匹配对照未再出现约7%差距。
-- **AMD与导出**:默认优先可用FSR、其次XeSS,迁移不可用旧DLSS选择;FSR离线导出不再强换DLSS,多层NR冻结参数一致。AMD视频NR支持内部1080p合成原尺寸输出,实卡离线编码待复测;XeSS补帧导出仍明确不支持。
-- **兼容与显示**:修复OBS软件界面滚动拖影和lmxxf线性输出合成;自动显示同步在窗口/全屏生效,手动允许撕裂保留。
-- **PR #19/#20**:可选HDR显示调优及预设/会话适配,修复UTF-8日志和RemotePlay-off构建;显示调优不烘焙进离线导出。
+- **VFG实时优化**:有界异步提交避免SDK调用阻塞送显;保留逐帧成功检查、队列上限和退出清理,导出继续使用同步判定。
+- **AMD NR→FSR**:超分及首帧/断点缩放使用NR处理结果,修复1080p视频与串流开关NR看不到变化的链路错误。
+- **Blackmagic/DeckLink**:补齐WDM上游连接,原生识别HDYC/BT709;增加设备/输入属性页、精确格式恢复和持续黑帧提示,实卡仍需复测。
+- **交流群**:更新为5群二维码,微信赞助、Discord和Ko-fi保留。
-[2.0.5 完整更新、数据与验收边界](docs/RELEASE_NOTES_2.0.5.md)。
+[2.0.6 完整更新、实测数据与验收边界](docs/RELEASE_NOTES_2.0.6.md)。
## 下载、启动与升级
-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**。运行只需一个显卡包,源码包仅供重编译。
+1. 按 Veyra 实际使用的显卡下载 **Veyra-2.0.6-NVIDIA-win64-portable.zip** 或 **Veyra-2.0.6-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 覆盖新版。
@@ -78,7 +78,7 @@ Windows 视频、图片、采集卡与串流增强工具。在同一处理链组
5. 光流在输入后计算并共享,超分为单实例;RTX Video HDR 在补帧前,补帧固定末端,DLSS/XeSS/FSR 选一个后端。不是任意分支混合图。
6. 列表和节点分别保存参数、预设、会话。切回列表恢复原列表配置,节点链保留;切换重建处理链,可能短暂停顿。
-**2.0.5 节点模式不支持离线导出,也没有列表的 NR 全局保护区域。** 导出前切回列表并确认效果,不会自动转换节点链。
+**2.0.6 节点模式不支持离线导出,也没有列表的 NR 全局保护区域。** 导出前切回列表并确认效果,不会自动转换节点链。
### 采集与串流
@@ -133,7 +133,7 @@ QML 管界面,视频由原生 D3D12 呈现。列表/节点共用引擎,未
## 开源与构建
-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。
+Veyra 原有代码 GPL-3.0;含 Chiaki 串流的组合程序同时适用 AGPL-3.0 与上游 OpenSSL 例外(见 licenses/remoteplay)。[第三方来源与许可](THIRD_PARTY_NOTICES.md)、[2.0.6 构建与对应源码](docs/BUILD_2.0.6.md)。源码与运行库/模型分离;Release manifest 用于发行审计,不用哈希锁阻止用户替换 DLL。
## 支持与反馈
@@ -146,7 +146,7 @@ Veyra 原有代码 GPL-3.0;含 Chiaki 串流的组合程序同时适用 AGPL-3
<p align="center">
<img src="https://raw.githubusercontent.com/Likely7/Veyra-NRVideo/v1.4.0/docs/images/1.4.0/donate-wechat.jpg" alt="微信赞助" width="220">
&nbsp;&nbsp;&nbsp;&nbsp;
- <img src="https://raw.githubusercontent.com/Likely7/Veyra-NRVideo/v2.0.0/docs/images/2.0.0/community-group.png" alt="Veyra 交流群 4" width="220">
+ <img src="https://raw.githubusercontent.com/Likely7/Veyra-NRVideo/v2.0.6/docs/images/2.0.6/community-group.png" alt="Veyra 交流群 5" width="220">
</p>
-左:微信赞助(自愿,不影响功能);右:交流群。群码按图片标注于 **2026-10-09 前**有效,过期请查看仓库更新。
+左:微信赞助(自愿,不影响功能);右:交流群。群码按图片标注于 **2026-10-14 前**有效,过期请查看仓库更新。
diff --git a/docs/BUILD_2.0.6.md b/docs/BUILD_2.0.6.md
new file mode 100644
index 00000000..c47d9148
--- /dev/null
+++ b/docs/BUILD_2.0.6.md
@@ -0,0 +1,19 @@
+# Veyra 2.0.6 corresponding source and build / 对应源码与构建
+
+Download both [2.0.6 application source](https://github.com/Likely7/Veyra-NRVideo/releases/download/v2.0.6/Veyra-2.0.6-source.zip) and [2.0.6 dependency source](https://github.com/Likely7/Veyra-NRVideo/releases/download/v2.0.6/Veyra-2.0.6-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.
+
+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.
+
+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.
+
+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.6`. Current CMake numeric version is 2.0.6; shipped PE File/ProductVersion is 2.0.6.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.
+
+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 release-2.0.6-*.py record this production build and its 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 freshly validated 2.0.6 build, including VFG submission, Blackmagic compatibility and NR/FSR handoff repairs.
+
+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.6,应用源码必须用本版。保留FFmpeg slice补丁、静态字幕依赖源码/重链接材料。项目数字/显示版本2.0.6,PE版本2.0.6.0。其他机器显式配置自己的外置目录,不能照搬本机E盘路径。RX9000预览可用来自用户反馈,AMD高分辨率HIP离线导出/硬编码仍待实卡验证,NV显存持续增长未修复。
diff --git a/docs/CURRENT_STATUS.md b/docs/CURRENT_STATUS.md
index 5c529329..fa29f81e 100644
--- a/docs/CURRENT_STATUS.md
+++ b/docs/CURRENT_STATUS.md
@@ -1,5 +1,9 @@
# 当前项目状态 / Current Status
+## 2026-10-07 2.0.6 发布施工
+
+用户授权构建并发布2.0.6:整合已验VFG优化、Blackmagic兼容及AMD NR→FSR结果交接修复,替换为5群二维码,保留赞助/Discord/Ko-fi。按[本轮方案](RELEASE_2.0.6_PLAN_2026-10-07.md)执行;构建/当前测试和实际公开状态分别由验收及GitHub回执证明。NVIDIA显存增长仍未修复,AMD/HIP与Blackmagic实卡边界保持。下方记录为历史状态。
+
## 2026-10-07 当前公开正式版2.0.5
[v2.0.5](https://github.com/Likely7/Veyra-NRVideo/releases/tag/v2.0.5)已发布并核对为latest,NVIDIA/AMD完整便携包、应用/依赖源码及SHA256SUMS共5资产的远端digest一致。产品与已测2.0.5保持,正式冷启通过,详见[发布回执](PUBLISH_2.0.5_REPORT_2026-10-07.md)。NVIDIA显存持续增长仍未定位/修复,AMD实卡离线编码仍待复测;下方各记录仅代表其当时状态。
diff --git a/docs/RELEASE_2.0.6_ACCEPTANCE_2026-10-07.md b/docs/RELEASE_2.0.6_ACCEPTANCE_2026-10-07.md
new file mode 100644
index 00000000..d1600edd
--- /dev/null
+++ b/docs/RELEASE_2.0.6_ACCEPTANCE_2026-10-07.md
@@ -0,0 +1,45 @@
+# Veyra 2.0.6 新构建发布验收
+
+产品源码起点bf6e651,包含VFG、Blackmagic和NR→FSR已完成修复;本轮生产改动仅CMake数字/显示版本2.0.6,其余为发布文档/脚本/用户授权的群码。全新构建使用正式2.0.5外置依赖cache,build-product.py的sourceFiles逐hash绑定最终源码(585个输入),不以历史构建冒充本次通过。
+
+## 本轮实际运行
+
+`python -B scripts/acceptance/release-2.0.6-build.py build-product veyra_qml_ui veyra_amd_nr_graph_tests veyra_lmxxf_nr_tests veyra_effect_chain_tests veyra_vfg_gpu_tests veyra_vfg_settings_tests veyra_vfg_export_probe veyra_capture_color_tests veyra_capture_format_selection_tests veyra_hdr_color_tests`:exit0,143.859秒。EXE SHA256 da832280ef32d4531844a1852cb72360dfc94b5a78cac1beb1de666225b99aa2;版本资源由打包独立PE核对2.0.6.0。编译保留既有C4244转换警告,没有构建错误。
+
+`release-2.0.6-amd-tests.py amd-graph after / amd-abi abi / effect-chain units`,`release-2.0.6-tests.py prepare / units / gpu`依次执行,无同时GPU工作,私有E盘profile/TEMP。NR图20用例0失败、10个marker全通过/最大码值偏差0/D3D12错误0;ABI62检查、效果链264条PASS;采集颜色213条PASS、格式选择0失败;GPU颜色124项pass=1含HDYC/翻转709;VFG913检查/settings331检查均0失败。
+
+| 程序 | 秒 | 结果 |
+|---|---:|---|
+| veyra_amd_nr_graph_tests | 2.844 | exit0 / PASS |
+| veyra_lmxxf_nr_tests | 0.516 | exit0 / PASS |
+| veyra_effect_chain_tests | 0.047 | exit0 / PASS |
+| veyra_capture_color_tests | 0.063 | exit0 / PASS |
+| veyra_capture_format_selection_tests | 0.015 | exit0 / PASS |
+| veyra_vfg_settings_tests | 0.157 | exit0 / PASS |
+| veyra_hdr_color_tests | 4.813 | exit0 / PASS |
+| veyra_vfg_gpu_tests | 16.046 | exit0 / PASS |
+
+`release-2.0.6-preview.py case gta-medium4 --multiplier 4 --quality 1 --no-verbose`及`case gta-high2 --multiplier 2 --quality 2 --no-verbose`:新2.0.6 EXE、用户GTA4K30视频、单层原版内部1080p NR、5秒预热+20秒观察;实际GPU请求/生效class2(普通)、呈现队列priority0;无竞争负载。均PASS/无错误日志、正常状态,读数为软件提交统计:
+
+| 本轮复测 | FPS中位数 | 1秒采样数 | 进程总秒 |
+|---|---:|---:|---:|
+| Medium4X | 120 | 21 | 43.453 |
+| High2X | 60.0 | 20 | 42.437 |
+
+本轮只做新版本正常运行确认,没有新跑修改前二进制。发布说明中的+50.0%/+69.0%来自[VFG优化报告](VFG_OPTIMIZATION_REPORT_2026-10-07.md)相邻匹配实验(80→120/35.5→60),不是用本轮单次值拼算百分比;相同核心源码hash可追溯。不能推断所有显卡、屏幕延迟或显存收益。
+
+`release-2.0.6-exports.py exports`:真实NVENC HEVC导出720p30中等4X、GTA4K30+原版1080p NR中等4X,均8源帧→32编码帧、120fps/CFR/严格递增PTS、时长约8/30秒;4K尺寸3840×2160。另取消和缺失运行库失败清理通过(缺失运行库exit1是预期)。只读沿用已保存8帧GTA fixture,不修改用户原视频。四项输出/ffprobe/PTS详见logs/exports/summary.json。
+
+## 发布阶段的后置门槛
+
+干净源码提交并无快进合并main后,package.py生成两厂商完整包及应用/依赖源码/校验共5资产,逐载荷hash/ZIP CRC/PE依赖/vendor边界必须通过;cold.py只从最终ZIP独立解压、仅系统PATH/私有profile运行基本播放并核对包内Qt/FFmpeg模块。remote.py必须在全部通过后才允许草稿→正式发布。最终阶段结果以E:/项目/Veyra/logs/release-2.0.6-20261007/的source-audit.json、stage-AMD/NVIDIA.json、cold-verify-results.json、verify-draft.json、verify-public.json和发布后main回执为准;此文档在打包前固定,不伪造尚未发生的冷启/远端结果。
+
+## 边界、审查与保护
+
+NR graph使用RTX5070+真实FSR3.1.5+确定性测试NR provider,验证结果传递,不能代替AMD HIP/FSR4.1/Xbox实卡。测试provider只放tests,不随包发布。Blackmagic无本机硬件;2.0.6未重跑此前USB真卡连接验收,也不宣称真实HDMI已恢复。NVIDIA显存持续增长未修复,Xbox独立硬解回退不在范围内。
+
+本轮自动产品测试未发生失败;脚本检索阶段曾读取不存在的旧脚本文件名,改用实际vfg-opt-export.py,不影响产品验证。发布审查修正README英文二维码alt遗留group4为group5。既有编译警告与测试provider故障注入的ERROR均有原始日志,不把ABI预期错误误报为真实AMD推理失败。其他阶段的意外失败必须另记,不覆盖原始回执。
+
+开工baseline SHA256 ee8aab7b3484eabc90d55b59547dd5bd7934b14385ebff791c6f11b2eab3aba4;guard保护33个其他工作树/495个已有修改/3678旧文件。newQR原字节SHA256 5cb236ce664cd523681a6a4fa83180d2ada6d9fe7209a70921a0d95d93fd62bd,双QR220、原赞助/Discord/Ko-fi保留。无SDK/模型新增源码Git,无修改旧产物/用户profile/驱动/其他FG,无代发群消息/关机。
+
+全套产物在E:/项目/Veyra/build、tests、logs、tmp、releases、verify、archives/release-2.0.6-20261007对应目录。实际命令、结果、日志和来源以本计划/本验收及各JSON为证,不宣称独立Reviewer或未执行硬件验收。
diff --git a/docs/RELEASE_2.0.6_PLAN_2026-10-07.md b/docs/RELEASE_2.0.6_PLAN_2026-10-07.md
new file mode 100644
index 00000000..ec88fce6
--- /dev/null
+++ b/docs/RELEASE_2.0.6_PLAN_2026-10-07.md
@@ -0,0 +1,25 @@
+# Veyra 2.0.6 发布执行计划
+
+用户于本轮明确授权构建、合入 main、推送并正式发布 GitHub 2.0.6,替换满员的 4 群为用户提供的 5 群二维码,发布后提供群公告。无代发群消息或关机授权。当前指令覆盖历史 UI-only/禁止合并发布限制,仅限本次已完成修复及版本发布。
+
+## 固定输入与范围
+
+- 发布工作树:E:/项目/Veyra/worktrees/release-2.0.6-20261007;分支 codex/release-2.0.6-20261007。
+- 起点 bf6e6517a62abc94ea8de043b8db938be0a8638d;main/远端 nrvideo 起点 af5bfc3a66afce3047868229a3070a91c0fc9c22。
+- 产品包含已完成 VFG 优化 ddf71b1、Blackmagic/HDYC 兼容 4294341、NR-first→FSR/blit 输出传递 bf6e651;本轮不继续修改引擎。CMake 只改数值/显示版本到 2.0.6。
+- 运行库、模型、patched FFmpeg 与许可证沿用正式 2.0.5 两厂商包,逐文件校验;不加入测试 NR provider,不升级二进制组件。
+- 新群码原图 SHA256 5cb236ce664cd523681a6a4fa83180d2ada6d9fe7209a70921a0d95d93fd62bd,原字节复制 docs/images/2.0.6/community-group.png;图片标注 5 群、2026-10-14 前有效。旧微信赞助、Discord、Ko-fi 保留,双二维码 width220。
+
+## 执行与验收
+
+1. 独立 start.json 固定开工源码、33 个其他工作树、495 个已有修改、3678 个旧运行组件/证据文件;source-before.bundle 及旧 Release API 回执保存在 archives/release-2.0.6-20261007。release-2.0.6-control.py 每步复核,不重写旧 baseline。
+2. accepted 2.0.5 dependency cache 配置全新 E:/项目/Veyra/build/release-2.0.6-20261007,构建产品和相关测试。所有 tmp/log/tests/release/verify 均在 E:/项目/Veyra/ 对应任务目录,子进程私有 TEMP/TMP/profile;不覆盖用户配置。
+3. 串行执行 AMD NR→FSR graph、ABI、效果链、HDYC/格式/GPU 颜色、VFG GPU/settings/短视频导出及 GTA Normal 预览回归。每次测试不超过 300 秒,构建不超过 900 秒,不同时跑 GPU 工作。
+4. README 仅替换当前版本/最新更新/下载链接/群码,详细双语 Release Notes 记录收益条件、原始统计定义、未验收硬件和已知问题。新鲜回归与既有匹配性能对照分开。
+5. 干净源码提交后 --no-ff 合入 main,树必须一致。输出 NVIDIA/AMD 完整便携 ZIP、应用源码 ZIP、依赖源码 ZIP、SHA256SUMS 共 5 资产。逐文件 manifest/SHA、PE 依赖闭包/厂商隔离、ZIP CRC、最终 ZIP 独立解压冷启通过。
+6. 只向 nrvideo 普通 atomic 推送 main 与 annotated v2.0.6;先草稿上传 5 资产,核对服务器 SHA256 digest/大小/正文/标签,再发布为 latest 正式版。保留旧 2.0.5 正文/资产不变;核对公开下载、群码原字节、赞助图片/按钮可达。
+7. 实际发布完成后仅在 main 追加状态/工作记录/发布回执,不改标签/产品/资产;最终 guard 及远端核对后交付不超过 1000 字群公告。
+
+## 不能推断的结果
+
+RTX5070 上的真实 FSR3.1 + 测试 NR provider 像素回归只验证图的输出传递,不能冒充 AMD HIP/FSR4.1/Xbox 实卡验收。没有 Blackmagic 卡,不宣称真实 HDMI 成功。VFG FPS 为软件呈现提交统计,不是物理刷新率或屏幕延迟。高倍率 GPU 工作仍可能超预算。NVIDIA 显存持续增长未定位/修复,不能写成已解决。
diff --git a/docs/RELEASE_NOTES_2.0.6.md b/docs/RELEASE_NOTES_2.0.6.md
new file mode 100644
index 00000000..56f289b0
--- /dev/null
+++ b/docs/RELEASE_NOTES_2.0.6.md
@@ -0,0 +1,60 @@
+# Veyra 2.0.6
+
+本次重点:VFG 补帧吞吐优化、AMD NR 开启后结果被后续 FSR 覆盖的修复,以及 Blackmagic/DeckLink 采集兼容。提供 NVIDIA / AMD 两个完整便携包;应用版本为正式版,NR 与社区/解锁运行组件继续保留各自实验边界。
+
+## VFG:修复“有余量却上不去”的一类瓶颈
+
+原先 VFG 的 CUDA/SDK 提交工作会占住呈现线程,GPU 性能球有余量也可能错过呈现时机。现在提交工作进入有上限的独立 worker,每个输出槽显式区分等待、成功与失败;只有有效完成的结果参与呈现,失败仍保留源帧。GPU 同步、停机回收和离线导出完成判定保持完整。
+
+只调整 NVIDIA VFG,不改 DLSS、XeSS 或 FSR 补帧算法,也不通过提高默认 GPU 优先级获得这次数据。队列最多 14 个任务,覆盖两组 8X 工作;这不是无界缓存。运行库缺失和生成失败仍有回退,不把未完成纹理当成功帧。
+
+### 匹配性能对照
+
+RTX5070 12GB / 驱动616.56;GTA VI 4K30 视频输入,原版单层 NR、内部1080p、强度1、风格0、零运动,自动调控/抗闪烁/SR/HDR/调色关闭;VFG仍处理4K。窗口1280×800、自动显示同步、输出不限帧,实际普通GPU优先级。每轮预热5秒、统计20秒,无并发GPU任务。下表是同次优化验收的相邻匹配对照中位数,计量为软件呈现/提交 FPS。
+
+| VFG 档位 | 优化前 | 优化后 | 提升 | CPU 提交滚动 P95 的中位数 |
+|---|---:|---:|---:|---:|
+| 中等 4X | 80 FPS | 120 FPS | +50.0% | 23.450 → 1.198 ms |
+| 高 2X | 35.5 FPS | 60 FPS | +69.0% | 30.940 → 1.079 ms |
+
+同一候选程序把中等4X强制切回同步提交后为76.5 FPS,正常异步提交为120 FPS,支持本次瓶颈定位。更完整矩阵中:低档2–8X达到对应60–240 FPS目标,中等2–5X达到60–150 FPS,高档仅2X达到60 FPS。更高倍率仍受计算/带宽等预算限制;不能推断“高档8X也能跑满”。CPU提交减少不等于推理耗时、屏幕延迟或显存占用同比减少。
+
+既有优化验收覆盖3组GPU测试各913检查、168项同步/异步输出hash一致、设置331检查、21种720p导出及4K NR/VFG导出,另有切换/暂停/seek/全屏/取消/失败回退检查。2.0.6另进行新构建的针对性回归,结果见[发布验收](RELEASE_2.0.6_ACCEPTANCE_2026-10-07.md)。详细配置和原始数据见[VFG报告](VFG_OPTIMIZATION_REPORT_2026-10-07.md)。
+
+## AMD NR:修复开启执行但画面没有变化
+
+在“NR先处理 → FSR超分”的链路中,NR已有正常执行记录,后续FSR却可能再次读入原图,覆盖NR结果;普通缩放的首帧/reset路径也存在同类输入选择问题。现在统一读取当前已完成的处理阶段输出,覆盖文件播放、串流共用图及相关导出路径。此修复不修改NR模型、强度参数、HIP运行库或FSR算法。
+
+此前定向复现6个用例失败且最大像素码值偏差156;修复后20个图用例全部通过,最大偏差0、D3D12验证错误0,包含NR先行、FSR、普通缩放、首帧/reset、多层、运动/时间历史及4K导出图。该证据来自RTX5070上真实FSR3.1.5与仅用于测试的确定性NR provider;**AMD HIP、FSR4.1 ML与用户Xbox实机仍需复测**,不以替代测试冒充实卡效果验收。详见[AMD修复报告](AMD_NR_FSR_REPORT_2026-10-07.md)。
+
+## Blackmagic / DeckLink 兼容
+
+- 补齐Blackmagic WDM可能需要的设备medium/上游crossbar连接,不替用户改变输入路由。
+- 支持HDYC按UYVY解包,并在无明确元数据/手工覆盖时采用BT.709;保留显式颜色设置优先级。
+- 按设备返回的精确格式协商,保留VideoInfo2扫描/交错字段,减少格式看似相同但无法连接的问题。
+- 采集断开时可打开设备/输入驱动属性,选择正确HDMI等输入;增加有限频率的黑场采样诊断,帮助区分已收到黑画面与完全没帧。
+
+来源、固定提交与LGPL声明已记录在THIRD_PARTY_NOTICES。现有回归包括213项采集/COM/颜色检查、124项GPU颜色检查和本机USB卡约60FPS回调/重连检查。**本机没有Blackmagic卡,尚不能确认反馈者真实HDMI信号已恢复;列表中的两个名称也不一定是两张卡。** 详见[采集报告](BLACKMAGIC_CAPTURE_REPORT_2026-10-07.md)。
+
+## 下载、更新与反馈
+
+1. 按显卡选择NVIDIA或AMD完整便携包,在新目录完整解压;保留2.0.5方便回退,不把两个厂商包覆盖混装。
+2. 本次不升级运行组件/模型;patched FFmpeg、许可证和对应依赖源码继续随包提供。校验下载请使用SHA256SUMS.txt。应用及依赖源码见Release独立资产;重编译/静态依赖重链接见[构建说明](BUILD_2.0.6.md)。
+3. 4群已满,README和本Release更新为用户提供的**交流群5**二维码,图片标注**2026-10-14前有效**;微信赞助二维码、Discord与Ko-fi继续保留。
+4. 反馈请附显卡/驱动、输入来源、NR/补帧运行版本、处理顺序与日志。公开日志前请隐藏账号/会话信息。
+
+已知:NVIDIA持续显存增长尚未定位/修复;部分高倍率VFG仍达不到目标帧率;AMD实卡HIP/FSR4.1、Blackmagic真实输入、所有设备的长期稳定性未全部验收。XeSS补帧/节点离线导出仍不支持。Xbox日志中的独立硬解回退问题未在本次修复范围内。
+
+---
+
+## English release notes
+
+2.0.6 improves NVIDIA VFG scheduling, fixes the NR-first output handoff to FSR/scaling, and adds Blackmagic/DeckLink capture compatibility. Separate complete NVIDIA and AMD portable packages are available. The application release is stable; experimental NR/community/unlock components retain their existing status.
+
+**VFG:** bounded worker submission removes CUDA/SDK CPU work from the presentation thread. Output slots explicitly track pending/success/failure, with source-frame fallback and complete teardown synchronization. Other frame-generation algorithms and runtime binaries are unchanged. Matched adjacent RTX5070 tests with GTA 4K30, one original NR layer at internal1080p and normal GPU priority improved Medium4X from80 to120 software-present FPS (+50.0%) and High2X from35.5 to60 (+69.0%). Median rolling CPU-submission P95 changed23.450→1.198ms and30.940→1.079ms respectively. Each run used5s warmup+20s observation, VFG at4K, no competing GPU workload. These are conditional submission measurements, not screen refresh, end-to-end latency or VRAM savings. Higher multipliers remain budget-limited. Full settings/evidence and fresh release checks are linked above.
+
+**NR → FSR/scaling:** the later stage could read the original image despite NR executing successfully, making the NR toggle appear ineffective. Both FSR and relevant scaling/reset paths now consume the completed stage output. Six reproduced failures became20 passing graph cases with zero marker error/D3D12 validation errors. This uses real FSR3.1.5 and a deterministic test NR provider on RTX5070; AMD HIP/FSR4.1 ML and Xbox hardware confirmation remain pending. The test provider is never shipped.
+
+**Capture:** Blackmagic WDM upstream connections, HDYC/UYVY with a BT.709 fallback, exact driver format negotiation including scan/interlace metadata, disconnected driver-property dialogs, and bounded black-frame sampling diagnostics. No local Blackmagic hardware was available; this is compatibility implementation plus regression evidence, not confirmed physical HDMI acceptance.
+
+Extract the appropriate vendor package into a new folder. Runtime/model/codec identities and patched FFmpeg are preserved from2.0.5; application and dependency source archives, notices and checksums accompany the release. Group4 is full; the supplied Group5 QR replaces the current community QR and is valid before2026-10-14. Existing donation QR, Discord and Ko-fi remain. NVIDIA sustained VRAM growth is unresolved; higher VFG multipliers and long-running cross-device stability are not universally validated. XeSS FG/node offline export remains unsupported.
diff --git a/docs/RELEASE_SUPPORT.md b/docs/RELEASE_SUPPORT.md
index 0d0f8dc7..85dc3d59 100644
--- a/docs/RELEASE_SUPPORT.md
+++ b/docs/RELEASE_SUPPORT.md
@@ -9,9 +9,9 @@
<p align="center">
<img src="https://raw.githubusercontent.com/Likely7/Veyra-NRVideo/v1.4.0/docs/images/1.4.0/donate-wechat.jpg" alt="微信赞助" width="220">
&nbsp;&nbsp;&nbsp;&nbsp;
- <img src="https://raw.githubusercontent.com/Likely7/Veyra-NRVideo/v2.0.0/docs/images/2.0.0/community-group.png" alt="Veyra 交流群 4" width="220">
+ <img src="https://raw.githubusercontent.com/Likely7/Veyra-NRVideo/v2.0.6/docs/images/2.0.6/community-group.png" alt="Veyra 交流群 5" width="220">
</p>
-左:微信赞助(自愿,不影响功能);右:交流群。群码按图片标注于 **2026-10-09 前**有效,过期请查看仓库更新。
+左:微信赞助(自愿,不影响功能);右:交流群。群码按图片标注于 **2026-10-14 前**有效,过期请查看仓库更新。
-Left: optional donation; right: community group. QR valid before 2026-10-09.
+Left: optional donation; right: community group. QR valid before 2026-10-14.
diff --git a/docs/WORKLOG.md b/docs/WORKLOG.md
index f903e26e..42aedf2f 100644
--- a/docs/WORKLOG.md
+++ b/docs/WORKLOG.md
@@ -1,5 +1,10 @@
# Veyra 工作记录
+## 2026-10-07 2.0.6 正式发布施工
+
+用户明确授权构建、合并main、GitHub正式发布及换5群二维码。隔离codex/release-2.0.6-20261007起点bf6e651,main/nrvideo起点af5bfc3;VFG/Blackmagic/AMD NR→FSR修复保持原产品字节,CMake仅版本改2.0.6。全新构建143.859秒exit0,图20/ABI62/链264/采集213/颜色124/VFG913+设置331及四导出检查通过;GTA普通优先级中等4X120FPS/高2X60.0FPS。详细命令、数据、失败复核和未测硬件见[本轮验收](RELEASE_2.0.6_ACCEPTANCE_2026-10-07.md)、[发布计划](RELEASE_2.0.6_PLAN_2026-10-07.md)。新群码原字节/有效期10月14日前,原赞助/Discord/Ko-fi保留。所有产物E:/项目/Veyra/对应release-2.0.6-20261007目录。33旧工作树/495修改/3678证据由独立guard保护。后续打包/最终ZIP冷启/远端发布以实际回执追加,NVIDIA显存增长未修复。
+
+
## 2026-10-07 AMD NR → FSR结果丢失修复
用户提交veyra-qml(37).log,报告1080p文件和XSX1080p60开关AMD NR无变化。从已验4294341在codex/amd-nr-fsr-handoff-20261007隔离修复,保留先前VFG和Blackmagic候选。独立start.json SHA256 0db892110ae4d7f358ed19cb9debbef747ea12cbbffd128f69a82040a5341499、全引用source-before.bundle SHA256 dcd0d2ce954b54b7aacf807d35d35395bc86d849a4e58cec8c7d9a0cf583f40a位于E:/项目/Veyra/archives/amd-nr-fsr-handoff-20261007;新amd-nr-fsr-control.py保护32个原工作树、495份未提交文件和3672项原包/运行库/模型/证据,不改旧guard/baseline、桌面/main/用户配置/驱动。不派Agent、不做竞争负载,不合并main/push/Release/关机。
diff --git a/docs/images/2.0.6/community-group.png b/docs/images/2.0.6/community-group.png
new file mode 100644
index 00000000..12c73e9a
Binary files /dev/null and b/docs/images/2.0.6/community-group.png differ
diff --git a/scripts/acceptance/release-2.0.6-amd-tests.py b/scripts/acceptance/release-2.0.6-amd-tests.py
new file mode 100644
index 00000000..60c95cde
--- /dev/null
+++ b/scripts/acceptance/release-2.0.6-amd-tests.py
@@ -0,0 +1,41 @@
+"""Bounded serial pixel regressions with real FSR and a test-only NR provider."""
+from pathlib import Path
+import hashlib,json,os,re,shutil,subprocess,sys,time,psutil
+ROOT=Path(__file__).resolve().parents[2];BASE=Path('E:/项目/Veyra');TASK='release-2.0.6-20261007'
+label,phase=sys.argv[1:3];assert label.replace('-','').isalnum() and phase in ('before','after','abi','units')
+BUILD=BASE/'build'/TASK;PACKAGE=BASE/'releases/publish-2.0.5-20261007/packages/Veyra-2.0.5-AMD-win64-portable'
+out=BASE/'tests'/TASK/label;tmp=BASE/'tmp'/TASK/label;logs=BASE/'logs'/TASK/label
+for p in (out,tmp,logs):p.mkdir(parents=True,exist_ok=False)
+guard=[sys.executable,'-B',str(ROOT/'scripts/acceptance/release-2.0.6-control.py')];subprocess.run(guard,check=True)
+assert not any(p.info['name'].lower() in ('veyra.exe','veyra_qml_ui.exe','veyra_amd_nr_graph_tests.exe') for p in psutil.process_iter(['name']))
+for p in PACKAGE.glob('*.dll'):shutil.copyfile(p,out/p.name)
+shutil.copytree(BUILD/'shaders',out/'shaders')
+if phase in ('before','after'):
+ targets=['veyra_amd_nr_graph_tests']
+ d=out/'runtime/amd-nr';d.mkdir(parents=True);(d/'assets').mkdir()
+ shutil.copyfile(BUILD/'lmxxf-test-runtime/LmxxfNrRuntime.dll',d/'LmxxfNrRuntime.dll')
+ (out/'runtime/nvidia').mkdir()
+ shutil.copytree(PACKAGE/'runtime_local/amd/fidelityfx',out/'runtime_local/amd/fidelityfx')
+elif phase=='abi':
+ targets=['veyra_lmxxf_nr_tests'];shutil.copytree(BUILD/'lmxxf-test-runtime',out/'lmxxf-test-runtime')
+else:targets=['veyra_effect_chain_tests']
+env={k:v for k,v in os.environ.items() if not k.upper().startswith(('VEYRA_','QT_','QSG_'))}
+env.update(TEMP=str(tmp),TMP=str(tmp),CUDA_CACHE_PATH=str(tmp/'cuda-cache'),VEYRA_LOCAL_DATA_DIR=str(out/'profile'))
+results=[]
+for target in targets:
+ exe=out/(target+'.exe');shutil.copyfile(BUILD/exe.name,exe);log=logs/(target+'.log')
+ child=env.copy();child['VEYRA_LOG_FILE']=str(logs/(target+'-engine.log'));start=time.monotonic()
+ with log.open('xb') as f:
+ try:rc=subprocess.run([str(exe)],cwd=out,env=child,stdout=f,stderr=subprocess.STDOUT,timeout=290).returncode
+ except subprocess.TimeoutExpired:rc=124
+ text=log.read_text(encoding='utf8',errors='replace');passed=rc==0 and not re.search(r'^FAIL\b|\bpass=0\b',text,re.M)
+ markers=re.findall(r'^AMD_NR_SR_MARKER .*',text,re.M)
+ if phase=='before':
+ failed=[re.search(r'case=(\S+)',m).group(1) for m in markers if 'pass=0' in m]
+ passed=rc==1 and set(failed)=={'pre-fsr-one','pre-fsr-two','pre-fsr-temporal','pre-fsr-flow-file','pre-fsr-flow-xsx-1080','pre-blit-one'} and len(markers)==10 and 'D3D12_DEBUG errors=0' in text
+ if phase=='after':passed=passed and len(markers)==10 and all('pass=1' in m for m in markers) and 'D3D12_DEBUG errors=0' in text
+ item={'target':target,'phase':phase,'command':[str(exe)],'exit':rc,'seconds':time.monotonic()-start,'passed':bool(passed),'markers':markers,'exeSha256':hashlib.sha256(exe.read_bytes()).hexdigest(),'providerSha256':hashlib.sha256((BUILD/'lmxxf-test-runtime/LmxxfNrRuntime.dll').read_bytes()).hexdigest(),'sourceGraphSha256':hashlib.sha256((ROOT/'src/pipeline/EnhanceGraph.cpp').read_bytes()).hexdigest(),'log':str(log)}
+ results.append(item);(logs/'summary.json').write_text(json.dumps(results,ensure_ascii=False,indent=2),encoding='utf8')
+ print(json.dumps(item,ensure_ascii=False),flush=True);print('\n'.join(text.splitlines()[-15:]),flush=True)
+ if not passed:raise SystemExit(1)
+subprocess.run(guard,check=True)
diff --git a/scripts/acceptance/release-2.0.6-audit.py b/scripts/acceptance/release-2.0.6-audit.py
new file mode 100644
index 00000000..41ef7788
--- /dev/null
+++ b/scripts/acceptance/release-2.0.6-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='release-2.0.6-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/release-2.0.6-build.py b/scripts/acceptance/release-2.0.6-build.py
new file mode 100644
index 00000000..48778f3e
--- /dev/null
+++ b/scripts/acceptance/release-2.0.6-build.py
@@ -0,0 +1,29 @@
+"""Build the isolated routing fix with the accepted 2.0.5 dependencies."""
+from pathlib import Path
+import hashlib,json,os,subprocess,sys,time
+ROOT=Path(__file__).resolve().parents[2];BASE=Path('E:/项目/Veyra');TASK='release-2.0.6-20261007'
+label=sys.argv[1];assert label.replace('-','').isalnum()
+BUILD=BASE/'build'/TASK;TMP=BASE/'tmp'/TASK/'build';LOG=BASE/'logs'/TASK/(label+'.log')
+for p in (BUILD,TMP,LOG.parent):p.mkdir(parents=True,exist_ok=True)
+guard=[sys.executable,'-B',str(ROOT/'scripts/acceptance/release-2.0.6-control.py')];subprocess.run(guard,check=True)
+cache=BASE/'build/release-2.0.5-20261007/standard/CMakeCache.txt';settings=[]
+for line in cache.read_text(encoding='utf8').splitlines():
+ if ':' not in line or '=' not in line or line.startswith(('#','//')):continue
+ keytype,value=line.split('=',1);key,kind=keytype.split(':',1)
+ if kind in ('INTERNAL','STATIC') or key in ('VEYRA_DISPLAY_VERSION','VEYRA_AMD_NR_TEST_GRAPH_SOURCE'):continue
+ if key.startswith('VEYRA_') or key in ('CMAKE_PREFIX_PATH','CMAKE_MAKE_PROGRAM','PROTOC','PKG_CONFIG_EXECUTABLE'):
+ settings.append(f'set({key} [[{value}]] CACHE {kind} "Accepted dependencies" FORCE)')
+settings.append('set(VEYRA_DISPLAY_VERSION [[2.0.6]] CACHE STRING "Local AMD NR/FSR repair" FORCE)')
+(TMP/'dependencies.cmake').write_text('\n'.join(settings),encoding='utf8')
+targets=sys.argv[2:] or ['veyra_qml_ui','veyra_amd_nr_graph_tests','veyra_lmxxf_nr_tests','veyra_effect_chain_tests']
+assert all(t.replace('_','').isalnum() for t in targets)
+cmd=TMP/'build.cmd';cmd.write_text('@echo off\nchcp 65001 >nul\ncall "C:\\Program Files (x86)\\Microsoft Visual Studio\\2022\\BuildTools\\VC\\Auxiliary\\Build\\vcvars64.bat" >nul 2>&1\nif errorlevel 1 exit /b 4\n"%TASK_CMAKE%" --preset x64-release -S "%TASK_ROOT%" -B "%TASK_BUILD%" -C "%TASK_TMP%\\dependencies.cmake"\nif errorlevel 1 exit /b 5\n"%TASK_CMAKE%" --build "%TASK_BUILD%" --parallel 6 --target '+' '.join(targets)+'\nexit /b %errorlevel%\n',encoding='ascii')
+env=os.environ.copy();env.update(TEMP=str(TMP),TMP=str(TMP),VSLANG='1033',TASK_ROOT=str(ROOT),TASK_BUILD=str(BUILD),TASK_TMP=str(TMP),TASK_CMAKE='C:/Program Files (x86)/Microsoft Visual Studio/2022/BuildTools/Common7/IDE/CommonExtensions/Microsoft/CMake/CMake/bin/cmake.exe')
+source={str(p.relative_to(ROOT)).replace('\\','/'):hashlib.sha256(p.read_bytes()).hexdigest() for folder in ('src','include','shaders','qml','tests') for p in (ROOT/folder).rglob('*') if p.is_file()}
+source['CMakeLists.txt']=hashlib.sha256((ROOT/'CMakeLists.txt').read_bytes()).hexdigest()
+start=time.monotonic()
+with LOG.open('x',encoding='utf8') as stream:
+ try:rc=subprocess.run(['cmd.exe','/d','/c',str(cmd)],cwd=ROOT,env=env,stdout=stream,stderr=subprocess.STDOUT,timeout=890).returncode
+ except subprocess.TimeoutExpired:rc=124
+LOG.with_suffix('.json').write_text(json.dumps({'exit':rc,'seconds':time.monotonic()-start,'targets':targets,'sourceHead':subprocess.check_output(['git','rev-parse','HEAD'],cwd=ROOT,encoding='ascii').strip(),'sourceFiles':source,'dependencyCacheSha256':hashlib.sha256(cache.read_bytes()).hexdigest()},indent=2),encoding='utf8')
+print('BUILD',rc,LOG);print('\n'.join(LOG.read_text(encoding='utf8',errors='replace').splitlines()[-14:]));subprocess.run(guard,check=True);raise SystemExit(rc)
diff --git a/scripts/acceptance/release-2.0.6-cold.py b/scripts/acceptance/release-2.0.6-cold.py
new file mode 100644
index 00000000..4e7d9357
--- /dev/null
+++ b/scripts/acceptance/release-2.0.6-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='release-2.0.6-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/release-2.0.6-control.py'],cwd=BASE/'worktrees'/TASK,check=True)
diff --git a/scripts/acceptance/release-2.0.6-control.py b/scripts/acceptance/release-2.0.6-control.py
new file mode 100644
index 00000000..47b702bc
--- /dev/null
+++ b/scripts/acceptance/release-2.0.6-control.py
@@ -0,0 +1,47 @@
+"""Check the independent AMD NR -> FSR repair scope and preserved inputs."""
+from pathlib import Path
+import hashlib,json,subprocess
+ROOT=Path(__file__).resolve().parents[2];BASE=Path('E:/项目/Veyra');TASK='release-2.0.6-20261007'
+START=BASE/'archives'/TASK/'start.json'
+ALLOWED={'AGENTS.md','CMakeLists.txt','README.md','README_CN.md','docs/WORKLOG.md','docs/CURRENT_STATUS.md','docs/RELEASE_SUPPORT.md','docs/images/2.0.6/community-group.png'}
+def sha(p):
+ with p.open('rb') as f:return hashlib.file_digest(f,'sha256').hexdigest()
+def git(*args,cwd=ROOT):return subprocess.check_output(['git',*args],cwd=cwd)
+def others():
+ out=[]
+ for line in git('worktree','list','--porcelain').decode('utf8').splitlines():
+ if not line.startswith('worktree '):continue
+ p=Path(line[9:])
+ if p.resolve()==ROOT.resolve():continue
+ names=set(git('ls-files','-m','-o','--exclude-standard','-z',cwd=p).decode('utf8').split('\0'))-{''}
+ out.append({'path':str(p),'head':git('rev-parse','HEAD',cwd=p).decode().strip(),
+ 'statusHex':git('status','--porcelain=v1','-z','--untracked-files=all',cwd=p).hex(),
+ 'changed':{n:sha(p/n) if (p/n).is_file() else None for n in sorted(names)}})
+ return out
+def allowed(n):return n in ALLOWED or n.startswith(('docs/RELEASE_2.0.6_','docs/RELEASE_NOTES_2.0.6','docs/BUILD_2.0.6','scripts/acceptance/release-2.0.6-'))
+assert sha(START)=='ee8aab7b3484eabc90d55b59547dd5bd7934b14385ebff791c6f11b2eab3aba4','Immutable baseline changed'
+start=json.loads(START.read_text(encoding='utf8'))
+changed=[n for n,d in start['files'].items() if not (ROOT/n).is_file() or sha(ROOT/n)!=d]
+current=set(git('ls-files','-c','-o','--exclude-standard','-z').decode('utf8').split('\0'))-{''}
+changed+=sorted(current-set(start['files']))
+assert all(allowed(n) for n in changed),[n for n in changed if not allowed(n)]
+currentOthers=others()
+for actual,previous in zip(currentOthers,start['otherWorktrees']):
+ assert actual['path']==previous['path']
+ if Path(actual['path']).resolve()==Path(start['mainPath']).resolve() and actual['head']!=previous['head']:
+ receipt=json.loads((BASE/'logs'/TASK/'main-merge.json').read_text(encoding='utf8'))
+ assert receipt['mainBefore']==previous['head']
+ releaseMain=receipt['mainAfter']
+ assert git('rev-list','--parents','-n','1',releaseMain).decode().split()[1:]==[previous['head'],receipt['sourceCommit']]
+ assert git('rev-parse',releaseMain+'^{tree}')==git('rev-parse',receipt['sourceCommit']+'^{tree}')
+ if actual['head']!=releaseMain:
+ close=json.loads((BASE/'logs'/TASK/'documentation-close.json').read_text(encoding='utf8'))
+ assert close['releaseMainCommit']==releaseMain and close['mainAfter']==actual['head']
+ assert git('rev-list','--parents','-n','1',actual['head']).decode().split()[1:]==[releaseMain]
+ expected={'docs/WORKLOG.md','docs/CURRENT_STATUS.md','docs/RELEASE_2.0.6_REPORT_2026-10-07.md'}
+ assert set(git('diff','--name-only',releaseMain,actual['head']).decode().splitlines())==set(close['files'])==expected
+ actual=dict(actual,head=previous['head'])
+ assert actual==previous,'Another worktree changed: '+actual['path']
+assert len(currentOthers)==len(start['otherWorktrees'])
+for n,d in start['immutable'].items():assert sha(Path(n))==d,n
+print('2.0.6 release guard passed:',len(set(changed)),'scope files;',len(start['otherWorktrees']),'other worktrees preserved;',len(start['immutable']),'immutable files intact')
diff --git a/scripts/acceptance/release-2.0.6-exports.py b/scripts/acceptance/release-2.0.6-exports.py
new file mode 100644
index 00000000..4d1ca735
--- /dev/null
+++ b/scripts/acceptance/release-2.0.6-exports.py
@@ -0,0 +1,54 @@
+"""Serial real graph/NVENC export checks, including frame counts and PTS."""
+from pathlib import Path
+import argparse,json,os,re,shutil,subprocess,psutil
+ROOT=Path(__file__).resolve().parents[2];BASE=Path('E:/项目/Veyra');TASK='release-2.0.6-20261007';APP=BASE/'tests'/TASK/'app'
+p=argparse.ArgumentParser();p.add_argument('label');a=p.parse_args();assert a.label.replace('-','').isalnum()
+subprocess.run(['python','-B',str(ROOT/'scripts/acceptance/release-2.0.6-control.py')],cwd=ROOT,check=True)
+assert not any(x.info['name'].lower() in ('veyra.exe','veyra_qml_ui.exe','veyra_vfg_gpu_tests.exe','veyra_vfg_export_probe.exe') for x in psutil.process_iter(['name']))
+out,logs,tmp=(BASE/k/TASK/a.label for k in ('tests','logs','tmp'))
+for x in (out,logs,tmp):x.mkdir(parents=True,exist_ok=False)
+probe=shutil.which('ffprobe');ffmpeg=shutil.which('ffmpeg');assert probe and ffmpeg
+shutil.copy2(BASE/'build'/TASK/'veyra_vfg_export_probe.exe',APP/'veyra_vfg_export_probe.exe')
+env={k:v for k,v in os.environ.items() if not k.startswith(('VEYRA_','QSG_','QT_QUICK_'))}
+env.update(TEMP=str(tmp),TMP=str(tmp),CUDA_CACHE_PATH=str(tmp/'cuda-cache'),VEYRA_VFG_RUNTIME=str(APP/'runtime/nvidia-vfg'))
+env['PATH']=os.pathsep.join((env['WINDIR']+'/System32',env['WINDIR'],env['WINDIR']+'/System32/Wbem'))
+source=BASE/'tests/runtime-size-20261004/export-basic-v2/input.mp4';assert source.is_file();results=[]
+def run(name,media,m,q,flags=(),expected='success'):
+ file=out/(name+'.mp4');child=env.copy()
+ if expected=='missing':child['VEYRA_VFG_RUNTIME']=str(tmp/'missing-runtime')
+ log=logs/(name+'.log');cmd=[str(APP/'veyra_vfg_export_probe.exe'),str(media),str(file),str(m),str(q),*flags]
+ with log.open('xb') as f:
+ try:rc=subprocess.run(cmd,cwd=APP,env=child,stdout=f,stderr=subprocess.STDOUT,timeout=290).returncode
+ except subprocess.TimeoutExpired:rc=124
+ text=log.read_text(encoding='utf8',errors='replace');item={'case':name,'command':cmd,'exit':rc,'expected':expected}
+ if expected!='success':
+ assert rc==(1 if expected=='missing' else 0) and not file.exists(),text[-5000:]
+ assert ('cancelled=1' if expected=='cancel' else 'ok=0') in text,text[-5000:]
+ else:
+ assert rc==0 and 'backend=NVIDIA-VFG' in text and 'SDK submission=graph owner' in text and 'nvenc' in text.lower(),text[-5000:]
+ assert not re.search(r'\[ERROR\s*\]|\[FATAL\s*\]|device removed|not alive|substituting',text),text[-5000:]
+ data=json.loads(subprocess.check_output([probe,'-v','error','-count_frames','-show_streams','-of','json',str(file)],timeout=30))
+ v=next(x for x in data['streams'] if x['codec_type']=='video')
+ assert v['codec_name']=='hevc' and int(v['nb_read_frames'])==8*m,data
+ tick=int(v['time_base'].split('/')[0])/int(v['time_base'].split('/')[1])
+ rate=lambda k:int(v[k].split('/')[0])/int(v[k].split('/')[1])
+ assert abs(rate('r_frame_rate')-30*m)<.00001,data
+ # MP4 uses integer time-base ticks: an eight-frame clip's rounded duration
+ # changes avg_frame_rate slightly even with strictly CFR packet timestamps.
+ assert abs(rate('avg_frame_rate')-30*m)<=30*m*tick/(8/30-tick)+1e-9,data
+ assert abs(float(v['duration'])-8/30)<=tick+1e-9,data
+ for audio in (x for x in data['streams'] if x['codec_type']=='audio'):assert abs(float(audio['duration'])-8/30)<.06,data
+ packets=json.loads(subprocess.check_output([probe,'-v','error','-select_streams','v','-show_entries','packet=pts_time','-of','json',str(file)],timeout=30))['packets']
+ pts=[float(x['pts_time']) for x in packets];assert len(pts)==8*m and all(b>a and abs(b-a-1/(30*m))<=2*tick+1e-9 for a,b in zip(pts,pts[1:])),pts
+ if '--nr' in flags:assert 'nr=1' in text and (v['width'],v['height'])==(3840,2160),text[-5000:]
+ item.update(frames=8*m,probe=data,pts=pts)
+ results.append(item);(logs/'summary.json').write_text(json.dumps(results,ensure_ascii=False,indent=2),encoding='utf8');print('VFG EXPORT PASS',name,flush=True)
+run('720p30-medium-vfg4',source,4,1)
+gta=BASE/'tests/vfg-optimization-20261007/export-v3-verified/gta-4k30-eight-frames.mp4'
+assert gta.is_file()
+run('gta-4k30-native-nr-vfg4',gta,4,1,('--nr',))
+run('cancel-vfg8',source,8,1,('--cancel',),expected='cancel')
+run('missing-runtime-vfg8',source,8,1,expected='missing')
+print('VFG EXPORT SUITE PASS',len(results),logs,flush=True)
+
+subprocess.run(['python','-B',str(ROOT/'scripts/acceptance/release-2.0.6-control.py')],cwd=ROOT,check=True)
diff --git a/scripts/acceptance/release-2.0.6-finish.py b/scripts/acceptance/release-2.0.6-finish.py
new file mode 100644
index 00000000..b99dd6e0
--- /dev/null
+++ b/scripts/acceptance/release-2.0.6-finish.py
@@ -0,0 +1,74 @@
+"""Close the verified publication with a documentation-only main commit."""
+from pathlib import Path
+import hashlib,json,subprocess,sys
+ROOT=Path(__file__).resolve().parents[2];BASE=Path('E:/项目/Veyra');TASK='release-2.0.6-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')
+guard=[sys.executable,'-B',str(ROOT/'scripts/acceptance/release-2.0.6-control.py')];subprocess.run(guard,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.6 正式发布回执
+
+已发布:{remote['url']};Release ID {remote['releaseId']},published_at {remote['publishedAt']},非预发布,latest核对通过。标签v2.0.6指向main合并{head},发布源码{merge['sourceCommit']},二者树完全相同。收尾文档另行提交,不改标签、产品或资产。
+
+## 构建与回归
+
+按[发布验收](RELEASE_2.0.6_ACCEPTANCE_2026-10-07.md)执行全新2.0.6产品/测试构建、NR→FSR图20项、ABI62项、效果链264项、采集颜色213项/格式协商、GPU颜色124项、VFG GPU913项/settings331项以及四项NVENC导出(720p4X、4K NR4X、取消、缺失运行库)和GTA中等4X/高2X普通优先级预览。构建源输入逐hash绑定最终源码;PE数字版本2.0.6.0。真实AMD HIP/FSR4.1/Xbox及Blackmagic HDMI未在本机实卡验收,NVIDIA持续显存增长未修复。
+
+package.py对干净发布源码生成完整包和对应源码;audit.py对两厂商所有manifest文件、运行组件身份、驱动排除及PE依赖闭包通过;ZIP CRC和全部载荷SHA通过。最终ZIP冷启:{'; '.join(r['vendor']+' '+str(r['seconds'])+'秒/exit0/'+str(len(r['ownQtAndCodecModulePaths']))+'个包内Qt/FFmpeg模块' for r in cold)}。均为RTX5070本机基础播放,不能代替AMD硬件推理/编码。
+
+remote.py push/draft/verify-draft/publish/verify-public:普通atomic推送main+标签,草稿上传5资产,服务器大小/digest逐项等于本机;正文逐字一致、标签/main一致,正式latest核对通过。重新下载SHA256SUMS字节一致,5资产/页面/双QR/Ko-fi按钮HTTP200。新群5二维码远端SHA256等于用户原图5cb236ce664cd523681a6a4fa83180d2ada6d9fe7209a70921a0d95d93fd62bd,双QR各width220,原赞助URL、Discord和Ko-fi保留。旧v2.0.5 ID/正文/发布时间/资产完整保留。
+
+## 资产
+
+| 文件 | 字节 | SHA256 |
+|---|---:|---|
+{table}
+
+依赖源码与2.0.5逐字节相同4eccde63…,仅改名2.0.6;patched FFmpeg、静态依赖源码及重链接材料保留。应用源码ZIP来自干净发布提交,仅排除一份历史tracked pyc;Git内原文件保留。源码无SDK/runtime/模型,用户包无测试provider/日志/媒体/个人profile/PDB/LIB。
+
+## 保护与路径
+
+执行回执:E:/项目/Veyra/logs/{TASK}/;最终资产:E:/项目/Veyra/releases/{TASK}/;独立解压:E:/项目/Veyra/verify/{TASK}/;构建/测试/tmp分别在同任务子目录。archives/{TASK}/start.json固定开工字节,source-before/final.bundle可恢复源码。guard复核33个其他工作树、495个已有修改及3678项旧产物/证据;main只允许本次合并与三文件收尾提交,不修改旧baseline。实际失败及修正见发布验收。群公告写入GROUP_ANNOUNCEMENT.txt,只交用户,不代发、不关机。
+
+## 数据边界
+
+VFG +50.0%/+69.0%来自此前相邻匹配的RTX5070/GTA4K30/单层1080p NR/普通优先级对照;新2.0.6单轮复测单独记录,不拼成新因果百分比。计量是软件呈现提交FPS,不等于物理刷新/屏幕延迟/显存降幅。AMD图回归使用真实FSR3.1.5和确定性NR测试provider,不能冒充HIP推理。
+'''
+(MAIN/'docs/RELEASE_2.0.6_REPORT_2026-10-07.md').write_text(report,encoding='utf8')
+for name,header,entry in [
+ ('WORKLOG.md','# Veyra 工作记录',f'## 2026-10-07 2.0.6 正式发布完成\n\n[GitHub Release]({remote["url"]})已发布(ID {remote["releaseId"]},{remote["publishedAt"]}),5资产服务器SHA256/大小一致,最新正式版、对应源码、双QR和公开下载核对通过。新群5二维码原字节,赞助/Discord/Ko-fi保留。完整命令、结果、资产哈希、边界及路径见[发布回执](RELEASE_2.0.6_REPORT_2026-10-07.md)。标签{head}、源码{merge["sourceCommit"]};随后只追加三文件收尾文档。NV显存持续增长未修复。'),
+ ('CURRENT_STATUS.md','# 当前项目状态 / Current Status',f'## 2026-10-07 当前公开正式版2.0.6\n\n[v2.0.6]({remote["url"]})已发布且核对latest。VFG调度、AMD NR→FSR输出、Blackmagic兼容整合;NVIDIA/AMD完整包、应用/依赖源码及SHA256SUMS共5资产远端digest一致,最终ZIP冷启通过。详见[发布回执](RELEASE_2.0.6_REPORT_2026-10-07.md)。5群二维码已替换,图片标注10月14日前有效。NV显存持续增长未修复,AMD/Blackmagic实卡复测边界见验收;下方记录仅代表当时状态。')]:
+ p=MAIN/'docs'/name;s=p.read_text(encoding='utf8');assert s.startswith(header);p.write_text(s.replace(header,header+'\n\n'+entry+'\n',1),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/RELEASE_2.0.6_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.6 publication'],check=True)
+after=git(MAIN,'rev-parse','HEAD');save(LOG/'documentation-close.json',dict(releaseMainCommit=head,mainAfter=after,files=sorted(changed)))
+subprocess.run(guard,check=True)
+subprocess.run(['git','-C',str(MAIN),'push','nrvideo','main:main'],check=True)
+announcement='''Veyra 2.0.6 正式版已发布!
+
+这次重点优化VFG补帧,并修复AMD NR结果未进入后续FSR处理的问题,增加Blackmagic/DeckLink采集兼容。
+
+VFG不再让SDK提交工作长时间占住呈现线程。本机RTX5070、GTA VI 4K30输入、原版单层1080p NR、普通GPU优先级,同条件对照:中等4X从80到120 FPS,提升50%;高档2X从35.5到60 FPS,提升约69%。这是软件提交帧率的限定实测,不代表所有显卡收益,高倍率仍可能受GPU预算限制。
+
+AMD方面,修复NR明明执行了,FSR/缩放却重新读取原图,导致开关NR画面没变化的问题。Blackmagic方面补齐WDM连接、HDYC颜色格式和驱动属性入口;AMD实卡及Blackmagic真实输入欢迎继续反馈。
+
+按显卡下载NVIDIA或AMD完整包,在新目录解压,保留旧版方便回退。已知NVIDIA显存持续增长仍未解决,本次不宣称修复。
+
+4群已满,已换5群二维码,图片标注10月14日前有效。原微信赞助、Discord和Ko-fi保留。反馈请附显卡、驱动、输入来源、效果设置及日志。
+
+下载:https://github.com/Likely7/Veyra-NRVideo/releases/tag/v2.0.6
+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(guard,check=True);print('PUBLICATION DOCUMENTATION COMPLETE',after,len(announcement),'characters',flush=True)
diff --git a/scripts/acceptance/release-2.0.6-package.py b/scripts/acceptance/release-2.0.6-package.py
new file mode 100644
index 00000000..b901fd78
--- /dev/null
+++ b/scripts/acceptance/release-2.0.6-package.py
@@ -0,0 +1,89 @@
+"""Build audited formal packages from the clean tested 2.0.6 source."""
+from pathlib import Path
+import hashlib,json,subprocess,shutil,sys,zipfile,pefile
+ROOT=Path(__file__).resolve().parents[2];BASE=Path('E:/项目/Veyra');TASK='release-2.0.6-20261007'
+OUT=BASE/'releases'/TASK;PACK=OUT/'packages';LOG=BASE/'logs'/TASK;ARCH=BASE/'archives'/TASK
+OLD=BASE/'releases/publish-2.0.5-20261007/packages';BUILD=BASE/'build'/TASK
+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/release-2.0.6-control.py')],check=True)
+guard();assert not git('status','--porcelain'),'Commit exact release source first'
+OUT.mkdir(parents=True,exist_ok=True);PACK.mkdir(exist_ok=False)
+head=git('rev-parse','HEAD');merge=json.loads((LOG/'main-merge.json').read_text(encoding='utf8'));assert merge['sourceCommit']==head
+build=json.loads((LOG/'build-product.json').read_text(encoding='utf8'));assert build['exit']==0
+for rel,h in build['sourceFiles'].items():assert sha(ROOT/rel)==h,rel
+exe=BUILD/'veyra_qml_ui.exe';EXE=sha(exe)
+pe=pefile.PE(str(exe));v=pe.VS_FIXEDFILEINFO[0]
+assert (v.FileVersionMS,v.FileVersionLS,v.ProductVersionMS,v.ProductVersionLS)==(2<<16,6<<16,2<<16,6<<16)
+pe.close()
+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.6-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.6-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.6-source/'+rel) as f:assert hashlib.file_digest(f,'sha256').hexdigest()==sha(ROOT/rel),rel
+partial.rename(sourcezip)
+dependency=OUT/'Veyra-2.0.6-dependency-source.zip';assert not dependency.exists()
+olddep=BASE/'releases/publish-2.0.5-20261007/Veyra-2.0.5-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),buildInputFiles=len(build['sourceFiles']),executableSha256=EXE,peVersion='2.0.6.0',excludedTrackedCaches=excluded,sourceSha256=sha(sourcezip),dependencySha256=sha(dependency),dependencyByteIdenticalTo='v2.0.5',passed=True))
+docnames=('RELEASE_NOTES_2.0.6.md','BUILD_2.0.6.md','RELEASE_2.0.6_PLAN_2026-10-07.md','RELEASE_2.0.6_ACCEPTANCE_2026-10-07.md','VFG_OPTIMIZATION_REPORT_2026-10-07.md','BLACKMAGIC_CAPTURE_REPORT_2026-10-07.md','AMD_NR_FSR_REPORT_2026-10-07.md','RELEASE_SUPPORT.md')
+delivery=[]
+for vendor in ('AMD','NVIDIA'):
+ source=OLD/f'Veyra-2.0.5-{vendor}-win64-portable';app=PACK/f'Veyra-2.0.6-{vendor}-win64-portable';app.mkdir()
+ 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 ('RELEASE_2.0.5.md','TEST_NOTES_2.0.5.md','docs/TEST_NOTES_2.0.5.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','.cso') or rel in ('release-runtime-manifest.json','vfg-runtime-manifest.json'):immutable[rel]=row['sha256']
+ shutil.copyfile(exe,app/exe.name)
+ 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)
+ qr=app/'docs/images/2.0.6/community-group.png';qr.parent.mkdir(parents=True,exist_ok=True);shutil.copyfile(ROOT/'docs/images/2.0.6/community-group.png',qr)
+ for p in (ROOT/'qml').rglob('*'):
+ if p.is_file():
+ q=app/'qml'/p.relative_to(ROOT/'qml');q.parent.mkdir(parents=True,exist_ok=True);shutil.copyfile(p,q)
+ (app/'RELEASE_2.0.6.md').write_text('Veyra 2.0.6 正式应用版本 / Stable application release\n\n新目录完整解压后运行veyra_qml_ui.exe。VFG调度、AMD NR→FSR、Blackmagic兼容更新,详情/数据/未验证项见docs/RELEASE_NOTES_2.0.6.md。NVIDIA显存持续增长未修复。\n\nRelease: https://github.com/Likely7/Veyra-NRVideo/releases/tag/v2.0.6\nDiscord: https://discord.gg/c9aREyMj8\nKo-fi: https://ko-fi.com/likely7\n对应源码与静态依赖重链接见docs/BUILD_2.0.6.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 folder,sourcefolder in (('qml',ROOT/'qml'),('shaders',BUILD/'shaders')):
+ for p in sourcefolder.rglob('*'):
+ if p.is_file():assert sha(app/folder/p.relative_to(sourcefolder))==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)
+ assert not any('test-runtime' in n.lower() or 'test-provider' in n.lower() or Path(n).name.startswith('veyra_') and n.endswith('_tests.exe') 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.6',displayVersion='2.0.6',candidate='2.0.6',sourceCommit=head,baseCommit=head,sourceArchiveCommit=head,mainCommit=merge['mainAfter'],worktreeDirty=False,localOnly=False,releaseReady=True,releaseTag='v2.0.6',releaseUrl='https://github.com/Likely7/Veyra-NRVideo/releases/tag/v2.0.6',productCodeCommit='bf6e6517a62abc94ea8de043b8db938be0a8638d',executableSha256=EXE,validation='Fresh 2.0.6 targeted regression; formal payload/PE/ZIP audit and final-ZIP private cold start',files=records)
+ manifest['correspondingSource'].update(application='https://github.com/Likely7/Veyra-NRVideo/releases/download/v2.0.6/'+sourcezip.name,dependencies='https://github.com/Likely7/Veyra-NRVideo/releases/download/v2.0.6/'+dependency.name,applicationSha256=sha(sourcezip),dependencySha256=sha(dependency),instructions='docs/BUILD_2.0.6.md')
+ manifest['sourceZipSha256']=sha(sourcezip);save(app/'package-manifest.json',manifest)
+ subprocess.run([sys.executable,'-B',str(ROOT/'scripts/acceptance/release-2.0.6-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/release-2.0.6-preflight.py b/scripts/acceptance/release-2.0.6-preflight.py
new file mode 100644
index 00000000..e9fbf1dc
--- /dev/null
+++ b/scripts/acceptance/release-2.0.6-preflight.py
@@ -0,0 +1,89 @@
+"""Require actual fresh evidence, document it and merge the reviewed release."""
+from pathlib import Path
+import ast,hashlib,json,re,subprocess,sys
+ROOT=Path(__file__).resolve().parents[2];BASE=Path('E:/项目/Veyra');TASK='release-2.0.6-20261007'
+LOG=BASE/'logs'/TASK;MAIN=BASE/'worktrees/main-merge-20261002'
+def load(p):return json.loads((LOG/p).read_text(encoding='utf8'))
+def git(p,*a):return subprocess.check_output(['git','-C',str(p),*a],stderr=subprocess.PIPE).decode('utf8').strip()
+def sha(p):
+ with Path(p).open('rb') as f:return hashlib.file_digest(f,'sha256').hexdigest()
+guard=[sys.executable,'-B',str(ROOT/'scripts/acceptance/release-2.0.6-control.py')];subprocess.run(guard,check=True)
+assert not (LOG/'main-merge.json').exists()
+build=load('build-product.json');assert build['exit']==0
+for n,h in build['sourceFiles'].items():assert sha(ROOT/n)==h,n
+for name in ('amd-graph','amd-abi','effect-chain','units','gpu'):
+ rows=load(name+'/summary.json');assert rows and all(r['passed'] and r['exit']==0 for r in rows),name
+graphtext=(LOG/'amd-graph/veyra_amd_nr_graph_tests.log').read_text(encoding='utf8')
+assert '20 cases, 0 failures' in graphtext and 'D3D12_DEBUG errors=0' in graphtext
+assert '62 checks 0 failures' in (LOG/'amd-abi/veyra_lmxxf_nr_tests.log').read_text(encoding='utf8')
+assert '913 checks 0 failures' in (LOG/'gpu/veyra_vfg_gpu_tests.log').read_text(encoding='utf8')
+assert '331 checks, 0 failures' in (LOG/'units/veyra_vfg_settings_tests.log').read_text(encoding='utf8')
+colors=(LOG/'gpu/veyra_hdr_color_tests.log').read_text(encoding='utf8');colorcount=len(re.findall(r'\bpass=1\b',colors));assert colorcount>=124 and not re.search(r'\bpass=0\b',colors)
+perf=[load(n+'/result.json') for n in ('gta-medium4','gta-high2')]
+for r,target in zip(perf,(120,60)):
+ assert r['passed'] and not r['errors'] and r['fps']>=target*.97 and r['observations']>=17,r
+ assert r['exeSha256']==sha(BASE/'build'/TASK/'veyra_qml_ui.exe')
+ assert any('requested=2 actual=2' in line for line in r['normalSchedulingClass'])
+exports=load('exports/summary.json');assert len(exports)==4 and all(r['exit']==(1 if r['expected']=='missing' else 0) for r in exports)
+assert exports[0]['frames']==exports[1]['frames']==32
+qr='5cb236ce664cd523681a6a4fa83180d2ada6d9fe7209a70921a0d95d93fd62bd';assert sha(ROOT/'docs/images/2.0.6/community-group.png')==qr
+for name in ('README.md','README_CN.md','docs/RELEASE_SUPPORT.md'):
+ t=(ROOT/name).read_text(encoding='utf8');assert t.count('width="220"')==2 and 'https://discord.gg/c9aREyMj8' in t and 'https://ko-fi.com/likely7' in t
+ assert '/v1.4.0/docs/images/1.4.0/donate-wechat.jpg' in t and '/v2.0.6/docs/images/2.0.6/community-group.png' in t
+ assert ('community group 5' if name=='README.md' else '交流群 5') in t
+for p in (ROOT/'scripts/acceptance').glob('release-2.0.6-*.py'):ast.parse(p.read_text(encoding='utf8'),filename=str(p))
+testrows='\n'.join('| '+r['target']+' | '+str(round(r['seconds'],3))+' | exit0 / PASS |' for name in ('amd-graph','amd-abi','effect-chain','units','gpu') for r in load(name+'/summary.json'))
+perftable='\n'.join('| '+name+' | '+str(r['fps'])+' | '+str(r['observations'])+' | '+str(round(r['wallSeconds'],3))+' |' for name,r in zip(('Medium4X','High2X'),perf))
+report=f'''# Veyra 2.0.6 新构建发布验收
+
+产品源码起点bf6e651,包含VFG、Blackmagic和NR→FSR已完成修复;本轮生产改动仅CMake数字/显示版本2.0.6,其余为发布文档/脚本/用户授权的群码。全新构建使用正式2.0.5外置依赖cache,build-product.py的sourceFiles逐hash绑定最终源码({len(build['sourceFiles'])}个输入),不以历史构建冒充本次通过。
+
+## 本轮实际运行
+
+`python -B scripts/acceptance/release-2.0.6-build.py build-product veyra_qml_ui veyra_amd_nr_graph_tests veyra_lmxxf_nr_tests veyra_effect_chain_tests veyra_vfg_gpu_tests veyra_vfg_settings_tests veyra_vfg_export_probe veyra_capture_color_tests veyra_capture_format_selection_tests veyra_hdr_color_tests`:exit0,{build['seconds']:.3f}秒。EXE SHA256 {sha(BASE/'build'/TASK/'veyra_qml_ui.exe')};版本资源由打包独立PE核对2.0.6.0。编译保留既有C4244转换警告,没有构建错误。
+
+`release-2.0.6-amd-tests.py amd-graph after / amd-abi abi / effect-chain units`,`release-2.0.6-tests.py prepare / units / gpu`依次执行,无同时GPU工作,私有E盘profile/TEMP。NR图20用例0失败、10个marker全通过/最大码值偏差0/D3D12错误0;ABI62检查、效果链264条PASS;采集颜色213条PASS、格式选择0失败;GPU颜色{colorcount}项pass=1含HDYC/翻转709;VFG913检查/settings331检查均0失败。
+
+| 程序 | 秒 | 结果 |
+|---|---:|---|
+{testrows}
+
+`release-2.0.6-preview.py case gta-medium4 --multiplier 4 --quality 1 --no-verbose`及`case gta-high2 --multiplier 2 --quality 2 --no-verbose`:新2.0.6 EXE、用户GTA4K30视频、单层原版内部1080p NR、5秒预热+20秒观察;实际GPU请求/生效class2(普通)、呈现队列priority0;无竞争负载。均PASS/无错误日志、正常状态,读数为软件提交统计:
+
+| 本轮复测 | FPS中位数 | 1秒采样数 | 进程总秒 |
+|---|---:|---:|---:|
+{perftable}
+
+本轮只做新版本正常运行确认,没有新跑修改前二进制。发布说明中的+50.0%/+69.0%来自[VFG优化报告](VFG_OPTIMIZATION_REPORT_2026-10-07.md)相邻匹配实验(80→120/35.5→60),不是用本轮单次值拼算百分比;相同核心源码hash可追溯。不能推断所有显卡、屏幕延迟或显存收益。
+
+`release-2.0.6-exports.py exports`:真实NVENC HEVC导出720p30中等4X、GTA4K30+原版1080p NR中等4X,均8源帧→32编码帧、120fps/CFR/严格递增PTS、时长约8/30秒;4K尺寸3840×2160。另取消和缺失运行库失败清理通过(缺失运行库exit1是预期)。只读沿用已保存8帧GTA fixture,不修改用户原视频。四项输出/ffprobe/PTS详见logs/exports/summary.json。
+
+## 发布阶段的后置门槛
+
+干净源码提交并无快进合并main后,package.py生成两厂商完整包及应用/依赖源码/校验共5资产,逐载荷hash/ZIP CRC/PE依赖/vendor边界必须通过;cold.py只从最终ZIP独立解压、仅系统PATH/私有profile运行基本播放并核对包内Qt/FFmpeg模块。remote.py必须在全部通过后才允许草稿→正式发布。最终阶段结果以E:/项目/Veyra/logs/{TASK}/的source-audit.json、stage-AMD/NVIDIA.json、cold-verify-results.json、verify-draft.json、verify-public.json和发布后main回执为准;此文档在打包前固定,不伪造尚未发生的冷启/远端结果。
+
+## 边界、审查与保护
+
+NR graph使用RTX5070+真实FSR3.1.5+确定性测试NR provider,验证结果传递,不能代替AMD HIP/FSR4.1/Xbox实卡。测试provider只放tests,不随包发布。Blackmagic无本机硬件;2.0.6未重跑此前USB真卡连接验收,也不宣称真实HDMI已恢复。NVIDIA显存持续增长未修复,Xbox独立硬解回退不在范围内。
+
+本轮自动产品测试未发生失败;脚本检索阶段曾读取不存在的旧脚本文件名,改用实际vfg-opt-export.py,不影响产品验证。发布审查修正README英文二维码alt遗留group4为group5。既有编译警告与测试provider故障注入的ERROR均有原始日志,不把ABI预期错误误报为真实AMD推理失败。其他阶段的意外失败必须另记,不覆盖原始回执。
+
+开工baseline SHA256 ee8aab7b3484eabc90d55b59547dd5bd7934b14385ebff791c6f11b2eab3aba4;guard保护33个其他工作树/495个已有修改/3678旧文件。newQR原字节SHA256 {qr},双QR220、原赞助/Discord/Ko-fi保留。无SDK/模型新增源码Git,无修改旧产物/用户profile/驱动/其他FG,无代发群消息/关机。
+
+全套产物在E:/项目/Veyra/build、tests、logs、tmp、releases、verify、archives/{TASK}对应目录。实际命令、结果、日志和来源以本计划/本验收及各JSON为证,不宣称独立Reviewer或未执行硬件验收。
+'''
+(ROOT/'docs/RELEASE_2.0.6_ACCEPTANCE_2026-10-07.md').write_text(report,encoding='utf8')
+p=ROOT/'docs/WORKLOG.md';s=p.read_text(encoding='utf8');header='# Veyra 工作记录';assert s.startswith(header)
+s=s.replace(header,header+f'\n\n## 2026-10-07 2.0.6 正式发布施工\n\n用户明确授权构建、合并main、GitHub正式发布及换5群二维码。隔离codex/release-2.0.6-20261007起点bf6e651,main/nrvideo起点af5bfc3;VFG/Blackmagic/AMD NR→FSR修复保持原产品字节,CMake仅版本改2.0.6。全新构建{build["seconds"]:.3f}秒exit0,图20/ABI62/链264/采集213/颜色{colorcount}/VFG913+设置331及四导出检查通过;GTA普通优先级中等4X{perf[0]["fps"]}FPS/高2X{perf[1]["fps"]}FPS。详细命令、数据、失败复核和未测硬件见[本轮验收](RELEASE_2.0.6_ACCEPTANCE_2026-10-07.md)、[发布计划](RELEASE_2.0.6_PLAN_2026-10-07.md)。新群码原字节/有效期10月14日前,原赞助/Discord/Ko-fi保留。所有产物E:/项目/Veyra/对应{TASK}目录。33旧工作树/495修改/3678证据由独立guard保护。后续打包/最终ZIP冷启/远端发布以实际回执追加,NVIDIA显存增长未修复。\n',1);p.write_text(s,encoding='utf8')
+subprocess.run(guard,check=True);subprocess.run(['git','-C',str(ROOT),'diff','--check'],check=True)
+assert git(MAIN,'rev-parse','HEAD')=='af5bfc3a66afce3047868229a3070a91c0fc9c22' and not git(MAIN,'status','--porcelain')
+assert git(ROOT,'ls-remote','--heads','nrvideo','refs/heads/main').split()[0]==git(MAIN,'rev-parse','HEAD')
+subprocess.run(['git','-C',str(ROOT),'add','--','AGENTS.md','CMakeLists.txt','README.md','README_CN.md','docs/WORKLOG.md','docs/CURRENT_STATUS.md','docs/RELEASE_SUPPORT.md','docs/images/2.0.6/community-group.png','docs/BUILD_2.0.6.md','docs/RELEASE_NOTES_2.0.6.md','docs/RELEASE_2.0.6_PLAN_2026-10-07.md','docs/RELEASE_2.0.6_ACCEPTANCE_2026-10-07.md',*[str(p.relative_to(ROOT)).replace('\\','/') for p in sorted((ROOT/'scripts/acceptance').glob('release-2.0.6-*.py'))]],check=True)
+subprocess.run(['git','-C',str(ROOT),'diff','--cached','--check'],check=True)
+subprocess.run(['git','-C',str(ROOT),'commit','-m','Release Veyra 2.0.6 with VFG, NR/FSR and capture fixes'],check=True)
+source=git(ROOT,'rev-parse','HEAD');assert not git(ROOT,'status','--porcelain')
+before=git(MAIN,'rev-parse','HEAD')
+subprocess.run(['git','-C',str(MAIN),'merge','--no-ff',source,'-m','Merge validated Veyra 2.0.6 release'],check=True)
+after=git(MAIN,'rev-parse','HEAD');assert git(MAIN,'rev-parse','HEAD^{tree}')==git(ROOT,'rev-parse','HEAD^{tree}')
+(LOG/'main-merge.json').write_text(json.dumps(dict(mainBefore=before,mainAfter=after,sourceCommit=source),indent=2),encoding='utf8')
+subprocess.run(guard,check=True);print('REVIEWED RELEASE SOURCE AND MAIN',source,after,flush=True)
diff --git a/scripts/acceptance/release-2.0.6-preview.py b/scripts/acceptance/release-2.0.6-preview.py
new file mode 100644
index 00000000..04422d28
--- /dev/null
+++ b/scripts/acceptance/release-2.0.6-preview.py
@@ -0,0 +1,102 @@
+"""Serial production VFG measurements; private profile/staging, normal playback only."""
+from pathlib import Path
+import argparse, ctypes, hashlib, json, os, re, shutil, statistics, subprocess, sys, time
+from ctypes import wintypes
+import psutil
+
+ROOT=Path(__file__).resolve().parents[2]
+BASE=Path('E:/项目/Veyra'); TASK='release-2.0.6-20261007'
+PACKAGE=BASE/'releases/publish-2.0.5-20261007/packages/Veyra-2.0.5-NVIDIA-win64-portable'
+APP=BASE/'tests'/TASK/'app'
+MEDIA=Path('E:/Ai/知识/小七姐/GTAVI_An_Extended_Look_4K_Native.mp4')
+EXPECTED_EXE='acd49a23074b58ec9698d260d63b2d5a59a640627e09a9b83f0127ae47ebb936'
+
+def sha(path):
+ with Path(path).open('rb') as stream:return hashlib.file_digest(stream,'sha256').hexdigest()
+
+def save(path,data):
+ path.parent.mkdir(parents=True,exist_ok=True)
+ path.write_text(json.dumps(data,ensure_ascii=False,indent=2),encoding='utf8')
+
+def inherited_state():
+ entries=[]
+ for line in subprocess.check_output(['git','worktree','list','--porcelain'],cwd=ROOT,encoding='utf8').splitlines():
+ if line.startswith('worktree '):
+ path=Path(line[9:])
+ if path.resolve()==ROOT.resolve():continue
+ status=subprocess.check_output(['git','status','--porcelain=v1','-z','--untracked-files=all'],cwd=path)
+ changes=[]
+ names=subprocess.check_output(['git','ls-files','-m','-o','--exclude-standard','-z'],cwd=path).split(b'\0')
+ for name in sorted(set(x for x in names if x)):
+ file=path/os.fsdecode(name)
+ changes.append({'path':os.fsdecode(name),'sha256':sha(file) if file.is_file() else None})
+ entries.append({'path':str(path),'head':subprocess.check_output(['git','rev-parse','HEAD'],cwd=path,encoding='ascii').strip(),'statusHex':status.hex(),'changes':changes})
+ return entries
+
+def gpu():
+ return subprocess.check_output(['nvidia-smi','--query-gpu=utilization.gpu,memory.used,clocks.current.graphics,power.draw','--format=csv,noheader,nounits'],encoding='utf8',timeout=8).strip()
+
+def run(args):
+ assert re.fullmatch(r'[a-z0-9-]+',args.label)
+ for proc in psutil.process_iter(['pid','name']):
+ assert proc.info['name'].lower() not in ('veyra.exe','veyra_qml_ui.exe'),f'Existing player PID {proc.pid}; no concurrent GPU runs'
+ global EXPECTED_EXE
+ selected=PACKAGE/'veyra_qml_ui.exe' if args.original else BASE/'build'/TASK/'veyra_qml_ui.exe'
+ EXPECTED_EXE=sha(selected);shutil.copy2(selected,APP/'veyra_qml_ui.exe')
+ assert sha(APP/'veyra_qml_ui.exe')==EXPECTED_EXE
+ out=BASE/'logs'/TASK/args.label;profile=BASE/'tests'/TASK/args.label/'profile';tmp=BASE/'tmp'/TASK/args.label
+ for path in (out,profile,tmp):path.mkdir(parents=True,exist_ok=False)
+ save(profile/'qml-preferences.v1.json',{'overlayCompat':'off','gpuPriority':'normal','decode':'auto','reducedMotion':False,'obsGameCapture':False})
+ config={'media':MEDIA.as_posix(),'multiplier':args.multiplier,'quality':args.quality,'nr':not args.no_nr,'strict':args.strict,'flow':args.flow,'display':0 if args.tearing else 2,'seconds':args.seconds}
+ text=(ROOT/'qml/Veyra/Main.qml').read_text(encoding='utf8');at=text.rfind('}')
+ loader='\nLoader { source: "VfgDiagnosis.qml"; onLoaded: item.config='+json.dumps(config,ensure_ascii=True)+' }\n'
+ (APP/'qml/Veyra/Main.qml').write_text(text[:at]+loader+text[at:],encoding='utf8')
+ env=os.environ.copy()
+ for key in list(env):
+ if key.upper().startswith(('VEYRA_','QT_','QSG_')):env.pop(key)
+ env.update(TEMP=str(tmp),TMP=str(tmp),CUDA_CACHE_PATH=str(tmp/'cuda-cache'),QML_DISABLE_DISK_CACHE='1',QT_FORCE_STDERR_LOGGING='1',VEYRA_LOG_FILE=str(out/'player.log'))
+ if not args.no_verbose:env['VEYRA_VERBOSE_FRAME_LOGS']='1'
+ if args.cpu_profile:env['VEYRA_TEST_VFG_CPU_PROFILE']='1'
+ if args.sync_submit:env['VEYRA_TEST_VFG_SYNC_SUBMIT']='1'
+ if args.no_reduced:env['VEYRA_TEST_FG_NO_REDUCED']='1'
+ if args.software:env['QT_QUICK_BACKEND']='software'
+ receipt={'config':config,'exeSha256':EXPECTED_EXE,'gpuBefore':gpu(),'noReduced':args.no_reduced,'softwareUi':args.software,'verboseFrameLogs':not args.no_verbose,'cpuProfile':args.cpu_profile,'syncSubmit':args.sync_submit,'selectedBinary':str(selected)}
+ started=time.monotonic();meters=[]
+ with (out/'console.log').open('xb') as stream:
+ proc=subprocess.Popen([str(APP/'veyra_qml_ui.exe'),'--data-dir',str(profile),'--page','pro','--size','1280x800','--exit-after','135000'],cwd=APP,env=env,stdout=stream,stderr=subprocess.STDOUT)
+ receipt['pid']=proc.pid
+ try:
+ while proc.poll() is None and time.monotonic()-started<145:
+ meters.append({'elapsed':time.monotonic()-started,'gpu':gpu()});time.sleep(1)
+ if proc.poll() is None:proc.kill();proc.wait(timeout=10);rc=124
+ else:rc=proc.returncode
+ finally:
+ if proc.poll() is None:proc.kill();proc.wait(timeout=10)
+ text=(out/'player.log').read_text(encoding='utf8',errors='replace');rows=[]
+ for line in text.splitlines():
+ if 'VFG_DIAG_SAMPLE ' in line:
+ row=json.loads(line.split('VFG_DIAG_SAMPLE ',1)[1])
+ if row['ready'] and 5<=row['seconds']<=args.seconds+5:rows.append(row)
+ stages={}
+ for name in sorted({stage['label'] for row in rows for stage in row['stages'] if stage['measured']}):
+ values=[stage['ms'] for row in rows for stage in row['stages'] if stage['label']==name and stage['measured']]
+ stages[name]={'medianOneSecondMeansMs':statistics.median(values),'min':min(values),'max':max(values)}
+ median=lambda key:statistics.median([r[key] for r in rows]) if rows else None
+ receipt.update(exitCode=rc,wallSeconds=time.monotonic()-started,passed=rc==0 and 'VFG_DIAG_PASS' in text and 'VFG_DIAG_FAIL' not in text and len(rows)>=args.seconds-3,observations=len(rows),fps=median('fps'),totalMs=median('total'),budgetMs=median('budget'),gpuPercent=median('gpu'),status=sorted({r['status'] for r in rows}),detail=sorted({r['detail'] for r in rows}),stages=stages,errors=[line for line in text.splitlines() if any(x in line for x in ('[ERROR]','[FATAL]','TypeError:','ReferenceError:'))])
+ receipt['normalSchedulingClass']=[line for line in text.splitlines() if 'priority' in line.lower()][:5]
+ for name,data in [('result',receipt),('samples',rows),('meters',meters)]:save(out/(name+'.json'),data)
+ print(json.dumps(receipt,ensure_ascii=False),flush=True)
+ if not receipt['passed']:
+ print('\n'.join(text.splitlines()[-20:]));raise SystemExit(1)
+
+parser=argparse.ArgumentParser();parser.add_argument('mode',choices=['case']);parser.add_argument('label',nargs='?')
+parser.add_argument('--multiplier',type=int,choices=range(2,9),default=2);parser.add_argument('--quality',type=int,choices=range(3),default=1)
+parser.add_argument('--no-nr',action='store_true');parser.add_argument('--strict',action='store_true');parser.add_argument('--flow',action='store_true');parser.add_argument('--tearing',action='store_true');parser.add_argument('--no-reduced',action='store_true');parser.add_argument('--software',action='store_true');parser.add_argument('--no-verbose',action='store_true');parser.add_argument('--seconds',type=int,default=20)
+parser.add_argument('--original',action='store_true');parser.add_argument('--cpu-profile',action='store_true')
+parser.add_argument('--sync-submit',action='store_true')
+args=parser.parse_args()
+
+subprocess.run([sys.executable,'-B',str(ROOT/'scripts/acceptance/release-2.0.6-control.py')],check=True)
+run(args)
+shutil.copyfile(ROOT/'qml/Veyra/Main.qml',APP/'qml/Veyra/Main.qml')
+subprocess.run([sys.executable,'-B',str(ROOT/'scripts/acceptance/release-2.0.6-control.py')],check=True)
diff --git a/scripts/acceptance/release-2.0.6-remote.py b/scripts/acceptance/release-2.0.6-remote.py
new file mode 100644
index 00000000..18e98090
--- /dev/null
+++ b/scripts/acceptance/release-2.0.6-remote.py
@@ -0,0 +1,88 @@
+"""Publish only the audited v2.0.6 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='release-2.0.6-20261007'
+LOG=BASE/'logs'/TASK;OUT=BASE/'releases'/TASK;REPO='Likely7/Veyra-NRVideo';TAG='v2.0.6'
+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/release-2.0.6-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.6.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.5');save(LOG/'previous-release-before.json',before)
+ assert command('git','-C',str(ROOT),'ls-remote','--heads','nrvideo','refs/heads/main').split()[0]=='af5bfc3a66afce3047868229a3070a91c0fc9c22'
+ 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.6 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.6 · VFG performance, AMD NR & Blackmagic capture','--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.5')
+ 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.6'})
+ 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')))
+ qrurl='https://raw.githubusercontent.com/'+REPO+'/'+TAG+'/docs/images/2.0.6/community-group.png'
+ with urllib.request.urlopen(qrurl,timeout=60) as response: qr=response.read()
+ qrsha=hashlib.sha256(qr).hexdigest()
+ assert qrsha=='5cb236ce664cd523681a6a4fa83180d2ada6d9fe7209a70921a0d95d93fd62bd'
+ result.update(latest=True,downloadedChecksumsIdentical=True,httpAvailability=availability,communityQrSha256=qrsha)
+ 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')
diff --git a/scripts/acceptance/release-2.0.6-tests.py b/scripts/acceptance/release-2.0.6-tests.py
new file mode 100644
index 00000000..0320813c
--- /dev/null
+++ b/scripts/acceptance/release-2.0.6-tests.py
@@ -0,0 +1,39 @@
+"""Fresh serial release checks; all fixtures, profiles and output stay on E:."""
+from pathlib import Path
+import hashlib,json,os,re,shutil,subprocess,sys,time,psutil
+ROOT=Path(__file__).resolve().parents[2];BASE=Path('E:/项目/Veyra');TASK='release-2.0.6-20261007'
+BUILD=BASE/'build'/TASK;APP=BASE/'tests'/TASK/'app'
+def sha(p):
+ with Path(p).open('rb') as f:return hashlib.file_digest(f,'sha256').hexdigest()
+def guard():subprocess.run([sys.executable,'-B',str(ROOT/'scripts/acceptance/release-2.0.6-control.py')],check=True)
+guard();phase=sys.argv[1]
+assert not any(x.info['name'].lower() in ('veyra.exe','veyra_qml_ui.exe','veyra_vfg_gpu_tests.exe','veyra_vfg_export_probe.exe') for x in psutil.process_iter(['name']))
+if phase=='prepare':
+ old=BASE/'releases/publish-2.0.5-20261007/packages/Veyra-2.0.5-NVIDIA-win64-portable'
+ assert not APP.exists();shutil.copytree(old,APP)
+ shutil.copyfile(BUILD/'veyra_qml_ui.exe',APP/'veyra_qml_ui.exe')
+ for folder in ('qml','shaders'):
+ source=ROOT/folder if folder=='qml' else BUILD/folder
+ for p in source.rglob('*'):
+ if p.is_file():
+ q=APP/folder/p.relative_to(source);q.parent.mkdir(parents=True,exist_ok=True);shutil.copyfile(p,q)
+ shutil.copyfile(ROOT/'scripts/acceptance/vfg-diagnosis.qml',APP/'qml/Veyra/VfgDiagnosis.qml')
+ print('PRIVATE TEST APP',APP,sha(APP/'veyra_qml_ui.exe'),flush=True)
+else:
+ assert phase in ('units','gpu')
+ label=phase;out=BASE/'tests'/TASK/label;tmp=BASE/'tmp'/TASK/label;logs=BASE/'logs'/TASK/label
+ for p in (out,tmp,logs):p.mkdir(parents=True,exist_ok=False)
+ env={k:v for k,v in os.environ.items() if not k.upper().startswith(('VEYRA_','QT_','QSG_'))}
+ env.update(TEMP=str(tmp),TMP=str(tmp),CUDA_CACHE_PATH=str(tmp/'cuda-cache'),VEYRA_LOCAL_DATA_DIR=str(out/'profile'))
+ specs=[('veyra_capture_color_tests',[]),('veyra_capture_format_selection_tests',[]),('veyra_vfg_settings_tests',[str(out/'settings')])] if phase=='units' else [('veyra_hdr_color_tests',[]),('veyra_vfg_gpu_tests',[str(APP/'runtime/nvidia-vfg'),'1280','720','async'])]
+ results=[]
+ for name,args in specs:
+ exe=APP/(name+'.exe');shutil.copyfile(BUILD/exe.name,exe);log=logs/(name+'.log');child=env.copy();child['VEYRA_LOG_FILE']=str(logs/(name+'-engine.log'));start=time.monotonic()
+ with log.open('xb') as f:
+ try:rc=subprocess.run([str(exe),*args],cwd=APP,env=child,stdout=f,stderr=subprocess.STDOUT,timeout=290).returncode
+ except subprocess.TimeoutExpired:rc=124
+ text=log.read_text(encoding='utf8',errors='replace');passed=rc==0 and not re.search(r'^FAIL\b|\bpass=0\b',text,re.M)
+ item=dict(target=name,command=[str(exe),*args],exit=rc,seconds=time.monotonic()-start,passed=passed,exeSha256=sha(exe),log=str(log),tail=text.splitlines()[-8:]);results.append(item)
+ (logs/'summary.json').write_text(json.dumps(results,ensure_ascii=False,indent=2),encoding='utf8');print(json.dumps(item,ensure_ascii=False),flush=True)
+ if not passed:raise SystemExit(1)
+guard()