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++
Record verified compact local package and HDR integration plan
Veyra Goal Agentcb9b89e4259d
diff --git a/docs/CURRENT_STATUS.md b/docs/CURRENT_STATUS.mdindex 37909326..f2fe706f 100644--- a/docs/CURRENT_STATUS.md+++ b/docs/CURRENT_STATUS.md@@ -6,8 +6,12 @@VFG移除九个当前路径未用NPP,目录497,894,432→210,788,400 bytes;全部档位和插件原字节保持。720p/4K各463 native checks、331 settings、21 NVENC导出、组合/缺库/GUI/worker冻结通过。AMD生产噪声/reciprocal表、权重与62 HIP kernel保持;仅ABI/布局/哈希验证,不称实卡推理通过。-当前正在极简新构建回归与完整7z/ZIP打包、独立解压验收;最终数值与源码见本轮DELIVERY索引。-HDR PR仍只方案等审批。未merge/push/Release,所有产物在E盘;完成保存后按用户明确要求关机。+最终完整7z523327604 bytes /499.08MiB,备用ZIP943265095 /899.57MiB;比原1098.25MiB ZIP减54.56%。+2076载荷+manifest独立解压SHA、官方7-Zip CRC、包内VFG热切换/预设/High8冻结worker和GPU/软件六页通过。+极简新EXE6个DPR用例通过;本机5070/616.56短测边界保持,原桌面/main/2077旧载荷复核一致。+源码/完整bundle及HDR PR计划、最终索引在E:/项目/Veyra/test-packages/runtime-size-20261004;代码存档2df6dd7。+临时/解压副本清理遭自动审批拒绝(无具体原因),未重试/绕过,E盘副本保留。HDR仍等审批,未merge/push/Release。+完成存档/索引后按用户明确要求安排正常关机,使用延迟helper后shutdown /s /t0,操作结果另记E盘日志。## 2026-10-04 极简像素缺口已修;HDR PR 等审批diff --git a/docs/RUNTIME_SIZE_ACCEPTANCE_2026-10-04.md b/docs/RUNTIME_SIZE_ACCEPTANCE_2026-10-04.mdindex 78aae8a2..072bc0cd 100644--- a/docs/RUNTIME_SIZE_ACCEPTANCE_2026-10-04.md+++ b/docs/RUNTIME_SIZE_ACCEPTANCE_2026-10-04.md@@ -46,10 +46,31 @@ VFG/native/export/UI child PATH 限 Windows,无 SDK 路径、无 NPP 文件。- AMD原529记录逐文件哈希、真实C ABI144 bytes/ABI1、62模块布局验证通过。caps.hip=0,本机没有RX9000;没有执行 HIP 推理,不能称AMD画质/性能/稳定性验收。-极简新EXE的分数DPR边缘回归、最终7z/ZIP校验及干净解压实跑另记WORKLOG/交付索引;-本文件的包内版本为组包前快照,最终报告在同目录,避免为自身哈希反复改包。+极简新EXE的6例分数DPR回归通过,右/底native gap0。最终2076载荷+manifest独立解压SHA通过,+官方7-Zip26.03 CRC/兼容性通过;Windows-only PATH下包内VFG真实run/restore/missing与High8 worker通过,+GPU/软件各六页背景alpha255和正常退出通过,运行前后所有载荷哈希一致。+本文件包内版本为组包前快照,最终报告/交付索引在包同目录,避免为自身哈希反复改包。当前应用 SHA256 `88597f61c8d01105533927859726815aaf3c67034e71bddf17852fb13c341bfc`。+## 最终完整包++| 产物 | bytes | MiB | SHA256 |+| --- | ---: | ---: | --- |+| 首选7z / LZMA2 256MiB字典 | 523327604 | 499.08 | dcb38d16f59d9578b66d1f759092c2d5dd5c95606c3411c863cd5eb5fea5d94f |+| 备用ZIP / deflate9 | 943265095 | 899.57 | 40b44bfea5d358fa94cc9cb6bbd303e11c18cc861471847c2bed9086bd3c4b98 |++原完整VFG ZIP1151602649 bytes / 1098.25MiB → 首选499.08MiB,传输体积减少54.56%。+这是裁未用依赖再换无损压缩格式,不能说AMD模型本身缩小了54.56%。+32MiB字典7z728771789 bytes;256MiB字典进一步省205444185 bytes(28.19%)。+两份NR DLL对齐1MiB chunk中146966128/165840496 bytes相同(88.62%);大字典跨文件复用,+不合并、patch或省略任何运行DLL。解压额外约256MiB字典内存,运行显存/内存不因此变化,ZIP备用保持。++产品代码存档 `2df6dd729b9fe7d32ed41753ab3422e5cc7eda0c` / `checkpoint/runtime-size-code-20261004`。+最终报告/验收脚本源码commit、项目源码ZIP和verify过的完整bundle见DELIVERY.json;产品代码保持相同。+桌面status/working与index patch/11未跟踪源码、main66cd3e5、原2077载荷哈希全部复核一致。+清理本轮中间压缩包与解压/测试APP副本的单一PowerShell命令被自动审批拒绝,仅给blocked by policy无细节。+命令未执行,未重试或绕过,副本保留在E盘task目录,不影响交付/核验;不能报告它们已删除。+## 未验与复现位置未验:RX9000实际推理/颜色/性能/长稳,Xbox真机有声/长稳,RTX40实卡、616.92,diff --git a/docs/WORKLOG.md b/docs/WORKLOG.mdindex fe9db6ea..af758eaf 100644--- a/docs/WORKLOG.md+++ b/docs/WORKLOG.md@@ -1,5 +1,17 @@# Veyra 工作记录+## 2026-10-04 瘦身完整候选最终验收与关机准备++- 当前产品commit2df6dd7 / checkpoint/runtime-size-code-20261004不变;随后只更新报告、修build脚本EOF空行、增加无损比较/独立CRC/最终索引验收recipe,不改产品源码、不重写模型。`git diff --check`与最终scope guard通过。+- `runtime-size-archive.py archive`:ZIP9 943265095 bytes /SHA40b44bfe…c4b98(240.204s);7z32MiB 728771789 /SHA5bb973da…1b78(705.671s),各2076载荷逐SHA/manifest通过。压缩不是单次产品测试;所有产品子进程仍≤300秒。+- `runtime-size-dense-archive.py`:LZMA2/preset5/256MiB字典,523327604 bytes /SHAdcb38d16…5d94f,843.531s含新空目录独立解压和全文件SHA;499.08MiB,比原1098.25MiB ZIP少54.56%,比7z32进一步省205444185 bytes。仅压缩包装,不改运行内存/文件字节;原AMD586.54MiB保持。两份NR DLL的对齐chunk88.62%相同,跨文件复用有依据。已将较小dense改为正式本地候选同名.7z,原32MiB移tmp作对比,Windows native Move之前检查绝对task边界/普通文件与SHA。+- 官方7zip26.03 extra/7zr从7-zip.org下载页指向ip7z/7zip固定tag;GitHub release asset digest核验,工具只在E:/项目/Veyra/deps/7zip-26.03-runtime-size-20261004,不进软件/源码。初次用py7zr解官方extra遇BCJ2不支持,改用作者7zr解出x64/7za,不涉及Veyra LZMA2包。`runtime-size-native-archive-check.py ... native-archive32-v1`和`native-archive-final-v1`各exit0、Everything is Ok,2077文件,解压1678742422 bytes,方法LZMA2:25/28;CLI SHA与来源在7zip-tool-provenance/native-archive JSON。+- `runtime-size-clean-smoke.py verify/.../dense/Veyra-...` exit0:最终所选256MiB字典7z独立解压,Windows-only PATH、无SDK override,真实包内VFG run/restore/missing与High8冻结worker输出64HEVC帧/240fps+AAC通过;GPU和软件各六页alpha255/dark背景/正常退出,运行前后2076载荷全SHA不变。12截图在verify/task/dense/gpu-evidence、software-evidence;日志clean-smoke/ui-package-final;未捕获其它程序内容。+- 收尾 `runtime-size-isolation.py audit` exit0:桌面status规范化、working/index二进制patch与11个未跟踪源码hash、main66cd3e5、原2077载荷与原EXE全部保持。新软件/源码/runtime分离,HDRPR未施工、未merge/push/Release,没有Agent。+- 按目录规则清理自有中间包/两个解压APP/tests APP:单一PowerShell全程、每一绝对源/目标先验证仅在本轮task roots、普通路径/无reparse后Move/Remove。工具CreateProcess直接拒绝,只有blocked by policy无具体原因,整个命令未执行,未重试或绕过;cleanup.json记录deleted=[],E盘副本仍保留,不能说已清理。最终交付不依赖清理。+- 交付目录E:/项目/Veyra/test-packages/runtime-size-20261004保留完整stage、最终7z+ZIP、项目源码ZIP、DELIVERY.md/json、HDR_DOVI_PR_REVIEW;最终完整git bundle在archives/task并verify。源码包含后续报告/验收recipe,compiledCodeCommit与SOURCE对照严格无产品改动。对应各SHA记录在索引,避免源包自身哈希循环。+- 用户明确要求完成后关机;所有本轮测试/build子进程已退出,保存最终索引/源码/bundle后才安排隐藏30秒helper调用shutdown /s /t0,不使用/f(官方/t>0会隐含/f)。运行结果将写logs/task/shutdown*.json;本条是关机准备,不冒充电脑已关闭。无全局TEMP修改,不杀用户其它应用。+## 2026-10-04 VFG / AMD NR 瘦身(组包前)- 用户要求稳定性优先、尽量瘦身、完整本地测试包、HDR PR计划、完成保存后关机。按前文将VSF理解为VFG;不开Agent。分支codex/runtime-size-20261004、基线fc2ca716、tag checkpoint/pre-runtime-size-20261004,bundle verify,SHA256 6d2b64b471cb84effd84670a07f3079b5f71f630940926338052099e4cbfd694;先写RUNTIME_SIZE_PLAN后修改最小依赖加载。@@ -11,6 +23,7 @@- 压缩样本原450,593,392 bytes;ZIP9 277,853,065 / 7z-solid-LZMA2-32MiB 166,108,485,约40.2%样本收益。仅包装压缩、不改运行字节;原AMD目录615,032,656 bytes保持。完整包与独立解压验收尚待完成,数据不外推。新版SOURCE/7z/ZIP/manifest和最后交付索引将单独保存。- 再查PR13/14远端head分别f08934b8/57f2541b,与固定审查版本一致,OPEN/noCI;无PR评论/作者代码执行/HDR实施。推荐P5精确转换→亮度统计/reset→保存/worker兼容→同源列表/节点UI与输出校准→颜色/实机矩阵后经批准合并,详HDR_DOVI_PR_REVIEW。- `runtime-size-edge-tests.py edges-v1 after`6例通过:5种Qt模拟scale factor GPU与125%软件模式,当前新EXE实际native client右/底gap0,右侧/内侧/中心cyan一致。初始黑边分支30+12+2验收仍保留。本轮不是新的30例或实显示器跨DPI认证。+- 本地产品代码存档2df6dd729b9fe7d32ed41753ab3422e5cc7eda0c / checkpoint/runtime-size-code-20261004,完整stage2076载荷;首轮cached diff-check指出生成build脚本EOF多余空行,已清理。后续source ZIP收最终报告/验收recipe,并严格只允许docs/runtime-size验收脚本变化,compiledCodeCommit保留,不能将产品改动混入未重构建的包。- 所有新产物为E:/项目/Veyra/{build,tests,logs,tmp,test-packages,verify,archives}/runtime-size-20261004;单测试进程≤300s、构建≤900s,TEMP/TMP/CUDA cache仅子进程E盘。RTX5070/616.56短测;RX9000/Xbox真机/RTX40/616.92/HDR色度/实屏DPI/物理节奏/长稳未验仍明确保留。待最后桌面/main/旧包隔离复核与保存后才执行关机。## 2026-10-04 极简右侧像素缺口与HDR PR静态审查diff --git a/scripts/acceptance/runtime-size-archive.py b/scripts/acceptance/runtime-size-archive.pyindex 6f563756..0402182b 100644--- a/scripts/acceptance/runtime-size-archive.py+++ b/scripts/acceptance/runtime-size-archive.py@@ -44,13 +44,13 @@ if sys.argv[1]=='archive':elif sys.argv[1]=='source':manifest=json.loads((STAGE/'package-manifest.json').read_text(encoding='utf8'));commit=subprocess.check_output(['git','rev-parse','HEAD'],cwd=ROOT).decode().strip()changed=subprocess.check_output(['git','diff','--name-only',manifest['baseCommit'],commit],cwd=ROOT).decode().splitlines()- assert all(p.startswith('docs/') for p in changed),'Product/recipe changed after package build'+ assert all(p.startswith(('docs/','scripts/acceptance/runtime-size-')) for p in changed),'Product source changed after package build'names=subprocess.check_output(['git','ls-files'],cwd=ROOT).decode().splitlines()assert not [p for p in names if Path(p).suffix.lower() in {'.dll','.exe','.lib','.pdb','.whl','.f16','.f32','.i32','.onnx','.hsaco','.cso','.ptx','.addon64'}],'Runtime/model in source'source=OUT/('Veyra-'+LABEL+'-source.zip');assert not source.exists()subprocess.run(['git','archive','--format=zip','--output',str(source),commit],cwd=ROOT,timeout=60,check=True)with zipfile.ZipFile(source) as z:assert z.testzip() is Nonedigest=pkg.digest(source);Path(str(source)+'.sha256').write_text(digest+' '+source.name+'\n',encoding='ascii')- write(LOGS/'source-audit.json',{'source':str(source),'bytes':source.stat().st_size,'sha256':digest,'sourceArchiveCommit':commit,'compiledCodeCommit':manifest['baseCommit'],'onlyDocumentationChanged':changed,'completeDependencySource':False,'sdkRuntimeModelsIncluded':False})+ write(LOGS/'source-audit.json',{'source':str(source),'bytes':source.stat().st_size,'sha256':digest,'sourceArchiveCommit':commit,'compiledCodeCommit':manifest['baseCommit'],'nonProductChanges':changed,'productCodeEqual':True,'completeDependencySource':False,'sdkRuntimeModelsIncluded':False})print('SOURCE ZIP PASS',source,digest,commit,flush=True)else:raise SystemExit('archive or source')diff --git a/scripts/acceptance/runtime-size-build.py b/scripts/acceptance/runtime-size-build.pyindex 760ad324..df28f682 100644--- a/scripts/acceptance/runtime-size-build.py+++ b/scripts/acceptance/runtime-size-build.py@@ -44,4 +44,3 @@ print('BUILD', code, log)print('\n'.join(log.read_text(encoding='utf8', errors='replace').splitlines()[-25:]))subprocess.run([sys.executable, '-B', str(CONTROL)], check=True)raise SystemExit(code)-diff --git a/scripts/acceptance/runtime-size-delivery.py b/scripts/acceptance/runtime-size-delivery.pynew file mode 100644index 00000000..a03514c1--- /dev/null+++ b/scripts/acceptance/runtime-size-delivery.py@@ -0,0 +1,70 @@+"""Final local delivery index; product/source/runtime remain separate."""+import hashlib, json, subprocess, sys+from pathlib import Path+ROOT=Path(__file__).resolve().parents[2];BASE=Path('E:/项目/Veyra');TASK='runtime-size-20261004'+OUT=BASE/'test-packages'/TASK;LOGS=BASE/'logs'/TASK+STAGE=OUT/'Veyra-2.0.2-slim-20261004-win64-portable'+def digest(p):+ h=hashlib.sha256()+ with p.open('rb') as f:+ while b:=f.read(1024*1024):h.update(b)+ return h.hexdigest()+def read(name):return json.loads((LOGS/name).read_text(encoding='utf-8-sig'))+def write(p,r):p.write_text(json.dumps(r,ensure_ascii=False,indent=2)+'\n',encoding='utf8')+if sys.argv[1]=='index':+ archive=read('archive-audit.json');dense=read('dense-archive-audit.json');selection=read('archive-selection.json')+ primary=Path(str(STAGE)+'.7z');zipPath=Path(str(STAGE)+'.zip')+ chosen=dense if selection['selectedMethod']==dense['method'] else archive['archives'][1]+ assert digest(primary)==chosen['sha256'] and primary.stat().st_size==chosen['bytes']+ assert digest(zipPath)==archive['archives'][0]['sha256']+ clean=read('clean-smoke/summary.json');assert len(clean['results'])==2+ native=read('native-archive-final-v1.json');assert native['status']=='pass'+ assert all(read(n+'.json')['returncode']==0 for n in ('native-720-v1','native-4k-v1'))+ exports=read('export-all-v1/summary.json');assert len(exports)==21 and all(r['exit']==0 for r in exports)+ ui=read('ui-package-final/summary.json');assert len(ui)==4 and all(r['returncode']==0 for r in ui[:3])+ isolation=read('source-isolation.json');assert all(isolation.values())+ source=read('source-audit.json');bundle=read('final-bundle-audit.json')+ manifest=json.loads((STAGE/'package-manifest.json').read_text(encoding='utf8'))+ baseBytes=1151602649+ record={'schema':'veyra.local.complete-candidate.v1','localOnly':True,'releaseReady':False,'branch':'codex/runtime-size-20261004','compiledCodeCommit':manifest['baseCommit'],+ 'sourceArchive':source,'gitBundle':bundle,'appSha256':digest(STAGE/'veyra_qml_ui.exe'),'primary':{**chosen,'archive':str(primary),'native7zipPassed':True},+ 'zipFallback':archive['archives'][0],'comparison7z32':{**archive['archives'][1],'comparisonOnly':True,'currentBenchmarkPath':selection['comparison32'],'retained':Path(selection['comparison32']).exists()},+ 'oldZipBytes':baseBytes,'primaryReductionPercent':100*(1-primary.stat().st_size/baseBytes),+ 'vfgRawBefore':497894432,'vfgRawAfter':210788400,'amdRawBefore':615032656,'amdRawAfter':615032656,+ 'checks':{'native720':463,'native4k':463,'settings':331,'nvencCombinations':21,'guiAndWorker':ui,'cleanPackage':clean,'nativeArchive':native,'isolation':isolation},+ 'hardware':'RTX5070 / 616.56','amdInferenceVerified':False,'xboxHardwareVerified':False,'rtx40Verified':False,'hdrPrChanges':False,+ 'hdrPlan':str(ROOT/'docs/HDR_DOVI_PR_REVIEW_2026-10-04.md'),'shutdown':'Requested by user; schedule only after delivery/index/source stored.'}+ write(OUT/'DELIVERY.json',record)+ mib=lambda n:f'{n/1048576:.1f}'+ text=f'''# Veyra 完整本地测试包 · 2026-10-04++首选 `{primary.name}`,{mib(primary.stat().st_size)} MiB,解压到新目录后运行 veyra_qml_ui.exe。+备用 `{zipPath.name}`,{mib(zipPath.stat().st_size)} MiB。两者相同2076载荷+manifest。+原VFG测试ZIP {mib(baseBytes)} MiB → 新7z {mib(primary.stat().st_size)} MiB,传输体积减少{record['primaryReductionPercent']:.1f}%。+VFG运行目录474.8→201.0 MiB,九个未用NPP移除;AMD必要资源586.5 MiB保持原件。+7z字典{chosen.get('dictionaryBytes',33554432)//1048576} MiB只影响解压内存,运行内存与文件内容保持。++720p/4K各463 native checks、331 settings、21真实NVENC组合、热切换/预设/重启/缺库、High8冻结worker、+新EXE极简边缘6例通过。最终独立解压所有文件SHA、官方7-Zip CRC/兼容性、包内VFG真实UI/worker、+GPU和软件各六页背景alpha/正常退出通过;原桌面/main/2077原载荷隔离复核通过。++包含Xbox音频/重连、导出码率、RTSS背景与取消NVIDIA App误检测修复、AMD NR、VFG全部档位和极简边缘修复。+仅RTX5070/616.56短测。RX9000推理、Xbox实机长稳、RTX40/616.92、HDR色度、实屏DPI/物理显示延迟/长稳未验。++HDR/DV PR13/14未施工或合并。#13修正P5 offset/完整曲线/MMR;#14先补构建依赖、改亮度统计range/array/延迟/reset。+接着解决预设版本/worker ABI,统一“输入格式—HDR处理卡—实际输出/显示校准”,参考与实机验收后按用户批准合并。+详细方案另见同目录 HDR_DOVI_PR_REVIEW_2026-10-04.md。++compiledCodeCommit: {manifest['baseCommit']}+sourceArchiveCommit: {source['sourceArchiveCommit']}(产品代码相同,后续仅报告/验收脚本)+源码ZIP `{Path(source['source']).name}`,SDK/模型/runtime不含在源码内;这是项目源码,不冒充完整第三方公开源码审计。+Git bundle `{Path(bundle['path']).name}`已verify。哈希/完整证据/源码与存档位置见DELIVERY.json及.sha256。+没有merge main、push或GitHub Release。完成保存后按用户要求安排正常关机。++7z SHA256: {chosen['sha256']}+ZIP SHA256: {archive['archives'][0]['sha256']}+APP SHA256: {record['appSha256']}+'''+ (OUT/'DELIVERY.md').write_text(text,encoding='utf8')+ print('FINAL DELIVERY INDEX PASS',primary,chosen['bytes'],record['primaryReductionPercent'])+else:raise SystemExit('index')diff --git a/scripts/acceptance/runtime-size-dense-archive.py b/scripts/acceptance/runtime-size-dense-archive.pynew file mode 100644index 00000000..52fe7a8e--- /dev/null+++ b/scripts/acceptance/runtime-size-dense-archive.py@@ -0,0 +1,33 @@+"""Use a larger lossless dictionary to reuse shared NR model blocks."""+import importlib.util, json, shutil, subprocess, sys, time+from pathlib import Path+import py7zr+ROOT=Path(__file__).resolve().parents[2];BASE=Path('E:/项目/Veyra');TASK='runtime-size-20261004'+STAGE=BASE/'test-packages'/TASK/'Veyra-2.0.2-slim-20261004-win64-portable'+LOGS=BASE/'logs'/TASK+spec=importlib.util.spec_from_file_location('qml_package',ROOT/'scripts/package-qml-release.py');pkg=importlib.util.module_from_spec(spec);spec.loader.exec_module(pkg)+subprocess.run([sys.executable,'-B',str(ROOT/'scripts/acceptance/runtime-size-control.py')],check=True)+manifest=json.loads((STAGE/'package-manifest.json').read_text(encoding='utf8'))+files=sorted(p for p in STAGE.rglob('*') if p.is_file());expected={r['path'] for r in manifest['files']}|{'package-manifest.json'}+assert {p.relative_to(STAGE).as_posix() for p in files}==expected+archive=Path(str(STAGE)+'-dense.7z');assert not archive.exists()+start=time.monotonic()+with py7zr.SevenZipFile(archive,'w',filters=[{'id':py7zr.FILTER_LZMA2,'preset':5,'dict_size':256*1024*1024}]) as z:+ for i,p in enumerate(files):+ assert not p.is_symlink();z.write(p,STAGE.name+'/'+p.relative_to(STAGE).as_posix())+ if i and i%250==0:print('256M DICTIONARY FILES',i,'/',len(files),flush=True)+print('DENSE WRITTEN; FRESH EXTRACT/HASH NEXT',archive.stat().st_size,flush=True)+verify=BASE/'verify'/TASK/'dense';verify.mkdir(parents=True,exist_ok=False)+with py7zr.SevenZipFile(archive,'r') as z:+ names=z.getnames();assert len(names)==len(expected) and set(names)=={STAGE.name+'/'+r for r in expected}+ for name in names:pkg.relative(name)+ z.extractall(path=verify)+app=verify/STAGE.name+for row in manifest['files']:+ p=app/row['path'];assert p.is_file() and not p.is_symlink() and p.stat().st_size==row['size'] and pkg.digest(p)==row['sha256'],row['path']+assert pkg.digest(app/'package-manifest.json')==pkg.digest(STAGE/'package-manifest.json')+result={'archive':str(archive),'sha256':pkg.digest(archive),'bytes':archive.stat().st_size,'method':'7z-solid-LZMA2-256MiB','dictionaryBytes':256*1024*1024,'decoderMemoryNote':'Requires about 256MiB dictionary plus decoder buffers while extracting; no runtime memory change. ZIP fallback provided.',+ 'seconds':time.monotonic()-start,'verifiedFiles':len(manifest['files']),'status':'pass','extractedApp':str(app)}+(LOGS/'dense-archive-audit.json').write_text(json.dumps(result,ensure_ascii=False,indent=2),encoding='utf8')+Path(str(archive)+'.sha256').write_text(result['sha256']+' '+archive.name+'\n',encoding='ascii')+print('DENSE FRESH EXTRACTION ALL HASHES PASS',json.dumps(result,ensure_ascii=False),flush=True)diff --git a/scripts/acceptance/runtime-size-native-archive-check.py b/scripts/acceptance/runtime-size-native-archive-check.pynew file mode 100644index 00000000..4ff85f1f--- /dev/null+++ b/scripts/acceptance/runtime-size-native-archive-check.py@@ -0,0 +1,17 @@+"""Independent official 7-Zip compatibility/CRC check, using only an E: build tool."""+import hashlib, json, os, subprocess, sys+from pathlib import Path+BASE=Path('E:/项目/Veyra');TASK='runtime-size-20261004'+archive=Path(sys.argv[1]).resolve();archive.relative_to((BASE/'test-packages'/TASK).resolve())+label=sys.argv[2];assert label.replace('-','').isalnum()+tool=BASE/'deps/7zip-26.03-runtime-size-20261004/x64/7za.exe'+tmp=BASE/'tmp'/TASK/'native-archive';tmp.mkdir(parents=True,exist_ok=True)+env=os.environ.copy();env['TEMP']=env['TMP']=str(tmp)+log=BASE/'logs'/TASK/(label+'.log')+with log.open('xb') as out:+ code=subprocess.run([str(tool),'t',str(archive),'-bb0','-bd','-mmt=2','-sccUTF-8'],cwd=tmp,env=env,stdout=out,stderr=subprocess.STDOUT,timeout=290).returncode+text=log.read_text(encoding='utf8',errors='replace');print(text[-1100:])+assert code==0 and 'Everything is Ok' in text,text[-4000:]+result={'archive':str(archive),'cli':str(tool),'cliSha256':hashlib.sha256(tool.read_bytes()).hexdigest(),'code':code,'status':'pass','log':str(log),'toolProvenance':'7zip-tool-provenance.json'}+(BASE/'logs'/TASK/(label+'.json')).write_text(json.dumps(result,ensure_ascii=False,indent=2),encoding='utf8')+print('OFFICIAL 7ZIP CRC/COMPATIBILITY PASS',archive)