feat(lme): 决策185-190落地——动态工料机现算、并集视野重组、同码异价拆行、子级改价收严

This commit is contained in:
lianjianwei2024
2026-10-24 23:42:44 +08:00
parent c0b01b15a8
commit ac28658889
13 changed files with 1275 additions and 135 deletions

View File

@@ -160,10 +160,13 @@ def test_recode_chain_flattened_to_tail():
def test_recode_chain_resolve_helper():
"""压平助手:链取尾;环(A↔B 历史脏映射)按访问集停,不静默改方向。"""
"""压平助手:链取尾;环(A↔B 历史脏映射)按**最先写入的边**的目标收敛
(决策 185,2026-10-23 主人定:与显示端幸存行方向一致——session:76 实测灰土环
幸存 80310015-0001、人工费环幸存基码 00010010,均为各自环最先写入边的目标;
取代决策 174「按访问集停在入口码」旧口径,不再静默停在入口码)。"""
assert xcos._resolve_recode_chains({"A3": "A1", "A1": "A9"}) == {"A3": "A9", "A1": "A9"}
assert xcos._resolve_recode_chains({"B": "C", "C": "C"}) == {"B": "C"}
assert xcos._resolve_recode_chains({"X": "Y", "Y": "X"}) == {"X": "Y", "Y": "X"}
assert xcos._resolve_recode_chains({"X": "Y", "Y": "X"}) == {"X": "Y"}
assert xcos._resolve_recode_chains({"Z": "Z"}) == {}