HEL-892: document Qwen background removal and simplify eleven workflow summaries
Co-authored-by: multica-agent <github@multica.ai>
This commit is contained in:
@@ -0,0 +1,77 @@
|
||||
"""Render actual fixed definitions, without rewriting historical evidence."""
|
||||
|
||||
from __future__ import annotations
|
||||
|
||||
import json
|
||||
from pathlib import Path
|
||||
|
||||
OUT = Path(__file__).resolve().parent
|
||||
|
||||
|
||||
def main():
|
||||
b = json.loads((OUT / "definition.json").read_bytes())
|
||||
overviews = json.loads((OUT / "overview-evidence.json").read_bytes())
|
||||
lines = [
|
||||
"# Qwen背景移除与11图用途摘要说明",
|
||||
"",
|
||||
"44新保存位置+4新注释;272旧保存位置+6旧注释只增加用途摘要。11图共316保存位置+10注释展示;155定稿0、实跑0,本轮新增转换0,全量未完成。",
|
||||
"",
|
||||
"## 默认用途摘要",
|
||||
"",
|
||||
]
|
||||
for item in overviews:
|
||||
lines += ["### " + Path(item["path"]).stem, "", item["user_overview"], ""]
|
||||
lines += [
|
||||
"## 背景移除图固定语义",
|
||||
"",
|
||||
b["notice"],
|
||||
"",
|
||||
*[x + "\n" for x in b["flow"][:11]],
|
||||
"## 操作与结果核对",
|
||||
"",
|
||||
*[x + "\n" for x in b["steps"]],
|
||||
"## 44处保存位置",
|
||||
"",
|
||||
]
|
||||
for i, f in enumerate(b["fields"], 1):
|
||||
lines += [
|
||||
f"### {i}. {f['node_id']} · {f['label']}({f['field']})",
|
||||
"",
|
||||
f["effect"],
|
||||
"",
|
||||
f"作用域:{f['scope']};类:{f['class_type']};JSON类型:{f['json_type']}。",
|
||||
"",
|
||||
"```json",
|
||||
json.dumps(f["value"], ensure_ascii=False, indent=2),
|
||||
"```",
|
||||
"",
|
||||
f"源位置:`{f['pointer']}`;具名互证:`{f['named_pointer']}`。",
|
||||
"",
|
||||
f"定义默认:{f['schema_default']};单位:{f['unit']}。",
|
||||
"",
|
||||
f["limits"],
|
||||
"",
|
||||
f["execution_note"],
|
||||
"",
|
||||
"引用:" + ", ".join(str(i) for i in f["evidence"]),
|
||||
"",
|
||||
]
|
||||
lines += ["## 零保存值节点", ""]
|
||||
for n in b["zero_saved_nodes"]:
|
||||
lines += [n["node_id"] + " " + n["class_type"] + ":" + n["effect"], ""]
|
||||
lines += ["## 四条源注释", ""]
|
||||
for n in b["comments"]:
|
||||
lines += ["### 节点 " + n["node_id"], "", "```text", n["text"], "```", ""]
|
||||
lines += ["## 固定原件引用", ""]
|
||||
for i, e in enumerate(b["sources"]):
|
||||
lines += [
|
||||
f"{i}. {e['claim']};{e['file']} "
|
||||
f"第{e['lines'][0]}~{e['lines'][1]}行;提交{e['commit']};"
|
||||
f"SHA256 {e['sha256']};{e['url']}",
|
||||
"",
|
||||
]
|
||||
(OUT.parent / "Qwen背景移除与11图用途摘要说明.md").write_text("\n".join(lines) + "\n")
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
Reference in New Issue
Block a user