Skip to content

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

Merged
modusensus merged 6 commits into
mainfrom
feat/graph-passive-confirm
Oct 1, 2026
Merged

modusensus merged 6 commits into
mainfrom
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

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 24 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used all 2 included reviews currently available.

Learn how review limits work.

Review configuration:

⚙️ Run configuration

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

Review profile: CHILL

Plan: Advanced

Run ID: 9e34aa9e-607a-4a22-a8bc-3ded7569b8c3

📥 Commits

Reviewing files that changed from the base of the PR and between df0dabe and a798f17.

📒 Files selected for processing (11)
  • dsh-mneme/CHANGELOG.md
  • dsh-mneme/lib/config.js
  • dsh-mneme/lib/service.js
  • dsh-mneme/lib/settings.js
  • dsh-mneme/lib/store.js
  • dsh-mneme/src/config.js
  • dsh-mneme/src/service.js
  • dsh-mneme/src/settings.js
  • dsh-mneme/src/store.js
  • dsh-mneme/test/api.test.js
  • dsh-mneme/test/graph-passive-confirm.test.js
  • Autopilot · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Autopilot is currently an internal CodeRabbit preview.


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.

…o feat/graph-passive-confirm

# Conflicts:
#	dsh-mneme/CHANGELOG.md
#	dsh-mneme/lib/settings.js
#	dsh-mneme/src/settings.js
#	dsh-mneme/test/api.test.js
…nfirm

# Conflicts:
#	dsh-mneme/lib/settings.js
#	dsh-mneme/lib/store.js
#	dsh-mneme/src/settings.js
#	dsh-mneme/src/store.js
#	dsh-mneme/test/api.test.js
…nfirm

# Conflicts:
#	dsh-mneme/lib/config.js
#	dsh-mneme/lib/settings.js
#	dsh-mneme/src/config.js
#	dsh-mneme/src/settings.js
#	dsh-mneme/test/api.test.js
@modusensus
modusensus changed the base branch from feat/graph-weight-evolution to main October 1, 2026 05:28
@codecov

codecov Bot commented Oct 1, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@modusensus
modusensus merged commit 272e9cd into main Oct 1, 2026
11 checks passed
modusensus added a commit that referenced this pull request Oct 1, 2026
… 依赖对齐 / #345 CVE 清零 / #346 测试数口径 / #348 CI 兼容腿 / #349 巩固阈值基线
modusensus added a commit that referenced this pull request Oct 1, 2026
* chore: v0.8.12 发布准备(版本号 + 测试徽章 + CHANGELOG/路线图占位行)

请在 CHANGELOG 与两个 README 的占位行补描述后再合并。

* docs(changelog): v0.8.12 发版节承接本轮 9 个 PR——#341–#347 图谱四块 + #344 宿主 0.2 依赖对齐 / #345 CVE 清零 / #346 测试数口径 / #348 CI 兼容腿 / #349 巩固阈值基线

---------

Co-authored-by: modusensus <modusensus@users.noreply.github.com>
@modusensus
modusensus deleted the feat/graph-passive-confirm branch October 1, 2026 05:55
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