zhuyuan-ice-gl-zy001/TRAE-DEV-20260820/tmp-self-test-20260824/refine-leaf-20260824.py

25 lines
1.8 KiB
Python
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#!/usr/bin/env python3
import json
TREE = "/Volumes/JZAO/HoloLake/persona-runtime/continuity-memory/hldp-v1-trees/trae/trees/20260820-trae-host-line.json"
t = json.load(open(TREE))
leaf = t["nodes"]["trae/20260824/trae-host-line/zc001-channel-restore-cycle"]
leaf["rejected"] = [
"拒绝沿用昨日 state-ice-ch-zc001-20260823-trae 旧目录续跑,因为频道+宿主+会话必须隔离,新会话必须新运行位",
"拒绝把对齐器[已对齐]当恢复完成,因为对齐只是闸门前置检查,六段真跑 verify PASS 才算恢复",
"拒绝在 E4002 未触发时就记 PASS,因为相对路径 target 随 allowed-root 解析不算越界,构造绝对路径 target 听到拒绝声才算验证",
"拒绝只改 state 目录名不改事件正本,因为正本 scope 字段与运行事实漂移会断证据链,必须同步更正重编译",
"拒绝删除 tmp-self-test-20260824 测试源码,因为事件正本 evidence 引用它作为 E4002 证据,删了引用就悬空",
]
leaf["sources"] = [
"TC-TCS核心卷/TCS-EVENT-ZC001-TRAE-RECOVERY-CHANNEL-RESTORE-20260824.tcs(本轮事件正本+GIR+双语投影)",
"TRAE-DEV-20260820/state-ice-ch-zc001-20260824-trae/(六段周期运行位:state.json/journal.jsonl/cycles/)",
"TRAE-DEV-20260820/inputs-zc001-20260824trae/(event/orientation/frame/witness 四输入)",
"TRAE-DEV-20260820/tmp-self-test-20260824/E4002-BOUNDARY-TEST.tcs(E4002 触发源码)",
"TC-TCS核心卷/TCS-PROTOCOL-TRAE-WAKE-DYNAMIC-ALIGNMENT-0001.tcs(唤醒对齐协议正本,本轮架构参照)",
"source://trae-current-dialogue/2026-08-24/zc001-channel-restore-entry(冰朔三句话纯恢复指令原话)",
]
json.dump(t, open(TREE, "w"), ensure_ascii=False, indent=1)
print("LEAF_REFINED")