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++

phase-1: feature 18 native harness verified (gate 56/56 + reviewer PASS after P1 fix)

Veyra Goal Agent1dcf834f5698
diff --git a/docs/WORKLOG.md b/docs/WORKLOG.md
index c2e91d06..25e8986d 100644
--- a/docs/WORKLOG.md
+++ b/docs/WORKLOG.md
@@ -38,7 +38,15 @@ Decision:
Next single task (user action required):
-Install Windows "Graphics Tools" (see loop/INBOX.md: DISM /Online /Add-Capability /CapabilityName:Tools.Graphics.DirectX~~~~0.0.1.0), then rerun loop-gate -Gate phase1 (expected 55/55) and proceed to the P1.8 read-only reviewer.
+~~Install Windows "Graphics Tools"~~ (user installed 2026-09-02; probe verified "d3d12 debug layer enabled").
+
+Reviewer outcome (P1.8, 2026-09-02):
+
+- First review: VERDICT FAIL with 1×P1 — the gate's no-state-errors grep was vacuous because no component captured the debug layer's OutputDebugString stream; plus 5×P2 (literal log line, path containment, SEH on parameter calls, hardcoded nanCount, 10-frame debug matrix).
+- Fixes landed (commit ff98e37): real ID3D12InfoQueue capture in debug builds (attach after device creation, drain after the full loop into the log and a debugInfoQueue JSON block), gate now asserts infoqueue-active and no-error-messages (both falsifiable), debug run raised to 30 frames, exact Playbook 8.1 literal, runtime_local/nvidia containment check, SEH wrappers for Allocate/DestroyParameters, nanCount removed.
+- Final review: VERDICT PASS (independent fresh-build run: release 300/300, debug 30/30 with infoQueue active and 0 error messages; three parameter-variant hashes identical across four independent runs; anti-stale runId/exeSha256 verified; control plane untouched from the Phase 0 checkpoint). Three non-blocking P2 residuals recorded in the journal (teardown-time infoqueue drain, suffix vs prefix containment, 200-message drain cap).
+
+Phase 1 conclusion: gate 56/56 + reviewer PASS. Phase 2 unlocked.
## 2026-09-02 Phase 0 — Runtime probe + D3D12 skeleton
diff --git a/loop/BACKLOG.md b/loop/BACKLOG.md
index dffeb4ce..0dcae7b2 100644
--- a/loop/BACKLOG.md
+++ b/loop/BACKLOG.md
@@ -26,7 +26,7 @@ Phase 0 gate:以 Playbook 第 16 节 Phase 0 为准。未完成 P0.9 禁止开
- [x] P1.5 实现 Proxy→Feature18→Raw 的 D3D12 资源、barrier、subrect 与异步 4-slot 执行。(2026-09-02:5 帧全过,输出非黑非恒定,PNG 捕获有效;零初始化用 upload-copy 实现。)
- [x] P1.6 连续 300/300 Evaluate;验证输出非黑、非恒定、随输入/参数变化;记录 GPU timings/result/capture。(2026-09-02:Debug+Release 双双 300/300;三 hash 互异;ts avgMs=6.32;PNG/JSON 齐。)
- [x] P1.7 重建/reset/释放测试。(2026-09-02:连续两轮完整 Create/Evaluate(Reset)/Release + create-test + shim-test 4/4 PASS,无残留/无 device removed。)
-- [ ] P1.8 gate、只读 Reviewer、P0/P1 修复、checkpoint。
+- [x] P1.8 gate、只读 Reviewer、P0/P1 修复、checkpoint。(2026-09-02:gate 56/56;Reviewer 首轮 FAIL 抓出 P1 空转检查→修复后 PASS;checkpoint 见 STATE.phases[1].commit。)
## Phase 2 — RenoDX-equivalent parity codec(锁定)
diff --git a/loop/EVIDENCE.md b/loop/EVIDENCE.md
index 3575445e..59b07741 100644
--- a/loop/EVIDENCE.md
+++ b/loop/EVIDENCE.md
@@ -11,9 +11,9 @@
- Hardware/runtime identity: RTX 5070 / 0x10DE / driver 32.0.16.1656 / FL 12_2;staged nvngx_dlssnr.dll 165840496 / E16B…FC8E / Valid / NVIDIA;NGX SDK 310.7 官方 GitHub clone
- Logs/captures: logs/phase1/7a535572145b4d73b25da192adf847ee/(harness-release.{log,json}、harness-debug.{log,json}、captures/)
- Quantitative result: **Release 300/300 Evaluate 成功 0 失败**;output meanLuma=0.49425 min=0.05098 max=0.94397 stddev≈0.327 allZero=false constant=false;baseline=1BD84180… style1=B5294CB6… intensity05=8A621726…(三 hash 互异);GPU timestamps nonZero=true avgMs=6.32;teardown release=0x1 snippetShutdown=0x1;deviceRemoved=false;**Debug run debugLayer=true 且日志 0 条 state/descriptor 错误**
-- Reviewer: not run yet(gate 首次全绿后立即安排)
-- Open P0/P1: none known
-- Conclusion: Playbook §16 Phase 1 全部门槛(Init_Ext/Create 成功、300/300、非黑非恒定、参数可变 hash、GPU 计时、干净释放、debug layer 无 state error、capture 存在)机器验证通过
+- Reviewer: 首轮 FAIL(1×P1:no-state-errors 为空转 grep,debug layer 消息无捕获通道;5×P2)→ 修复(ID3D12InfoQueue 真实接入 + gate 两项可失败断言 + 字面量/containment/SEH/nanCount/debug30帧)后 **PASS**(2026-09-02;独立 run-id 0ede6908f036462f99ced2ccfe48f169 双配置 fresh build;release 300/300、debug 30/30 infoqueue active 0 error;三 hash 与此前三个 run 完全一致;runId/exeSha256 与独立 Get-FileHash 一致;控制面 1fb7afa..HEAD 零改动;Reviewer 工作树零变异)
+- Open P0/P1: none(P2 残留三条已记录 JOURNAL Cycle 017:teardown 段 infoqueue drain、containment 后缀 vs 前缀、200 条检索上限——均不阻塞,留待后续 Phase 顺带处理)
+- Conclusion: Playbook §16 Phase 1 全部门槛(Init_Ext/Create 成功、300/300、非黑非恒定、参数可变 hash、GPU 计时、干净释放、debug layer 无 state error【经 ID3D12InfoQueue 真实断言】、capture 存在)机器验证通过且经独立 Reviewer 复核;Phase 1 关账,进入 Phase 2
迭代记录:2026-09-02T21:56 首次运行 54/55(唯一红项 debug-layer-enabled,本机未装 Graphics Tools);用户安装 Windows 图形工具后本 run 55/55。前期过程证据见 JOURNAL Cycle 016 与 WORKLOG Phase 1 条目。## Phase N / Gate name / timestamp
diff --git a/loop/JOURNAL.md b/loop/JOURNAL.md
index ad57b2f7..9f402012 100644
--- a/loop/JOURNAL.md
+++ b/loop/JOURNAL.md
@@ -453,6 +453,32 @@ Result:
---
+## Cycle 017 — P1.8 修复 Reviewer P1(infoqueue 接入)+ P2 批
+
+### Before
+
+- Phase: 1
+- 唯一任务: 落实 Reviewer 修复条件——debug 构建下 D3D12CreateDevice 后 QueryInterface ID3D12InfoQueue、SetMuteDebugOutput(false)、帧循环结束 GetNumStoredMessages/GetMessage 逐条入日志并在 JSON 报 storedMessages/errorMessages;gate 的 no-state-errors 改为解析该 JSON 字段(active==true 且 errorMessages==0),debug 帧数 10→30,删除误导性硬编码 nanCount;同时修 P2:8.1 精确字面量日志、adapter 路径 containment、AllocateParameters/DestroyParameters SEH 包裹。
+- 可证伪假设: 若 debug layer 在 30 帧+捕获回读中报 error 级消息,新 gate 将真实失败。
+- 预计修改文件: tools/nr_harness/frame_loop.cpp、src/ngx/DlssNrRuntimeAdapter.cpp、src/ngx/NgxCoreHost.cpp、scripts/gates/phase1.ps1。
+- 快速检查命令: `build.ps1` 双配置 → 0;`loop-gate -Gate phase1` → 0(infoQueue active 且 0 error)。
+- 预期新增证据: JSON debugInfoQueue 字段与日志中真实检索的 infoqueue 消息数。
+
+### After
+
+- 实际修改: frame_loop.cpp(ID3D12InfoQueue attach/clear/检索入日志+JSON、d3d12sdklayers.h、删 nanCount)、phase1.ps1(删空转 grep → infoqueue-active + no-error-messages 两项真实断言、debug 10→30 帧)、DlssNrRuntimeAdapter.cpp(8.1 精确字面量、\runtime_local\nvidia\nvngx_dlssnr.dll 后缀 containment)、NgxCoreHost.cpp(Allocate/DestroyParameters SEH 包裹)。
+- 实际命令与 exit code:
+ - `build.ps1 -Preset x64-debug/-release` → 双 0。
+ - Debug 30 帧直跑 → exit 0:日志含 "EXPERIMENTAL LOCAL-ONLY DLSSNR ADAPTER ENABLED"、"ID3D12InfoQueue attached and recording"、"infoqueue stored=0 reported=0 errors=0";JSON debugInfoQueue{active=true,stored=0,errors=0}。
+ - `loop-gate -Gate phase1` → **exit 0,56/56**(run-id 0106547878964354a751ab7ae5ec5f38):新增 json-debug:infoqueue-active 与 no-error-messages 均 PASS,evaluate-30-of-30 PASS,Release 300/300 仍 PASS。
+- 新证据/日志路径: logs/phase1/0106547878964354a751ab7ae5ec5f38/。
+- 失败 fingerprint: 无(P1 修复一次通过)。
+- 是否有进展,依据: 是——"debug layer 无 state error" 从空转 grep 变为对真实检索消息的断言,检查现在可失败;全部 5 项 P2 同步修复。
+- STATE/BACKLOG 更新: 待 Reviewer 终判后一并写入(P1.8 完成时)。
+- 下一唯一动作: 等 Reviewer 终判 → PASS 则 checkpoint + 解锁 Phase 2;新 P0/P1 则继续修复循环。
+
+---
+
复制下面模板开始每个新 cycle。必须先填 Before,再改代码;完成后填 After。
## Cycle NNN — 简短任务名
diff --git a/loop/STATE.json b/loop/STATE.json
index 75b077d5..6471c4ae 100644
--- a/loop/STATE.json
+++ b/loop/STATE.json
@@ -6,7 +6,7 @@
"phase": {
"id": 1,
"name": "Feature 18 native harness",
- "state": "gate_passed",
+ "state": "review_passed",
"gate": "phase1"
},
"phases": [
@@ -21,9 +21,9 @@
{
"id": 1,
"name": "Feature 18 native harness",
- "status": "gate_passed",
+ "status": "review_passed",
"gateEvidence": "loop/EVIDENCE.md#phase-1--phase1--2026-09-02t222000-0800",
- "reviewEvidence": null,
+ "reviewEvidence": "loop/EVIDENCE.md#phase-1--phase1--2026-09-02t222000-0800 (Reviewer PASS after P1 fix, independent rerun 0ede6908f036462f99ced2ccfe48f169, zero P0/P1)",
"commit": null
},
{
@@ -76,14 +76,14 @@
}
],
"cycle": {
- "completed": 16,
+ "completed": 17,
"maximum": 80,
"sameFailureAttempts": 0,
"maximumSameFailureAttempts": 3,
"noProgressCycles": 0,
"maximumNoProgressCycles": 5
},
- "currentTask": "P1.8: run the read-only Phase 1 Reviewer (BASE_COMMIT=1fb7afa5779a6c6a0a585d4ecf18a640260a2fcf, phase 0 checkpoint), fix any P0/P1, then create the verified checkpoint and unlock Phase 2.",
+ "currentTask": "Create the Phase 1 verified checkpoint commit, record STATE pointers, unlock Phase 2, then start P2.1 (phase2 gate + CPU golden tests for the parity codec).",
"lastGate": {
"name": "phase1",
"status": "passed",