Files
aigc-home/docs/hel-892/qwen21-vnccs-document-evidence/source_closure.py
T
2026-11-01 04:43:13 +08:00

42 lines
1.3 KiB
Python

"""Index bounded identity metadata; no upstream code or assets are acquired."""
import hashlib
import json
from build_definition import OUT, REF, REPO
def main():
files = []
for p in sorted(REF.iterdir()):
if not p.is_file():
continue
raw = p.read_bytes()
files.append(
dict(
path=str(p.relative_to(REPO)),
sha256=hashlib.sha256(raw).hexdigest(),
purpose="原件身份缺口/有界候选HTTP元数据或索引;非本图准确实现来源",
)
)
(OUT / "source-closure.json").write_text(
json.dumps(
dict(
files=files,
count=len(files),
exact_schema_sources=0,
upstream_executed=False,
media_or_3d_downloads=0,
note="候选registry404不证明源码不存在;规范仓候选main不绑定本图版本。只必要身份元数据,无上游源码/整包/模型/字体/人偶/运行库下载;历史SeedVR整包越界及删除事实保留。",
),
ensure_ascii=False,
indent=2,
)
+ "\n"
)
print("PASS bounded identity closure", len(files), "exact schema sources 0")
if __name__ == "__main__":
main()