Repository navigation
fix(core): 结构上游度只计重要下游 + 跳过归档/驳回与悬空边 - #1152
Merged
FuRongJun-1999 merged 3 commits intoOct 29, 2026
Merged
FuRongJun-1999 merged 3 commits into
FuRongJun-1999 merged 3 commits into
Conversation
- concept_influence 的累加不再让低价值扇出越阈:只有 importance >= 0.7 的 下游节点贡献上游度;4 条 verified/confidence 0.5/下游 0.5 的边不再把普通 纪要抬进 protect + no_forget。 - 重算循环跳过 archived/refuted/deprecated 节点(主动遗忘不再被批处理拉回)。 - 悬空边目标不再用默认 importance=0.5 计分(目标已删即不计)。 - 新增 tests/test_issue274_structural_influence_guard.py:8 断言 + 3 定点变异; 基线 2/8、修复后 8/8;FuRongJun-1999#257/FuRongJun-1999#269/FuRongJun-1999#299 回归 9 passed。
Owner
维护侧处置(值守第 149 轮)你的修复已采纳并合并:维护侧以你的分支头(22eaede,含你自补的 gate.yml SCRIPT_TESTS 接线与 core.py 指纹同步)镜像为 PR #1156 合并(9d71377)——修法、守卫与自补丁均为你的净增量原样(署名与致谢见 #274 关闭帖)。 未直接合并 #1152 的原因:分支基线早于维护侧 #1138/#1143/#1146,直接合并会回退已合工作。 本端读数:守卫 8/8 于 main;#691/#299 邻面 5 passed 无回归;CI 4/4 绿。感谢高质量修复——自带 --mutate 自证与「削掉的判别力如实钉住」(G 组)的守卫设计是范本。 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
修复 #274(
core/结构重要性):recalc_structural_importance的「因果上游度」不再让低价值扇出越阈授予永久保护,并跳过归档/驳回节点与悬空边。改了什么 / 为什么
concept_influence只让importance >= 0.7的下游节点贡献。旧实现 4 条已验证、confidence 0.5、下游 importance 0.5 的边即4×0.5×0.5 = 1.0 ≥ protect_threshold,把一条 0.3 的普通纪要protect_node+no_forget并抬到 0.9。tags,跳过archived/refuted/deprecated节点——旧实现会把importance=0.1的已归档节点拉回 0.9 并重新登记保护,抵消forget_advisor。importance=0.5计分(下游删光后上游仍被保护的路径消失)。验证方式与读数
3552ec3具名反面对照(--mutate)
三条变异各自恰好命中期望红集;变异后源码字节级还原。
边界与不做项
protections无 TTL,撤销面属 [core/情境层·遗忘] 保护名单只增不减,decay_cycle 却把它展开成 2N 个 SQL 占位符:长期记忆累计超过 16383 条后每轮衰减都抛 too many SQL variables,情境层、边衰减、睡眠巩固永久停摆,无自愈路径 #257/[core/遗忘][M7] 保护名单被逐个展开成 SQL 绑定参数:受保护节点数一过「SQLite 变量上限 / 2」(旧版 SQLite 仅 500 条,上游默认 16384 条),decay_cycle 每轮抛 too many SQL variables——整个遗忘引擎永久停摆,睡眠巩固跟着全挂,后台衰减线程静默死亡且无法重启 #261 的保护名单回收范畴;本件只保证不再新增误保护。no_forget行仍永久生效(需人工/另案清理)。Fixes #274