Skip to content

feat(graph): 被动确认 Passive Confirmation(issue #24 块4) - #347

Open
modusensus wants to merge 1 commit into
feat/graph-weight-evolutionfrom
feat/graph-passive-confirm
Open

modusensus wants to merge 1 commit into
feat/graph-weight-evolutionfrom
feat/graph-passive-confirm

Conversation

@modusensus

Copy link
Copy Markdown
Collaborator

背景

issue #24(v0.8 图谱增强)块4 被动确认:人工「认可/删除/忽略」三选一门槛太高 → 收敛为「例外管理」——把确认缝进 touch 门控,正常触达视为被动确认。

改动

设计取舍

测试

  • test/graph-passive-confirm.test.js(新):默认关零变化 / 开启 bump / heat 关但 passive 开仍 bump / 封顶 / 无关联边降级
  • heat/weight 回归绿

状态

⚠️ base = feat/graph-weight-evolution(#342),需 #342 先合。块1 #341、块2 #342、块3 #343 已提;四块至此全部落地。

把「关系是用出来的」闭环落到触达路径:正常触达(记忆被召回/注入)= 对该
记忆挂联关系边的被动确认——bumpRelationWeight 抬一格(只加不减、封顶 1.0)。
独立于 heat 闸门:graphPassiveConfirm 开时即使 heatEnabled=false 也照常
bump(touchLastAccess 的热度消费仍随 heat 关停,语义不变)。默认关=零行为
变化。自激回路由 bump 封顶天然遏制,复核 UI 留后续块——「仅异常路径暴露
给用户复核」的确认记录侧在此落地。

- store.getRelationsByMemory:按记忆反查关联边(复用 idx_relations_memory)
- service.touchRecalled:heatOn 与 passive 拆成独立闸门,passive 开时 bump
- config:graphPassiveConfirm(默认 false,全走 feature_flags、lightMode 关)

测试:5 组 graph-passive-confirm 新增全过;heat/weight 回归绿
@coderabbitai

coderabbitai Bot commented Sep 30, 2026

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Repository: slow-stack/mneme/.coderabbit.yaml

Review profile: CHILL

Plan: Advanced

Run ID: 8dddb415-b192-4eeb-b1fc-8d56ddb20d99

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant