47 lines
1.4 KiB
Python
47 lines
1.4 KiB
Python
"""Only original and necessary identity-gap evidence; no invented implementation closure."""
|
|
|
|
import hashlib
|
|
import json
|
|
|
|
from build_definition import OUT, PATHS, REF, REPO
|
|
|
|
|
|
def main():
|
|
paths = [REPO / PATHS[0], REF / "sources.json"] + [
|
|
OUT / n
|
|
for n in [
|
|
"declaration-audit.json",
|
|
"identity-gaps.json",
|
|
"independent-inventory.json",
|
|
"expected-edges.json",
|
|
"source-check.json",
|
|
]
|
|
]
|
|
files = [
|
|
dict(
|
|
path=str(p.relative_to(REPO)),
|
|
sha256=hashlib.sha256(p.read_bytes()).hexdigest(),
|
|
purpose="本图原件/声明缺失与位置连线证据;非准确实现源码",
|
|
)
|
|
for p in paths
|
|
]
|
|
(OUT / "source-closure.json").write_text(
|
|
json.dumps(
|
|
dict(
|
|
count=len(files),
|
|
files=files,
|
|
implementation_sources=0,
|
|
upstream_executed=False,
|
|
note="没有准确提供方/版本,准确实现来源0。仅必要原数据和具体身份缺口证据闭合,不强行携带前批实现/许可/获取记录。旧历史保持原文件冻结,不重新获取。",
|
|
),
|
|
ensure_ascii=False,
|
|
indent=2,
|
|
)
|
|
+ "\n"
|
|
)
|
|
print("PASS necessary original/gap evidence", len(files), "implementation sources0")
|
|
|
|
|
|
if __name__ == "__main__":
|
|
main()
|